7620cba4b18be3d4e63ff1b75de9ab0b7e2d097c
[gnulib.git] / ChangeLog
1 2010-12-25  Bruno Haible  <bruno@clisp.org>
2
3         Ensure all prerequisites of <wchar.h> are included.
4         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
5         before <wchar.h>.
6         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
7         gl_MBRLEN_NUL_RETVAL): Likewise.
8         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
9         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
10         AC_FUNC_MBRTOWC): Likewise.
11         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
15         Likewise.
16         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
18         (gl_WCHAR_H): Improve comments.
19         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20
21 2010-12-25  Bruno Haible  <bruno@clisp.org>
22
23         strtok_r: Fix C syntax error in autoconf macro.
24         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
25         characters in test program.
26
27 2010-12-24  Bruno Haible  <bruno@clisp.org>
28
29         ceil, trunc, round: Fix gcc warnings.
30         * lib/ceil.c (MIN): Undefine before redefining.
31         * lib/trunc.c (MIN): Likewise.
32         * lib/round.c (MIN): Likewise.
33         Include <math.h> first.
34
35 2010-12-24  Bruno Haible  <bruno@clisp.org>
36
37         select tests: Avoid failures on OSF/1 5.1.
38         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
39         failure of closing the last socket; it may fail with ECONNRESET.
40
41 2010-12-24  Eric Blake  <eblake@redhat.com>
42
43         stdint: avoid HP-UX 10.20 preprocessor bug
44         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
45         than #if.
46         * tests/test-floor2.c (main): Likewise.
47         Reported by Peter O'Gorman.
48
49         pipe: make obsoletion transition easier
50         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
51         * modules/pipe (Files): Include revived file.
52         (Include): Drop reference, to mirror getdate's behavior.
53
54 2010-12-24  Bruno Haible  <bruno@clisp.org>
55
56         sys_socket: Hide mismatch of declarations on NonStop Kernel.
57         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
58         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
59         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
60
61 2010-12-24  Bruno Haible  <bruno@clisp.org>
62
63         gethostname: Ensure declaration on NonStop Kernel.
64         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
65         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
66
67 2010-12-24  Bruno Haible  <bruno@clisp.org>
68
69         sys_select: Ensure all necessary types on NonStop Kernel.
70         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
71         include <sys/time.h>.
72         * doc/posix-headers/sys_select.texi: Mention that it's missing on
73         NonStop Kernel.
74         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
75
76 2010-12-24  Bruno Haible  <bruno@clisp.org>
77
78         sys_select: Remove unneeded include.
79         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
80         have <sys/select.h>.
81
82 2010-12-24  Bruno Haible  <bruno@clisp.org>
83
84         gethostname: Provide a fallback for HOST_NAME_MAX.
85         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
86         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
87         instead.
88         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
89
90 2010-12-24  Bruno Haible  <bruno@clisp.org>
91
92         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
93         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
94         (SA_RESTART): Likewise.
95         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
96
97 2010-12-24  Bruno Haible  <bruno@clisp.org>
98
99         signal: Define NSIG.
100         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
101         * tests/test-signal.c (nsig): New variable.
102         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
103
104 2010-12-24  Bruno Haible  <bruno@clisp.org>
105
106         rename, renameat: Avoid test failures on OSF/1 5.1.
107         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
108         alternative error codes.
109         * tests/test-renameat.c (main): Likewise.
110
111 2010-12-24  Bruno Haible  <bruno@clisp.org>
112
113         *printf: Detect large precisions bug on Solaris 10/SPARC.
114         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
115         by Paul Eggert.
116         * tests/test-snprintf-posix.h (test_function): Add this test code here
117         too.
118         * tests/test-sprintf-posix.h (test_function): Likewise.
119         * tests/test-vasnprintf-posix.c (test_function): Likewise.
120         * tests/test-vasprintf-posix.c (test_function): Likewise.
121         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
122         around by gnulib.
123         * doc/posix-functions/printf.texi: Likewise.
124         * doc/posix-functions/snprintf.texi: Likewise.
125         * doc/posix-functions/sprintf.texi: Likewise.
126         * doc/posix-functions/vfprintf.texi: Likewise.
127         * doc/posix-functions/vprintf.texi: Likewise.
128         * doc/posix-functions/vsnprintf.texi: Likewise.
129         * doc/posix-functions/vsprintf.texi: Likewise.
130         * doc/posix-functions/dprintf.texi: Undo last commit.
131         * doc/posix-functions/vdprintf.texi: Likewise.
132
133 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
134
135         tests: port test-fdutimensat.c to Solaris 8
136         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
137         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
138         On Solaris 8, it fails with errno == ENOSYS, because there is no
139         futimens (so it can't use the fd), and there is no lutimens (so it
140         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
141
142         vsnprintf: make more consistent with snprintf; doc fixes
143
144         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
145         the byte count return problem was promoted from the snprintf-posix
146         to the snprintf module.
147         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
148         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
149         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
150         * tests/test-snprintf.c (main): Check the byte count returned.
151         * tests/test-vsnprintf.c (main): Likewise.
152
153 2010-12-23  Eric Blake  <eblake@redhat.com>
154
155         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
156         * modules/sigpipe (License): Relax license.
157
158 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
159
160         doc: document Solaris printf bug with large float precisions
161         * doc/posix-functions/dprintf.texi (dprintf):
162         * doc/posix-functions/fprintf.texi (fprintf):
163         * doc/posix-functions/printf.texi (printf):
164         * doc/posix-functions/snprintf.texi (snprintf):
165         * doc/posix-functions/sprintf.texi (sprintf):
166         * doc/posix-functions/vdprintf.texi (vdprintf):
167         * doc/posix-functions/vfprintf.texi (vfprintf):
168         * doc/posix-functions/vprintf.texi (vprintf):
169         * doc/posix-functions/vsnprintf.texi (vsnprintf):
170         * doc/posix-functions/vsprintf.texi (vsprintf):
171         Mention that these functions mishandle large floating point
172         precisions on Solaris 10.  The same bug is also present in Solaris
173         8, and I assume earlier.  This causes "cd gnulib-tests; make
174         check" to fail on Solaris 8 (and I assume, later) when building
175         the latest coreutils, in test-vasprintf-posix's call to
176         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
177         the wide flavors (e.g., wprintf) so this patch just updates the
178         documentation for the narrow ones.
179
180         test-posixtm.c: add two tests
181         * tests/test-posixtm.c: Add two tests, to highlight the
182         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
183         around this bug; this is merely to document it.
184
185 2010-12-22  Bruno Haible  <bruno@clisp.org>
186
187         getlogin_r: Work around portability problem on OSF/1.
188         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
189         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
190         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
191         test for a truncated result.
192         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
193         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
194         * modules/getlogin_r (Depends-on): Add memchr.
195         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
196
197 2010-12-22  Bruno Haible  <bruno@clisp.org>
198
199         ptsname: Avoid test failure on OSF/1 5.1.
200         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
201         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
202         (same_slave): New function.
203         (main): Use it to compare ptsname's result with the expected file name.
204
205 2010-12-22  Bruno Haible  <bruno@clisp.org>
206
207         Port extended stdio modules to HP NonStop Kernel.
208         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
209         macros.
210         * lib/fbufmode.c: Update comments.
211         * lib/fflush.c: Likewise.
212         * lib/fpurge.c: Likewise.
213         * lib/freadable.c: Likewise.
214         * lib/freadahead.c: Likewise.
215         * lib/freading.c: Likewise.
216         * lib/freadptr.c: Likewise.
217         * lib/freadseek.c: Likewise.
218         * lib/fseeko.c: Likewise.
219         * lib/fseterr.c: Likewise.
220         * lib/fwritable.c: Likewise.
221         * lib/fwriting.c: Likewise.
222         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
223
224 2010-12-22  Bruno Haible  <bruno@clisp.org>
225
226         ttyname_r: Work around bug on OSF/1 5.1.
227         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
228         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
229         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
230         present.
231         * lib/ttyname_r.c (ttyname_r): Update comments.
232
233 2010-12-22  Bruno Haible  <bruno@clisp.org>
234
235         round: Implement result sign according to IEEE 754.
236         * lib/round.c (MIN, MINUS_ZERO): New macros.
237         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
238         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
239         * tests/test-round-ieee.c (main): Likewise.
240         * tests/test-roundl-ieee.c (main): Likewise.
241
242         trunc: Implement result sign according to IEEE 754.
243         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
244         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
245         * tests/test-trunc2.c: Include minus-zero.h.
246         (MINUS_ZERO): New macro.
247         (trunc_reference): Keep in sync with lib/trunc.c.
248         * tests/test-truncf2.c: Include minus-zero.h.
249         (MINUS_ZERO): New macro.
250         (truncf_reference): Keep in sync with lib/trunc.c.
251         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
252         * tests/test-trunc-ieee.c (main): Likewise.
253         * tests/test-truncl-ieee.c (main): Likewise.
254
255         ceil: Implement result sign according to IEEE 754.
256         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
257         (FUNC): Return -0.0 for -1 < x < 0.
258         * tests/test-ceil2.c: Include minus-zero.h.
259         (MINUS_ZERO): New macro.
260         (ceil_reference): Keep in sync with lib/ceil.c.
261         * tests/test-ceilf2.c: Include minus-zero.h.
262         (MINUS_ZERO): New macro.
263         (ceilf_reference): Keep in sync with lib/ceil.c.
264         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
265         * tests/test-ceil-ieee.c (main): Likewise.
266         * tests/test-ceill-ieee.c (main): Likewise.
267
268         floor: Implement result sign according to IEEE 754.
269         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
270         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
271         * tests/test-floorf2.c (floorf_reference): Likewise.
272         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
273         * tests/test-floor-ieee.c (main): Likewise.
274         * tests/test-floorl-ieee.c (main): Likewise.
275
276 2010-12-22  Bruno Haible  <bruno@clisp.org>
277
278         getaddrinfo: Update doc.
279         * doc/posix-functions/gai_strerror.texi: Return type is also different
280         on AIX and HP-UX.
281
282 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
283
284         getaddrinfo, inet_ntop: Update doc for Solaris.
285         * doc/posix-functions/gai_strerror.texi: Return type is also an
286         issue on Solaris 9 and earlier.
287         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
288         on Solaris 10 and earlier.
289
290 2010-12-21  Bruno Haible  <bruno@clisp.org>
291
292         New module 'roundl-ieee'.
293         * modules/roundl-ieee: New file.
294         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
295         test whether roundl works according to ISO C 99 with IEC 60559.
296         * m4/roundl-ieee.m4: New file.
297         * modules/roundl-ieee-tests: New file.
298         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
299         * tests/test-roundl.c (main): Remove signbit tests.
300         * modules/roundl-tests (Depends-on): Remove signbit.
301         * doc/posix-functions/roundl.texi: Mention the new module.
302
303 2010-12-21  Bruno Haible  <bruno@clisp.org>
304
305         New module 'truncl-ieee'.
306         * modules/truncl-ieee: New file.
307         * modules/truncl-ieee-tests: New file.
308         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
309         * tests/test-truncl.c (main): Remove signbit tests.
310         * modules/truncl-tests (Depends-on): Remove signbit.
311         * doc/posix-functions/truncl.texi: Mention the new module.
312
313 2010-12-21  Bruno Haible  <bruno@clisp.org>
314
315         New module 'ceill-ieee'.
316         * modules/ceill-ieee: New file.
317         * modules/ceill-ieee-tests: New file.
318         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
319         * tests/test-ceill.c (main): Remove signbit tests.
320         * modules/ceill-tests (Depends-on): Remove signbit.
321         * doc/posix-functions/ceill.texi: Mention the new module.
322
323 2010-12-21  Bruno Haible  <bruno@clisp.org>
324
325         New module 'floorl-ieee'.
326         * modules/floorl-ieee: New file.
327         * modules/floorl-ieee-tests: New file.
328         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
329         * tests/test-floorl.c (main): Remove signbit tests.
330         * modules/floorl-tests (Depends-on): Remove signbit.
331         * doc/posix-functions/floorl.texi: Mention the new module.
332
333 2010-12-21  Bruno Haible  <bruno@clisp.org>
334
335         New module 'round-ieee'.
336         * modules/round-ieee: New file.
337         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
338         whether round works according to ISO C 99 with IEC 60559.
339         * m4/round-ieee.m4: New file.
340         * modules/round-ieee-tests: New file.
341         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
342         * tests/test-round1.c (main): Remove signbit tests.
343         * modules/round-tests (Depends-on): Remove 'signbit'.
344         * doc/posix-functions/round.texi: Mention the new module.
345
346 2010-12-21  Bruno Haible  <bruno@clisp.org>
347
348         New module 'trunc-ieee'.
349         * modules/trunc-ieee: New file.
350         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
351         whether trunc works according to ISO C 99 with IEC 60559.
352         * m4/trunc-ieee.m4: New file.
353         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
355         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
356         * modules/trunc-ieee-tests: New file.
357         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
358         * tests/test-trunc1.c (main): Remove signbit tests.
359         * modules/trunc-tests (Depends-on): Remove 'signbit'.
360         * doc/posix-functions/trunc.texi: Mention the new module.
361
362 2010-12-21  Bruno Haible  <bruno@clisp.org>
363
364         New module 'ceil-ieee'.
365         * modules/ceil-ieee: New file.
366         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
367         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
368         ISO C 99 with IEC 60559.
369         * m4/ceil-ieee.m4: New file.
370         * modules/ceil (Files): Add lib/ceil.c.
371         (Depends-on): Add 'float'.
372         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
373         * lib/math.in.h (ceil): New declaration.
374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
375         REPLACE_CEIL.
376         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
377         * modules/ceil-ieee-tests: New file.
378         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
379         * tests/test-math-c++.cc: Check the signature of 'ceil'.
380         * doc/posix-functions/ceil.texi: Mention the new module.
381
382 2010-12-21  Bruno Haible  <bruno@clisp.org>
383
384         New module 'floor-ieee'.
385         * modules/floor-ieee: New file.
386         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
387         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
388         ISO C 99 with IEC 60559.
389         * m4/floor-ieee.m4: New file.
390         * modules/floor (Files): Add lib/floor.c.
391         (Depends-on): Add 'float'.
392         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
393         * lib/math.in.h (floor): New declaration.
394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
395         REPLACE_FLOOR.
396         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
397         * modules/floor-ieee-tests: New file.
398         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
399         * tests/test-math-c++.cc: Check the signature of 'floor'.
400         * doc/posix-functions/floor.texi: Mention the new module.
401
402 2010-12-21  Bruno Haible  <bruno@clisp.org>
403
404         New module 'roundf-ieee'.
405         * modules/roundf-ieee: New file.
406         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
407         test whether roundf works according to ISO C 99 with IEC 60559.
408         * m4/roundf-ieee.m4: New file.
409         * modules/roundf-ieee-tests: New file.
410         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
411         * tests/test-roundf1.c (main): Remove signbit tests.
412         * modules/roundf-tests (Depends-on): Remove 'signbit'.
413         * doc/posix-functions/roundf.texi: Mention the new module.
414
415 2010-12-21  Bruno Haible  <bruno@clisp.org>
416
417         New module 'truncf-ieee'.
418         * modules/truncf-ieee: New file.
419         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
420         test whether truncf works according to ISO C 99 with IEC 60559.
421         * m4/truncf-ieee.m4: New file.
422         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
424         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
425         * modules/truncf-ieee-tests: New file.
426         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
427         * tests/test-truncf1.c (main): Remove signbit tests.
428         * modules/truncf-tests (Depends-on): Remove 'signbit'.
429         * doc/posix-functions/truncf.texi: Mention the new module.
430
431 2010-12-21  Bruno Haible  <bruno@clisp.org>
432
433         New module 'ceilf-ieee'.
434         * modules/ceilf-ieee: New file.
435         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
436         test whether ceilf works according to ISO C 99 with IEC 60559.
437         * m4/ceilf-ieee.m4: New file.
438         * modules/ceilf-ieee-tests: New file.
439         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
440         * tests/test-ceilf1.c (main): Remove signbit tests.
441         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
442         * doc/posix-functions/ceilf.texi: Mention the new module.
443
444 2010-12-21  Bruno Haible  <bruno@clisp.org>
445
446         New module 'floorf-ieee'.
447         * modules/floorf-ieee: New file.
448         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
449         test whether floorf works according to ISO C 99 with IEC 60559.
450         * m4/floorf-ieee.m4: New file.
451         * modules/floorf-ieee-tests: New file.
452         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
453         * tests/test-floorf1.c (main): Remove signbit tests.
454         * modules/floorf-tests (Depends-on): Remove 'signbit'.
455         * doc/posix-functions/floorf.texi: Mention the new module.
456
457 2010-12-21  Bruno Haible  <bruno@clisp.org>
458
459         Support for minus zero in autoconf macros.
460         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
461         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
462         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
463         * tests/minus-zero.h: Update comments.
464
465 2010-12-21  Bruno Haible  <bruno@clisp.org>
466
467         Tests for module 'ceil'.
468         * modules/ceil-tests: New file.
469         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
470         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
471
472 2010-12-21  Bruno Haible  <bruno@clisp.org>
473
474         Tests for module 'floor'.
475         * modules/floor-tests: New file.
476         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
477         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
478
479 2010-12-21  Bruno Haible  <bruno@clisp.org>
480
481         math: Fix indentation.
482         * lib/math.in.h (floorf): Fix indentation.
483
484 2010-12-21  Bruno Haible  <bruno@clisp.org>
485
486         Fix cross-compilation guesses on Solaris.
487         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
488         not match "solaris2.10".
489         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
490         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
491         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
492
493 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
494
495         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
496         This fixes a problem observed with the latest coreutils snapshot
497         that caused a test to fail on Solaris 8.  src/csplit.c's call
498         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
499         earlier, instead of returning the number of bytes that would have
500         been generated; this causes csplit to incorrectly report memory
501         exhaustion.
502         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
503         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
504         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
505         comments to match.
506         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
507         Fix typo in matching older versions of Solaris: "solaris2.10"
508         is matched by the shell pattern "solaris2.[0-9]*".  This matters
509         only for guessing while cross-compiling.
510         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
511
512 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
513
514         ftoastr: fix comment again
515         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
516         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
517         Also, simplify example a bit by using flags = 0.
518
519 2010-12-20  Bruno Haible  <bruno@clisp.org>
520
521         round*, trunc*: Update documentation regarding glibc.
522         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
523         * doc/posix-functions/round.texi: Likewise.
524         * doc/posix-functions/roundl.texi: Likewise.
525         * doc/posix-functions/truncf.texi: Likewise.
526         * doc/posix-functions/trunc.texi: Likewise.
527         * doc/posix-functions/truncl.texi: Likewise.
528
529 2010-12-20  Bruno Haible  <bruno@clisp.org>
530
531         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
532         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
533         * doc/posix-functions/round.texi: Likewise.
534         * doc/posix-functions/roundl.texi: Likewise.
535
536 2010-12-20  Bruno Haible  <bruno@clisp.org>
537
538         ttyname_r: Add missing declaration on HP-UX 11.
539         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
540         HAVE_TTYNAME_R.
541         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
542         declared. Set HAVE_TTYNAME_R always.
543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
544         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
545         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
546         HAVE_TTYNAME_R.
547         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
548
549 2010-12-20  Bruno Haible  <bruno@clisp.org>
550
551         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
552         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
553         * doc/posix-functions/getlogin_r.texi: Likewise.
554         * tests/test-getlogin.c: Include <errno.h>.
555         (main): Avoid test failure on HP-UX 11.11.
556         * tests/test-getlogin_r.c (main): Likewise.
557
558 2010-12-20  Bruno Haible  <bruno@clisp.org>
559
560         getlogin_r: Add missing declaration on HP-UX 11.
561         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
562         declared also when it exists as a function.
563         * doc/posix-functions/getlogin_r.texi: Document this workaround.
564
565 2010-12-20  Bruno Haible  <bruno@clisp.org>
566
567         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
568         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
569         through wcrtomb.
570
571 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
572
573         ftoastr: fix comment
574         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
575         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
576
577 2010-12-19  Bruno Haible  <bruno@clisp.org>
578
579         isnan: Ensure it is a macro.
580         * lib/math.in.h (isnan): Define as a macro if not already a macro.
581         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
582         Solaris.
583
584 2010-12-19  Bruno Haible  <bruno@clisp.org>
585
586         ldexpl test: Fix link error on OSF/1 5.1.
587         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
588
589 2010-12-19  Bruno Haible  <bruno@clisp.org>
590
591         wctype: Make it work in C++ mode on OSF/1 5.1.
592         * lib/wctype.in.h (iswblank): Declare but not define here.
593         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
594         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
595         * modules/wctype (Files): Add lib/iswblank.c.
596
597 2010-12-19  Bruno Haible  <bruno@clisp.org>
598
599         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
600         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
601         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
602
603 2010-12-19  Bruno Haible  <bruno@clisp.org>
604
605         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
606         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
607         _POSIX_PII_SOCKET.
608         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
609         * doc/posix-functions/recvfrom.texi: Likewise.
610         * doc/posix-functions/send.texi: Likewise.
611         * doc/posix-functions/sendto.texi: Likewise.
612
613 2010-12-19  Bruno Haible  <bruno@clisp.org>
614
615         tcgetsid: Add missing declaration on OSF/1 5.1.
616         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
617         HAVE_TCGETSID.
618         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
619         Don't set HAVE_TCGETSID.
620         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
621         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
622         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
623         HAVE_TCGETSID.
624         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
625
626 2010-12-19  Bruno Haible  <bruno@clisp.org>
627
628         stdio: Fix problem with popen() declaration on OSF/1 5.1.
629         * lib/stdio.in.h: During the include_next statement, let recursive
630         includes of this file include only the system header file.
631
632 2010-12-19  Bruno Haible  <bruno@clisp.org>
633
634         iconv_open: Fix regression from 2010-12-04.
635         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
636         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
637
638 2010-12-19  Bruno Haible  <bruno@clisp.org>
639
640         stdbool test: Avoid a gcc warning.
641         * tests/test-stdbool.c (main): Fail if e1 is false.
642         Reported by Jim Meyering.
643
644 2010-12-19  Jim Meyering  <meyering@redhat.com>
645
646         setenv: restore to working order
647         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
648         mistakenly removed.
649         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
650         HAVE_SETENV.
651         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
652         HAVE_SETENV.
653
654 2010-12-19  Bruno Haible  <bruno@clisp.org>
655
656         Document some different function declarations on OSF/1 5.1.
657         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
658         * doc/posix-functions/inet_ntop.texi: Likewise.
659         * doc/posix-functions/gethostname.texi: Likewise.
660         * lib/unistd.in.h (gethostname): Update comment.
661
662 2010-12-19  Bruno Haible  <bruno@clisp.org>
663
664         doc: Mention vasprintf-posix module.
665         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
666         the 'vasprintf-posix' module.
667         * doc/glibc-functions/vasprintf.texi: Likewise.
668
669 2010-12-19  Bruno Haible  <bruno@clisp.org>
670
671         unsetenv: Add missing declaration on OSF/1 5.1.
672         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
673         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
674         Don't set HAVE_UNSETENV. In the test program, set _BSD.
675         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
676         not HAVE_UNSETENV.
677         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
678         HAVE_UNSETENV.
679         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
680
681 2010-12-19  Bruno Haible  <bruno@clisp.org>
682
683         setenv: Add missing declaration on OSF/1 5.1.
684         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
685         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
686         declared. Don't set HAVE_SETENV.
687         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
688         not HAVE_SETENV.
689         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
690         HAVE_SETENV.
691         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
692
693 2010-12-19  Bruno Haible  <bruno@clisp.org>
694
695         nl_langinfo tests: Avoid gcc warning.
696         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
697
698 2010-12-19  Bruno Haible  <bruno@clisp.org>
699
700         mknod: Avoid error in C++ mode on OSF/1 with GCC.
701         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
702         _GL_CXXALIAS_SYS.
703
704 2010-12-19  Bruno Haible  <bruno@clisp.org>
705
706         stdbool: Relax test.
707         * tests/test-stdbool.c (e): Don't require that casts from a variable's
708         address to 'bool' work in static initializer, for compilers other than
709         GCC.
710
711 2010-12-19  Bruno Haible  <bruno@clisp.org>
712
713         ftello: Add missing declaration on OSF/1 5.1.
714         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
715         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
716         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
717         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
718         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
719
720 2010-12-19  Bruno Haible  <bruno@clisp.org>
721
722         fseeko: Add missing declaration on OSF/1 5.1.
723         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
724         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
725         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
726         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
727         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
728
729 2010-12-19  Bruno Haible  <bruno@clisp.org>
730
731         fchdir: Add missing declaration on OSF/1 5.1.
732         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
733         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
734         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
735         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
736         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
737
738 2010-12-19  Bruno Haible  <bruno@clisp.org>
739
740         relocatable-prog-wrapper: Separate from relocatable-prog.
741         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
742         uninstall-relocwrapper rule here.
743         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
744         Reported by Ian Beckwith <ianb@erislabs.net>.
745
746 2010-12-19  Bruno Haible  <bruno@clisp.org>
747
748         unistr/u8-mbsnlen: Add missing dependency.
749         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
750         Reported by Ian Beckwith <ianb@erislabs.net>.
751
752 2010-12-19  Bruno Haible  <bruno@clisp.org>
753
754         iconv: Make it possible again to use this module without 'iconv-h'.
755         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
756         if it is not defined.
757         Reported by Ian Beckwith <ianb@erislabs.net>.
758
759 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
760
761         acl: port to Solaris 8 when copying from tmpfs to ufs
762         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
763         error number.  Problem observed on Solaris 8 with latest
764         coreutils, with "mv A B", where A is on a tmpfs file system and B
765         is on a ufs file system.  This caused coreutils' mv/part-symlink
766         test to fail.
767
768         tests: set fail=0 at start
769         * tests/init.sh (setup_): Move fail=0 initialization here ...
770         (mktempd_): ... from here, so that tests can rely on fail being
771         set to 0 initially.  This fixes a problem in coreutils; see:
772         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
773
774 2010-12-18  Bruno Haible  <bruno@clisp.org>
775
776         memmem-simple: Stylistic changes.
777         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
778         Fix preprocessor directive indentation.
779
780 2010-12-15  Pádraig Brady <P@draigBrady.com>
781
782         memmem, memmem-simple: reorganize and expand empty needle check
783         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
784         functional checks to memmem-simple so that one has a fully functional
785         memmem by using just this module.
786         Restrict the performance only check to the memmem module.
787         Also expand the empty needle check to ensure the correct
788         pointer is returned, not just a non NULL pointer.
789         * doc/glibc-functions/memmem.texi: Rearrange the portability
790         documentation to correlate with the rearranged checks.
791         Clarify exactly how the memmem and memmem-simple modules
792         relate to each other.
793
794 2010-12-15  Pádraig Brady <P@draigBrady.com>
795             Bruno Haible  <bruno@clisp.org>
796
797         Improve cross-compilation guesses for uClibc.
798         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
799         that uClibc does not have the glibc bug.
800         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
801         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
802
803 2010-12-14  Eric Blake  <eblake@redhat.com>
804
805         configmake: provide fallbacks for oldest supported autotools
806         * m4/configmake.m4: New file.
807         * modules/configmake (Files): Ship it.
808         (configure.ac): Use it to guarantee fallbacks.
809
810 2010-12-13  Pádraig Brady <P@draigBrady.com>
811
812         read-file: Improve handling of large files
813         * lib/read-file.c (fread_file): Minimize realloc()s
814         for regular files, and better manage sizes around SIZE_MAX.
815
816 2010-12-13  Eric Blake  <eblake@redhat.com>
817
818         cloexec, fcntl: relax license
819         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
820         consent from all contributors.
821         * modules/fcntl (License): Likewise.
822
823 2010-12-10  Bruno Haible  <bruno@clisp.org>
824
825         Tests for module 'pipe-posix'.
826         * modules/pipe-posix-tests: New file.
827         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
828
829 2010-12-10  Bruno Haible  <bruno@clisp.org>
830
831         pipe-posix: Make it work in C++ mode.
832         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
833         (pipe): Use common idiom, not a macro definition.
834         * lib/pipe.c: New file.
835         * m4/pipe.m4: New file.
836         * modules/pipe-posix (Description): Enhance.
837         (Files): Add lib/pipe.c, m4/pipe.m4.
838         (configure.ac): Invoke gl_FUNC_PIPE.
839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
840         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
841         * tests/test-unistd-c++.cc: Check the signature of pipe.
842
843 2010-12-10  Bruno Haible  <bruno@clisp.org>
844
845         Rename module 'pipe' to 'spawn-pipe'.
846         * modules/spawn-pipe: New file, renamed from modules/pipe.
847         (Files, configure.ac, Makefile.am): Update.
848         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
849         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
850         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
851         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
852         "spawn-pipe.h" instead of "pipe.h".
853         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
854         to gl_SPAWN_PIPE.
855         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
856         (Files, Makefile.am): Update.
857         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
858         Update.
859         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
860         Include "spawn-pipe.h" instead of "pipe.h".
861         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
862         * lib/javacomp.c: Likewise.
863         * lib/javaversion.c: Likewise.
864         * lib/pipe-filter-gi.c: Likewise.
865         * lib/pipe-filter-ii.c: Likewise.
866         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
867         * modules/javacomp (Depends-on): Likewise.
868         * modules/javaversion (Depends-on): Likewise.
869         * modules/pipe-filter-gi (Depends-on): Likewise.
870         * modules/pipe-filter-ii (Depends-on): Likewise.
871         * MODULES.html.sh (Executing programs): Update.
872         * NEWS: Mention the change.
873
874 2010-12-10  Eric Blake  <eblake@redhat.com>
875
876         pipe-posix: new module
877         * modules/pipe-posix: New file.
878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
879         (gl_UNISTD_H): Check for declaration.
880         * modules/unistd (Makefile.am): Substitute it.
881         * lib/unistd.in.h (pipe): Provide it for mingw.
882         * doc/posix-functions/pipe.texi (pipe): Update documentation.
883         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
884
885 2010-12-07  Bruno Haible  <bruno@clisp.org>
886
887         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
888         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
889         u8_strcmp_gnu.
890         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
891
892 2010-12-06  Bruno Haible  <bruno@clisp.org>
893
894         Update internal documentation.
895         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
896
897 2010-12-04  Bruno Haible  <bruno@clisp.org>
898
899         Put more information about failed tests into the test return codes.
900         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
901         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
902         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
903         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
904         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
905         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
906         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
907         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
908         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
909         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
910         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
911         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
912         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
913         * m4/stdint.m4 (gl_STDINT_H): Likewise.
914         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
915         returns a bit mask.
916         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
917         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
918         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
919         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
920         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
921         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
922         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
923         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
924         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
925         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
926         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
927         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
928         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
929         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
930         * m4/link.m4 (gl_FUNC_LINK): Likewise.
931         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
932         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
933         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
934         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
935         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
936         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
937         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
938         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
939         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
940         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
941         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
942         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
943         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
944         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
945         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
946         gl_PRINTF_PRECISION): Likewise.
947         * m4/regex.m4 (gl_REGEX): Likewise.
948         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
949         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
950         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
951         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
952         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
953         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
954         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
955         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
956         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
957         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
958         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
959         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
960         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
961         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
962         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
963         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
964         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
965         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
966         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
967         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
968         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
969         enumerated value.
970         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
971
972 2010-12-04  Bruno Haible  <bruno@clisp.org>
973
974         Update for Solaris 11 2010-11.
975         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
976         Express, released in November 2010.
977
978 2010-12-04  Bruno Haible  <bruno@clisp.org>
979
980         nproc: Relax license.
981         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
982         and Paul Eggert.
983         Requested by Ludovic Courtès <ludo@gnu.org>.
984
985 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
986
987         utimecmp: fine-grained src to nearby coarse-grained dest
988
989         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
990         and the source is on a file system with higher-resolution time
991         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
992         not work, and the time stamps are close together, the algorithm to
993         determine the exact resolution from the read-back mtime was buggy:
994         it had a "!=" where it should have had an "==".  This bug has been
995         in the code ever since it was introduced to gnulib.
996         Problem reported by Dan Jacobson in
997         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
998
999 2010-11-30  Bruno Haible  <bruno@clisp.org>
1000
1001         strerror_r-posix: Fix autoconf test.
1002         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
1003
1004 2010-11-28  Bruno Haible  <bruno@clisp.org>
1005             Paul Eggert  <eggert@cs.ucla.edu>
1006
1007         Tests for module 'getdomainname'.
1008         * modules/getdomainname-tests: New file.
1009         * tests/test-getdomainname.c: New file, based on
1010         tests/test-gethostname.c.
1011
1012 2010-11-28  Bruno Haible  <bruno@clisp.org>
1013             Paul Eggert  <eggert@cs.ucla.edu>
1014
1015         getdomainname: Use the system function when possible.
1016         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
1017         (getdomainname): Replace if needed. Provide the declaration if it is
1018         missing. Don't use _GL_CXXALIAS_SYS_CAST.
1019         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
1020         (getdomainname): When the system has getdomainname, call the system
1021         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
1022         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
1023         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
1024         found in libnsl. Look for the declaration also in <netdb.h>. Replace
1025         the function if its second argument is of type 'int' or if it is found
1026         in libnsl.
1027         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
1028         <sys/systeminfo.h> and sysinfo().
1029         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
1030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1031         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
1032         HAVE_GETDOMAINNAME.
1033         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
1034         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
1035         * doc/glibc-functions/getdomainname.texi: Document the problems with
1036         the getdomainname declaration.
1037
1038 2010-11-28  Bruno Haible  <bruno@clisp.org>
1039
1040         sys_socket: Ensure ss_family field on AIX.
1041         * lib/sys_socket.in.h (ss_family): New macro definition.
1042         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
1043         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
1044         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
1045         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
1046         * modules/sys_socket (Makefile.am): Substitute
1047         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
1048         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
1049
1050 2010-11-27  Bruno Haible  <bruno@clisp.org>
1051
1052         readline: Improve configure output.
1053         * m4/readline.m4 (gl_FUNC_READLINE): Make the
1054         "checking for readline..." result understandable.
1055
1056 2010-11-27  Bruno Haible  <bruno@clisp.org>
1057
1058         *printf-posix: Detect a bug on Solaris 10/x86.
1059         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
1060         for floating-point output.
1061         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
1062         directive.
1063         * tests/test-snprintf-posix.h (test_function): Likewise.
1064         * tests/test-sprintf-posix.h (test_function): Likewise.
1065         * tests/test-vasprintf-posix.c (test_function): Likewise.
1066         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
1067         * doc/posix-functions/printf.texi: Likewise.
1068         * doc/posix-functions/snprintf.texi: Likewise.
1069         * doc/posix-functions/sprintf.texi: Likewise.
1070         * doc/posix-functions/vfprintf.texi: Likewise.
1071         * doc/posix-functions/vprintf.texi: Likewise.
1072         * doc/posix-functions/vsnprintf.texi: Likewise.
1073         * doc/posix-functions/vsprintf.texi: Likewise.
1074         * doc/glibc-functions/obstack_printf.texi: Likewise.
1075         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1076
1077 2010-11-27  Bruno Haible  <bruno@clisp.org>
1078
1079         Fix link error when module libunistring-optional is in use.
1080         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
1081         * modules/striconveha-tests (Makefile.am): Likewise.
1082
1083 2010-11-27  Bruno Haible  <bruno@clisp.org>
1084
1085         regex: Mention link dependencies.
1086         * modules/regex (Link): New section.
1087         * modules/rpmatch (Link): Likewise.
1088         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
1089
1090 2010-11-27  Bruno Haible  <bruno@clisp.org>
1091
1092         ftoastr: Fix compilation error on Solaris.
1093         * lib/ftoastr.c: Include <config.h>.
1094
1095 2010-11-27  Bruno Haible  <bruno@clisp.org>
1096
1097         getloadavg: Update documentation.
1098         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
1099
1100 2010-11-27  Bruno Haible  <bruno@clisp.org>
1101
1102         sys_socket: Fix test whether the functions are declared.
1103         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
1104         not <sys/select.h>.
1105
1106 2010-11-27  Bruno Haible  <bruno@clisp.org>
1107
1108         getpass: Make sure to get system declaration on some platforms.
1109         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
1110         gl_USE_SYSTEM_EXTENSIONS.
1111         * modules/getpass (Depends-on): Add extensions.
1112
1113 2010-11-26  Bruno Haible  <bruno@clisp.org>
1114
1115         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
1116         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
1117         'iconv' module is present.
1118         (ICONV_CONST): New macro.
1119         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
1120         ICONV_CONST.
1121         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
1122         set ICONV_CONST.
1123         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
1124         here.
1125         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
1126         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
1127         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
1128         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
1129         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
1130         present.
1131
1132 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
1133
1134         ftoastr: comment fix
1135         * lib/ftoastr.c: "little" -> "little or no" in comment
1136
1137 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
1138
1139         stdint: port to GCC 4.3 + OSX + Octave
1140         On this platform, stdint.h is buggy and defines int64_t to long
1141         long int.  The replacement defined it to long int, causing
1142         problems with C++ style name mangling.  Instead, trust the system
1143         definition if INT64_MAX is defined, and likewise for the unsigned
1144         variant.   Problem reported by Jarno Rajahalme in
1145         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
1146         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
1147         and don't mess with int64_t and INT64_MAX in this case.
1148         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
1149
1150 2010-11-24  Bruno Haible  <bruno@clisp.org>
1151
1152         doc: Corrections regarding MacOS X 10.4 and 10.5.
1153         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
1154         MacOS X.
1155         Reported by Simon Josefsson.
1156
1157 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
1158
1159         Uninstall ".bin" files installed by relocwrapper.
1160         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
1161         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
1162         unless it is already there.
1163
1164 2010-11-21  Bruno Haible  <bruno@clisp.org>
1165
1166         Update for NetBSD 5.0.
1167         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
1168         NetBSD; the test fails on NetBSD 5.0.
1169         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
1170         about NetBSD.
1171
1172 2010-11-21  Bruno Haible  <bruno@clisp.org>
1173
1174         Update for HP-UX 11.23 and HP-UX 11.31.
1175         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
1176         HP-UX.
1177
1178 2010-11-21  Bruno Haible  <bruno@clisp.org>
1179
1180         Update for MacOS X 10.5.
1181         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
1182         MacOS X; the test fails on MacOS X 10.5.8.
1183         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
1184         about MacOS X.
1185
1186 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
1187
1188         bootstrap: add bootstrap_sync option.
1189         See discussion at
1190         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
1191         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
1192         * build-aux/bootstrap: Accept --bootstrap-sync to update
1193         bootstrap if it is not identical to the local gnulib's
1194         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
1195         enable this by default.  Accept --no-bootstrap-sync to disable
1196         it.
1197
1198 2010-11-20  Bruno Haible  <bruno@clisp.org>
1199
1200         Ensure that <features.h> is included before __GLIBC__ is tested.
1201         * lib/printf-parse.h: Include <features.h>.
1202         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
1203         Reported by Mike Frysinger <vapier@gentoo.org>.
1204
1205         Ensure that <features.h> is included before __GLIBC__ is tested.
1206         * lib/wchar.in.h: Include <features.h>.
1207         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
1208         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
1209         Reported by Mike Frysinger <vapier@gentoo.org>.
1210
1211         Ensure that <features.h> is included before __GLIBC__ is tested.
1212         * lib/arpa_inet.in.h: Include <features.h>.
1213         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
1214         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
1215         Reported by Mike Frysinger <vapier@gentoo.org>.
1216
1217         Ensure that <features.h> is included before __GLIBC__ is tested.
1218         * build-aux/link-warning.h: Include <features.h>.
1219         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
1220         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
1221         Reported by Mike Frysinger <vapier@gentoo.org>.
1222
1223         Ensure that <features.h> is included before __GLIBC__ is tested.
1224         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
1225         Reported by Mike Frysinger <vapier@gentoo.org>.
1226
1227 2010-11-20  Bruno Haible  <bruno@clisp.org>
1228
1229         memmem: Fix autoconf test.
1230         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
1231
1232 2010-11-20  Bruno Haible  <bruno@clisp.org>
1233
1234         Port to uClibc.
1235         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
1236         * lib/fcntl.in.h: Likewise.
1237         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
1238         * lib/mbrtowc.c (mbrtowc): Likewise.
1239         * lib/relocatable.c (find_shared_library_fullname): Likewise.
1240         * lib/strerror_r.c: Likewise.
1241         * lib/unistr/u8-strnlen.c: Likewise.
1242         * lib/vasnprintf.c (decimal_point_char): Likewise.
1243         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
1244         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
1245         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
1246         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
1247         * tests/test-sigaction.c (handler, main): Likewise.
1248         * lib/freading.h: Treat uClibc like a non-glibc platform.
1249         * lib/freading.c: Likewise.
1250         * lib/gettext.h: Likewise.
1251         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
1252         Likewise.
1253         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
1254         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
1255         * lib/propername.c (proper_name_utf8): Likewise.
1256         * lib/spawn.in.h: Likewise.
1257         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
1258         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
1259         mem_cd_iconveh_internal): Likewise.
1260         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
1261         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1262         strstr, strcasestr): Likewise.
1263         * lib/unicodeio.c (unicode_to_mb): Likewise.
1264         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
1265         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
1266         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
1267         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
1268         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
1269         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
1270         * lib/unistr/u8-stpncpy.c: Likewise.
1271         * lib/vasnprintf.c (VASNPRINTF): Likewise.
1272         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
1273         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
1274         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1275         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
1276         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
1277         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
1278         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
1279         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
1280         Likewise.
1281         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1282         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
1283         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1284         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1285         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1286         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1287         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1288         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
1289         * tests/test-getopt.h (OPTIND_MIN): Likewise.
1290         * tests/test-striconveha.c (main): Likewise.
1291         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1292         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
1293         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
1294         * doc/posix-functions/getline.texi: Likewise.
1295         Reported by Mike Frysinger <vapier@gentoo.org>.
1296
1297 2010-11-20  Bruno Haible  <bruno@clisp.org>
1298
1299         nproc: Fix condition.
1300         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
1301         HAVE_PTHREAD_AFFINITY_NP.
1302
1303 2010-11-20  Bruno Haible  <bruno@clisp.org>
1304
1305         Fix a comment.
1306         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
1307
1308 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
1309
1310         ftoastr: don't assume snprintf
1311         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
1312         Implement a subset of snprintf here, by using sprintf safely.
1313         * modules/ftoastr (Depends-on): Remove snprintf.
1314
1315 2010-11-19  Jim Meyering  <meyering@redhat.com>
1316
1317         test-rename.h: fix compilation failure
1318         * tests/test-rename.h (test_rename): Add omitted "}".
1319
1320 2010-11-17  Jim Meyering  <meyering@redhat.com>
1321
1322         maint.mk: add a URL discussing the no-@acronym policy
1323         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
1324
1325 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1326
1327         ftoastr: depend on snprintf, improve comments
1328         * lib/ftoastr.c: Also mention Loitsch's draft.
1329         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
1330         needed in the current implementation, but it might simplify
1331         speeding up the code later.
1332         * modules/ftoastr: Depend on snprintf; this improves portability.
1333         Suggested by Bruno Haible in the same email.
1334
1335         ftoastr: port to hosts lacking strtof and strtold
1336         Problem reported by Bruno Haible in
1337         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
1338         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
1339         environment and strtold (and presumably strtof) are not available.
1340         * modules/ftoastr (Files): Add m4/c-strtod.m4.
1341         (configure.ac): Require gl_C99_STRTOLD.
1342
1343 2010-11-18  Bruno Haible  <bruno@clisp.org>
1344
1345         c-strtold: Avoid link error on AIX 7.
1346         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
1347         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
1348         (gl_C_STRTOLD): Test whether strtold_l exists.
1349         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1350
1351 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1352
1353         intprops: new macro INT_BITS_STRLEN_BOUND
1354         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
1355         ftoastr.h.  This exposes an internal of intprops.h that was formerly
1356         not exposed.  Also, it uses a slightly tighter bound than before;
1357         though this makes no practical difference, we might as well be as
1358         tight as we easily can.
1359
1360         ftoastr: new module, for lossless conversion of floats to short strings
1361         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
1362         * modules/ftoastr: New files.
1363
1364 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
1365
1366         bootstrap: port to Solaris sed
1367         * build-aux/bootstrap (get_version): Port to Solaris sed.
1368         See Ralf Wildenhues's note in
1369         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
1370
1371 2010-11-14  Jim Meyering  <meyering@redhat.com>
1372
1373         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
1374         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
1375         and move definition closer to sole use.
1376
1377 2010-11-13  Jim Meyering  <meyering@redhat.com>
1378
1379         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
1380         Now we require at least autoconf-2.59, which means the work-around
1381         is no longer needed.
1382         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
1383         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1384         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1385         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
1386         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1387
1388 2010-11-13  Bruno Haible  <bruno@clisp.org>
1389
1390         rename, renameat: Avoid test failures at NFS mounted locations.
1391         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
1392         functions.
1393         (test_rename): Use assert_nonexistent.
1394         * tests/test-rename.c: Include <dirent.h>.
1395         * tests/test-renameat.c: Likewise.
1396         Reported by Gary V. Vaughan <gary@gnu.org>.
1397
1398         rename, renameat: Document Linux bug with NFS
1399         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
1400         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
1401         * doc/posix-functions/renameat.texi: Likewise.
1402         Suggested by Eric Blake.
1403
1404 2010-11-13  Bruno Haible  <bruno@clisp.org>
1405
1406         rename test: Add comments.
1407         * tests/test-rename.h (test_rename): Add structure and comments.
1408
1409 2010-11-13  Eric Blake  <eblake@redhat.com>
1410
1411         maintainer-makefile: cover a few more files
1412         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
1413         scripts generated within C files, for libvirt.
1414
1415 2010-11-13  Bruno Haible  <bruno@clisp.org>
1416
1417         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
1418         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
1419         character, return the number of bytes that belong together, not always
1420         1.
1421         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
1422         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
1423         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
1424         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
1425         number of bytes of an invalid character.
1426         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
1427         (main): Invoke it.
1428         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
1429         results.
1430         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
1431         malformed byte sequences.
1432         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
1433         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
1434         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
1435         Reported by Ben Pfaff and Paolo Bonzini.
1436
1437 2010-11-13  Bruno Haible  <bruno@clisp.org>
1438
1439         openat: Work around glibc bug with fchownat() and empty file names.
1440         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
1441         (gl_FUNC_FCHOWNAT): Invoke it.
1442         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
1443         * doc/posix-functions/fchownat.texi: Document the glibc bug.
1444         Reported by Gary V. Vaughan <gary@gnu.org>.
1445
1446 2010-11-13  Bruno Haible  <bruno@clisp.org>
1447
1448         openat: Ensure autoconf macro ordering.
1449         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
1450         gl_USE_SYSTEM_EXTENSIONS.
1451         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
1452
1453 2010-11-13  Bruno Haible  <bruno@clisp.org>
1454
1455         Update comments.
1456         * lib/unistr/u8-check.c: Update file name in comments.
1457         * lib/unistr/u8-mblen.c: Likewise.
1458         * lib/unistr/u8-prev.c: Likewise.
1459         * lib/unistr/u8-strmblen.c: Likewise.
1460         * lib/unistr/u8-strmbtouc.c: Likewise.
1461
1462 2010-11-13  Jim Meyering  <meyering@redhat.com>
1463
1464         tests: avoid test failure on Solaris 10 due to lack of PATH export
1465         * tests/test-update-copyright.sh: Don't forget to export PATH.
1466
1467         init.sh: ensure that IFS is defined, just in case...
1468         * tests/init.sh (setup_): Ensure that IFS is defined,
1469         so that saving and restoring it works as expected.  This
1470         appears to be useful at least for an old version of dash
1471         from a long time ago (RH 6).  See here for details:
1472         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
1473
1474         maint.mk: tighten "test a == b" check
1475         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
1476         test to files that contain something like #!/bin/sh.
1477         Without this, coreutils would get two false positives in
1478         the comments of C source files.
1479
1480 2010-11-12  Eric Blake  <eblake@redhat.com>
1481
1482         bootstrap: fix typo in previous attempt
1483         * build-aux/bootstrap (buildreq): Correct the grouping.
1484         Reported by Paul Eggert.
1485
1486         maintainer-makefile: prohibit test x == x
1487         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
1488         Based on a report by Matthias Bolte.
1489
1490         bootstrap: allow FreeBSD gzip
1491         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
1492         which has no '.' and goes to stderr.
1493         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
1494         Reported by Matthias Bolte.
1495
1496         maintainer-makefile: check for i18n setup
1497         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
1498         will likely work.
1499
1500 2010-11-12  Bruno Haible  <bruno@clisp.org>
1501
1502         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
1503         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
1504         * lib/nanosleep.c (nanosleep): Likewise.
1505
1506 2010-11-11  Bruno Haible  <bruno@clisp.org>
1507
1508         fcntl-h: Fix for use of C++ on glibc systems.
1509         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
1510         also on glibc systems in C++ mode.
1511         Reported by Gary V. Vaughan <gary@gnu.org>.
1512
1513 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1514
1515         mknod: avoid false failure with dash
1516         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
1517
1518 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1519
1520         unlink: Fix "is it should" typo in diagnostic.
1521         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
1522         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
1523
1524 2010-11-11  Bruno Haible  <bruno@clisp.org>
1525
1526         Tests for module 'strerror_r-posix'.
1527         * modules/strerror_r-posix-tests: New file.
1528         * tests/test-strerror_r.c: New file.
1529         * tests/test-string-c++.cc: Check the signature of strerror_r.
1530
1531         New module 'strerror_r-posix'.
1532         * lib/string.in.h (strerror_r): New declaration.
1533         * lib/strerror_r.c: New file.
1534         * m4/strerror_r.m4: New file.
1535         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
1536         of strerror_r.
1537         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
1538         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
1539         * modules/strerror_r-posix: New file.
1540         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
1541         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
1542         * doc/posix-functions/strerror_r.texi: Mention the new module and the
1543         portability problems.
1544
1545 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
1546
1547         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
1548         line is also considered for output. Quoted function name in shell
1549         command, so temporary files for functions like MyClass::operator()
1550         are removed correctly without errors.
1551
1552 2010-11-09  Bruno Haible  <bruno@clisp.org>
1553
1554         * doc/posix-functions/strerror.texi: List more failing platforms.
1555
1556         * doc/posix-functions/strerror.texi: Add a comment.
1557
1558 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1559
1560         fdopendir: fix bug on MacOS X when low on file descriptors
1561
1562         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
1563         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
1564         All callers changed.
1565         (fdopendir): Invoke save_cwd at the top level, not after using
1566         multiple dup() calls to use up file descriptors.  Then retry
1567         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
1568         less than the maximum number of open file descriptors, because
1569         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
1570         on Mac OS X 10.6.4 for tar 1.24
1571         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
1572         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
1573         and for tar 1.25
1574         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
1575
1576 2010-11-07  Bruno Haible  <bruno@clisp.org>
1577
1578         vasnprintf: Support I flag on glibc systems.
1579         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
1580         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
1581         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
1582         snprintf function.
1583         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
1584         glibc systems.
1585         * tests/test-vasnprintf-posix3.c: New file.
1586         * modules/vasnprintf-posix-tests (Files): Add it.
1587         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
1588
1589 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1590
1591         [html] Fix copy/paste bug: Use unique name for compiler warnings.
1592         * MODULES.html.sh: For compiler warnings, use name
1593         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
1594
1595 2010-11-05  Eric Blake  <eblake@redhat.com>
1596
1597         ceil, floor: avoid spurious failure with icc
1598         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
1599         [denormals-as-zero] when optimizing without -mieee-fp option.
1600         * tests/test-floorf2.c (floorf_reference): Likewise.
1601         * tests/test-ceilf1.c (dummy): New function.
1602         (main): Use it to outsmart icc's optimization.
1603         * tests/test-floorf1.c (dummy, main): Likewise.
1604
1605         tests: require working signbit
1606         * modules/ceilf-tests (Depends-on): Add signbit.
1607         * modules/ceill-tests (Depends-on): Likewise.
1608         * modules/floorf-tests (Depends-on): Likewise.
1609         * modules/floorl-tests (Depends-on): Likewise.
1610         * modules/round-tests (Depends-on): Likewise.
1611         * modules/roundf-tests (Depends-on): Likewise.
1612         * modules/roundl-tests (Depends-on): Likewise.
1613         * modules/trunc-tests (Depends-on): Likewise.
1614         * modules/truncf-tests (Depends-on): Likewise.
1615         * modules/truncl-tests (Depends-on): Likewise.
1616
1617         strtod: work around icc bug
1618         * lib/strtod.c (minus_zero): Define to working value.
1619         (strtod): Use it to avoid icc bug.
1620
1621         copysign: enhance tests
1622         * modules/copysign-tests (Files): Add minus-zero.h.
1623         * tests/test-copysign.c (main): Also test zeros.
1624
1625 2010-11-04  Eric Blake  <eblake@redhat.com>
1626
1627         ceil, floor, round, trunc: enhance tests of -0
1628         * tests/test-ceilf1.c (main): Ensure correct sign of result.
1629         * tests/test-ceill.c (main): Likewise.
1630         * tests/test-floorf1.c (main): Likewise.
1631         * tests/test-floorl.c (main): Likewise.
1632         * tests/test-round1.c (main): Likewise.
1633         * tests/test-roundf1.c (main): Likewise.
1634         * tests/test-roundl.c (main): Likewise.
1635         * tests/test-trunc1.c (main): Likewise.
1636         * tests/test-truncf1.c (main): Likewise.
1637         * tests/test-truncl.c (main): Likewise.
1638
1639 2010-11-04  Eric Blake  <eblake@redhat.com>
1640
1641         frexp, tests: work around ICC bug with -zero
1642         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
1643         works with more compilers.
1644         * tests/minus-zero.h: New file.
1645         * modules/ceilf-tests (Files): Include it.
1646         * modules/ceill-tests (Files): Likewise.
1647         * modules/floorf-tests (Files): Likewise.
1648         * modules/floorl-tests (Files): Likewise.
1649         * modules/frexp-nolibm-tests (Files): Likewise.
1650         * modules/frexp-tests (Files): Likewise.
1651         * modules/frexpl-nolibm-tests (Files): Likewise.
1652         * modules/frexpl-tests (Files): Likewise.
1653         * modules/isnan-tests (Files): Likewise.
1654         * modules/isnand-nolibm-tests (Files): Likewise.
1655         * modules/isnand-tests (Files): Likewise.
1656         * modules/isnanf-nolibm-tests (Files): Likewise.
1657         * modules/isnanf-tests (Files): Likewise.
1658         * modules/isnanl-nolibm-tests (Files): Likewise.
1659         * modules/isnanl-tests (Files): Likewise.
1660         * modules/round-tests (Files): Likewise.
1661         * modules/roundf-tests (Files): Likewise.
1662         * modules/roundl-tests (Files): Likewise.
1663         * modules/ldexpl-tests (Files): Likewise.
1664         * modules/signbit-tests (Files): Likewise.
1665         * modules/snprintf-posix-tests (Files): Likewise.
1666         * modules/sprintf-posix-tests (Files): Likewise.
1667         * modules/strtod-tests (Files): Likewise.
1668         * modules/trunc-tests (Files): Likewise.
1669         * modules/truncf-tests (Files): Likewise.
1670         * modules/truncl-tests (Files): Likewise.
1671         * modules/vsnprintf-posix-tests (Files): Likewise.
1672         * modules/vsprintf-posix-tests (Files): Likewise.
1673         * modules/vasnprintf-posix-tests (Files): Likewise.
1674         * modules/vasprintf-posix-tests (Files): Likewise.
1675         * tests/test-ceilf1.c (main): Use it.
1676         * tests/test-ceill.c (main): Likewise.
1677         * tests/test-floorf1.c (main): Likewise.
1678         * tests/test-floorl.c (main): Likewise.
1679         * tests/test-frexp.c (main): Likewise.
1680         * tests/test-frexpl.c (main): Likewise.
1681         * tests/test-isnan.c (main): Likewise.
1682         * tests/test-isnand.h (main): Likewise.
1683         * tests/test-isnanf.h (main): Likewise.
1684         * tests/test-isnanl.h (main): Likewise.
1685         * tests/test-ldexpl.c (main): Likewise.
1686         * tests/test-round.c (main): Likewise.
1687         * tests/test-roundf.c (main): Likewise.
1688         * tests/test-roundl.c (main): Likewise.
1689         * tests/test-signbit.c (test_signbitf, test_signbitd)
1690         (test_signbitl): Likewise.
1691         * tests/test-snprintf-posix.h (test_function): Likewise.
1692         * tests/test-sprintf-posix.h (test_function): Likewise.
1693         * tests/test-strtod.c (main): Likewise.
1694         * tests/test-trunc1.c (main): Likewise.
1695         * tests/test-truncf1.c (main): Likewise.
1696         * tests/test-truncl.c (main): Likewise.
1697
1698         isnanl: work around icc bug
1699         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
1700
1701 2010-11-03  Eric Blake  <eblake@redhat.com>
1702
1703         tests: fix compiler warnings
1704         * tests/test-getopt.h (test_getopt): Fix condition.
1705         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1706         * tests/test-pipe2.c (main): Likewise.
1707         * tests/test-quotearg-simple.c (main): Avoid icc warning.
1708
1709         utimens: fix broken m4 test
1710         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
1711
1712 2010-10-28  Bruno Haible  <bruno@clisp.org>
1713
1714         posix_spawn*, getdtablesize: Relax license.
1715         * modules/posix_spawn (License): Change to LGPLv2+.
1716         * modules/posix_spawnp (License): Likewise.
1717         * modules/posix_spawn-internal (License): Likewise.
1718         * modules/posix_spawnattr_init (License): Likewise.
1719         * modules/posix_spawnattr_getflags (License): Likewise.
1720         * modules/posix_spawnattr_setflags (License): Likewise.
1721         * modules/posix_spawnattr_getpgroup (License): Likewise.
1722         * modules/posix_spawnattr_setpgroup (License): Likewise.
1723         * modules/posix_spawnattr_getschedparam (License): Likewise.
1724         * modules/posix_spawnattr_setschedparam (License): Likewise.
1725         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
1726         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
1727         * modules/posix_spawnattr_getsigdefault (License): Likewise.
1728         * modules/posix_spawnattr_setsigdefault (License): Likewise.
1729         * modules/posix_spawnattr_getsigmask (License): Likewise.
1730         * modules/posix_spawnattr_setsigmask (License): Likewise.
1731         * modules/posix_spawnattr_destroy (License): Likewise.
1732         * modules/posix_spawn_file_actions_init (License): Likewise.
1733         * modules/posix_spawn_file_actions_addclose (License): Likewise.
1734         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
1735         * modules/posix_spawn_file_actions_addopen (License): Likewise.
1736         * modules/posix_spawn_file_actions_destroy (License): Likewise.
1737         * modules/getdtablesize (License): Likewise.
1738         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
1739
1740 2010-10-26  Bruno Haible  <bruno@clisp.org>
1741
1742         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
1743         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
1744         Cygwin and mingw.
1745         Suggested by Eric Blake.
1746
1747 2010-10-26  Bruno Haible  <bruno@clisp.org>
1748
1749         stdio: Work around compilation error due to renameat() on Solaris 10.
1750         * lib/stdio.in.h: Include <unistd.h> on Solaris.
1751         * lib/renameat.c: Don't include <unistd.h> here.
1752         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
1753         Reported by Paul Eggert and Eric Blake.
1754
1755 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1756
1757         renameat: port to Solaris 10, which declares renameat in unistd.h
1758
1759         * lib/renameat.c: Include unistd.h before stdio.h, because
1760         Solaris 10 declares renameat in unistd.h.  Problem encountered
1761         when building GNU tar 1.24 on Solaris 10.
1762
1763 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1764
1765         fdopendir: fix C89 compilation
1766         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
1767         compilers.
1768
1769 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
1770
1771         inttostr: simplify by removing unnecessary redundancy
1772         * lib/anytostr.c: Don't include verify.h.
1773         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
1774         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
1775         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
1776         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
1777         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
1778         Likewise.
1779         * modules/inttostr (Depends-on): Remove 'verify'.
1780
1781 2010-10-23  Bruno Haible  <bruno@clisp.org>
1782
1783         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
1784         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
1785         Reported by Eric Blake.
1786
1787 2010-10-23  Bruno Haible  <bruno@clisp.org>
1788
1789         Tests: Fix LOCALE_JA on MirBSD 10.
1790         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
1791         to an UTF-8 locale.
1792         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
1793         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1794         Reported by Eric Blake.
1795
1796 2010-10-21  Bruno Haible  <bruno@clisp.org>
1797
1798         nl_langinfo test: Avoid test failure on NetBSD 5.
1799         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
1800         Reported by Eric Blake.
1801
1802 2010-10-21  Eric Blake  <eblake@redhat.com>
1803
1804         c-stack: work around libsigsegv 2.8 bug
1805         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
1806         overflow on at least PowerPC64.
1807
1808 2010-10-17  Bruno Haible  <bruno@clisp.org>
1809
1810         userspec: Drop redundant file.
1811         * modules/userspec (Files): Remove lib/inttostr.h.
1812
1813 2010-10-17  Bruno Haible  <bruno@clisp.org>
1814
1815         nl_langinfo tests: Silence some warnings.
1816         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
1817         Reported by Jim Meyering.
1818
1819 2010-10-17  Bruno Haible  <bruno@clisp.org>
1820
1821         Make use of GCC's attribute __alloc_size__.
1822         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
1823         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
1824         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
1825         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
1826         __alloc_size__.
1827         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
1828         Suggested by Jim Meyering.
1829
1830 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
1831
1832         bootstrap: anchor .gitignore entries.
1833         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
1834         with...
1835         (insert_vc_ignore): ... this new function, which prepends `/' to
1836         all .gitignore entries before passing them to
1837         insert_sorted_if_absent.
1838
1839 2010-10-16  Bruno Haible  <bruno@clisp.org>
1840
1841         nextafter: Fix configure check.
1842         * modules/nextafter (configure.ac): Correct expected prototype.
1843
1844 2010-10-16  Bruno Haible  <bruno@clisp.org>
1845
1846         termios: Update documentation.
1847         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
1848
1849 2010-10-16  Bruno Haible  <bruno@clisp.org>
1850
1851         tests: Make them compile with TinyCC.
1852         * tests/test-strstr.c (main): Remove parentheses around array
1853         initializer.
1854
1855 2010-10-15  Eric Blake  <eblake@redhat.com>
1856
1857         ignore-value: make header idempotent
1858         * lib/ignore-value.h: Add double-inclusion guards.
1859         Reported by Stefan Berger.
1860
1861 2010-10-15  Jim Meyering  <meyering@redhat.com>
1862
1863         GNUmakefile: handle "stable" target, not "major"
1864         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
1865         lists in maint.mk and announce-gen.  Without this, "make stable"
1866         would fail to ensure that $(VERSION) is up to date.
1867
1868 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
1869
1870         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
1871         & co.
1872
1873 2010-10-14  Bruno Haible  <bruno@clisp.org>
1874
1875         vasnprintf: Don't set errno to 0.
1876         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
1877         block that sets it to 0.
1878         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1879
1880 2010-10-14  Bruno Haible  <bruno@clisp.org>
1881
1882         socketlib: Fix.
1883         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
1884         gl_PREREQ_SYS_H_WINSOCK2.
1885         Reported by Ian Beckwith <ianb@erislabs.net>.
1886
1887 2010-10-13  Jim Meyering  <meyering@redhat.com>
1888
1889         test-select-stdin.c: avoid warn_unused_result warnings
1890         * tests/test-select-stdin.c: Include "macros.h".
1891         ASSERT that read and fflush succeed.
1892
1893 2010-10-13  Jim Meyering  <meyering@redhat.com>
1894
1895         git-version-gen: do require git-VC'd files in cwd
1896         * build-aux/git-version-gen: Reject a git version string
1897         if there are no commits associated with the current directory.
1898         This avoids an unlikely false-positive (unrelated dir whose parent
1899         repository also contains a tag matching v*), as pointed out
1900         by Giuseppe Scrivano in
1901         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
1902
1903 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
1904
1905         argv-iter: omit nonconforming declaration
1906         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
1907         enum arg_iter_err declaration, which doesn't conform to C99.
1908         Solaris 10 cc warns about this.
1909
1910 2010-10-13  Eric Blake  <eblake@redhat.com>
1911
1912         termios: fix compilation on mingw
1913         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
1914         (gl_TERMIOS_H): Adjust it on mingw.
1915         * modules/termios (Makefile.am): Substitute new key.
1916         * lib/termios.in.h (includes): Make include_next conditional.
1917         * doc/posix-headers/termios.texi (termios.h): Update
1918         documentation.
1919         Reported by Daniel P. Berrange.
1920
1921 2010-10-13  Jim Meyering  <meyering@redhat.com>
1922
1923         git-version-gen: don't require that .git/ be in the current dir
1924         * build-aux/git-version-gen: Adjust this script so that it works
1925         when run from any working directory beneath the top-level .git/-
1926         containing directory.  Inspired by a patch from Giuseppe Scrivano,
1927         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
1928
1929         test-select: avoid warn_unused_result warnings
1930         * tests/test-select.c: Include "macros.h".
1931         ASSERT that each call to read, write, and pipe succeeds.
1932         While not technically required, also check each "close".
1933         * modules/select-tests (Files): Add tests/macros.h.
1934
1935         test-symlinkat: remove declaration of unused local
1936         * tests/test-symlinkat.c (main): Remove unused local, "buf".
1937
1938         test-inttostr: avoid shadowing warnings
1939         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
1940         and use malloc rather than the stack for the same reason as
1941         mentioned in the comment justifying the other allocation.
1942
1943 2010-10-11  Bruno Haible  <bruno@clisp.org>
1944
1945         stdlib: Allow multiple gnulib generated replacements to coexist.
1946         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
1947         Reported by Sam Steingold <sds@gnu.org>.
1948
1949 2010-10-11  Jim Meyering  <meyering@redhat.com>
1950
1951         fix a documentation typo
1952         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
1953
1954 2010-10-11  Eric Blake  <eblake@redhat.com>
1955
1956         futimens: work around Solaris 11 bug
1957         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
1958         * tests/test-futimens.h (test_futimens): Enhance, rather than
1959         weaken test.
1960         * doc/posix-functions/futimens.texi (futimens): Document the bug.
1961
1962 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
1963
1964         Indentation.
1965         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
1966         higher-level operators more to the left.
1967
1968 2010-10-11  Jim Meyering  <meyering@redhat.com>
1969
1970         test-futimens: avoid unwarranted test failure on Solaris 5.11
1971         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
1972         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
1973         because it tries to dereference the NULL name argument.
1974
1975 2010-10-11  Bruno Haible  <bruno@clisp.org>
1976
1977         Indentation.
1978         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
1979         indentation.
1980
1981 2010-10-11  Jim Meyering  <meyering@redhat.com>
1982
1983         spawn.in.h: make indentation consistent with parentheses
1984         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
1985         Make indentation consistent with parentheses.
1986
1987 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
1988
1989         Fix mismatched parens in previous commit
1990         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
1991         parens.
1992
1993 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
1994
1995         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
1996
1997         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
1998         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
1999         * lib/malloca.c: Include "verify.h".
2000         (verify1): Remove, replacing with a verify call.
2001         * lib/relocwrapper.c (verify1): Likewise.
2002         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
2003         Likewise.
2004         * modules/malloca (Depends-on): Add 'verify'.
2005         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
2006         * modules/vasnprintf (Depends-on): Add 'verify'.
2007         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
2008         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2009         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2010         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2011         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2012         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2013         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2014
2015         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
2016
2017         Formerly the style was sometimes 2*X - 1, because the C standard
2018         was wrongly thought to disallow ?: in integral constant expressions.
2019         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
2020         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
2021         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
2022         * lib/stdint.in.h (_verify_intmax_size): Likewise.
2023         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
2024         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
2025         verify that time_t cannot be floating.
2026
2027 2010-10-08  Eric Blake  <eblake@redhat.com>
2028
2029         time: enforce recent POSIX ruling that time_t is integral
2030         * lib/time.in.h (__time_t_must_be_integral): Detect any
2031         problematic systems, allowing the rest of gnulib to assume POSIX.
2032
2033 2010-10-08  Jim Meyering  <meyering@redhat.com>
2034
2035         fdopendir: fix a bug on systems lacking openat and /proc support
2036         OpenBSD 4.7 is one such system.  The most noticeable effect was
2037         failure of any application making nontrivial use of fts: rm, du,
2038         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
2039           ./rm: traversal failed: `a': Bad file descriptor
2040         Debugging that, you see that even though FD 6 was closed just
2041         prior to the opendir call in fd_clone_opendir, its resulting
2042         dir->dd_fd was 8, rather than the expected value of 6:
2043
2044         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
2045         93                close (fd);
2046         (gdb) n
2047         94                dir = fd_clone_opendir (dupfd);
2048         (gdb) n
2049         95                saved_errno = errno;
2050         (gdb) p dir->dd_fd
2051         $11 = 8
2052
2053         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
2054         The problem is that on OpenBSD, fd_clone_opendir has to resort
2055         to using the old-style save/restore CWD mechanism, due to its
2056         lack of openat/proc support, and *that* would steal the FD (6)
2057         that opendir was supposed to use.
2058
2059         The fix is to squirrel away the desired FD so that save_cwd uses a
2060         different one, and then free the dest FD right before calling opendir.
2061         That guarantees opendir will use the required file descriptor.
2062
2063         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
2064
2065 2010-10-08  Bruno Haible  <bruno@clisp.org>
2066
2067         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
2068         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
2069
2070 2010-10-08  Bruno Haible  <bruno@clisp.org>
2071
2072         nanosleep: Make replacement POSIX compliant.
2073         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
2074         is out of range.
2075         Reported by Jim Meyering.
2076
2077 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
2078
2079         bootstrap: add hook for altering gnulib.mk, for Bison
2080         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
2081         the Bison bootstrapping process can rewrite file names and variables
2082         in this file before later parts of 'bootstrap' use the file.
2083         Bison wants to include lib/gnulib.mk from the top-level makefile,
2084         so it needs the file names in this file to be relative to the top
2085         level, not relative to lib; plus it needs variable names to be
2086         rewritten.
2087         (slurp): Use the new function.
2088
2089         bootstrap: reformat for readability
2090         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
2091
2092 2010-10-08  Eric Blake  <eblake@redhat.com>
2093
2094         docs: update cygwin progress
2095         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
2096         1.7.7.
2097         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
2098         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
2099         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
2100         * doc/posix-functions/carg.texi (carg): Likewise.
2101         * doc/posix-functions/cargf.texi (cargf): Likewise.
2102         * doc/posix-functions/casin.texi (casin): Likewise.
2103         * doc/posix-functions/casinf.texi (casinf): Likewise.
2104         * doc/posix-functions/casinh.texi (casinh): Likewise.
2105         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
2106         * doc/posix-functions/catan.texi (catan): Likewise.
2107         * doc/posix-functions/catanf.texi (catanf): Likewise.
2108         * doc/posix-functions/catanh.texi (catanh): Likewise.
2109         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
2110         * doc/posix-functions/ccos.texi (ccos): Likewise.
2111         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
2112         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
2113         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
2114         * doc/posix-functions/cexp.texi (cexp): Likewise.
2115         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
2116         * doc/posix-functions/cimag.texi (cimag): Likewise.
2117         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
2118         * doc/posix-functions/clog.texi (clog): Likewise.
2119         * doc/posix-functions/clogf.texi (clogf): Likewise.
2120         * doc/posix-functions/conj.texi (conj): Likewise.
2121         * doc/posix-functions/conjf.texi (conjf): Likewise.
2122         * doc/posix-functions/cpow.texi (cpow): Likewise.
2123         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
2124         * doc/posix-functions/cproj.texi (cproj): Likewise.
2125         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
2126         * doc/posix-functions/creal.texi (creal): Likewise.
2127         * doc/posix-functions/crealf.texi (crealf): Likewise.
2128         * doc/posix-functions/csin.texi (csin): Likewise.
2129         * doc/posix-functions/csinf.texi (csinf): Likewise.
2130         * doc/posix-functions/csinh.texi (csinh): Likewise.
2131         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
2132         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
2133         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
2134         * doc/posix-functions/ctan.texi (ctan): Likewise.
2135         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
2136         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
2137         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
2138         * doc/posix-headers/complex.texi (complex.h): Likewise.
2139
2140 2010-10-07  Jim Meyering  <meyering@redhat.com>
2141
2142         parse-datetime: avoid compilation failure on OpenBSD 4.7
2143         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
2144         This works around a compilation failure on OpenBSD 4.7:
2145         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
2146
2147 2010-10-07  Eric Blake  <eblake@redhat.com>
2148
2149         docs: update cygwin progress
2150         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
2151         1.7.6.
2152         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
2153         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
2154         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
2155         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
2156         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
2157         Likewise.
2158         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
2159         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
2160         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
2161         Likewise.
2162         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
2163         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
2164         Likewise.
2165         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
2166         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
2167         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
2168         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
2169         Likewise.
2170         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
2171         Likewise.
2172         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
2173
2174         docs: update parse-datetime history
2175         * doc/parse-datetime.texi (Authors of parse_datetime): Better
2176         documentation of this function's history and alternatives.
2177
2178         cygwin: use more robust version check
2179         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
2180         exclude an eventual cygwin 1.9.1.
2181         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2182         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
2183         (gl_FUNC_STRCASESTR): Likewise.
2184         Reported by Bruno Haible.
2185
2186 2010-10-06  Bruno Haible  <bruno@clisp.org>
2187
2188         string, sys_select: Avoid #including large headers unless necessary.
2189         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
2190         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
2191         OSF/1, BeOS, Haiku.
2192         Reported by Jim Meyering.
2193
2194 2010-10-05  Eric Blake  <eblake@redhat.com>
2195
2196         memmem, strstr, strcasestr: fix bug with long periodic needle
2197         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
2198         periodic needle having false positive.
2199         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
2200         and cygwin 1.7.7.
2201         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
2202         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
2203         (gl_FUNC_STRCASESTR): Likewise.
2204         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2205         * tests/test-memmem.c (main): Expose the bug.
2206         * tests/test-strcasestr.c (main): Likewise.
2207         * tests/test-strstr.c (main): Likewise.
2208         * tests/test-c-strcasestr.c (main): Likewise.
2209         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
2210         * doc/posix-functions/strstr.texi (strstr): Likewise.
2211         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2212         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
2213
2214 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2215
2216         parse-datetime: do some more renaming
2217         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
2218         parse_datetime, not get_date.  Mention the renaming.
2219         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
2220         in comments.
2221         * m4/bison.m4: Likewise.
2222
2223 2010-10-05  Eric Blake  <eblake@redhat.com>
2224
2225         parse-datetime: better name than get_date
2226         * NEWS: Reword the deprecation notice.
2227         * modules/get_date: Rename to modules/parse-datetime.
2228         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
2229         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
2230         * lib/get_date.y: Rename to lib/parse-datetime.y.
2231         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
2232         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
2233         * doc/getdate.texi: Provide fallback wrapper.
2234         * lib/getdate.h: Move guts, and wrap...
2235         * lib/parse-datetime.h: ...new file.
2236         * lib/parse-datetime.y (get_date): Rename...
2237         (parse_datetime): ...to this.
2238         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
2239         (gl_PARSE_DATETIME): ...to this.
2240         * doc/posix-functions/getdate.texi (get_date): Provide fallback
2241         documentation.
2242         * modules/getdate (Files): Provide fallback docs and header.
2243         (Notice, Depends-on): Update references.
2244         * tests/test-parse-datetime.c: Likewise.
2245         * DEPENDENCIES: Likewise.
2246         * MODULES.html.sh (Date and time <time.h>): Likewise.
2247         * doc/parse-datetime.texi (Date input formats)
2248         (Authors of parse_datetime): Likewise.
2249         * modules/parse-datetime (Files, configure.ac, Makefile.am)
2250         (Include): Likewise.
2251         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
2252         * gnulib-tool: Likewise.
2253         * m4/bison.m4 (gl_BISON): Likewise.
2254         Suggested by Bruno Haible.
2255
2256 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2257
2258         more ports to Solaris tr, which needs [] around ranges
2259         * gnulib-tool: Solaris tr needs [] around ranges.
2260         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2261         * tests/test-pipe-filter-gi1.c (main): Likewise.
2262         * tests/test-pipe-filter-ii1.c (main): Likewise.
2263
2264 2010-10-05  Eric Blake  <eblake@redhat.com>
2265
2266         bootstrap: fix Solaris regression
2267         * build-aux/bootstrap (check_versions): Solaris tr still needs []
2268         around ranges.
2269         Reported by Pádraig Brady.
2270
2271         bootstrap: work with pkg-config
2272         * build-aux/bootstrap (check_versions): Also transliterate - in
2273         prerequisite name.
2274         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
2275         prerequisites that were already found, to avoid confusion.
2276         Reported by Justin Clift.
2277
2278         faccessat: remove unused wrappers
2279         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
2280         presence of these wrappers dragged in -lgen on Solaris.
2281         Reported by Clemens Brogi; fix suggested by Paul Eggert.
2282
2283 2010-10-05  Jim Meyering  <meyering@redhat.com>
2284
2285         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
2286         * Makefile (sc_pragma_columns): New syntax-check rule.
2287
2288 2010-10-04  Bruno Haible  <bruno@clisp.org>
2289
2290         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
2291         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
2292         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
2293         Reported by Bruce Korb and Eric Blake.
2294
2295 2010-10-04  Bruno Haible  <bruno@clisp.org>
2296
2297         threadlib: Make option --with-libpth-prefix work.
2298         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
2299         use $LIBPTH, not just -lpth.
2300
2301 2010-10-04  Bruno Haible  <bruno@clisp.org>
2302
2303         Avoid line length limitation from HP NonStop system header files.
2304         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
2305         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
2306         * lib/ctype.in.h: Likewise.
2307         * lib/dirent.in.h: Likewise.
2308         * lib/errno.in.h: Likewise.
2309         * lib/fcntl.in.h: Likewise.
2310         * lib/float.in.h: Likewise.
2311         * lib/getopt.in.h: Likewise.
2312         * lib/iconv.in.h: Likewise.
2313         * lib/inttypes.in.h: Likewise.
2314         * lib/langinfo.in.h: Likewise.
2315         * lib/locale.in.h: Likewise.
2316         * lib/math.in.h: Likewise.
2317         * lib/netdb.in.h: Likewise.
2318         * lib/netinet_in.in.h: Likewise.
2319         * lib/poll.in.h: Likewise.
2320         * lib/pthread.in.h: Likewise.
2321         * lib/pty.in.h: Likewise.
2322         * lib/sched.in.h: Likewise.
2323         * lib/se-selinux.in.h: Likewise.
2324         * lib/search.in.h: Likewise.
2325         * lib/signal.in.h: Likewise.
2326         * lib/spawn.in.h: Likewise.
2327         * lib/stdarg.in.h: Likewise.
2328         * lib/stddef.in.h: Likewise.
2329         * lib/stdint.in.h: Likewise.
2330         * lib/stdio.in.h: Likewise.
2331         * lib/stdlib.in.h: Likewise.
2332         * lib/string.in.h: Likewise.
2333         * lib/strings.in.h: Likewise.
2334         * lib/sys_file.in.h: Likewise.
2335         * lib/sys_ioctl.in.h: Likewise.
2336         * lib/sys_select.in.h: Likewise.
2337         * lib/sys_socket.in.h: Likewise.
2338         * lib/sys_stat.in.h: Likewise.
2339         * lib/sys_time.in.h: Likewise.
2340         * lib/sys_times.in.h: Likewise.
2341         * lib/sys_utsname.in.h: Likewise.
2342         * lib/sys_wait.in.h: Likewise.
2343         * lib/sysexits.in.h: Likewise.
2344         * lib/termios.in.h: Likewise.
2345         * lib/time.in.h: Likewise.
2346         * lib/unistd.in.h: Likewise.
2347         * lib/wchar.in.h: Likewise.
2348         * lib/wctype.in.h: Likewise.
2349         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
2350         * modules/ctype (Makefile.am): Likewise.
2351         * modules/dirent (Makefile.am): Likewise.
2352         * modules/errno (Makefile.am): Likewise.
2353         * modules/fcntl-h (Makefile.am): Likewise.
2354         * modules/float (Makefile.am): Likewise.
2355         * modules/getopt-posix (Makefile.am): Likewise.
2356         * modules/iconv-h (Makefile.am): Likewise.
2357         * modules/inttypes (Makefile.am): Likewise.
2358         * modules/langinfo (Makefile.am): Likewise.
2359         * modules/locale (Makefile.am): Likewise.
2360         * modules/math (Makefile.am): Likewise.
2361         * modules/netdb (Makefile.am): Likewise.
2362         * modules/netinet_in (Makefile.am): Likewise.
2363         * modules/poll-h (Makefile.am): Likewise.
2364         * modules/pthread (Makefile.am): Likewise.
2365         * modules/pty (Makefile.am): Likewise.
2366         * modules/sched (Makefile.am): Likewise.
2367         * modules/search (Makefile.am): Likewise.
2368         * modules/selinux-h (Makefile.am): Likewise.
2369         * modules/signal (Makefile.am): Likewise.
2370         * modules/spawn (Makefile.am): Likewise.
2371         * modules/stdarg (Makefile.am): Likewise.
2372         * modules/stddef (Makefile.am): Likewise.
2373         * modules/stdint (Makefile.am): Likewise.
2374         * modules/stdio (Makefile.am): Likewise.
2375         * modules/stdlib (Makefile.am): Likewise.
2376         * modules/string (Makefile.am): Likewise.
2377         * modules/strings (Makefile.am): Likewise.
2378         * modules/sys_file (Makefile.am): Likewise.
2379         * modules/sys_ioctl (Makefile.am): Likewise.
2380         * modules/sys_select (Makefile.am): Likewise.
2381         * modules/sys_socket (Makefile.am): Likewise.
2382         * modules/sys_stat (Makefile.am): Likewise.
2383         * modules/sys_time (Makefile.am): Likewise.
2384         * modules/sys_times (Makefile.am): Likewise.
2385         * modules/sys_utsname (Makefile.am): Likewise.
2386         * modules/sys_wait (Makefile.am): Likewise.
2387         * modules/sysexits (Makefile.am): Likewise.
2388         * modules/termios (Makefile.am): Likewise.
2389         * modules/time (Makefile.am): Likewise.
2390         * modules/unistd (Makefile.am): Likewise.
2391         * modules/wchar (Makefile.am): Likewise.
2392         * modules/wctype (Makefile.am): Likewise.
2393
2394 2010-10-04  Bruno Haible  <bruno@clisp.org>
2395
2396         read-file tests: Avoid a test failure on NonStop Kernel.
2397         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
2398         a regular file.
2399         Reported by Joachim Schmitz <schmitz@hp.com>.
2400
2401 2010-10-03  Bruno Haible  <bruno@clisp.org>
2402
2403         gnulib-tool: Fixes for --create-testdir with --libtool.
2404         * gnulib-tool (func_get_automake_snippet): Don't augment
2405         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
2406         an executable.
2407         (func_create_testdir): Handle module 'alloca' like func_import.
2408         Reported by Bruce Korb <bruce.korb@gmail.com>.
2409
2410 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
2411
2412         Avoid some lines longer than 80 characters.
2413         * lib/stdint.in.h: Break long comment lines.
2414         * lib/math.in.h: Likewise.
2415         (_GL_NUM_UINT_WORDS): New macro, for readability.
2416         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
2417         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
2418         * lib/stdlib.in.h: Likewise.
2419         * lib/spawn.in.h: Likewise.
2420         * lib/sys_socket.in.h: Update an URL.
2421         * lib/sys_stat.in.h: Break long line.
2422
2423 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
2424
2425         Improve pmccabe2html.
2426         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
2427         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
2428         when the sources change. Remove the line in the HTML about "Used
2429         ranges" (which implied that there might be other unused ranges),
2430         rename "Resume" to "Summary" (easier to understand for more users).
2431         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
2432         styles, and some unnecessary blank lines.
2433
2434 2010-10-03  Bruno Haible  <bruno@clisp.org>
2435             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
2436
2437         acl: Add support for ACLs on NonStop Kernel.
2438         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
2439         Check whether the function aclsort() exists.
2440         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
2441         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
2442         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2443         (acl_nontrivial [HAVE_ACLSORT]: New function.
2444         (file_has_acl): Implement for NonStop Kernel.
2445         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2446         (qset_acl): Implement for NonStop Kernel.
2447         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
2448         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2449         (main): Implement for NonStop Kernel.
2450         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
2451         Kernel. Handle this flavor.
2452         * tests/test-set-mode-acl.sh: Likewise.
2453         * tests/test-copy-acl.sh: Likewise.
2454         * tests/test-copy-file.sh: Likewise.
2455
2456 2010-10-03  Bruno Haible  <bruno@clisp.org>
2457
2458         Info about ACLs on NonStop Kernel.
2459         * doc/acl-resources.txt: Add info about NonStop Kernel.
2460         References by Joachim Schmitz <schmitz@hp.com>.
2461
2462 2010-10-02  Bruno Haible  <bruno@clisp.org>
2463
2464         Define missing EDQUOT on NonStop Kernel.
2465         * lib/errno.in.h (EDQUOT): Assign a value if missing.
2466         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
2467         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
2468         missing.
2469         * doc/posix-headers/errno.texi: Mention the NSK bug.
2470         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
2471         Reported by Joachim Schmitz <schmitz@hp.com>.
2472
2473 2010-10-02  Bruno Haible  <bruno@clisp.org>
2474
2475         Update doc for POSIX:2008.
2476         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
2477         Update URL of POSIX specification.
2478
2479 2010-10-02  Bruno Haible  <bruno@clisp.org>
2480
2481         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
2482         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
2483         from gnulib, not from Automake.
2484
2485 2010-10-02  Bruno Haible  <bruno@clisp.org>
2486
2487         New module 'system-posix'.
2488         * modules/system-posix: New file.
2489         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
2490         module is present.
2491         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
2492         GNULIB_SYSTEM_POSIX.
2493         * modules/stdlib (Depends-on): Remove sys_wait.
2494         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
2495         * doc/posix-functions/system.texi: Mention the new module.
2496         * doc/posix-headers/stdlib.texi: Likewise.
2497         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
2498         define test_sys_wait_macros to a no-op.
2499         Reported by Sam Steingold <sds@gnu.org>.
2500
2501 2010-09-30  Bruno Haible  <bruno@clisp.org>
2502
2503         More renaming from 'getdate' to 'get_date'.
2504         * doc/get_date.texi: Renamed from doc/getdate.texi.
2505         * modules/get_date (Files): Update.
2506         * MODULES.html.sh (Date and time <time.h>): Update.
2507         * DEPENDENCIES: Update.
2508         * gnulib-tool: Update comment.
2509         * m4/bison.m4 (gl_BISON): Likewise.
2510         * m4/get_date.m4 (gl_GET_DATE): Likewise.
2511
2512 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
2513
2514         bootstrap: support ACLOCAL_FLAGS during aclocal
2515         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
2516         can add additional -I dir for third-party .m4 files.
2517
2518 2010-09-30  Eric Blake  <eblake@redhat.com>
2519
2520         bootstrap: use glibtoolize on MacOS
2521         * build-aux/bootstrap (check_versions): Convert libtool into
2522         libtoolize.
2523         (tool search): Move libtool check earlier, and look for
2524         glibtoolize for MacOS.
2525         (gnulib_tool_options): Auto-add --libtool when appropriate.
2526         Reported by Justin Clift.
2527
2528         poll: fix typo that broke test on MacOS
2529         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
2530         Reported by Justin Clift.
2531
2532         getdate: rename to get_date
2533         Note: getdate.h is not renamed, to minimize client impact.
2534         * modules/getdate: Mark obsolete.  Move old contents...
2535         * modules/get_date: ...to new module name.
2536         * modules/getdate-tests: Move...
2537         * modules/get_date-tests: ...here.
2538         * m4/getdate.m4: Move...
2539         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
2540         * lib/getdate.y: Move...
2541         * lib/get_date.y: ...here.
2542         * tests/test-getdate.c: Move...
2543         * tests/test-get_date.c: ...here.
2544         * doc/posix-functions/getdate.texi (getdate): Update name.
2545         * NEWS: Mention the change.
2546
2547 2010-09-29  Bruno Haible  <bruno@clisp.org>
2548
2549         Separate the module 'waitpid' from the module 'sys_wait'.
2550         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
2551         present.
2552         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
2553         gl_MODULE_INDICATOR_FOR_TESTS.
2554         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
2555         * modules/sys_wait (Depends-on): Remove waitpid.
2556         (Makefile.am): Substitute GNULIB_WAITPID.
2557         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
2558         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
2559         signature only if the 'waitpid' module is present.
2560         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
2561         * NEWS: Mention the change.
2562         * modules/grantpt (Depends-on): Add waitpid.
2563         * modules/wait-process (Depends-on): Likewise.
2564
2565 2010-09-29  Bruno Haible  <bruno@clisp.org>
2566
2567         More tests for module 'sys_wait'.
2568         * modules/sys_wait-c++-tests: New file.
2569         * tests/test-sys_wait-c++.cc: New file.
2570         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
2571         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2572
2573 2010-09-29  Bruno Haible  <bruno@clisp.org>
2574
2575         New module 'waitpid'.
2576         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
2577         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
2578         Don't include <process.h>.
2579         (waitpid): Declare only, using modern idiom.
2580         * m4/waitpid.m4: New file.
2581         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
2582         * modules/waitpid: New file.
2583         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
2584         (Makefile.am): Update.
2585         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2586
2587 2010-09-28  Bruno Haible  <bruno@clisp.org>
2588
2589         poll: Assume ANSI C.
2590         * lib/poll.c (poll): Use an ANSI C declaration.
2591
2592 2010-09-28  Bruno Haible  <bruno@clisp.org>
2593
2594         poll-h: Create poll.h on all platforms.
2595         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
2596         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
2597         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
2598         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
2599         (gl_REPLACE_POLL_H): Don't set POLL_H.
2600         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
2601         * modules/poll-h (Depends-on): Add include_next.
2602         (Makefile.am): Create poll.h unconditionally. Substitute also
2603         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
2604
2605 2010-09-28  Bruno Haible  <bruno@clisp.org>
2606
2607         Tests for module 'poll-h'.
2608         * modules/poll-h-c++-tests: New file.
2609         * tests/test-poll-h-c++.cc: New file.
2610
2611         Tests for module 'poll-h'.
2612         * modules/poll-h-tests: New file.
2613         * tests/test-poll-h.c: New file.
2614
2615 2010-09-28  Bruno Haible  <bruno@clisp.org>
2616
2617         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
2618         * modules/poll-h (Depends-on): Add 'extensions'.
2619
2620 2010-09-28  Bruno Haible  <bruno@clisp.org>
2621
2622         New module 'poll-h'.
2623         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
2624         (poll): Use modern idiom.
2625         * modules/poll-h: New file.
2626         * modules/poll (Files): Remove lib/poll.in.h.
2627         (Depends-on): Add poll-h.
2628         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
2629         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
2630         * m4/poll_h.m4: New file.
2631         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
2632         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
2633         and invoke gl_REPLACE_POLL_H.
2634         * lib/poll.c: Use common idiom.
2635         * tests/test-poll.c: Likewise.
2636         * doc/posix-headers/poll.texi: Mention the poll-h module.
2637         Suggested by Eric Blake.
2638
2639 2010-09-26  Bruno Haible  <bruno@clisp.org>
2640
2641         sys_wait: Implement WSTOPSIG.
2642         * lib/sys_wait.in.h (WSTOPSIG): New macro.
2643         Reported by Simon Josefsson.
2644
2645 2010-09-26  Simon Josefsson  <simon@josefsson.org>
2646
2647         stdlib, sys_wait: Avoid compilation error on mingw.
2648         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
2649
2650 2010-09-26  Bruno Haible  <bruno@clisp.org>
2651
2652         stdlib tests: Avoid code duplication.
2653         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
2654         * modules/sys_wait-tests (Files): Likewise.
2655         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
2656         * tests/test-stdlib.c: Include test-sys_wait.h.
2657         (main): Invoke test_sys_wait_macros.
2658         * tests/test-sys_wait.c: Include test-sys_wait.h.
2659         (main): Invoke test_sys_wait_macros.
2660
2661 2010-09-25  Simon Josefsson  <simon@josefsson.org>
2662
2663         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
2664         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
2665         sure Windows sockets are working before calling getaddrinfo.
2666         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
2667         * doc/gnulib.texi (Windows sockets): Fix typo.
2668
2669 2010-09-25  Bruno Haible  <bruno@clisp.org>
2670
2671         Tests for module 'regex-quote'.
2672         * modules/regex-quote-tests: New file.
2673         * tests/test-regex-quote.c: New file.
2674
2675         New module 'regex-quote'.
2676         * lib/regex-quote.h: New file.
2677         * lib/regex-quote.c: New file.
2678         * modules/regex-quote: New file.
2679         Suggested by Reuben Thomas <rrt@sc3d.org>.
2680
2681 2010-09-24  Bruno Haible  <bruno@clisp.org>
2682
2683         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
2684         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
2685
2686 2010-09-23  Bruno Haible  <bruno@clisp.org>
2687
2688         setenv: Relax license.
2689         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
2690         Blake.
2691         Requested by Eric Blake.
2692
2693 2010-09-22  Bruno Haible  <bruno@clisp.org>
2694
2695         termios: Relax license.
2696         * modules/termios (License): Change to LGPLv2+.
2697         Requested by Eric Blake.
2698
2699 2010-09-22  Bruno Haible  <bruno@clisp.org>
2700
2701         threadlib: Allow the package to change the default to 'no'.
2702         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
2703         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
2704         Reported by Paul Eggert.
2705
2706 2010-09-22  Pádraig Brady  <P@draigbrady.com>
2707             Bruno Haible  <bruno@clisp.org>
2708
2709         Fix endless loop in mbmemcasecoll.
2710         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
2711         byte.
2712         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
2713
2714 2010-09-22  Bruno Haible  <bruno@clisp.org>
2715
2716         Tests for module 'memcoll'.
2717         * modules/memcoll-tests: New file.
2718         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
2719
2720         memcoll, xmemcoll: Clarify size vs. length.
2721         * modules/memcoll.c (memcoll0): Clarify specification.
2722         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
2723         passed to collate_error.
2724
2725 2010-09-22  Bruno Haible  <bruno@clisp.org>
2726
2727         Tests for module 'memcasecmp'.
2728         * modules/memcasecmp-tests: New file.
2729         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
2730
2731 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2732
2733         * lib/pthread.in.h: Add split double-inclusion guard, and include
2734         system <pthread.h> if there is one.  Use @@-style as in other
2735         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
2736         pthread.h doesn't.
2737         (pthread_mutexattr_destroy, pthread_mutexattr_init):
2738         (pthread_mutexattr_settype, pthread_mutex_trylock):
2739         New static inline functions, if there's no system <pthread.h>.
2740         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
2741         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
2742         Approximate with mutexes if the system lacks spinlocks, as in
2743         MacOS.
2744         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
2745         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
2746         @@-style.  Check for spinlocks separately.
2747         (gl_PTHREAD_DEFAULTS): New macro.
2748         * modules/pthread: Redo to use a more typical style for in.h files.
2749
2750 2010-09-21  Eric Blake  <eblake@redhat.com>
2751
2752         net_if: enhance tests
2753         * tests/test-net_if.c (main): Move signature checks earlier.
2754         Print failures to stderr.
2755         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
2756         Document the bug that we do not yet fix.
2757
2758 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
2759
2760         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
2761         about gnulib, not GSS.
2762
2763 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
2764
2765         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
2766         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
2767         for Emacs.
2768         * build-aux/pmccabe2html: Make Makefile.am example code more
2769         cut-and-paste friendly.
2770
2771 2010-09-21  Simon Josefsson  <simon@josefsson.org>
2772
2773         * tests/test-net_if.c: New file.
2774         * modules/net_if-tests: New file.
2775
2776 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
2777
2778         pthread: add pthread_spin_destroy
2779         * lib/pthread.in.h (pthread_spin_destroy): New function.
2780
2781 2010-09-19  Bruno Haible  <bruno@clisp.org>
2782
2783         gnulib-tool: Fix --help output.
2784         * gnulib-tool (func_usage): Fix help message.
2785         Reported by Reuben Thomas <rrt@sc3d.org>.
2786
2787 2010-09-18  Jim Meyering  <meyering@redhat.com>
2788
2789         maint.mk: avoid unexpanded \n in two diagnostics
2790         * top/maint.mk (sc_prohibit_always_true_header_tests):
2791         Don't use a literal \n in a halt=... assignment.  It would not be
2792         expanded, and the two \n bytes would appear in the diagnostic output
2793         rather than the desired newline.  Use halt=$$(printf ... instead.
2794         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
2795
2796 2010-09-18  Bruno Haible  <bruno@clisp.org>
2797
2798         netinet_in: Doc tweak.
2799         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
2800         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2801
2802 2010-09-18  Jim Meyering  <meyering@redhat.com>
2803
2804         init.sh: correct an outdated comment
2805         * tests/init.sh (create_exe_shims_):  s/function/alias/
2806
2807         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
2808         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
2809         a file named "*.exe" is removed between the glob expansion and the
2810         processing of that oddly named file.
2811
2812 2010-09-17  Eric Blake  <eblake@redhat.com>
2813
2814         mirbsd: add some more support
2815         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
2816         in BSD family.
2817         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
2818         devices as OpenBSD.
2819         * m4/host-os.m4 (mirbsd): Add MirBSD.
2820
2821         tests: fix unportable assumption on sys/wait.h
2822         * tests/test-sys_wait.c (main): Relax test.
2823         * tests/test-stdlib.c (main): Likewise.
2824
2825         init.sh: accomodate directory with no .exes
2826         * tests/init.sh: Accomodate directory containing only scripts.
2827
2828         tests: avoid compiler warning
2829         * tests/test-stdlib.c (main): Use the variable.
2830
2831         fdutimens, fdutimensat: update signature, again
2832         * lib/utimens.h (gl_futimens): Delete, and move signature...
2833         (fdutimens): ...here.
2834         (fdutimensat): Rearrange signature.
2835         (lutimensat): Rename variable for clarity.
2836         * lib/fdutimensat.c (fdutimensat): Update signature.
2837         * lib/utimens.c (fdutimens): Likewise.
2838         (gl_futimens): Delete.
2839         (utimens, lutimens): Update callers.
2840         * lib/futimens.c (futimens): Likewise.
2841         * tests/test-fdutimensat.c: Likewise.
2842         * tests/test-utimens.c: Likewise.
2843         * tests/test-futimens.h: Update comment.
2844         * NEWS: Mention this.
2845         Suggested by Paul Eggert.
2846
2847 2010-09-17  Bruno Haible  <bruno@clisp.org>
2848
2849         Take over the maintenance of some older macros from Autoconf.
2850         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
2851         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
2852         GNU Autoconf.
2853         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
2854         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
2855
2856 2010-09-17  Eric Blake  <eblake@redhat.com>
2857
2858         fdutimensat: drop atflag validation
2859         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
2860         with valid fd, to close a race scenario where futimens is
2861         unsupported and FILE was replaced by a symlink.
2862         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
2863         accordingly.
2864         Suggested by Paul Eggert.
2865
2866 2010-09-16  Bruno Haible  <bruno@clisp.org>
2867
2868         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
2869         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
2870
2871 2010-09-16  Bruno Haible  <bruno@clisp.org>
2872
2873         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
2874         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
2875         login_tty exists.
2876         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2877
2878 2010-09-16  Bruno Haible  <bruno@clisp.org>
2879
2880         login_tty: Make the replacement code work on BSD systems.
2881         * lib/login_tty.c: Include <sys/ioctl.h>.
2882         (login_tty): Use ioctl TIOCSCTTY when available.
2883         * modules/login_tty (Depends-on): Add sys_ioctl.
2884         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2885
2886 2010-09-16  Bruno Haible  <bruno@clisp.org>
2887
2888         login_tty: Stricter unit test.
2889         * modules/login_tty-tests (Depends-on): Add tcgetsid.
2890         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
2891         and tcgetsid() after login_tty.
2892         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2893
2894 2010-09-16  Bruno Haible  <bruno@clisp.org>
2895
2896         New module 'tcgetsid'.
2897         * lib/tcgetsid.c: New file.
2898         * m4/tcgetsid.m4: New file.
2899         * modules/tcgetsid: New file.
2900         * modules/termios (Depends-on): Add c++defs, warn-on-use.
2901         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
2902         GNULIB_TCGETSID, HAVE_TCGETSID.
2903         * lib/termios.in.h: Include <sys/types.h>.
2904         (tcgetsid): New declaration.
2905         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
2906         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
2907         * doc/posix-functions/tcgetsid.texi: Mention the new module.
2908         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
2909
2910 2010-09-16  Bruno Haible  <bruno@clisp.org>
2911
2912         Tests for module 'termios'.
2913         * modules/termios-c++-tests: New file.
2914         * modules/termios-tests: New file.
2915         * tests/test-termios-c++.cc: New file.
2916         * tests/test-termios.c: New file.
2917
2918         New module 'termios'.
2919         * modules/termios: New file.
2920         * lib/termios.in.h: New file.
2921         * m4/termios_h.m4: New file.
2922         * doc/posix-headers/termios.texi: Mention the new module.
2923
2924 2010-09-16  Eric Blake  <eblake@redhat.com>
2925
2926         fdutimensat: add an atflag parameter
2927         * lib/fdutimensat.c (fdutimensat): Add new parameter.
2928         * lib/utimens.h (fdutimensat): Update prototype.
2929         * tests/test-fdutimensat.c: Adjust test to match.
2930         * NEWS: Document the change.
2931         Suggested by Paul Eggert.
2932
2933 2010-09-16  Bruno Haible  <bruno@clisp.org>
2934
2935         Fix typos in comments.
2936         * lib/striconveh.h: Fix typo in comment.
2937         * lib/login_tty.c (login_tty): Likewise.
2938
2939 2010-09-15  Bruno Haible  <bruno@clisp.org>
2940
2941         stdlib: clarify MirBSD WEXITSTATUS bug
2942         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
2943         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2944
2945 2010-09-15  Eric Blake  <eblake@redhat.com>
2946
2947         stdlib: work around MirBSD WEXITSTATUS bug
2948         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
2949         * modules/stdlib (Depends-on): Add sys_wait.
2950         * tests/test-sys_wait.c (main): Enhance test.
2951         * tests/test-stdlib.c (main): Likewise.
2952         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
2953
2954         docs: mention MacOS issue with WEXITSTATUS(constant)
2955         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
2956         issue.
2957         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2958
2959         strnlen: add tests
2960         * modules/strnlen-tests: New file.
2961         * tests/test-strnlen.c: Likewise.
2962
2963 2010-09-14  Bruno Haible  <bruno@clisp.org>
2964
2965         unistr/base: Avoid link errors when module 'libunistring' is also used.
2966         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
2967         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
2968         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
2969         Declare also when HAVE_LIBUNISTRING is set.
2970         Reported by Pádraig Brady <P@draigbrady.com>.
2971
2972 2010-09-14  Eric Blake  <eblake@redhat.com>
2973
2974         test-rawmemchr: make more robust
2975         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
2976         (Depends-on, configure.ac): Add needed prerequisites to use it.
2977         * modules/memchr-tests (Files, Depends-on, configure.ac):
2978         Likewise, to avoid implicit reliance on memchr module prereqs.
2979         * tests/test-memchr.c (main): Ensure proper masking.
2980         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
2981         reads.
2982
2983         memchr: detect glibc Alpha bug
2984         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
2985         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
2986         Alpha.
2987         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
2988         * tests/test-memchr.c (main): Enhance test.
2989         Reported by Nelson H. F. Beebe.
2990
2991 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
2992
2993         fts, getcwd, glob: audit for dirfd returning -1
2994         * lib/fts.c (opendir): Remove #define; no longer used.
2995         (opendirat): New arg PDIR_FD.  All callers changed.
2996         (fts_build, _opendir2): Use new opendirat to avoid the need for
2997         dirfd, or for checking whether dirfd returns a negative value.
2998         Don't use opendir; always use openat followed by fdopendir.
2999         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
3000         it.
3001         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
3002         returns -1 here.
3003         * modules/fts (Depends-on): Remove dirfd.
3004         * modules/getcwd (Depends-on): Likewise.
3005
3006 2010-09-13  Eric Blake  <eblake@redhat.com>
3007
3008         float: fix broken MirBSD header
3009         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
3010         * doc/posix-headers/float.texi (float.h): Document it.
3011
3012 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3013
3014         fts: use O_NOFOLLOW to avoid race condition when opening a directory
3015         * lib/fts.c (opendirat): New arg extra_flags.
3016         (__opendir2): Use it to avoid following symlinks when opening
3017         a directory, if symlinks are not supposed to be followed.  See
3018         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
3019
3020         fdopendir: preserve argument fd before returning
3021         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
3022         (fdopendir_with_dup, fd_clone_opendir): New static functions.
3023         (fdopendir): Use them, arranging for FD to be open to the same
3024         directory that it was when it started.  (It might be temporarily
3025         closed while fdopendir is running, so this not thread- or
3026         signal-safe.)  Be careful to do the right thing even when file
3027         descriptors are scarce and dup fails with errno == EMFILE.  See
3028         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
3029
3030 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
3031
3032         regex: Pass the system regex if its only problem is 32-bit regoff_t.
3033         * NEWS: Document change.
3034         * m4/regex.m4: Disable test for regoff_t size.
3035
3036 2010-09-13  Jim Meyering  <meyering@redhat.com>
3037
3038         fts: don't operate on an invalid file descriptor after failed dup
3039         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
3040         negative file descriptor.
3041
3042 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
3043
3044         savedir: add streamsavedir, deprecate fdsavedir
3045         * NEWS: Mention deprecation of fdsavedir.
3046         * lib/savedir.c (streamsavedir): New extern function, whose name
3047         ends in "savedir" to be consistent with the others.  This differs
3048         from savedirstream in that it doesn't close its argument.  The
3049         next version of GNU tar will use this instead of fdsavedir, to
3050         avoid some race conditions and conserve file descriptors.
3051         (savedirstream): Reimplement as a wrapper around streamsavedir.
3052         (fdsavedir): Add a comment deprecating this function.  As far as
3053         I know, only GNU tar used it, and GNU tar doesn't need it any more.
3054         * lib/savedir.h (streamsavedir): New decl.
3055         (fdsavedir): Add a comment deprecating this.
3056
3057 2010-09-10  Bruno Haible  <bruno@clisp.org>
3058
3059         langinfo: Fix last commit.
3060         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
3061         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
3062         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3063
3064 2010-09-10  Bruno Haible  <bruno@clisp.org>
3065
3066         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
3067         * lib/progreloc.c (O_EXEC): Define fallback.
3068
3069 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3070
3071         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
3072         * NEWS: Document recent changes to fcntl-h.
3073         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
3074         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
3075         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
3076         Similarly for O_SEARCH; this last was already true, but not documented.
3077         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
3078         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
3079         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
3080         Likewise.
3081         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
3082         is zero, not whether it is defined.
3083         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
3084         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
3085         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
3086
3087 2010-09-10  Bruno Haible  <bruno@clisp.org>
3088
3089         langinfo, nl_langinfo: Fix for IRIX 5.3.
3090         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
3091         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
3092         HAVE_LANGINFO_YESEXPR.
3093         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
3094         HAVE_LANGINFO_YESEXPR.
3095         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
3096         HAVE_LANGINFO_T_FMT_AMPM is 0.
3097         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
3098         HAVE_LANGINFO_YESEXPR is 0.
3099         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
3100         NOEXPR.
3101         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
3102         * doc/posix-functions/nl_langinfo.texi: Likewise.
3103         Reported by Eric Blake.
3104
3105 2010-09-10  Bruno Haible  <bruno@clisp.org>
3106
3107         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
3108         * doc/glibc-functions/login_tty.texi: Mention the include file problem
3109         on FreeBSD 8.0 and OpenBSD 4.6.
3110         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
3111         * m4/pty_h.m4 (gl_PTY_H): Likewise.
3112         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
3113         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
3114         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
3115         ac_includes_default.
3116         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3117
3118 2010-09-09  Eric Blake  <eblake@redhat.com>
3119
3120         strsignal: work around NetBSD bug
3121         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
3122         * lib/string.in.h (includes): Likewise.
3123         * doc/posix-functions/strsignal.texi (strsignal): Document the
3124         bug.
3125         Reported by Nelson H. F. Beebe.
3126
3127         gnulib-tool: work with NetBSD /bin/sh
3128         * gnulib-tool (func_cache_var, func_cache_lookup_module)
3129         (func_get_description, func_get_comment, func_get_status)
3130         (func_get_notice, func_get_applicability, func_get_filelist)
3131         (func_get_dependencies, func_get_autoconf_early_snippet)
3132         (func_get_autoconf_snippet, func_get_automake_snippet)
3133         (func_get_include_directive, func_get_link_directive)
3134         (func_get_license, func_get_maintainer, func_import): Avoid
3135         shell syntax errors from parsing syntax extensions.
3136
3137 2010-09-09  Bruno Haible  <bruno@clisp.org>
3138
3139         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
3140         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
3141         a reliable way to determine whether the 'alias' command works.
3142
3143 2010-09-08  Jim Meyering  <meyering@redhat.com>
3144
3145         init.sh: penalize a set-x-impaired shell; don't disqualify it
3146         * tests/init.sh: Too many shells corrupt application stderr when
3147         you set -x, so we can't afford to disqualify them, since at least
3148         on Irix-6.5, that would disqualify all bourne shells.
3149         Instead, use a two-pass approach.
3150         On the first pass, try to find a shell that meets the stricter
3151         condition that set -x does not corrupt stderr.
3152         If no shell meets the stricter condition, retest each candidate
3153         shell, but without that extra condition.  Finally, when
3154         VERBOSE=yes is requested and set -x might cause trouble, simply
3155         issue a warning and refrain from enabling debug output.
3156
3157 2010-09-08  Eric Blake  <eblake@redhat.com>
3158
3159         unsetenv: fix OpenBSD bug
3160         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
3161         * doc/posix-functions/unsetenv.texi (unsetenv): Update
3162         documentation.
3163         Reported by Jim Meyering.
3164
3165         strtod: work around IRIX 6.5 bug
3166         * lib/strtod.c (strtod): Reparse number on shorter string if
3167         exponent parse was invalid.
3168         * tests/test-strtod.c (main): Add check for "0x1p 2".
3169         Reported by Tom G. Christensen.
3170
3171         getopt: optimize previous patch
3172         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
3173         empty variable.  Speed up awk script.
3174         Reported by Paolo Bonzini.
3175
3176 2010-09-08  Jim Meyering  <meyering@redhat.com>
3177
3178         test.sh: disqualify shells for which set -x corrupts stderr
3179         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
3180         and OpenBSD 4.7.  They make it so with "set -x", environment settings
3181         appear in stderr output.  For example, this command:
3182             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
3183         prints "P=1" on those two systems:
3184
3185 2010-09-08  Bruno Haible  <bruno@clisp.org>
3186
3187         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
3188         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
3189         commands, because some shells ignore redirections when there is an
3190         error in the command lookup.
3191         Reported by Eric Blake.
3192
3193 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
3194
3195         * lib/regex.h: Fix a mention of `regex_compile' (should be
3196         `re_compile_pattern').
3197         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
3198         (re_set_registers): Correct name of parameter in comment.
3199
3200         * doc/regex.texi: Add documentation for missing syntax flags.
3201         Remove commented-out documentation of defunct syntax option
3202         RE_NO_EMPTY_ALTS.
3203         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
3204         Add documentation of re_set_registers.
3205         Document trick to re-use a pattern buffer by setting fastmap manually.
3206         Update documentation of struct re_pattern_buffer per public members.
3207         Uncomment documentation of equivalence class operators and
3208         collating symbol operators, since they are now implemented,
3209         Explain leftmost-longest matching in relation to alternatives.
3210         Tidy documentation of substring matching.
3211         Remove POSIX documentation, which is done better in
3212         glibc, and refer the reader there. Keep BSD API documentation, as
3213         that is not readily available elsewhere.
3214
3215 2010-09-07  Eric Blake  <eblake@redhat.com>
3216
3217         getopt: handle POSIXLY_CORRECT set but not exported
3218         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
3219         export state of POSIXLY_CORRECT, due to bash set -o posix.
3220         Reported by Dustin J. Mitchell.
3221
3222 2010-09-05  Bruno Haible  <bruno@clisp.org>
3223
3224         gnulib-tool: Highlight the changed options.
3225         * gnulib-tool (func_usage): Display the --import, --add-import,
3226         --remove-import explanations in bold font.
3227
3228 2010-09-06  Karl Berry  <karl@gnu.org>
3229
3230         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
3231
3232 2010-09-05  Bruno Haible  <bruno@clisp.org>
3233
3234         uniwidth/width: Update comment.
3235         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
3236         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
3237
3238 2010-09-05  Bruno Haible  <bruno@clisp.org>
3239
3240         isinf, isnan: Relax license.
3241         * modules/isinf (License): Change from GPL to LGPL, with consent from
3242         Ben Pfaff.
3243         * modules/isnan (License): Likewise.
3244         Requested by Ludovic Courtès.
3245
3246 2010-09-04  Bruno Haible  <bruno@clisp.org>
3247
3248         gnulib-tool: Help migration from --import to --add-import or --update.
3249         * gnulib-tool: Emit a verbose error message when --import is used
3250         without any module name.
3251
3252 2010-09-04  Bruno Haible  <bruno@clisp.org>
3253
3254         Update doc about gnulib-tool.
3255         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
3256         'gnulib-tool --update' in more detail.
3257         Reported by Eric Blake.
3258
3259 2010-09-04  Bruno Haible  <bruno@clisp.org>
3260
3261         gnulib-tool: Change --import. New options --add/remove-import.
3262         * gnulib-tool: New options --add-import, --remove-import.
3263         (func_usage): Document them.
3264         (have_associative): Define always.
3265         (func_import): In import mode, don't merge the specified settings with
3266         the cached settings. Implement remove-import mode.
3267         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
3268         Explain when to use them versus --import.
3269         (Simple update): Use --add-import instead of --import.
3270         * NEWS: Mention the change.
3271
3272 2010-09-04  Bruno Haible  <bruno@clisp.org>
3273
3274         * doc/gnulib-tool.texi (Initial import): Update paragraph about
3275         separate gnulib.mk.
3276
3277 2010-09-04  Bruno Haible  <bruno@clisp.org>
3278
3279         gnulib-tool: Don't talk about CVS any more.
3280         * gnulib-tool (func_usage, func_import): Write "version control"
3281         instead of CVS.
3282
3283 2010-09-04  Jim Meyering  <meyering@redhat.com>
3284
3285         maint.mk: avoid obscure sc_copyright_check failure in coreutils
3286         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
3287         false positives (whose names may be ill-chosen) when searching
3288         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
3289         would cause a false-positive.
3290
3291         avoid coreutils "make distcheck" failure
3292         Coreutils tests with an absolute build directory name that contains
3293         a space.  Not quoting this directory name caused a failure.
3294         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
3295         * tests/test-vc-list-files-cvs.sh: Likewise.
3296
3297 2010-09-04  Bruno Haible  <bruno@clisp.org>
3298
3299         gnulib-tool: Avoid error when run in a package without Makefile.am.
3300         * gnulib-tool: When collecting the m4dirs in a package that does not
3301         have a Makefile.am, eliminate those directories that contain no
3302         gnulib-cache.m4. Fix expression that counts these directories.
3303
3304 2010-09-04  Bruno Haible  <bruno@clisp.org>
3305
3306         update-copyright test: Improve output when perl is missing or too old.
3307         * tests/test-update-copyright.sh: Move test of Perl version down after
3308         the test whether Perl exists. Provide an explanation relating Perl's
3309         error message to Automake's SKIP: message.
3310
3311 2010-09-04  Bruno Haible  <bruno@clisp.org>
3312
3313         Don't augment PATH in TESTS_ENVIRONMENT.
3314         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
3315         set abs_aux_dir instead of augmenting PATH.
3316         * modules/vc-list-files-tests (Makefile.am): Likewise.
3317         * tests/test-update-copyright.sh: Augment PATH here.
3318         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
3319         path_prepend_.
3320         * tests/test-vc-list-files-git.sh: Likewise.
3321
3322 2010-09-04  Jim Meyering  <meyering@redhat.com>
3323
3324         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
3325         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
3326
3327 2010-09-04  Bruno Haible  <bruno@clisp.org>
3328
3329         strdup: Fix compilation error in C++ mode.
3330         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
3331         the macro.
3332
3333 2010-09-04  Bruno Haible  <bruno@clisp.org>
3334
3335         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
3336         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
3337         macro into a function.
3338         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3339
3340 2010-09-04  Bruno Haible  <bruno@clisp.org>
3341
3342         Set PATH_SEPARATOR the same way autoconf does.
3343         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
3344         the value of PATH_SEPARATOR the same way autoconf-generated configure
3345         scripts do.
3346         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
3347         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
3348
3349 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3350
3351         Set PATH_SEPARATOR the same way autoconf does.
3352         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
3353         the same way autoconf-generated configure scripts do.
3354         * posix-modules: Likewise.
3355
3356 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3357
3358         hash: fix safe_hasher const typo
3359         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
3360         const; otherwise, there is a type error later.
3361
3362 2010-09-02  Jim Meyering  <meyering@redhat.com>
3363
3364         test-update-copyright.sh: require perl 5.8.0
3365         * tests/test-update-copyright.sh: Require 5.8.0,
3366         which Tom G. Christensen has confirmed is adequate,
3367         while 5.6.1 is not.
3368
3369 2010-09-02  Eric Blake  <eblake@redhat.com>
3370
3371         tests: init.sh improvements for re-exec'ing with zsh
3372         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
3373         -vx through shell re-exec.
3374         Reported by Tom G. Christensen.
3375
3376         wctype: fix typo in previous commit
3377         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
3378         Reported by Ludovic Courtès.
3379
3380 2010-09-02  Jim Meyering  <meyering@redhat.com>
3381
3382         test-update-copyright.sh: skip test if Perl is too old
3383         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
3384         Reported by Tom G. Christensen.
3385
3386 2010-09-02  Bruno Haible  <bruno@clisp.org>
3387
3388         wctype: Avoid compilation error on IRIX 6.5.30.
3389         * lib/wctype.in.h (iswblank): Declare with a replacement if
3390         REPLACE_ISWBLANK is set.
3391         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
3392         declared. Set REPLACE_ISWBLANK.
3393         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
3394         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
3395         * doc/posix-headers/wctype.texi: Likewise.
3396         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3397
3398 2010-09-01  Bruno Haible  <bruno@clisp.org>
3399
3400         New module 'socketlib'.
3401         * modules/socketlib: New file.
3402         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
3403         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
3404         * modules/sockets (Depends-on): Add socketlib.
3405         Suggested by Sam Steingold <sds@gnu.org>.
3406
3407 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3408
3409         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
3410
3411         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
3412         when one needs search access to a directory but not read access.
3413         On systems where it is available, it works in some cases where
3414         O_RDONLY does not, namely on directories that are searchable but
3415         not readable, and which need only to be searchable.  If O_SEARCH
3416         is not available, fall back to the traditional method of using
3417         O_RDONLY.
3418
3419         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
3420         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
3421         when opening a directory that needs only to be searchable.
3422         * lib/chdir-safer.c (chdir_no_follow): Likewise.
3423         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
3424         * lib/openat-proc.c (openat_proc_name): Likewise.
3425         * lib/openat.c (openat_needs_fchdir): Likewise.
3426         * lib/save-cwd.c (save_cwd): Likewise.
3427         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
3428
3429 2010-08-28  Bruno Haible  <bruno@clisp.org>
3430
3431         New module 'host-cpu-c-abi'.
3432         * modules/host-cpu-c-abi: New file.
3433         * m4/host-cpu-c-abi.m4: New file, based on part of
3434         clisp/src/m4/general.m4.
3435         Requested by Sam Steingold <sds@gnu.org>.
3436
3437 2010-08-31  Eric Blake  <eblake@redhat.com>
3438         and Jim Meyering  <meyering@redhat.com>
3439
3440         hash: factor, and guard against misbehaving hasher function
3441         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
3442         of table->hasher's return value.  Also protect against a hash value
3443         so large that adding it to table->bucket results in a NULL pointer.
3444         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
3445         Use it in place of open-coded check-and-abort.
3446
3447 2010-08-30  Bruno Haible  <bruno@clisp.org>
3448
3449         hash: silence spurious clang warning
3450         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
3451         Reported by Eric Blake.
3452
3453 2010-08-30  Eric Blake  <eblake@redhat.com>
3454
3455         strstr, memmem, strcasestr: avoid leaked shell message
3456         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
3457         FreeBSD.
3458         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3459         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3460
3461         tests: silence clang warning
3462         * tests/test-malloca.c (do_allocation): Avoid dead store.
3463
3464 2010-08-29  Bruno Haible  <bruno@clisp.org>
3465
3466         gettext: Fix recent mistake.
3467         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
3468
3469 2010-08-29  Bruno Haible  <bruno@clisp.org>
3470
3471         selinux-h: Offer a --without-selinux option.
3472         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
3473         --without-selinux was specified, skip all tests and define
3474         HAVE_SELINUX_SELINUX_H to 0.
3475         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
3476         set LIB_SELINUX to empty.
3477         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
3478         gl_LIBSELINUX. If --without-selinux was specified, replace
3479         selinux/context.h.
3480         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
3481
3482 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3483             Bruno Haible  <bruno@clisp.org>
3484
3485         Make the module 'realloc-gnu' work again on AIX and OSF/1.
3486         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
3487         of HAVE_REALLOC.
3488         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
3489         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
3490         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
3491         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
3492
3493 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3494             Bruno Haible  <bruno@clisp.org>
3495
3496         Make the module 'calloc-gnu' work again on AIX and OSF/1.
3497         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
3498         HAVE_CALLOC.
3499         * lib/xmalloc.c: Update accordingly.
3500         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
3501         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
3502         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
3503
3504 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3505             Bruno Haible  <bruno@clisp.org>
3506
3507         Make the module 'malloc-gnu' work again on AIX and OSF/1.
3508         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
3509         HAVE_MALLOC.
3510         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
3511         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
3512         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
3513
3514 2010-08-29  Bruno Haible  <bruno@clisp.org>
3515
3516         Update modules list.
3517         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
3518         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
3519         (String handling <string.h>): Add astrxfrm.
3520         (File system functions): Add readlinkat.
3521
3522 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3523
3524         Tests for module 'realloc-gnu'.
3525         * modules/realloc-gnu-tests: New file.
3526         * tests/test-realloc-gnu.c: New file.
3527
3528         Tests for module 'calloc-gnu'.
3529         * modules/calloc-gnu-tests: New file.
3530         * tests/test-calloc-gnu.c: New file.
3531
3532         Tests for module 'malloc-gnu'.
3533         * modules/malloc-gnu-tests: New file.
3534         * tests/test-malloc-gnu.c: New file.
3535
3536 2010-08-28  Bruno Haible  <bruno@clisp.org>
3537
3538         Rename module 'realloc' -> 'realloc-gnu'.
3539         * modules/realloc-gnu: New file, copied from modules/realloc.
3540         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
3541         obsolete.
3542         * modules/mgetgroups (Depends-on): Update.
3543         * doc/posix-functions/realloc.texi: Update.
3544         * NEWS: Mention the change.
3545
3546         Rename module 'calloc' -> 'calloc-gnu'.
3547         * modules/calloc-gnu: New file, copied from modules/calloc.
3548         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
3549         obsolete.
3550         * doc/posix-functions/calloc.texi: Update.
3551         * NEWS: Mention the change.
3552
3553         Rename module 'malloc' -> 'malloc-gnu'.
3554         * modules/malloc-gnu: New file, copied from modules/malloc.
3555         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
3556         obsolete.
3557         * modules/argp (Depends-on): Update.
3558         * modules/regex (Depends-on): Update.
3559         * doc/posix-functions/malloc.texi: Update.
3560         * NEWS: Mention the change.
3561
3562 2010-08-28  Eric Blake  <eblake@redhat.com>
3563
3564         pread, pwrite: add missing dependency
3565         * modules/pread (Depends-on): Add extensions.
3566         * modules/pwrite (Depends-on): Likewise.
3567
3568 2010-08-28  Bruno Haible  <bruno@clisp.org>
3569
3570         unistr/u*-strchr: Fix tests dependencies.
3571         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
3572         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
3573         Reported by Ian Beckwith <ianb@erislabs.net>.
3574
3575 2010-08-28  Bruno Haible  <bruno@clisp.org>
3576
3577         read-file: Don't occupy too much unused memory.
3578         * lib/read-file.c (fread_file): Shrink the buffer at the end.
3579
3580 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
3581             Eric Blake  <eblake@redhat.com>
3582             Bruno Haible  <bruno@clisp.org>
3583
3584         read-file: Avoid memory reallocations with regular files.
3585         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
3586         (fread_file): With regular files, use the remaining length as the
3587         initial buffer size.  Check against overflow.
3588         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
3589         sys_stat.
3590
3591 2010-08-28  Bruno Haible  <bruno@clisp.org>
3592
3593         ftello: Relax license.
3594         * modules/ftello (License): Relax to LGPLv2+.
3595         Reported by Eric Blake.
3596
3597 2010-08-28  Bruno Haible  <bruno@clisp.org>
3598
3599         Avoid relocwrapper link errors due to gnulib replacement functions.
3600         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
3601         function.
3602         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3603
3604 2010-08-28  Bruno Haible  <bruno@clisp.org>
3605
3606         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
3607         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
3608         defined.
3609         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
3610         Suggested by Eric Blake.
3611
3612 2010-08-28  Bruno Haible  <bruno@clisp.org>
3613
3614         sys_socket, netdb: Ensure socklen_t gets defined.
3615         * modules/sys_socket (Depends-on): Add socklen.
3616         * modules/netdb (Depends-on): Likewise.
3617         * modules/getaddrinfo (Depends-on): Remove socklen.
3618         * modules/getsockopt (Depends-on): Likewise.
3619         * modules/setsockopt (Depends-on): Likewise.
3620         * tests/test-sys_socket.c: Check that socklen_t is defined.
3621         * tests/test-netdb.c: Likewise.
3622         * m4/socklen.m4: Update comments.
3623         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3624
3625 2010-08-27  Eric Blake  <eblake@redhat.com>
3626
3627         login_tty: add missing dependency
3628         * modules/login_tty (Depends-on): Add pty.
3629
3630 2010-08-26  Eric Blake  <eblake@redhat.com>
3631
3632         lib-symbol-versions: fix m4 quoting
3633         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
3634         format for AC_LINK_IFELSE.
3635
3636         glob: fix compile test
3637         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
3638
3639         btowc: fix missing file
3640         * modules/btowc (Files): Also ship locale-fr.m4.
3641
3642         lseek: fix link test
3643         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
3644         AC_LINK_IFELSE.
3645
3646         include_next: silence autoconf 2.68 warning
3647         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
3648         AC_COMPILE_IFELSE as special.
3649         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
3650         autoconf < 2.68.
3651
3652         acl: fix compilation test
3653         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
3654         AC_COMPILE_IFELSE.
3655
3656 2010-08-26  Bruno Haible  <bruno@clisp.org>
3657
3658         Modernize AC_TRY_RUN invocations.
3659         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
3660         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
3661         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
3662         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
3663         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
3664         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
3665         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3666         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
3667         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3668         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3669         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
3670         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3671         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3672         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3673         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3674         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
3675         gl_MBRLEN_NUL_RETVAL): Likewise.
3676         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3677         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
3678         Likewise.
3679         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3680         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3681         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3682         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3683         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
3684         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
3685         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
3686         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3687         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
3688         Likewise.
3689         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
3690         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
3691         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3692         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3693         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3694         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3695         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3696         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
3697         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3698         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3699
3700 2010-08-26  Bruno Haible  <bruno@clisp.org>
3701
3702         Modernize AC_TRY_LINK invocations.
3703         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
3704         AC_TRY_LINK.
3705         * m4/argp.m4 (gl_ARGP): Likewise.
3706         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3707         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3708         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
3709         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
3710         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
3711         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
3712         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3713         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3714         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
3715         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
3716         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
3717         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
3718         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
3719         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3720         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
3721         * m4/hostent.m4 (gl_HOSTENT): Likewise.
3722         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3723         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
3724         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
3725         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
3726         Likewise.
3727         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
3728         Likewise.
3729         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
3730         Likewise.
3731         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
3732         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
3733         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
3734         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3735         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3736         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3737         * m4/servent.m4 (gl_SERVENT): Likewise.
3738         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3739         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3740         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3741         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3742         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3743         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3744         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3745         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3746         * modules/tsearch-tests (configure.ac): Likewise.
3747
3748 2010-08-26  Bruno Haible  <bruno@clisp.org>
3749
3750         Modernize AC_TRY_COMPILE invocations.
3751         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
3752         AC_TRY_COMPILE.
3753         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
3754         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
3755         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
3756         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
3757         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
3758         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
3759         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3760         * m4/lock.m4 (gl_LOCK): Likewise.
3761         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
3762         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
3763         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
3764         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3765         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
3766         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
3767         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
3768         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
3769         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
3770         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
3771         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
3772         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
3773         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
3774         extraneous semicolon.
3775
3776 2010-08-26  Jim Meyering  <meyering@redhat.com>
3777
3778         stat-time: relax license LGPL
3779         * modules/stat-time (License): Change from GPL to LGPL,
3780         with consent from all contributors, for use in libguile.
3781         Requested by Ludovic Courtès.
3782
3783 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
3784
3785         poll: return immediately on POLLHUP.
3786         * lib/poll.c (poll): Always set timeout before wait_timeout is
3787         computed.
3788
3789 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3790
3791         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
3792         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
3793         rmdir ("dir/.//"), unlinkat.
3794
3795 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3796
3797         stdbool: avoid spurious failure with modern xlc
3798         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
3799
3800 2010-08-24  Bruno Haible  <bruno@clisp.org>
3801
3802         getloadavg: simplify code
3803         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
3804         gl_have_func. Update comments.
3805
3806 2010-08-24  Eric Blake  <eblake@redhat.com>
3807
3808         getloadavg: don't define SVR4 on cygwin
3809         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
3810         only define SVR4 when -lkvm is required.
3811         Reported by Yaakov Selkowitz.
3812
3813 2010-08-24  Bruno Haible  <bruno@clisp.org>
3814
3815         priv-set: fix comment
3816         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
3817
3818 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3819
3820         priv-set: fix comments
3821         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
3822         to match code, as suggested by David Bartley in:
3823         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
3824
3825 2010-08-23  Eric Blake  <eblake@redhat.com>
3826
3827         stdbool: avoid rejecting clang
3828         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
3829         * tests/test-stdbool.c: Enable more tests if using the system
3830         <stdbool.h> instead of the gnulib replacement.
3831         (main): Move xlc bug test to a runtime test for all compilers.
3832         Reported by Anders Kaseorg.
3833
3834         argz: fix shell quoting issue
3835         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
3836         Reported by Charles Wilson.
3837
3838 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
3839             Erik Faye-Lund <kusmabite@gmail.com>
3840
3841         poll, select: handle ERROR_BROKEN_PIPE.
3842         * lib/poll.c (win32_compute_revents): Return POLLHUP when
3843         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
3844         * lib/select.c (win32_compute_revents): Do not mark a pipe
3845         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
3846
3847 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
3848
3849         fts: allow compilation with C++
3850         * lib/fts_.h: Specify extern "C" linkage with C++.
3851
3852 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3853
3854         Fix gnulib-tool sed script de-commentation for AIX sed.
3855         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
3856         sed.
3857
3858 2010-08-17  Eric Blake  <eblake@redhat.com>
3859
3860         test-stddef: test for (some) offsetof bugs
3861         * tests/test-stddef.c: Enhance test to ensure correct type of
3862         offsetof.
3863         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
3864         that we are not fixing at this time.
3865
3866 2010-08-15  Bruno Haible  <bruno@clisp.org>
3867
3868         stpncpy: Allow stpncpy to be defined as a macro.
3869         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
3870         if it's already correctly declared.
3871         * lib/string.in.h (stpncpy): Undefine before redefining.
3872         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
3873
3874 2010-08-14  Bruno Haible  <bruno@clisp.org>
3875
3876         Rename module 'memxfrm' to 'amemxfrm'.
3877         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
3878         (amemxfrm): Renamed from memxfrm.
3879         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
3880         (amemxfrm): Renamed from memxfrm.
3881         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
3882         * NEWS: Mention the change.
3883         * MODULES.html.sh (String handling <string.h>): Update.
3884         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
3885         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
3886         * lib/unicase/u16-casexfrm.c: Likewise.
3887         * lib/unicase/u32-casexfrm.c: Likewise.
3888         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
3889         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
3890         * lib/uninorm/u16-normxfrm.c: Likewise.
3891         * lib/uninorm/u32-normxfrm.c: Likewise.
3892         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
3893         memxfrm.
3894         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
3895         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
3896         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
3897         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
3898         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
3899         Suggested by Paul Eggert.
3900
3901 2010-08-14  Bruno Haible  <bruno@clisp.org>
3902
3903         Tests for module 'astrxfrm'.
3904         * modules/astrxfrm-tests: New file.
3905         * tests/test-astrxfrm.c: New file.
3906
3907         New module 'astrxfrm'.
3908         * lib/astrxfrm.h: New file.
3909         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
3910         * modules/astrxfrm: New file.
3911
3912 2010-08-14  Reuben Thomas <rrt@sc3d.org>
3913
3914         regex: Tweak doc.
3915         * doc/regex.texi (Overview): Don't mention regex.c.
3916         (GNU Regular Expression Compiling): Likewise.
3917         (Match-end-of-line Operator): Mention 'not_eol'.
3918
3919 2010-08-14  Brian Gough  <bjg@gnu.org>
3920             Bruno Haible  <bruno@clisp.org>
3921
3922         git-merge-changelog: add doc relating to use with bzr and hg.
3923         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
3924
3925 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
3926
3927         pthread: fix pthread.h creation for srcdir != builddir
3928         * modules/pthread (Makefile.am): Fix the rule to work also in a
3929         non-srcdir build.
3930
3931 2010-08-13  Karl Berry  <karl@gnu.org>
3932
3933         * doc/regex.texi (Predefined Syntaxes): @smallexample.
3934         * doc/posix-*/*: force line break before @url of POSIX
3935         specifications.
3936         Suggested by Werner Lemberg.
3937
3938 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3939
3940         strtod: fix const diagnostic
3941         * lib/strtod.c (strtod): Don't assign const char * to char *,
3942         as this elicits a warning from GCC when warnings are enabled.
3943
3944 2010-08-10  Pádraig Brady <P@draigbrady.com>
3945         and Eric Blake  <eblake@redhat.com>
3946
3947         copy-acl: ignore ENOTSUP on HP-UX
3948         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
3949         so that it is available for HP-UX.
3950         * lib/copy-acl.c (qcopy_acl): Use it.
3951         Reported by Patrick M. Callahan.
3952
3953 2010-08-10  Eric Blake  <eblake@redhat.com>
3954
3955         open, chown: relax license
3956         * modules/open (License): Change to LGPLv2+, with consent by all
3957         authors, for use in augeas.
3958         * modules/chown (License): Likewise.
3959         * modules/lchown (Likewise): Likewise.
3960         Requested by Adam Stokes.
3961
3962 2010-08-09  Karl Berry  <karl@gnu.org>
3963
3964         * build-aux/ar-lib: new file, import from Automake.
3965         * config/srclist.txt: autocheck for updates.
3966
3967 2010-08-09  Eric Blake  <eblake@redhat.com>
3968
3969         readlinkat: adjust client modules
3970         * modules/areadlinkat (Depends-on): Use readlinkat, not
3971         symlinkat.
3972         * modules/areadlinkat-with-size (Depends-on): Likewise.
3973
3974         mknod: be more vocal about danger of running tests as root
3975         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
3976         root, since that is just asking for problems.
3977         Suggested by Bruno Haible, based on a report by Rainer Tammer.
3978
3979         readlinkat: split into its own module
3980         * modules/symlinkat: Split readlinkat...
3981         * modules/readlinkat: ...into separate module.
3982         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
3983         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
3984         * lib/symlinkat.c (readlinkat): Move...
3985         * lib/readlinkat.c: ...into new file.
3986         * modules/symlinkat-tests: Split readlinkat test...
3987         * modules/readlinkat-tests: ...into separate module.
3988         * tests/test-symlinkat.c: Split...
3989         * tests/test-readlinkat.c: ...into new file.
3990         * NEWS: Document the split.
3991         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
3992         * lib/unistd.in.h (readlinkat): Likewise.
3993         Suggested by Bruno Haible.
3994
3995 2010-08-08  Bruno Haible  <bruno@clisp.org>
3996
3997         memxfrm: Speed up.
3998         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
3999         that usually only one call to strxfrm is necessary for each string
4000         part.
4001         Reported by Paul Eggert <eggert@cs.ucla.edu>.
4002
4003 2010-08-07  Karl Berry  <karl@gnu.org>
4004
4005         * doc/posix-headers/limits.texi,
4006         * doc/posix-functions/malloc.texi,
4007         * doc/posix-functions/strsignal.texi: missing @item.
4008         * doc/ld-version-script.texi: spurious leading i.
4009         * doc/regex.texi (Interval Operators): no commas inside @var.
4010
4011 2010-08-01  Bruno Haible  <bruno@clisp.org>
4012
4013         Integrate the regex documentation.
4014         * doc/gnulib.texi: Define 'cn' index.
4015         (Regular expressions): New a chapter that includes regex.texi and
4016         regexprops-generic.texi.
4017         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
4018         syntax.
4019
4020         Whitespace cleanup.
4021         * doc/regex.texi: Remove trailing spaces.
4022
4023         Add regex documentation.
4024         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
4025         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
4026         Written by Kathy A. Hargreaves and Karl Berry.
4027
4028 2010-08-01  Bruno Haible  <bruno@clisp.org>
4029
4030         link: Update documentation.
4031         * doc/posix-functions/link.texi: Update regarding Solaris.
4032
4033 2010-07-31  Bruno Haible  <bruno@clisp.org>
4034
4035         Update modules list.
4036         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
4037         (String handling <string.h>): Add memcmp2, memxfrm.
4038         (Container data structures): Add xlist, xsublist, xoset.
4039         (Core language properties): Add alignof, unused-parameter.
4040         (Process control, Numeric conversion functions <stdlib.h>): Renamed
4041         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
4042         (Unibyte characters <ctype.h>): New section.
4043         (String handling <string.h>): New section.
4044         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
4045         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
4046         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
4047         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
4048         tan, tanh, tanl, y0, y1, yn.
4049         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
4050         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
4051         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
4052         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
4053         unlockpt, vdprintf, vdprintf-posix.
4054         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
4055         (File system functions): Add concat-filename, sys_file, sys_ioctl,
4056         xconcat-filename.
4057         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
4058         getdtablesize, pipe2, pipe2-safer.
4059         (Security): New section.
4060         (Networking functions): Add accept4.
4061         (Signal handling): Add sigpipe.
4062         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
4063         mbmemcasecoll.
4064         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
4065         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
4066         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
4067         pipe-filter-ii.
4068         (Misc): Add argp-version-etc, login_tty, parse-duration.
4069
4070 2010-07-31  Bruno Haible  <bruno@clisp.org>
4071
4072         Improve doc in MODULES.html.
4073         * modules/linkat (Description): Add the word "function".
4074         * modules/mkfifo (Description): Likewise.
4075         * modules/mknod (Description): Likewise.
4076         * modules/remove (Description): Likewise.
4077         * modules/renameat (Description): Likewise.
4078         * modules/stat (Description): Likewise.
4079         * modules/symlink (Description): Likewise.
4080         * modules/unlink (Description): Likewise.
4081
4082 2010-07-31  Bruno Haible  <bruno@clisp.org>
4083
4084         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
4085         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
4086         option --enable/disable-c++ instead of --enable/disable-cxx.
4087         * NEWS: Mention the change.
4088
4089 2010-07-31  Bruno Haible  <bruno@clisp.org>
4090
4091         readlink, areadlink: Relax test a bit.
4092         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
4093         alternative to ENOTDIR.
4094         * tests/test-areadlink.h (test_areadlink): Likewise.
4095         Reported by Rainer Tammer.
4096
4097 2010-07-31  Bruno Haible  <bruno@clisp.org>
4098
4099         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
4100         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
4101         character, perform the search using U_STRCHR.
4102         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
4103         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
4104         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
4105         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
4106         Suggested by Paolo Bonzini.
4107
4108 2010-07-31  Bruno Haible  <bruno@clisp.org>
4109
4110         unistr/u*-strstr: Fix dependencies.
4111         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
4112         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
4113         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
4114
4115 2010-07-31  Bruno Haible  <bruno@clisp.org>
4116
4117         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
4118         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
4119         the beginning of the loop.
4120         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
4121         cases in 'switch' statement.
4122
4123         unistr/u8-strchr: Fix several bugs.
4124         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
4125         the string. When not found, return NULL, not a pointer near the end.
4126
4127         More tests for unistr/u8-strchr.
4128         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
4129         that the function does not read past the first occurrence of the byte
4130         being searched.
4131         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
4132         * tests/unistr/test-u16-strchr.c (main): New function.
4133         * tests/unistr/test-u32-strchr.c (main): New function.
4134
4135 2010-07-31  Bruno Haible  <bruno@clisp.org>
4136
4137         posix-modules: Ignore backup files of documentation files.
4138         * posix-modules: grep only through files named *.texi.
4139
4140 2010-07-31  Bruno Haible  <bruno@clisp.org>
4141
4142         symlinkat: Fix documentation.
4143         * doc/posix-functions/readlinkat.texi: Fix module name.
4144
4145 2010-07-31  Bruno Haible  <bruno@clisp.org>
4146
4147         fchownat: Replace also when chown has the trailing slash bug.
4148         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
4149         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
4150         introduced on 2010-04-10.
4151         Reported by Rainer Tammer.
4152
4153 2010-07-31  Bruno Haible  <bruno@clisp.org>
4154
4155         linkat: Work around AIX 7.1 bug.
4156         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
4157         whether linkat handles trailing slash correctly. If not, replace linkat
4158         and define LINKAT_TRAILING_SLASH_BUG.
4159         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
4160         check whether (fd1,file1) points to a directory if file1 or file2 ends
4161         in a slash. Code taken from lib/link.c.
4162         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
4163         Reported by Rainer Tammer.
4164
4165 2010-07-31  Bruno Haible  <bruno@clisp.org>
4166
4167         Correctly determine whether pow is available in libc on AIX 7 with xlc.
4168         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
4169         This disables an xlc optimization that was causing wrong test results.
4170         Reported by Rainer Tammer.
4171
4172 2010-07-31  Bruno Haible  <bruno@clisp.org>
4173
4174         iconv: Work around AIX 6.1..7.1 bug.
4175         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
4176         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
4177         cross-compiling, guess no on all versions of AIX.
4178         Reported by Rainer Tammer.
4179
4180 2010-07-31  Bruno Haible  <bruno@clisp.org>
4181
4182         readlink: Relax test a bit.
4183         * tests/test-readlink.h (test_readlink): Allow different errno value
4184         when readlink is called with a file name that ends in / and refers to
4185         a file.
4186         Suggested by Eric Blake.
4187         Reported by Rainer Tammer.
4188
4189 2010-07-31  Bruno Haible  <bruno@clisp.org>
4190
4191         copysign: Does not require -lm on glibc systems.
4192         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
4193         gl_COMMON_DOUBLE_MATHFUNC.
4194         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
4195
4196 2010-07-31  Bruno Haible  <bruno@clisp.org>
4197
4198         duplocale: Work around AIX 7.1 bug.
4199         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
4200         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
4201         * lib/duplocale.c (rpl_duplocale): Update comment.
4202         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
4203         Reported by Rainer Tammer.
4204
4205 2010-07-30  Bruno Haible  <bruno@clisp.org>
4206
4207         dirfd: Avoid link error on AIX 7.1.
4208         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
4209         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
4210         exist, set REPLACE_DIRFD.
4211         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
4212         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
4213         * doc/posix-functions/dirfd.texi: Update.
4214         Reported by Rainer Tammer.
4215
4216 2010-07-30  Eric Blake  <eblake@redhat.com>
4217
4218         strtod: next round of AIX fixes
4219         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
4220         exponent.
4221         * tests/test-strtod.c (main): Enhance tests.
4222         * doc/posix-functions/strtod.texi (strtod): Document next bug.
4223         Reported by Rainer Tammer.
4224
4225         futimens: fix configure check
4226         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
4227         Reported by Bruno Haible.
4228
4229 2010-07-30  Bruno Haible  <bruno@clisp.org>
4230
4231         getline: Update regarding AIX.
4232         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
4233         Reported by Rainer Tammer.
4234
4235 2010-07-30  Bruno Haible  <bruno@clisp.org>
4236
4237         wcwidth: Drop replacement on AIX 7.
4238         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
4239         AIX 7.
4240         Reported by Rainer Tammer.
4241
4242 2010-07-30  Bruno Haible  <bruno@clisp.org>
4243
4244         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
4245         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
4246         a 'char *'.
4247         Reported by Rainer Tammer.
4248
4249 2010-07-30  Bruno Haible  <bruno@clisp.org>
4250
4251         unlink: Update regarding AIX.
4252         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
4253         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
4254         Reported by Rainer Tammer.
4255
4256 2010-07-30  Bruno Haible  <bruno@clisp.org>
4257
4258         symlink: Update regarding AIX.
4259         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
4260         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
4261         Reported by Rainer Tammer.
4262
4263 2010-07-30  Bruno Haible  <bruno@clisp.org>
4264
4265         strndup: Update regarding AIX.
4266         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
4267         AIX 7.
4268         Reported by Rainer Tammer.
4269
4270 2010-07-30  Bruno Haible  <bruno@clisp.org>
4271
4272         stat: Update regarding AIX.
4273         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
4274         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
4275         Reported by Rainer Tammer.
4276
4277 2010-07-30  Bruno Haible  <bruno@clisp.org>
4278
4279         truncl: Fix autoconf test.
4280         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
4281         whether truncl works.
4282         Reported by Rainer Tammer.
4283
4284 2010-07-30  Bruno Haible  <bruno@clisp.org>
4285
4286         round: Update regarding AIX.
4287         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
4288         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
4289         Reported by Rainer Tammer.
4290
4291 2010-07-30  Bruno Haible  <bruno@clisp.org>
4292
4293         rename: Update regarding AIX.
4294         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
4295         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
4296         Reported by Rainer Tammer.
4297
4298 2010-07-30  Bruno Haible  <bruno@clisp.org>
4299
4300         printf.m4: Update regarding AIX.
4301         * m4/printf.m4: Update comments regarding AIX.
4302         Reported by Rainer Tammer.
4303
4304 2010-07-30  Bruno Haible  <bruno@clisp.org>
4305
4306         iconv: Update regarding AIX.
4307         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
4308         AIX 7.
4309         Reported by Rainer Tammer.
4310
4311 2010-07-30  Bruno Haible  <bruno@clisp.org>
4312
4313         getopt: Update regarding AIX.
4314         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
4315         no on AIX.
4316         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
4317         Reported by Rainer Tammer.
4318
4319 2010-07-30  Bruno Haible  <bruno@clisp.org>
4320
4321         ldexpl; Update regarding AIX.
4322         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
4323         on AIX 7.
4324         Reported by Rainer Tammer.
4325
4326 2010-07-30  Bruno Haible  <bruno@clisp.org>
4327
4328         frexpl: Update regarding AIX.
4329         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
4330         on AIX 7.
4331         Reported by Rainer Tammer.
4332
4333 2010-07-30  Bruno Haible  <bruno@clisp.org>
4334
4335         open, fopen: Update regarding AIX.
4336         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
4337         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
4338         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
4339         * doc/posix-functions/fopen.texi: Likewise.
4340         Reported by Rainer Tammer.
4341
4342 2010-07-30  Bruno Haible  <bruno@clisp.org>
4343
4344         chown: Update doc regarding AIX.
4345         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
4346         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
4347         Reported by Rainer Tammer.
4348
4349 2010-07-30  Eric Blake  <eblake@redhat.com>
4350
4351         strtod: fix bug in replacement function on AIX
4352         * lib/strtod.c (strtod): Special case broken "0x" parse in
4353         underlying strtod.
4354         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
4355         * doc/posix-functions/strtod.texi (strtod): Likewise.
4356         Reported by Rainer Tammer.
4357
4358 2010-07-30  Bruno Haible  <bruno@clisp.org>
4359
4360         mbrlen: Fix cross-compilation guess for AIX.
4361         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
4362         guess. Leftover from 2008-12-22.
4363
4364 2010-07-30  Bruno Haible  <bruno@clisp.org>
4365
4366         mbrtowc: Fix cross-compilation guess for AIX.
4367         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
4368         guess. Leftover from 2008-12-21.
4369
4370 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
4371
4372         init.sh: work around trap limitation of some shells
4373         * tests/init.sh (setup_): Move exit trap outside of shell function.
4374
4375 2010-07-29  Eric Blake  <eblake@redhat.com>
4376
4377         strtod: aid debugging
4378         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
4379         understanding why strtod is rejected.
4380
4381 2010-07-28  Bruno Haible  <bruno@clisp.org>
4382
4383         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
4384         * lib/unistr/u8-chr.c: Include <string.h>.
4385         * tests/unistr/test-u8-chr.c: Likewise.
4386         * tests/unistr/test-u16-chr.c: Likewise.
4387         * tests/unistr/test-u32-chr.c: Likewise.
4388         * tests/unistr/test-u8-strchr.c: Likewise.
4389         * tests/unistr/test-u16-strchr.c: Likewise.
4390         * tests/unistr/test-u32-strchr.c: Likewise.
4391         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
4392         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
4393         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
4394         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
4395
4396 2010-07-28  Bruno Haible  <bruno@clisp.org>
4397
4398         Use spaces for indentation, not tabs.
4399         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
4400
4401 2010-07-27  Bruno Haible  <bruno@clisp.org>
4402
4403         mbspcasecmp: Fix function specification.
4404         * lib/string.in.h (mbspcasecmp): Fix specification comment.
4405         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
4406         Reported by Eric Blake <eblake@redhat.com>.
4407
4408 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
4409
4410         timespec: use cast and not conditional, as truncation isn't possible
4411         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
4412         instead of a conditional.  Comment about the situation in more detail.
4413         This undoes most of the 2009-10-29 patch.
4414
4415 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
4416
4417         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
4418         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
4419         * lib/unistr/u8-strchr.c: Likewise.
4420         * modules/unistr/u8-chr: Depend on memchr.
4421
4422         unistr/u*-strchr: add tests
4423         * modules/unistr/u8-strchr-tests: New file.
4424         * modules/unistr/u16-strchr-tests: New file.
4425         * modules/unistr/u32-strchr-tests: New file.
4426         * tests/unistr/test-strchr.h: New file.
4427         * tests/unistr/test-u8-strchr.c: New file.
4428         * tests/unistr/test-u16-strchr.c: New file.
4429         * tests/unistr/test-u32-strchr.c: New file.
4430
4431         unistr/u*-chr: test multibyte sequences more
4432         * tests/unistr/test-chr.h: Do complete testing of the characters in the
4433         test vector.
4434         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
4435         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
4436         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
4437
4438         unistr/u*-chr: test multibyte sequences
4439         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
4440
4441         unistr/u*-chr: prepare for multibyte tests
4442         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
4443         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
4444         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
4445         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
4446         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
4447         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
4448
4449 2010-07-18  Bruno Haible  <bruno@clisp.org>
4450
4451         unistr/u8-strchr: Optimize non-ASCII argument case.
4452         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
4453         because the first byte often matches anyway.
4454         Reported by Pádraig Brady <P@draigbrady.com>.
4455
4456 2010-07-15  Karl Berry  <karl@gnu.org>
4457
4458         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
4459
4460 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
4461
4462         getcwd: on Solaris, work better if ancestors are inaccessible
4463         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
4464         buffer and size, try again with a large buffer.  This works better
4465         on Solaris, since its getcwd succeeds even if the path to the root
4466         is inaccessible, and this is helpful in common cases such as .zfs
4467         hidden directories.  Problem reported by J Chapman Flack in
4468         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
4469         Use system getcwd if it's declared, not merely if it's partly
4470         working; use the partly-working test only to avoid needless effort
4471         if the system getcwd fails.
4472         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
4473         comment that was already obsolete and is now even more obsolete.
4474         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
4475         now might call strdup.
4476
4477 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
4478
4479         pthread: Add enough so that coreutils/src/sort.c compiles.
4480         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
4481         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
4482         gnulib. Include <sched.h> and <time.h>, as per POSIX.
4483         Include <sys/types.h>, in case it defines pthread_t.
4484         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
4485         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
4486         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
4487         (pthread_rwlockattr_t, pthread_spinlock_t):
4488         New typedefs, if HAVE_PTHREAD_T is not defined.
4489         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
4490         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
4491         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
4492         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
4493         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
4494         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
4495         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
4496         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
4497         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
4498         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
4499         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
4500         New macros.
4501         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
4502         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
4503         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
4504         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
4505         (pthread_spin_unlock): New dummy functions.
4506         (pthread_create): Return EAGAIN; don't set errno.
4507         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
4508         require AC_C_INLINE.
4509         * modules/pthread (Depends-on): Add sched, time.
4510         (pthread.h): Use AM_V_GEN.
4511
4512 2010-07-13  Bruno Haible  <bruno@clisp.org>
4513
4514         striconveh: Don't malloc memory if the result buffer is sufficient.
4515         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
4516         buffer if its size is sufficient.
4517         Reported by Ludovic Courtès <ludo@gnu.org>.
4518
4519 2010-07-13  Bruno Haible  <bruno@clisp.org>
4520
4521         strtod: Add safety check.
4522         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
4523
4524 2010-07-12  Bruno Haible  <bruno@clisp.org>
4525
4526         Unify tests that set gl_cv_func_ldexpl_no_libm.
4527         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
4528         gl_FUNC_LDEXPL.
4529         (gl_FUNC_LDEXPL): Invoke it.
4530         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4531
4532 2010-07-12  Bruno Haible  <bruno@clisp.org>
4533
4534         Unify tests that set gl_cv_func_ldexp_no_libm.
4535         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
4536         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
4537         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
4538         (configure.ac): Simply invoke gl_FUNC_LDEXP.
4539         * modules/strtod (Files): Add m4/ldexp.m4.
4540
4541 2010-07-12  Bruno Haible  <bruno@clisp.org>
4542
4543         Unify tests that set gl_cv_func_frexpl_no_libm.
4544         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
4545         gl_FUNC_FREXPL_NO_LIBM.
4546         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
4547         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4548
4549 2010-07-12  Bruno Haible  <bruno@clisp.org>
4550
4551         Unify tests that set gl_cv_func_frexp_no_libm.
4552         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
4553         gl_FUNC_FREXP_NO_LIBM.
4554         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
4555         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
4556
4557 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
4558
4559         memcoll: clarify sizes versus lengths, document better, and tweak perf
4560         * lib/memcoll.c (strcoll_loop, memcoll0):
4561         Improve quality of descriptive comments.  Name variables
4562         consistently as to whether they are lengths (which do not include
4563         terminating null) versus sizes (which do).
4564         * lib/xmemcoll.c (xmemcoll0): Likewise.
4565         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
4566         returned when s1size == 0; this is easier to compile and saves
4567         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
4568
4569 2010-07-12  Bruno Haible  <bruno@clisp.org>
4570
4571         Tests for module '_Exit'.
4572         * modules/_Exit-tests: New file.
4573         * tests/test-_Exit.sh: New file.
4574         * tests/test-_Exit.c: New file.
4575
4576         New module '_Exit'.
4577         * lib/stdlib.in.h (__attribute__): New macro.
4578         (_Exit): New declaration.
4579         * lib/_Exit.c: New file.
4580         * m4/_Exit.m4: New file.
4581         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
4582         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
4583         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
4584         * modules/_Exit: New file.
4585         * tests/test-stdlib-c++.cc (_Exit): Check signature.
4586         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
4587
4588 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
4589
4590         strtod: make it more-accurate typically, and don't require libm
4591         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
4592         Include limits.h.  Don't include string.h.
4593         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
4594         (locale_isspace): New function, so that no casts are needed to
4595         check whether *s is a space.
4596         (ldexp): Provide an unused dummy if not available.
4597         (scale_radix_exp, parse_number, underlying_strtod): New functions.
4598         (strtod): Use them.  This implementation prefers to use the
4599         underlying strtod if available, falling back on our own code
4600         only to fix known bugs.  This is more likely to produce an
4601         accurate result.  Also, it avoids the use of libm functions.
4602         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
4603         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
4604         was absent, but it caused a test failure with coreutils.
4605         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
4606         with libm.
4607         * modules/strtod (Makefile.am, Link): libm is no longer needed.
4608         * modules/strtod-tests (Makefile.am): Likewise.
4609
4610 2010-07-11  Pádraig Brady  <P@draigBrady.com>
4611             Bruno Haible  <bruno@clisp.org>
4612
4613         unistr/u8-strchr: Optimize ASCII argument case.
4614         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
4615
4616 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4617
4618         (x)memcoll: minor tweaks
4619         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
4620         is after the type that it qualifies.
4621         (memcoll0): Likewise.
4622         * lib/memcoll.h (memcoll0): Likewise.
4623         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
4624         * lib/xmemcoll.h (xmemcoll0): Likewise.
4625         * lib/memcoll.c (memcoll0): Correct the comment.  This function
4626         differs from memcoll in that the NUL byte is part of the argument.
4627         Omit the abort-checks, as performance is a real issue here.  Plus,
4628         the checks were wrong anyway (an off-by-one error).  Omit local
4629         variable 'diff', as it's a bit clearer that way.
4630         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
4631         no longer needed.
4632
4633 2010-07-08  Chen Guo <chenguo4@yahoo.com>
4634
4635         (x)memcoll: speedup when input is known to be NUL delimited
4636         * lib/memcoll.c: Include stdlib.
4637         (memcoll0) New function.
4638         (strcoll_loop) New function, refactored for use in both memcoll
4639         and memcoll0.
4640         * lib/memcoll.h: Add prototype for memcoll0.
4641         * lib/xmemcoll.c: (xmemcoll0) New function.
4642         (collate_error) New function, refactored for use in both xmemcoll
4643         and xmemcoll0.
4644         * lib/xmemcoll.h: Add prototype for xmemcoll0.
4645         * m4/memcoll.m4: add inline invocation.
4646
4647 2010-07-06  Pádraig Brady  <P@draigBrady.com>
4648
4649         * build-aux/bootstrap: Remove any local translations
4650         from the translation project synchronization directory,
4651         so that local only translations are not distributed.
4652
4653 2010-07-04  Bruno Haible  <bruno@clisp.org>
4654
4655         fsusage: Clarify which code applies to which platforms.
4656         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
4657         platform.
4658         * lib/fsusage.c (get_fs_usage): Likewise.
4659
4660 2010-07-04  Bruno Haible  <bruno@clisp.org>
4661
4662         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
4663         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
4664         Reported by Martin Lambers <marlam@marlam.de>.
4665
4666 2010-07-04  Jim Meyering  <meyering@redhat.com>
4667
4668         hash: once again explicitly disallow insertion of NULL
4669         * lib/hash.c (hash_insert0): Reinstate just-removed test:
4670         inserting a NULL pointer cannot work with these functions.
4671         Add a comment with details.
4672         This reverts part of the 2010-07-01 commit, 5bef1a35
4673         "hash: extend module to deal with non-pointer keys".
4674
4675 2010-07-01  Bruno Haible  <bruno@clisp.org>
4676
4677         stdbool: Update doc.
4678         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
4679         Info from Christian Weisgerber <naddy@mips.inka.de>.
4680
4681 2010-07-01  Jim Meyering  <meyering@redhat.com>
4682
4683         hash: extend module to deal with non-pointer keys
4684         * lib/hash.c (hash_insert0): New interface, much like hash_insert
4685         but that allows insertion of non-pointer entries.
4686         Do not disallow an ENTRY value of NULL.
4687         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
4688         * lib/hash.h (hash_insert0): Declare.
4689
4690 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4691
4692         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
4693         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
4694         not present (i.e. with autoconf 2.59 and when using gettextize, not
4695         gnulib), require AC_GNU_SOURCE instead.
4696
4697 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
4698
4699         idpriv-drop: Fix tests.
4700         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
4701         not to the test-idpriv-droptemp program.
4702
4703 2010-06-29  Bruno Haible  <bruno@clisp.org>
4704
4705         string: Fix syntax error with g++ 2.96.
4706         * lib/string.in.h (__pure__): Remove definition.
4707         (_GL_ATTRIBUTE_PURE): New macro.
4708         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
4709         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
4710         Reported by Christian Weisgerber <naddy@mips.inka.de>.
4711
4712 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
4713
4714         unitypes: Fix bug introduced on 2010-05-18.
4715         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
4716
4717 2010-06-22  Eric Blake  <eblake@redhat.com>
4718
4719         memmem: slight optimization
4720         * lib/str-two-way.h (critical_factorization): Update comments.
4721         Reduce work during factorization phase.
4722         Reported by Carlos Bueno <carlos@bueno.org>.
4723
4724 2010-06-21  Bruno Haible  <bruno@clisp.org>
4725
4726         Fix HAVE_CALLOC_POSIX misnomer.
4727         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
4728         !HAVE_CALLOC_POSIX.
4729         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
4730         HAVE_CALLOC_POSIX.
4731         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
4732         instead of HAVE_CALLOC_POSIX.
4733         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
4734         HAVE_CALLOC_POSIX.
4735
4736         Use modern idiom for calloc() replacement.
4737         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
4738         AC_FUNC_CALLOC.
4739         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
4740         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
4741         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4742         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
4743         (gl_REPLACE_CALLOC): New macro.
4744
4745 2010-06-21  Bruno Haible  <bruno@clisp.org>
4746
4747         Fix HAVE_REALLOC_POSIX misnomer.
4748         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
4749         !HAVE_REALLOC_POSIX.
4750         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
4751         HAVE_REALLOC_POSIX.
4752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
4753         instead of HAVE_REALLOC_POSIX.
4754         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
4755         HAVE_REALLOC_POSIX.
4756
4757         Use modern idiom for realloc() replacement.
4758         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
4759         AC_FUNC_REALLOC.
4760         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
4761         Autoconf's AC_FUNC_REALLOC.
4762         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4763         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
4764         (gl_REPLACE_REALLOC): New macro.
4765         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
4766
4767 2010-06-21  Bruno Haible  <bruno@clisp.org>
4768
4769         Fix HAVE_MALLOC_POSIX misnomer.
4770         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
4771         !HAVE_MALLOC_POSIX.
4772         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
4773         HAVE_MALLOC_POSIX.
4774         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
4775         instead of HAVE_MALLOC_POSIX.
4776         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
4777         HAVE_MALLOC_POSIX.
4778
4779         Use modern idiom for malloc() replacement.
4780         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
4781         AC_FUNC_MALLOC.
4782         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
4783         Autoconf's AC_FUNC_MALLOC.
4784         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4785         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
4786         (gl_REPLACE_MALLOC): New macro.
4787         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
4788
4789 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
4790
4791         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
4792         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
4793         This macro takes 3 arguments, not 4.
4794
4795 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
4796
4797         ipv6: fix detection under mingw
4798         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
4799         in6_addr.
4800
4801 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
4802
4803         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
4804         that strtod() works when cross-compiling to a glibc version known
4805         to work.
4806
4807 2010-06-15  Bruno Haible  <bruno@clisp.org>
4808
4809         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
4810
4811 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
4812
4813         select: Correct timeout.
4814         * lib/select.c (rpl_select): Compute wait_timeout correctly.
4815
4816 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4817
4818         git-version-gen: init shell var to avoid env var influence
4819         * build-aux/git-version-gen (v): Init shell var to empty.
4820
4821 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
4822
4823         priv-set: Don't assume that priv.h exists merely because getppriv does.
4824         See Jan Andersen's bug report about AIX 5L in
4825         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
4826         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
4827         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
4828         * lib/priv-set.h: Likewise.
4829         * tests/test-priv-set.c: Likewise.
4830
4831 2010-06-13  Bruno Haible  <bruno@clisp.org>
4832
4833         relocatable: Make it easier to test whether to install wrappers.
4834         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
4835         RELOCATABLE_VIA_WRAPPER.
4836
4837 2010-06-13  Bruno Haible  <bruno@clisp.org>
4838
4839         gnulib-tool: Display specified modules and dependencies differently.
4840         * gnulib-tool (func_show_module_list): New function.
4841         (func_import, func_create_testdir): Invoke it.
4842         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4843
4844 2010-06-13  Bruno Haible  <bruno@clisp.org>
4845
4846         gnulib-tool: Align code of func_import and func_create_testdir.
4847         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
4848         specified_modules.
4849
4850 2010-06-12  Jim Meyering  <meyering@redhat.com>
4851
4852         test-inttostr: avoid spurious failure on Solaris 9
4853         * tests/test-inttostr.c (main): Skip the test when snprintf fails
4854         to accept "%ju".  Reported by Bruno Haible.
4855
4856 2010-06-11  Jim Meyering  <meyering@redhat.com>
4857
4858         test-sys_socket: mark variables as used more readably
4859         * tests/test-sys_socket.c (main): Mark otherwise unused variables
4860         as "used" explicitly via (void) statement casts.  This is more
4861         readable than using them in an artificial return expression.
4862         Suggestion from Bruno Haible.
4863
4864 2010-06-11  Bruno Haible  <bruno@clisp.org>
4865
4866         Avoid some more warnings from "gcc -Wwrite-strings".
4867         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
4868         to 'const char *'.
4869         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
4870         * tests/test-c-strcasestr.c (main): Likewise.
4871         * tests/test-mbscasestr1.c (main): Likewise.
4872         * tests/test-mbscasestr2.c (main): Likewise.
4873         * tests/test-memmem.c (main): Likewise.
4874         * tests/test-strstr.c (main): Likewise.
4875         * tests/test-strcasestr.c (main): Likewise.
4876
4877 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4878
4879         init.sh: change framework_failure_ to fail with status 99, not 1
4880         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
4881         automake's parallel-tests rule that this is an unexpected failure,
4882         even if the test is listed in XFAIL_TESTS.
4883
4884 2010-06-11  Jim Meyering  <meyering@redhat.com>
4885
4886         test-inttostr: avoid warnings about 4-6KB literal strings
4887         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
4888         Include "macros.h", for its definition of ASSERT.
4889         (CK): s/assert/ASSERT/
4890         * modules/inttostr-tests (Files): Add macros.h.
4891
4892         init.sh: don't use $ME_ or skip_ before they are defined
4893         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
4894         their first uses.  Also hoist their companions: warn_, fail_,
4895         framework_failure_, $stderr_fileno.  Prompted by a patch from
4896         Stefano Lattarini.
4897
4898         test-sys_socket: avoid set-but-not-used warnings from gcc
4899         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
4900         avoid warning about set-but-not-used variables.
4901
4902         test-xvasprintf: avoid 'const' discard warnings
4903         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
4904         "const" when assigning from literal strings.
4905         (test_xasprintf): Add "void" in function argument list to placate
4906         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
4907
4908         tests: avoid compilation warnings in argmatch and exclude tests...
4909         in packages that define ARGMATCH_DIE_DECL, like coreutils.
4910         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
4911         Since it always exits, declare with the "noreturn" attribute.
4912         * tests/test-argmatch.c: Likewise.
4913
4914         tests: avoid 'const' discard warnings in mbsstr tests
4915         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
4916         * tests/test-mbsstr2.c (main): Likewise.
4917
4918         test-verify: avoid warning from gcc's -Wmissing-declarations
4919         * tests/test-verify.c (function): Declare to be static.
4920
4921         test-inttostr.c: include <string.h> for use of strcmp
4922         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
4923
4924         test-linkat: avoid failed assertion on "other" architectures
4925         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
4926         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
4927         sparc: https://bugs.launchpad.net/bugs/591968
4928
4929 2010-06-11  Jim Meyering  <meyering@redhat.com>
4930
4931         printf.m4: avoid autoconf's "Expanded Before Required" warning
4932         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
4933         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
4934         autoconf warning.
4935
4936 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
4937
4938         Replacement header templates are now named with ".in", not "_".
4939         * doc/gnulib-intro.texi: Correct.
4940
4941 2010-06-10  Jim Meyering  <meyering@redhat.com>
4942
4943         inttostr-tests: depend on snprintf, not snprintf-posix
4944         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
4945         snprintf-posix, to avoid this aclocal failure:
4946           missing file gnulib-tests/vasnprintf.c
4947           configure.ac:45: error: expected source file, required through \
4948           AC_LIBSOURCES, not found
4949
4950 2010-06-10  Jim Meyering  <meyering@redhat.com>
4951
4952         inttostr: add a new function, inttostr, and tests
4953         The namesake function was not available.  The existence of the
4954         template file, inttostr.c makes its addition nontrivial.
4955         * lib/anytostr.c: Rename from inttostr.c.
4956         (anytostr): Rename from inttostr.
4957         * lib/inttostr.c: New file.
4958         * modules/inttostr (Files): Add anytostr.c.
4959         (Makefile.am): Set lib_SOURCES instead of ...
4960         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
4961         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
4962         * lib/offtostr.c: Likewise.
4963         * lib/uinttostr.c: Likewise.
4964         * lib/umaxtostr.c: Likewise.
4965         * modules/inttostr-tests: New file.
4966         * tests/test-inttostr.c: New file.  Test these functions.
4967
4968 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
4969             Bruno Haible  <bruno@clisp.org>
4970
4971         Add "Extending Gnulib" chapter to manual.
4972         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
4973         chapter.
4974         (Extending Gnulib): New chapter.
4975         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
4976         chapter.
4977
4978 2010-06-09  Bruno Haible  <bruno@clisp.org>
4979
4980         Avoid relocwrapper link errors due to gnulib replacement functions.
4981         * lib/areadlink.c: Use the system's malloc, realloc functions.
4982         (areadlink): Set errno to ENOMEM explicitly.
4983         * modules/areadlink (Depends-on): Remove malloc-posix.
4984         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4985
4986 2010-06-09  Bruno Haible  <bruno@clisp.org>
4987
4988         Avoid relocwrapper link errors due to gnulib replacement functions.
4989         * lib/canonicalize-lgpl.c: Use the system's malloc function.
4990         * lib/malloca.c: Likewise.
4991         * lib/relocatable.c: Likewise.
4992         * lib/progreloc.c: Use the system's malloc, sprintf functions.
4993         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
4994         * lib/setenv.c: Use the system's malloc, realloc functions.
4995         * lib/strerror.c: Use the system's sprintf function.
4996         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4997
4998 2010-06-04  Bruno Haible  <bruno@clisp.org>
4999
5000         Prefer documented low-level autoconf macro names.
5001         * m4/lib-link.m4: Use m4_translit instead of translit.
5002         * m4/environ.m4: Likewise.
5003         * m4/mathfunc.m4: Likewise.
5004         * m4/onceonly.m4: Likewise.
5005         * m4/stdint.m4: Likewise.
5006         Suggested by Eric Blake.
5007
5008 2010-06-04  Martin Lambers  <marlam@marlam.de>
5009             Bruno Haible  <bruno@clisp.org>
5010
5011         havelib: Allow library names with '+' characters.
5012         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
5013         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
5014
5015 2010-06-09  Bruno Haible  <bruno@clisp.org>
5016
5017         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
5018         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
5019         realloc failed.
5020
5021 2010-06-08  Peter Simons  <simons@cryp.to>
5022
5023         maint.mk: make the news-check rule more configurable
5024         * top/maint.mk (news-check-lines-spec) New variable.
5025         (news-check): Use "sed -n 1,10p" in place of "head".
5026
5027 2010-06-07  Jim Meyering  <meyering@redhat.com>
5028
5029         do-release-commit-and-tag: fix typo in --help
5030         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
5031
5032         regex: avoid new dead-code warning with gcc-4.6.0
5033         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
5034         if-block containing a while-loop.  It's been unused for at least
5035         5 years.
5036
5037 2010-06-05  Bruno Haible  <bruno@clisp.org>
5038
5039         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
5040         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
5041
5042 2010-06-04  Bruno Haible  <bruno@clisp.org>
5043
5044         Update to GNU gettext 0.18.1.
5045         * modules/gettext (configure.ac): Require gettext infrastructure from
5046         version 0.18.1.
5047
5048 2010-06-03  Bruno Haible  <bruno@clisp.org>
5049
5050         Don't use AC_LIBOBJ with file names in subdirectories.
5051         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
5052         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
5053         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
5054         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
5055         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
5056         gl_LIBUNISTRING_LIBSOURCE.
5057         (Makefile.am): Augment lib_SOURCES here, conditionally.
5058         * NEWS: Drop requirement for Automake option 'subdir-objects'.
5059
5060 2010-06-03  Bruno Haible  <bruno@clisp.org>
5061
5062         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
5063         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
5064         expansion does not end with a newline.
5065         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
5066         unnecessary newline.
5067
5068 2010-06-03  Bruno Haible  <bruno@clisp.org>
5069
5070         Reduce dependencies.
5071         * tests/test-quotearg.h: New file, extracted from
5072         tests/test-quotearg.c.
5073         * tests/test-quotearg-simple.c: New file, extracted from
5074         tests/test-quotearg.c.
5075         * tests/test-quotearg.c: Don't include <ctype.h>.
5076         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
5077         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
5078         use_quote_double_quotes, use_quotearg_colon): Moved to
5079         tests/test-quotearg.h.
5080         (results_g, flag_results, custom_quotes, custom_results): Moved
5081         to tests/test-quotearg-simple.c.
5082         (main): Moved the part that does not depend on gettext to
5083         tests/test-quotearg-simple.c. Return 77 if the test cannot be
5084         performed.
5085         * modules/quotearg-simple: New file.
5086         * modules/quotearg-simple-tests: New file.
5087         * modules/quotearg (Depends-on): Add quotearg-simple.
5088         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
5089         (Files): Add tests/test-quotearg.h.
5090         Reported by Paolo Bonzini.
5091
5092 2010-06-03  Bruno Haible  <bruno@clisp.org>
5093
5094         Reduce dependencies.
5095         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
5096
5097 2010-06-03  Bruno Haible  <bruno@clisp.org>
5098
5099         time: Undefine more broken macros.
5100         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
5101         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
5102         Reported by Eric Blake.
5103
5104 2010-06-03  Bruno Haible  <bruno@clisp.org>
5105
5106         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
5107         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
5108         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
5109         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
5110         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
5111         Reported by Ludovic Courtès <ludo@gnu.org>.
5112
5113 2010-06-02  Eric Blake  <eblake@redhat.com>
5114
5115         time: work with mingw + pthreads-win32 library
5116         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
5117         if timespec is defined only in pthread.h.
5118         * modules/time (Makefile.am): Substitute it.
5119         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
5120         <pthread.h>, when needed.
5121         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
5122         from the library.
5123
5124 2010-05-31  Bruno Haible  <bruno@clisp.org>
5125
5126         Avoid expanding two macros in the wrong order.
5127         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
5128         gl_LIBUNISTRING if it is defined.
5129         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
5130         autoconf >= 2.64.
5131         Reported by Ludovic Courtès <ludo@gnu.org>.
5132
5133 2010-05-27  Jim Meyering  <meyering@redhat.com>
5134
5135         maint.mk: also prohibit "#undef" of always-defined symbols
5136         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
5137         Allow more than one space before the symbol name.
5138         (sc_prohibit_always-defined_macros): Use grep's -E, now that
5139         the regexp uses alternation.
5140
5141 2010-05-26  Eric Blake  <eblake@redhat.com>
5142
5143         maint.mk: avoid echo -e
5144         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
5145         Convert all uses of echo -* to printf.
5146         Reported by Matthias Bolte.
5147
5148 2010-05-25  Bruno Haible  <bruno@clisp.org>
5149
5150         Update to GNU gettext 0.18, part 2.
5151         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
5152         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
5153
5154 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5155
5156         Add missing include in test-pwrite.c.
5157         * tests/test-pwrite.c: Include string.h, for strcmp.
5158
5159 2010-05-24  Bruno Haible  <bruno@clisp.org>
5160
5161         * NEWS: Mention requirement for Automake option 'subdir-objects'.
5162
5163 2010-05-24  Bruno Haible  <bruno@clisp.org>
5164
5165         Don't use conversion with transliteration in u{8,16,32}_strcoll.
5166         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
5167         iconveh_error argument.
5168         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
5169         U_STRCONV_TO_LOCALE.
5170         * lib/unistr/u16-strcoll.c: Likewise.
5171         * lib/unistr/u32-strcoll.c: Likewise.
5172         * modules/unistr/u8-strcoll (Depends-on): Add
5173         uniconv/u8-strconv-to-enc, localcharset. Remove
5174         uniconv/u8-strconv-to-locale.
5175         (configure.ac): Bump version number.
5176         * modules/unistr/u16-strcoll (Depends-on): Add
5177         uniconv/u16-strconv-to-enc, localcharset. Remove
5178         uniconv/u16-strconv-to-locale.
5179         (configure.ac): Bump version number.
5180         * modules/unistr/u32-strcoll (Depends-on): Add
5181         uniconv/u32-strconv-to-enc, localcharset. Remove
5182         uniconv/u32-strconv-to-locale.
5183         (configure.ac): Bump version number.
5184
5185 2010-05-24  Bruno Haible  <bruno@clisp.org>
5186
5187         Avoid a test failure on NetBSD 5.0.
5188         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
5189         an iconv() bug.
5190
5191 2010-05-24  Bruno Haible  <bruno@clisp.org>
5192
5193         Adjust #include directive style.
5194         * modules/regex (Includes): Recommend to write <regex.h>.
5195
5196 2010-05-24  Bruno Haible  <bruno@clisp.org>
5197
5198         regex: Don't require alloca.
5199         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
5200         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
5201         only inside if (0).
5202
5203 2010-05-23  Jim Meyering  <meyering@redhat.com>
5204
5205         test-renameat.c: include <sys/stat.h>
5206         * tests/test-renameat.c: Include <sys/stat.h>; required for
5207         definition of S_IS* macros.
5208
5209 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
5210
5211         Update maintainer documentation for 'relocatable-prog' module.
5212         * doc/relocatable-maint.texi: Update.
5213         Comments by Bruno Haible.
5214
5215 2010-05-23  Bruno Haible  <bruno@clisp.org>
5216
5217         git-merge-changelog: Enable --split-merged-entry by default.
5218         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
5219         (usage): Don't mention this option any more.
5220         Reported by Ralf Wildenhues.
5221
5222 2010-05-23  Jim Meyering  <meyering@redhat.com>
5223
5224         test-pwrite: do not leave behind a test file named "out"
5225         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
5226         The trivial-looking use of init.sh is really necessary.
5227         It ensures that the temporary file, "out", is created in
5228         a temporary directory, and removed upon termination.
5229         * tests/test-pwrite.sh: Re-add file.
5230         * modules/pwrite-tests: Reference it.
5231
5232 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5233
5234         Fix output redirection buglet in init.sh.
5235         * tests/init.sh: Fix redirection of stderr.
5236
5237 2010-05-20  Simon Josefsson  <simon@josefsson.org>
5238
5239         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
5240
5241 2010-05-17  Simon Josefsson  <simon@josefsson.org>
5242
5243         * modules/valgrind-tests: New file.
5244         * m4/valgrind-tests.m4: New file.
5245         * doc/valgrind-tests.texi: New file.
5246         * doc/gnulib.texi (Running self-tests under valgrind): New
5247         section.
5248
5249 2010-05-19  Bruno Haible  <bruno@clisp.org>
5250
5251         Clean up dead code in recent commit.
5252         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
5253         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
5254         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
5255         Suggested by Paolo Bonzini.
5256
5257 2010-05-19  Bruno Haible  <bruno@clisp.org>
5258
5259         Avoid valgrind error reports from libunistring.
5260         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
5261         * modules/libunistring (Files): Add it.
5262         * modules/libunistring-optional (Files): Likewise.
5263
5264 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
5265             Bruno Haible  <bruno@clisp.org>
5266
5267         New module 'libunistring-optional'.
5268         * modules/libunistring-optional: New file.
5269         * m4/libunistring-base.m4: New file.
5270         * m4/libunistring-optional.m4: New file.
5271         * lib/unicase.in.h: Renamed from lib/unicase.h.
5272         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
5273         * lib/unictype.in.h: Renamed from lib/unictype.h.
5274         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
5275         * lib/uniname.in.h: Renamed from lib/uniname.h.
5276         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
5277         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
5278         * lib/unistr.in.h: Renamed from lib/unistr.h.
5279         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
5280         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
5281         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
5282         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
5283         gl_LIBUNISTRING. If the library was found, determine the installed
5284         version and set LIBUNISTRING_VERSION.
5285         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
5286         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
5287         handle a configuration option --with-included-libunistring.
5288         * modules/libunistring (Files): Add m4/absolute-header.m4.
5289         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
5290         Add m4/libunistring-base.m4.
5291         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5292         (Makefile.am): Build unicase.h from unicase.in.h.
5293         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
5294         Add m4/libunistring-base.m4.
5295         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5296         (Makefile.am): Build uniconv.h from uniconv.in.h.
5297         * modules/unictype/base (Files): Use unictype.in.h instead of
5298         unictype.h. Add m4/libunistring-base.m4.
5299         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5300         (Makefile.am): Build unictype.h from unictype.in.h.
5301         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
5302         Add m4/libunistring-base.m4.
5303         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5304         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
5305         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
5306         Add m4/libunistring-base.m4.
5307         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5308         (Makefile.am): Build uniname.h from uniname.in.h.
5309         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
5310         Add m4/libunistring-base.m4.
5311         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5312         (Makefile.am): Build uninorm.h from uninorm.in.h.
5313         * modules/unistdio/base (Files): Use unistdio.in.h instead of
5314         unistdio.h. Add m4/libunistring-base.m4.
5315         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5316         (Makefile.am): Build unistdio.h from unistdio.in.h.
5317         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
5318         Add m4/libunistring-base.m4.
5319         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5320         (Makefile.am): Build unistr.h from unistr.in.h.
5321         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
5322         Add m4/libunistring-base.m4.
5323         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5324         (Makefile.am): Build unitypes.h from unitypes.in.h.
5325         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
5326         Add m4/libunistring-base.m4.
5327         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5328         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
5329         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
5330         uniwidth.h. Add m4/libunistring-base.m4.
5331         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5332         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
5333         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
5334         instead of augmenting lib_SOURCES.
5335         * modules/unicase/empty-suffix-context: Likewise.
5336         * modules/unicase/locale-language: Likewise.
5337         * modules/unicase/tolower: Likewise.
5338         * modules/unicase/totitle: Likewise.
5339         * modules/unicase/toupper: Likewise.
5340         * modules/unicase/u8-casecmp: Likewise.
5341         * modules/unicase/u8-casecoll: Likewise.
5342         * modules/unicase/u8-casefold: Likewise.
5343         * modules/unicase/u8-casexfrm: Likewise.
5344         * modules/unicase/u8-ct-casefold: Likewise.
5345         * modules/unicase/u8-ct-tolower: Likewise.
5346         * modules/unicase/u8-ct-totitle: Likewise.
5347         * modules/unicase/u8-ct-toupper: Likewise.
5348         * modules/unicase/u8-is-cased: Likewise.
5349         * modules/unicase/u8-is-casefolded: Likewise.
5350         * modules/unicase/u8-is-lowercase: Likewise.
5351         * modules/unicase/u8-is-titlecase: Likewise.
5352         * modules/unicase/u8-is-uppercase: Likewise.
5353         * modules/unicase/u8-prefix-context: Likewise.
5354         * modules/unicase/u8-suffix-context: Likewise.
5355         * modules/unicase/u8-tolower: Likewise.
5356         * modules/unicase/u8-totitle: Likewise.
5357         * modules/unicase/u8-toupper: Likewise.
5358         * modules/unicase/u16-casecmp: Likewise.
5359         * modules/unicase/u16-casecoll: Likewise.
5360         * modules/unicase/u16-casefold: Likewise.
5361         * modules/unicase/u16-casexfrm: Likewise.
5362         * modules/unicase/u16-ct-casefold: Likewise.
5363         * modules/unicase/u16-ct-tolower: Likewise.
5364         * modules/unicase/u16-ct-totitle: Likewise.
5365         * modules/unicase/u16-ct-toupper: Likewise.
5366         * modules/unicase/u16-is-cased: Likewise.
5367         * modules/unicase/u16-is-casefolded: Likewise.
5368         * modules/unicase/u16-is-lowercase: Likewise.
5369         * modules/unicase/u16-is-titlecase: Likewise.
5370         * modules/unicase/u16-is-uppercase: Likewise.
5371         * modules/unicase/u16-prefix-context: Likewise.
5372         * modules/unicase/u16-suffix-context: Likewise.
5373         * modules/unicase/u16-tolower: Likewise.
5374         * modules/unicase/u16-totitle: Likewise.
5375         * modules/unicase/u16-toupper: Likewise.
5376         * modules/unicase/u32-casecmp: Likewise.
5377         * modules/unicase/u32-casecoll: Likewise.
5378         * modules/unicase/u32-casefold: Likewise.
5379         * modules/unicase/u32-casexfrm: Likewise.
5380         * modules/unicase/u32-ct-casefold: Likewise.
5381         * modules/unicase/u32-ct-tolower: Likewise.
5382         * modules/unicase/u32-ct-totitle: Likewise.
5383         * modules/unicase/u32-ct-toupper: Likewise.
5384         * modules/unicase/u32-is-cased: Likewise.
5385         * modules/unicase/u32-is-casefolded: Likewise.
5386         * modules/unicase/u32-is-lowercase: Likewise.
5387         * modules/unicase/u32-is-titlecase: Likewise.
5388         * modules/unicase/u32-is-uppercase: Likewise.
5389         * modules/unicase/u32-prefix-context: Likewise.
5390         * modules/unicase/u32-suffix-context: Likewise.
5391         * modules/unicase/u32-tolower: Likewise.
5392         * modules/unicase/u32-totitle: Likewise.
5393         * modules/unicase/u32-toupper: Likewise.
5394         * modules/unicase/ulc-casecmp: Likewise.
5395         * modules/unicase/ulc-casecoll: Likewise.
5396         * modules/unicase/ulc-casexfrm: Likewise.
5397         * modules/uniconv/u8-conv-from-enc: Likewise.
5398         * modules/uniconv/u8-conv-to-enc: Likewise.
5399         * modules/uniconv/u8-strconv-from-enc: Likewise.
5400         * modules/uniconv/u8-strconv-from-locale: Likewise.
5401         * modules/uniconv/u8-strconv-to-enc: Likewise.
5402         * modules/uniconv/u8-strconv-to-locale: Likewise.
5403         * modules/uniconv/u16-conv-from-enc: Likewise.
5404         * modules/uniconv/u16-conv-to-enc: Likewise.
5405         * modules/uniconv/u16-strconv-from-enc: Likewise.
5406         * modules/uniconv/u16-strconv-from-locale: Likewise.
5407         * modules/uniconv/u16-strconv-to-enc: Likewise.
5408         * modules/uniconv/u16-strconv-to-locale: Likewise.
5409         * modules/uniconv/u32-conv-from-enc: Likewise.
5410         * modules/uniconv/u32-conv-to-enc: Likewise.
5411         * modules/uniconv/u32-strconv-from-enc: Likewise.
5412         * modules/uniconv/u32-strconv-from-locale: Likewise.
5413         * modules/uniconv/u32-strconv-to-enc: Likewise.
5414         * modules/uniconv/u32-strconv-to-locale: Likewise.
5415         * modules/unictype/bidicategory-byname: Likewise.
5416         * modules/unictype/bidicategory-name: Likewise.
5417         * modules/unictype/bidicategory-of: Likewise.
5418         * modules/unictype/bidicategory-test: Likewise.
5419         * modules/unictype/block-list: Likewise.
5420         * modules/unictype/block-test: Likewise.
5421         * modules/unictype/category-C: Likewise.
5422         * modules/unictype/category-Cc: Likewise.
5423         * modules/unictype/category-Cf: Likewise.
5424         * modules/unictype/category-Cn: Likewise.
5425         * modules/unictype/category-Co: Likewise.
5426         * modules/unictype/category-Cs: Likewise.
5427         * modules/unictype/category-L: Likewise.
5428         * modules/unictype/category-Ll: Likewise.
5429         * modules/unictype/category-Lm: Likewise.
5430         * modules/unictype/category-Lo: Likewise.
5431         * modules/unictype/category-Lt: Likewise.
5432         * modules/unictype/category-Lu: Likewise.
5433         * modules/unictype/category-M: Likewise.
5434         * modules/unictype/category-Mc: Likewise.
5435         * modules/unictype/category-Me: Likewise.
5436         * modules/unictype/category-Mn: Likewise.
5437         * modules/unictype/category-N: Likewise.
5438         * modules/unictype/category-Nd: Likewise.
5439         * modules/unictype/category-Nl: Likewise.
5440         * modules/unictype/category-No: Likewise.
5441         * modules/unictype/category-P: Likewise.
5442         * modules/unictype/category-Pc: Likewise.
5443         * modules/unictype/category-Pd: Likewise.
5444         * modules/unictype/category-Pe: Likewise.
5445         * modules/unictype/category-Pf: Likewise.
5446         * modules/unictype/category-Pi: Likewise.
5447         * modules/unictype/category-Po: Likewise.
5448         * modules/unictype/category-Ps: Likewise.
5449         * modules/unictype/category-S: Likewise.
5450         * modules/unictype/category-Sc: Likewise.
5451         * modules/unictype/category-Sk: Likewise.
5452         * modules/unictype/category-Sm: Likewise.
5453         * modules/unictype/category-So: Likewise.
5454         * modules/unictype/category-Z: Likewise.
5455         * modules/unictype/category-Zl: Likewise.
5456         * modules/unictype/category-Zp: Likewise.
5457         * modules/unictype/category-Zs: Likewise.
5458         * modules/unictype/category-and: Likewise.
5459         * modules/unictype/category-and-not: Likewise.
5460         * modules/unictype/category-byname: Likewise.
5461         * modules/unictype/category-name: Likewise.
5462         * modules/unictype/category-none: Likewise.
5463         * modules/unictype/category-of: Likewise.
5464         * modules/unictype/category-or: Likewise.
5465         * modules/unictype/category-test: Likewise.
5466         * modules/unictype/combining-class: Likewise.
5467         * modules/unictype/ctype-alnum: Likewise.
5468         * modules/unictype/ctype-alpha: Likewise.
5469         * modules/unictype/ctype-blank: Likewise.
5470         * modules/unictype/ctype-cntrl: Likewise.
5471         * modules/unictype/ctype-digit: Likewise.
5472         * modules/unictype/ctype-graph: Likewise.
5473         * modules/unictype/ctype-lower: Likewise.
5474         * modules/unictype/ctype-print: Likewise.
5475         * modules/unictype/ctype-punct: Likewise.
5476         * modules/unictype/ctype-space: Likewise.
5477         * modules/unictype/ctype-upper: Likewise.
5478         * modules/unictype/ctype-xdigit: Likewise.
5479         * modules/unictype/decimal-digit: Likewise.
5480         * modules/unictype/digit: Likewise.
5481         * modules/unictype/mirror: Likewise.
5482         * modules/unictype/numeric: Likewise.
5483         * modules/unictype/property-alphabetic: Likewise.
5484         * modules/unictype/property-ascii-hex-digit: Likewise.
5485         * modules/unictype/property-bidi-arabic-digit: Likewise.
5486         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
5487         * modules/unictype/property-bidi-block-separator: Likewise.
5488         * modules/unictype/property-bidi-boundary-neutral: Likewise.
5489         * modules/unictype/property-bidi-common-separator: Likewise.
5490         * modules/unictype/property-bidi-control: Likewise.
5491         * modules/unictype/property-bidi-embedding-or-override: Likewise.
5492         * modules/unictype/property-bidi-eur-num-separator: Likewise.
5493         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
5494         * modules/unictype/property-bidi-european-digit: Likewise.
5495         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
5496         * modules/unictype/property-bidi-left-to-right: Likewise.
5497         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
5498         * modules/unictype/property-bidi-other-neutral: Likewise.
5499         * modules/unictype/property-bidi-pdf: Likewise.
5500         * modules/unictype/property-bidi-segment-separator: Likewise.
5501         * modules/unictype/property-bidi-whitespace: Likewise.
5502         * modules/unictype/property-byname: Likewise.
5503         * modules/unictype/property-combining: Likewise.
5504         * modules/unictype/property-composite: Likewise.
5505         * modules/unictype/property-currency-symbol: Likewise.
5506         * modules/unictype/property-dash: Likewise.
5507         * modules/unictype/property-decimal-digit: Likewise.
5508         * modules/unictype/property-default-ignorable-code-point: Likewise.
5509         * modules/unictype/property-deprecated: Likewise.
5510         * modules/unictype/property-diacritic: Likewise.
5511         * modules/unictype/property-extender: Likewise.
5512         * modules/unictype/property-format-control: Likewise.
5513         * modules/unictype/property-grapheme-base: Likewise.
5514         * modules/unictype/property-grapheme-extend: Likewise.
5515         * modules/unictype/property-grapheme-link: Likewise.
5516         * modules/unictype/property-hex-digit: Likewise.
5517         * modules/unictype/property-hyphen: Likewise.
5518         * modules/unictype/property-id-continue: Likewise.
5519         * modules/unictype/property-id-start: Likewise.
5520         * modules/unictype/property-ideographic: Likewise.
5521         * modules/unictype/property-ids-binary-operator: Likewise.
5522         * modules/unictype/property-ids-trinary-operator: Likewise.
5523         * modules/unictype/property-ignorable-control: Likewise.
5524         * modules/unictype/property-iso-control: Likewise.
5525         * modules/unictype/property-join-control: Likewise.
5526         * modules/unictype/property-left-of-pair: Likewise.
5527         * modules/unictype/property-line-separator: Likewise.
5528         * modules/unictype/property-logical-order-exception: Likewise.
5529         * modules/unictype/property-lowercase: Likewise.
5530         * modules/unictype/property-math: Likewise.
5531         * modules/unictype/property-non-break: Likewise.
5532         * modules/unictype/property-not-a-character: Likewise.
5533         * modules/unictype/property-numeric: Likewise.
5534         * modules/unictype/property-other-alphabetic: Likewise.
5535         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
5536         * modules/unictype/property-other-grapheme-extend: Likewise.
5537         * modules/unictype/property-other-id-continue: Likewise.
5538         * modules/unictype/property-other-id-start: Likewise.
5539         * modules/unictype/property-other-lowercase: Likewise.
5540         * modules/unictype/property-other-math: Likewise.
5541         * modules/unictype/property-other-uppercase: Likewise.
5542         * modules/unictype/property-paired-punctuation: Likewise.
5543         * modules/unictype/property-paragraph-separator: Likewise.
5544         * modules/unictype/property-pattern-syntax: Likewise.
5545         * modules/unictype/property-pattern-white-space: Likewise.
5546         * modules/unictype/property-private-use: Likewise.
5547         * modules/unictype/property-punctuation: Likewise.
5548         * modules/unictype/property-quotation-mark: Likewise.
5549         * modules/unictype/property-radical: Likewise.
5550         * modules/unictype/property-sentence-terminal: Likewise.
5551         * modules/unictype/property-soft-dotted: Likewise.
5552         * modules/unictype/property-space: Likewise.
5553         * modules/unictype/property-terminal-punctuation: Likewise.
5554         * modules/unictype/property-test: Likewise.
5555         * modules/unictype/property-titlecase: Likewise.
5556         * modules/unictype/property-unassigned-code-value: Likewise.
5557         * modules/unictype/property-unified-ideograph: Likewise.
5558         * modules/unictype/property-uppercase: Likewise.
5559         * modules/unictype/property-variation-selector: Likewise.
5560         * modules/unictype/property-white-space: Likewise.
5561         * modules/unictype/property-xid-continue: Likewise.
5562         * modules/unictype/property-xid-start: Likewise.
5563         * modules/unictype/property-zero-width: Likewise.
5564         * modules/unictype/scripts: Likewise.
5565         * modules/unictype/syntax-c-ident: Likewise.
5566         * modules/unictype/syntax-c-whitespace: Likewise.
5567         * modules/unictype/syntax-java-ident: Likewise.
5568         * modules/unictype/syntax-java-whitespace: Likewise.
5569         * modules/unilbrk/u8-possible-linebreaks: Likewise.
5570         * modules/unilbrk/u8-width-linebreaks: Likewise.
5571         * modules/unilbrk/u16-possible-linebreaks: Likewise.
5572         * modules/unilbrk/u16-width-linebreaks: Likewise.
5573         * modules/unilbrk/u32-possible-linebreaks: Likewise.
5574         * modules/unilbrk/u32-width-linebreaks: Likewise.
5575         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
5576         * modules/unilbrk/ulc-width-linebreaks: Likewise.
5577         * modules/uniname/uniname: Likewise.
5578         * modules/uninorm/canonical-decomposition: Likewise.
5579         * modules/uninorm/composition: Likewise.
5580         * modules/uninorm/decomposing-form: Likewise.
5581         * modules/uninorm/decomposition: Likewise.
5582         * modules/uninorm/filter: Likewise.
5583         * modules/uninorm/nfc: Likewise.
5584         * modules/uninorm/nfd: Likewise.
5585         * modules/uninorm/nfkc: Likewise.
5586         * modules/uninorm/nfkd: Likewise.
5587         * modules/uninorm/u8-normalize: Likewise.
5588         * modules/uninorm/u8-normcmp: Likewise.
5589         * modules/uninorm/u8-normcoll: Likewise.
5590         * modules/uninorm/u8-normxfrm: Likewise.
5591         * modules/uninorm/u16-normalize: Likewise.
5592         * modules/uninorm/u16-normcmp: Likewise.
5593         * modules/uninorm/u16-normcoll: Likewise.
5594         * modules/uninorm/u16-normxfrm: Likewise.
5595         * modules/uninorm/u32-normalize: Likewise.
5596         * modules/uninorm/u32-normcmp: Likewise.
5597         * modules/uninorm/u32-normcoll: Likewise.
5598         * modules/uninorm/u32-normxfrm: Likewise.
5599         * modules/unistdio/u8-asnprintf: Likewise.
5600         * modules/unistdio/u8-asprintf: Likewise.
5601         * modules/unistdio/u8-snprintf: Likewise.
5602         * modules/unistdio/u8-sprintf: Likewise.
5603         * modules/unistdio/u8-u8-asnprintf: Likewise.
5604         * modules/unistdio/u8-u8-asprintf: Likewise.
5605         * modules/unistdio/u8-u8-snprintf: Likewise.
5606         * modules/unistdio/u8-u8-sprintf: Likewise.
5607         * modules/unistdio/u8-u8-vasnprintf: Likewise.
5608         * modules/unistdio/u8-u8-vasprintf: Likewise.
5609         * modules/unistdio/u8-u8-vsnprintf: Likewise.
5610         * modules/unistdio/u8-u8-vsprintf: Likewise.
5611         * modules/unistdio/u8-vasnprintf: Likewise.
5612         * modules/unistdio/u8-vasprintf: Likewise.
5613         * modules/unistdio/u8-vsnprintf: Likewise.
5614         * modules/unistdio/u8-vsprintf: Likewise.
5615         * modules/unistdio/u16-asnprintf: Likewise.
5616         * modules/unistdio/u16-asprintf: Likewise.
5617         * modules/unistdio/u16-snprintf: Likewise.
5618         * modules/unistdio/u16-sprintf: Likewise.
5619         * modules/unistdio/u16-u16-asnprintf: Likewise.
5620         * modules/unistdio/u16-u16-asprintf: Likewise.
5621         * modules/unistdio/u16-u16-snprintf: Likewise.
5622         * modules/unistdio/u16-u16-sprintf: Likewise.
5623         * modules/unistdio/u16-u16-vasnprintf: Likewise.
5624         * modules/unistdio/u16-u16-vasprintf: Likewise.
5625         * modules/unistdio/u16-u16-vsnprintf: Likewise.
5626         * modules/unistdio/u16-u16-vsprintf: Likewise.
5627         * modules/unistdio/u16-vasnprintf: Likewise.
5628         * modules/unistdio/u16-vasprintf: Likewise.
5629         * modules/unistdio/u16-vsnprintf: Likewise.
5630         * modules/unistdio/u16-vsprintf: Likewise.
5631         * modules/unistdio/u32-asnprintf: Likewise.
5632         * modules/unistdio/u32-asprintf: Likewise.
5633         * modules/unistdio/u32-snprintf: Likewise.
5634         * modules/unistdio/u32-sprintf: Likewise.
5635         * modules/unistdio/u32-u32-asnprintf: Likewise.
5636         * modules/unistdio/u32-u32-asprintf: Likewise.
5637         * modules/unistdio/u32-u32-snprintf: Likewise.
5638         * modules/unistdio/u32-u32-sprintf: Likewise.
5639         * modules/unistdio/u32-u32-vasnprintf: Likewise.
5640         * modules/unistdio/u32-u32-vasprintf: Likewise.
5641         * modules/unistdio/u32-u32-vsnprintf: Likewise.
5642         * modules/unistdio/u32-u32-vsprintf: Likewise.
5643         * modules/unistdio/u32-vasnprintf: Likewise.
5644         * modules/unistdio/u32-vasprintf: Likewise.
5645         * modules/unistdio/u32-vsnprintf: Likewise.
5646         * modules/unistdio/u32-vsprintf: Likewise.
5647         * modules/unistdio/ulc-asnprintf: Likewise.
5648         * modules/unistdio/ulc-asprintf: Likewise.
5649         * modules/unistdio/ulc-fprintf: Likewise.
5650         * modules/unistdio/ulc-snprintf: Likewise.
5651         * modules/unistdio/ulc-sprintf: Likewise.
5652         * modules/unistdio/ulc-vasnprintf: Likewise.
5653         * modules/unistdio/ulc-vasprintf: Likewise.
5654         * modules/unistdio/ulc-vfprintf: Likewise.
5655         * modules/unistdio/ulc-vsnprintf: Likewise.
5656         * modules/unistdio/ulc-vsprintf: Likewise.
5657         * modules/unistr/u8-check: Likewise.
5658         * modules/unistr/u8-chr: Likewise.
5659         * modules/unistr/u8-cmp: Likewise.
5660         * modules/unistr/u8-cmp2: Likewise.
5661         * modules/unistr/u8-cpy: Likewise.
5662         * modules/unistr/u8-cpy-alloc: Likewise.
5663         * modules/unistr/u8-endswith: Likewise.
5664         * modules/unistr/u8-mblen: Likewise.
5665         * modules/unistr/u8-mbsnlen: Likewise.
5666         * modules/unistr/u8-mbtouc: Likewise.
5667         * modules/unistr/u8-mbtouc-unsafe: Likewise.
5668         * modules/unistr/u8-mbtoucr: Likewise.
5669         * modules/unistr/u8-move: Likewise.
5670         * modules/unistr/u8-next: Likewise.
5671         * modules/unistr/u8-prev: Likewise.
5672         * modules/unistr/u8-set: Likewise.
5673         * modules/unistr/u8-startswith: Likewise.
5674         * modules/unistr/u8-stpcpy: Likewise.
5675         * modules/unistr/u8-stpncpy: Likewise.
5676         * modules/unistr/u8-strcat: Likewise.
5677         * modules/unistr/u8-strchr: Likewise.
5678         * modules/unistr/u8-strcmp: Likewise.
5679         * modules/unistr/u8-strcoll: Likewise.
5680         * modules/unistr/u8-strcpy: Likewise.
5681         * modules/unistr/u8-strcspn: Likewise.
5682         * modules/unistr/u8-strdup: Likewise.
5683         * modules/unistr/u8-strlen: Likewise.
5684         * modules/unistr/u8-strmblen: Likewise.
5685         * modules/unistr/u8-strmbtouc: Likewise.
5686         * modules/unistr/u8-strncat: Likewise.
5687         * modules/unistr/u8-strncmp: Likewise.
5688         * modules/unistr/u8-strncpy: Likewise.
5689         * modules/unistr/u8-strnlen: Likewise.
5690         * modules/unistr/u8-strpbrk: Likewise.
5691         * modules/unistr/u8-strrchr: Likewise.
5692         * modules/unistr/u8-strspn: Likewise.
5693         * modules/unistr/u8-strstr: Likewise.
5694         * modules/unistr/u8-strtok: Likewise.
5695         * modules/unistr/u8-to-u16: Likewise.
5696         * modules/unistr/u8-to-u32: Likewise.
5697         * modules/unistr/u8-uctomb: Likewise.
5698         * modules/unistr/u16-check: Likewise.
5699         * modules/unistr/u16-chr: Likewise.
5700         * modules/unistr/u16-cmp: Likewise.
5701         * modules/unistr/u16-cmp2: Likewise.
5702         * modules/unistr/u16-cpy: Likewise.
5703         * modules/unistr/u16-cpy-alloc: Likewise.
5704         * modules/unistr/u16-endswith: Likewise.
5705         * modules/unistr/u16-mblen: Likewise.
5706         * modules/unistr/u16-mbsnlen: Likewise.
5707         * modules/unistr/u16-mbtouc: Likewise.
5708         * modules/unistr/u16-mbtouc-unsafe: Likewise.
5709         * modules/unistr/u16-mbtoucr: Likewise.
5710         * modules/unistr/u16-move: Likewise.
5711         * modules/unistr/u16-next: Likewise.
5712         * modules/unistr/u16-prev: Likewise.
5713         * modules/unistr/u16-set: Likewise.
5714         * modules/unistr/u16-startswith: Likewise.
5715         * modules/unistr/u16-stpcpy: Likewise.
5716         * modules/unistr/u16-stpncpy: Likewise.
5717         * modules/unistr/u16-strcat: Likewise.
5718         * modules/unistr/u16-strchr: Likewise.
5719         * modules/unistr/u16-strcmp: Likewise.
5720         * modules/unistr/u16-strcoll: Likewise.
5721         * modules/unistr/u16-strcpy: Likewise.
5722         * modules/unistr/u16-strcspn: Likewise.
5723         * modules/unistr/u16-strdup: Likewise.
5724         * modules/unistr/u16-strlen: Likewise.
5725         * modules/unistr/u16-strmblen: Likewise.
5726         * modules/unistr/u16-strmbtouc: Likewise.
5727         * modules/unistr/u16-strncat: Likewise.
5728         * modules/unistr/u16-strncmp: Likewise.
5729         * modules/unistr/u16-strncpy: Likewise.
5730         * modules/unistr/u16-strnlen: Likewise.
5731         * modules/unistr/u16-strpbrk: Likewise.
5732         * modules/unistr/u16-strrchr: Likewise.
5733         * modules/unistr/u16-strspn: Likewise.
5734         * modules/unistr/u16-strstr: Likewise.
5735         * modules/unistr/u16-strtok: Likewise.
5736         * modules/unistr/u16-to-u32: Likewise.
5737         * modules/unistr/u16-to-u8: Likewise.
5738         * modules/unistr/u16-uctomb: Likewise.
5739         * modules/unistr/u32-check: Likewise.
5740         * modules/unistr/u32-chr: Likewise.
5741         * modules/unistr/u32-cmp: Likewise.
5742         * modules/unistr/u32-cmp2: Likewise.
5743         * modules/unistr/u32-cpy: Likewise.
5744         * modules/unistr/u32-cpy-alloc: Likewise.
5745         * modules/unistr/u32-endswith: Likewise.
5746         * modules/unistr/u32-mblen: Likewise.
5747         * modules/unistr/u32-mbsnlen: Likewise.
5748         * modules/unistr/u32-mbtouc: Likewise.
5749         * modules/unistr/u32-mbtouc-unsafe: Likewise.
5750         * modules/unistr/u32-mbtoucr: Likewise.
5751         * modules/unistr/u32-move: Likewise.
5752         * modules/unistr/u32-next: Likewise.
5753         * modules/unistr/u32-prev: Likewise.
5754         * modules/unistr/u32-set: Likewise.
5755         * modules/unistr/u32-startswith: Likewise.
5756         * modules/unistr/u32-stpcpy: Likewise.
5757         * modules/unistr/u32-stpncpy: Likewise.
5758         * modules/unistr/u32-strcat: Likewise.
5759         * modules/unistr/u32-strchr: Likewise.
5760         * modules/unistr/u32-strcmp: Likewise.
5761         * modules/unistr/u32-strcoll: Likewise.
5762         * modules/unistr/u32-strcpy: Likewise.
5763         * modules/unistr/u32-strcspn: Likewise.
5764         * modules/unistr/u32-strdup: Likewise.
5765         * modules/unistr/u32-strlen: Likewise.
5766         * modules/unistr/u32-strmblen: Likewise.
5767         * modules/unistr/u32-strmbtouc: Likewise.
5768         * modules/unistr/u32-strncat: Likewise.
5769         * modules/unistr/u32-strncmp: Likewise.
5770         * modules/unistr/u32-strncpy: Likewise.
5771         * modules/unistr/u32-strnlen: Likewise.
5772         * modules/unistr/u32-strpbrk: Likewise.
5773         * modules/unistr/u32-strrchr: Likewise.
5774         * modules/unistr/u32-strspn: Likewise.
5775         * modules/unistr/u32-strstr: Likewise.
5776         * modules/unistr/u32-strtok: Likewise.
5777         * modules/unistr/u32-to-u16: Likewise.
5778         * modules/unistr/u32-to-u8: Likewise.
5779         * modules/unistr/u32-uctomb: Likewise.
5780         * modules/uniwbrk/u8-wordbreaks: Likewise.
5781         * modules/uniwbrk/u16-wordbreaks: Likewise.
5782         * modules/uniwbrk/u32-wordbreaks: Likewise.
5783         * modules/uniwbrk/ulc-wordbreaks: Likewise.
5784         * modules/uniwbrk/wordbreak-property: Likewise.
5785         * modules/uniwidth/u8-strwidth: Likewise.
5786         * modules/uniwidth/u8-width: Likewise.
5787         * modules/uniwidth/u16-strwidth: Likewise.
5788         * modules/uniwidth/u16-width: Likewise.
5789         * modules/uniwidth/u32-strwidth: Likewise.
5790         * modules/uniwidth/u32-width: Likewise.
5791         * modules/uniwidth/width: Likewise.
5792         * modules/unicase/cased-tests (Makefile.am): Link all test programs
5793         with $(LIBUNISTRING).
5794         * modules/unicase/ignorable-tests: Likewise.
5795         * modules/unicase/locale-language-tests: Likewise.
5796         * modules/unicase/tolower-tests: Likewise.
5797         * modules/unicase/totitle-tests: Likewise.
5798         * modules/unicase/toupper-tests: Likewise.
5799         * modules/unicase/u8-casecmp-tests: Likewise.
5800         * modules/unicase/u8-casecoll-tests: Likewise.
5801         * modules/unicase/u8-casefold-tests: Likewise.
5802         * modules/unicase/u8-is-cased-tests: Likewise.
5803         * modules/unicase/u8-is-casefolded-tests: Likewise.
5804         * modules/unicase/u8-is-lowercase-tests: Likewise.
5805         * modules/unicase/u8-is-titlecase-tests: Likewise.
5806         * modules/unicase/u8-is-uppercase-tests: Likewise.
5807         * modules/unicase/u8-tolower-tests: Likewise.
5808         * modules/unicase/u8-totitle-tests: Likewise.
5809         * modules/unicase/u8-toupper-tests: Likewise.
5810         * modules/unicase/u16-casecmp-tests: Likewise.
5811         * modules/unicase/u16-casecoll-tests: Likewise.
5812         * modules/unicase/u16-casefold-tests: Likewise.
5813         * modules/unicase/u16-is-cased-tests: Likewise.
5814         * modules/unicase/u16-is-casefolded-tests: Likewise.
5815         * modules/unicase/u16-is-lowercase-tests: Likewise.
5816         * modules/unicase/u16-is-titlecase-tests: Likewise.
5817         * modules/unicase/u16-is-uppercase-tests: Likewise.
5818         * modules/unicase/u16-tolower-tests: Likewise.
5819         * modules/unicase/u16-totitle-tests: Likewise.
5820         * modules/unicase/u16-toupper-tests: Likewise.
5821         * modules/unicase/u32-casecmp-tests: Likewise.
5822         * modules/unicase/u32-casecoll-tests: Likewise.
5823         * modules/unicase/u32-casefold-tests: Likewise.
5824         * modules/unicase/u32-is-cased-tests: Likewise.
5825         * modules/unicase/u32-is-casefolded-tests: Likewise.
5826         * modules/unicase/u32-is-lowercase-tests: Likewise.
5827         * modules/unicase/u32-is-titlecase-tests: Likewise.
5828         * modules/unicase/u32-is-uppercase-tests: Likewise.
5829         * modules/unicase/u32-tolower-tests: Likewise.
5830         * modules/unicase/u32-totitle-tests: Likewise.
5831         * modules/unicase/u32-toupper-tests: Likewise.
5832         * modules/unicase/ulc-casecmp-tests: Likewise.
5833         * modules/unicase/ulc-casecoll-tests: Likewise.
5834         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
5835         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
5836         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
5837         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
5838         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
5839         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
5840         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
5841         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
5842         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
5843         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
5844         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
5845         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
5846         * modules/unictype/bidicategory-byname-tests: Likewise.
5847         * modules/unictype/bidicategory-name-tests: Likewise.
5848         * modules/unictype/bidicategory-of-tests: Likewise.
5849         * modules/unictype/bidicategory-test-tests: Likewise.
5850         * modules/unictype/block-list-tests: Likewise.
5851         * modules/unictype/block-of-tests: Likewise.
5852         * modules/unictype/block-test-tests: Likewise.
5853         * modules/unictype/category-C-tests: Likewise.
5854         * modules/unictype/category-Cc-tests: Likewise.
5855         * modules/unictype/category-Cf-tests: Likewise.
5856         * modules/unictype/category-Cn-tests: Likewise.
5857         * modules/unictype/category-Co-tests: Likewise.
5858         * modules/unictype/category-Cs-tests: Likewise.
5859         * modules/unictype/category-L-tests: Likewise.
5860         * modules/unictype/category-Ll-tests: Likewise.
5861         * modules/unictype/category-Lm-tests: Likewise.
5862         * modules/unictype/category-Lo-tests: Likewise.
5863         * modules/unictype/category-Lt-tests: Likewise.
5864         * modules/unictype/category-Lu-tests: Likewise.
5865         * modules/unictype/category-M-tests: Likewise.
5866         * modules/unictype/category-Mc-tests: Likewise.
5867         * modules/unictype/category-Me-tests: Likewise.
5868         * modules/unictype/category-Mn-tests: Likewise.
5869         * modules/unictype/category-N-tests: Likewise.
5870         * modules/unictype/category-Nd-tests: Likewise.
5871         * modules/unictype/category-Nl-tests: Likewise.
5872         * modules/unictype/category-No-tests: Likewise.
5873         * modules/unictype/category-P-tests: Likewise.
5874         * modules/unictype/category-Pc-tests: Likewise.
5875         * modules/unictype/category-Pd-tests: Likewise.
5876         * modules/unictype/category-Pe-tests: Likewise.
5877         * modules/unictype/category-Pf-tests: Likewise.
5878         * modules/unictype/category-Pi-tests: Likewise.
5879         * modules/unictype/category-Po-tests: Likewise.
5880         * modules/unictype/category-Ps-tests: Likewise.
5881         * modules/unictype/category-S-tests: Likewise.
5882         * modules/unictype/category-Sc-tests: Likewise.
5883         * modules/unictype/category-Sk-tests: Likewise.
5884         * modules/unictype/category-Sm-tests: Likewise.
5885         * modules/unictype/category-So-tests: Likewise.
5886         * modules/unictype/category-Z-tests: Likewise.
5887         * modules/unictype/category-Zl-tests: Likewise.
5888         * modules/unictype/category-Zp-tests: Likewise.
5889         * modules/unictype/category-Zs-tests: Likewise.
5890         * modules/unictype/category-and-not-tests: Likewise.
5891         * modules/unictype/category-and-tests: Likewise.
5892         * modules/unictype/category-byname-tests: Likewise.
5893         * modules/unictype/category-name-tests: Likewise.
5894         * modules/unictype/category-none-tests: Likewise.
5895         * modules/unictype/category-of-tests: Likewise.
5896         * modules/unictype/category-or-tests: Likewise.
5897         * modules/unictype/category-test-withtable-tests: Likewise.
5898         * modules/unictype/combining-class-tests: Likewise.
5899         * modules/unictype/ctype-alnum-tests: Likewise.
5900         * modules/unictype/ctype-alpha-tests: Likewise.
5901         * modules/unictype/ctype-blank-tests: Likewise.
5902         * modules/unictype/ctype-cntrl-tests: Likewise.
5903         * modules/unictype/ctype-digit-tests: Likewise.
5904         * modules/unictype/ctype-graph-tests: Likewise.
5905         * modules/unictype/ctype-lower-tests: Likewise.
5906         * modules/unictype/ctype-print-tests: Likewise.
5907         * modules/unictype/ctype-punct-tests: Likewise.
5908         * modules/unictype/ctype-space-tests: Likewise.
5909         * modules/unictype/ctype-upper-tests: Likewise.
5910         * modules/unictype/ctype-xdigit-tests: Likewise.
5911         * modules/unictype/decimal-digit-tests: Likewise.
5912         * modules/unictype/digit-tests: Likewise.
5913         * modules/unictype/mirror-tests: Likewise.
5914         * modules/unictype/numeric-tests: Likewise.
5915         * modules/unictype/property-alphabetic-tests: Likewise.
5916         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
5917         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
5918         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
5919         * modules/unictype/property-bidi-block-separator-tests: Likewise.
5920         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
5921         * modules/unictype/property-bidi-common-separator-tests: Likewise.
5922         * modules/unictype/property-bidi-control-tests: Likewise.
5923         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
5924         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
5925         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
5926         * modules/unictype/property-bidi-european-digit-tests: Likewise.
5927         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
5928         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
5929         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
5930         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
5931         * modules/unictype/property-bidi-pdf-tests: Likewise.
5932         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
5933         * modules/unictype/property-bidi-whitespace-tests: Likewise.
5934         * modules/unictype/property-byname-tests: Likewise.
5935         * modules/unictype/property-combining-tests: Likewise.
5936         * modules/unictype/property-composite-tests: Likewise.
5937         * modules/unictype/property-currency-symbol-tests: Likewise.
5938         * modules/unictype/property-dash-tests: Likewise.
5939         * modules/unictype/property-decimal-digit-tests: Likewise.
5940         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
5941         * modules/unictype/property-deprecated-tests: Likewise.
5942         * modules/unictype/property-diacritic-tests: Likewise.
5943         * modules/unictype/property-extender-tests: Likewise.
5944         * modules/unictype/property-format-control-tests: Likewise.
5945         * modules/unictype/property-grapheme-base-tests: Likewise.
5946         * modules/unictype/property-grapheme-extend-tests: Likewise.
5947         * modules/unictype/property-grapheme-link-tests: Likewise.
5948         * modules/unictype/property-hex-digit-tests: Likewise.
5949         * modules/unictype/property-hyphen-tests: Likewise.
5950         * modules/unictype/property-id-continue-tests: Likewise.
5951         * modules/unictype/property-id-start-tests: Likewise.
5952         * modules/unictype/property-ideographic-tests: Likewise.
5953         * modules/unictype/property-ids-binary-operator-tests: Likewise.
5954         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
5955         * modules/unictype/property-ignorable-control-tests: Likewise.
5956         * modules/unictype/property-iso-control-tests: Likewise.
5957         * modules/unictype/property-join-control-tests: Likewise.
5958         * modules/unictype/property-left-of-pair-tests: Likewise.
5959         * modules/unictype/property-line-separator-tests: Likewise.
5960         * modules/unictype/property-logical-order-exception-tests: Likewise.
5961         * modules/unictype/property-lowercase-tests: Likewise.
5962         * modules/unictype/property-math-tests: Likewise.
5963         * modules/unictype/property-non-break-tests: Likewise.
5964         * modules/unictype/property-not-a-character-tests: Likewise.
5965         * modules/unictype/property-numeric-tests: Likewise.
5966         * modules/unictype/property-other-alphabetic-tests: Likewise.
5967         * modules/unictype/property-other-default-ignorable-code-point-tests:
5968         Likewise.
5969         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
5970         * modules/unictype/property-other-id-continue-tests: Likewise.
5971         * modules/unictype/property-other-id-start-tests: Likewise.
5972         * modules/unictype/property-other-lowercase-tests: Likewise.
5973         * modules/unictype/property-other-math-tests: Likewise.
5974         * modules/unictype/property-other-uppercase-tests: Likewise.
5975         * modules/unictype/property-paired-punctuation-tests: Likewise.
5976         * modules/unictype/property-paragraph-separator-tests: Likewise.
5977         * modules/unictype/property-pattern-syntax-tests: Likewise.
5978         * modules/unictype/property-pattern-white-space-tests: Likewise.
5979         * modules/unictype/property-private-use-tests: Likewise.
5980         * modules/unictype/property-punctuation-tests: Likewise.
5981         * modules/unictype/property-quotation-mark-tests: Likewise.
5982         * modules/unictype/property-radical-tests: Likewise.
5983         * modules/unictype/property-sentence-terminal-tests: Likewise.
5984         * modules/unictype/property-soft-dotted-tests: Likewise.
5985         * modules/unictype/property-space-tests: Likewise.
5986         * modules/unictype/property-terminal-punctuation-tests: Likewise.
5987         * modules/unictype/property-test-tests: Likewise.
5988         * modules/unictype/property-titlecase-tests: Likewise.
5989         * modules/unictype/property-unassigned-code-value-tests: Likewise.
5990         * modules/unictype/property-unified-ideograph-tests: Likewise.
5991         * modules/unictype/property-uppercase-tests: Likewise.
5992         * modules/unictype/property-variation-selector-tests: Likewise.
5993         * modules/unictype/property-white-space-tests: Likewise.
5994         * modules/unictype/property-xid-continue-tests: Likewise.
5995         * modules/unictype/property-xid-start-tests: Likewise.
5996         * modules/unictype/property-zero-width-tests: Likewise.
5997         * modules/unictype/scripts-tests: Likewise.
5998         * modules/unictype/syntax-c-ident-tests: Likewise.
5999         * modules/unictype/syntax-c-whitespace-tests: Likewise.
6000         * modules/unictype/syntax-java-ident-tests: Likewise.
6001         * modules/unictype/syntax-java-whitespace-tests: Likewise.
6002         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
6003         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
6004         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
6005         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
6006         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
6007         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
6008         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
6009         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
6010         * modules/uniname/uniname-tests: Likewise.
6011         * modules/uninorm/canonical-decomposition-tests: Likewise.
6012         * modules/uninorm/compat-decomposition-tests: Likewise.
6013         * modules/uninorm/composition-tests: Likewise.
6014         * modules/uninorm/decomposing-form-tests: Likewise.
6015         * modules/uninorm/decomposition-tests: Likewise.
6016         * modules/uninorm/filter-tests: Likewise.
6017         * modules/uninorm/nfc-tests: Likewise.
6018         * modules/uninorm/nfd-tests: Likewise.
6019         * modules/uninorm/nfkc-tests: Likewise.
6020         * modules/uninorm/nfkd-tests: Likewise.
6021         * modules/uninorm/u8-normcmp-tests: Likewise.
6022         * modules/uninorm/u8-normcoll-tests: Likewise.
6023         * modules/uninorm/u16-normcmp-tests: Likewise.
6024         * modules/uninorm/u16-normcoll-tests: Likewise.
6025         * modules/uninorm/u32-normcmp-tests: Likewise.
6026         * modules/uninorm/u32-normcoll-tests: Likewise.
6027         * modules/unistdio/u8-asnprintf-tests: Likewise.
6028         * modules/unistdio/u8-vasnprintf-tests: Likewise.
6029         * modules/unistdio/u8-vasprintf-tests: Likewise.
6030         * modules/unistdio/u8-vsnprintf-tests: Likewise.
6031         * modules/unistdio/u8-vsprintf-tests: Likewise.
6032         * modules/unistdio/u16-asnprintf-tests: Likewise.
6033         * modules/unistdio/u16-vasnprintf-tests: Likewise.
6034         * modules/unistdio/u16-vasprintf-tests: Likewise.
6035         * modules/unistdio/u16-vsnprintf-tests: Likewise.
6036         * modules/unistdio/u16-vsprintf-tests: Likewise.
6037         * modules/unistdio/u32-asnprintf-tests: Likewise.
6038         * modules/unistdio/u32-vasnprintf-tests: Likewise.
6039         * modules/unistdio/u32-vasprintf-tests: Likewise.
6040         * modules/unistdio/u32-vsnprintf-tests: Likewise.
6041         * modules/unistdio/u32-vsprintf-tests: Likewise.
6042         * modules/unistdio/ulc-asnprintf-tests: Likewise.
6043         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
6044         * modules/unistdio/ulc-vasprintf-tests: Likewise.
6045         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
6046         * modules/unistdio/ulc-vsprintf-tests: Likewise.
6047         * modules/unistr/u8-check-tests: Likewise.
6048         * modules/unistr/u8-chr-tests: Likewise.
6049         * modules/unistr/u8-cmp-tests: Likewise.
6050         * modules/unistr/u8-cmp2-tests: Likewise.
6051         * modules/unistr/u8-cpy-alloc-tests: Likewise.
6052         * modules/unistr/u8-cpy-tests: Likewise.
6053         * modules/unistr/u8-mblen-tests: Likewise.
6054         * modules/unistr/u8-mbsnlen-tests: Likewise.
6055         * modules/unistr/u8-mbtouc-tests: Likewise.
6056         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
6057         * modules/unistr/u8-mbtoucr-tests: Likewise.
6058         * modules/unistr/u8-move-tests: Likewise.
6059         * modules/unistr/u8-next-tests: Likewise.
6060         * modules/unistr/u8-prev-tests: Likewise.
6061         * modules/unistr/u8-set-tests: Likewise.
6062         * modules/unistr/u8-stpcpy-tests: Likewise.
6063         * modules/unistr/u8-stpncpy-tests: Likewise.
6064         * modules/unistr/u8-strcat-tests: Likewise.
6065         * modules/unistr/u8-strcmp-tests: Likewise.
6066         * modules/unistr/u8-strcoll-tests: Likewise.
6067         * modules/unistr/u8-strcpy-tests: Likewise.
6068         * modules/unistr/u8-strdup-tests: Likewise.
6069         * modules/unistr/u8-strlen-tests: Likewise.
6070         * modules/unistr/u8-strmblen-tests: Likewise.
6071         * modules/unistr/u8-strmbtouc-tests: Likewise.
6072         * modules/unistr/u8-strncat-tests: Likewise.
6073         * modules/unistr/u8-strncmp-tests: Likewise.
6074         * modules/unistr/u8-strncpy-tests: Likewise.
6075         * modules/unistr/u8-strnlen-tests: Likewise.
6076         * modules/unistr/u8-to-u16-tests: Likewise.
6077         * modules/unistr/u8-to-u32-tests: Likewise.
6078         * modules/unistr/u8-uctomb-tests: Likewise.
6079         * modules/unistr/u16-check-tests: Likewise.
6080         * modules/unistr/u16-chr-tests: Likewise.
6081         * modules/unistr/u16-cmp-tests: Likewise.
6082         * modules/unistr/u16-cmp2-tests: Likewise.
6083         * modules/unistr/u16-cpy-alloc-tests: Likewise.
6084         * modules/unistr/u16-cpy-tests: Likewise.
6085         * modules/unistr/u16-mblen-tests: Likewise.
6086         * modules/unistr/u16-mbsnlen-tests: Likewise.
6087         * modules/unistr/u16-mbtouc-tests: Likewise.
6088         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
6089         * modules/unistr/u16-mbtoucr-tests: Likewise.
6090         * modules/unistr/u16-move-tests: Likewise.
6091         * modules/unistr/u16-next-tests: Likewise.
6092         * modules/unistr/u16-prev-tests: Likewise.
6093         * modules/unistr/u16-set-tests: Likewise.
6094         * modules/unistr/u16-stpcpy-tests: Likewise.
6095         * modules/unistr/u16-stpncpy-tests: Likewise.
6096         * modules/unistr/u16-strcat-tests: Likewise.
6097         * modules/unistr/u16-strcmp-tests: Likewise.
6098         * modules/unistr/u16-strcoll-tests: Likewise.
6099         * modules/unistr/u16-strcpy-tests: Likewise.
6100         * modules/unistr/u16-strdup-tests: Likewise.
6101         * modules/unistr/u16-strlen-tests: Likewise.
6102         * modules/unistr/u16-strmblen-tests: Likewise.
6103         * modules/unistr/u16-strmbtouc-tests: Likewise.
6104         * modules/unistr/u16-strncat-tests: Likewise.
6105         * modules/unistr/u16-strncmp-tests: Likewise.
6106         * modules/unistr/u16-strncpy-tests: Likewise.
6107         * modules/unistr/u16-strnlen-tests: Likewise.
6108         * modules/unistr/u16-to-u32-tests: Likewise.
6109         * modules/unistr/u16-to-u8-tests: Likewise.
6110         * modules/unistr/u16-uctomb-tests: Likewise.
6111         * modules/unistr/u32-check-tests: Likewise.
6112         * modules/unistr/u32-chr-tests: Likewise.
6113         * modules/unistr/u32-cmp-tests: Likewise.
6114         * modules/unistr/u32-cmp2-tests: Likewise.
6115         * modules/unistr/u32-cpy-alloc-tests: Likewise.
6116         * modules/unistr/u32-cpy-tests: Likewise.
6117         * modules/unistr/u32-mblen-tests: Likewise.
6118         * modules/unistr/u32-mbsnlen-tests: Likewise.
6119         * modules/unistr/u32-mbtouc-tests: Likewise.
6120         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
6121         * modules/unistr/u32-mbtoucr-tests: Likewise.
6122         * modules/unistr/u32-move-tests: Likewise.
6123         * modules/unistr/u32-next-tests: Likewise.
6124         * modules/unistr/u32-prev-tests: Likewise.
6125         * modules/unistr/u32-set-tests: Likewise.
6126         * modules/unistr/u32-stpcpy-tests: Likewise.
6127         * modules/unistr/u32-stpncpy-tests: Likewise.
6128         * modules/unistr/u32-strcat-tests: Likewise.
6129         * modules/unistr/u32-strcmp-tests: Likewise.
6130         * modules/unistr/u32-strcoll-tests: Likewise.
6131         * modules/unistr/u32-strcpy-tests: Likewise.
6132         * modules/unistr/u32-strdup-tests: Likewise.
6133         * modules/unistr/u32-strlen-tests: Likewise.
6134         * modules/unistr/u32-strmblen-tests: Likewise.
6135         * modules/unistr/u32-strmbtouc-tests: Likewise.
6136         * modules/unistr/u32-strncat-tests: Likewise.
6137         * modules/unistr/u32-strncmp-tests: Likewise.
6138         * modules/unistr/u32-strncpy-tests: Likewise.
6139         * modules/unistr/u32-strnlen-tests: Likewise.
6140         * modules/unistr/u32-to-u16-tests: Likewise.
6141         * modules/unistr/u32-to-u8-tests: Likewise.
6142         * modules/unistr/u32-uctomb-tests: Likewise.
6143         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
6144         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
6145         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
6146         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
6147         * modules/uniwidth/u8-strwidth-tests: Likewise.
6148         * modules/uniwidth/u8-width-tests: Likewise.
6149         * modules/uniwidth/u16-strwidth-tests: Likewise.
6150         * modules/uniwidth/u16-width-tests: Likewise.
6151         * modules/uniwidth/u32-strwidth-tests: Likewise.
6152         * modules/uniwidth/u32-width-tests: Likewise.
6153         * modules/uniwidth/width-tests: Likewise.
6154
6155 2010-05-18  Richard Jones  <rjones@redhat.com>
6156
6157         doc: users.txt: list hivex
6158         * users.txt: Add hivex.
6159
6160 2010-05-18  Richard Jones  <rjones@redhat.com>
6161
6162         doc: users.txt: list febootstrap
6163         * users.txt: Add febootstrap.
6164
6165 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
6166
6167         bootstrap: fix an error when gnulib is not used as a git submodule
6168         * build-aux/bootstrap (gnulib_path): If its length is zero then
6169         assign "gnulib" to it.
6170         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
6171
6172 2010-05-16  Bruno Haible  <bruno@clisp.org>
6173
6174         Avoid autoconf warnings about AM_ICONV.
6175         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
6176         2.64.
6177
6178 2010-05-16  Bruno Haible  <bruno@clisp.org>
6179
6180         absolute-header: Make the macro usable in more situations.
6181         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
6182         from gl_ABSOLUTE_HEADER.
6183         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
6184
6185 2010-05-16  James Youngman  <jay@gnu.org>
6186
6187         doc: update users.txt
6188         * users.txt: Add CSSC.
6189
6190 2010-05-16  Jim Meyering  <meyering@redhat.com>
6191
6192         init.sh: fix an error in the previous change; add more comments
6193         * tests/init.sh: Compare exit code in loop against 9, not 2.
6194         Patch by Bruno Haible.
6195         Make the two tests more similar by adding an empty "then" clause.
6196         Add comments.
6197
6198         init.sh: avoid unnecessary shell re-exec
6199         * tests/init.sh: Improve the re-exec-required check to first test the
6200         current shell.  If it passes the test, do not search for a shell that
6201         does pass, and do not re-exec.  This test is particularly contorted to
6202         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
6203         of $(...) evokes a syntax error and causes immediate shell exit with
6204         status 2.  Bruno Haible reported that the re-exec made it impossible
6205         to single-step through any init.sh-using script.
6206
6207 2010-05-16  Bruno Haible  <bruno@clisp.org>
6208
6209         Fix collision between gnulib's and libintl's printf replacements.
6210         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
6211         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
6212         (printf): When using GNU C, map the __printf__ function to rpl_printf
6213         via __asm__. When not using GNU C, define rpl_printf instead of
6214         __printf__.
6215         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
6216         commit.
6217         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
6218         commit.
6219         * m4/asm-underscore.m4: New file.
6220         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
6221         * modules/stdio (Files): Add m4/asm-underscore.m4.
6222         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
6223         Reported by Ben Pfaff.
6224
6225 2010-05-16  Bruno Haible  <bruno@clisp.org>
6226
6227         verify: Avoid skipping the test on openSUSE 11.0.
6228         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
6229
6230 2010-05-13  Bruno Haible  <bruno@clisp.org>
6231
6232         Avoid useless warnings from G++.
6233         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
6234         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
6235         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6236
6237 2010-05-11  Jim Meyering  <meyering@redhat.com>
6238
6239         maint.mk: tweak preceding change
6240         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
6241         regexps tighter by anchoring at EOL, and make the new group "shy"
6242         for slightly decreased overhead.
6243
6244 2010-05-11  Eric Blake  <eblake@redhat.com>
6245
6246         maint.mk: gnulib doesn't guarantee NSIG
6247         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
6248
6249 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
6250
6251         test-pwrite.c: Remove unused variable declaration.
6252         * tests/test-pwrite.c (main): Remove read_buf declaration.
6253
6254         Remove useless test-pwrite.sh file.
6255         * tests/test-pwrite.sh: Delete file.
6256         * modules/pwrite-tests: Remove references.
6257         Reported by Bruno Haible.
6258
6259 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
6260
6261         init.sh: fix a typo
6262         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
6263
6264 2010-05-10  Jim Meyering  <meyering@redhat.com>
6265
6266         maint.mk: avoid using a temporary file in the always-defined-macros check
6267         * top/maint.mk (.re-defmac): Remove rule.
6268         (gl_trap_): Remove definition.
6269         (sc_prohibit_always-defined_macros): Rewrite not to create and
6270         depend on a temporary file.  Instead, depend on GNU grep's ability
6271         to read a list of regular expressions from stdin when given "-f -".
6272
6273 2010-05-09  Bruno Haible  <bruno@clisp.org>
6274
6275         Update to GNU gettext 0.18, part 1.
6276         * m4/gettext.m4: Update to GNU gettext 0.18.
6277         * m4/intl.m4: Likewise.
6278         * m4/po.m4: Likewise.
6279         * modules/gettext (Files): Add m4/fcntl-o.m4.
6280         (configure.ac): Require gettext infrastructure from version 0.18.
6281
6282 2010-05-09  Jim Meyering  <meyering@redhat.com>
6283
6284         init.sh: enable MALLOC_PERTURB_
6285         * tests/init.sh: Enable glibc's malloc-perturbing option.
6286
6287         maint.mk: improve sc_cross_check_PATH_usage_in_tests
6288         With my recent change in init.sh from the two-line form:
6289             -#   : ${srcdir=.}
6290             -#   . "$srcdir/init.sh"; path_prepend_ .
6291             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
6292         I noticed that using the one-line form would cause this test
6293         to fail with a false-positive, or to stop working altogether,
6294         depending on whether help-version changed or all the tests did.
6295         * top/maint.mk (_hv_regex): Remove this definition.
6296         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
6297         (_hv_regex_strong): Use a stronger regex to check for conformance.
6298         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
6299         Give a separate diagnostic for lack of conforming use.
6300
6301         maint.mk: prohibit definition of symbols defined by gnulib
6302         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
6303         definition of symbols defined by gnulib.
6304
6305 2010-05-09  Bruno Haible  <bruno@clisp.org>
6306
6307         acl: Avoid test failure on Cygwin-hosted mingw.
6308         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
6309
6310 2010-05-09  Bruno Haible  <bruno@clisp.org>
6311
6312         error: Use system's fcntl function.
6313         * lib/error.c (fcntl): Undefine.
6314
6315 2010-05-09  Jim Meyering  <meyering@redhat.com>
6316
6317         verify: adjust formatting to be more consistent
6318         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
6319         argument-list '('s, and after one comma.
6320
6321 2010-05-09  Bruno Haible  <bruno@clisp.org>
6322
6323         error: More reliable output on mingw.
6324         * lib/error.c: Include <windows.h>.
6325         (is_open): New function.
6326         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
6327         defined.
6328
6329 2010-05-09  Bruno Haible  <bruno@clisp.org>
6330
6331         vasnprintf: Fix syntax errors in libintl build on mingw.
6332         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
6333         pad_ourselves and prec_ourselves after use.
6334
6335 2010-05-08  Bruno Haible  <bruno@clisp.org>
6336
6337         * lib/config.charset: Update comments for Cygwin 1.7.
6338         * lib/localcharset.c: Likewise.
6339
6340 2010-05-07  Jim Meyering  <meyering@redhat.com>
6341
6342         init.sh: improve comments
6343         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
6344         . "${srcdir=.}/init.sh"; path_prepend_ .
6345         Add a note about path_prepend_ and the alternative of using
6346         TESTS_ENVIRONMENT.
6347
6348 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
6349
6350         exclude: Unescape hashed patterns in wildcard mode.
6351         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
6352         to the hash list.
6353         * tests/test-exclude8.sh: New test case.
6354         * modules/exclude-tests: Add new test.
6355
6356 2010-05-05  Eric Blake  <eblake@redhat.com>
6357
6358         verify: automate tests
6359         * modules/verify-tests: New module.
6360         * tests/test-verify.sh: New file.
6361         * tests/test-verify.c: Guard each negative test with a unique id.
6362         Also avoid warning about unused left hand of comma expressions.
6363
6364 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
6365
6366         Further improvements to verify.h, suggested by Eric Blake.
6367         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
6368         the GL_* versions, to avoid collision with OpenGL.
6369         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
6370         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
6371         than testing merely whether it's defined.
6372
6373         Modify verify.h to pacify gcc -Wredundant_decls.
6374         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
6375         These use the prefix "GL_" since they're likely to be useful elsewhere.
6376         We may need to break them out into a different .h file.
6377         (__COUNTER__): Define to 0 if the compiler doesn't support it.
6378         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
6379         of verify_function__.
6380
6381 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
6382
6383         Tests for module pwrite.
6384         * modules/pwrite-tests: New file.
6385         * tests/test-pwrite.sh: New file.
6386         * tests/test-pwrite.c: New file.
6387
6388         New module pwrite.
6389         * lib/unistd.in.h (pwrite): New declaration.
6390         * lib/pwrite.c: New file, from glibc with modifications.
6391         * m4/pwrite.m4: New file.
6392         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
6393         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
6394         REPLACE_PWRITE.
6395         * modules/pwrite: New file.
6396         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
6397         REPLACE_PWRITE.
6398         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
6399         * doc/posix-functions/pwrite.texi: Mention the new module.
6400
6401 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
6402
6403         pread: Update documentation.
6404         * doc/posix-functions/pread.texi: Mention the 'pread' module.
6405
6406 2010-05-04  Eric Blake  <eblake@redhat.com>
6407
6408         docs: update cygwin progress
6409         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
6410         this bug.
6411         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
6412         Added in cygwin 1.7.2.
6413         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
6414         Likewise.
6415         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
6416         Likewise.
6417         * doc/glibc-functions/dup3.texi (dup3): Likewise.
6418         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6419         * doc/glibc-functions/accept4.texi (accept4): Likewise.
6420         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
6421         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
6422         Mention nproc module.
6423         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
6424         bug in cygwin 1.7.5 addition.
6425         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
6426         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
6427         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
6428         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
6429         1.7.5.
6430         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
6431         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
6432         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
6433         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
6434         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
6435         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
6436         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
6437         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
6438         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
6439         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
6440         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
6441         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
6442         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
6443         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
6444         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
6445         Likewise.
6446         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
6447         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
6448         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
6449         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
6450         Likewise.
6451         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
6452         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
6453         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
6454         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
6455         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
6456         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
6457         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
6458         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
6459         Likewise.
6460         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
6461         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
6462         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
6463         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
6464         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
6465         Likewise.
6466         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
6467         Likewise.
6468         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
6469         Likewise.
6470         * doc/glibc-functions/xdrrec_endofrecord.texi
6471         (xdrrec_endofrecord): Likewise.
6472         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
6473         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
6474         Likewise.
6475         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
6476         Likewise.
6477
6478 2010-05-04  Jim Meyering  <meyering@redhat.com>
6479
6480         gendocs.sh: make its "-s FILE" option more useful
6481         * build-aux/gendocs.sh: When honoring the -s FILE option, update
6482         $PACKAGE to reflect the probably-different basename of "FILE".
6483
6484 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
6485
6486         bootstrap: don't ignore download_po_files failure
6487         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
6488         failure.
6489
6490 2010-05-03  Jim Meyering  <meyering@redhat.com>
6491
6492         maint.mk: allow to pass options to gendocs.sh
6493         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
6494         (gendocs_options_): New overridable variable.
6495
6496         gnu-web-doc-update: don't ignore configure or build failure
6497         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
6498
6499         announce-gen: backslash-escape '@'s in --help output
6500         * build-aux/announce-gen: Fix syntax errors.
6501
6502         maint.mk, announce-gen: allow project-specific announcement mail headers
6503         * top/maint.mk (translation_project_): Define default.
6504         (announcement_Cc_, announcement_mail_headers_): Likewise.
6505         (announcement): Invoke announce-gen with new --mail-headers option.
6506         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
6507
6508         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
6509         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
6510         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
6511         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
6512         line in the "err2" output file when running "make check" in verbose
6513         mode (i.e., with set -x enabled).
6514
6515 2010-05-03  Bruno Haible  <bruno@clisp.org>
6516
6517         wctob: Fix for weird platforms.
6518         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
6519         argument value.
6520
6521 2010-05-03  Jim Meyering  <meyering@redhat.com>
6522
6523         maint.mk: prohibit unwarranted use of <strings.h>
6524         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
6525         strings.h in a file that does not also use strcasecmp, strncasecmp,
6526         ffs or ffsll.
6527
6528         maint.mk: remove obsolete comments
6529         * top/maint.mk: Remove stale, commented-out rules.
6530
6531 2010-05-02  Bruno Haible  <bruno@clisp.org>
6532
6533         wcwidth: Declare also when it's aliased.
6534         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
6535         macro.
6536
6537 2010-05-02  Bruno Haible  <bruno@clisp.org>
6538
6539         Fix regression from 2010-04-25.
6540         * gnulib-tool (func_modules_transitive_closure): Check the status of
6541         all modules, not only of the tests that are of the form foo-tests where
6542         foo is a module.
6543
6544 2010-05-02  Bruno Haible  <bruno@clisp.org>
6545
6546         wctob: Work around nasty Cygwin 1.7.2 bug.
6547         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
6548         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
6549
6550 2010-05-01  Bruno Haible  <bruno@clisp.org>
6551
6552         fpurge: Sharper test.
6553         * tests/test-fpurge.c (main): Add one more ftell check.
6554         * modules/fpurge-tests (Depends-on): Add ftell.
6555         Suggested by Eric Blake.
6556
6557 2010-05-01  Bruno Haible  <bruno@clisp.org>
6558
6559         ftello: Another test.
6560         * tests/test-ftello3.c: New file.
6561         * modules/ftello-tests (Files): Add it.
6562         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
6563         MOSTLYCLEANFILES.
6564
6565         ftell: Another test.
6566         * tests/test-ftell3.c: New file.
6567         * modules/ftell-tests (Files): Add it.
6568         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
6569         MOSTLYCLEANFILES.
6570
6571 2010-05-01  Bruno Haible  <bruno@clisp.org>
6572
6573         ftell, ftello: Work around Solaris bug.
6574         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
6575         * lib/ftello.c: Include stdio-impl.h.
6576         (ftello): On Solaris, when _IOWRT is set, compute the result without
6577         looking at _IOREAD.
6578         * modules/ftello (Files): Add lib/stdio-impl.h.
6579         * doc/posix-functions/ftell.texi: Mention Solaris bug.
6580         * doc/posix-functions/ftello.texi: Likewise.
6581         Reported by Eric Blake.
6582
6583 2010-05-01  Bruno Haible  <bruno@clisp.org>
6584
6585         freading: Adapt to special meaning of _IOREAD flag on Solaris.
6586         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
6587         the _IOWRT flag is also set.
6588
6589 2010-05-01  Bruno Haible  <bruno@clisp.org>
6590
6591         Fix doc about a HP-UX stdio bug.
6592         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
6593         * doc/posix-functions/ftello.texi: Likewise.
6594
6595 2010-05-01  Bruno Haible  <bruno@clisp.org>
6596
6597         lseek test: Fix failure on Solaris.
6598         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
6599         output.
6600
6601 2010-04-30  Jim Meyering  <meyering@redhat.com>
6602
6603         bootstrap: don't ignore failure to generate po*/Makevars
6604         * build-aux/bootstrap (with_gettext): Don't ignore failure
6605         to create po/Makevars or runtime-po/Makevars.
6606
6607 2010-04-29  Eric Blake  <eblake@redhat.com>
6608
6609         headers: relax license to LGPLv2+
6610         * modules/fcntl-h (License): Relax license.
6611         * modules/getopt-posix (License): Likewise.
6612         * modules/locale (License): Likewise.
6613         * modules/math (License): Likewise.
6614         * modules/pty (License): Likewise.
6615         * modules/sched (License): Likewise.
6616         * modules/search (License): Likewise.
6617         * modules/spawn (License): Likewise.
6618         * modules/stdarg (License): Likewise.
6619         * modules/sysexits (License): Likewise.
6620
6621 2010-04-29  Jim Meyering  <meyering@redhat.com>
6622
6623         inttypes: relax license to LGPLv2+
6624         * modules/inttypes (License): Relax license.
6625
6626 2010-04-29  Simon Josefsson  <simon@josefsson.org>
6627
6628         * top/maint.mk (indent): Run twice to produce idempotent results.
6629
6630 2010-04-28  Bruno Haible  <bruno@clisp.org>
6631
6632         getdate: Generate getdate.c in the source directory.
6633         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
6634         MOSTLYCLEANFILES.
6635         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
6636
6637 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
6638
6639         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
6640         is not declared as a const *; avoid warnings in that case.
6641
6642 2010-04-28  Eric Blake  <eblake@redhat.com>
6643
6644         canonicalize-lgpl: avoid compiler warning
6645         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
6646         declaration' / 'extraneous semicolon' warning with some compilers.
6647         Reported by Andreas Gruenbacher.
6648
6649 2010-04-28  Jim Meyering  <meyering@redhat.com>
6650
6651         init.sh: ensure a more reliable exit status when exiting via trap
6652         * tests/init.sh (setup_): Don't rely on $? in signal handler.
6653         Inspired by patches from Dmitry V. Levin.
6654         Also trap on signal 3 (SIGQUIT).
6655
6656 2010-04-27  Bruno Haible  <bruno@clisp.org>
6657
6658         Update doc about utimes().
6659         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
6660         'utimens' module.
6661         Reported by Andreas Gruenbacher <agruen@suse.de>.
6662
6663 2010-04-27  Eric Blake  <eblake@redhat.com>
6664
6665         full-read, full-write: relax license
6666         * modules/full-read (License): Drop to LGPLv2+.
6667         * modules/full-write (License): Likewise.
6668         * modules/safe-read (License): Likewise.
6669         * modules/safe-write (License): Likewise.
6670
6671         pthread: mention library for linking
6672         * modules/pthread (Link): Mention $(LIB_PTHREAD).
6673
6674 2010-04-27  Jim Meyering  <meyering@redhat.com>
6675
6676         maint.mk: fix a bug introduced in last change
6677         * top/maint.mk (gl_assured_headers_): Now that all names are on
6678         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
6679         is not anchored to end of word, it should be adequate.
6680
6681         maint.mk: avoid side-effect in latest syntax-check
6682         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
6683         to run commands via $(shell...), and hence to incur cost only when
6684         the new rule is actually run.
6685
6686         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
6687         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
6688         and use that to create a regexp used to detect all #if HAVE_..._H uses.
6689         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
6690         (gl_assured_headers_, az_, AZ_): Define.
6691         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
6692
6693 2010-04-26  Jim Meyering  <jim@meyering.net>
6694             Bruno Haible  <bruno@clisp.org>
6695
6696         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
6697         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
6698         Prompted by an exchange with Gilles Espinasse.
6699
6700 2010-04-26  Jim Meyering  <meyering@redhat.com>
6701
6702         git-version-gen: aesthetic tweak
6703         * build-aux/git-version-gen: Use "$nl" rather than a literal,
6704         so that the command remains on a single line.
6705
6706 2010-04-26  Eric Blake  <eblake@redhat.com>
6707
6708         git-version-gen: allow use on EBCDIC hosts
6709         * build-aux/git-version-gen (dirty): Use literal rather than tying
6710         ourselves to ascii.
6711         Reported by Steve Goetze.
6712
6713 2010-04-25  Bruno Haible  <bruno@clisp.org>
6714
6715         netdb: Add support for GNULIB_POSIXCHECK.
6716         * lib/netdb.in.h: Include warn-on-use.h.
6717         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
6718         functions are used when GNULIB_POSIXCHECK is defined and the
6719         getaddrinfo module is not in use.
6720         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
6721         freeaddrinfo, gai_strerror, getnameinfo are declared.
6722         * modules/netdb (Depends-on): Add warn-on-use.
6723         (Makefile.am): Include warn-on-use.h in netdb.h.
6724
6725 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
6726
6727         build: avoid "make check" failure without .git/ directory
6728         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
6729         there is no .git/ directory.
6730
6731 2010-04-25  Bruno Haible  <bruno@clisp.org>
6732
6733         ptsname: Fix misuse of ttyname_r.
6734         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
6735         of errno.
6736
6737 2010-04-25  Bruno Haible  <bruno@clisp.org>
6738
6739         ttyname_r: Make it work on Solaris 10.
6740         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
6741         if the system function has the POSIX declaration. Test whether the
6742         function fails if the buffer is less than 128 bytes large.
6743         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
6744         system's ttyname_r function. Provide a reasonably large buffer.
6745         * modules/ttyname_r (Depends-on): Add extensions.
6746         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
6747
6748 2010-04-25  Bruno Haible  <bruno@clisp.org>
6749
6750         Use the 'extensions' module for some more functions on Solaris.
6751         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
6752         module.
6753         * doc/posix-functions/ctime_r.texi: Likewise.
6754         * doc/posix-functions/getgrgid_r.texi: Likewise.
6755         * doc/posix-functions/getgrnam_r.texi: Likewise.
6756         * doc/posix-functions/getpwnam_r.texi: Likewise.
6757         * doc/posix-functions/getpwuid_r.texi: Likewise.
6758         * doc/posix-functions/readdir_r.texi: Likewise.
6759         * doc/posix-functions/sigwait.texi: Likewise.
6760         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
6761         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
6762
6763 2010-04-25  Bruno Haible  <bruno@clisp.org>
6764
6765         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
6766         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
6767         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
6768         * lib/ttyname_r.c: Include <limits.h>.
6769         (ttyname_r): Define using the system's ttyname_r function, if it exists
6770         and not on Solaris.
6771         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
6772         set.
6773         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
6774         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
6775         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
6776         Reported by Simon Josefsson.
6777
6778 2010-04-25  Bruno Haible  <bruno@clisp.org>
6779
6780         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
6781         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
6782         * doc/posix-functions/ctime_r.texi: Likewise.
6783         * doc/posix-functions/getgrgid_r.texi: Likewise.
6784         * doc/posix-functions/getgrnam_r.texi: Likewise.
6785         * doc/posix-functions/getlogin_r.texi: Likewise.
6786         * doc/posix-functions/getpwnam_r.texi: Likewise.
6787         * doc/posix-functions/getpwuid_r.texi: Likewise.
6788         * doc/posix-functions/readdir_r.texi: Likewise.
6789         * doc/posix-functions/sigwait.texi: Likewise.
6790         * doc/posix-functions/ttyname_r.texi: Likewise.
6791         Reported by Simon Josefsson.
6792
6793 2010-04-25  Bruno Haible  <bruno@clisp.org>
6794
6795         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
6796         * gnulib-tool (func_usage): Document that --with-*-tests options apply
6797         also to --create-testdir.
6798         (func_acceptable): Don't consider the status of *-tests modules here.
6799         (func_modules_transitive_closure): Consider it here, before including a
6800         test module.
6801         (func_import, func_create_testdir): Set inc_all_direct_tests,
6802         inc_all_indirect_tests.
6803         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
6804         --create-testdir and --create-megatestdir.
6805
6806 2010-04-25  Bruno Haible  <bruno@clisp.org>
6807
6808         gnulib-tool: Add --without-*-tests options.
6809         * gnulib-tool (func_usage): Document the --without-*-tests options.
6810         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
6811         excl_unportable_tests): New variables.
6812         Fail if they are specified with --import or --update.
6813         (func_acceptable): Respect the excl_*_tests variables.
6814         (func_import): Set the excl_*_tests variables to empty.
6815
6816 2010-04-25  Simon Josefsson  <simon@josefsson.org>
6817             Bruno Haible  <bruno@clisp.org>
6818
6819         Work around a MacOS X 10.4 bug with openpty.
6820         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
6821         * tests/test-openpty.c (main): Close the master side explicitly.
6822
6823 2010-04-25  Bruno Haible  <bruno@clisp.org>
6824
6825         strnlen: Fix a C++ test error on MacOS X and Solaris.
6826         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
6827         the function is not declared.
6828         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
6829         Simon Josefsson.
6830
6831 2010-04-24  Bruno Haible  <bruno@clisp.org>
6832
6833         Avoid a gcc warning.
6834         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
6835         of correct type for %08lx directive.
6836         Reported by Eric Blake.
6837
6838 2010-04-24  Bruno Haible  <bruno@clisp.org>
6839
6840         vasnprintf: Correct errno value in case of out-of-memory.
6841         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
6842         or sprintf. Use the errno value from SNPRINTF or sprintf.
6843         Reported by Ian Beckwith <ianb@erislabs.net>.
6844
6845 2010-04-24  Bruno Haible  <bruno@clisp.org>
6846
6847         ansi-c++-opt: Find correct compiler when cross-compiling.
6848         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
6849         AC_CHECK_PROGS.
6850         Reported by Simon Josefsson.
6851
6852 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
6853
6854         vc-list-files: Add support for subversion
6855         * build-aux/vc-list-files: Use "svn list" to generate the list of
6856         files controlled by subversion.
6857
6858 2010-04-23  Jim Meyering  <meyering@redhat.com>
6859
6860         vc-list-files tests: convert to use init.sh
6861         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
6862         path_prepend_.
6863         Use Exit, not exit.
6864         Use skip_ rather than open coding it.
6865         Remove trap set-up and compare definitions.
6866         * tests/test-vc-list-files-git.sh: Likewise.
6867         * modules/vc-list-files-tests (Files): Add tests/init.sh.
6868
6869 2010-04-22  Simon Josefsson  <simon@josefsson.org>
6870
6871         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
6872         backup files.
6873
6874 2010-04-21  Simon Josefsson  <simon@josefsson.org>
6875
6876         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
6877
6878 2010-04-20  Eric Blake  <eblake@redhat.com>
6879
6880         tests: be robust to ignored SIGPIPE
6881         * tests/test-select-in.sh: Consume all output.
6882         * tests/test-lseek.sh: Check correct exit status, while avoiding
6883         EPIPE.
6884
6885 2010-04-20  Simon Josefsson  <simon@josefsson.org>
6886             Bruno Haible  <bruno@clisp.org>
6887
6888         visibility: Don't use -fvisibility if it leads to a warning.
6889         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
6890         yes, don't pretend that visibility works if it leads to a warning.
6891         Reported by Mike Gran <spk121@yahoo.com>.
6892
6893 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
6894
6895         * build-aux/bootstrap: Use "git -h" for testing for supported options
6896         instead of "git --help".  The short-form option only shows a summary,
6897         and doesn't layout the full man page.  Grep for the full option name
6898         in the summary, too.
6899
6900 2010-04-19  Bruno Haible  <bruno@clisp.org>
6901
6902         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
6903         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
6904         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
6905         mention of RELOCATABLE_STRIP.
6906         Reported by Sylvain Beucler <beuc@beuc.net>.
6907
6908 2010-04-19  Bruno Haible  <bruno@clisp.org>
6909
6910         * lib/diffseq.h: Fix typo in comment.
6911         Reported by Eric Blake.
6912
6913 2010-04-19  Bruno Haible  <bruno@clisp.org>
6914
6915         ioctl: Move autoconf macro to a .m4 file.
6916         * m4/ioctl.m4: New file, extracted from modules/ioctl.
6917         * modules/ioctl (Files): Add it.
6918         (configure.ac): Simply invoke gl_FUNC_IOCTL.
6919         Reported by Ian Beckwith <ianb@erislabs.net>.
6920
6921 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
6922             Bruno Haible  <bruno@clisp.org>
6923
6924         diffseq: Accommodate use-case with abstract arrays.
6925         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
6926         is not defined.
6927         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
6928         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
6929
6930 2010-04-18  Bruno Haible  <bruno@clisp.org>
6931
6932         * doc/posix-headers/stdbool.texi: More precise wording.
6933
6934 2010-04-17  Jim Meyering  <meyering@redhat.com>
6935
6936         maint.mk: use gnu-style indentation in an embedded perl script
6937         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
6938         Rename variable: s/two/last_two_bytes/
6939
6940 2010-04-16  Eric Blake  <eblake@redhat.com>
6941
6942         test-stdbool: skip test that fails with Solaris CC
6943         * tests/test-stdbool.c (f): Skip test that causes compilation
6944         error under buggy C++ compiler.
6945         * lib/stdbool.in.h: Document the limitation.
6946         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
6947
6948         setenv: allow compilation with C++
6949         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
6950         register keyword.
6951
6952         stdint: allow test to pass with C++
6953         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
6954
6955         getopt: allow compilation with C++
6956         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
6957         struct.
6958         * lib/getopt.c (_getopt_internal_r): Use correct type.
6959         Reported by Dagobert Michelson, via Joel E. Denny.
6960
6961 2010-04-16  Bruno Haible  <bruno@clisp.org>
6962
6963         Override netdb.h always.
6964         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
6965         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
6966         Reported by Ludovic Courtès <ludo@gnu.org>.
6967
6968 2010-04-15  Bruno Haible  <bruno@clisp.org>
6969
6970         openpty: Fix mistake from 2010-03-21.
6971         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
6972         Reported by Simon Josefsson.
6973
6974 2010-04-15  Eric Blake  <eblake@redhat.com>
6975
6976         test-forkpty: fix expected signature
6977         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
6978         Reported by Simon Josefsson.
6979
6980 2010-04-15  Jim Meyering  <meyering@redhat.com>
6981
6982         maint.mk: texinfo_suffix_re_: correct the default regexp
6983         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
6984
6985         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
6986         make it configurable via texinfo_suffix_re_.
6987
6988 2010-04-14  Eric Blake  <eblake@redhat.com>
6989
6990         strtok_r: relax license to LGPLv2+
6991         * modules/strtok_r (License): Relax license.
6992         Reported by Matthias Bolte.
6993
6994 2010-04-14  Simon Josefsson  <simon@josefsson.org>
6995
6996         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
6997         version 1.4.4 by default instead of requiring the libgcrypt
6998         version used during build.  This makes it possible to use the
6999         application with older but still binary compatible libgcrypt
7000         versions.
7001
7002 2010-04-13  Eric Blake  <eblake@redhat.com>
7003
7004         getopt-gnu: match recent glibc fixes and posix ruling
7005         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
7006         '+' handling, when requesting extensions.
7007         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
7008         'W;' handling.
7009         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
7010         * doc/posix-functions/getopt.texi (getopt): Document this.
7011         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7012         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7013         Likewise.
7014
7015         getopt: merge bug fixes from glibc
7016         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
7017         diagnostics.  Honor '+:' correctly.  Reject ';'.
7018
7019         getopt-posix: detect MacOS bug
7020         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
7021         optind when missing a required argument.
7022         * doc/posix-functions/getopt.texi (getopt): Document the bug.
7023         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7024         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7025         Likewise.
7026
7027         getopt-posix: avoid spurious failure on Solaris
7028         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
7029         an indicator that setting optind=1 is sufficient for reset.
7030
7031         getopt-posix: avoid spurious failure on FreeBSD
7032         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
7033         in POSIX mode, since the m4 test uses it.
7034
7035         gnulib-tool: silence warning on BSD sh
7036         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
7037
7038 2010-04-13  Jim Meyering  <meyering@redhat.com>
7039
7040         doc: users.txt: GNU patch now uses gnulib
7041         * users.txt: Add patch.
7042
7043 2010-04-12  Jim Meyering  <meyering@redhat.com>
7044
7045         maint.mk: generate more concise timing data for syntax-check rules
7046         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
7047         " done" from each line that reports a syntax-check test duration.
7048
7049 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
7050
7051         git-version-gen: use "git update-index..." rather than "git status"
7052         * build-aux/git-version-gen: Use git update-index --refresh, not
7053         "git status".  With some versions of git, "git status" would fail
7054         to update the index and result in an unwarranted "-dirty" suffix.
7055
7056 2010-04-11  Jim Meyering  <meyering@redhat.com>
7057
7058         openat: correct formatting (no semantic change)
7059         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
7060         Suggested by Bruno Haible.
7061
7062 2010-04-11  Bruno Haible  <bruno@clisp.org>
7063
7064         Stricter declaration checking in testdirs.
7065         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7066         If for_tests is true, augment AM_CPPFLAGS to define
7067         GNULIB_STRICT_CHECKING.
7068         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
7069         GNULIB_STRICT_CHECKING is defined, verify that the function is
7070         declared.
7071
7072 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
7073             Bruno Haible  <bruno@clisp.org>
7074
7075         libunistring: Improve configure output.
7076         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
7077         Don't say "consider installing GNU libunistring" when checking again
7078         with libiconv.
7079
7080 2010-04-11  Bruno Haible  <bruno@clisp.org>
7081
7082         libunistring: Correct value of $LTLIBUNISTRING.
7083         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
7084         correct the value of $LTLIBUNISTRING.
7085
7086 2010-04-11  Bruno Haible  <bruno@clisp.org>
7087
7088         havelib: Add static libraries to LIBS in the right order.
7089         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
7090         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
7091
7092 2010-04-11  Bruno Haible  <bruno@clisp.org>
7093
7094         libunistring: Detect libunistring also when it depends on libiconv.
7095         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
7096         the second AC_LIB_HAVE_LINKFLAGS invocation.
7097
7098 2010-04-11  James Youngman  <jay@gnu.org>
7099
7100         close-stream: declare local scalars to be "const"
7101         * lib/close-stream.c (close_stream): Make boolean variables const
7102         to document the fact that we set but do not change them.
7103
7104 2010-04-11  Bruno Haible  <bruno@clisp.org>
7105
7106         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
7107
7108 2010-04-11  Jim Meyering  <meyering@redhat.com>
7109
7110         maint.mk: don't include dist-check.mk
7111         * top/maint.mk: Remove bogus include directive.
7112
7113         maint.mk: improve empty-line-at-EOF check
7114         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
7115         solution, rather than tail+Perl-based one.  The latter would read
7116         a few kilobytes from the end of each file, and did not handle empty
7117         files properly.
7118
7119         maint.mk: print the elapsed time for each syntax-check rule
7120         * top/maint.mk (sc_m_rules_): Save start time in a file.
7121         (sc_z_rules_): New rules: remove temp file and print elapsed time.
7122         (local-check): Interpose the .z rules
7123
7124 2010-04-11  Jim Meyering  <meyering@redhat.com>
7125
7126         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
7127         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
7128         empty file with one that ends in an empty line.
7129
7130 2010-04-10  Bruno Haible  <bruno@clisp.org>
7131
7132         mkdir: Make it work on mingw64.
7133         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
7134         * lib/mkdir.c: Update comment.
7135         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
7136
7137 2010-04-10  Bruno Haible  <bruno@clisp.org>
7138
7139         Don't override improved macro from newer autoconf.
7140         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
7141         autoconf >= 2.62.
7142         Reported by Joel E. Denny <jdenny@clemson.edu>.
7143
7144 2010-04-10  Jim Meyering  <meyering@redhat.com>
7145
7146         maint.mk: new syntax-check rule: prohibit empty lines at end of file
7147         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
7148
7149         maint.mk: correct a diagnostic
7150         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
7151         in diagnostic; now use $prohibit.
7152
7153 2010-04-10  Bruno Haible  <address@hidden>
7154
7155         fchownat: Fix a C++ test error on Solaris 8.
7156         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
7157         the function does not exist.
7158
7159 2010-04-10  Bruno Haible  <bruno@clisp.org>
7160
7161         vasnprintf: Add more tests.
7162         * tests/test-vasnprintf-posix.c: Include <errno.h>.
7163         (test_function): Test converting an invalid wide string.
7164
7165         vasnprintf: Correct handling of unconvertible wide string arguments.
7166         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
7167         VASNPRINTF.
7168         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
7169         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
7170         smaller than the expected maximum need for the directive. Set errno to
7171         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
7172         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
7173         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
7174         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
7175         * modules/vasnprintf (Files): Add m4/printf.m4.
7176         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7177
7178 2010-04-10  Bruno Haible  <bruno@clisp.org>
7179
7180         vasnprintf: Fix crash in %ls directive.
7181         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
7182         string is passed as argument to %ls, with no precision and no width.
7183         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7184
7185 2010-04-10  Bruno Haible  <bruno@clisp.org>
7186
7187         vasnprintf: Fix multiple test failures on mingw.
7188         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
7189         _snprintf, or snwprintf, not _snwprintf.
7190
7191 2010-04-10  Bruno Haible  <bruno@clisp.org>
7192
7193         write: Fix a C++ test error on mingw.
7194         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
7195
7196 2010-04-10  Bruno Haible  <bruno@clisp.org>
7197
7198         vasnprintf test: Reduce code duplication.
7199         * tests/test-vasnprintf.c (test_function): New function, extracted from
7200         test_vasnprintf.
7201         (test_vasnprintf, test_asnprintf): Invoke it.
7202
7203 2010-04-10  Bruno Haible  <bruno@clisp.org>
7204
7205         strnlen: Fix warning in C++ mode on MacOS X.
7206         * lib/string.in.h (strnlen): Use the modern idiom.
7207         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
7208         defining strnlen as a macro already in <config.h>.
7209         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7210         REPLACE_STRNLEN.
7211         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
7212         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7213
7214 2010-04-08  James Youngman  <jay@gnu.org>
7215
7216         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
7217         the example.
7218
7219 2010-04-09  Jim Meyering  <meyering@redhat.com>
7220
7221         maint.mk: print better diagnostic when there is no $(_hv_file)
7222         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
7223         announce that when $(_hv_file) (aka help-version) does not exist.
7224
7225         init.sh: run tr in the "C" locale to avoid multibyte interpretation
7226         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
7227         not try to interpret its random input bytes.  Jarno Rajahalme reported
7228         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
7229         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
7230         (mktempd_): Likewise, just in case.
7231
7232         ftruncate: add two years to projected module removal date: 2012
7233         * m4/ftruncate.m4: Adjust comments.
7234
7235         ftruncate: mark module as obsolete; even MinGW provides it, now
7236         * modules/ftruncate (Status): Obsolete.
7237         (Notice): Say that.
7238         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
7239         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
7240
7241 2010-04-08  Bruno Haible  <bruno@clisp.org>
7242
7243         Fix side effects from tests-related modules.
7244         * modules/dprintf-posix (Comment): New section.
7245         * modules/fprintf-posix (Comment): Likewise.
7246         * modules/obstack-printf-posix (Comment): Likewise.
7247         * modules/printf-posix (Comment): Likewise.
7248         * modules/snprintf-posix (Comment): Likewise.
7249         * modules/sprintf-posix (Comment): Likewise.
7250         * modules/vasnprintf-posix (Comment): Likewise.
7251         * modules/vasprintf-posix (Comment): Likewise.
7252         * modules/vdprintf-posix (Comment): Likewise.
7253         * modules/vfprintf-posix (Comment): Likewise.
7254         * modules/vprintf-posix (Comment): Likewise.
7255         * modules/vsnprintf-posix (Comment): Likewise.
7256         * modules/vsprintf-posix (Comment): Likewise.
7257         * modules/xprintf-posix (Comment): Likewise.
7258         * modules/xvasprintf-posix (Comment): Likewise.
7259         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
7260         * modules/floorf-tests (Depends-on): Likewise.
7261         * modules/round-tests (Depends-on): Likewise.
7262         * modules/roundf-tests (Depends-on): Likewise.
7263         * modules/trunc-tests (Depends-on): Likewise.
7264         * modules/truncf-tests (Depends-on): Likewise.
7265         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
7266         'fprintf-posix' module is not present.
7267         * tests/test-floorf2.c (check): Likewise.
7268         * tests/test-trunc2.c (check): Likewise.
7269         * tests/test-truncf2.c (check): Likewise.
7270         * tests/test-round2.c (equal): Likewise.
7271         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7272
7273 2010-04-07  Karl Berry  <karl@gnu.org>
7274
7275         * config/srclist.txt,
7276         * config/srclistvars.sh,
7277         * config/srclist-update: doc fixes.
7278
7279 2010-04-07  Jim Meyering  <meyering@redhat.com>
7280
7281         maint.mk: add a PATH crosschecking syntax-check rule
7282         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
7283         Useful if you use a test like the one in help-version (coreutils,
7284         diffutils, grep, gzip) that ensures $(VERSION) matches what is
7285         printed by prog --version.
7286
7287 2010-04-06  Bruno Haible  <bruno@clisp.org>
7288
7289         Fix link error on mingw.
7290         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
7291         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
7292
7293 2010-04-06  Bruno Haible  <bruno@clisp.org>
7294
7295         Assume rmdir exists.
7296         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
7297
7298 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
7299
7300         doc: update users.txt
7301         * users.txt: Add gcal.
7302
7303 2010-04-06  Jim Meyering  <meyering@redhat.com>
7304
7305         init.sh: simply unset TMPDIR rather than risking env -i
7306         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
7307         although it probably works fine on all Unix-based systems, some
7308         systems (Cygwin?) cannot tolerate a totally cleared environment.
7309         Suggestion from Eric Blake.
7310
7311 2010-04-06  Jim Meyering  <meyering@redhat.com>
7312
7313         init.sh: portability fix: use env's POSIX-specified -i option not -u
7314         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
7315         than unportable env -u.  Solaris 5.11's env lacks support for -u.
7316
7317 2010-04-05  Bruno Haible  <bruno@clisp.org>
7318
7319         btowc: Work around Cygwin 1.7.2 bug.
7320         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
7321         does not map NUL to 0.
7322         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
7323
7324 2010-04-05  Bruno Haible  <bruno@clisp.org>
7325
7326         Make the multithread modules work on Cygwin 1.7.2.
7327         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
7328         imported symbols can be declared weak, so that it returns "no" on
7329         Cygwin 1.7.2.
7330
7331 2010-04-05  Bruno Haible  <bruno@clisp.org>
7332
7333         Use the module 'strncat'.
7334         * modules/unistr/u8-strncat (Depends-on): Add strncat.
7335
7336         Tests for module 'strncat'.
7337         * modules/strncat-tests: New file.
7338         * tests/test-strncat.c: New file.
7339
7340         New module 'strncat'.
7341         * lib/string.in.h (strncat): New declaration.
7342         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
7343         * m4/strncat.m4: New file, based on m4/memchr.m4.
7344         * modules/strncat: New file.
7345         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
7346         is declared.
7347         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
7348         REPLACE_STRNCAT.
7349         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
7350         REPLACE_STRNCAT.
7351         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
7352         module.
7353         * tests/test-string-c++.cc: Check signature of strncat.
7354
7355 2010-04-05  Jim Meyering  <meyering@redhat.com>
7356
7357         xstrtoumax-tests: convert to use init.sh
7358         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
7359         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7360         Use Exit, not exit.
7361         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7362
7363         xstrtoimax-tests: convert to use init.sh
7364         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
7365         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7366         Use Exit, not exit.
7367         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7368
7369 2010-04-05  Bruno Haible  <bruno@clisp.org>
7370
7371         sys_socket: Avoid #define replacements in C++ mode.
7372         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
7373         warning to the function if possible, rather than #defining the symbol
7374         to a dysfunctional alias.
7375
7376 2010-04-05  Bruno Haible  <bruno@clisp.org>
7377
7378         fseeko: Fix C++ test error on mingw.
7379         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
7380         gl_FUNC_FSEEKO.
7381         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
7382         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
7383         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
7384         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
7385
7386 2010-04-05  Bruno Haible  <bruno@clisp.org>
7387
7388         duplocale: Improve test output.
7389         * tests/test-duplocale.c (main): Print reason for skipped test.
7390
7391 2010-04-05  Bruno Haible  <bruno@clisp.org>
7392
7393         Assume rmdir exists.
7394         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
7395         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
7396
7397 2010-04-05  Bruno Haible  <bruno@clisp.org>
7398
7399         Fix link error on Solaris 8 with cc.
7400         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
7401
7402 2010-04-05  Bruno Haible  <bruno@clisp.org>
7403
7404         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
7405         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
7406
7407 2010-04-05  Bruno Haible  <bruno@clisp.org>
7408
7409         vasprintf: Update documentation.
7410         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
7411
7412 2010-04-05  Bruno Haible  <bruno@clisp.org>
7413
7414         ptsname: Improve test.
7415         * tests/test-ptsname.c (main): Also try the various master names of BSD
7416         systems.
7417
7418 2010-04-05  Bruno Haible  <bruno@clisp.org>
7419
7420         memchr: Avoid a possible C++ test error.
7421         * lib/string.in.h (memchr): Provide declaration if function is missing.
7422         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
7423         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
7424         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
7425         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
7426
7427 2010-04-05  Bruno Haible  <bruno@clisp.org>
7428
7429         strtok_r: Improve idiom.
7430         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
7431         AC_LIBOBJ is used.
7432
7433 2010-04-05  Bruno Haible  <bruno@clisp.org>
7434
7435         strdup: Improve idiom.
7436         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
7437         AC_LIBOBJ is used.
7438         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
7439         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
7440         when AC_LIBOBJ is used.
7441
7442 2010-04-05  Bruno Haible  <bruno@clisp.org>
7443
7444         mbsinit, mbrtowc, wcrtomb: Improve idioms.
7445         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
7446         don't set REPLACE_MBSINIT to 1.
7447         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
7448         don't set REPLACE_MBRTOWC to 1.
7449         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
7450         exist, don't set REPLACE_MBSRTOWCS to 1.
7451         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
7452         exist, don't set REPLACE_MBSNRTOWCS to 1.
7453         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
7454         don't set REPLACE_WCRTOMB to 1.
7455         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
7456         exist, don't set REPLACE_WCSRTOMBS to 1.
7457         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
7458         exist, don't set REPLACE_WCSNRTOMBS to 1.
7459
7460 2010-04-05  Bruno Haible  <bruno@clisp.org>
7461
7462         ldexpl: Improve idiom.
7463         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
7464         make sure to set HAVE_DECL_LDEXPL to 0.
7465
7466 2010-04-05  Jim Meyering  <meyering@redhat.com>
7467
7468         xstrtol-tests: convert to use init.sh
7469         * modules/xstrtol-tests (Files): Add tests/init.sh.
7470         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7471         Use Exit, not exit.
7472         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7473
7474         atexit-tests: convert to use init.sh
7475         * modules/atexit-tests (Files): Add tests/init.sh.
7476         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7477         Use Exit, not exit.
7478         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7479
7480         init.sh: fix typo
7481         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
7482
7483         init.sh: make it easier for a test script to write to the tty, ...
7484         when using automake's parallel-tests mode.
7485         * tests/init.sh (stderr_fileno_): Define overridable variable.
7486         (warn_): New function, to use it.
7487         (fail_, skip_, framework_failure_): Use warn_.
7488
7489 2010-04-04  Bruno Haible  <bruno@clisp.org>
7490
7491         btowc: Avoid warning.
7492         * lib/btowc.c: Include <stdlib.h>.
7493         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
7494
7495 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
7496             Bruno Haible  <bruno@clisp.org>
7497
7498         wchar: Port to NetBSD 1.5.
7499         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
7500         * lib/wctype.in.h (WEOF): Likewise.
7501
7502 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
7503             Bruno Haible  <bruno@clisp.org>
7504
7505         Port extended stdio to NetBSD 1.5.
7506         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
7507         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
7508         older.
7509
7510 2010-04-04  Bruno Haible  <bruno@clisp.org>
7511
7512         string: Remove unused substitution.
7513         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
7514         HAVE_DECL_STRERROR.
7515         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
7516
7517 2010-04-04  Bruno Haible  <bruno@clisp.org>
7518
7519         strtod: Avoid a possible C++ test error.
7520         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
7521         set REPLACE_STRTOD.
7522
7523 2010-04-04  Bruno Haible  <bruno@clisp.org>
7524
7525         strerror: Update documentation.
7526         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
7527
7528 2010-04-04  Bruno Haible  <bruno@clisp.org>
7529
7530         stdio: Fix some C++ test errors on Solaris 8 with GCC.
7531         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
7532         _GL_CXXALIAS_SYS_CAST.
7533
7534 2010-04-04  Bruno Haible  <bruno@clisp.org>
7535
7536         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
7537         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
7538         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
7539         REPLACE_FREXPL to 1.
7540         * doc/posix-functions/frexpl.texi: Update documentation.
7541
7542 2010-04-04  Bruno Haible  <bruno@clisp.org>
7543
7544         math: Fix some C++ test errors on Solaris 8 and Cygwin.
7545         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
7546
7547 2010-04-04  Bruno Haible  <bruno@clisp.org>
7548
7549         Implement nanosleep for native Windows.
7550         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
7551
7552 2010-04-04  Bruno Haible  <bruno@clisp.org>
7553
7554         math: Fix some C++ test errors on Solaris 8.
7555         * lib/math.in.h (truncf, trunc): Use simpler idiom.
7556
7557 2010-04-04  Bruno Haible  <bruno@clisp.org>
7558
7559         math: Fix some C++ test errors on Cygwin.
7560         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
7561         truncl): Provide declaration if the system does not have it.
7562         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
7563         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
7564         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
7565         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
7566         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
7567         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
7568         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
7569         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
7570         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
7571         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
7572         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
7573         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
7574         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
7575         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
7576         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
7577         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
7578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
7579         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
7580         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
7581         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
7582         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
7583         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
7584
7585 2010-04-04  Bruno Haible  <bruno@clisp.org>
7586
7587         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
7588         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7589         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
7590         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7591         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
7592         * m4/isinf.m4 (gl_ISINF): Likewise.
7593         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7594
7595 2010-04-04  Bruno Haible  <bruno@clisp.org>
7596
7597         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
7598         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7599
7600 2010-04-04  Bruno Haible  <bruno@clisp.org>
7601
7602         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
7603         * modules/tmpfile (configure.ac): Update.
7604
7605         tmpfile: Fix C++ test error on mingw.
7606         * lib/stdio.in.h (tmpfile): New declaration.
7607         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
7608         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
7609         * modules/tmpfile (Depends-on): Add stdio.
7610         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
7611         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
7612         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
7613         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
7614         REPLACE_TMPFILE.
7615         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
7616
7617 2010-04-04  Bruno Haible  <bruno@clisp.org>
7618
7619         ioctl: Fix C++ test error on mingw.
7620         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
7621         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
7622         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
7623
7624 2010-04-03  Bruno Haible  <bruno@clisp.org>
7625
7626         wcwidth: Fix C++ test error on mingw.
7627         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
7628         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
7629         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
7630
7631 2010-04-03  Bruno Haible  <bruno@clisp.org>
7632
7633         nanosleep: Fix C++ test error on mingw.
7634         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
7635         * lib/time.in.h (nanosleep): Use modern idiom.
7636         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
7637         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
7638         REPLACE_NANOSLEEP to 1.
7639         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
7640         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
7641
7642 2010-04-03  Bruno Haible  <bruno@clisp.org>
7643
7644         strptime: Fix C++ test error on mingw.
7645         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
7646         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
7647         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
7648         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
7649         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
7650         not REPLACE_STRPTIME.
7651         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
7652         REPLACE_STRPTIME.
7653
7654 2010-04-03  Bruno Haible  <bruno@clisp.org>
7655
7656         timegm: Fix C++ test error on mingw.
7657         * lib/time.in.h (timegm): Use modern idiom.
7658         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
7659         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
7660         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
7661         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
7662
7663 2010-04-03  Bruno Haible  <bruno@clisp.org>
7664
7665         timegm: Assume declaration if function exists.
7666         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
7667         if it exists. Don't clobber ac_cv_func_timegm.
7668
7669 2010-04-03  Bruno Haible  <bruno@clisp.org>
7670
7671         time_r: Fix C++ test error on mingw.
7672         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
7673         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
7674         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
7675         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
7676         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
7677
7678 2010-04-03  Bruno Haible  <bruno@clisp.org>
7679
7680         time_r: Minor updates.
7681         * modules/time_r (Description): Mention the provided functions.
7682         * lib/time_r.c: Don't include <string.h>.
7683         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
7684         * doc/posix-functions/localtime_r.texi: Likewise.
7685
7686 2010-04-03  Bruno Haible  <bruno@clisp.org>
7687
7688         time: Fix regression introduced on 2010-03-08.
7689         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
7690         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
7691
7692 2010-04-03  Jim Meyering  <meyering@redhat.com>
7693
7694         maint.mk: don't silently disable project-specific syntax-check rules
7695         * top/maint.mk (_prohibit_regexp): Define, to help people realize
7696         that they need to convert their project-specific syntax-check rules
7697         to use the new _sc_search_regexp.
7698
7699 2010-04-03  Bruno Haible  <bruno@clisp.org>
7700
7701         fchdir: Fix regression introduced on 2010-03-08.
7702         * lib/unistd.in.h (fchdir): Fix declaration.
7703         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
7704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
7705         REPLACE_FCHDIR.
7706         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
7707         REPLACE_FCHDIR.
7708
7709 2010-04-03  Bruno Haible  <bruno@clisp.org>
7710
7711         getpagesize: Fix C++ test error on mingw.
7712         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
7713         system does not declare the function.
7714         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
7715         declared.
7716         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7717         HAVE_DECL_GETPAGESIZE.
7718         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
7719
7720 2010-04-03  Bruno Haible  <bruno@clisp.org>
7721
7722         stdio: Make C++ tests work on mingw.
7723         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
7724         does not declare the function.
7725
7726 2010-04-03  Bruno Haible  <bruno@clisp.org>
7727
7728         ftello: Fix C++ test error on mingw.
7729         * lib/stdio.in.h (ftello): Use modern idiom.
7730         * lib/ftello.c (ftello): Renamed from rpl_ftello.
7731         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
7732         is missing and that it needs to be replaced.
7733         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
7734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
7735         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
7736
7737 2010-04-03  Bruno Haible  <bruno@clisp.org>
7738
7739         fseeko: Fix C++ test error on mingw.
7740         * lib/stdio.in.h (fseeko): Use modern idiom.
7741         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
7742         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
7743         is missing and that it needs to be replaced.
7744         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
7745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
7746         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
7747
7748 2010-04-03  Bruno Haible  <bruno@clisp.org>
7749
7750         mkstemp: Fix C++ test error on mingw.
7751         * lib/stdlib.in.h (mkstemp): Use modern idiom.
7752         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
7753         function is missing and that it needs to be replaced.
7754         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
7755         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
7756
7757 2010-04-03  Bruno Haible  <bruno@clisp.org>
7758
7759         stpncpy: Fix C++ test error on mingw.
7760         * lib/string.in.h (stpncpy): Use modern idiom.
7761         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
7762         function is missing and that it needs to be replaced.
7763         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7764         REPLACE_STPNCPY.
7765         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
7766
7767 2010-04-03  Bruno Haible  <bruno@clisp.org>
7768
7769         sys_stat: Fix C++ test error on mingw.
7770         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
7771         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
7772
7773 2010-04-03  Bruno Haible  <bruno@clisp.org>
7774
7775         pty: Update doc.
7776         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
7777
7778 2010-04-03  Bruno Haible  <bruno@clisp.org>
7779
7780         unistd: Fix C++ test error on mingw.
7781         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
7782
7783 2010-04-03  Bruno Haible  <bruno@clisp.org>
7784
7785         Update doc regarding mingw.
7786         * doc/glibc-functions/openpty.texi: Update regarding mingw.
7787         * doc/glibc-functions/login_tty.texi: Likewise.
7788         * doc/glibc-functions/forkpty.texi: Likewise.
7789
7790 2010-04-03  Bruno Haible  <bruno@clisp.org>
7791
7792         stdlib: Avoid compilation failure of c-strtold on mingw.
7793         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
7794
7795 2010-04-03  Bruno Haible  <bruno@clisp.org>
7796
7797         locale: Make C++ tests work on Cygwin and mingw.
7798         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
7799         cannot provide the function.
7800         Reported by Simon Josefsson.
7801
7802 2010-04-03  Bruno Haible  <bruno@clisp.org>
7803
7804         localename: Port to MacOS X 10.6.
7805         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
7806         memory layout of the locales in MacOS X 10.6 as well.
7807         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
7808
7809 2010-04-02  Bruno Haible  <bruno@clisp.org>
7810
7811         gnulib-tool: Ensure that long-running tests are executed last.
7812         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
7813         running tests after the one for the other tests.
7814
7815 2010-04-02  Bruno Haible  <bruno@clisp.org>
7816
7817         gnulib-tool: Ensure the tests in the main directory are executed first.
7818         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
7819         start with the current directory.
7820
7821 2010-04-02  Bruno Haible  <bruno@clisp.org>
7822
7823         Tests for module 'havelib', moved here from GNU gettext.
7824         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
7825         modifications.
7826         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
7827         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
7828         with modifications.
7829         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
7830         modifications.
7831         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
7832         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
7833         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
7834         with modifications.
7835         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
7836         with modifications.
7837         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
7838         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
7839         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
7840         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
7841         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
7842         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
7843         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
7844         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
7845         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
7846         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
7847         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
7848         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
7849         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
7850         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
7851         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
7852         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
7853         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
7854         with modifications.
7855         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
7856         with modifications.
7857         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
7858         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
7859         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
7860         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
7861         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
7862         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
7863         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
7864         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
7865         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
7866         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
7867         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
7868         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
7869         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
7870         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
7871         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
7872         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
7873         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
7874         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
7875         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
7876         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
7877         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
7878         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
7879         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
7880         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
7881         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
7882         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
7883         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
7884         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
7885         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
7886         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
7887         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
7888         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
7889         * tests/havelib/rpathx/rpathx.c: New file, from
7890         gettext/autoconf-lib-link.
7891         * tests/havelib/rpathx/Makefile.am: New file, from
7892         gettext/autoconf-lib-link.
7893         * tests/havelib/rpathx/configure.ac: New file, from
7894         gettext/autoconf-lib-link with modifications.
7895         * tests/havelib/rpathy/rpathy.c: New file, from
7896         gettext/autoconf-lib-link.
7897         * tests/havelib/rpathy/Makefile.am: New file, from
7898         gettext/autoconf-lib-link.
7899         * tests/havelib/rpathy/configure.ac: New file, from
7900         gettext/autoconf-lib-link with modifications.
7901         * tests/havelib/rpathz/rpathz.c: New file, from
7902         gettext/autoconf-lib-link.
7903         * tests/havelib/rpathz/Makefile.am: New file, from
7904         gettext/autoconf-lib-link.
7905         * tests/havelib/rpathz/configure.ac: New file, from
7906         gettext/autoconf-lib-link with modifications.
7907         * tests/havelib/rpathlx/usex.c: New file, from
7908         gettext/autoconf-lib-link.
7909         * tests/havelib/rpathlx/Makefile.am: New file, from
7910         gettext/autoconf-lib-link.
7911         * tests/havelib/rpathlx/configure.ac: New file, from
7912         gettext/autoconf-lib-link with modifications.
7913         * tests/havelib/rpathly/usey.c: New file, from
7914         gettext/autoconf-lib-link.
7915         * tests/havelib/rpathly/Makefile.am: New file, from
7916         gettext/autoconf-lib-link.
7917         * tests/havelib/rpathly/configure.ac: New file, from
7918         gettext/autoconf-lib-link with modifications.
7919         * tests/havelib/rpathlz/usez.c: New file, from
7920         gettext/autoconf-lib-link.
7921         * tests/havelib/rpathlz/Makefile.am: New file, from
7922         gettext/autoconf-lib-link.
7923         * tests/havelib/rpathlz/configure.ac: New file, from
7924         gettext/autoconf-lib-link with modifications.
7925         * tests/havelib/rpathlyx/usey.c: New file, from
7926         gettext/autoconf-lib-link.
7927         * tests/havelib/rpathlyx/Makefile.am: New file, from
7928         gettext/autoconf-lib-link.
7929         * tests/havelib/rpathlyx/configure.ac: New file, from
7930         gettext/autoconf-lib-link with modifications.
7931         * tests/havelib/rpathlzyx/usez.c: New file, from
7932         gettext/autoconf-lib-link.
7933         * tests/havelib/rpathlzyx/Makefile.am: New file, from
7934         gettext/autoconf-lib-link.
7935         * tests/havelib/rpathlzyx/configure.ac: New file, from
7936         gettext/autoconf-lib-link with modifications.
7937         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
7938         with modifications.
7939
7940 2010-04-02  Bruno Haible  <bruno@clisp.org>
7941
7942         gnulib-tool: Create distributed built sources also for the tests.
7943         * gnulib-tool (func_create_testdir): Also generate distributed built
7944         sources in the tests directory.
7945
7946 2010-04-02  Bruno Haible  <bruno@clisp.org>
7947
7948         gnulib-tool: Obey user's environment variables.
7949         * gnulib-tool (func_create_testdir): When creating built sources,
7950         respect the environment variables for autoconf, automake, etc. given by
7951         the user.
7952
7953 2010-04-02  Bruno Haible  <bruno@clisp.org>
7954
7955         gnulib-tool: Provide the value of --m4-base to modules.
7956         * gnulib-tool (func_import, func_create_testdir): Emit a definition
7957         of gl_m4_base.
7958
7959 2010-04-02  Eric Blake  <eblake@redhat.com>
7960
7961         maint.mk: fix some fallout
7962         * NEWS: Document the incompatible change, and its effect on cfg.mk.
7963         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
7964
7965 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
7966
7967         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
7968         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
7969         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
7970         (sc_cast_of_x_alloc_return_value): Likewise.
7971         (sc_cast_of_alloca_return_value): Likewise.
7972         (sc_space_tab): Likewise.
7973         (sc_prohibit_atoi_atof): Likewise.
7974         (sc_prohibit_magic_number_exit): Likewise.
7975         (sc_error_exit_success): Likewise.
7976         (sc_file_system): Likewise.
7977         (sc_prohibit_have_config_h): Likewise.
7978         (sc_require_config_h): Likewise.
7979         (sc_prohibit_HAVE_MBRTOWC): Likewise.
7980         (sc_obsolete_symbols): Likewise.
7981         (sc_changelog): Likewise.
7982         (sc_program_name): Likewise.
7983         (sc_the_the): Likewise.
7984         (sc_trailing_blank): Likewise.
7985         (sc_two_space_separator_in_usage): Likewise.
7986         (sc_useless_cpp_parens): Likewise.
7987         (sc_GPL_version): Likewise.
7988         (sc_GFDL_version): Likewise.
7989         (sc_texinfo_acronym): Likewise.
7990         (sc_prohibit_cvs_keyword): Likewise.
7991         (sc_prohibit_stat_st_blocks): Likewise.
7992         (sc_prohibit_S_IS_definition): Likewise.
7993         (sc_redundant_const): Likewise.
7994         (sc_makefile_TAB_only_indentation): Likewise.
7995         (sc_m4_quote_check): Likewise.
7996         (sc_makefile_path_separator_check): Likewise.
7997         (sc_copyright_check): Likewise.
7998         (sc_Wundef_boolean): Likewise.
7999         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
8000
8001         maint.mk: match 0 or more whitespace-before-function-call '('
8002         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
8003         that have zero or two-and-more spaces between the function name
8004         and the open parenthesis.
8005         (sc_error_message_warn_fatal): Likewise.
8006         (sc_error_message_uppercase): Likewise.
8007         (sc_error_message_period): Likewise.
8008
8009 2010-03-31  Eric Blake  <eblake@redhat.com>
8010
8011         maint.mk: check for [ as well as test
8012         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
8013         Based on a libvirt report by Matthias Bolte.
8014
8015         gnumakefile: don't squelch _version output
8016         * top/GNUmakefile (_version): Create one-shot dependency rather
8017         than using $(shell) when version must be regenerated.
8018         (_autoreconf): Run verbosely, by default.
8019
8020         sys_time: avoid compiler warnings
8021         * lib/sys_time.in.h (includes): Ensure gcc pragma is
8022         unconditional, fixing regression from 2010-03-29.
8023         Reported by Simon Josefsson.
8024
8025 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
8026
8027         maint.mk: s/_header_without_use/_sc_header_without_use/
8028         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
8029         (sc_prohibit_assert_without_use): Use the new name.
8030         (sc_prohibit_close_stream_without_use): Likewise.
8031         (sc_prohibit_getopt_without_use): Likewise.
8032         (sc_prohibit_quotearg_without_use): Likewise.
8033         (sc_prohibit_quote_without_use): Likewise.
8034         (sc_prohibit_long_options_without_use): Likewise.
8035         (sc_prohibit_inttostr_without_use): Likewise.
8036         (sc_prohibit_ignore_value_without_use): Likewise.
8037         (sc_prohibit_error_without_use): Likewise.
8038         (sc_prohibit_xalloc_without_use): Likewise.
8039         (sc_prohibit_hash_without_use): Likewise.
8040         (sc_prohibit_hash_pjw_without_use): Likewise.
8041         (sc_prohibit_safe_read_without_use): Likewise.
8042         (sc_prohibit_argmatch_without_use): Likewise.
8043         (sc_prohibit_canonicalize_without_use): Likewise.
8044         (sc_prohibit_root_dev_ino_without_use): Likewise.
8045         (sc_prohibit_openat_without_use): Likewise.
8046         (sc_prohibit_c_ctype_without_use): Likewise.
8047         (sc_prohibit_signal_without_use): Likewise.
8048         (sc_prohibit_intprops_without_use): Likewise.
8049
8050 2010-03-30  Eric Blake  <eblake@redhat.com>
8051
8052         maint: improve module indicators
8053         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
8054         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
8055         columns, and avoid extra macro expansion.
8056
8057         fdopendir: work around FreeBSD bug
8058         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8059         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
8060         * modules/dirent (Makefile.am): Substitute it.
8061         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
8062         declaration.
8063         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
8064         fix.
8065         Reported by Christian Weisgerber <naddy@mips.inka.de>.
8066
8067 2010-03-29  Bruno Haible  <bruno@clisp.org>
8068
8069         Emit #pragma system_header after the inclusion guard, not before.
8070         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
8071         guard that spans the entire file, not before. This enables an
8072         optimization in GCC's preprocessor.
8073         * lib/ctype.in.h: Likewise.
8074         * lib/dirent.in.h: Likewise.
8075         * lib/errno.in.h: Likewise.
8076         * lib/float.in.h: Likewise.
8077         * lib/getopt.in.h: Likewise.
8078         * lib/iconv.in.h: Likewise.
8079         * lib/langinfo.in.h: Likewise.
8080         * lib/locale.in.h: Likewise.
8081         * lib/math.in.h: Likewise.
8082         * lib/netdb.in.h: Likewise.
8083         * lib/netinet_in.in.h: Likewise.
8084         * lib/pty.in.h: Likewise.
8085         * lib/sched.in.h: Likewise.
8086         * lib/se-selinux.in.h: Likewise.
8087         * lib/search.in.h: Likewise.
8088         * lib/spawn.in.h: Likewise.
8089         * lib/stdarg.in.h: Likewise.
8090         * lib/stdint.in.h: Likewise.
8091         * lib/string.in.h: Likewise.
8092         * lib/strings.in.h: Likewise.
8093         * lib/sys_file.in.h: Likewise.
8094         * lib/sys_ioctl.in.h: Likewise.
8095         * lib/sys_time.in.h: Likewise.
8096         * lib/sys_times.in.h: Likewise.
8097         * lib/sys_utsname.in.h: Likewise.
8098         * lib/sys_wait.in.h: Likewise.
8099         * lib/sysexits.in.h: Likewise.
8100         * lib/wctype.in.h: Likewise.
8101
8102 2010-03-28  James Youngman  <jay@gnu.org>
8103
8104         save-cwd: don't leak a file descriptor when the caller execs.
8105         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
8106         saved file descriptor.
8107         * modules/save-cwd (Depends-on): Depend on cloexec.
8108
8109 2010-03-29  Bruno Haible  <bruno@clisp.org>
8110
8111         Remove vestiges of fts-lgpl module.
8112         * lib/fts_.h: Assume GNULIB_FTS is 1.
8113         * lib/fts.c: Likewise.
8114         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
8115
8116 2010-03-28  Bruno Haible  <bruno@clisp.org>
8117
8118         Fix definition of tests witness macro.
8119         * gnulib-tool (func_import): Fix definition of witness macro.
8120
8121 2010-03-28  Bruno Haible  <bruno@clisp.org>
8122
8123         Fix ioctl's protoype on glibc systems.
8124         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
8125         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
8126         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
8127         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
8128         signature. If not, arrange to replace the ioctl function.
8129         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
8130         REPLACE_IOCTL.
8131         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
8132         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
8133         Reported by Ludovic Courtès <ludo@gnu.org>.
8134
8135 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
8136
8137         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
8138         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
8139         made it so grep -r --include=GLOB* ... did not work.
8140
8141 2010-03-26  Jim Meyering  <meyering@redhat.com>
8142             Eric Blake  <eblake@redhat.com>
8143
8144         maint.mk: prohibit use of test's -o and -a operators
8145         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
8146
8147 2010-03-28  Bruno Haible  <bruno@clisp.org>
8148
8149         Remove unused GNULIB_XYZ macro definitions.
8150         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
8151         invocation.
8152
8153 2010-03-28  Bruno Haible  <bruno@clisp.org>
8154
8155         Mark privileged tests modules.
8156         * modules/idpriv-drop-tests (Status): New section.
8157         * modules/idpriv-droptemp-tests (Status): New section.
8158
8159 2010-03-28  Bruno Haible  <bruno@clisp.org>
8160
8161         Split C++ tests into separate tests modules.
8162         * modules/dirent-c++-tests: New file, extracted from
8163         modules/dirent-tests.
8164         * modules/dirent-tests: Depend on it.
8165         * modules/fcntl-h-c++-tests: New file, extracted from
8166         modules/fcntl-h-tests.
8167         * modules/fcntl-h-tests: Depend on it.
8168         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
8169         * modules/glob-tests: Depend on it.
8170         * modules/iconv-h-c++-tests: New file, extracted from
8171         modules/iconv-h-tests.
8172         * modules/iconv-h-tests: Depend on it.
8173         * modules/langinfo-c++-tests: New file, extracted from
8174         modules/langinfo-tests.
8175         * modules/langinfo-tests: Depend on it.
8176         * modules/locale-c++-tests: New file, extracted from
8177         modules/locale-tests.
8178         * modules/locale-tests: Depend on it.
8179         * modules/math-c++-tests: New file, extracted from modules/math-tests.
8180         * modules/math-tests: Depend on it.
8181         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
8182         * modules/pty-tests: Depend on it.
8183         * modules/search-c++-tests: New file, extracted from
8184         modules/search-tests.
8185         * modules/search-tests: Depend on it.
8186         * modules/signal-c++-tests: New file, extracted from
8187         modules/signal-tests.
8188         * modules/signal-tests: Depend on it.
8189         * modules/spawn-c++-tests: New file, extracted from
8190         modules/spawn-tests.
8191         * modules/spawn-tests: Depend on it.
8192         * modules/stdio-c++-tests: New file, extracted from
8193         modules/stdio-tests.
8194         * modules/stdio-tests: Depend on it.
8195         * modules/stdlib-c++-tests: New file, extracted from
8196         modules/stdlib-tests.
8197         * modules/stdlib-tests: Depend on it.
8198         * modules/string-c++-tests: New file, extracted from
8199         modules/string-tests.
8200         * modules/string-tests: Depend on it.
8201         * modules/sys_ioctl-c++-tests: New file, extracted from
8202         modules/sys_ioctl-tests.
8203         * modules/sys_ioctl-tests: Depend on it.
8204         * modules/sys_select-c++-tests: New file, extracted from
8205         modules/sys_select-tests.
8206         * modules/sys_select-tests: Depend on it.
8207         * modules/sys_socket-c++-tests: New file, extracted from
8208         modules/sys_socket-tests.
8209         * modules/sys_socket-tests: Depend on it.
8210         * modules/sys_stat-c++-tests: New file, extracted from
8211         modules/sys_stat-tests.
8212         * modules/sys_stat-tests: Depend on it.
8213         * modules/sys_time-c++-tests: New file, extracted from
8214         modules/sys_time-tests.
8215         * modules/sys_time-tests: Depend on it.
8216         * modules/time-c++-tests: New file, extracted from modules/time-tests.
8217         * modules/time-tests: Depend on it.
8218         * modules/unistd-c++-tests: New file, extracted from
8219         modules/unistd-tests.
8220         * modules/unistd-tests: Depend on it.
8221         * modules/wchar-c++-tests: New file, extracted from
8222         modules/wchar-tests.
8223         * modules/wchar-tests: Depend on it.
8224         * modules/wctype-c++-tests: New file, extracted from
8225         modules/wctype-tests.
8226         * modules/wctype-tests: Depend on it.
8227         Reported by Simon Josefsson.
8228
8229 2010-03-28  Bruno Haible  <bruno@clisp.org>
8230
8231         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
8232         * gnulib-tool (func_exists_module): New function, extracted from
8233         func_verify_module.
8234         (func_verify_module): Use it.
8235         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
8236         'foo' only if 'foo' exists.
8237         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
8238         module.
8239
8240 2010-03-28  Bruno Haible  <bruno@clisp.org>
8241
8242         gnulib-tool: Add support for special categories of tests.
8243         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
8244         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
8245         (func_usage): Document them.
8246         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
8247         inc_unportable_tests, inc_all_tests): New variables.
8248         (func_acceptable): Consider these variables.
8249         (func_modules_transitive_closure): Make it work when the 'Status' field
8250         consists of multiple words.
8251         (func_import): Store and restore the values of inc_cxx_tests,
8252         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
8253         inc_all_tests in gnulib-comp.m4.
8254         (func_create_testdir): Set inc_all_tests to true.
8255         * doc/gnulib.texi (Extra tests modules): New section.
8256         Suggested by Jim Meyering.
8257
8258 2010-03-28  Bruno Haible  <bruno@clisp.org>
8259
8260         ansi-c++-opt: Allow turning off the C++ build by default.
8261         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
8262         gl_CXX_CHOICE_DEFAULT_NO is defined.
8263         Requested by Eric Blake.
8264
8265 2010-03-28  Bruno Haible  <bruno@clisp.org>
8266
8267         unistd: Avoid #define replacements in C++ mode.
8268         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8269         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8270         setsockopt, shutdown, select): In C++, attach a warning to the function
8271         if possible, rather than #defining the symbol to a dysfunctional alias.
8272         Reported by John W. Eaton <jwe@gnu.org>.
8273
8274 2010-03-28  Bruno Haible  <bruno@clisp.org>
8275
8276         Fix link errors on mingw.
8277         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
8278         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
8279         $(LIBSOCKET).
8280         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
8281         $(LIBSOCKET).
8282
8283 2010-03-28  Bruno Haible  <bruno@clisp.org>
8284             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8285
8286         lib-ignore: Determine different options for different compilers.
8287         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
8288         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
8289         Add comments.
8290         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
8291         * NEWS: Mention the change.
8292
8293 2010-03-27  Bruno Haible  <bruno@clisp.org>
8294
8295         Remove unused GNULIB_XYZ macro definitions.
8296         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
8297         * modules/fseek (configure.ac): Likewise.
8298         * modules/ioctl (configure.ac): Likewise.
8299         * modules/open (configure.ac): Likewise.
8300         * modules/stdlib-safer (configure.ac): Likewise.
8301
8302 2010-03-27  Bruno Haible  <bruno@clisp.org>
8303
8304         Add a remark about certain modules.
8305         * modules/malloc (Comment): New section.
8306         * modules/realloc (Comment): Likewise.
8307         * modules/sigpipe (Comment): Likewise.
8308
8309 2010-03-27  Bruno Haible  <bruno@clisp.org>
8310
8311         Resolve conflict between the two kinds of module indicators.
8312         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
8313         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
8314         * modules/canonicalize (configure.ac): Invoke
8315         gl_MODULE_INDICATOR_FOR_TESTS.
8316         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
8317         GNULIB_XYZ.
8318         * tests/test-dirent-c++.cc: Likewise.
8319         * tests/test-dirent-safer.c: Likewise.
8320         * tests/test-dup2.c: Likewise.
8321         * tests/test-fchdir.c: Likewise.
8322         * tests/test-fcntl-h-c++.cc: Likewise.
8323         * tests/test-getopt.c: Likewise.
8324         * tests/test-getopt.h: Likewise.
8325         * tests/test-langinfo-c++.cc: Likewise.
8326         * tests/test-locale-c++.cc: Likewise.
8327         * tests/test-math-c++.cc: Likewise.
8328         * tests/test-pty-c++.cc: Likewise.
8329         * tests/test-search-c++.cc: Likewise.
8330         * tests/test-signal-c++.cc: Likewise.
8331         * tests/test-spawn-c++.cc: Likewise.
8332         * tests/test-stdio-c++.cc: Likewise.
8333         * tests/test-stdlib-c++.cc: Likewise.
8334         * tests/test-string-c++.cc: Likewise.
8335         * tests/test-sys_ioctl-c++.cc: Likewise.
8336         * tests/test-sys_select-c++.cc: Likewise.
8337         * tests/test-sys_socket-c++.cc: Likewise.
8338         * tests/test-sys_stat-c++.cc: Likewise.
8339         * tests/test-sys_time-c++.cc: Likewise.
8340         * tests/test-time-c++.cc: Likewise.
8341         * tests/test-unistd-c++.cc: Likewise.
8342         * tests/test-wchar-c++.cc: Likewise.
8343         * tests/uninorm/test-u8-nfc.c: Likewise.
8344         * tests/uninorm/test-u8-nfd.c: Likewise.
8345         * tests/uninorm/test-u8-nfkc.c: Likewise.
8346         * tests/uninorm/test-u8-nfkd.c: Likewise.
8347         * tests/uninorm/test-u16-nfc.c: Likewise.
8348         * tests/uninorm/test-u16-nfd.c: Likewise.
8349         * tests/uninorm/test-u16-nfkc.c: Likewise.
8350         * tests/uninorm/test-u16-nfkd.c: Likewise.
8351         * tests/uninorm/test-u32-nfc.c: Likewise.
8352         * tests/uninorm/test-u32-nfc-big.c: Likewise.
8353         * tests/uninorm/test-u32-nfd.c: Likewise.
8354         * tests/uninorm/test-u32-nfd-big.c: Likewise.
8355         * tests/uninorm/test-u32-nfkc.c: Likewise.
8356         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
8357         * tests/uninorm/test-u32-nfkd.c: Likewise.
8358         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
8359         * tests/uninorm/test-u32-normalize-big.c: Likewise.
8360
8361 2010-03-27  Bruno Haible  <bruno@clisp.org>
8362
8363         Distinguish two kinds of module indicators.
8364         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
8365         gl_MODULE_INDICATOR.
8366         (gl_MODULE_INDICATOR): New macro.
8367         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
8368         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
8369         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
8370         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
8371         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
8372         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
8373         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
8374         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
8375         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
8376         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
8377         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
8378         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
8379         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
8380         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
8381         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
8382         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
8383         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
8384         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
8385         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
8386         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
8387         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
8388         * modules/cloexec (configure.ac): Likewise.
8389         * modules/getopt-gnu (configure.ac): Likewise.
8390         * modules/uninorm/u8-normalize (configure.ac): Likewise.
8391         * modules/uninorm/u16-normalize (configure.ac): Likewise.
8392         * modules/uninorm/u32-normalize (configure.ac): Likewise.
8393         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
8394
8395 2010-03-27  Bruno Haible  <bruno@clisp.org>
8396
8397         New module description field 'Comment'.
8398         * gnulib-tool: New option --extract-comment.
8399         (func_usage): Document it.
8400         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
8401         (func_get_comment): New function.
8402         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
8403
8404 2010-03-27  Bruno Haible  <bruno@clisp.org>
8405
8406         Addendum to 2010-02-07 commit.
8407         * gnulib-tool (func_usage): Document --extract-applicability option.
8408
8409 2010-03-27  Bruno Haible  <bruno@clisp.org>
8410
8411         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
8412         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
8413         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
8414         rather than link errors.
8415
8416 2010-03-27  Bruno Haible  <bruno@clisp.org>
8417
8418         Avoid side effects from tests-related modules on the compilation of lib.
8419         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
8420         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
8421         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
8422         parameter. Emit into AM_CPPFLAGS a definition of the designated C
8423         macro.
8424         (func_import): Define a witness macro. Assign it a value that depends
8425         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
8426         tests-related modules.
8427         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
8428         Reported by Jim Meyering.
8429
8430 2010-03-27  Bruno Haible  <bruno@clisp.org>
8431
8432         Factorize common .m4 code.
8433         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
8434         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
8435         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
8436         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
8437         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
8438         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
8439         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
8440         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
8441         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
8442         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
8443         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
8444         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
8445         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
8446         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
8447         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
8448         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
8449         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
8450         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
8451         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
8452         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
8453         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
8454         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
8455         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
8456         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
8457         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
8458         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
8459         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
8460         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
8461         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
8462         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
8463         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
8464         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
8465
8466 2010-03-27  Bruno Haible  <bruno@clisp.org>
8467
8468         Fix a compilation error on Cygwin with g++ >= 4.3.
8469         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
8470         if it is undefined or if we alias it to chmod.
8471         (lstat): Don't warn about the use of this function if it is undefined
8472         or if we alias it to stat.
8473         Reported by Simon Josefsson.
8474
8475 2010-03-27  Bruno Haible  <bruno@clisp.org>
8476
8477         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
8478         * modules/getlogin (configure.ac): Update.
8479
8480         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
8481         * modules/getlogin_r (configure.ac): Update.
8482
8483         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
8484         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
8485         * modules/inet_ntop (configure.ac): Update.
8486
8487         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
8488         * modules/inet_pton (configure.ac): Update.
8489
8490         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
8491         * modules/mbslen (configure.ac): Update.
8492
8493         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
8494         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
8495         * modules/forkpty (configure.ac): Update.
8496         * modules/openpty (configure.ac): Update.
8497
8498 2010-03-26  Simon Josefsson  <simon@josefsson.org>
8499
8500         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
8501         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
8502
8503 2010-03-25  Eric Blake  <eblake@redhat.com>
8504
8505         maint: use pragma consistently across replacement headers
8506         * lib/ctype.in.h (system_header): Hoist for consistent placement.
8507         * lib/dirent.in.h (system_header): Likewise.
8508         * lib/errno.in.h (system_header): Likewise.
8509         * lib/float.in.h (system_header): Likewise.
8510         * lib/getopt.in.h (system_header): Likewise.
8511         * lib/iconv.in.h (system_header): Likewise.
8512         * lib/inttypes.in.h (system_header): Likewise.
8513         * lib/langinfo.in.h (system_header): Likewise.
8514         * lib/locale.in.h (system_header): Likewise.
8515         * lib/math.in.h (system_header): Likewise.
8516         * lib/netdb.in.h (system_header): Likewise.
8517         * lib/netinet_in.in.h (system_header): Likewise.
8518         * lib/pty.in.h (system_header): Likewise.
8519         * lib/sched.in.h (system_header): Likewise.
8520         * lib/se-selinux.in.h (system_header): Likewise.
8521         * lib/search.in.h (system_header): Likewise.
8522         * lib/spawn.in.h (system_header): Likewise.
8523         * lib/stdarg.in.h (system_header): Likewise.
8524         * lib/stdint.in.h (system_header): Likewise.
8525         * lib/string.in.h (system_header): Likewise.
8526         * lib/strings.in.h (system_header): Likewise.
8527         * lib/sys_file.in.h (system_header): Likewise.
8528         * lib/sys_ioctl.in.h (system_header): Likewise.
8529         * lib/sys_socket.in.h (system_header): Likewise.
8530         * lib/sys_times.in.h (system_header): Likewise.
8531         * lib/sys_utsname.in.h (system_header): Likewise.
8532         * lib/sys_wait.in.h (system_header): Likewise.
8533         * lib/sysexits.in.h (system_header): Likewise.
8534         * lib/unistd.in.h (system_header): Likewise.
8535         * lib/wctype.in.h (system_header): Likewise.
8536
8537         arpa/inet: fix mingw compilation warning
8538         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
8539         Reported by Matthew Bolte.
8540
8541 2010-03-25  Bruno Haible  <bruno@clisp.org>
8542
8543         Avoid collision between gnulib wrapper and libintl wrapper.
8544         * lib/printf.c (printf): Don't define if a printf wrapper is already
8545         defined in intl/printf.c.
8546         Reported by Michel Boaventura <michel@michelboaventura.com>.
8547
8548 2010-03-25  Bruno Haible  <bruno@clisp.org>
8549
8550         Use ANSI C.
8551         * lib/readutmp.h (getutent): Provide ANSI C prototype.
8552
8553 2010-03-25  Bruno Haible  <bruno@clisp.org>
8554
8555         Minor formatting changes.
8556         * lib/acosl.c: Insert space before function argument list.
8557         * lib/argz.c: Likewise.
8558         * lib/asinl.c: Likewise.
8559         * lib/expl.c: Likewise.
8560         * lib/gen-uni-tables.c: Likewise.
8561         * lib/gettext.h: Likewise.
8562         * lib/glthread/lock.h: Likewise.
8563         * lib/tanl.c: Likewise.
8564         * lib/uniname/uniname.c: Likewise.
8565         * tests/test-idpriv-drop.c: Likewise.
8566         * tests/test-idpriv-droptemp.c: Likewise.
8567         * tests/test-lock.c: Likewise.
8568         * tests/test-tls.c: Likewise.
8569         * lib/argp-help.c: Insert space before function-like macro argument
8570         list.
8571         * lib/memcmp.c: Likewise.
8572         * tests/test-base64.c: Likewise.
8573         * lib/localename.c: Insert space before sizeof's argument list.
8574         * lib/safe-alloc.h: Likewise.
8575         * lib/file-set.h: Insert space before macro argument list.
8576         * tests/test-argp.c: Likewise.
8577         * lib/argp-namefrob.h: Insert space before function parameter list.
8578         * lib/getaddrinfo.c: Likewise.
8579         * lib/netdb.in.h: Likewise.
8580         * lib/parse-duration.h: Likewise.
8581         * lib/parse-duration.c: Likewise.
8582         * lib/poll.c: Likewise.
8583         * lib/select.c: Likewise.
8584         * lib/trim.h: Likewise.
8585         * tests/test-usleep.c: Likewise.
8586         * lib/ldexpl.c: Insert space before function parameter list and before
8587         function argument list.
8588         * lib/logl.c: Likewise.
8589         * lib/sqrtl.c: Likewise.
8590         * lib/trim.c: Likewise.
8591         * lib/cosl.c: Use GNU style indentation. Insert space before function
8592         argument list.
8593         * lib/sinl.c: Likewise.
8594         * lib/tsearch.c: Insert space after 'for'.
8595         Reported by Jim Meyering.
8596
8597 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
8598
8599         * maint.mk (sc_Wundef_boolean): Check for the presence of the
8600         config header before grepping, as it's not present before
8601         autoreconf/configure are run.  Reported by Simon Josefsson.
8602
8603 2010-03-23  Bruno Haible  <bruno@clisp.org>
8604
8605         pt_chown: Make it work with automake < 1.11.
8606         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
8607         Reported by Simon Josefsson.
8608
8609 2010-03-23  Bruno Haible  <bruno@clisp.org>
8610
8611         pt_chown: Don't depend on GPLed modules.
8612         * lib/pt_chown.c: Don't include idpriv.h.
8613         (main): Don't drop privileges.
8614         * modules/pt_chown (Depends-on): Remove idpriv-drop.
8615         Reported by Simon Josefsson.
8616
8617 2010-03-24  Simon Josefsson  <simon@josefsson.org>
8618
8619         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
8620         suggestions from karl@freefriends.org (Karl Berry).
8621
8622 2010-03-22  Eric Blake  <eblake@redhat.com>
8623
8624         gethostname: further tweaks
8625         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
8626         are overriding gethostname.
8627         Suggested by Bruno Haible.
8628
8629 2010-03-21  Bruno Haible  <bruno@clisp.org>
8630
8631         Fix comments.
8632         * lib/forkpty.c (rpl_forkpty): Fix comment.
8633         * lib/openpty.c (rpl_openpty): Likewise.
8634         Reported by Eric Blake.
8635
8636 2010-03-22  Eric Blake  <eblake@redhat.com>
8637
8638         gethostname: fix build on mingw
8639         * lib/unistd.in.h (includes): Work around fact that mingw
8640         <winsock2.h> re-includes <unistd.h>, by avoiding any
8641         redeclarations if we are being included by <winsock2.h>.
8642         Reported by Matthias Bolte.
8643
8644 2010-03-21  Bruno Haible  <bruno@clisp.org>
8645
8646         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
8647         * lib/forkpty.c (forkpty): New replacement function, from glibc with
8648         modifications.
8649         * lib/pty.in.h (forkpty): Update declaration. Add comments.
8650         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
8651         provide the replacement.
8652         * modules/forkpty (Depends-on): Add openpty, login_tty.
8653         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
8654         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
8655         * doc/glibc-functions/forkpty.texi: More supported platforms.
8656         * config/srclist.txt: Add forkpty.c (commented).
8657
8658 2010-03-21  Bruno Haible  <bruno@clisp.org>
8659
8660         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
8661         (Makefile.am): Verify that PTY_LIB is defined.
8662
8663         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
8664
8665 2010-03-21  Bruno Haible  <bruno@clisp.org>
8666
8667         Tests for module 'login_tty'.
8668         * modules/login_tty-tests: New file.
8669         * tests/test-login_tty.c: New file.
8670
8671         New module 'login_tty'.
8672         * lib/login_tty.c: New file.
8673         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
8674         * modules/login_tty: New file.
8675         * doc/glibc-functions/login_tty.texi: Mention the new module.
8676
8677 2010-03-21  Bruno Haible  <bruno@clisp.org>
8678
8679         login_tty: Documentation.
8680         * doc/glibc-functions/login_tty.texi: New file.
8681         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
8682
8683 2010-03-21  Bruno Haible  <bruno@clisp.org>
8684
8685         pty: Consistent macro naming.
8686         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
8687         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
8688         * modules/pty (configure.ac): Update.
8689
8690 2010-03-21  Bruno Haible  <bruno@clisp.org>
8691
8692         Tests for openpty: Make stricter.
8693         * tests/test-openpty.c (main): Add test of canonical processing and
8694         erase.
8695         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
8696
8697         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
8698         * lib/openpty.c (openpty): New replacement function.
8699         * lib/pty.in.h: Include <termios.h>.
8700         (openpty): Update declaration. Add comments.
8701         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
8702         is not declared, arrange to provide the replacement. Check for _getpty
8703         and posix_openpt.
8704         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
8705         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
8706         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
8707         * modules/pty-tests (test_pty_c___LDADD): New variable.
8708         * doc/glibc-functions/openpty.texi: More supported platforms.
8709
8710 2010-03-21  Bruno Haible  <bruno@clisp.org>
8711
8712         setenv: Tweaks.
8713         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
8714         the test program.
8715         * doc/posix-functions/setenv.texi: Update platforms list.
8716
8717 2010-03-21  Bruno Haible  <bruno@clisp.org>
8718
8719         New module 'unlockpt'.
8720         * lib/unlockpt.c: New file, from glibc with modifications.
8721         * m4/unlockpt.m4: New file.
8722         * modules/unlockpt: New file.
8723         * lib/stdlib.in.h (unlockpt): New declaration.
8724         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
8725         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
8726         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
8727         HAVE_UNLOCKPT.
8728         * doc/posix-functions/unlockpt.texi: Mention the new module.
8729         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
8730         * config/srclist.txt: Add unlockpt.c (commented).
8731
8732 2010-03-21  Jim Meyering  <meyering@redhat.com>
8733
8734         maint.mk: prohibit inclusion of "intprops.h" without use
8735         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
8736
8737 2010-03-21  Bruno Haible  <bruno@clisp.org>
8738
8739         New module 'grantpt'.
8740         * lib/grantpt.c: New file, from glibc with modifications.
8741         * m4/grantpt.m4: New file.
8742         * modules/grantpt: New file.
8743         * lib/stdlib.in.h (grantpt): New declaration.
8744         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
8745         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
8746         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
8747         HAVE_GRANTPT.
8748         * doc/posix-functions/grantpt.texi: Mention the new module.
8749         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
8750         * config/srclist.txt: Add grantpt.c (commented).
8751
8752 2010-03-21  Bruno Haible  <bruno@clisp.org>
8753
8754         New module 'pt_chown'.
8755         * lib/pt_chown.c: New file, from glibc with modifications.
8756         * lib/pty-private.h: New file, from glibc with modifications.
8757         * modules/pt_chown: New file.
8758         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
8759
8760 2010-03-21  Bruno Haible  <bruno@clisp.org>
8761
8762         Tests for module 'ptsname'.
8763         * modules/ptsname-tests: New file.
8764         * tests/test-ptsname.c: New file.
8765
8766         New module 'ptsname'.
8767         * lib/ptsname.c: New file, from glibc with modifications.
8768         * m4/ptsname.m4: New file.
8769         * modules/ptsname: New file.
8770         * lib/stdlib.in.h (ptsname): New declaration.
8771         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
8772         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
8773         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
8774         HAVE_PTSNAME.
8775         * doc/posix-functions/ptsname.texi: Mention the new module.
8776         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
8777         * config/srclist.txt: Add ptsname.c (commented).
8778
8779 2010-03-21  Bruno Haible  <bruno@clisp.org>
8780
8781         Tests for module 'ttyname_r'.
8782         * modules/ttyname_r-tests: New file.
8783         * tests/test-ttyname_r.c: New file.
8784
8785         New module 'ttyname_r'.
8786         * lib/ttyname_r.c: New file.
8787         * m4/ttyname_r.m4: New file.
8788         * modules/ttyname_r: New file.
8789         * lib/unistd.in.h (ttyname_r): New declaration.
8790         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
8791         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
8792         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
8793         HAVE_TTYNAME_R.
8794         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
8795         * doc/posix-functions/ttyname_r.texi: Mention the new module.
8796
8797 2010-03-20  Bruno Haible  <bruno@clisp.org>
8798
8799         signal: Undefine macro definitions in C++ mode.
8800         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
8801         sigfillset): Undefine macro definitions from the system header in C++
8802         mode.
8803         Reported by John W. Eaton <jwe@gnu.org>.
8804
8805 2010-03-20  Bruno Haible  <bruno@clisp.org>
8806
8807         Ensure no #include statements inside extern "C" { ... }.
8808         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
8809         contain #include statements.
8810         * lib/time.in.h: Likewise.
8811
8812 2010-03-20  Bruno Haible  <bruno@clisp.org>
8813
8814         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
8815         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
8816         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
8817         Reported by John W. Eaton <jwe@gnu.org>.
8818
8819 2010-03-20  Bruno Haible  <bruno@clisp.org>
8820
8821         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
8822         Reported by Jim Meyering.
8823
8824 2010-03-20  Bruno Haible  <bruno@clisp.org>
8825
8826         pipe: Set errno upon failure.
8827         * lib/pipe.h: Specify that when -1 is returned, errno is set.
8828         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
8829         errno value in error message.
8830
8831 2010-03-20  Bruno Haible  <bruno@clisp.org>
8832             Jim Meyering  <meyering@redhat.com>
8833
8834         lchown: Avoid "unused variable" warning.
8835         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
8836
8837 2010-03-20  Bruno Haible  <bruno@clisp.org>
8838
8839         Work around unlink() bug on MacOS X 10.5.6.
8840         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
8841         attempting to unlink a parent directory.
8842         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
8843         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
8844         activate for the replacement function.
8845         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
8846
8847 2010-03-20  Bruno Haible  <bruno@clisp.org>
8848
8849         Fix link errors on Solaris 8.
8850         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
8851         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
8852
8853 2010-03-19  Jim Meyering  <meyering@redhat.com>
8854
8855         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
8856         The _LIBC implementation of build_range_exp correctly honors the
8857         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
8858         However, the non-_LIBC implementation would ignore that syntax-bit
8859         flag and return REG_ERANGE unconditionally.
8860         This change makes it honor that flag.
8861         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
8862         Make two pointer parameters "const".
8863         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
8864         (parse_bracket_exp): Update caller.
8865
8866         regex.m4: correct the reversed range endpoint ([b-a]) test
8867         * m4/regex.m4: When requiring that [b-a] evoke failure,
8868         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
8869         test pass once again for x86-based systems.
8870
8871 2010-03-19  Bruno Haible  <bruno@clisp.org>
8872
8873         scandir: Fix link error on Solaris 8.
8874         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
8875         macros.
8876
8877 2010-03-19  Bruno Haible  <bruno@clisp.org>
8878
8879         getusershell: Fix documentation.
8880         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
8881         module.
8882         * doc/glibc-functions/setusershell.texi: Likewise.
8883
8884         getusershell: Provide declaration, missing on Solaris 9.
8885         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
8886         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
8887         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
8888         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
8889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8890         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
8891         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
8892         HAVE_GETUSERSHELL.
8893         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
8894
8895 2010-03-19  Bruno Haible  <bruno@clisp.org>
8896
8897         wctype: Provide iswblank function.
8898         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
8899         exists and is fine.
8900         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
8901         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
8902         * tests/test-wctype.c (main): Re-enable the iswblank tests.
8903         * doc/posix-functions/iswblank.texi: Update.
8904
8905 2010-03-19  Bruno Haible  <bruno@clisp.org>
8906
8907         Tests of module 'pty' in C++ mode.
8908         * modules/pty-tests: New file.
8909         * tests/test-pty-c++.cc: New file.
8910         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8911
8912 2010-03-19  Eric Blake  <eblake@redhat.com>
8913
8914         logb: fix documentation
8915         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
8916         1.5 declaration bug.
8917
8918         forkpty, openpty: prefer glibc's const-safe prototype
8919         * lib/forkpty.c (rpl_forkpty): New file.
8920         * lib/openpty.c (rpl_openpty): Likewise.
8921         * modules/forkpty (Files): Distribute it.
8922         * modules/openpty (Files): Likewise.
8923         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
8924         check...
8925         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
8926         replacement for for non-const BSD signature.
8927         * modules/pty (Makefile.am): Substitute witnesses.
8928         * lib/pty.in.h (forkpty, openpty): Declare replacements.
8929         * tests/test-forkpty.c: Update signature check.
8930         * tests/test-openpty.c: Likewise.
8931         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
8932         * doc/glibc-functions/openpty.texi (openpty): Likewise.
8933
8934         forkpty, openpty: split functions into new modules
8935         * modules/pty (Makefile.am): Substitute new witnesses.
8936         (Libraries): Move library detection...
8937         * modules/forkpty: ...into new module.
8938         * modules/openpty: Another new module.
8939         * modules/pty-tests: Rename and split...
8940         * modules/forkpty-tests: ...to this...
8941         * modules/openpty-tests: ...and this.
8942         * tests/test-pty.c: Rename and split...
8943         * tests/test-forkpty.c: ...to this...
8944         * tests/test-openpty.c: ...and this.
8945         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
8946         (gl_PTY): Split library searching...
8947         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
8948         (gl_FORKPTY, gl_OPENPTY): New macros.
8949         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
8950         * NEWS: Mention the split.
8951         * MODULES.html.sh (Misc): Document the modules.
8952         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
8953         * doc/glibc-functions/openpty.texi (openpty): Likewise.
8954
8955         pty: improve replacement header
8956         * lib/pty.in.h: New file.
8957         * modules/pty (Files): Ship it.
8958         (Makefile.am): Always build replacement.
8959         * m4/pty.m4: Rename...
8960         * m4/pty_h.m4: ...to this.
8961         (gl_PTY): Modernize setting of witness macros; update check of
8962         forkpty to take proper advantage of cache.
8963         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
8964
8965         getopt: avoid compiler warning
8966         * lib/getopt.c (attribute_hidden): Remove unused macro.
8967
8968 2010-03-18  Bruno Haible  <bruno@clisp.org>
8969
8970         Fix link errors on Solaris 8.
8971         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
8972         * modules/search-tests (test_search_c___LDADD): Likewise.
8973         * modules/signal-tests (test_signal_c___LDADD): Likewise.
8974         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
8975         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
8976         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
8977         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
8978         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
8979         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
8980
8981 2010-03-18  Bruno Haible  <bruno@clisp.org>
8982
8983         Fix bug introduced on 2010-03-14.
8984         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
8985         (gl_SPAWN_H): Require it.
8986         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
8987         Reported by Simon Josefsson.
8988
8989 2010-03-18  Bruno Haible  <bruno@clisp.org>
8990
8991         Fix typo introduced on 2009-12-31.
8992         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
8993         posix_spawn_file_actions_adddup2.
8994
8995 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
8996         and Eric Blake  <eblake@redhat.com>
8997
8998         test-vc-list-files-git: make more robust
8999         * tests/test-vc-list-files-git.sh: Unset problematic environment
9000         variables.  Chain commands together.
9001
9002 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
9003
9004         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
9005         `AC_CHECK_DECL' invocation.
9006
9007 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
9008
9009         * lib/inttostr.c (inttostr): Make sure the invocation of verify
9010         appears before executable statements. Suggested by Petr Sumbera
9011         <Petr.Sumbera@Sun.COM>.
9012
9013 2010-03-14  Bruno Haible  <bruno@clisp.org>
9014
9015         * tests/test-flock.c (test_exclusive): Comment out a test that causes
9016         portability problems. Instead use a simpler test.
9017         (main): Check that invalid arguments are rejected only on Linux.
9018
9019 2010-03-14  Bruno Haible  <bruno@clisp.org>
9020
9021         Fix bug introduced on 2009-12-31.
9022         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
9023         gl_PREREQ_SYS_H_WINSOCK2 always.
9024         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
9025         SYS_SOCKET_H variable.
9026         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
9027         Update comments.
9028         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
9029         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9030         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9031         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9032         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9033
9034 2010-03-14  Bruno Haible  <bruno@clisp.org>
9035
9036         Fix values returned by sinl, cosl.
9037         * lib/trigl.h: Add specification comments.
9038         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
9039         that combines the values from the precomputed table with the values of
9040         the Chebyshev polynomials.
9041
9042 2010-03-14  Bruno Haible  <bruno@clisp.org>
9043
9044         Fix compilation error when modules 'posix_spawn[p]' are not used.
9045         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
9046         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
9047
9048 2010-03-14  Bruno Haible  <bruno@clisp.org>
9049
9050         Fix compilation error on mingw when module 'time_r' is not used.
9051         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
9052         is 1.
9053         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
9054         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
9055         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
9056         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
9057
9058 2010-03-14  Bruno Haible  <bruno@clisp.org>
9059
9060         Fix compilation error with Sun C.
9061         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
9062         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
9063         instead of GCC specific ULONG_LONG_MAX.
9064         * lib/xstrtoll.c: Likewise.
9065         * lib/xstrtoull.c: Likewise.
9066
9067 2010-03-13  Bruno Haible  <bruno@clisp.org>
9068
9069         Allow the user to disable C++ code and tests.
9070         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
9071         (gl_PROG_ANSI_CXX): Require it.
9072
9073 2010-03-13  Bruno Haible  <bruno@clisp.org>
9074
9075         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
9076         cases.
9077
9078 2010-03-13  Bruno Haible  <bruno@clisp.org>
9079
9080         Test that gnulib does not break the standard C++ headers.
9081         * tests/test-locale-c++2.cc: New file.
9082         * modules/locale-tests (Files): Add it.
9083         (Makefile.am): Compile it for test-locale-c++.
9084         * tests/test-math-c++2.cc: New file.
9085         * modules/math-tests (Files): Add it.
9086         (Makefile.am): Compile it for test-math-c++.
9087         * tests/test-signal-c++2.cc: New file.
9088         * modules/signal-tests (Files): Add it.
9089         (Makefile.am): Compile it for test-signal-c++.
9090         * tests/test-stdio-c++2.cc: New file.
9091         * modules/stdio-tests (Files): Add it.
9092         (Makefile.am): Compile it for test-stdio-c++.
9093         * tests/test-stdlib-c++2.cc: New file.
9094         * modules/stdlib-tests (Files): Add it.
9095         (Makefile.am): Compile it for test-stdlib-c++.
9096         * tests/test-string-c++2.cc: New file.
9097         * modules/string-tests (Files): Add it.
9098         (Makefile.am): Compile it for test-string-c++.
9099         * tests/test-time-c++2.cc: New file.
9100         * modules/time-tests (Files): Add it.
9101         (Makefile.am): Compile it for test-time-c++.
9102         Reported by John W. Eaton <jwe@gnu.org>.
9103
9104 2010-03-13  Bruno Haible  <bruno@clisp.org>
9105
9106         * gnulib-tool (func_usage): Clarify which options are available for
9107         --create-testdir and --create-megatestdir.
9108
9109 2010-03-13  Bruno Haible  <bruno@clisp.org>
9110
9111         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
9112         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
9113         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
9114         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9115         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
9116         when appropriate.
9117         Reported by Jim Meyering.
9118
9119 2010-03-12  Simon Josefsson  <simon@josefsson.org>
9120
9121         * gnulib-tool (func_import): Explain origin of code.
9122
9123 2010-03-12  Bruno Haible  <bruno@clisp.org>
9124
9125         Fix problem with automake's definition of CXXLINK.
9126         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
9127         Reported by Simon Josefsson and Ludovic Courtès.
9128
9129 2010-03-12  Bruno Haible  <bruno@clisp.org>
9130
9131         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
9132         stable releases.
9133
9134 2010-03-11  Bruno Haible  <bruno@clisp.org>
9135
9136         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
9137         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
9138         whether the system provides one variant or multiple variants of the
9139         function.
9140         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
9141         C++ compilers.
9142         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
9143         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
9144         Reported by Jim Meyering.
9145
9146 2010-03-09  Simon Josefsson  <simon@josefsson.org>
9147
9148         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
9149
9150 2010-03-08  Bruno Haible  <bruno@clisp.org>
9151
9152         gnulib-tool: Add support for --libtool in --create-testdir.
9153         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
9154         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
9155
9156 2010-03-08  Eric Blake  <eblake@redhat.com>
9157
9158         gnulib-tool.texi: mention possibility of git submodule
9159         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
9160         submodules.
9161         * doc/.gitignore: Ignore another generated file.
9162
9163 2010-03-08  Karl Berry  <karl@gnu.org>
9164
9165         * doc/gnulib-tool.texi (VCS Issues): Mention third option
9166         of committing gnulib files while skipping others.
9167
9168 2010-03-07  Bruno Haible  <bruno@clisp.org>
9169
9170         Tests of module 'wctype' in C++ mode.
9171         * tests/test-wctype-c++.cc: New file.
9172         * modules/wctype-tests (Files): Add it and tests/signature.h.
9173         (Depends-on): Add ansi-c++-opt.
9174         (Makefile.am): Arrange to compile and run test-wctype-c++.
9175
9176         Tests of module 'wchar' in C++ mode.
9177         * tests/test-wchar-c++.cc: New file.
9178         * modules/wchar-tests (Files): Add it and tests/signature.h.
9179         (Depends-on): Add ansi-c++-opt.
9180         (Makefile.am): Arrange to compile and run test-wchar-c++.
9181         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
9182         gl_MODULE_INDICATOR.
9183
9184         Tests of module 'unistd' in C++ mode.
9185         * tests/test-unistd-c++.cc: New file.
9186         * modules/unistd-tests (Files): Add it and tests/signature.h.
9187         (Depends-on): Add ansi-c++-opt.
9188         (Makefile.am): Arrange to compile and run test-unistd-c++.
9189         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
9190         gl_MODULE_INDICATOR.
9191
9192         Tests of module 'time' in C++ mode.
9193         * tests/test-time-c++.cc: New file.
9194         * modules/time-tests (Files): Add it and tests/signature.h.
9195         (Depends-on): Add ansi-c++-opt.
9196         (Makefile.am): Arrange to compile and run test-time-c++.
9197         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9198
9199         Tests of module 'sys_time' in C++ mode.
9200         * tests/test-sys_time-c++.cc: New file.
9201         * modules/sys_time-tests (Files): Add it and tests/signature.h.
9202         (Depends-on): Add ansi-c++-opt.
9203         (Makefile.am): Arrange to compile and run test-sys_time-c++.
9204         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
9205         gl_MODULE_INDICATOR.
9206
9207         Tests of module 'sys_stat' in C++ mode.
9208         * tests/test-sys_stat-c++.cc: New file.
9209         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
9210         (Depends-on): Add ansi-c++-opt.
9211         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
9212         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
9213         gl_MODULE_INDICATOR.
9214
9215         Tests of module 'sys_socket' in C++ mode.
9216         * tests/test-sys_socket-c++.cc: New file.
9217         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
9218         (Depends-on): Add ansi-c++-opt.
9219         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
9220         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
9221         gl_MODULE_INDICATOR.
9222
9223         Tests of module 'sys_select' in C++ mode.
9224         * tests/test-sys_select-c++.cc: New file.
9225         * modules/sys_select-tests (Files): Add it and tests/signature.h.
9226         (Depends-on): Add ansi-c++-opt.
9227         (Makefile.am): Arrange to compile and run test-sys_select-c++.
9228         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
9229         gl_MODULE_INDICATOR.
9230
9231         Tests of module 'sys_ioctl' in C++ mode.
9232         * tests/test-sys_ioctl-c++.cc: New file.
9233         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
9234         (Depends-on): Add ansi-c++-opt.
9235         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
9236         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
9237         gl_MODULE_INDICATOR.
9238
9239         Tests of module 'string' in C++ mode.
9240         * tests/test-string-c++.cc: New file.
9241         * modules/string-tests (Files): Add it and tests/signature.h.
9242         (Depends-on): Add ansi-c++-opt.
9243         (Makefile.am): Arrange to compile and run test-string-c++.
9244         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
9245         gl_MODULE_INDICATOR.
9246
9247         Tests of module 'stdlib' in C++ mode.
9248         * tests/test-stdlib-c++.cc: New file.
9249         * modules/stdlib-tests (Files): Add it and tests/signature.h.
9250         (Depends-on): Add ansi-c++-opt.
9251         (Makefile.am): Arrange to compile and run test-stdlib-c++.
9252         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
9253         gl_MODULE_INDICATOR.
9254
9255         Tests of module 'stdio' in C++ mode.
9256         * tests/test-stdio-c++.cc: New file.
9257         * modules/stdio-tests (Files): Add it and tests/signature.h.
9258         (Depends-on): Add ansi-c++-opt.
9259         (Makefile.am): Arrange to compile and run test-stdio-c++.
9260         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
9261         gl_MODULE_INDICATOR.
9262
9263         Tests of module 'spawn' in C++ mode.
9264         * tests/test-spawn-c++.cc: New file.
9265         * modules/spawn-tests (Files): Add it and tests/signature.h.
9266         (Depends-on): Add ansi-c++-opt.
9267         (Makefile.am): Arrange to compile and run test-spawn-c++.
9268         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
9269         gl_MODULE_INDICATOR.
9270
9271         Tests of module 'signal' in C++ mode.
9272         * tests/test-signal-c++.cc: New file.
9273         * modules/signal-tests (Files): Add it and tests/signature.h.
9274         (Depends-on): Add ansi-c++-opt.
9275         (Makefile.am): Arrange to compile and run test-signal-c++.
9276         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
9277         gl_MODULE_INDICATOR.
9278
9279         Tests of module 'search' in C++ mode.
9280         * tests/test-search-c++.cc: New file.
9281         * modules/search-tests (Files): Add it and tests/signature.h.
9282         (Depends-on): Add ansi-c++-opt.
9283         (Makefile.am): Arrange to compile and run test-search-c++.
9284         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
9285         gl_MODULE_INDICATOR.
9286
9287         Tests of module 'math' in C++ mode.
9288         * tests/test-math-c++.cc: New file.
9289         * modules/math-tests (Files): Add it and tests/signature.h.
9290         (Depends-on): Add ansi-c++-opt.
9291         (Makefile.am): Arrange to compile and run test-math-c++.
9292         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9293
9294         Tests of module 'locale' in C++ mode.
9295         * tests/test-locale-c++.cc: New file.
9296         * modules/locale-tests (Files): Add it and tests/signature.h.
9297         (Depends-on): Add ansi-c++-opt.
9298         (Makefile.am): Arrange to compile and run test-locale-c++.
9299         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
9300         gl_MODULE_INDICATOR.
9301
9302         Tests of module 'langinfo' in C++ mode.
9303         * tests/test-langinfo-c++.cc: New file.
9304         * modules/langinfo-tests (Files): Add it and tests/signature.h.
9305         (Depends-on): Add ansi-c++-opt.
9306         (Makefile.am): Arrange to compile and run test-langinfo-c++.
9307         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
9308         gl_MODULE_INDICATOR.
9309
9310         Tests of module 'iconv-h' in C++ mode.
9311         * tests/test-iconv-h-c++.cc: New file.
9312         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
9313         (Depends-on): Add ansi-c++-opt.
9314         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
9315
9316         Tests of module 'glob' in C++ mode.
9317         * tests/test-glob-c++.cc: New file.
9318         * modules/glob-tests (Files): Add it.
9319         (Depends-on): Add ansi-c++-opt.
9320         (Makefile.am): Arrange to compile and run test-glob-c++.
9321
9322         Tests of module 'fcntl-h' in C++ mode.
9323         * tests/test-fcntl-h-c++.cc: New file.
9324         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
9325         (Depends-on): Add ansi-c++-opt.
9326         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
9327         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
9328         gl_MODULE_INDICATOR.
9329
9330         Tests of module 'dirent' in C++ mode.
9331         * tests/test-dirent-c++.cc: New file.
9332         * modules/dirent-tests (Files): Add it and tests/signature.h.
9333         (Depends-on): Add ansi-c++-opt.
9334         (Makefile.am): Arrange to compile and run test-dirent-c++.
9335         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
9336         gl_MODULE_INDICATOR.
9337
9338         New module 'ansi-c++-opt'.
9339         * modules/ansi-c++-opt: New file.
9340         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
9341
9342         Document C++ namespace mode.
9343         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
9344
9345         wctype: Avoid #define replacements in C++ mode.
9346         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
9347         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
9348         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
9349         In C++, define a namespaced alias symbol.
9350         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
9351         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
9352         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
9353         rule.
9354
9355         wchar: Avoid #define replacements in C++ mode.
9356         * lib/wchar.in.h: Include c++defs.h.
9357         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
9358         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
9359         symbol.
9360         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
9361         * modules/wchar (Depends-on): Add c++defs.
9362         (Makefile.am): Update wchar.h rule.
9363
9364         unistd: Avoid #define replacements in C++ mode.
9365         * lib/unistd.in.h: Include c++defs.h.
9366         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
9367         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
9368         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
9369         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
9370         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
9371         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
9372         symbol.
9373         (environ): Update.
9374         * modules/unistd (Depends-on): Add c++defs.
9375         (Makefile.am): Update unistd.h rule.
9376
9377         time: Avoid #define replacements in C++ mode.
9378         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
9379         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
9380         define a namespaced alias symbol.
9381         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
9382         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
9383         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
9384         * modules/time (Depends-on): Add c++defs, warn-on-use.
9385         (Makefile.am): Update time.h rule.
9386         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
9387         * modules/nanosleep (configure.ac): Likewise.
9388         * modules/strptime (configure.ac): Likewise.
9389         * modules/timegm (configure.ac): Likewise.
9390
9391         sys_time: Avoid #define replacements in C++ mode.
9392         * lib/sys_time.in.h: Include c++defs.h.
9393         (gettimeofday): In C++, define a namespaced alias symbol.
9394         * modules/sys_time (Depends-on): Add c++defs.
9395         (Makefile.am): Update sys/time.h rule.
9396
9397         sys_stat: Avoid #define replacements in C++ mode.
9398         * lib/sys_stat.in.h: Include c++defs.h.
9399         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
9400         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
9401         namespaced alias symbol.
9402         In C++, define a namespaced alias symbol.
9403         * modules/sys_stat (Depends-on): Add c++defs.
9404         (Makefile.am): Update sys/stat.h rule.
9405
9406         sys_socket: Avoid #define replacements in C++ mode.
9407         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
9408         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
9409         definitions also when the system has a <sys/socket.h>.
9410         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
9411         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
9412         In C++, define a namespaced alias symbol.
9413         * modules/sys_socket (Depends-on): Add c++defs.
9414         (Makefile.am): Update sys/socket.h rule.
9415
9416         sys_select: Avoid #define replacements in C++ mode.
9417         * lib/sys_select.in.h: Include c++defs.h. Enable the function
9418         definitions also when the system has a <sys/select.h>.
9419         (select): In C++, define a namespaced alias symbol.
9420         * modules/sys_select (Depends-on): Add c++defs.
9421         (Makefile.am): Update sys/select.h rule.
9422
9423         sys_ioctl: Avoid #define replacements in C++ mode.
9424         * lib/sys_ioctl.in.h: Include c++defs.h.
9425         (ioctl): In C++, define a namespaced alias symbol.
9426         * modules/sys_ioctl (Depends-on): Add c++defs.
9427         (Makefile.am): Update sys/ioctl.h rule.
9428
9429         string: Avoid #define replacements in C++ mode.
9430         * lib/string.in.h: Include c++defs.h.
9431         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
9432         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
9433         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
9434         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
9435         strsignal, strverscmp): In C++, define a namespaced alias symbol.
9436         * modules/string (Depends-on): Add c++defs.
9437         (Makefile.am): Update string.h rule.
9438
9439         stdlib: Avoid #define replacements in C++ mode.
9440         * lib/stdlib.in.h: Include c++defs.h.
9441         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
9442         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
9443         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
9444         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
9445         symbol.
9446         * modules/stdlib (Depends-on): Add c++defs.
9447         (Makefile.am): Update stdlib.h rule.
9448
9449         stdio: Avoid #define replacements in C++ mode.
9450         * lib/stdio.in.h: Include c++defs.h.
9451         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
9452         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
9453         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
9454         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
9455         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
9456         namespaced alias symbol.
9457         * modules/stdio (Depends-on): Add c++defs.
9458         (Makefile.am): Update stdio.h rule.
9459
9460         spawn: Avoid #define replacements in C++ mode.
9461         * lib/spawn.in.h: Include c++defs.h.
9462         (posix_spawn, posix_spawnp, posix_spawnattr_init,
9463         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
9464         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
9465         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
9466         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
9467         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
9468         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
9469         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
9470         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
9471         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
9472         In C++, define a namespaced alias symbol.
9473         * modules/spawn (Depends-on): Add c++defs.
9474         (Makefile.am): Update spawn.h rule.
9475
9476         signal: Avoid #define replacements in C++ mode.
9477         * lib/signal.in.h: Include c++defs.h.
9478         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
9479         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
9480         namespaced alias symbol.
9481         * modules/signal (Depends-on): Add c++defs.
9482         (Makefile.am): Update signal.h rule.
9483
9484         search: Avoid #define replacements in C++ mode.
9485         * lib/search.in.h: Include c++defs.h.
9486         (_gl_search_compar_fn, _gl_search_action_fn): New types.
9487         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
9488         symbol.
9489         * modules/search (Depends-on): Add c++defs.
9490         (Makefile.am): Update search.h rule.
9491
9492         math: Avoid #define replacements in C++ mode.
9493         * lib/math.in.h: Include c++defs.h.
9494         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
9495         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
9496         trunc, truncl): In C++, define a namespaced alias symbol.
9497         * modules/math (Depends-on): Add c++defs.
9498         (Makefile.am): Update math.h rule.
9499
9500         locale: Avoid #define replacements in C++ mode.
9501         * lib/locale.in.h: Include c++defs.h.
9502         (duplocale): In C++, define a namespaced alias symbol.
9503         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
9504         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
9505         * modules/locale (Depends-on): Add c++defs.
9506         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
9507
9508         langinfo: Avoid #define replacements in C++ mode.
9509         * lib/langinfo.in.h: Include c++defs.h.
9510         (nl_langinfo): In C++, define a namespaced alias symbol.
9511         * modules/langinfo (Depends-on): Add c++defs.
9512         (Makefile.am): Update langinfo.h rule.
9513
9514         iconv-h: Avoid #define replacements in C++ mode.
9515         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
9516         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
9517         symbol.
9518         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
9519         whenever iconv is present.
9520         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
9521         (Makefile.am): Update iconv.h rule.
9522
9523         glob: Avoid #define replacements in C++ mode.
9524         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
9525         (_gl_glob_errfunc_fn): New type.
9526         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
9527         symbol.
9528         * modules/glob (Depends-on): Add c++defs, warn-on-use.
9529         (Makefile.am): Update glob.h rule.
9530
9531         fcntl-h: Avoid #define replacements in C++ mode.
9532         * lib/fcntl.in.h: Include c++defs.h.
9533         (fcntl, open, openat): In C++, define a namespaced alias symbol.
9534         * modules/fcntl-h (Depends-on): Add c++defs.
9535         (Makefile.am): Update fcntl.h rule.
9536
9537         dirent: Avoid #define replacements in C++ mode.
9538         * lib/dirent.in.h: Include c++defs.h.
9539         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
9540         namespaced alias symbol.
9541         (dirfd): Update declaration.
9542         * modules/dirent (Depends-on): Add c++defs.
9543         (Makefile.am): Update dirent.h rule.
9544
9545         ctype: Make it usable in C++ code.
9546         * lib/ctype.in.h: Include c++defs.h.
9547         (isblank): Declare as extern "C".
9548         * modules/ctype (Depends-on): Add c++defs.
9549         (Makefile.am): Update ctype.h rule.
9550
9551         New module 'c++defs'.
9552         * modules/c++defs: New file.
9553         * build-aux/c++defs.h: New file.
9554         Reported by John W. Eaton <jwe@gnu.org>.
9555
9556 2010-03-07  Bruno Haible  <bruno@clisp.org>
9557
9558         logb: Provide missing declaration for Cygwin.
9559         * lib/math.in.h (logb): New declaration.
9560         * m4/logb.m4: New file.
9561         * modules/logb (Files): Add m4/logb.m4.
9562         (Depends-on): Add math.
9563         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
9564         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
9565         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
9566         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
9567         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
9568
9569 2010-03-07  Bruno Haible  <bruno@clisp.org>
9570
9571         Fix test-cond link error.
9572         * tests/test-cond.c: Include <stdio.h>.
9573
9574 2010-03-07  Bruno Haible  <bruno@clisp.org>
9575
9576         Fix test-dirent-safer link error.
9577         * modules/dirent-safer-tests (Makefile.am): Define
9578         test_dirent_safer_LDADD.
9579
9580 2010-03-07  Bruno Haible  <bruno@clisp.org>
9581
9582         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
9583         among default module list.
9584
9585 2010-03-07  Bruno Haible  <bruno@clisp.org>
9586
9587         Fix link error on platforms with GNU libiconv.
9588         * modules/unistr/u8-strcoll-tests (Makefile): Define
9589         test_u8_strcoll_LDADD.
9590         * modules/unistr/u16-strcoll-tests (Makefile): Define
9591         test_u16_strcoll_LDADD.
9592         * modules/unistr/u32-strcoll-tests (Makefile): Define
9593         test_u32_strcoll_LDADD.
9594
9595 2010-03-07  Bruno Haible  <bruno@clisp.org>
9596
9597         Use POSIX declarations for socket functions.
9598         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
9599         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
9600         rpl_sendto): Change declaration to match POSIX.
9601         * lib/connect.c (rpl_connect): Likewise.
9602         * lib/accept.c (rpl_accept): Likewise.
9603         * lib/bind.c (rpl_bind): Likewise.
9604         * lib/getpeername.c (rpl_getpeername): Likewise.
9605         * lib/getsockname.c (rpl_getsockname): Likewise.
9606         * lib/recv.c (rpl_recv): Likewise.
9607         * lib/send.c (rpl_send): Likewise.
9608         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9609         * lib/sendto.c (rpl_sendto): Likewise.
9610
9611 2010-03-06  Bruno Haible  <bruno@clisp.org>
9612
9613         Clarify access, euidaccess, faccessat.
9614         * doc/posix-functions/faccessat.texi: Mention security problem under
9615         "Other problems", not "Portability problems".
9616         * doc/posix-functions/access.texi: Likewise. Mention a related security
9617         problem.
9618         * doc/glibc-functions/euidaccess.texi: Mention security problems.
9619         * lib/euidaccess.c: Add comments about platforms.
9620         * lib/unistd.in.h (access, euidaccess): Add warnings.
9621
9622 2010-03-07  Bruno Haible  <bruno@clisp.org>
9623
9624         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
9625         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
9626         (POSIX_SPAWN_SETSCHEDULER): Likewise.
9627         (POSIX_SPAWN_USEVFORK): Define in a way that works when
9628         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
9629         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
9630         declare when POSIX_SPAWN_SETSCHEDULER is zero.
9631         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
9632         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
9633         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
9634         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
9635         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
9636         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
9637         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
9638         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
9639         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
9640         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
9641         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
9642         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
9643         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
9644         Likewise.
9645         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
9646         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
9647         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
9648         Likewise.
9649         * tests/test-spawn.c (main): Make it work when
9650         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
9651
9652 2010-03-07  Bruno Haible  <bruno@clisp.org>
9653
9654         Fix incorrect Makefile.am generation in German locale.
9655         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9656         Execute sed command with character range in C locale.
9657
9658 2010-03-06  Bruno Haible  <bruno@clisp.org>
9659
9660         Tests for module 'iconv-h'.
9661         * modules/iconv-h-tests: New file.
9662         * tests/test-iconv-h.c: New file.
9663
9664         New module 'iconv-h'.
9665         * modules/iconv-h: New file.
9666         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
9667         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
9668         (configure.ac): Remove gl_ICONV_H.
9669         (Makefile.am): Remove rule for iconv.h.
9670
9671 2010-03-06  Bruno Haible  <bruno@clisp.org>
9672
9673         More consistent naming of *.m4 files.
9674         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
9675         * modules/wctype (Files): Update.
9676
9677         More consistent naming of *.m4 files.
9678         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
9679         * modules/wchar (Files): Update.
9680
9681 2010-03-06  Jim Meyering  <meyering@redhat.com>
9682
9683         euidaccess: relax license to LGPLv2+
9684         * modules/euidaccess (License): Relax to LGPLv2+.
9685
9686 2010-03-06  Bruno Haible  <bruno@clisp.org>
9687
9688         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
9689         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
9690         (Makefile.am): Augment lib_SOURCES instead.
9691
9692 2010-03-04  Jim Meyering  <meyering@redhat.com>
9693
9694         utime: remove obsolete module
9695         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
9696         unnecessary for years, and has been marked as obsolete for 10 months.
9697         * modules/utime: Remove file.
9698         * lib/utime.c: Remove file.
9699         * m4/utime.m4: Remove file.
9700         * m4/utimes-null.m4: Remove file.
9701         * doc/posix-functions/utime.texi (utime): Remove reference to
9702         the module.  Move the sole "fixed by gnulib" item into the
9703         "problems not fixed by Gnulib" list.
9704         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
9705
9706 2010-03-05  Simon Josefsson  <simon@josefsson.org>
9707
9708         * modules/exit (License): Relax license to LGPLv2+.
9709         (Status): Mark as obsolete.
9710         * NEWS: Mention deprecated 'exit' module.
9711         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
9712         of now obsolete 'exit'.
9713
9714 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9715
9716         fts-lgpl: remove unused module
9717         * modules/fts-lgpl: Remove.
9718         * MODULES.html.sh (func_all_modules): Adjust.
9719         * check-module (find_included_lib_files): Adjust.
9720         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
9721
9722 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
9723
9724         copy-acl: enhance Solaris ACL error handling
9725         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
9726         * lib/set-mode-acl.c (qset_acl): Likewise.
9727
9728 2010-03-02  Bruno Haible  <bruno@clisp.org>
9729
9730         spawn: Don't override the system defined values on FreeBSD 8.
9731         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
9732         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
9733         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
9734         if HAVE_POSIX_SPAWN is 1.
9735         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
9736
9737 2010-03-01  Bruno Haible  <bruno@clisp.org>
9738
9739         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
9740         regarding Automake.
9741
9742 2010-02-25  Bruno Haible  <bruno@clisp.org>
9743
9744         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
9745         * gnulib-tool: Define 'echo' as a function only before the ksh alias
9746         setting, not afterwards.
9747         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9748
9749 2010-02-24  Eric Blake  <eblake@redhat.com>
9750
9751         bootstrap, git-version-gen: use timestamp
9752         * build-aux/git-version-gen (scriptversion): Force UTC.
9753         * build-aux/bootstrap (scriptversion): New variable.
9754
9755         bootstrap: allow older git
9756         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
9757         older than 1.6.4.  Requested by the libvirt project.
9758
9759 2010-02-23  Eric Blake  <eblake@redhat.com>
9760
9761         warn-on-use: work with old autoconf
9762         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
9763         AS_VAR semantics of autoconf 2.60.
9764         Reported by Bruno Haible.
9765
9766         bootstrap: improve some comments
9767         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
9768         clarification comments.
9769
9770         gettimeofday: provide correct function
9771         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
9772         when replacement is declared, otherwise provide gettimeofday.
9773         Reported by Michael Goffioul.
9774
9775 2010-02-23  Jim Meyering  <meyering@redhat.com>
9776
9777         lib-ignore: relax license to "unlimited", not LGPLv2+
9778         * modules/lib-ignore (License): Relax to "unlimited".
9779
9780 2010-02-23  Jim Meyering  <meyering@redhat.com>
9781
9782         lib-ignore: relax license to LGPLv2+
9783         * modules/lib-ignore (License): Relax to LGPLv2+.
9784
9785 2010-02-22  Eric Blake  <eblake@redhat.com>
9786
9787         lseek: avoid bash 3.2 broken pipe bug
9788         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
9789         warning from bash 3.2.
9790         Reported by Ben Pfaff, with analysis from Bruno Haible.
9791
9792         bootstrap: support non-FSF copyright holder
9793         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
9794         bootstrap.conf override of COPYRIGHT_HOLDER.
9795         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
9796
9797         bootstrap: interoperate with gettext 0.14.1
9798         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
9799
9800         bootstrap: allow for alternate submodule location
9801         * build-aux/bootstrap (gnulib_path): New variable; use instead of
9802         hardcoding submodule location.
9803         (gnulib_mk): Allow direct use of Makefile.am.
9804
9805         bootstrap: use GNULIB_SRCDIR to reduce disk usage
9806         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
9807         rather than reconfiguring where the submodule points.
9808
9809         gettimeofday: restore support for platforms that lack function
9810         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
9811         replacement if function is missing.
9812         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
9813         * modules/sys_time (Makefile.am): Substitute it.
9814         * lib/sys_time.in.h (gettimeofday): Check it.
9815         Reported by Michael Goffioul.
9816
9817 2010-02-21  Bruno Haible  <bruno@clisp.org>
9818
9819         * lib/stdio.in.h (obstack_printf): Fix typo.
9820
9821 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
9822
9823         vc-list-files: use bzr ls's -R option
9824         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
9825         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
9826
9827 2010-02-21  Jim Meyering  <meyering@redhat.com>
9828
9829         init.sh: fix EXEEXT shims to work also for names like test-prog
9830         * tests/init.sh: Re-exec a better shell, when needed.
9831         If the current shell lacks support for posix $(...), an init.sh-using
9832         test will now try to find a shell that supports that.  If EXEEXT is
9833         nonempty, we also require support for hyphen-in-alias-name and shell
9834         substitutions like ${var#glob}.  Failure to find such a shell results
9835         in a skipped test.
9836
9837 2010-02-21  Bruno Haible  <bruno@clisp.org>
9838
9839         Really work around around "broken pipe" error message from bash 3.2.
9840         * gnulib-tool (func_reset_sigpipe): Remove function.
9841         (echo): In bash 3.2, define to a function that uses printf.
9842         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
9843
9844 2010-02-20  Bruno Haible  <bruno@clisp.org>
9845
9846         Restore support for automake 1.9.6 with autoconf 2.61.
9847         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
9848         Reported by James Youngman <jay@gnu.org>.
9849
9850 2010-02-20  Bruno Haible  <bruno@clisp.org>
9851
9852         Improve *printf warning condition.
9853         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
9854         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
9855         and the function is overridden due to SIGPIPE emulation.
9856
9857 2010-02-20  Bruno Haible  <bruno@clisp.org>
9858
9859         * lib/stdio.in.h: Tweak comments.
9860
9861 2010-02-19  Bruno Haible  <bruno@clisp.org>
9862
9863         Make it easier to find modules. New gnulib-tool option '--find'.
9864         * gnulib-tool: New option --find.
9865         (func_usage): Document it.
9866         (func_sanitize_modulelist): New function, extracted from
9867         func_all_modules.
9868         (func_all_modules): Invoke it.
9869         * doc/gnulib-tool.texi (Which modules?): New node.
9870
9871 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
9872
9873         * lib/sys_select.in.h: Provide select replacement even if
9874         sys/select.h exists on a system, for Interix.
9875
9876 2010-02-18  Jim Meyering  <meyering@redhat.com>
9877
9878         init.sh: don't use $(...) just yet
9879         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
9880         to accommodate e.g., Solaris' /bin/sh.
9881
9882 2010-02-17  Bruno Haible  <bruno@clisp.org>
9883
9884         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
9885         Reported by Ludovic Courtès <ludo@gnu.org>.
9886
9887 2010-02-16  Simon Josefsson  <simon@josefsson.org>
9888
9889         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
9890         linking with -lintl.
9891
9892 2010-02-17  Simon Josefsson  <simon@josefsson.org>
9893
9894         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
9895         if not provided by the system's netdb.h.  Reported by
9896         ludo@gnu.org (Ludovic Courtès).
9897
9898 2010-02-15  Jim Meyering  <meyering@redhat.com>
9899
9900         init.sh: improve portability and efficiency
9901         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
9902         "dummy" in a for loop.
9903         Use '!', not '^' to select the complement of a character set used
9904         in a "case" statement.
9905         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
9906         Suggestions from Eric Blake.
9907
9908         init.sh: automatically accommodate programs with the .exe suffix
9909         Automatically arrange for an invocation of "prog" to execute the
9910         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
9911         may use the simpler "prog", yet still work when built on a system
9912         that requires specifying the added suffix.
9913         Do this by constructing a function named "prog" that invokes
9914         "prog.exe" for each .exe file in selected directories.
9915         * tests/init.sh (find_exe_basenames_): New function.
9916         (create_exe_shim_functions_): New function.
9917         (path_prepend_): Use it.
9918
9919         maint.mk: mark syntax-check sc_*.m rules as .PHONY
9920         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
9921         "make -t syntax-check" doesn't create a ton of sc_*.m files.
9922
9923 2010-02-14  Jim Meyering  <meyering@redhat.com>
9924
9925         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
9926         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
9927         (sc_prohibit_hash_pjw_without_use): New rule.
9928
9929         maint.mk: allow the default upload destination dir to be overridden
9930         * top/maint.mk (upload_dest_dir_): Define with a default that
9931         preserves the status quo.
9932         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
9933         Reported by Peter Simons.
9934
9935         maint.mk: prohibit inclusion of "hash.h" without_use
9936         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
9937
9938 2010-02-10  Jim Meyering  <meyering@redhat.com>
9939
9940         maint.mk: prohibit inclusion of "ignore-value.h" without_use
9941         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
9942
9943 2010-02-09  Eric Blake  <ebb9@byu.net>
9944         and Bruno Haible  <bruno@clisp.org>
9945
9946         obstack-printf-posix: ensure declaration
9947         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
9948         extracted from gl_FUNC_OBSTACK_PRINTF.
9949         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
9950         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
9951         Likewise.
9952         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
9953         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
9954         0.
9955
9956 2010-02-08  Bruno Haible  <bruno@clisp.org>
9957
9958         gnulib-tool: Fix typo in 2010-02-07 commit.
9959         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
9960         Reported by Eric Blake.
9961
9962 2010-02-07  Bruno Haible  <bruno@clisp.org>
9963
9964         gnulib-tool: Fix up caching patches.
9965         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
9966         option --no-cache. Use associative arrays when supported by the shell.
9967         (sed_comments): New variable.
9968         (modcache): Renamed from do_cache.
9969         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
9970         abbreviate unnecessarily.
9971         (have_associative): New variable.
9972         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
9973         way also for ksh and zsh.
9974         (func_init_sed_convert_to_cache_statements): New function, extracted
9975         from func_cache_lookup_module. Add support for associative arrays.
9976         Don't set the c_MODULE_cached variable here. Ignore all lines before
9977         the first field header. Remove only the final newline, not all trailing
9978         newlines. Support empty fields correctly. Limit the use of 'eval' to
9979         assignments.
9980         (func_get_description, func_get_status, func_get_notice,
9981         func_get_applicability, func_get_filelist, func_get_dependencies,
9982         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
9983         func_get_automake_snippet, func_get_include_directive,
9984         func_get_link_directive, func_get_license, func_get_maintainer):
9985         Update documentation. List the unoptimized code first. Add support for
9986         associative arrays. Limit the use of 'eval' to assignments.
9987         (func_get_applicability): Undo stylistic pessimisations.
9988         (func_get_automake_snippet, func_get_include_directive): Reduce code
9989         duplication.
9990         (func_modules_transitive_closure, func_modules_add_dummy,
9991         func_modules_notice, func_modules_to_filelist, func_add_file,
9992         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
9993         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
9994         func_create_testdir, func_create_megatestdir): Update documentation.
9995
9996 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9997
9998         * gnulib-tool (func_cache_lookup_module): Store the module name
9999         belonging to the cache variable; error out if two different
10000         module names map to the same cache variable name.
10001
10002 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10003
10004         gnulib-tool: Make caching optional.
10005         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
10006         Update matching short versions of --no-changelog.
10007         (func_usage): Update.
10008         (sed_extract_cache_prog): Renamed from ...
10009         (sed_extract_prog): ... this; revert to old extraction script.
10010         (func_get_description, func_get_status)
10011         (func_get_notice, func_get_applicability, func_get_filelist)
10012         (func_get_dependencies, func_get_autoconf_early_snippet)
10013         (func_get_autoconf_snippet, func_get_automake_snippet)
10014         (func_get_include_directive, func_get_link_directive)
10015         (func_get_license, func_get_maintainer): If $do_cache is false,
10016         use old, non-caching extraction scripts.
10017         Suggestion by Bruno Haible.
10018
10019 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10020
10021         gnulib-tool: cache module metainformation.
10022         * gnulib-tool (sed_extract_prog): Match newline before each
10023         header, and rewrite header to a shell variable suffix.
10024         (func_cache_var, func_cache_lookup_module): New functions,
10025         to turn a module name into a cache variable prefix, and to
10026         look up and cache module metainformation.
10027         (func_get_description, func_get_status)
10028         (func_get_notice, func_get_applicability, func_get_filelist)
10029         (func_get_dependencies, func_get_autoconf_early_snippet)
10030         (func_get_autoconf_snippet, func_get_automake_snippet)
10031         (func_get_include_directive, func_get_link_directive)
10032         (func_get_license, func_get_maintainer): Use
10033         func_cache_lookup_module.
10034
10035 2010-02-07  Bruno Haible  <bruno@clisp.org>
10036
10037         fnctl: Fix missing dependency.
10038         * modules/fcntl (Depends-on): Add getdtablesize.
10039         Reported by John W. Eaton <jwe@gnu.org>.
10040
10041 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
10042
10043         Argp: fix recognition of short alias options.
10044
10045         * lib/argp-parse.c (convert_options): Fix improper use of
10046         `|' between character values.
10047         * tests/test-argp.c (group1_option): New alias option
10048         --read (-r).
10049         (group1_parser): Special handling for 'r'.
10050         (test15): New test case.
10051         (test_fun): Add test15.
10052         * tests/test-argp-2.sh: Update expected --help and --usage
10053         outputs.
10054
10055 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
10056
10057         * tests/test-argp.c: Fix indentation.
10058
10059 2010-02-04  Eric Blake  <ebb9@byu.net>
10060
10061         gettimeofday: expose type of second argument
10062         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
10063         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
10064         * tests/test-gettimeofday.c: Use it to silence warning.
10065         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
10066         the issue.
10067
10068 2010-02-03  Jim Meyering  <meyering@redhat.com>
10069
10070         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
10071         * lib/regcomp.c (TYPE_SIGNED): Define.
10072         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
10073
10074         regcomp.c: avoid a new -Wshadow warning
10075         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
10076
10077 2010-02-01  Jim Meyering  <meyering@redhat.com>
10078
10079         removing useless parentheses in cpp #define directives
10080         For motivation, see commit c0221df4, "define STREQ(a,b)
10081         consistently, removing useless parentheses"
10082         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
10083         * lib/mountlist.c (MNT_IGNORE): Likewise.
10084         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
10085
10086 2010-02-01  Eric Blake  <ebb9@byu.net>
10087
10088         sys_time: use link-warning
10089         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
10090         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
10091         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
10092         * modules/sys_time (Depends-on): Add warn-on-use.
10093         (Makefile.am): Always build replacement.
10094         (configure.ac): Update substitutions.
10095         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
10096         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
10097         bother with SYS_TIME_H.
10098         * modules/gettimeofday (configure.ac): Declare indicator.
10099         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
10100         in use.
10101
10102         closein-tests: silence compiler warning
10103         * tests/test-closein.c (main): Ignore fread result.
10104         * modules/closein-tests (Depends-on): Add ignore-value.
10105
10106         tests: silence warning about system return
10107         * tests/test-areadlink-with-size.c (main): Ignore system result.
10108         * tests/test-areadlink.c (main): Likewise.
10109         * tests/test-areadlinkat-with-size.c (main): Likewise.
10110         * tests/test-areadlinkat.c (main): Likewise.
10111         * tests/test-canonicalize-lgpl.c (main): Likewise.
10112         * tests/test-canonicalize.c (main): Likewise.
10113         * tests/test-chown.c (main): Likewise.
10114         * tests/test-fchownat.c (main): Likewise.
10115         * tests/test-fdutimensat.c (main): Likewise.
10116         * tests/test-fstatat.c (main): Likewise.
10117         * tests/test-futimens.c (main): Likewise.
10118         * tests/test-lchown.c (main): Likewise.
10119         * tests/test-link.c (main): Likewise.
10120         * tests/test-linkat.c (main): Likewise.
10121         * tests/test-lstat.c (main): Likewise.
10122         * tests/test-mkdir.c (main): Likewise.
10123         * tests/test-mkdirat.c (main): Likewise.
10124         * tests/test-mkfifo.c (main): Likewise.
10125         * tests/test-mkfifoat.c (main): Likewise.
10126         * tests/test-mknod.c (main): Likewise.
10127         * tests/test-readlink.c (main): Likewise.
10128         * tests/test-remove.c (main): Likewise.
10129         * tests/test-rename.c (main): Likewise.
10130         * tests/test-renameat.c (main): Likewise.
10131         * tests/test-rmdir.c (main): Likewise.
10132         * tests/test-symlink.c (main): Likewise.
10133         * tests/test-symlinkat.c (main): Likewise.
10134         * tests/test-unlink.c (main): Likewise.
10135         * tests/test-unlinkat.c (main): Likewise.
10136         * tests/test-utimens.c (main): Likewise.
10137         * tests/test-utimensat.c (main): Likewise.
10138         * modules/areadlink-tests (Depends-on): Add ignore-value.
10139         * modules/areadlink-with-size-tests (Depends-on): Likewise.
10140         * modules/areadlinkat-tests (Depends-on): Likewise.
10141         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
10142         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10143         * modules/canonicalize-tests (Depends-on): Likewise.
10144         * modules/chown-tests (Depends-on): Likewise.
10145         * modules/fdutimensat-tests (Depends-on): Likewise.
10146         * modules/futimens-tests (Depends-on): Likewise.
10147         * modules/lchown-tests (Depends-on): Likewise.
10148         * modules/link-tests (Depends-on): Likewise.
10149         * modules/linkat-tests (Depends-on): Likewise.
10150         * modules/lstat-tests (Depends-on): Likewise.
10151         * modules/mkdir-tests (Depends-on): Likewise.
10152         * modules/mkfifo-tests (Depends-on): Likewise.
10153         * modules/mkfifoat-tests (Depends-on): Likewise.
10154         * modules/mknod-tests (Depends-on): Likewise.
10155         * modules/openat-tests (Depends-on): Likewise.
10156         * modules/readlink-tests (Depends-on): Likewise.
10157         * modules/remove-tests (Depends-on): Likewise.
10158         * modules/rename-tests (Depends-on): Likewise.
10159         * modules/renameat-tests (Depends-on): Likewise.
10160         * modules/rmdir-tests (Depends-on): Likewise.
10161         * modules/symlink-tests (Depends-on): Likewise.
10162         * modules/symlinkat-tests (Depends-on): Likewise.
10163         * modules/unlink-tests (Depends-on): Likewise.
10164         * modules/utimens-tests (Depends-on): Likewise.
10165         * modules/utimensat-tests (Depends-on): Likewise.
10166
10167 2010-01-31  Bruno Haible  <bruno@clisp.org>
10168
10169         Perform the same test for many <math.h> functions.
10170         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
10171         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
10172         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
10173         of gl_MATHFUNC.
10174         * modules/acos (configure.ac): Likewise.
10175         * modules/asin (configure.ac): Likewise.
10176         * modules/atan (configure.ac): Likewise.
10177         * modules/atan2 (configure.ac): Likewise.
10178         * modules/cbrt (configure.ac): Likewise.
10179         * modules/copysign (configure.ac): Likewise.
10180         * modules/cos (configure.ac): Likewise.
10181         * modules/cosh (configure.ac): Likewise.
10182         * modules/erf (configure.ac): Likewise.
10183         * modules/erfc (configure.ac): Likewise.
10184         * modules/exp (configure.ac): Likewise.
10185         * modules/fmod (configure.ac): Likewise.
10186         * modules/hypot (configure.ac): Likewise.
10187         * modules/j0 (configure.ac): Likewise.
10188         * modules/j1 (configure.ac): Likewise.
10189         * modules/jn (configure.ac): Likewise.
10190         * modules/lgamma (configure.ac): Likewise.
10191         * modules/log (configure.ac): Likewise.
10192         * modules/log10 (configure.ac): Likewise.
10193         * modules/log1p (configure.ac): Likewise.
10194         * modules/pow (configure.ac): Likewise.
10195         * modules/remainder (configure.ac): Likewise.
10196         * modules/sin (configure.ac): Likewise.
10197         * modules/sinh (configure.ac): Likewise.
10198         * modules/tan (configure.ac): Likewise.
10199         * modules/tanh (configure.ac): Likewise.
10200         * modules/y0 (configure.ac): Likewise.
10201         * modules/y1 (configure.ac): Likewise.
10202         * modules/yn (configure.ac): Likewise.
10203         Suggested by Paolo Bonzini.
10204
10205 2010-01-31  Bruno Haible  <bruno@clisp.org>
10206
10207         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
10208
10209 2010-01-31  Bruno Haible  <bruno@clisp.org>
10210
10211         Work around getdelim() bug on FreeBSD 8.0.
10212         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
10213         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
10214         not work.
10215         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
10216         is 1.
10217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
10218         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
10219         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
10220         a non-zero size.
10221         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
10222
10223 2010-01-31  Bruno Haible  <bruno@clisp.org>
10224
10225         Work around getline() bug on FreeBSD 8.0.
10226         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
10227         and a non-zero size.
10228         * tests/test-getline.c (main): Likewise.
10229         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
10230         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
10231
10232 2010-01-28  Eric Blake  <ebb9@byu.net>
10233
10234         regex: fix build failure
10235         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
10236         platforms.
10237
10238 2010-01-28  Jim Meyering  <meyering@redhat.com>
10239
10240         regex: do not ignore memory allocation failure
10241         * lib/regex_internal.c (create_cd_newstate): Detect
10242         re_node_set_init_copy failure.   Extracted from glibc commit
10243         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10244
10245         regex: sync more white-space changes from libc
10246         * lib/regex_internal.c: White-space only changes.
10247         * lib/regexec.c: Likewise.
10248
10249         regex: add many uses of __attribute_warn_unused_result__
10250         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
10251         * lib/regexec.c: Likewise.
10252         Extracted from a messy glibc commit.
10253
10254         regcomp.c: spelling and merge-artifact from glibc
10255         * lib/regcomp.c: Merge remainder of glibc's
10256         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10257
10258         regcomp.c: sync white-space changes from glibc
10259         * lib/regcomp.c: Merge to accommodate white space
10260         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10261
10262         regcomp.c: do not ignore internal return values
10263         * lib/regcomp.c: Do not ignore internal return values.
10264         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
10265         but without its white-space changes and spelling fixes.
10266
10267         regex_internal.h: define __attribute_warn_unused_result__
10268         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
10269
10270         maint: add a syntax-check rule to check for vulnerable Makefile.in
10271         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
10272
10273 2010-01-27  Jim Meyering  <meyering@redhat.com>
10274
10275         ncftpput-ftp: clean up spaces
10276         * build-aux/ncftpput-ftp: Make Copyright line consistent.
10277         Remove trailing blanks.
10278
10279 2010-01-27  Simon Josefsson  <simon@josefsson.org>
10280
10281         * build-aux/git-version-gen: Fix copyright statement.
10282         * build-aux/gnupload: Likewise.
10283         * tests/test-arcfour.c: Likewise.
10284         * tests/test-arctwo.c: Likewise.
10285         * tests/test-count-one-bits.c: Likewise.
10286         * tests/test-crc.c: Likewise.
10287         * tests/test-des.c: Likewise.
10288         * tests/test-gc-arcfour.c: Likewise.
10289         * tests/test-gc-arctwo.c: Likewise.
10290         * tests/test-gc-des.c: Likewise.
10291         * tests/test-gc-hmac-md5.c: Likewise.
10292         * tests/test-gc-hmac-sha1.c: Likewise.
10293         * tests/test-gc-md2.c: Likewise.
10294         * tests/test-gc-md4.c: Likewise.
10295         * tests/test-gc-md5.c: Likewise.
10296         * tests/test-gc-pbkdf2-sha1.c: Likewise.
10297         * tests/test-gc-rijndael.c: Likewise.
10298         * tests/test-gc-sha1.c: Likewise.
10299         * tests/test-gc.c: Likewise.
10300         * tests/test-gethostname.c: Likewise.
10301         * tests/test-gettimeofday.c: Likewise.
10302         * tests/test-hash.c: Likewise.
10303         * tests/test-hmac-md5.c: Likewise.
10304         * tests/test-hmac-sha1.c: Likewise.
10305         * tests/test-md2.c: Likewise.
10306         * tests/test-md4.c: Likewise.
10307         * tests/test-md5.c: Likewise.
10308         * tests/test-memchr.c: Likewise.
10309         * tests/test-memchr2.c: Likewise.
10310         * tests/test-memcmp.c: Likewise.
10311         * tests/test-memmem.c: Likewise.
10312         * tests/test-memrchr.c: Likewise.
10313         * tests/test-rawmemchr.c: Likewise.
10314         * tests/test-read-file.c: Likewise.
10315         * tests/test-rijndael.c: Likewise.
10316         * tests/test-sockets.c: Likewise.
10317         * tests/test-strchrnul.c: Likewise.
10318         * tests/test-strstr.c: Likewise.
10319         * tests/test-strtod.c: Likewise.
10320         * build-aux/ncftpput-ftp: Likewise.
10321
10322 2010-01-26  Eric Blake  <ebb9@byu.net>
10323
10324         ignore-value: update recommended header name
10325         * modules/ignore-value (Include): Only use <> for headers that
10326         exist in glibc.
10327
10328 2010-01-26  Jim Meyering  <meyering@redhat.com>
10329
10330         test-userspec.c: avoid compiler warnings
10331         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
10332         and "initialization discards qualifiers..." warnings.
10333         Put the first "uid" in its own scope, and make char* members "const".
10334
10335 2010-01-25  Bruno Haible  <bruno@clisp.org>
10336
10337         gnulib-tool: Make warning diagnostics consistent.
10338         * gnulib-tool (func_warning): New function.
10339         Use it everywhere where gnulib-tool produces output to stderr and it is
10340         not a fatal error.
10341
10342 2010-01-25  Bruno Haible  <bruno@clisp.org>
10343
10344         Fix test dependencies.
10345         * modules/xstrtol-tests (Depends-on): Add inttypes.
10346         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
10347
10348 2010-01-25 Pádraig Brady <P@draigBrady.com>
10349
10350         syntax-check: detect incorrect boolean macro values in config.h
10351         * modules/maintainer-makefile (configure.ac): Parameterize the location
10352         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
10353         The logic is from Eric Blake and the location indicated by Jim Meyering.
10354         Note the more natural CONFIG_HEADER name is prohibited by automake
10355         for backwards compatibility reasons.
10356         * top/maint.mk (sc_Wundef_boolean): New rule.
10357
10358 2010-01-25  Jim Meyering  <meyering@redhat.com>
10359
10360         bootstrap: detect MacOS 10.6's shasum, too
10361         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
10362         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
10363
10364 2010-01-23  Jim Meyering  <meyering@redhat.com>
10365
10366         xstrtoll: new module
10367         * modules/xstrtoll: New file.
10368         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
10369         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
10370         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
10371         ./configure fails if you use this module and lack "long long".
10372         * modules/xstrtoll-tests: New module.
10373         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
10374         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
10375         new init.sh-based test framework.
10376
10377 2010-01-24  Bruno Haible  <bruno@clisp.org>
10378
10379         Tests for module 'yn'.
10380         * modules/yn-tests: New file.
10381         * tests/test-yn.c: New file.
10382
10383         Tests for module 'y1'.
10384         * modules/y1-tests: New file.
10385         * tests/test-y1.c: New file.
10386
10387         Tests for module 'y0'.
10388         * modules/y0-tests: New file.
10389         * tests/test-y0.c: New file.
10390
10391         Tests for module 'tanh'.
10392         * modules/tanh-tests: New file.
10393         * tests/test-tanh.c: New file.
10394
10395         Tests for module 'tan'.
10396         * modules/tan-tests: New file.
10397         * tests/test-tan.c: New file.
10398
10399         Tests for module 'sqrt'.
10400         * modules/sqrt-tests: New file.
10401         * tests/test-sqrt.c: New file.
10402
10403         Tests for module 'sinh'.
10404         * modules/sinh-tests: New file.
10405         * tests/test-sinh.c: New file.
10406
10407         Tests for module 'sin'.
10408         * modules/sin-tests: New file.
10409         * tests/test-sin.c: New file.
10410
10411         Tests for module 'rint'.
10412         * modules/rint-tests: New file.
10413         * tests/test-rint.c: New file.
10414
10415         Tests for module 'remainder'.
10416         * modules/remainder-tests: New file.
10417         * tests/test-remainder.c: New file.
10418
10419         Tests for module 'pow'.
10420         * modules/pow-tests: New file.
10421         * tests/test-pow.c: New file.
10422
10423         Tests for module 'nextafter'.
10424         * modules/nextafter-tests: New file.
10425         * tests/test-nextafter.c: New file.
10426
10427         Tests for module 'modf'.
10428         * modules/modf-tests: New file.
10429         * tests/test-modf.c: New file.
10430
10431         Tests for module 'logb'.
10432         * modules/logb-tests: New file.
10433         * tests/test-logb.c: New file.
10434
10435         Tests for module 'log1p'.
10436         * modules/log1p-tests: New file.
10437         * tests/test-log1p.c: New file.
10438
10439         Tests for module 'log10'.
10440         * modules/log10-tests: New file.
10441         * tests/test-log10.c: New file.
10442
10443         Tests for module 'log'.
10444         * modules/log-tests: New file.
10445         * tests/test-log.c: New file.
10446
10447         Tests for module 'lgamma'.
10448         * modules/lgamma-tests: New file.
10449         * tests/test-lgamma.c: New file.
10450
10451         Tests for module 'ldexp'.
10452         * modules/ldexp-tests: New file.
10453         * tests/test-ldexp.c: New file.
10454
10455         Tests for module 'jn'.
10456         * modules/jn-tests: New file.
10457         * tests/test-jn.c: New file.
10458
10459         Tests for module 'j1'.
10460         * modules/j1-tests: New file.
10461         * tests/test-j1.c: New file.
10462
10463         Tests for module 'j0'.
10464         * modules/j0-tests: New file.
10465         * tests/test-j0.c: New file.
10466
10467         Tests for module 'hypot'.
10468         * modules/hypot-tests: New file.
10469         * tests/test-hypot.c: New file.
10470
10471         Tests for module 'fmod'.
10472         * modules/fmod-tests: New file.
10473         * tests/test-fmod.c: New file.
10474
10475         Tests for module 'fabs'.
10476         * modules/fabs-tests: New file.
10477         * tests/test-fabs.c: New file.
10478
10479         Tests for module 'exp'.
10480         * modules/exp-tests: New file.
10481         * tests/test-exp.c: New file.
10482
10483         Tests for module 'erfc'.
10484         * modules/erfc-tests: New file.
10485         * tests/test-erfc.c: New file.
10486
10487         Tests for module 'erf'.
10488         * modules/erf-tests: New file.
10489         * tests/test-erf.c: New file.
10490
10491         Tests for module 'cosh'.
10492         * modules/cosh-tests: New file.
10493         * tests/test-cosh.c: New file.
10494
10495         Tests for module 'cos'.
10496         * modules/cos-tests: New file.
10497         * tests/test-cos.c: New file.
10498
10499         Tests for module 'copysign'.
10500         * modules/copysign-tests: New file.
10501         * tests/test-copysign.c: New file.
10502
10503         Tests for module 'cbrt'.
10504         * modules/cbrt-tests: New file.
10505         * tests/test-cbrt.c: New file.
10506
10507         Tests for module 'atan2'.
10508         * modules/atan2-tests: New file.
10509         * tests/test-atan2.c: New file.
10510
10511         Tests for module 'atan'.
10512         * modules/atan-tests: New file.
10513         * tests/test-atan.c: New file.
10514
10515         Tests for module 'asin'.
10516         * modules/asin-tests: New file.
10517         * tests/test-asin.c: New file.
10518
10519         Tests for module 'acos'.
10520         * modules/acos-tests: New file.
10521         * tests/test-acos.c: New file.
10522
10523 2010-01-24  Bruno Haible  <bruno@clisp.org>
10524
10525         Fix tests for common <math.h> functions.
10526         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
10527         code snippet that references the function pointer, rather than merely
10528         calling the function. Substitute the FUNC_LIBM variable.
10529         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
10530         * modules/acos (configure.ac): Likewise.
10531         * modules/asin (configure.ac): Likewise.
10532         * modules/atan (configure.ac): Likewise.
10533         * modules/atan2 (configure.ac): Likewise.
10534         * modules/cbrt (configure.ac): Likewise.
10535         * modules/copysign (configure.ac): Likewise.
10536         * modules/cos (configure.ac): Likewise.
10537         * modules/cosh (configure.ac): Likewise.
10538         * modules/erf (configure.ac): Likewise.
10539         * modules/erfc (configure.ac): Likewise.
10540         * modules/exp (configure.ac): Likewise.
10541         * modules/fabs (configure.ac): Likewise.
10542         * modules/fmod (configure.ac): Likewise.
10543         * modules/hypot (configure.ac): Likewise.
10544         * modules/j0 (configure.ac): Likewise.
10545         * modules/j1 (configure.ac): Likewise.
10546         * modules/jn (configure.ac): Likewise.
10547         * modules/ldexp (configure.ac): Likewise.
10548         * modules/lgamma (configure.ac): Likewise.
10549         * modules/log (configure.ac): Likewise.
10550         * modules/log10 (configure.ac): Likewise.
10551         * modules/log1p (configure.ac): Likewise.
10552         * modules/logb (configure.ac): Likewise.
10553         * modules/modf (configure.ac): Likewise.
10554         * modules/nextafter (configure.ac): Likewise.
10555         * modules/pow (configure.ac): Likewise.
10556         * modules/remainder (configure.ac): Likewise.
10557         * modules/rint (configure.ac): Likewise.
10558         * modules/sin (configure.ac): Likewise.
10559         * modules/sinh (configure.ac): Likewise.
10560         * modules/tan (configure.ac): Likewise.
10561         * modules/tanh (configure.ac): Likewise.
10562         * modules/y0 (configure.ac): Likewise.
10563         * modules/y1 (configure.ac): Likewise.
10564         * modules/yn (configure.ac): Likewise.
10565
10566 2010-01-24  Bruno Haible  <bruno@clisp.org>
10567
10568         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
10569         * tests/test-acosl.c (x): New variable.
10570         (main): Store argument in x and fetch it from x.
10571         * tests/test-asinl.c (x): New variable.
10572         (main): Store argument in x and fetch it from x.
10573         * tests/test-atanl.c (x): New variable.
10574         (main): Store argument in x and fetch it from x.
10575         * tests/test-cosl.c (x): New variable.
10576         (main): Store argument in x and fetch it from x.
10577         * tests/test-expl.c (x): New variable.
10578         (main): Store argument in x and fetch it from x.
10579         * tests/test-logl.c (x): New variable.
10580         (main): Store argument in x and fetch it from x.
10581         * tests/test-sinl.c (x): New variable.
10582         (main): Store argument in x and fetch it from x.
10583         * tests/test-sqrtl.c (x): New variable.
10584         (main): Store argument in x and fetch it from x.
10585         * tests/test-tanl.c (x): New variable.
10586         (main): Store argument in x and fetch it from x.
10587
10588 2010-01-24  Bruno Haible  <bruno@clisp.org>
10589
10590         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
10591         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
10592         assignments to the initial TESTS_ENVIRONMENT.
10593         * doc/gnulib.texi (Unit test modules): Document it.
10594         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
10595         TESTS_ENVIRONMENT.
10596         * modules/btowc-tests (Makefile.am): Likewise.
10597         * modules/c-stack-tests (Makefile.am): Likewise.
10598         * modules/c-strcase-tests (Makefile.am): Likewise.
10599         * modules/copy-file-tests (Makefile.am): Likewise.
10600         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10601         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10602         * modules/mbrtowc-tests (Makefile.am): Likewise.
10603         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10604         * modules/mbscasestr-tests (Makefile.am): Likewise.
10605         * modules/mbschr-tests (Makefile.am): Likewise.
10606         * modules/mbscspn-tests (Makefile.am): Likewise.
10607         * modules/mbsinit-tests (Makefile.am): Likewise.
10608         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10609         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10610         * modules/mbspbrk-tests (Makefile.am): Likewise.
10611         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10612         * modules/mbsrchr-tests (Makefile.am): Likewise.
10613         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10614         * modules/mbsspn-tests (Makefile.am): Likewise.
10615         * modules/mbsstr-tests (Makefile.am): Likewise.
10616         * modules/nl_langinfo-tests (Makefile.am): Likewise.
10617         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
10618         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10619         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10620         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10621         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10622         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
10623         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10624         * modules/wcrtomb-tests (Makefile.am): Likewise.
10625         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
10626         * modules/wcsrtombs-tests (Makefile.am): Likewise.
10627         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
10628         assignments from TESTS_ENVIRONMENT.
10629         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
10630         augmentation.
10631         * modules/argp-version-etc-tests (Makefile.am): Likewise.
10632         * modules/atexit-tests (Makefile.am): Likewise.
10633         * modules/binary-io-tests (Makefile.am): Likewise.
10634         * modules/closein-tests (Makefile.am): Likewise.
10635         * modules/dprintf-posix-tests (Makefile.am): Likewise.
10636         * modules/exclude-tests (Makefile.am): Likewise.
10637         * modules/fflush-tests (Makefile.am): Likewise.
10638         * modules/fpending-tests (Makefile.am): Likewise.
10639         * modules/fprintf-posix-tests (Makefile.am): Likewise.
10640         * modules/freadahead-tests (Makefile.am): Likewise.
10641         * modules/freadptr-tests (Makefile.am): Likewise.
10642         * modules/freadseek-tests (Makefile.am): Likewise.
10643         * modules/fseek-tests (Makefile.am): Likewise.
10644         * modules/fseeko-tests (Makefile.am): Likewise.
10645         * modules/ftell-tests (Makefile.am): Likewise.
10646         * modules/ftello-tests (Makefile.am): Likewise.
10647         * modules/idpriv-drop-tests (Makefile.am): Likewise.
10648         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
10649         * modules/lseek-tests (Makefile.am): Likewise.
10650         * modules/parse-duration-tests (Makefile.am): Likewise.
10651         * modules/perror-tests (Makefile.am): Likewise.
10652         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
10653         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
10654         * modules/pipe-tests (Makefile.am): Likewise.
10655         * modules/pread-tests (Makefile.am): Likewise.
10656         * modules/printf-posix-tests (Makefile.am): Likewise.
10657         * modules/select-tests (Makefile.am): Likewise.
10658         * modules/sigpipe-tests (Makefile.am): Likewise.
10659         * modules/tsearch-tests (Makefile.am): Likewise.
10660         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
10661         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
10662         * modules/uniname/uniname-tests (Makefile.am): Likewise.
10663         * modules/uniwidth/width-tests (Makefile.am): Likewise.
10664         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
10665         * modules/version-etc-tests (Makefile.am): Likewise.
10666         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
10667         * modules/vprintf-posix-tests (Makefile.am): Likewise.
10668         * modules/xalloc-die-tests (Makefile.am): Likewise.
10669         * modules/xprintf-posix-tests (Makefile.am): Likewise.
10670         * modules/xstrtoimax-tests (Makefile.am): Likewise.
10671         * modules/xstrtol-tests (Makefile.am): Likewise.
10672         * modules/xstrtoumax-tests (Makefile.am): Likewise.
10673         * modules/yesno-tests (Makefile.am): Likewise.
10674         Suggested by Jim Meyering.
10675
10676 2010-01-24  Bruno Haible  <bruno@clisp.org>
10677
10678         More documentation.
10679         * doc/gnulib.texi (Writing modules): New chapter.
10680         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
10681         the new chapter.
10682
10683 2010-01-24  Jim Meyering  <meyering@redhat.com>
10684
10685         maint.mk: do not prepend "./" after filtering
10686         * top/maint.mk (_prepend_srcdir_prefix): New variable
10687         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
10688         "./" when $(srcdir) is ".".
10689
10690         define STREQ(a,b) consistently, removing useless parentheses
10691         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
10692         since the only risk is that "a" or "b" contains an unparenthesized
10693         comma, but if either did that, STREQ would have 3 or more arguments.
10694         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
10695         * lib/fts.c (STREQ): Remove unnecessary parentheses.
10696         * lib/hash-triple.c (STREQ): Likewise.
10697         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
10698         * lib/getugroups.c (STREQ): Likewise.
10699
10700 2010-01-23  Jim Meyering  <meyering@redhat.com>
10701
10702         maint.mk: fix syntax-check in a non-srcdir build directory
10703         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
10704         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
10705
10706 2010-01-22  Jim Meyering  <meyering@redhat.com>
10707
10708         userspec: add unit tests
10709         * tests/test-userspec.c: New file.
10710         * modules/userspec-tests: Likewise.
10711
10712 2010-01-21  Jim Meyering  <meyering@redhat.com>
10713
10714         maint.mk: handle source file names containing "." robustly
10715         * top/maint.mk (_dot_escaped_srcdir): Define.
10716         (VC_LIST): Use it in LHS of sed substitution.
10717
10718 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
10719
10720         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
10721         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
10722         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
10723         from a non-srcdir build.
10724
10725 2010-01-20  Eric Blake  <ebb9@byu.net>
10726
10727         warn-on-use: use instead of link-warning
10728         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
10729         * modules/unistd (Depends-on, Makefile.am): Likewise.
10730         * modules/arpa_inet (Depends-on): Replace link-warning with
10731         warn-on-use.
10732         (Makefile.am): Update rules accordingly.
10733         * modules/ctype (Depends-on, Makefile.am): Likewise.
10734         * modules/dirent (Depends-on, Makefile.am): Likewise.
10735         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
10736         * modules/inttypes (Depends-on, Makefile.am): Likewise.
10737         * modules/langinfo (Depends-on, Makefile.am): Likewise.
10738         * modules/locale (Depends-on, Makefile.am): Likewise.
10739         * modules/math (Depends-on, Makefile.am): Likewise.
10740         * modules/search (Depends-on, Makefile.am): Likewise.
10741         * modules/signal (Depends-on, Makefile.am): Likewise.
10742         * modules/spawn (Depends-on, Makefile.am): Likewise.
10743         * modules/stdlib (Depends-on, Makefile.am): Likewise.
10744         * modules/string (Depends-on, Makefile.am): Likewise.
10745         * modules/strings (Depends-on, Makefile.am): Likewise.
10746         * modules/sys_file (Depends-on, Makefile.am): Likewise.
10747         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
10748         * modules/sys_select (Depends-on, Makefile.am): Likewise.
10749         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
10750         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
10751         * modules/sys_times (Depends-on, Makefile.am): Likewise.
10752         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
10753         * modules/wchar (Depends-on, Makefile.am): Likewise.
10754         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
10755         should be poisoned.
10756         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
10757         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
10758         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
10759         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10760         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10761         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10762         * m4/math_h.m4 (gl_MATH_H): Likewise.
10763         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10764         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10765         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10766         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
10767         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
10768         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
10769         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10770         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
10771         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10772         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10773         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10774         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10775         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10776         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10777         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10778         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10779         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
10780         GL_LINK_WARNING.
10781         * lib/ctype.in.h: Likewise.
10782         * lib/dirent.in.h: Likewise.
10783         * lib/fcntl.in.h: Likewise.
10784         * lib/inttypes.in.h: Likewise.
10785         * lib/langinfo.in.h: Likewise.
10786         * lib/locale.in.h: Likewise.
10787         * lib/math.in.h: Likewise.
10788         * lib/search.in.h: Likewise.
10789         * lib/signal.in.h: Likewise.
10790         * lib/spawn.in.h: Likewise.
10791         * lib/stdio.in.h: Likewise.
10792         * lib/stdlib.in.h: Likewise.
10793         * lib/string.in.h: Likewise.
10794         * lib/strings.in.h: Likewise.
10795         * lib/sys_file.in.h: Likewise.
10796         * lib/sys_ioctl.in.h: Likewise.
10797         * lib/sys_select.in.h: Likewise.
10798         * lib/sys_socket.in.h: Likewise.
10799         * lib/sys_stat.in.h: Likewise.
10800         * lib/sys_times.in.h: Likewise.
10801         * lib/sys_utsname.in.h: Likewise.
10802         * lib/unistd.in.h: Likewise.
10803         * lib/wchar.in.h: Likewise.
10804
10805 2010-01-20  Bruno Haible  <bruno@clisp.org>
10806
10807         Avoid duplicate -lm.
10808         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
10809         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
10810         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
10811         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
10812         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
10813         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
10814         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
10815         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
10816         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
10817         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
10818         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
10819         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10820         Reported by Paolo Bonzini.
10821
10822 2010-01-19  Bruno Haible  <bruno@clisp.org>
10823
10824         langinfo, nl_langinfo: Relicense under LGPLv2+.
10825         * modules/langinfo (License): Change to LGPLv2+.
10826         * modules/nl_langinfo (License): Likewise.
10827         Patch by David Lutterkort <lutter@redhat.com>.
10828
10829 2010-01-19  Bruno Haible  <bruno@clisp.org>
10830
10831         Avoid compilation error with cc on OSF/1 5.1.
10832         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
10833         statement, not before.
10834         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10835
10836 2010-01-18  Bruno Haible  <bruno@clisp.org>
10837
10838         Avoid a link error due to the __printf__ symbol.
10839         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
10840         and 2.6.x.
10841         (__format__, __printf__): Remove definitions.
10842         * lib/argp-fmtstream.h: Likewise.
10843         * lib/argp.h: Likewise.
10844         * lib/error.h: Likewise.
10845         * lib/vasnprintf.h: Likewise.
10846         * lib/xprintf.h: Likewise.
10847         * lib/xvasprintf.h: Likewise.
10848         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10849
10850 2010-01-18  Bruno Haible  <bruno@clisp.org>
10851
10852         Tests for module 'tanl'.
10853         * modules/tanl-tests: New file.
10854         * tests/test-tanl.c: New file.
10855
10856         Tests for module 'sqrtl'.
10857         * modules/sqrtl-tests: New file.
10858         * tests/test-sqrtl.c: New file.
10859
10860         Tests for module 'sinl'.
10861         * modules/sinl-tests: New file.
10862         * tests/test-sinl.c: New file.
10863
10864         Tests for module 'logl'.
10865         * modules/logl-tests: New file.
10866         * tests/test-logl.c: New file.
10867
10868         Tests for module 'expl'.
10869         * modules/expl-tests: New file.
10870         * tests/test-expl.c: New file.
10871
10872         Tests for module 'cosl'.
10873         * modules/cosl-tests: New file.
10874         * tests/test-cosl.c: New file.
10875
10876         Tests for module 'atanl'.
10877         * modules/atanl-tests: New file.
10878         * tests/test-atanl.c: New file.
10879
10880         Tests for module 'asinl'.
10881         * modules/asinl-tests: New file.
10882         * tests/test-asinl.c: New file.
10883
10884         Tests for module 'acosl'.
10885         * modules/acosl-tests: New file.
10886         * tests/test-acosl.c: New file.
10887
10888         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
10889         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
10890         tanl): Use the standard gnulib idiom.
10891         * lib/cosl.c: Don't include trigl.c and sincosl.c.
10892         * lib/sinl.c: Likewise.
10893         * lib/tanl.c: Don't include trigl.c.
10894         (kernel_tanl): Make static.
10895         * lib/sincosl.c: Include trigl.h first.
10896         * lib/trigl.c: Likewise.
10897         * m4/acosl.m4: New file.
10898         * m4/asinl.m4: New file.
10899         * m4/atanl.m4: New file.
10900         * m4/cosl.m4: New file.
10901         * m4/expl.m4: New file.
10902         * m4/logl.m4: New file.
10903         * m4/sinl.m4: New file.
10904         * m4/sqrtl.m4: New file.
10905         * m4/tanl.m4: New file.
10906         * m4/mathl.m4: Remove file.
10907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
10908         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
10909         Don't initialize GNULIB_MATHL.
10910         * modules/acosl: New file.
10911         * modules/asinl: New file.
10912         * modules/atanl: New file.
10913         * modules/cosl: New file.
10914         * modules/expl: New file.
10915         * modules/logl: New file.
10916         * modules/sinl: New file.
10917         * modules/sqrtl: New file.
10918         * modules/tanl: New file.
10919         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
10920         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
10921         substitute GNULIB_MATHL.
10922         * modules/mathl: Rewritten.
10923         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
10924         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
10925         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
10926         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
10927         * doc/posix-functions/expl.texi: Mention the 'expl' module.
10928         * doc/posix-functions/logl.texi: Mention the 'logl' module.
10929         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
10930         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
10931         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
10932
10933 2010-01-18  Bruno Haible  <bruno@clisp.org>
10934
10935         sqrt: Make gl_FUNC_SQRT requirable.
10936         * m4/sqrt.m4: New file.
10937         * modules/sqrt (Files): Add it.
10938         (configure.ac): Invoke gl_FUNC_SQRT.
10939
10940 2010-01-18  Bruno Haible  <bruno@clisp.org>
10941
10942         New modules for common <math.h> functions.
10943         * m4/mathfunc.m4: New file.
10944         * modules/acos: New file.
10945         * modules/asin: New file.
10946         * modules/atan: New file.
10947         * modules/atan2: New file.
10948         * modules/cbrt: New file.
10949         * modules/copysign: New file.
10950         * modules/cos: New file.
10951         * modules/cosh: New file.
10952         * modules/erf: New file.
10953         * modules/erfc: New file.
10954         * modules/exp: New file.
10955         * modules/fabs: New file.
10956         * modules/fmod: New file.
10957         * modules/hypot: New file.
10958         * modules/j0: New file.
10959         * modules/j1: New file.
10960         * modules/jn: New file.
10961         * modules/ldexp: New file.
10962         * modules/lgamma: New file.
10963         * modules/log: New file.
10964         * modules/log10: New file.
10965         * modules/log1p: New file.
10966         * modules/logb: New file.
10967         * modules/modf: New file.
10968         * modules/nextafter: New file.
10969         * modules/pow: New file.
10970         * modules/remainder: New file.
10971         * modules/rint: New file.
10972         * modules/sin: New file.
10973         * modules/sinh: New file.
10974         * modules/sqrt: New file.
10975         * modules/tan: New file.
10976         * modules/tanh: New file.
10977         * modules/y0: New file.
10978         * modules/y1: New file.
10979         * modules/yn: New file.
10980         * doc/posix-functions/acos.texi: Mention the 'acos' module.
10981         * doc/posix-functions/asin.texi: Mention the 'asin' module.
10982         * doc/posix-functions/atan.texi: Mention the 'atan' module.
10983         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
10984         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
10985         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
10986         * doc/posix-functions/cos.texi: Mention the 'cos' module.
10987         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
10988         * doc/posix-functions/erf.texi: Mention the 'erf' module.
10989         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
10990         * doc/posix-functions/exp.texi: Mention the 'exp' module.
10991         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
10992         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
10993         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
10994         * doc/posix-functions/j0.texi: Mention the 'j0' module.
10995         * doc/posix-functions/j1.texi: Mention the 'j1' module.
10996         * doc/posix-functions/jn.texi: Mention the 'jn' module.
10997         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
10998         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
10999         * doc/posix-functions/log.texi: Mention the 'log' module.
11000         * doc/posix-functions/log10.texi: Mention the 'log10' module.
11001         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
11002         * doc/posix-functions/logb.texi: Mention the 'logb' module.
11003         * doc/posix-functions/modf.texi: Mention the 'modf' module.
11004         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
11005         * doc/posix-functions/pow.texi: Mention the 'pow' module.
11006         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
11007         * doc/posix-functions/rint.texi: Mention the 'rint' module.
11008         * doc/posix-functions/sin.texi: Mention the 'sin' module.
11009         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
11010         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
11011         * doc/posix-functions/tan.texi: Mention the 'tan' module.
11012         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
11013         * doc/posix-functions/y0.texi: Mention the 'y0' module.
11014         * doc/posix-functions/y1.texi: Mention the 'y1' module.
11015         * doc/posix-functions/yn.texi: Mention the 'yn' module.
11016
11017 2010-01-18  Jim Meyering  <meyering@redhat.com>
11018
11019         ignore-value: relax license to LGPLv2+
11020         * modules/ignore-value (License): Relax to LGPLv2+.
11021
11022         getdate: don't leak when TZ contains two or more '"'s
11023         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
11024         double quote in TZ after the first one.
11025
11026         readtokens: do not leak internal token_lengths buffer
11027         * lib/readtokens.c (readtokens): Free the local, lengths,
11028         when the supplied "token_lengths" parameter is NULL.
11029
11030 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11031
11032         Fix a couple of missing LIBTHREAD link failures on AIX.
11033         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
11034         $(LIBTHREAD).
11035         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
11036
11037         Link test-poll against INET_PTON_LIB.
11038         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
11039         for inet_pton on Solaris 10.
11040
11041 2010-01-17  Bruno Haible  <bruno@clisp.org>
11042
11043         unistdio/*-sprintf: Fix typo in module description.
11044         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
11045         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
11046         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
11047         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
11048         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
11049         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
11050         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
11051         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11052
11053 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11054
11055         gnulib-tool: fix filelist for AIX, HP-UX ksh.
11056         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
11057         variables in shell case patterns, for AIX and HP-UX ksh.
11058
11059         Split large sed scripts, for HP-UX sed.
11060         * modules/stdio: Split sed scripts around 50 sed commands,
11061         to avoid HP-UX limit of 99 commands, in the near future.
11062         * modules/string: Likewise.
11063         * modules/unistd: Likewise.
11064
11065         gnulib-tool: avoid writing in the current directory.
11066         * gnulib-tool (func_emit_lib_Makefile_am)
11067         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
11068         not in the current directory, so concurrent gnulib-tool
11069         instances do not interfere.
11070
11071 2010-01-16  Jim Meyering  <meyering@redhat.com>
11072
11073         doc: update users.txt
11074         * users.txt: Add grep.
11075         (diffutils, gzip): Update URLs.
11076
11077 2010-01-12  Bruno Haible  <bruno@clisp.org>
11078
11079         posix_spawn: Avoid test failure on Cygwin.
11080         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
11081         characters.
11082         Reported by Simon Josefsson.
11083
11084 2010-01-12  Bruno Haible  <bruno@clisp.org>
11085
11086         * tests/test-cond.c (main): When skipping the test, show the reason.
11087
11088 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11089
11090         * lib/striconv.c (str_cd_iconv): Avoid if before free.
11091
11092 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11093
11094         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
11095         VC_LIST_ALWAYS_EXCLUDE_REGEX.
11096
11097 2010-01-12  Eric Blake  <ebb9@byu.net>
11098
11099         build: guarantee AS_VAR_IF
11100         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
11101         (gl_AS_VAR_IF): Move...
11102         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
11103         Reported by Simon Josefsson.
11104
11105 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11106
11107         * lib/stdio.in.h: Fix typo.
11108
11109 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11110
11111         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
11112         libgpg-error.
11113
11114 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11115
11116         * tests/test-xalloc-die.sh: Use $EXEEXT.
11117
11118 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11119             Bruno Haible  <bruno@clisp.org>
11120
11121         getlogin, getlogin_r: Avoid test failure.
11122         * tests/test-getlogin.c: Include <stdio.h>.
11123         (main): Skip the test when the function fails because stdin is not a
11124         tty.
11125         * tests/test-getlogin_r.c: Include <stdio.h>.
11126         (main): Skip the test when the function fails because stdin is not a
11127         tty.
11128
11129 2010-01-11  Eric Blake  <ebb9@byu.net>
11130
11131         tests: avoid more large file warnings
11132         * tests/test-fflush.c: Avoid warning about ftell use.
11133         * tests/test-fseek.c: Avoid warning about fseek use.
11134
11135 2010-01-10  Bruno Haible  <bruno@clisp.org>
11136
11137         nproc: Work better on Linux when /proc and /sys are not mounted.
11138         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
11139         as lower bound when, on glibc/Linux systems,
11140         sysconf (_SC_NPROCESSORS_CONF) returns 1.
11141         Suggested by Pádraig Brady <P@draigbrady.com>.
11142         Reported by Dmitry V. Levin <ldv@altlinux.org>.
11143
11144         nproc: Refactor.
11145         * lib/nproc.c (num_processors_via_affinity_mask): New function,
11146         extracted from num_processors.
11147         (num_processors): Call it.
11148
11149 2010-01-11  Jim Meyering  <meyering@redhat.com>
11150
11151         utimecmp: avoid new warning from upcoming gcc-4.5.0
11152         * lib/utimecmp.c (BILLION): Define using #define rather than an
11153         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
11154
11155 2010-01-11  Eric Blake  <ebb9@byu.net>
11156
11157         math: add portability warnings for classification macros
11158         * modules/math (Depends-on): Add warn-on-use.
11159         (Makefile.am): Provide new substitutions.
11160         * m4/math_h.m4 (gl_MATH_H): Require inline.
11161         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
11162         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
11163         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
11164         implement warnings.
11165
11166         unistd: warn on use of environ without module
11167         * modules/unistd (Depends-on): Add warn-on-use.
11168         (Makefile.am): Provide new substitutions.
11169         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
11170         * lib/unistd.in.h (environ): Wrap with a warning helper function.
11171
11172         stdio: warn on suspicious uses
11173         * modules/stdio (Depends-on): Add warn-on-use.
11174         (Makefile.am): Provide new substitutions.
11175         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
11176         fseeko.
11177         * lib/stdio.in.h (gets): Always warn on use.
11178         (fseek, ftell): Adjust when warnings are issued, and honor
11179         _GL_NO_LARGE_FILES as a way to silence the warning.
11180         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
11181         any warning about large file offsets.
11182         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
11183         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
11184         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
11185         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
11186         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
11187         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
11188         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
11189         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
11190
11191         warn-on-use: new module
11192         * modules/warn-on-use: New file.
11193         * build-aux/warn-on-use.h: Likewise.
11194         * m4/warn-on-use.m4: Likewise.
11195         * MODULES.html.sh (Support for building): Mention it.
11196
11197 2010-01-10  Bruno Haible  <bruno@clisp.org>
11198
11199         Tests for module 'unistr/u32-strdup'.
11200         * modules/unistr/u32-strdup-tests: New file.
11201         * tests/unistr/test-u32-strdup.c: New file.
11202
11203         Tests for module 'unistr/u16-strdup'.
11204         * modules/unistr/u16-strdup-tests: New file.
11205         * tests/unistr/test-u16-strdup.c: New file.
11206
11207         Tests for module 'unistr/u8-strdup'.
11208         * modules/unistr/u8-strdup-tests: New file.
11209         * tests/unistr/test-u8-strdup.c: New file.
11210         * tests/unistr/test-strdup.h: New file.
11211
11212         Tests for module 'unistr/u32-strncmp'.
11213         * modules/unistr/u32-strncmp-tests: New file.
11214         * tests/unistr/test-u32-strncmp.c: New file.
11215
11216         Tests for module 'unistr/u16-strncmp'.
11217         * modules/unistr/u16-strncmp-tests: New file.
11218         * tests/unistr/test-u16-strncmp.c: New file.
11219
11220         Tests for module 'unistr/u8-strncmp'.
11221         * modules/unistr/u8-strncmp-tests: New file.
11222         * tests/unistr/test-u8-strncmp.c: New file.
11223         * tests/unistr/test-strncmp.h: New file.
11224
11225         Tests for module 'unistr/u32-strcoll'.
11226         * modules/unistr/u32-strcoll-tests: New file.
11227         * tests/unistr/test-u32-strcoll.c: New file.
11228
11229         Tests for module 'unistr/u16-strcoll'.
11230         * modules/unistr/u16-strcoll-tests: New file.
11231         * tests/unistr/test-u16-strcoll.c: New file.
11232
11233         Tests for module 'unistr/u8-strcoll'.
11234         * modules/unistr/u8-strcoll-tests: New file.
11235         * tests/unistr/test-u8-strcoll.c: New file.
11236
11237         Tests for module 'unistr/u32-strcmp'.
11238         * modules/unistr/u32-strcmp-tests: New file.
11239         * tests/unistr/test-u32-strcmp.c: New file.
11240         * tests/unistr/test-u32-strcmp.h: New file.
11241
11242         Tests for module 'unistr/u16-strcmp'.
11243         * modules/unistr/u16-strcmp-tests: New file.
11244         * tests/unistr/test-u16-strcmp.c: New file.
11245         * tests/unistr/test-u16-strcmp.h: New file.
11246
11247         Tests for module 'unistr/u8-strcmp'.
11248         * modules/unistr/u8-strcmp-tests: New file.
11249         * tests/unistr/test-u8-strcmp.c: New file.
11250         * tests/unistr/test-u8-strcmp.h: New file.
11251         * tests/unistr/test-strcmp.h: New file.
11252
11253         Tests for module 'unistr/u32-strncat'.
11254         * modules/unistr/u32-strncat-tests: New file.
11255         * tests/unistr/test-u32-strncat.c: New file.
11256
11257         Tests for module 'unistr/u16-strncat'.
11258         * modules/unistr/u16-strncat-tests: New file.
11259         * tests/unistr/test-u16-strncat.c: New file.
11260
11261         Tests for module 'unistr/u8-strncat'.
11262         * modules/unistr/u8-strncat-tests: New file.
11263         * tests/unistr/test-u8-strncat.c: New file.
11264         * tests/unistr/test-strncat.h: New file.
11265
11266         Tests for module 'unistr/u32-strcat'.
11267         * modules/unistr/u32-strcat-tests: New file.
11268         * tests/unistr/test-u32-strcat.c: New file.
11269
11270         Tests for module 'unistr/u16-strcat'.
11271         * modules/unistr/u16-strcat-tests: New file.
11272         * tests/unistr/test-u16-strcat.c: New file.
11273
11274         Tests for module 'unistr/u8-strcat'.
11275         * modules/unistr/u8-strcat-tests: New file.
11276         * tests/unistr/test-u8-strcat.c: New file.
11277         * tests/unistr/test-strcat.h: New file.
11278
11279         Tests for module 'unistr/u32-stpncpy'.
11280         * modules/unistr/u32-stpncpy-tests: New file.
11281         * tests/unistr/test-u32-stpncpy.c: New file.
11282
11283         Tests for module 'unistr/u16-stpncpy'.
11284         * modules/unistr/u16-stpncpy-tests: New file.
11285         * tests/unistr/test-u16-stpncpy.c: New file.
11286
11287         Tests for module 'unistr/u8-stpncpy'.
11288         * modules/unistr/u8-stpncpy-tests: New file.
11289         * tests/unistr/test-u8-stpncpy.c: New file.
11290         * tests/unistr/test-stpncpy.h: New file.
11291
11292         Tests for module 'unistr/u32-strncpy'.
11293         * modules/unistr/u32-strncpy-tests: New file.
11294         * tests/unistr/test-u32-strncpy.c: New file.
11295
11296         Tests for module 'unistr/u16-strncpy'.
11297         * modules/unistr/u16-strncpy-tests: New file.
11298         * tests/unistr/test-u16-strncpy.c: New file.
11299
11300         Tests for module 'unistr/u8-strncpy'.
11301         * modules/unistr/u8-strncpy-tests: New file.
11302         * tests/unistr/test-u8-strncpy.c: New file.
11303         * tests/unistr/test-strncpy.h: New file.
11304
11305         Tests for module 'unistr/u32-stpcpy'.
11306         * modules/unistr/u32-stpcpy-tests: New file.
11307         * tests/unistr/test-u32-stpcpy.c: New file.
11308
11309         Tests for module 'unistr/u16-stpcpy'.
11310         * modules/unistr/u16-stpcpy-tests: New file.
11311         * tests/unistr/test-u16-stpcpy.c: New file.
11312
11313         Tests for module 'unistr/u8-stpcpy'.
11314         * modules/unistr/u8-stpcpy-tests: New file.
11315         * tests/unistr/test-u8-stpcpy.c: New file.
11316         * tests/unistr/test-stpcpy.h: New file.
11317
11318         Tests for module 'unistr/u32-strcpy'.
11319         * modules/unistr/u32-strcpy-tests: New file.
11320         * tests/unistr/test-u32-strcpy.c: New file.
11321
11322         Tests for module 'unistr/u16-strcpy'.
11323         * modules/unistr/u16-strcpy-tests: New file.
11324         * tests/unistr/test-u16-strcpy.c: New file.
11325
11326         Tests for module 'unistr/u8-strcpy'.
11327         * modules/unistr/u8-strcpy-tests: New file.
11328         * tests/unistr/test-u8-strcpy.c: New file.
11329         * tests/unistr/test-strcpy.h: New file.
11330
11331         Tests for module 'unistr/u32-strnlen'.
11332         * modules/unistr/u32-strnlen-tests: New file.
11333         * tests/unistr/test-u32-strnlen.c: New file.
11334
11335         Tests for module 'unistr/u16-strnlen'.
11336         * modules/unistr/u16-strnlen-tests: New file.
11337         * tests/unistr/test-u16-strnlen.c: New file.
11338
11339         Tests for module 'unistr/u8-strnlen'.
11340         * modules/unistr/u8-strnlen-tests: New file.
11341         * tests/unistr/test-u8-strnlen.c: New file.
11342         * tests/unistr/test-strnlen.h: New file.
11343
11344         Tests for module 'unistr/u32-strlen'.
11345         * modules/unistr/u32-strlen-tests: New file.
11346         * tests/unistr/test-u32-strlen.c: New file.
11347
11348         Tests for module 'unistr/u16-strlen'.
11349         * modules/unistr/u16-strlen-tests: New file.
11350         * tests/unistr/test-u16-strlen.c: New file.
11351
11352         Tests for module 'unistr/u8-strlen'.
11353         * modules/unistr/u8-strlen-tests: New file.
11354         * tests/unistr/test-u8-strlen.c: New file.
11355
11356         Tests for module 'unistr/u32-prev'.
11357         * modules/unistr/u32-prev-tests: New file.
11358         * tests/unistr/test-u32-prev.c: New file.
11359
11360         Tests for module 'unistr/u16-prev'.
11361         * modules/unistr/u16-prev-tests: New file.
11362         * tests/unistr/test-u16-prev.c: New file.
11363
11364         Tests for module 'unistr/u8-prev'.
11365         * modules/unistr/u8-prev-tests: New file.
11366         * tests/unistr/test-u8-prev.c: New file.
11367
11368         Tests for module 'unistr/u32-next'.
11369         * modules/unistr/u32-next-tests: New file.
11370         * tests/unistr/test-u32-next.c: New file.
11371
11372         Tests for module 'unistr/u16-next'.
11373         * modules/unistr/u16-next-tests: New file.
11374         * tests/unistr/test-u16-next.c: New file.
11375
11376         Tests for module 'unistr/u8-next'.
11377         * modules/unistr/u8-next-tests: New file.
11378         * tests/unistr/test-u8-next.c: New file.
11379
11380         Tests for module 'unistr/u32-strmbtouc'.
11381         * modules/unistr/u32-strmbtouc-tests: New file.
11382         * tests/unistr/test-u32-strmbtouc.c: New file.
11383
11384         Tests for module 'unistr/u16-strmbtouc'.
11385         * modules/unistr/u16-strmbtouc-tests: New file.
11386         * tests/unistr/test-u16-strmbtouc.c: New file.
11387
11388         Tests for module 'unistr/u8-strmbtouc'.
11389         * modules/unistr/u8-strmbtouc-tests: New file.
11390         * tests/unistr/test-u8-strmbtouc.c: New file.
11391
11392         Tests for module 'unistr/u32-strmblen'.
11393         * modules/unistr/u32-strmblen-tests: New file.
11394         * tests/unistr/test-u32-strmblen.c: New file.
11395
11396         Tests for module 'unistr/u16-strmblen'.
11397         * modules/unistr/u16-strmblen-tests: New file.
11398         * tests/unistr/test-u16-strmblen.c: New file.
11399
11400         Tests for module 'unistr/u8-strmblen'.
11401         * modules/unistr/u8-strmblen-tests: New file.
11402         * tests/unistr/test-u8-strmblen.c: New file.
11403
11404         Tests for module 'unistr/u32-cpy-alloc'.
11405         * modules/unistr/u32-cpy-alloc-tests: New file.
11406         * tests/unistr/test-u32-cpy-alloc.c: New file.
11407
11408         Tests for module 'unistr/u16-cpy-alloc'.
11409         * modules/unistr/u16-cpy-alloc-tests: New file.
11410         * tests/unistr/test-u16-cpy-alloc.c: New file.
11411
11412         Tests for module 'unistr/u8-cpy-alloc'.
11413         * modules/unistr/u8-cpy-alloc-tests: New file.
11414         * tests/unistr/test-u8-cpy-alloc.c: New file.
11415         * tests/unistr/test-cpy-alloc.h: New file.
11416
11417         Tests for module 'unistr/u32-mbsnlen'.
11418         * modules/unistr/u32-mbsnlen-tests: New file.
11419         * tests/unistr/test-u32-mbsnlen.c: New file.
11420
11421         Tests for module 'unistr/u16-mbsnlen'.
11422         * modules/unistr/u16-mbsnlen-tests: New file.
11423         * tests/unistr/test-u16-mbsnlen.c: New file.
11424
11425         Tests for module 'unistr/u8-mbsnlen'.
11426         * modules/unistr/u8-mbsnlen-tests: New file.
11427         * tests/unistr/test-u8-mbsnlen.c: New file.
11428
11429         Tests for module 'unistr/u32-chr'.
11430         * modules/unistr/u32-chr-tests: New file.
11431         * tests/unistr/test-u32-chr.c: New file.
11432
11433         Tests for module 'unistr/u16-chr'.
11434         * modules/unistr/u16-chr-tests: New file.
11435         * tests/unistr/test-u16-chr.c: New file.
11436
11437         Tests for module 'unistr/u8-chr'.
11438         * modules/unistr/u8-chr-tests: New file.
11439         * tests/unistr/test-u8-chr.c: New file.
11440         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
11441
11442         Tests for module 'unistr/u32-cmp2'.
11443         * modules/unistr/u32-cmp2-tests: New file.
11444         * tests/unistr/test-u32-cmp2.c: New file.
11445
11446         Tests for module 'unistr/u16-cmp2'.
11447         * modules/unistr/u16-cmp2-tests: New file.
11448         * tests/unistr/test-u16-cmp2.c: New file.
11449
11450         Tests for module 'unistr/u8-cmp2'.
11451         * modules/unistr/u8-cmp2-tests: New file.
11452         * tests/unistr/test-u8-cmp2.c: New file.
11453         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
11454
11455         Tests for module 'unistr/u32-cmp'.
11456         * modules/unistr/u32-cmp-tests: New file.
11457         * tests/unistr/test-u32-cmp.c: New file.
11458
11459         Tests for module 'unistr/u16-cmp'.
11460         * modules/unistr/u16-cmp-tests: New file.
11461         * tests/unistr/test-u16-cmp.c: New file.
11462
11463         Tests for module 'unistr/u8-cmp'.
11464         * modules/unistr/u8-cmp-tests: New file.
11465         * tests/unistr/test-u8-cmp.c: New file.
11466         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
11467
11468         Tests for module 'unistr/u32-set'.
11469         * modules/unistr/u32-set-tests: New file.
11470         * tests/unistr/test-u32-set.c: New file.
11471
11472         Tests for module 'unistr/u16-set'.
11473         * modules/unistr/u16-set-tests: New file.
11474         * tests/unistr/test-u16-set.c: New file.
11475
11476         Tests for module 'unistr/u8-set'.
11477         * modules/unistr/u8-set-tests: New file.
11478         * tests/unistr/test-u8-set.c: New file.
11479         * tests/unistr/test-set.h: New file.
11480
11481         Tests for module 'unistr/u32-move'.
11482         * modules/unistr/u32-move-tests: New file.
11483         * tests/unistr/test-u32-move.c: New file.
11484
11485         Tests for module 'unistr/u16-move'.
11486         * modules/unistr/u16-move-tests: New file.
11487         * tests/unistr/test-u16-move.c: New file.
11488
11489         Tests for module 'unistr/u8-move'.
11490         * modules/unistr/u8-move-tests: New file.
11491         * tests/unistr/test-u8-move.c: New file.
11492         * tests/unistr/test-move.h: New file.
11493
11494         Tests for module 'unistr/u32-cpy'.
11495         * modules/unistr/u32-cpy-tests: New file.
11496         * tests/unistr/test-u32-cpy.c: New file.
11497
11498         Tests for module 'unistr/u16-cpy'.
11499         * modules/unistr/u16-cpy-tests: New file.
11500         * tests/unistr/test-u16-cpy.c: New file.
11501
11502         Tests for module 'unistr/u8-cpy'.
11503         * modules/unistr/u8-cpy-tests: New file.
11504         * tests/unistr/test-u8-cpy.c: New file.
11505         * tests/unistr/test-cpy.h: New file.
11506
11507 2010-01-09  Bruno Haible  <bruno@clisp.org>
11508
11509         Tests for module 'unistr/u32-uctomb'.
11510         * modules/unistr/u32-uctomb-tests: New file.
11511         * tests/unistr/test-u32-uctomb.c: New file.
11512
11513         Tests for module 'unistr/u16-uctomb'.
11514         * modules/unistr/u16-uctomb-tests: New file.
11515         * tests/unistr/test-u16-uctomb.c: New file.
11516
11517         Tests for module 'unistr/u8-uctomb'.
11518         * modules/unistr/u8-uctomb-tests: New file.
11519         * tests/unistr/test-u8-uctomb.c: New file.
11520
11521         Tests for module 'unistr/u32-mbtoucr'.
11522         * modules/unistr/u32-mbtoucr-tests: New file.
11523         * tests/unistr/test-u32-mbtoucr.c: New file.
11524
11525         Tests for module 'unistr/u16-mbtoucr'.
11526         * modules/unistr/u16-mbtoucr-tests: New file.
11527         * tests/unistr/test-u16-mbtoucr.c: New file.
11528
11529         Tests for module 'unistr/u8-mbtoucr'.
11530         * modules/unistr/u8-mbtoucr-tests: New file.
11531         * tests/unistr/test-u8-mbtoucr.c: New file.
11532
11533         Tests for module 'unistr/u32-mbtouc'.
11534         * modules/unistr/u32-mbtouc-tests: New file.
11535         * tests/unistr/test-u32-mbtouc.c: New file.
11536
11537         Tests for module 'unistr/u16-mbtouc'.
11538         * modules/unistr/u16-mbtouc-tests: New file.
11539         * tests/unistr/test-u16-mbtouc.c: New file.
11540
11541         Tests for module 'unistr/u8-mbtouc'.
11542         * modules/unistr/u8-mbtouc-tests: New file.
11543         * tests/unistr/test-u8-mbtouc.c: New file.
11544
11545         Tests for module 'unistr/u32-mbtouc-unsafe'.
11546         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
11547         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
11548         * tests/unistr/test-u32-mbtouc.h: New file.
11549
11550         Tests for module 'unistr/u16-mbtouc-unsafe'.
11551         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
11552         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
11553         * tests/unistr/test-u16-mbtouc.h: New file.
11554
11555         Tests for module 'unistr/u8-mbtouc-unsafe'.
11556         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
11557         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
11558         * tests/unistr/test-u8-mbtouc.h: New file.
11559
11560         Tests for module 'unistr/u32-mblen'.
11561         * modules/unistr/u32-mblen-tests: New file.
11562         * tests/unistr/test-u32-mblen.c: New file.
11563
11564         Tests for module 'unistr/u16-mblen'.
11565         * modules/unistr/u16-mblen-tests: New file.
11566         * tests/unistr/test-u16-mblen.c: New file.
11567
11568         Tests for module 'unistr/u8-mblen'.
11569         * modules/unistr/u8-mblen-tests: New file.
11570         * tests/unistr/test-u8-mblen.c: New file.
11571
11572         Tests for module 'unistr/u32-to-u16'.
11573         * modules/unistr/u32-to-u16-tests: New file.
11574         * tests/unistr/test-u32-to-u16.c: New file.
11575
11576         Tests for module 'unistr/u32-to-u8'.
11577         * modules/unistr/u32-to-u8-tests: New file.
11578         * tests/unistr/test-u32-to-u8.c: New file.
11579
11580         Tests for module 'unistr/u16-to-u32'.
11581         * modules/unistr/u16-to-u32-tests: New file.
11582         * tests/unistr/test-u16-to-u32.c: New file.
11583
11584         Tests for module 'unistr/u16-to-u8'.
11585         * modules/unistr/u16-to-u8-tests: New file.
11586         * tests/unistr/test-u16-to-u8.c: New file.
11587
11588         Tests for module 'unistr/u8-to-u32'.
11589         * modules/unistr/u8-to-u32-tests: New file.
11590         * tests/unistr/test-u8-to-u32.c: New file.
11591
11592         Tests for module 'unistr/u8-to-u16'.
11593         * modules/unistr/u8-to-u16-tests: New file.
11594         * tests/unistr/test-u8-to-u16.c: New file.
11595
11596         Tests for module 'unistr/u32-check'.
11597         * modules/unistr/u32-check-tests: New file.
11598         * tests/unistr/test-u32-check.c: New file.
11599
11600         Tests for module 'unistr/u16-check'.
11601         * modules/unistr/u16-check-tests: New file.
11602         * tests/unistr/test-u16-check.c: New file.
11603
11604         Tests for module 'unistr/u8-check'.
11605         * modules/unistr/u8-check-tests: New file.
11606         * tests/unistr/test-u8-check.c: New file.
11607
11608         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
11609         (category_equals): New function.
11610         (main): Add more tests.
11611         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
11612
11613         * tests/unictype/test-bidi_byname.c (main): Add more tests.
11614
11615 2010-01-10  Bruno Haible  <bruno@clisp.org>
11616
11617         unistr/u*-strcoll: Try harder to distinguish different strings.
11618         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
11619         compare s1 and s2 to see if they are different.
11620
11621 2010-01-10  Bruno Haible  <bruno@clisp.org>
11622
11623         unistr/u*-stpncpy: Fix the return value.
11624         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
11625         description of the return value consistent with stpncpy in glibc.
11626         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
11627         written non-NUL unit.
11628
11629 2010-01-10  Bruno Haible  <bruno@clisp.org>
11630
11631         unistr/u*-next: Add missing dependencies.
11632         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
11633         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
11634         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
11635
11636 2010-01-10  Bruno Haible  <bruno@clisp.org>
11637
11638         unistr/u8-mbsnlen: Fix return value for incomplete character.
11639         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
11640         u8_mblen.
11641         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
11642         Remove unistr/u8-mblen.
11643         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
11644         u16_mblen.
11645         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
11646         Remove unistr/u16-mblen.
11647
11648 2010-01-10  Bruno Haible  <bruno@clisp.org>
11649
11650         wchar: Fix compilation error when <wchar.h> is used from coreutils.
11651         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
11652         Reported by Brian Gough <bjg@gnu.org> and
11653         Chris Clayton <chris2553@googlemail.com> via
11654         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
11655
11656 2010-01-09  Bruno Haible  <bruno@clisp.org>
11657
11658         unistr/u16-to-u32: Reject invalid input.
11659         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
11660         u16_mbtouc.
11661         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
11662         Remove unistr/u16-mbtouc.
11663
11664         unistr/u16-to-u8: Reject invalid input.
11665         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
11666         u16_mbtouc.
11667         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
11668         Remove unistr/u16-mbtouc.
11669
11670         unistr/u8-to-u32: Reject invalid input.
11671         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
11672         u8_mbtouc.
11673         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
11674         Remove unistr/u8-mbtouc.
11675
11676         unistr/u8-to-u16: Reject invalid input.
11677         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
11678         u8_mbtouc.
11679         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
11680         Remove unistr/u8-mbtouc.
11681
11682 2010-01-09  Bruno Haible  <bruno@clisp.org>
11683
11684         Tests for module 'getlogin'.
11685         * modules/getlogin-tests: New file.
11686         * tests/test-getlogin.c: New file.
11687
11688         New module 'getlogin'.
11689         * lib/unistd.in.h (getlogin): New declaration.
11690         * lib/getlogin.c: New file.
11691         * m4/getlogin.m4: New file.
11692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
11693         HAVE_GETLOGIN.
11694         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
11695         HAVE_GETLOGIN.
11696         * modules/getlogin: New file.
11697         * doc/posix-functions/getlogin.texi: Mention the new module.
11698         Reported by John W. Eaton <jwe@gnu.org>.
11699
11700 2010-01-09  Bruno Haible  <bruno@clisp.org>
11701
11702         getlogin_r: Support for native Windows.
11703         * lib/getlogin_r.c: Include <windows.h>
11704         (getlogin_r): Implement for native Windows.
11705         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
11706         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
11707         via John W. Eaton <jwe@gnu.org>.
11708
11709 2010-01-09  Bruno Haible  <bruno@clisp.org>
11710
11711         getlogin_r: Small fixes.
11712         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
11713         succeeds.
11714         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
11715         before testing whether getlogin_r is declared. No need to set
11716         HAVE_DECL_GETLOGIN_R to 1.
11717         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
11718
11719 2010-01-09  Bruno Haible  <bruno@clisp.org>
11720
11721         * lib/unistd.in.h (getlogin_r): Add comment.
11722
11723 2010-01-09  Bruno Haible  <bruno@clisp.org>
11724
11725         Tests for module 'getlogin_r'.
11726         * modules/getlogin_r-tests: New file.
11727         * tests/test-getlogin_r.c: New file.
11728
11729 2010-01-09  Jim Meyering  <meyering@redhat.com>
11730
11731         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
11732         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
11733         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
11734
11735 2010-01-08  Simon Josefsson  <simon@josefsson.org>
11736
11737         * lib/dup2.c (rpl_dup2): Improve comment.
11738
11739 2010-01-08  Eric Blake  <ebb9@byu.net>
11740
11741         maint.mk: allow packages to add makefile @@ exceptions
11742         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
11743         (sc_makefile_check): Rename...
11744         (sc_makefile_at_at_check): ...to this, and use hook.
11745
11746         dup2: work around mingw bug
11747         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
11748         Reported by Simon Josefsson.
11749
11750 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
11751
11752         glob: Fix C++ compilation.
11753         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
11754         C++.
11755
11756 2010-01-07  Bruno Haible  <bruno@clisp.org>
11757
11758         Fix indentation of wctype.in.h, broken since 2007-01-06.
11759         * lib/wctype.in.h: Fix indentation of preprocessor directives.
11760
11761 2010-01-07  Bruno Haible  <bruno@clisp.org>
11762
11763         mbslen: Avoid collision with system function.
11764         * lib/string.in.h [MirBSD]: Include <wchar.h>.
11765         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
11766         * m4/mbslen.m4: New file.
11767         * modules/mbslen (Files): Add it.
11768         (configure.ac): Invoke gl_MBSLEN.
11769         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
11770         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
11771         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
11772         via Ian Beckwith <ianb@erislabs.net>.
11773
11774 2010-01-07  Bruno Haible  <bruno@clisp.org>
11775
11776         dirent: Document the last fix.
11777         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
11778
11779 2010-01-07  Bruno Haible  <bruno@clisp.org>
11780
11781         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
11782         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
11783         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
11784         va_list are defined.
11785         * doc/posix-headers/stdio.texi: Document the bug of missing types.
11786         Reported by Eric Blake.
11787
11788 2010-01-07  Bruno Haible  <bruno@clisp.org>
11789
11790         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
11791         * modules/xlist (Depends-on): Add 'list',
11792         * modules/xoset (Depends-on): Add 'oset'.
11793         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11794
11795 2010-01-07  Bruno Haible  <bruno@clisp.org>
11796
11797         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
11798         * doc/posix-functions/strncasecmp.texi: Likewise.
11799
11800 2010-01-07  Bruno Haible  <bruno@clisp.org>
11801
11802         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
11803
11804 2010-01-07  John W. Eaton  <jwe@octave.org>
11805
11806         wctype: allow C++ use
11807         * lib/wctype.in.h: Add extern "C" block for C++.
11808
11809 2010-01-06  Eric Blake  <ebb9@byu.net>
11810
11811         maint.mk: detect incorrect GFDL usage
11812         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
11813
11814 2010-01-06  Jim Meyering  <meyering@redhat.com>
11815         and Eric Blake  <ebb9@byu.net>
11816
11817         maint.mk: ignore multi-line copyright in NEWS
11818         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
11819
11820 2010-01-06  Eric Blake  <ebb9@byu.net>
11821
11822         select: add missing dependency
11823         * modules/select-tests (Depends-on): Move sockets dependency...
11824         * modules/select (Depends-on): ...here.
11825         Reported by Ian Beckwith.
11826
11827         doc: regenerate INSTALL
11828         * doc/INSTALL: Reflect recent autoconf update.
11829         * doc/INSTALL.ISO: Likewise.
11830         * doc/INSTALL.UTF-8: Likewise.
11831
11832         pread: fix compilation on glibc
11833         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
11834         Reported by Ralf Wildenhues.
11835
11836         dirent: fix test failure
11837         * lib/dirent.in.h (includes): Guarantee ino_t.
11838         Reported by Ralf Wildenhues.
11839
11840 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
11841
11842         linkat, renameat: avoid bad free
11843         * lib/at-func2.c (at_func2): Fix typo.
11844         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
11845
11846 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11847
11848         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
11849         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
11850         to avoid failure of symlink test later.
11851
11852 2010-01-06  Eric Blake  <ebb9@byu.net>
11853
11854         stdio, unistd: guarantee ssize_t
11855         * lib/unistd.in.h (includes): Ensure that types required by POSIX
11856         2008 are exposed when needed.
11857         * lib/stdio.in.h (includes): Likewise.
11858         Reported by Ralf Wildenhues.
11859
11860 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
11861
11862         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
11863         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
11864         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
11865
11866 2010-01-06  Jim Meyering  <meyering@redhat.com>
11867
11868         readtokens: this module *does* require xalloc.h
11869         It uses only functions that were omitted by the old syntax-check rule.
11870         * lib/readtokens.c: Include "xalloc.h" once again.
11871         * modules/readtokens (Depends-on): Add xalloc.
11872         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
11873
11874 2010-01-05  Eric Blake  <ebb9@byu.net>
11875
11876         maint: support 'make announcement' from a VPATH build
11877         * top/maint.mk (announcement): Look for correct NEWS file.
11878
11879 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
11880
11881         utimens (fdutimens): ignore a negative FD, per contract
11882         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
11883         when we have a valid file descriptor.  Otherwise, using a brand
11884         new glibc (with just-patched futimens that now fails with EBADF)
11885         would cause this function to fail with ENOSYS.
11886         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
11887         See also http://bugzilla.redhat.com/552320.
11888
11889 2010-01-05  Eric Blake  <ebb9@byu.net>
11890
11891         strcase: document what it provides
11892         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
11893         gnulib module.
11894         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
11895         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
11896
11897 2010-01-05  Jim Meyering  <meyering@redhat.com>
11898
11899         maint: remove useless inclusions of "xalloc.h"
11900         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
11901         * lib/readtokens.c: Likewise.
11902         * lib/same.c: Likewise.
11903         * modules/getloadavg (Depends-on): Remove xalloc.
11904         * modules/readtokens: Likewise.
11905         * modules/same: Likewise.
11906
11907         maint.mk: include 4 more function names in alloca.h-checking regexp
11908         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
11909         regexp.  Before, we would give a false-positive (saying alloca.h
11910         is included unnecessarily) when the only uses involved omitted symbols.
11911
11912         xalloc.h: use consistent formatting
11913         * lib/xalloc.h: Move declarations to start in the first column.
11914
11915 2010-01-05  Eric Blake  <ebb9@byu.net>
11916
11917         mkdir: avoid xalloc
11918         * lib/mkdir.c (includes): Drop unused header.
11919         Reported by John W. Eaton.
11920
11921 2010-01-04  Jim Meyering  <meyering@redhat.com>
11922
11923         nl_langinfo: avoid configure-time syntax error
11924         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
11925         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
11926         the empty string.  Don't let that provoke a shell syntax error.
11927
11928         regcomp, regexec, fnmatch: avoid array bounds read error
11929         * lib/regcomp.c (build_equiv_class): From glibc:
11930         Use only the low 24 bits of a findidx return value as an index
11931         into the weights array.  Patch by Ulrich Drepper:
11932         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
11933         * lib/regexec.c (check_node_accept_bytes): Likewise.
11934         * lib/fnmatch_loop.c (FCT): Likewise.
11935
11936         regcomp: skip collseq lookup when there are no rules
11937         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
11938         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
11939
11940         regcomp: recognize ill-formed { } expressions
11941         * lib/regcomp.c (parse_dup_op): From glibc:
11942         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
11943
11944         regcomp: fix typo in comment
11945         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
11946         s/satisfy/satisfies/.
11947
11948         regcomp: sync from glibc: remove dead store
11949         * lib/regcomp.c (duplicate_node_closure): Remove useless
11950         search_duplicated_node call and dead store.
11951
11952         regcomp: sync from glibc; always use nl_langinfo
11953         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
11954         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
11955         * modules/regex (Depends-on): Add nl_langinfo.
11956
11957 2010-01-04  Eric Blake  <ebb9@byu.net>
11958
11959         fdopendir: fix configure test
11960         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
11961
11962 2010-01-01  Bruno Haible  <bruno@clisp.org>
11963
11964         wchar: Remove unused configure check.
11965         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
11966
11967 2010-01-01  Eric Blake  <ebb9@byu.net>
11968
11969         headers: make check of system header explicit
11970         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
11971         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
11972         ourselves.
11973         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11974         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11975         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
11976         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
11977         internals.
11978         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
11979         missing.
11980         Suggested by Bruno Haible.
11981
11982 2010-01-01  Jim Meyering  <meyering@redhat.com>
11983
11984         ChangeLog: tweak to eliminate unnecessary copyright line
11985         * ChangeLog: Remove a copyright line that was mistakenly updated
11986         by today's update-copyright run.  Reported by Eric Blake.
11987
11988         test-update-copyright: don't let envvar setting cause test failure
11989         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
11990
11991 2010-01-01  Bruno Haible  <bruno@clisp.org>
11992
11993         localename: Avoid gcc warning.
11994         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
11995         function if it is not used.
11996
11997 2010-01-01  Jim Meyering  <meyering@redhat.com>
11998
11999         update nearly all FSF copyright year lists to include 2010
12000         Use the same procedure as for 2009, outlined in
12001         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
12002
12003         version-etc: set COPYRIGHT_YEAR to 2010
12004         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
12005
12006 2009-12-31  Eric Blake  <ebb9@byu.net>
12007
12008         doc: correct availability of cygwin 1.5.x getopt
12009         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
12010         variables.
12011         * doc/posix-functions/opterr.texi (opterr): Likewise.
12012         * doc/posix-functions/optind.texi (optind): Likewise.
12013         * doc/posix-functions/optopt.texi (optopt): Likewise.
12014         * doc/posix-functions/tzname.texi (tzname): Likewise.
12015
12016         openat: update maintainer
12017         * modules/openat (Maintainer): Add myself.
12018
12019         utimens: avoid shadowing warning
12020         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
12021         buffers into one, to avoid shadowing, as well as avoiding a
12022         redundant stat.
12023         Reported by Jim Meyering.
12024
12025         test-dup2: avoid compiler warning
12026         * tests/test-dup2.c (is_inheritable): Only define if used.
12027
12028 2010-01-01  Bruno Haible  <bruno@clisp.org>
12029
12030         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
12031         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
12032         defined, use wctomb instead of wcrtomb.
12033
12034 2010-01-01  Bruno Haible  <bruno@clisp.org>
12035
12036         iconv: Reject native Solaris iconv.
12037         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
12038         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
12039
12040 2009-12-31  Bruno Haible  <bruno@clisp.org>
12041
12042         * tests/test-signal.c (main): Remove test of 'SIG'.
12043
12044 2009-12-31  Bruno Haible  <bruno@clisp.org>
12045
12046         spawn: Fix incomplete fix.
12047         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
12048         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
12049         warnings for GNULIB_POSIXCHECK again.
12050         Reported by Eric Blake.
12051
12052 2009-12-31  Bruno Haible  <bruno@clisp.org>
12053
12054         Avoid namespace pollution on glibc systems.
12055         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
12056         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
12057         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
12058         glibc systems.
12059
12060 2009-12-31  Bruno Haible  <bruno@clisp.org>
12061
12062         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
12063         (gl_REPLACE_WCHAR_H): Turn into a no-op.
12064         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
12065         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12066         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12067         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12068         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12069
12070 2009-12-31  Bruno Haible  <bruno@clisp.org>
12071
12072         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
12073         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
12074         afterwards.
12075
12076 2009-12-31  Bruno Haible  <bruno@clisp.org>
12077
12078         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
12079         SYS_UTSNAME_H.
12080
12081 2009-12-31  Bruno Haible  <bruno@clisp.org>
12082
12083         spawn: Fix misapplied patch.
12084         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
12085         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
12086         warnings for GNULIB_POSIXCHECK.
12087
12088 2009-12-31  Bruno Haible  <bruno@clisp.org>
12089
12090         times: Update after sys_times changed.
12091         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
12092         * modules/times (Files): Add it.
12093         (configure.ac): Invoke gl_FUNC_TIMES.
12094
12095 2009-12-31  Bruno Haible  <bruno@clisp.org>
12096
12097         Use AC_C_INLINE where necessary.
12098         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
12099         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
12100         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
12101         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
12102         * m4/mbfile.m4 (gl_MBFILE): Likewise.
12103         * m4/mbiter.m4 (gl_MBITER): Likewise.
12104         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12105         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12106         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
12107         * modules/u64 (configure.ac): Likewise.
12108
12109 2009-12-31  Bruno Haible  <bruno@clisp.org>
12110
12111         Use AC_C_INLINE instead of module 'inline' where possible.
12112         * modules/inline (Description): Clarify purpose.
12113         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
12114         * modules/count-one-bits (Depends-on): Remove inline.
12115         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
12116         * modules/openat (Depends-on): Remove inline.
12117         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
12118         instead of depending on module 'inline'.
12119         * modules/filevercmp (Depends-on, configure.ac): Likewise.
12120         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
12121         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
12122         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
12123         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
12124         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
12125         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
12126         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
12127         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
12128         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
12129         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
12130         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
12131         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
12132         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
12133         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
12134         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
12135         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
12136         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
12137         Likewise.
12138         * modules/unictype/property-ascii-hex-digit (Depends-on,
12139         configure.ac): Likewise.
12140         * modules/unictype/property-bidi-arabic-digit (Depends-on,
12141         configure.ac): Likewise.
12142         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
12143         configure.ac): Likewise.
12144         * modules/unictype/property-bidi-block-separator (Depends-on,
12145         configure.ac): Likewise.
12146         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
12147         configure.ac): Likewise.
12148         * modules/unictype/property-bidi-common-separator (Depends-on,
12149         configure.ac): Likewise.
12150         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
12151         Likewise.
12152         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
12153         configure.ac): Likewise.
12154         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
12155         configure.ac): Likewise.
12156         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
12157         configure.ac): Likewise.
12158         * modules/unictype/property-bidi-european-digit (Depends-on,
12159         configure.ac): Likewise.
12160         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
12161         configure.ac): Likewise.
12162         * modules/unictype/property-bidi-left-to-right (Depends-on,
12163         configure.ac): Likewise.
12164         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
12165         configure.ac): Likewise.
12166         * modules/unictype/property-bidi-other-neutral (Depends-on,
12167         configure.ac): Likewise.
12168         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
12169         Likewise.
12170         * modules/unictype/property-bidi-segment-separator (Depends-on,
12171         configure.ac): Likewise.
12172         * modules/unictype/property-bidi-whitespace (Depends-on,
12173         configure.ac): Likewise.
12174         * modules/unictype/property-combining (Depends-on, configure.ac):
12175         Likewise.
12176         * modules/unictype/property-composite (Depends-on, configure.ac):
12177         Likewise.
12178         * modules/unictype/property-currency-symbol (Depends-on,
12179         configure.ac): Likewise.
12180         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
12181         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
12182         Likewise.
12183         * modules/unictype/property-default-ignorable-code-point (Depends-on,
12184         configure.ac): Likewise.
12185         * modules/unictype/property-deprecated (Depends-on, configure.ac):
12186         Likewise.
12187         * modules/unictype/property-diacritic (Depends-on, configure.ac):
12188         Likewise.
12189         * modules/unictype/property-extender (Depends-on, configure.ac):
12190         Likewise.
12191         * modules/unictype/property-format-control (Depends-on, configure.ac):
12192         Likewise.
12193         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
12194         Likewise.
12195         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
12196         Likewise.
12197         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
12198         Likewise.
12199         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
12200         Likewise.
12201         * modules/unictype/property-hyphen (Depends-on, configure.ac):
12202         Likewise.
12203         * modules/unictype/property-id-continue (Depends-on, configure.ac):
12204         Likewise.
12205         * modules/unictype/property-id-start (Depends-on, configure.ac):
12206         Likewise.
12207         * modules/unictype/property-ideographic (Depends-on, configure.ac):
12208         Likewise.
12209         * modules/unictype/property-ids-binary-operator (Depends-on,
12210         configure.ac): Likewise.
12211         * modules/unictype/property-ids-trinary-operator (Depends-on,
12212         configure.ac): Likewise.
12213         * modules/unictype/property-ignorable-control (Depends-on,
12214         configure.ac): Likewise.
12215         * modules/unictype/property-iso-control (Depends-on, configure.ac):
12216         Likewise.
12217         * modules/unictype/property-join-control (Depends-on, configure.ac):
12218         Likewise.
12219         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
12220         Likewise.
12221         * modules/unictype/property-line-separator (Depends-on, configure.ac):
12222         Likewise.
12223         * modules/unictype/property-logical-order-exception (Depends-on,
12224         configure.ac): Likewise.
12225         * modules/unictype/property-lowercase (Depends-on, configure.ac):
12226         Likewise.
12227         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
12228         * modules/unictype/property-non-break (Depends-on, configure.ac):
12229         Likewise.
12230         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
12231         Likewise.
12232         * modules/unictype/property-numeric (Depends-on, configure.ac):
12233         Likewise.
12234         * modules/unictype/property-other-alphabetic (Depends-on,
12235         configure.ac): Likewise.
12236         * modules/unictype/property-other-default-ignorable-code-point
12237         (Depends-on, configure.ac): Likewise.
12238         * modules/unictype/property-other-grapheme-extend (Depends-on,
12239         configure.ac): Likewise.
12240         * modules/unictype/property-other-id-continue (Depends-on,
12241         configure.ac): Likewise.
12242         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
12243         Likewise.
12244         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
12245         Likewise.
12246         * modules/unictype/property-other-math (Depends-on, configure.ac):
12247         Likewise.
12248         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
12249         Likewise.
12250         * modules/unictype/property-paired-punctuation (Depends-on,
12251         configure.ac): Likewise.
12252         * modules/unictype/property-paragraph-separator (Depends-on,
12253         configure.ac): Likewise.
12254         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
12255         Likewise.
12256         * modules/unictype/property-pattern-white-space (Depends-on,
12257         configure.ac): Likewise.
12258         * modules/unictype/property-private-use (Depends-on, configure.ac):
12259         Likewise.
12260         * modules/unictype/property-punctuation (Depends-on, configure.ac):
12261         Likewise.
12262         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
12263         Likewise.
12264         * modules/unictype/property-radical (Depends-on, configure.ac):
12265         Likewise.
12266         * modules/unictype/property-sentence-terminal (Depends-on,
12267         configure.ac): Likewise.
12268         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
12269         Likewise.
12270         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
12271         * modules/unictype/property-terminal-punctuation (Depends-on,
12272         configure.ac): Likewise.
12273         * modules/unictype/property-titlecase (Depends-on, configure.ac):
12274         Likewise.
12275         * modules/unictype/property-unassigned-code-value (Depends-on,
12276         configure.ac): Likewise.
12277         * modules/unictype/property-unified-ideograph (Depends-on,
12278         configure.ac): Likewise.
12279         * modules/unictype/property-uppercase (Depends-on, configure.ac):
12280         Likewise.
12281         * modules/unictype/property-variation-selector (Depends-on,
12282         configure.ac): Likewise.
12283         * modules/unictype/property-white-space (Depends-on, configure.ac):
12284         Likewise.
12285         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
12286         Likewise.
12287         * modules/unictype/property-xid-start (Depends-on, configure.ac):
12288         Likewise.
12289         * modules/unictype/property-zero-width (Depends-on, configure.ac):
12290         Likewise.
12291         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
12292         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
12293         Likewise.
12294
12295 2009-12-31  Bruno Haible  <bruno@clisp.org>
12296
12297         Remove unnecessary AC_C_INLINE invocation.
12298         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
12299         since 2009-08-21.
12300
12301 2009-12-31  Jim Meyering  <meyering@redhat.com>
12302
12303         maint.mk: don't require explicit gpg_key_ID in cfg.mk
12304         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
12305         With this change, we can all remove the gpg_key_ID = ... definition
12306         from our respective cfg.mk files.
12307
12308         maint.mk: create announcement template in ~/, not in /tmp
12309         * top/maint.mk (emit_upload_commands): Adjust.
12310         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
12311         Remove temporary file, .ci-msg.
12312
12313 2009-12-31  Eric Blake  <ebb9@byu.net>
12314
12315         link-warning: always build headers with link warnings
12316         * modules/arpa_inet (Makefile.am): Always build replacement
12317         header.
12318         * modules/ctype (Makefile.am): Likewise.
12319         * modules/dirent (Makefile.am): Likewise.
12320         * modules/inttypes (Makefile.am): Likewise.
12321         * modules/langinfo (Makefile.am): Likewise.
12322         * modules/locale (Makefile.am): Likewise.
12323         * modules/spawn (Makefile.am): Likewise.
12324         * modules/sys_file (Makefile.am): Likewise.
12325         * modules/sys_ioctl (Makefile.am): Likewise.
12326         * modules/sys_select (Makefile.am): Likewise.
12327         * modules/sys_socket (Makefile.am): Likewise.
12328         * modules/sys_times (Makefile.am): Likewise.
12329         * modules/sys_utsname (Makefile.am): Likewise.
12330         * modules/sys_wait (Makefile.am): Likewise.
12331         * modules/wchar (Makefile.am): Likewise.
12332         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
12333         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
12334         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
12335         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
12336         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
12337         Likewise.
12338         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12339         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12340         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
12341         Likewise.
12342         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
12343         Likewise.
12344         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12345         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
12346         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
12347         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12348         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12349         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
12350         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
12351         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
12352         (gl_WCHAR_H_DEFAULTS): Likewise.
12353
12354 2009-12-31  Eric Blake  <ebb9@byu.net>
12355
12356         signal, spawn: use link warnings
12357         * lib/signal.in.h (sigset_t): Make unconditional.
12358         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
12359         (sigpending, sigprocmask, sigaction): Add link warnings.
12360         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
12361         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
12362         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
12363         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
12364         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
12365         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
12366         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
12367         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
12368         (posix_spawn_file_actions_destroy)
12369         (posix_spawn_file_actions_addopen)
12370         (posix_spawn_file_actions_addclose)
12371         (posix_spawn_file_actions_adddup2): Likewise.
12372         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
12373         * tests/test-signal.c (main): Enhance test.
12374
12375         spawn: improve wrapper support
12376         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
12377         (gl_SPAWN_H_DEFAULTS): New defaults.
12378         * modules/spawn (Makefile.am): Substitute them.
12379         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
12380         Only declare if missing or broken.
12381
12382         sys_times, sys_utsname: use include_next
12383         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
12384         header.
12385         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
12386         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
12387         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
12388         * modules/sys_times (Depends-on): Add include_next.
12389         (Makefile.am): Substitute additional values.
12390         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
12391         * lib/sys_times.in.h (includes): Include native header, if
12392         available.
12393         * lib/sys_utsname.in.h (includes): Likewise.
12394         * tests/test-sys_times.c (main): Enhance test.
12395
12396         fdutimensat: revert prior patch
12397         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
12398         utimens.h.
12399         Reported by Bruno Haible.
12400
12401 2009-12-30  Eric Blake  <ebb9@byu.net>
12402
12403         sys_wait: drop link-warning dependency
12404         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
12405         link-warning efforts.
12406         * lib/sys_wait.in.h: Likewise.
12407
12408         fdutimensat: remove bogus dependency
12409         * modules/fdutimensat (Depends-on): Drop inline.
12410
12411         unistd: fix typo
12412         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
12413
12414 2009-12-30  Bruno Haible  <bruno@clisp.org>
12415
12416         Fix compilation error with Solaris cc.
12417         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
12418         * lib/unicase/u16-is-invariant.c: Likewise.
12419         * lib/unicase/u32-is-invariant.c: Likewise.
12420         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
12421
12422 2009-12-30  Bruno Haible  <bruno@clisp.org>
12423
12424         Fix test crash.
12425         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
12426         locales.
12427         Reported by Simon Josefsson <simon@josefsson.org>.
12428
12429 2009-12-30  Bruno Haible  <bruno@clisp.org>
12430
12431         Fix compilation error on most platforms.
12432         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
12433         Reported by Simon Josefsson <simon@josefsson.org>
12434         and Nelson H. F. Beebe <beebe@math.utah.edu>.
12435
12436 2009-12-30  Eric Blake  <ebb9@byu.net>
12437
12438         futimens, utimensat: work around ntfs-3g bug
12439         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
12440         a ctime bug is present, and expand workaround to cover ntfs-3g.
12441         * lib/utimens.c (fdutimens, lutimens): Likewise.
12442         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
12443         (validate_timespec): Adjust return value.
12444         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
12445         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12446         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
12447
12448 2009-12-29  Eric Blake  <ebb9@byu.net>
12449
12450         link-warning: make usage consistent
12451         * modules/ctype (Depends-on): Add link-warning.
12452         (Makefile.am): Update rules accordingly.
12453         * modules/langinfo (Depends-on, Makefile.am): Likewise.
12454         * modules/locale (Depends-on, Makefile.am): Likewise.
12455         * modules/sys_file (Makefile.am): Likewise.
12456         * modules/getopt-posix (Makefile.am): Delete unused link warning
12457         efforts.
12458         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
12459         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
12460         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
12461         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
12462
12463         stdio: remove unused variables
12464         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
12465         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
12466         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12467
12468         tests: test more substitute headers
12469         * modules/ctype-tests: New file.
12470         * modules/dirent-tests: Likewise.
12471         * modules/spawn-tests: Likewise.
12472         * modules/sys_file-tests: Likewise.
12473         * modules/sys_ioctl-tests: Likewise.
12474         * modules/sys_wait-tests: Likewise.
12475         * tests/test-ctype.c: Likewise.
12476         * tests/test-dirent.c: Likewise.
12477         * tests/test-spawn.c: Likewise.
12478         * tests/test-sys_file.c: Likewise.
12479         * tests/test-sys_ioctl.c: Likewise.
12480         * tests/test-sys_wait.c: Likewise.
12481         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
12482         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
12483         whether or not flock is in use.
12484
12485         tests: remove License section from module
12486         * modules/arpa_inet-tests: Remove unneeded section.
12487         * modules/byteswap-tests: Likewise.
12488         * modules/ceilf-tests: Likewise.
12489         * modules/ceill-tests: Likewise.
12490         * modules/crypto/des-tests: Likewise.
12491         * modules/crypto/gc-arcfour-tests: Likewise.
12492         * modules/crypto/gc-arctwo-tests: Likewise.
12493         * modules/crypto/gc-des-tests: Likewise.
12494         * modules/crypto/gc-hmac-md5-tests: Likewise.
12495         * modules/crypto/gc-hmac-sha1-tests: Likewise.
12496         * modules/crypto/gc-md2-tests: Likewise.
12497         * modules/crypto/gc-md4-tests: Likewise.
12498         * modules/crypto/gc-md5-tests: Likewise.
12499         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
12500         * modules/crypto/gc-rijndael-tests: Likewise.
12501         * modules/crypto/gc-sha1-tests: Likewise.
12502         * modules/crypto/gc-tests: Likewise.
12503         * modules/crypto/md2-tests: Likewise.
12504         * modules/crypto/md4-tests: Likewise.
12505         * modules/fcntl-h-tests: Likewise.
12506         * modules/floorf-tests: Likewise.
12507         * modules/floorl-tests: Likewise.
12508         * modules/frexp-nolibm-tests: Likewise.
12509         * modules/frexp-tests: Likewise.
12510         * modules/frexpl-nolibm-tests: Likewise.
12511         * modules/frexpl-tests: Likewise.
12512         * modules/getaddrinfo-tests: Likewise.
12513         * modules/inttypes-tests: Likewise.
12514         * modules/isfinite-tests: Likewise.
12515         * modules/isinf-tests: Likewise.
12516         * modules/ldexpl-tests: Likewise.
12517         * modules/locale-tests: Likewise.
12518         * modules/math-tests: Likewise.
12519         * modules/netdb-tests: Likewise.
12520         * modules/netinet_in-tests: Likewise.
12521         * modules/printf-frexp-tests: Likewise.
12522         * modules/printf-frexpl-tests: Likewise.
12523         * modules/priv-set-tests: Likewise.
12524         * modules/random_r-tests: Likewise.
12525         * modules/round-tests: Likewise.
12526         * modules/roundf-tests: Likewise.
12527         * modules/roundl-tests: Likewise.
12528         * modules/search-tests: Likewise.
12529         * modules/select-tests: Likewise.
12530         * modules/signal-tests: Likewise.
12531         * modules/stdbool-tests: Likewise.
12532         * modules/stddef-tests: Likewise.
12533         * modules/stdint-tests: Likewise.
12534         * modules/stdio-tests: Likewise.
12535         * modules/stdlib-tests: Likewise.
12536         * modules/string-tests: Likewise.
12537         * modules/strings-tests: Likewise.
12538         * modules/sys_select-tests: Likewise.
12539         * modules/sys_socket-tests: Likewise.
12540         * modules/sys_stat-tests: Likewise.
12541         * modules/sys_time-tests: Likewise.
12542         * modules/sys_utsname-tests: Likewise.
12543         * modules/sysexits-tests: Likewise.
12544         * modules/time-tests: Likewise.
12545         * modules/trunc-tests: Likewise.
12546         * modules/truncf-tests: Likewise.
12547         * modules/truncl-tests: Likewise.
12548         * modules/tsearch-tests: Likewise.
12549         * modules/unistd-tests: Likewise.
12550         * modules/wchar-tests: Likewise.
12551         * modules/wctype-tests: Likewise.
12552
12553         tests: fix license on several tests
12554         * tests/test-des.c: Update to GPLv3+.
12555         * tests/test-flock.c: Likewise.
12556         * tests/test-fsync.c: Likewise.
12557         * tests/test-futimens.h: Likewise.
12558         * tests/test-gc-arcfour.c: Likewise.
12559         * tests/test-gc-arctwo.c: Likewise.
12560         * tests/test-gc-des.c: Likewise.
12561         * tests/test-gc-hmac-md5.c: Likewise.
12562         * tests/test-gc-hmac-sha1.c: Likewise.
12563         * tests/test-gc-md2.c: Likewise.
12564         * tests/test-gc-md4.c: Likewise.
12565         * tests/test-gc-md5.c: Likewise.
12566         * tests/test-gc-pbkdf2-sha1.c: Likewise.
12567         * tests/test-gc-rijndael.c: Likewise.
12568         * tests/test-gc-sha1.c: Likewise.
12569         * tests/test-gc.c: Likewise.
12570         * tests/test-getcwd.c: Likewise.
12571         * tests/test-link.c: Likewise.
12572         * tests/test-link.h: Likewise.
12573         * tests/test-lutimens.h: Likewise.
12574         * tests/test-md2.c: Likewise.
12575         * tests/test-md4.c: Likewise.
12576         * tests/test-mkdir.h: Likewise.
12577         * tests/test-rename.c: Likewise.
12578         * tests/test-rename.h: Likewise.
12579         * tests/test-safe-alloc.c: Likewise.
12580         * tests/test-utimens-common.h: Likewise.
12581         * tests/test-utimens.h: Likewise.
12582
12583         maint: sync license texts
12584         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
12585         * doc/gpl-3.0.texi: Revert copyright year update.
12586         * doc/lgpl-3.0.texi: Likewise.
12587
12588 2009-12-29  Jim Meyering  <meyering@redhat.com>
12589
12590         update nearly all FSF copyright year lists to include 2009
12591         The files named by the following are exempted:
12592             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
12593               test -f "$dst" && { echo "$dst"; continue; }
12594               test -d "$dst" || continue
12595               echo "$dst"/$(basename "$src")
12596             done > exempt
12597             git ls-files tests/unictype >> exempt
12598         In the remaining files, convert to all-interval notation if
12599         - there is already at least one year interval like 2000-2003
12600         - the file is maintained by me
12601         - the file is in lib/uni*/, where that style already prevails
12602         Otherwise, use update-copyright's default.
12603
12604 2009-12-29  Simon Josefsson  <simon@josefsson.org>
12605         and Eric Blake  <ebb9@byu.net>
12606
12607         tests: don't require debug system() to pass
12608         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
12609         * tests/test-rmdir.h (test_rmdir_func): Likewise.
12610         * tests/test-unlink.h (test_unlink_func): Likewise.
12611         * tests/test-fstatat.c (main): ...into callers.
12612         * tests/test-lstat.c (main): Likewise.
12613         * tests/test-rmdir.c (main): Likewise.
12614         * tests/test-unlink.c (main): Likewise.
12615         * tests/test-unlinkat.c (main): Likewise.
12616         * tests/test-areadlink-with-size.c (main): Don't require a
12617         debug-only system call to pass, aiding cross-testing to mingw.
12618         * tests/test-areadlink.c (main): Likewise.
12619         * tests/test-areadlinkat-with-size.c (main): Likewise.
12620         * tests/test-areadlinkat.c (main): Likewise.
12621         * tests/test-canonicalize-lgpl.c (main): Likewise.
12622         * tests/test-canonicalize.c (main): Likewise.
12623         * tests/test-chown.c (main): Likewise.
12624         * tests/test-fchownat.c (main): Likewise.
12625         * tests/test-lchown.c (main): Likewise.
12626         * tests/test-fdutimensat.c (main): Likewise.
12627         * tests/test-futimens.c (main): Likewise.
12628         * tests/test-link.c (main): Likewise.
12629         * tests/test-linkat.c (main): Likewise.
12630         * tests/test-mkdir.c (main): Likewise.
12631         * tests/test-mkdirat.c (main): Likewise.
12632         * tests/test-mkfifo.c (main): Likewise.
12633         * tests/test-mkfifoat.c (main): Likewise.
12634         * tests/test-mknod.c (main): Likewise.
12635         * tests/test-readlink.c (main): Likewise.
12636         * tests/test-remove.c (main): Likewise.
12637         * tests/test-rename.c (main): Likewise.
12638         * tests/test-renameat.c (main): Likewise.
12639         * tests/test-symlink.c (main): Likewise.
12640         * tests/test-symlinkat.c (main): Likewise.
12641         * tests/test-utimens.c (main): Likewise.
12642         * tests/test-utimensat.c (main): Likewise.
12643
12644 2009-12-29  Simon Josefsson  <simon@josefsson.org>
12645
12646         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
12647         on $(UNUSED_PARAMETER_H) to avoid build failure.
12648
12649 2009-12-28  Jim Meyering  <meyering@redhat.com>
12650
12651         update-copyright: you may specify a max. line length other than 72
12652         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
12653
12654         maint: use consistent FSF copyright line syntax
12655         * lib/posixtm.c: Add missing comma in FSF copyright line.
12656         * lib/posixtm.h: Likewise.
12657         * lib/getugroups.c: Add missing ", Inc.".
12658
12659         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
12660         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
12661         FSF copyright line.  Remove trailing blanks.
12662
12663 2009-12-28  Eric Blake  <ebb9@byu.net>
12664
12665         test-dup2: reduce dependencies
12666         * modules/cloexec (Configure.ac): Set witness.
12667         * modules/dup2-tests (Depends-on): Drop cloexec.
12668         * tests/test-dup2.c (main): Skip portion of test if cloexec module
12669         not present.
12670         Suggested by Bruno Haible.
12671
12672 2009-12-26  Bruno Haible  <bruno@clisp.org>
12673
12674         Remove an unneeded dependency.
12675         * modules/fseterr (Depends-on): Remove dup2.
12676
12677 2009-12-26  Eric Blake  <ebb9@byu.net>
12678
12679         tests: use macros.h in more places
12680         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
12681         (ASSERT_STREAM): Provide default of stderr.
12682         * tests/test-dirent-safer.c: Include macros.h, using alternate
12683         stream for assertions.
12684         * tests/test-dup-safer.c: Likewise.
12685         * tests/test-freopen-safer.c: Likewise.
12686         * tests/test-getopt.c: Likewise.
12687         * tests/test-openat-safer.c: Likewise.
12688         * tests/test-pipe.c: Likewise.
12689         * tests/test-popen-safer.c: Likewise.
12690         * modules/dirent-safer-tests (Files): Include macros.h.
12691         * modules/unistd-safer-tests (Files): Likewise.
12692         * modules/freopen-safer-tests (Files): Likewise.
12693         * modules/getopt-posix-tests (Files): Likewise.
12694         * modules/openat-safer-tests (Files): Likewise.
12695         * modules/pipe-tests (Files): Likewise.
12696
12697 2009-12-26  Bruno Haible  <bruno@clisp.org>
12698
12699         javacomp: Portability fix.
12700         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
12701         that it also works on Solaris.
12702
12703 2009-12-26  Bruno Haible  <bruno@clisp.org>
12704
12705         localename: Fix storage allocation of gl_locale_name_thread's result.
12706         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
12707         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
12708         all platforms that have 'uselocale'.
12709         (gl_locale_name_thread_unsafe): New function, extracted from
12710         gl_locale_name_thread.
12711         (gl_locale_name_thread): Call struniq on all platforms that have
12712         'uselocale'.
12713         * tests/test-localename.c (test_locale_name_thread): Check that the
12714         resulting strings are permanently allocated.
12715         * modules/localename-tests (Depends-on): Add strdup.
12716
12717 2009-12-26  Bruno Haible  <bruno@clisp.org>
12718
12719         * tests/test-localename.c (categories): Fill in the strings.
12720
12721 2009-12-26  Jim Meyering  <meyering@redhat.com>
12722
12723         isdir: complete the removal of m4/isdir.m4
12724         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
12725
12726         isdir: clean up, since at least grep still uses it
12727         * lib/isdir.c: Include "isdir.h".
12728         (S_ISDIR): Remove now-unneeded definition.
12729         * modules/isdir (Files): Add lib/isdir.h.
12730         * lib/isdir.h: New file, with declaration.
12731         * m4/isdir.m4: Remove file -- unneeded.
12732
12733 2009-12-25  Bruno Haible  <bruno@clisp.org>
12734
12735         selinux-h: Make generated .h files standalone.
12736         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
12737         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
12738         * lib/se-selinux.in.h: Likewise.
12739         * modules/selinux-h (Depends-on): Add unused-parameter.
12740         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
12741         selinux/selinux.h and selinux/context.h.
12742         Suggested by Eric Blake.
12743
12744 2009-12-25  Bruno Haible  <bruno@clisp.org>
12745
12746         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
12747         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
12748         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
12749         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
12750         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
12751
12752 2009-12-24  Bruno Haible  <bruno@clisp.org>
12753
12754         openat: Fix warning.
12755         * lib/openat-proc.c: Include <unistd.h>.
12756
12757 2009-12-24  Bruno Haible  <bruno@clisp.org>
12758
12759         New module 'unused-parameter'.
12760         * build-aux/unused-parameter.h: New file, extracted from earlier
12761         gnulib-common.m4.
12762         * modules/unused-parameter: New file.
12763         * lib/unistr.h: Include unused-parameter.h.
12764         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
12765         _GL_UNUSED.
12766         * modules/unistr/base (Depends-on): Add unused-parameter.
12767
12768 2009-12-24  Bruno Haible  <bruno@clisp.org>
12769
12770         Add missing dependencies to 'extensions' module.
12771         * m4/extensions.m4: Add comment.
12772         * modules/accept4 (Depends-on): Add extensions.
12773         * modules/dup3 (Depends-on): Likewise.
12774         * modules/fcntl (Depends-on): Likewise.
12775         * modules/futimens (Depends-on): Likewise.
12776         * modules/mknod (Depends-on): Likewise.
12777         * modules/pipe2 (Depends-on): Likewise.
12778         * modules/stat-time (Depends-on): Likewise.
12779         * modules/strcasestr-simple (Depends-on): Likewise.
12780         * modules/strsignal (Depends-on): Likewise.
12781         * modules/utimensat (Depends-on): Likewise.
12782         * modules/localcharset (Depends-on): Likewise. Needed because of
12783         gl_FCNTL_O_FLAGS.
12784         * modules/wcrtomb (Depends-on): Likewise. Needed because of
12785         AC_TYPE_MBSTATE_T.
12786         * modules/wcsnrtombs (Depends-on): Likewise.
12787         * modules/wcsrtombs (Depends-on): Likewise.
12788
12789 2009-12-24  Bruno Haible  <bruno@clisp.org>
12790
12791         binary-io: Avoid gcc warning due to SET_BINARY.
12792         * lib/binary-io.h (SET_BINARY): Cast the result to void.
12793         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
12794
12795 2009-12-24  Bruno Haible  <bruno@clisp.org>
12796
12797         Avoid future namespace pollution on glibc systems.
12798         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
12799         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
12800         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
12801         glibc systems.
12802
12803 2009-12-24  Bruno Haible  <bruno@clisp.org>
12804
12805         Refactor common macros used in tests.
12806         * tests/macros.h: New file.
12807         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
12808         and/or <stdlib.h>, if appropriate.
12809         (ASSERT, SIZEOF): Remove macros.
12810         * tests/test-areadlink-with-size.c: Likewise.
12811         * tests/test-areadlinkat.c: Likewise.
12812         * tests/test-areadlinkat-with-size.c: Likewise.
12813         * tests/test-argmatch.c: Likewise.
12814         * tests/test-argv-iter.c: Likewise.
12815         * tests/test-array-mergesort.c: Likewise.
12816         * tests/test-array_list.c: Likewise.
12817         * tests/test-array_oset.c: Likewise.
12818         * tests/test-avltree_list.c: Likewise.
12819         * tests/test-avltree_oset.c: Likewise.
12820         * tests/test-avltreehash_list.c: Likewise.
12821         * tests/test-base64.c: Likewise.
12822         * tests/test-binary-io.c: Likewise.
12823         * tests/test-bitrotate.c: Likewise.
12824         * tests/test-btowc.c: Likewise.
12825         * tests/test-byteswap.c: Likewise.
12826         * tests/test-c-ctype.c: Likewise.
12827         * tests/test-c-stack.c: Likewise.
12828         * tests/test-c-strcasecmp.c: Likewise.
12829         * tests/test-c-strcasestr.c: Likewise.
12830         * tests/test-c-strncasecmp.c: Likewise.
12831         * tests/test-c-strstr.c: Likewise.
12832         * tests/test-canonicalize-lgpl.c: Likewise.
12833         * tests/test-canonicalize.c: Likewise.
12834         * tests/test-carray_list.c: Likewise.
12835         * tests/test-ceilf1.c: Likewise.
12836         * tests/test-ceilf2.c: Likewise.
12837         * tests/test-ceill.c: Likewise.
12838         * tests/test-chown.c: Likewise.
12839         * tests/test-cloexec.c: Likewise.
12840         * tests/test-copy-acl.c: Likewise.
12841         * tests/test-copy-file.c: Likewise.
12842         * tests/test-count-one-bits.c: Likewise.
12843         * tests/test-dprintf-posix.c: Likewise.
12844         * tests/test-dup2.c: Likewise.
12845         * tests/test-dup3.c: Likewise.
12846         * tests/test-duplocale.c: Likewise.
12847         * tests/test-fbufmode.c: Likewise.
12848         * tests/test-fchdir.c: Likewise.
12849         * tests/test-fchownat.c: Likewise.
12850         * tests/test-fcntl-safer.c: Likewise.
12851         * tests/test-fcntl.c: Likewise.
12852         * tests/test-fdopendir.c: Likewise.
12853         * tests/test-fdutimensat.c: Likewise.
12854         * tests/test-fflush2.c: Likewise.
12855         * tests/test-file-has-acl.c: Likewise.
12856         * tests/test-filevercmp.c: Likewise.
12857         * tests/test-flock.c: Likewise.
12858         * tests/test-floorf1.c: Likewise.
12859         * tests/test-floorf2.c: Likewise.
12860         * tests/test-floorl.c: Likewise.
12861         * tests/test-fnmatch.c: Likewise.
12862         * tests/test-fopen.h: Likewise.
12863         * tests/test-fpending.c: Likewise.
12864         * tests/test-fprintf-posix.c: Likewise.
12865         * tests/test-fpurge.c: Likewise.
12866         * tests/test-freadable.c: Likewise.
12867         * tests/test-freadahead.c: Likewise.
12868         * tests/test-freading.c: Likewise.
12869         * tests/test-freadptr.c: Likewise.
12870         * tests/test-freadptr2.c: Likewise.
12871         * tests/test-freadseek.c: Likewise.
12872         * tests/test-freopen.c: Likewise.
12873         * tests/test-frexp.c: Likewise.
12874         * tests/test-frexpl.c: Likewise.
12875         * tests/test-fseek.c: Likewise.
12876         * tests/test-fseeko.c: Likewise.
12877         * tests/test-fstatat.c: Likewise.
12878         * tests/test-fstrcmp.c: Likewise.
12879         * tests/test-fsync.c: Likewise.
12880         * tests/test-ftell.c: Likewise.
12881         * tests/test-ftello.c: Likewise.
12882         * tests/test-func.c: Likewise.
12883         * tests/test-futimens.c: Likewise.
12884         * tests/test-fwritable.c: Likewise.
12885         * tests/test-fwriting.c: Likewise.
12886         * tests/test-getcwd.c: Likewise.
12887         * tests/test-getdate.c: Likewise.
12888         * tests/test-getdelim.c: Likewise.
12889         * tests/test-getdtablesize.c: Likewise.
12890         * tests/test-getgroups.c: Likewise.
12891         * tests/test-getline.c: Likewise.
12892         * tests/test-getndelim2.c: Likewise.
12893         * tests/test-glob.c: Likewise.
12894         * tests/test-hash.c: Likewise.
12895         * tests/test-i-ring.c: Likewise.
12896         * tests/test-iconv-utf.c: Likewise.
12897         * tests/test-iconv.c: Likewise.
12898         * tests/test-idpriv-drop.c: Likewise.
12899         * tests/test-idpriv-droptemp.c: Likewise.
12900         * tests/test-inet_ntop.c: Likewise.
12901         * tests/test-inet_pton.c: Likewise.
12902         * tests/test-isblank.c: Likewise.
12903         * tests/test-isfinite.c: Likewise.
12904         * tests/test-isinf.c: Likewise.
12905         * tests/test-isnan.c: Likewise.
12906         * tests/test-isnand.h: Likewise.
12907         * tests/test-isnanf.h: Likewise.
12908         * tests/test-isnanl.h: Likewise.
12909         * tests/test-lchown.c: Likewise.
12910         * tests/test-ldexpl.c: Likewise.
12911         * tests/test-link.c: Likewise.
12912         * tests/test-linkat.c: Likewise.
12913         * tests/test-linked_list.c: Likewise.
12914         * tests/test-linkedhash_list.c: Likewise.
12915         * tests/test-localename.c: Likewise.
12916         * tests/test-lseek.c: Likewise.
12917         * tests/test-lstat.c: Likewise.
12918         * tests/test-mbmemcasecmp.c: Likewise.
12919         * tests/test-mbmemcasecoll.c: Likewise.
12920         * tests/test-mbrtowc.c: Likewise.
12921         * tests/test-mbscasecmp.c: Likewise.
12922         * tests/test-mbscasestr1.c: Likewise.
12923         * tests/test-mbscasestr2.c: Likewise.
12924         * tests/test-mbscasestr3.c: Likewise.
12925         * tests/test-mbscasestr4.c: Likewise.
12926         * tests/test-mbschr.c: Likewise.
12927         * tests/test-mbscspn.c: Likewise.
12928         * tests/test-mbsinit.c: Likewise.
12929         * tests/test-mbsncasecmp.c: Likewise.
12930         * tests/test-mbsnrtowcs.c: Likewise.
12931         * tests/test-mbspbrk.c: Likewise.
12932         * tests/test-mbspcasecmp.c: Likewise.
12933         * tests/test-mbsrchr.c: Likewise.
12934         * tests/test-mbsrtowcs.c: Likewise.
12935         * tests/test-mbsspn.c: Likewise.
12936         * tests/test-mbsstr1.c: Likewise.
12937         * tests/test-mbsstr2.c: Likewise.
12938         * tests/test-mbsstr3.c: Likewise.
12939         * tests/test-memchr.c: Likewise.
12940         * tests/test-memchr2.c: Likewise.
12941         * tests/test-memcmp.c: Likewise.
12942         * tests/test-memmem.c: Likewise.
12943         * tests/test-memrchr.c: Likewise.
12944         * tests/test-mkdir.c: Likewise.
12945         * tests/test-mkdirat.c: Likewise.
12946         * tests/test-mkfifo.c: Likewise.
12947         * tests/test-mkfifoat.c: Likewise.
12948         * tests/test-mknod.c: Likewise.
12949         * tests/test-nanosleep.c: Likewise.
12950         * tests/test-nl_langinfo.c: Likewise.
12951         * tests/test-obstack-printf.c: Likewise.
12952         * tests/test-open.c: Likewise.
12953         * tests/test-openat.c: Likewise.
12954         * tests/test-pipe-filter-gi1.c: Likewise.
12955         * tests/test-pipe-filter-gi2-main.c: Likewise.
12956         * tests/test-pipe-filter-ii1.c: Likewise.
12957         * tests/test-pipe-filter-ii2-main.c: Likewise.
12958         * tests/test-pipe2.c: Likewise.
12959         * tests/test-popen.h: Likewise.
12960         * tests/test-posixtm.c: Likewise.
12961         * tests/test-pread.c: Likewise.
12962         * tests/test-printf-frexp.c: Likewise.
12963         * tests/test-printf-frexpl.c: Likewise.
12964         * tests/test-printf-posix.c: Likewise.
12965         * tests/test-priv-set.c: Likewise.
12966         * tests/test-quotearg.c: Likewise.
12967         * tests/test-random_r.c: Likewise.
12968         * tests/test-rawmemchr.c: Likewise.
12969         * tests/test-rbtree_list.c: Likewise.
12970         * tests/test-rbtree_oset.c: Likewise.
12971         * tests/test-rbtreehash_list.c: Likewise.
12972         * tests/test-readlink.c: Likewise.
12973         * tests/test-remove.c: Likewise.
12974         * tests/test-rename.c: Likewise.
12975         * tests/test-renameat.c: Likewise.
12976         * tests/test-rmdir.c: Likewise.
12977         * tests/test-round1.c: Likewise.
12978         * tests/test-roundf1.c: Likewise.
12979         * tests/test-roundl.c: Likewise.
12980         * tests/test-safe-alloc.c: Likewise.
12981         * tests/test-sameacls.c: Likewise.
12982         * tests/test-set-mode-acl.c: Likewise.
12983         * tests/test-setenv.c: Likewise.
12984         * tests/test-sigaction.c: Likewise.
12985         * tests/test-signbit.c: Likewise.
12986         * tests/test-sleep.c: Likewise.
12987         * tests/test-snprintf-posix.c: Likewise.
12988         * tests/test-snprintf.c: Likewise.
12989         * tests/test-sprintf-posix.c: Likewise.
12990         * tests/test-stat-time.c: Likewise.
12991         * tests/test-stat.c: Likewise.
12992         * tests/test-strcasestr.c: Likewise.
12993         * tests/test-strchrnul.c: Likewise.
12994         * tests/test-strerror.c: Likewise.
12995         * tests/test-striconv.c: Likewise.
12996         * tests/test-striconveh.c: Likewise.
12997         * tests/test-striconveha.c: Likewise.
12998         * tests/test-strsignal.c: Likewise.
12999         * tests/test-strstr.c: Likewise.
13000         * tests/test-strtod.c: Likewise.
13001         * tests/test-strverscmp.c: Likewise.
13002         * tests/test-symlink.c: Likewise.
13003         * tests/test-symlinkat.c: Likewise.
13004         * tests/test-trunc1.c: Likewise.
13005         * tests/test-trunc2.c: Likewise.
13006         * tests/test-truncf1.c: Likewise.
13007         * tests/test-truncf2.c: Likewise.
13008         * tests/test-truncl.c: Likewise.
13009         * tests/test-uname.c: Likewise.
13010         * tests/test-unlink.c: Likewise.
13011         * tests/test-unlinkat.c: Likewise.
13012         * tests/test-unsetenv.c: Likewise.
13013         * tests/test-usleep.c: Likewise.
13014         * tests/test-utimens.c: Likewise.
13015         * tests/test-utimensat.c: Likewise.
13016         * tests/test-vasnprintf-posix.c: Likewise.
13017         * tests/test-vasnprintf-posix2.c: Likewise.
13018         * tests/test-vasnprintf.c: Likewise.
13019         * tests/test-vasprintf-posix.c: Likewise.
13020         * tests/test-vasprintf.c: Likewise.
13021         * tests/test-vdprintf-posix.c: Likewise.
13022         * tests/test-vfprintf-posix.c: Likewise.
13023         * tests/test-vprintf-posix.c: Likewise.
13024         * tests/test-vsnprintf-posix.c: Likewise.
13025         * tests/test-vsnprintf.c: Likewise.
13026         * tests/test-vsprintf-posix.c: Likewise.
13027         * tests/test-wcrtomb.c: Likewise.
13028         * tests/test-wcsnrtombs.c: Likewise.
13029         * tests/test-wcsrtombs.c: Likewise.
13030         * tests/test-wctype.c: Likewise.
13031         * tests/test-wcwidth.c: Likewise.
13032         * tests/test-xfprintf-posix.c: Likewise.
13033         * tests/test-xmemdup0.c: Likewise.
13034         * tests/test-xprintf-posix.c: Likewise.
13035         * tests/test-xvasprintf.c: Likewise.
13036         * tests/unicase/test-locale-language.c: Likewise.
13037         * tests/unicase/test-mapping-part1.h: Likewise.
13038         * tests/unicase/test-predicate-part1.h: Likewise.
13039         * tests/unicase/test-u8-casecmp.c: Likewise.
13040         * tests/unicase/test-u8-casecoll.c: Likewise.
13041         * tests/unicase/test-u8-casefold.c: Likewise.
13042         * tests/unicase/test-u8-is-cased.c: Likewise.
13043         * tests/unicase/test-u8-is-casefolded.c: Likewise.
13044         * tests/unicase/test-u8-is-lowercase.c: Likewise.
13045         * tests/unicase/test-u8-is-titlecase.c: Likewise.
13046         * tests/unicase/test-u8-is-uppercase.c: Likewise.
13047         * tests/unicase/test-u8-tolower.c: Likewise.
13048         * tests/unicase/test-u8-totitle.c: Likewise.
13049         * tests/unicase/test-u8-toupper.c: Likewise.
13050         * tests/unicase/test-u16-casecmp.c: Likewise.
13051         * tests/unicase/test-u16-casecoll.c: Likewise.
13052         * tests/unicase/test-u16-casefold.c: Likewise.
13053         * tests/unicase/test-u16-is-cased.c: Likewise.
13054         * tests/unicase/test-u16-is-casefolded.c: Likewise.
13055         * tests/unicase/test-u16-is-lowercase.c: Likewise.
13056         * tests/unicase/test-u16-is-titlecase.c: Likewise.
13057         * tests/unicase/test-u16-is-uppercase.c: Likewise.
13058         * tests/unicase/test-u16-tolower.c: Likewise.
13059         * tests/unicase/test-u16-totitle.c: Likewise.
13060         * tests/unicase/test-u16-toupper.c: Likewise.
13061         * tests/unicase/test-u32-casecmp.c: Likewise.
13062         * tests/unicase/test-u32-casecoll.c: Likewise.
13063         * tests/unicase/test-u32-casefold.c: Likewise.
13064         * tests/unicase/test-u32-is-cased.c: Likewise.
13065         * tests/unicase/test-u32-is-casefolded.c: Likewise.
13066         * tests/unicase/test-u32-is-lowercase.c: Likewise.
13067         * tests/unicase/test-u32-is-titlecase.c: Likewise.
13068         * tests/unicase/test-u32-is-uppercase.c: Likewise.
13069         * tests/unicase/test-u32-tolower.c: Likewise.
13070         * tests/unicase/test-u32-totitle.c: Likewise.
13071         * tests/unicase/test-u32-toupper.c: Likewise.
13072         * tests/unicase/test-ulc-casecmp.c: Likewise.
13073         * tests/unicase/test-ulc-casecoll.c: Likewise.
13074         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
13075         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
13076         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
13077         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
13078         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
13079         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
13080         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
13081         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
13082         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
13083         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
13084         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
13085         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
13086         * tests/unictype/test-bidi_byname.c: Likewise.
13087         * tests/unictype/test-bidi_name.c: Likewise.
13088         * tests/unictype/test-bidi_of.c: Likewise.
13089         * tests/unictype/test-bidi_test.c: Likewise.
13090         * tests/unictype/test-block_list.c: Likewise.
13091         * tests/unictype/test-block_of.c: Likewise.
13092         * tests/unictype/test-block_test.c: Likewise.
13093         * tests/unictype/test-categ_and.c: Likewise.
13094         * tests/unictype/test-categ_and_not.c: Likewise.
13095         * tests/unictype/test-categ_byname.c: Likewise.
13096         * tests/unictype/test-categ_name.c: Likewise.
13097         * tests/unictype/test-categ_none.c: Likewise.
13098         * tests/unictype/test-categ_of.c: Likewise.
13099         * tests/unictype/test-categ_or.c: Likewise.
13100         * tests/unictype/test-categ_test_withtable.c: Likewise.
13101         * tests/unictype/test-combining.c: Likewise.
13102         * tests/unictype/test-decdigit.c: Likewise.
13103         * tests/unictype/test-digit.c: Likewise.
13104         * tests/unictype/test-mirror.c: Likewise.
13105         * tests/unictype/test-numeric.c: Likewise.
13106         * tests/unictype/test-pr_byname.c: Likewise.
13107         * tests/unictype/test-pr_test.c: Likewise.
13108         * tests/unictype/test-predicate-part1.h: Likewise.
13109         * tests/unictype/test-scripts.c: Likewise.
13110         * tests/unictype/test-sy_c_ident.c: Likewise.
13111         * tests/unictype/test-sy_java_ident.c: Likewise.
13112         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
13113         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
13114         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
13115         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
13116         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
13117         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
13118         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
13119         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
13120         * tests/uninorm/test-canonical-decomposition.c: Likewise.
13121         * tests/uninorm/test-compat-decomposition.c: Likewise.
13122         * tests/uninorm/test-composition.c: Likewise.
13123         * tests/uninorm/test-decomposing-form.c: Likewise.
13124         * tests/uninorm/test-decomposition.c: Likewise.
13125         * tests/uninorm/test-u8-nfc.c: Likewise.
13126         * tests/uninorm/test-u8-nfd.c: Likewise.
13127         * tests/uninorm/test-u8-nfkc.c: Likewise.
13128         * tests/uninorm/test-u8-nfkd.c: Likewise.
13129         * tests/uninorm/test-u8-normcmp.c: Likewise.
13130         * tests/uninorm/test-u8-normcoll.c: Likewise.
13131         * tests/uninorm/test-u16-nfc.c: Likewise.
13132         * tests/uninorm/test-u16-nfd.c: Likewise.
13133         * tests/uninorm/test-u16-nfkc.c: Likewise.
13134         * tests/uninorm/test-u16-nfkd.c: Likewise.
13135         * tests/uninorm/test-u16-normcmp.c: Likewise.
13136         * tests/uninorm/test-u16-normcoll.c: Likewise.
13137         * tests/uninorm/test-u32-nfc.c: Likewise.
13138         * tests/uninorm/test-u32-nfd.c: Likewise.
13139         * tests/uninorm/test-u32-nfkc.c: Likewise.
13140         * tests/uninorm/test-u32-nfkd.c: Likewise.
13141         * tests/uninorm/test-u32-normalize-big.c: Likewise.
13142         * tests/uninorm/test-u32-normcmp.c: Likewise.
13143         * tests/uninorm/test-u32-normcoll.c: Likewise.
13144         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
13145         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
13146         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
13147         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
13148         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
13149         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
13150         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
13151         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
13152         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
13153         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
13154         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
13155         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
13156         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
13157         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
13158         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
13159         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
13160         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
13161         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
13162         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
13163         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
13164         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
13165         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
13166         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
13167         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
13168         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
13169         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
13170         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
13171         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
13172         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
13173         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
13174         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
13175         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
13176         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
13177         * tests/uniwidth/test-u8-strwidth.c: Likewise.
13178         * tests/uniwidth/test-u8-width.c: Likewise.
13179         * tests/uniwidth/test-u16-strwidth.c: Likewise.
13180         * tests/uniwidth/test-u16-width.c: Likewise.
13181         * tests/uniwidth/test-u32-strwidth.c: Likewise.
13182         * tests/uniwidth/test-u32-width.c: Likewise.
13183         * tests/uniwidth/test-uc_width.c: Likewise.
13184         * tests/uniwidth/test-uc_width2.c: Likewise.
13185         * modules/acl-tests (Files): Add tests/macros.h.
13186         * modules/areadlink-tests (Files): Likewise.
13187         * modules/areadlink-with-size-tests (Files): Likewise.
13188         * modules/areadlinkat-tests (Files): Likewise.
13189         * modules/areadlinkat-with-size-tests (Files): Likewise.
13190         * modules/argmatch-tests (Files): Likewise.
13191         * modules/argv-iter-tests (Files): Likewise.
13192         * modules/array-list-tests (Files): Likewise.
13193         * modules/array-mergesort-tests (Files): Likewise.
13194         * modules/array-oset-tests (Files): Likewise.
13195         * modules/avltree-list-tests (Files): Likewise.
13196         * modules/avltree-oset-tests (Files): Likewise.
13197         * modules/avltreehash-list-tests (Files): Likewise.
13198         * modules/base64-tests (Files): Likewise.
13199         * modules/binary-io-tests (Files): Likewise.
13200         * modules/bitrotate-tests (Files): Likewise.
13201         * modules/btowc-tests (Files): Likewise.
13202         * modules/byteswap-tests (Files): Likewise.
13203         * modules/c-ctype-tests (Files): Likewise.
13204         * modules/c-stack-tests (Files): Likewise.
13205         * modules/c-strcase-tests (Files): Likewise.
13206         * modules/c-strcasestr-tests (Files): Likewise.
13207         * modules/c-strstr-tests (Files): Likewise.
13208         * modules/canonicalize-lgpl-tests (Files): Likewise.
13209         * modules/canonicalize-tests (Files): Likewise.
13210         * modules/carray-list-tests (Files): Likewise.
13211         * modules/ceilf-tests (Files): Likewise.
13212         * modules/ceill-tests (Files): Likewise.
13213         * modules/chown-tests (Files): Likewise.
13214         * modules/cloexec-tests (Files): Likewise.
13215         * modules/copy-file-tests (Files): Likewise.
13216         * modules/count-one-bits-tests (Files): Likewise.
13217         * modules/dprintf-posix-tests (Files): Likewise.
13218         * modules/dup2-tests (Files): Likewise.
13219         * modules/dup3-tests (Files): Likewise.
13220         * modules/duplocale-tests (Files): Likewise.
13221         * modules/fbufmode-tests (Files): Likewise.
13222         * modules/fchdir-tests (Files): Likewise.
13223         * modules/fcntl-safer-tests (Files): Likewise.
13224         * modules/fcntl-tests (Files): Likewise.
13225         * modules/fdopendir-tests (Files): Likewise.
13226         * modules/fdutimensat-tests (Files): Likewise.
13227         * modules/fflush-tests (Files): Likewise.
13228         * modules/filevercmp-tests (Files): Likewise.
13229         * modules/flock-tests (Files): Likewise.
13230         * modules/floorf-tests (Files): Likewise.
13231         * modules/floorl-tests (Files): Likewise.
13232         * modules/fnmatch-tests (Files): Likewise.
13233         * modules/fopen-safer-tests (Files): Likewise.
13234         * modules/fopen-tests (Files): Likewise.
13235         * modules/fpending-tests (Files): Likewise.
13236         * modules/fprintf-posix-tests (Files): Likewise.
13237         * modules/fpurge-tests (Files): Likewise.
13238         * modules/freadable-tests (Files): Likewise.
13239         * modules/freadahead-tests (Files): Likewise.
13240         * modules/freading-tests (Files): Likewise.
13241         * modules/freadptr-tests (Files): Likewise.
13242         * modules/freadseek-tests (Files): Likewise.
13243         * modules/freopen-tests (Files): Likewise.
13244         * modules/frexp-nolibm-tests (Files): Likewise.
13245         * modules/frexp-tests (Files): Likewise.
13246         * modules/frexpl-nolibm-tests (Files): Likewise.
13247         * modules/frexpl-tests (Files): Likewise.
13248         * modules/fseek-tests (Files): Likewise.
13249         * modules/fseeko-tests (Files): Likewise.
13250         * modules/fstrcmp-tests (Files): Likewise.
13251         * modules/fsync-tests (Files): Likewise.
13252         * modules/ftell-tests (Files): Likewise.
13253         * modules/ftello-tests (Files): Likewise.
13254         * modules/func-tests (Files): Likewise.
13255         * modules/futimens-tests (Files): Likewise.
13256         * modules/fwritable-tests (Files): Likewise.
13257         * modules/fwriting-tests (Files): Likewise.
13258         * modules/getcwd-tests (Files): Likewise.
13259         * modules/getdate-tests (Files): Likewise.
13260         * modules/getdelim-tests (Files): Likewise.
13261         * modules/getdtablesize-tests (Files): Likewise.
13262         * modules/getgroups-tests (Files): Likewise.
13263         * modules/getline-tests (Files): Likewise.
13264         * modules/getndelim2-tests (Files): Likewise.
13265         * modules/glob-tests (Files): Likewise.
13266         * modules/hash-tests (Files): Likewise.
13267         * modules/i-ring-tests (Files): Likewise.
13268         * modules/iconv-tests (Files): Likewise.
13269         * modules/iconv_open-utf-tests (Files): Likewise.
13270         * modules/idpriv-drop-tests (Files): Likewise.
13271         * modules/idpriv-droptemp-tests (Files): Likewise.
13272         * modules/inet_ntop-tests (Files): Likewise.
13273         * modules/inet_pton-tests (Files): Likewise.
13274         * modules/isblank-tests (Files): Likewise.
13275         * modules/isfinite-tests (Files): Likewise.
13276         * modules/isinf-tests (Files): Likewise.
13277         * modules/isnan-tests (Files): Likewise.
13278         * modules/isnand-nolibm-tests (Files): Likewise.
13279         * modules/isnand-tests (Files): Likewise.
13280         * modules/isnanf-nolibm-tests (Files): Likewise.
13281         * modules/isnanf-tests (Files): Likewise.
13282         * modules/isnanl-nolibm-tests (Files): Likewise.
13283         * modules/isnanl-tests (Files): Likewise.
13284         * modules/lchown-tests (Files): Likewise.
13285         * modules/ldexpl-tests (Files): Likewise.
13286         * modules/link-tests (Files): Likewise.
13287         * modules/linkat-tests (Files): Likewise.
13288         * modules/linked-list-tests (Files): Likewise.
13289         * modules/linkedhash-list-tests (Files): Likewise.
13290         * modules/localename-tests (Files): Likewise.
13291         * modules/lseek-tests (Files): Likewise.
13292         * modules/lstat-tests (Files): Likewise.
13293         * modules/mbmemcasecmp-tests (Files): Likewise.
13294         * modules/mbmemcasecoll-tests (Files): Likewise.
13295         * modules/mbrtowc-tests (Files): Likewise.
13296         * modules/mbscasecmp-tests (Files): Likewise.
13297         * modules/mbscasestr-tests (Files): Likewise.
13298         * modules/mbschr-tests (Files): Likewise.
13299         * modules/mbscspn-tests (Files): Likewise.
13300         * modules/mbsinit-tests (Files): Likewise.
13301         * modules/mbsncasecmp-tests (Files): Likewise.
13302         * modules/mbsnrtowcs-tests (Files): Likewise.
13303         * modules/mbspbrk-tests (Files): Likewise.
13304         * modules/mbspcasecmp-tests (Files): Likewise.
13305         * modules/mbsrchr-tests (Files): Likewise.
13306         * modules/mbsrtowcs-tests (Files): Likewise.
13307         * modules/mbsspn-tests (Files): Likewise.
13308         * modules/mbsstr-tests (Files): Likewise.
13309         * modules/memchr-tests (Files): Likewise.
13310         * modules/memchr2-tests (Files): Likewise.
13311         * modules/memcmp-tests (Files): Likewise.
13312         * modules/memmem-tests (Files): Likewise.
13313         * modules/memrchr-tests (Files): Likewise.
13314         * modules/mkdir-tests (Files): Likewise.
13315         * modules/mkfifo-tests (Files): Likewise.
13316         * modules/mkfifoat-tests (Files): Likewise.
13317         * modules/mknod-tests (Files): Likewise.
13318         * modules/nanosleep-tests (Files): Likewise.
13319         * modules/nl_langinfo-tests (Files): Likewise.
13320         * modules/obstack-printf-tests (Files): Likewise.
13321         * modules/open-tests (Files): Likewise.
13322         * modules/openat-tests (Files): Likewise.
13323         * modules/pipe-filter-gi-tests (Files): Likewise.
13324         * modules/pipe-filter-ii-tests (Files): Likewise.
13325         * modules/pipe2-tests (Files): Likewise.
13326         * modules/popen-safer-tests (Files): Likewise.
13327         * modules/popen-tests (Files): Likewise.
13328         * modules/posixtm-tests (Files): Likewise.
13329         * modules/pread-tests (Files): Likewise.
13330         * modules/printf-frexp-tests (Files): Likewise.
13331         * modules/printf-frexpl-tests (Files): Likewise.
13332         * modules/printf-posix-tests (Files): Likewise.
13333         * modules/priv-set-tests (Files): Likewise.
13334         * modules/quotearg-tests (Files): Likewise.
13335         * modules/random_r-tests (Files): Likewise.
13336         * modules/rawmemchr-tests (Files): Likewise.
13337         * modules/rbtree-list-tests (Files): Likewise.
13338         * modules/rbtree-oset-tests (Files): Likewise.
13339         * modules/rbtreehash-list-tests (Files): Likewise.
13340         * modules/readlink-tests (Files): Likewise.
13341         * modules/remove-tests (Files): Likewise.
13342         * modules/rename-tests (Files): Likewise.
13343         * modules/renameat-tests (Files): Likewise.
13344         * modules/rmdir-tests (Files): Likewise.
13345         * modules/round-tests (Files): Likewise.
13346         * modules/roundf-tests (Files): Likewise.
13347         * modules/roundl-tests (Files): Likewise.
13348         * modules/safe-alloc-tests (Files): Likewise.
13349         * modules/setenv-tests (Files): Likewise.
13350         * modules/sigaction-tests (Files): Likewise.
13351         * modules/signbit-tests (Files): Likewise.
13352         * modules/sleep-tests (Files): Likewise.
13353         * modules/snprintf-posix-tests (Files): Likewise.
13354         * modules/snprintf-tests (Files): Likewise.
13355         * modules/sprintf-posix-tests (Files): Likewise.
13356         * modules/stat-tests (Files): Likewise.
13357         * modules/stat-time-tests (Files): Likewise.
13358         * modules/strcasestr-tests (Files): Likewise.
13359         * modules/strchrnul-tests (Files): Likewise.
13360         * modules/strerror-tests (Files): Likewise.
13361         * modules/striconv-tests (Files): Likewise.
13362         * modules/striconveh-tests (Files): Likewise.
13363         * modules/striconveha-tests (Files): Likewise.
13364         * modules/strsignal-tests (Files): Likewise.
13365         * modules/strstr-tests (Files): Likewise.
13366         * modules/strtod-tests (Files): Likewise.
13367         * modules/strverscmp-tests (Files): Likewise.
13368         * modules/symlink-tests (Files): Likewise.
13369         * modules/symlinkat-tests (Files): Likewise.
13370         * modules/trunc-tests (Files): Likewise.
13371         * modules/truncf-tests (Files): Likewise.
13372         * modules/truncl-tests (Files): Likewise.
13373         * modules/uname-tests (Files): Likewise.
13374         * modules/unicase/cased-tests (Files): Likewise.
13375         * modules/unicase/ignorable-tests (Files): Likewise.
13376         * modules/unicase/locale-language-tests (Files): Likewise.
13377         * modules/unicase/tolower-tests (Files): Likewise.
13378         * modules/unicase/totitle-tests (Files): Likewise.
13379         * modules/unicase/toupper-tests (Files): Likewise.
13380         * modules/unicase/u8-casecmp-tests (Files): Likewise.
13381         * modules/unicase/u8-casecoll-tests (Files): Likewise.
13382         * modules/unicase/u8-casefold-tests (Files): Likewise.
13383         * modules/unicase/u8-is-cased-tests (Files): Likewise.
13384         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
13385         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
13386         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
13387         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
13388         * modules/unicase/u8-tolower-tests (Files): Likewise.
13389         * modules/unicase/u8-totitle-tests (Files): Likewise.
13390         * modules/unicase/u8-toupper-tests (Files): Likewise.
13391         * modules/unicase/u16-casecmp-tests (Files): Likewise.
13392         * modules/unicase/u16-casecoll-tests (Files): Likewise.
13393         * modules/unicase/u16-casefold-tests (Files): Likewise.
13394         * modules/unicase/u16-is-cased-tests (Files): Likewise.
13395         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
13396         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
13397         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
13398         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
13399         * modules/unicase/u16-tolower-tests (Files): Likewise.
13400         * modules/unicase/u16-totitle-tests (Files): Likewise.
13401         * modules/unicase/u16-toupper-tests (Files): Likewise.
13402         * modules/unicase/u32-casecmp-tests (Files): Likewise.
13403         * modules/unicase/u32-casecoll-tests (Files): Likewise.
13404         * modules/unicase/u32-casefold-tests (Files): Likewise.
13405         * modules/unicase/u32-is-cased-tests (Files): Likewise.
13406         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
13407         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
13408         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
13409         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
13410         * modules/unicase/u32-tolower-tests (Files): Likewise.
13411         * modules/unicase/u32-totitle-tests (Files): Likewise.
13412         * modules/unicase/u32-toupper-tests (Files): Likewise.
13413         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
13414         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
13415         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
13416         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
13417         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
13418         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
13419         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
13420         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
13421         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
13422         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
13423         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
13424         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
13425         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
13426         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
13427         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
13428         * modules/unictype/bidicategory-name-tests (Files): Likewise.
13429         * modules/unictype/bidicategory-of-tests (Files): Likewise.
13430         * modules/unictype/bidicategory-test-tests (Files): Likewise.
13431         * modules/unictype/block-list-tests (Files): Likewise.
13432         * modules/unictype/block-of-tests (Files): Likewise.
13433         * modules/unictype/block-test-tests (Files): Likewise.
13434         * modules/unictype/category-C-tests (Files): Likewise.
13435         * modules/unictype/category-Cc-tests (Files): Likewise.
13436         * modules/unictype/category-Cf-tests (Files): Likewise.
13437         * modules/unictype/category-Cn-tests (Files): Likewise.
13438         * modules/unictype/category-Co-tests (Files): Likewise.
13439         * modules/unictype/category-Cs-tests (Files): Likewise.
13440         * modules/unictype/category-L-tests (Files): Likewise.
13441         * modules/unictype/category-Ll-tests (Files): Likewise.
13442         * modules/unictype/category-Lm-tests (Files): Likewise.
13443         * modules/unictype/category-Lo-tests (Files): Likewise.
13444         * modules/unictype/category-Lt-tests (Files): Likewise.
13445         * modules/unictype/category-Lu-tests (Files): Likewise.
13446         * modules/unictype/category-M-tests (Files): Likewise.
13447         * modules/unictype/category-Mc-tests (Files): Likewise.
13448         * modules/unictype/category-Me-tests (Files): Likewise.
13449         * modules/unictype/category-Mn-tests (Files): Likewise.
13450         * modules/unictype/category-N-tests (Files): Likewise.
13451         * modules/unictype/category-Nd-tests (Files): Likewise.
13452         * modules/unictype/category-Nl-tests (Files): Likewise.
13453         * modules/unictype/category-No-tests (Files): Likewise.
13454         * modules/unictype/category-P-tests (Files): Likewise.
13455         * modules/unictype/category-Pc-tests (Files): Likewise.
13456         * modules/unictype/category-Pd-tests (Files): Likewise.
13457         * modules/unictype/category-Pe-tests (Files): Likewise.
13458         * modules/unictype/category-Pf-tests (Files): Likewise.
13459         * modules/unictype/category-Pi-tests (Files): Likewise.
13460         * modules/unictype/category-Po-tests (Files): Likewise.
13461         * modules/unictype/category-Ps-tests (Files): Likewise.
13462         * modules/unictype/category-S-tests (Files): Likewise.
13463         * modules/unictype/category-Sc-tests (Files): Likewise.
13464         * modules/unictype/category-Sk-tests (Files): Likewise.
13465         * modules/unictype/category-Sm-tests (Files): Likewise.
13466         * modules/unictype/category-So-tests (Files): Likewise.
13467         * modules/unictype/category-Z-tests (Files): Likewise.
13468         * modules/unictype/category-Zl-tests (Files): Likewise.
13469         * modules/unictype/category-Zp-tests (Files): Likewise.
13470         * modules/unictype/category-Zs-tests (Files): Likewise.
13471         * modules/unictype/category-and-not-tests (Files): Likewise.
13472         * modules/unictype/category-and-tests (Files): Likewise.
13473         * modules/unictype/category-byname-tests (Files): Likewise.
13474         * modules/unictype/category-name-tests (Files): Likewise.
13475         * modules/unictype/category-none-tests (Files): Likewise.
13476         * modules/unictype/category-of-tests (Files): Likewise.
13477         * modules/unictype/category-or-tests (Files): Likewise.
13478         * modules/unictype/category-test-withtable-tests (Files): Likewise.
13479         * modules/unictype/combining-class-tests (Files): Likewise.
13480         * modules/unictype/ctype-alnum-tests (Files): Likewise.
13481         * modules/unictype/ctype-alpha-tests (Files): Likewise.
13482         * modules/unictype/ctype-blank-tests (Files): Likewise.
13483         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
13484         * modules/unictype/ctype-digit-tests (Files): Likewise.
13485         * modules/unictype/ctype-graph-tests (Files): Likewise.
13486         * modules/unictype/ctype-lower-tests (Files): Likewise.
13487         * modules/unictype/ctype-print-tests (Files): Likewise.
13488         * modules/unictype/ctype-punct-tests (Files): Likewise.
13489         * modules/unictype/ctype-space-tests (Files): Likewise.
13490         * modules/unictype/ctype-upper-tests (Files): Likewise.
13491         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
13492         * modules/unictype/decimal-digit-tests (Files): Likewise.
13493         * modules/unictype/digit-tests (Files): Likewise.
13494         * modules/unictype/mirror-tests (Files): Likewise.
13495         * modules/unictype/numeric-tests (Files): Likewise.
13496         * modules/unictype/property-alphabetic-tests (Files): Likewise.
13497         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
13498         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
13499         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
13500         Likewise.
13501         * modules/unictype/property-bidi-block-separator-tests (Files):
13502         Likewise.
13503         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
13504         Likewise.
13505         * modules/unictype/property-bidi-common-separator-tests (Files):
13506         Likewise.
13507         * modules/unictype/property-bidi-control-tests (Files): Likewise.
13508         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
13509         Likewise.
13510         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
13511         Likewise.
13512         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
13513         Likewise.
13514         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
13515         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
13516         Likewise.
13517         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
13518         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
13519         Likewise.
13520         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
13521         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
13522         * modules/unictype/property-bidi-segment-separator-tests (Files):
13523         Likewise.
13524         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
13525         * modules/unictype/property-byname-tests (Files): Likewise.
13526         * modules/unictype/property-combining-tests (Files): Likewise.
13527         * modules/unictype/property-composite-tests (Files): Likewise.
13528         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
13529         * modules/unictype/property-dash-tests (Files): Likewise.
13530         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
13531         * modules/unictype/property-default-ignorable-code-point-tests (Files):
13532         Likewise.
13533         * modules/unictype/property-deprecated-tests (Files): Likewise.
13534         * modules/unictype/property-diacritic-tests (Files): Likewise.
13535         * modules/unictype/property-extender-tests (Files): Likewise.
13536         * modules/unictype/property-format-control-tests (Files): Likewise.
13537         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
13538         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
13539         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
13540         * modules/unictype/property-hex-digit-tests (Files): Likewise.
13541         * modules/unictype/property-hyphen-tests (Files): Likewise.
13542         * modules/unictype/property-id-continue-tests (Files): Likewise.
13543         * modules/unictype/property-id-start-tests (Files): Likewise.
13544         * modules/unictype/property-ideographic-tests (Files): Likewise.
13545         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
13546         * modules/unictype/property-ids-trinary-operator-tests (Files):
13547         Likewise.
13548         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
13549         * modules/unictype/property-iso-control-tests (Files): Likewise.
13550         * modules/unictype/property-join-control-tests (Files): Likewise.
13551         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
13552         * modules/unictype/property-line-separator-tests (Files): Likewise.
13553         * modules/unictype/property-logical-order-exception-tests (Files):
13554         Likewise.
13555         * modules/unictype/property-lowercase-tests (Files): Likewise.
13556         * modules/unictype/property-math-tests (Files): Likewise.
13557         * modules/unictype/property-non-break-tests (Files): Likewise.
13558         * modules/unictype/property-not-a-character-tests (Files): Likewise.
13559         * modules/unictype/property-numeric-tests (Files): Likewise.
13560         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
13561         * modules/unictype/property-other-default-ignorable-code-point-tests
13562         (Files): Likewise.
13563         * modules/unictype/property-other-grapheme-extend-tests (Files):
13564         Likewise.
13565         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
13566         * modules/unictype/property-other-id-start-tests (Files): Likewise.
13567         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
13568         * modules/unictype/property-other-math-tests (Files): Likewise.
13569         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
13570         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
13571         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
13572         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
13573         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
13574         * modules/unictype/property-private-use-tests (Files): Likewise.
13575         * modules/unictype/property-punctuation-tests (Files): Likewise.
13576         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
13577         * modules/unictype/property-radical-tests (Files): Likewise.
13578         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
13579         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
13580         * modules/unictype/property-space-tests (Files): Likewise.
13581         * modules/unictype/property-terminal-punctuation-tests (Files):
13582         Likewise.
13583         * modules/unictype/property-test-tests (Files): Likewise.
13584         * modules/unictype/property-titlecase-tests (Files): Likewise.
13585         * modules/unictype/property-unassigned-code-value-tests (Files):
13586         Likewise.
13587         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
13588         * modules/unictype/property-uppercase-tests (Files): Likewise.
13589         * modules/unictype/property-variation-selector-tests (Files): Likewise.
13590         * modules/unictype/property-white-space-tests (Files): Likewise.
13591         * modules/unictype/property-xid-continue-tests (Files): Likewise.
13592         * modules/unictype/property-xid-start-tests (Files): Likewise.
13593         * modules/unictype/property-zero-width-tests (Files): Likewise.
13594         * modules/unictype/scripts-tests (Files): Likewise.
13595         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
13596         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
13597         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
13598         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
13599         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
13600         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
13601         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
13602         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
13603         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
13604         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
13605         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
13606         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
13607         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
13608         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
13609         * modules/uninorm/composition-tests (Files): Likewise.
13610         * modules/uninorm/decomposing-form-tests (Files): Likewise.
13611         * modules/uninorm/decomposition-tests (Files): Likewise.
13612         * modules/uninorm/filter-tests (Files): Likewise.
13613         * modules/uninorm/nfc-tests (Files): Likewise.
13614         * modules/uninorm/nfd-tests (Files): Likewise.
13615         * modules/uninorm/nfkc-tests (Files): Likewise.
13616         * modules/uninorm/nfkd-tests (Files): Likewise.
13617         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
13618         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
13619         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
13620         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
13621         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
13622         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
13623         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
13624         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
13625         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
13626         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
13627         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
13628         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
13629         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
13630         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
13631         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
13632         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
13633         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
13634         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
13635         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
13636         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
13637         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
13638         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
13639         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
13640         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
13641         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
13642         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
13643         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
13644         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
13645         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
13646         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
13647         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
13648         * modules/uniwidth/u8-width-tests (Files): Likewise.
13649         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
13650         * modules/uniwidth/u16-width-tests (Files): Likewise.
13651         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
13652         * modules/uniwidth/u32-width-tests (Files): Likewise.
13653         * modules/uniwidth/width-tests (Files): Likewise.
13654         * modules/unlink-tests (Files): Likewise.
13655         * modules/unsetenv-tests (Files): Likewise.
13656         * modules/usleep-tests (Files): Likewise.
13657         * modules/utimens-tests (Files): Likewise.
13658         * modules/utimensat-tests (Files): Likewise.
13659         * modules/vasnprintf-posix-tests (Files): Likewise.
13660         * modules/vasnprintf-tests (Files): Likewise.
13661         * modules/vasprintf-posix-tests (Files): Likewise.
13662         * modules/vasprintf-tests (Files): Likewise.
13663         * modules/vdprintf-posix-tests (Files): Likewise.
13664         * modules/vfprintf-posix-tests (Files): Likewise.
13665         * modules/vprintf-posix-tests (Files): Likewise.
13666         * modules/vsnprintf-posix-tests (Files): Likewise.
13667         * modules/vsnprintf-tests (Files): Likewise.
13668         * modules/vsprintf-posix-tests (Files): Likewise.
13669         * modules/wcrtomb-tests (Files): Likewise.
13670         * modules/wcsnrtombs-tests (Files): Likewise.
13671         * modules/wcsrtombs-tests (Files): Likewise.
13672         * modules/wctype-tests (Files): Likewise.
13673         * modules/wcwidth-tests (Files): Likewise.
13674         * modules/xmemdup0-tests (Files): Likewise.
13675         * modules/xprintf-posix-tests (Files): Likewise.
13676         * modules/xvasprintf-tests (Files): Likewise.
13677
13678 2009-12-24  Eric Blake  <ebb9@byu.net>
13679
13680         test-nanosleep: fix typo
13681         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
13682         patch.
13683         Reported by Bruno Haible.
13684
13685 2009-12-24  Bruno Haible  <bruno@clisp.org>
13686
13687         Reduce namespace pollution on glibc systems.
13688         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
13689         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
13690         systems.
13691         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
13692         <getopt.h> on glibc systems.
13693         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
13694         systems.
13695         * lib/fcntl.c: Include <unistd.h> here instead.
13696
13697 2009-12-24  Bruno Haible  <bruno@clisp.org>
13698
13699         * lib/stdlib.in.h (includes): Fix typo in today's commit.
13700
13701 2009-12-24  Eric Blake  <ebb9@byu.net>
13702
13703         tests: add signature checks
13704         * tests/signature.h (SIGNATURE_CHECK): New file.
13705         * modules/atexit-tests (Files): Use it.
13706         * modules/btowc-tests (Files): Likewise.
13707         * modules/canonicalize-lgpl-tests (Files): Likewise.
13708         * modules/ceilf-tests (Files): Likewise.
13709         * modules/ceill-tests (Files): Likewise.
13710         * modules/chown-tests (Files): Likewise.
13711         * modules/dprintf-posix-tests (Files): Likewise.
13712         * modules/dup2-tests (Files): Likewise.
13713         * modules/dup3-tests (Files): Likewise.
13714         * modules/duplocale-tests (Files): Likewise.
13715         * modules/fchdir-tests (Files): Likewise.
13716         * modules/fcntl-tests (Files): Likewise.
13717         * modules/fdopendir-tests (Files): Likewise.
13718         * modules/fflush-tests (Files): Likewise.
13719         * modules/flock-tests (Files): Likewise.
13720         * modules/floorf-tests (Files): Likewise.
13721         * modules/floorl-tests (Files): Likewise.
13722         * modules/fnmatch-tests (Files): Likewise.
13723         * modules/fopen-tests (Files): Likewise.
13724         * modules/fprintf-posix-tests (Files): Likewise.
13725         * modules/freopen-tests (Files): Likewise.
13726         * modules/frexp-nolibm-tests (Files): Likewise.
13727         * modules/frexp-tests (Files): Likewise.
13728         * modules/frexpl-nolibm-tests (Files): Likewise.
13729         * modules/frexpl-tests (Files): Likewise.
13730         * modules/fseek-tests (Files): Likewise.
13731         * modules/fseeko-tests (Files): Likewise.
13732         * modules/fsync-tests (Files): Likewise.
13733         * modules/ftell-tests (Files): Likewise.
13734         * modules/ftello-tests (Files): Likewise.
13735         * modules/futimens-tests (Files): Likewise.
13736         * modules/getaddrinfo-tests (Files): Likewise.
13737         * modules/getcwd-tests (Files): Likewise.
13738         * modules/getdelim-tests (Files): Likewise.
13739         * modules/getdtablesize-tests (Files): Likewise.
13740         * modules/getgroups-tests (Files): Likewise.
13741         * modules/gethostname-tests (Files): Likewise.
13742         * modules/getline-tests (Files): Likewise.
13743         * modules/getopt-posix-tests (Files): Likewise.
13744         * modules/gettimeofday-tests (Files): Likewise.
13745         * modules/glob-tests (Files): Likewise.
13746         * modules/iconv-tests (Files): Likewise.
13747         * modules/inet_ntop-tests (Files): Likewise.
13748         * modules/inet_pton-tests (Files): Likewise.
13749         * modules/isblank-tests (Files): Likewise.
13750         * modules/lchown-tests (Files): Likewise.
13751         * modules/ldexpl-tests (Files): Likewise.
13752         * modules/link-tests (Files): Likewise.
13753         * modules/linkat-tests (Files): Likewise.
13754         * modules/lseek-tests (Files): Likewise.
13755         * modules/lstat-tests (Files): Likewise.
13756         * modules/mbrtowc-tests (Files): Likewise.
13757         * modules/mbsinit-tests (Files): Likewise.
13758         * modules/mbsnrtowcs-tests (Files): Likewise.
13759         * modules/mbsrtowcs-tests (Files): Likewise.
13760         * modules/memchr-tests (Files): Likewise.
13761         * modules/memcmp-tests (Files): Likewise.
13762         * modules/memmem-tests (Files): Likewise.
13763         * modules/memrchr-tests (Files): Likewise.
13764         * modules/mkdir-tests (Files): Likewise.
13765         * modules/mkfifo-tests (Files): Likewise.
13766         * modules/mkfifoat-tests (Files): Likewise.
13767         * modules/mknod-tests (Files): Likewise.
13768         * modules/nanosleep-tests (Files): Likewise.
13769         * modules/nl_langinfo-tests (Files): Likewise.
13770         * modules/obstack-printf-tests (Files): Likewise.
13771         * modules/open-tests (Files): Likewise.
13772         * modules/openat-tests (Files): Likewise.
13773         * modules/perror-tests (Files): Likewise.
13774         * modules/pipe2-tests (Files): Likewise.
13775         * modules/poll-tests (Files): Likewise.
13776         * modules/popen-tests (Files): Likewise.
13777         * modules/posix_spawn-tests (Files): Likewise.
13778         * modules/posix_spawnp-tests (Files): Likewise.
13779         * modules/pread-tests (Files): Likewise.
13780         * modules/printf-posix-tests (Files): Likewise.
13781         * modules/pty-tests (Files): Likewise.
13782         * modules/random_r-tests (Files): Likewise.
13783         * modules/rawmemchr-tests (Files): Likewise.
13784         * modules/readlink-tests (Files): Likewise.
13785         * modules/remove-tests (Files): Likewise.
13786         * modules/rename-tests (Files): Likewise.
13787         * modules/renameat-tests (Files): Likewise.
13788         * modules/rmdir-tests (Files): Likewise.
13789         * modules/round-tests (Files): Likewise.
13790         * modules/roundf-tests (Files): Likewise.
13791         * modules/roundl-tests (Files): Likewise.
13792         * modules/select-tests (Files): Likewise.
13793         * modules/setenv-tests (Files): Likewise.
13794         * modules/sigaction-tests (Files): Likewise.
13795         * modules/sleep-tests (Files): Likewise.
13796         * modules/snprintf-posix-tests (Files): Likewise.
13797         * modules/snprintf-tests (Files): Likewise.
13798         * modules/sprintf-posix-tests (Files): Likewise.
13799         * modules/stat-tests (Files): Likewise.
13800         * modules/strcasestr-tests (Files): Likewise.
13801         * modules/strchrnul-tests (Files): Likewise.
13802         * modules/strerror-tests (Files): Likewise.
13803         * modules/strsignal-tests (Files): Likewise.
13804         * modules/strstr-tests (Files): Likewise.
13805         * modules/strtod-tests (Files): Likewise.
13806         * modules/strverscmp-tests (Files): Likewise.
13807         * modules/symlink-tests (Files): Likewise.
13808         * modules/symlinkat-tests (Files): Likewise.
13809         * modules/times-tests (Files): Likewise.
13810         * modules/trunc-tests (Files): Likewise.
13811         * modules/truncf-tests (Files): Likewise.
13812         * modules/truncl-tests (Files): Likewise.
13813         * modules/tsearch-tests (Files): Likewise.
13814         * modules/uname-tests (Files): Likewise.
13815         * modules/unlink-tests (Files): Likewise.
13816         * modules/unsetenv-tests (Files): Likewise.
13817         * modules/usleep-tests (Files): Likewise.
13818         * modules/utimensat-tests (Files): Likewise.
13819         * modules/vasprintf-tests (Files): Likewise.
13820         * modules/vdprintf-posix-tests (Files): Likewise.
13821         * modules/vfprintf-posix-tests (Files): Likewise.
13822         * modules/vprintf-posix-tests (Files): Likewise.
13823         * modules/vsnprintf-posix-tests (Files): Likewise.
13824         * modules/vsnprintf-tests (Files): Likewise.
13825         * modules/vsprintf-posix-tests (Files): Likewise.
13826         * modules/wcrtomb-tests (Files): Likewise.
13827         * modules/wcsnrtombs-tests (Files): Likewise.
13828         * modules/wcsrtombs-tests (Files): Likewise.
13829         * modules/wcwidth-tests (Files): Likewise.
13830         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
13831         * tests/test-isinf.c (isinf): Likewise.
13832         * tests/test-isnan.c (isnan): Likewise.
13833         * tests/test-signbit.c (signbit): Likewise.
13834         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
13835         declaration, either as macro or with correct signature.
13836         (select): Ensure function under test is declared with correct
13837         signature in correct header.
13838         * tests/test-atexit.c (atexit): Likewise.
13839         * tests/test-btowc.c (btowc): Likewise.
13840         * tests/test-canonicalize-lgpl.c (realpath)
13841         (canonicalize_file_name): Likewise.
13842         * tests/test-ceilf1.c (ceilf): Likewise.
13843         * tests/test-ceill.c (ceill): Likewise.
13844         * tests/test-chown.c (chown): Likewise.
13845         * tests/test-dprintf-posix.c (dprintf): Likewise.
13846         * tests/test-dup2.c (dup2): Likewise.
13847         * tests/test-dup3.c (dup3): Likewise.
13848         * tests/test-duplocale.c (duplocale): Likewise.
13849         * tests/test-fchdir.c (fchdir): Likewise.
13850         * tests/test-fchownat.c (fchownat): Likewise.
13851         * tests/test-fcntl.c (fcntl): Likewise.
13852         * tests/test-fdopendir.c (fdopendir): Likewise.
13853         * tests/test-fflush.c (fflush): Likewise.
13854         * tests/test-flock.c (flock): Likewise.
13855         * tests/test-floorf1.c (floorf): Likewise.
13856         * tests/test-floorl.c (floorl): Likewise.
13857         * tests/test-fnmatch.c (fnmatch): Likewise.
13858         * tests/test-fopen.c (fopen): Likewise.
13859         * tests/test-fprintf-posix.c (fprintf): Likewise.
13860         * tests/test-freopen.c (freopen): Likewise.
13861         * tests/test-frexp.c (frexp): Likewise.
13862         * tests/test-frexpl.c (frexpl): Likewise.
13863         * tests/test-fseek.c (fseek): Likewise.
13864         * tests/test-fseeko.c (fseeko): Likewise.
13865         * tests/test-fstatat.c (fstatat): Likewise.
13866         * tests/test-fsync.c (fsync): Likewise.
13867         * tests/test-ftell.c (ftell): Likewise.
13868         * tests/test-ftello.c (ftello): Likewise.
13869         * tests/test-futimens.c (futimens): Likewise.
13870         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
13871         (gai_strerror): Likewise.
13872         * tests/test-getcwd.c (getcwd): Likewise.
13873         * tests/test-getdelim.c (getdelim): Likewise.
13874         * tests/test-getdtablesize.c (getdtablesize): Likewise.
13875         * tests/test-getgroups.c (getgroups): Likewise.
13876         * tests/test-gethostname.c (gethostname): Likewise.
13877         * tests/test-getline.c (getline): Likewise.
13878         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
13879         Likewise.
13880         * tests/test-gettimeofday.c (gettimeofday): Likewise.
13881         * tests/test-glob.c (glob, globfree): Likewise.
13882         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
13883         * tests/test-inet_ntop.c (inet_ntop): Likewise.
13884         * tests/test-inet_pton.c (inet_pton): Likewise.
13885         * tests/test-isblank.c (isblank): Likewise.
13886         * tests/test-lchown.c (lchown): Likewise.
13887         * tests/test-ldexpl.c (ldexpl): Likewise.
13888         * tests/test-link.c (link): Likewise.
13889         * tests/test-linkat.c (linkat): Likewise.
13890         * tests/test-lseek.c (lseek): Likewise.
13891         * tests/test-lstat.c (lstat): Likewise.
13892         * tests/test-mbrtowc.c (mbrtowc): Likewise.
13893         * tests/test-mbsinit.c (mbsinit): Likewise.
13894         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
13895         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
13896         * tests/test-memchr.c (memchr): Likewise.
13897         * tests/test-memcmp.c (memcmp): Likewise.
13898         * tests/test-memmem.c (memmem): Likewise.
13899         * tests/test-memrchr.c (memrchr): Likewise.
13900         * tests/test-mkdir.c (mkdir): Likewise.
13901         * tests/test-mkdirat.c (mkdirat): Likewise.
13902         * tests/test-mkfifo.c (mkfifo): Likewise.
13903         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
13904         * tests/test-mknod.c (mknod): Likewise.
13905         * tests/test-nanosleep.c (nanosleep): Likewise.
13906         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
13907         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
13908         Likewise.
13909         * tests/test-open.c (open): Likewise.
13910         * tests/test-openat.c (openat): Likewise.
13911         * tests/test-perror.c (perror): Likewise.
13912         * tests/test-pipe2.c (pipe2): Likewise.
13913         * tests/test-poll.c (poll): Likewise.
13914         * tests/test-popen.c (popen, pclose): Likewise.
13915         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
13916         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
13917         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
13918         (posix_spawn_file_actions_destroy)
13919         (posix_spawn_file_actions_addclose)
13920         (posix_spawn_file_actions_addopen)
13921         (posix_spawn_file_actions_adddup2): Likewise.
13922         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
13923         * tests/test-pread.c (pread): Likewise.
13924         * tests/test-printf-posix.c (printf): Likewise.
13925         * tests/test-pty.c (openpty, forkpty): Likewise.
13926         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
13927         (random_r): Likewise.
13928         * tests/test-rawmemchr.c (rawmemchr): Likewise.
13929         * tests/test-readlink.c (readlink): Likewise.
13930         * tests/test-remove.c (remove): Likewise.
13931         * tests/test-rename.c (rename): Likewise.
13932         * tests/test-renameat.c (renameat): Likewise.
13933         * tests/test-rmdir.c (rmdir): Likewise.
13934         * tests/test-round1.c (round): Likewise.
13935         * tests/test-roundf1.c (roundf): Likewise.
13936         * tests/test-roundl.c (roundl): Likewise.
13937         * tests/test-setenv.c (setenv): Likewise.
13938         * tests/test-sigaction.c (sigaction): Likewise.
13939         * tests/test-sleep.c (sleep): Likewise.
13940         * tests/test-snprintf.c (snprintf): Likewise.
13941         * tests/test-sprintf-posix.c (sprintf): Likewise.
13942         * tests/test-stat.c (stat): Likewise.
13943         * tests/test-stpncpy.c (stpncpy): Likewise.
13944         * tests/test-strcasestr.c (strcasestr): Likewise.
13945         * tests/test-strchrnul.c (strchrnul): Likewise.
13946         * tests/test-strerror.c (strerror): Likewise.
13947         * tests/test-strsignal.c (strsignal): Likewise.
13948         * tests/test-strstr.c (strstr): Likewise.
13949         * tests/test-strtod.c (strtod): Likewise.
13950         * tests/test-strverscmp.c (strverscmp): Likewise.
13951         * tests/test-symlink.c (symlink): Likewise.
13952         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
13953         * tests/test-times.c (times): Likewise.
13954         * tests/test-trunc1.c (trunc): Likewise.
13955         * tests/test-truncf1.c (truncf): Likewise.
13956         * tests/test-truncl.c (truncl): Likewise.
13957         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
13958         Likewise.
13959         * tests/test-uname.c (uname): Likewise.
13960         * tests/test-unlink.c (unlink): Likewise.
13961         * tests/test-unlinkat.c (unlinkat): Likewise.
13962         * tests/test-unsetenv.c (unsetenv): Likewise.
13963         * tests/test-usleep.c (usleep): Likewise.
13964         * tests/test-utimensat.c (utimensat): Likewise.
13965         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
13966         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
13967         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
13968         * tests/test-vprintf-posix.c (vprintf): Likewise.
13969         * tests/test-vsnprintf.c (vsnprintf): Likewise.
13970         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
13971         * tests/test-wcrtomb.c (wcrtomb): Likewise.
13972         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
13973         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
13974         * tests/test-wcwidth.c (wcwidth): Likewise.
13975
13976         build: pull in conditional headers during GNULIB_POSIXCHECK
13977         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
13978         definitions from any conditionally-included headers.
13979         * lib/stdlib.in.h (includes): Likewise.
13980         * lib/unistd.in.h (includes): Likewise.
13981
13982 2009-12-24  Bruno Haible  <bruno@clisp.org>
13983
13984         * tests/test-argv-iter.c: Include header file being tested immediately
13985         after config.h.
13986         * tests/test-base64.c: Likewise.
13987         * tests/test-flock.c: Likewise.
13988         * tests/test-fsync.c: Likewise.
13989         * tests/test-getdate.c: Likewise.
13990         * tests/test-getndelim2.c: Likewise.
13991         * tests/test-isfinite.c: Likewise.
13992         * tests/test-isinf.c: Likewise.
13993         * tests/test-strerror.c: Likewise.
13994         * tests/test-strsignal.c: Likewise.
13995
13996 2009-12-23  Eric Blake  <ebb9@byu.net>
13997
13998         unistd: work around cygwin bug
13999         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
14000         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
14001         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14002
14003 2009-12-23  Bruno Haible  <bruno@clisp.org>
14004
14005         localename: More tests.
14006         * tests/test-localename.c (SIZEOF): New macro.
14007         (categories): New variable.
14008         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
14009         test_locale_name_default): Add test w.r.t. thread locale.
14010         (test_locale_name_thread): New function.
14011         (main): Invoke it.
14012
14013         localename: Make aware of thread locale.
14014         * lib/localename.h (gl_locale_name_thread): New declaration.
14015         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
14016         behaviour with respect to thread locale.
14017         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
14018         <langinfo.h>, glthread/lock.h.
14019         (SIZE_BITS): New macro.
14020         (string_hash): New function.
14021         (struct hash_node): New type.
14022         (HASH_TABLE_SIZE): New macro.
14023         (struniq_hash_table, struniq_lock): New variables.
14024         (struniq): New function.
14025         (gl_locale_name_thread): New function.
14026         (gl_locale_name): Invoke it.
14027         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
14028         * modules/localename (Depends-on): Add lock.
14029         Reported by Mike Gran <spk121@yahoo.com>.
14030
14031 2009-12-23  Eric Blake  <ebb9@byu.net>
14032
14033         va-args: new module
14034         * modules/va-args: New file.
14035         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
14036         * MODULES.html.sh (Core language properties): Mention it.
14037
14038         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
14039         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
14040         named alias for __attribute__((__unused__)).
14041         * lib/chown.c: Update client.
14042         * lib/fchmodat.c: Likewise.
14043         * lib/fts.c: Likewise.
14044         * lib/getdate.y: Likewise.
14045         * lib/getgroups.c: Likewise.
14046         * lib/getopt.c: Likewise.
14047         * lib/getugroups.c: Likewise.
14048         * lib/mkdir.c: Likewise.
14049         * lib/mkfifo.c: Likewise.
14050         * lib/mkfifoat.c: Likewise.
14051         * lib/mknod.c: Likewise.
14052         * lib/mknodat.c: Likewise.
14053         * lib/readlink.c: Likewise.
14054         * lib/se-context.in.h: Likewise.
14055         * lib/se-selinux.in.h: Likewise.
14056         * lib/sockets.c: Likewise.
14057         * lib/symlink.c: Likewise.
14058         * lib/symlinkat.c: Likewise.
14059         * lib/unicodeio.c: Likewise.
14060         * lib/unistr.h: Likewise.
14061         * tests/test-areadlink.c: Likewise.
14062         * tests/test-areadlinkat.c: Likewise.
14063         * tests/test-filenamecat.c: Likewise.
14064         * tests/test-fseeko.c: Likewise.
14065         * tests/test-ftello.c: Likewise.
14066         * tests/test-getdate.c: Likewise.
14067         * tests/test-getgroups.c: Likewise.
14068         * tests/test-gethostname.c: Likewise.
14069         * tests/test-quotearg.c: Likewise.
14070         * tests/test-version-etc.c: Likewise.
14071         * tests/test-xalloc-die.c: Likewise.
14072         * tests/test-xfprintf-posix.c: Likewise.
14073         * tests/test-xprintf-posix.c: Likewise.
14074         * tests/test-xvasprintf.c: Likewise.
14075
14076         tests: avoid compiler warnings
14077         * tests/test-fcntl.c (main): Delete unused parameters.
14078         * tests/test-freopen-safer.c (main): Likewise.
14079         * tests/test-xalloc-die.c (main): Mark unused parameters.
14080         * tests/test-fseeko.c (main): Likewise.
14081         * tests/test-ftello.c (main): Likewise.
14082         * tests/test-nanosleep.c (main): Avoid declaration warning.
14083         * tests/test-sleep.c (main): Likewise.
14084         * tests/test-unsetenv.c (main): Silence warning about string
14085         literal.
14086         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
14087
14088 2009-12-23  Bruno Haible  <bruno@clisp.org>
14089
14090         * tests/test-localename.c (test_locale_name): New function, extracted
14091         from main. Also test mixed situations.
14092         (test_locale_name_posix, test_locale_name_environ,
14093         test_locale_name_default): New functions.
14094         (main): Invoke them all.
14095         * modules/localename-tests (configure.ac): Test for newlocale.
14096
14097 2009-12-23  Bruno Haible  <bruno@clisp.org>
14098
14099         unistd: Ensure getcwd gets declared before being overridden.
14100         * lib/unistd.in.h: Conditionally include <io.h>.
14101
14102 2009-12-22  Bruno Haible  <bruno@clisp.org>
14103
14104         wchar: Diagnose broken combination of glibc and gcc versions and flags.
14105         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
14106         (gl_WCHAR_H): Invoke it.
14107         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
14108         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
14109         Reported by Karl Berry <karl@freefriends.org>.
14110
14111 2009-12-22  Eric Blake  <ebb9@byu.net>
14112
14113         math, unistd: avoid redundant includes
14114         * lib/math.in.h (isnan): No need to re-include <math.h>.
14115         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
14116
14117         getsubopt: work around cygwin bug
14118         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
14119         avoid conflicting with system getsubopt.
14120         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
14121         bug.
14122
14123         getopt: synchronize from glibc
14124         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
14125         parameter order.  Adjust all callers.
14126         (_getopt_internal_r, main): Adjust quoting in error messages.
14127         Drop considerations for outdated POSIX 1003.2 error message.
14128         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
14129         callers.
14130         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
14131
14132         test-getopt: test stderr behavior
14133         * modules/getopt-posix-tests (Depends-on): Add dup2.
14134         * tests/test-getopt.c (ASSERT): Avoid stderr.
14135         (main): Move stderr to a temporary file.
14136         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
14137         Instead, add parameter to inform caller if output occurred.
14138         (test_getopt): Adjust all existing tests to expect silence, and
14139         add new tests of leading ":".
14140         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
14141         glibc shortcomings with leading "-:" or "+:" in optstring.
14142         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14143         Likewise.
14144         * doc/posix-functions/getopt.texi (getopt): Likewise.
14145
14146         test-getopt: enhance test
14147         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
14148         supports optind=0.
14149         * tests/test-getopt.c (OPTIND_MIN): Move...
14150         * tests/test-getopt.h (OPTIND_MIN): ...here.
14151         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
14152         Require that optind=0 works, since modern BSD supports it in
14153         addition to optreset, and since coreutils expects it.
14154         (test_getopt_long_only): New test.
14155         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
14156         glibc shortcomings with 'W;', and enforcement of optind=0.
14157         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14158         Likewise.
14159
14160 2009-12-21  Bruno Haible  <bruno@clisp.org>
14161
14162         localename: Improvements for MacOS X and Cygwin.
14163         * lib/localename.h (gl_locale_name_environ): New declaration.
14164         * lib/localename.c (gl_locale_name_environ): New function, extracted from
14165         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
14166         (gl_locale_name_posix): Invoke it.
14167         (gl_locale_name_default): Add comments. Use Windows native API also on
14168         Cygwin.
14169
14170 2009-12-21  Bruno Haible  <bruno@clisp.org>
14171
14172         Update list of Win32 locale ids.
14173         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
14174         (LANG_SAMI): Renamed from LANG_SAAMI.
14175         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
14176         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
14177         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
14178         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
14179         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
14180         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
14181         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
14182         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
14183         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
14184         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
14185         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
14186         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
14187         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
14188         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
14189         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
14190         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
14191         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
14192         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
14193         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
14194         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
14195         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
14196         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
14197         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
14198         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
14199         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
14200         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
14201         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
14202         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
14203         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
14204         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
14205         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
14206         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
14207         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
14208         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
14209         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
14210         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
14211         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
14212         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
14213         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
14214         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
14215         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
14216         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
14217         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
14218         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
14219         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
14220         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
14221         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
14222         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
14223         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
14224         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
14225         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
14226         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
14227         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
14228         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
14229         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
14230         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
14231         Add more languages and countries for Sami, Sorbian. Add more countries
14232         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
14233         for Pashto. Change country for Syriac, Tswana.
14234
14235 2009-12-21  Eric Blake  <ebb9@byu.net>
14236
14237         test-utimens: avoid spurious failure
14238         * tests/test-chown.h (nap): Factor...
14239         * tests/nap.h: ...into new file.
14240         * tests/test-lchown.h (nap): Avoid duplication.
14241         * tests/test-utimens-common.h (nap): Use shared implementation,
14242         necessary on file systems with 1-second resolution.
14243         * modules/chown-tests (Files): Include new file.
14244         * modules/fdutimensat-tests (Files): Likewise.
14245         * modules/futimens-tests (Files): Likewise.
14246         * modules/lchown-tests (Files): Likewise.
14247         * modules/openat-tests (Files): Likewise.
14248         * modules/utimens-tests (Files): Likewise.
14249         * modules/utimensat-tests (Files): Likewise.
14250
14251 2009-12-19  Eric Blake  <ebb9@byu.net>
14252
14253         futimens, utimensat: work around Linux bug
14254         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
14255         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14256         * lib/utimensat.c (rpl_utimensat): Work around it.
14257         * lib/futimens.c (rpl_futimens): Adjust comment.
14258
14259         utimens: work around Linux ctime bug
14260         * lib/utimens.c (detect_ctime_bug): New helper function.
14261         (update_timespec): Differentiate between workaround needed for
14262         this bug vs. what is needed for systems that lack utimensat.
14263         (fdutimens, lutimens): Work around bug.
14264
14265         utimens: check for ctime update
14266         * tests/test-utimens-common.h (check_ctime): Define.
14267         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
14268         * tests/test-futimens.h (test_futimens): Likewise.
14269         * tests/test-lutimens.h (test_lutimens): Likewise.
14270         * doc/posix-functions/futimens.texi (futimens): Document the bug.
14271         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14272
14273 2009-12-19  Bruno Haible  <bruno@clisp.org>
14274
14275         dprintf-posix: Check against memory leak fixed on 2009-12-15.
14276         * tests/test-dprintf-posix2.sh: New file.
14277         * tests/test-dprintf-posix2.c: New file.
14278         * modules/dprintf-posix-tests (Files): Add them.
14279         (configure.ac): Check for getrlimit and setrlimit.
14280         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
14281
14282 2009-12-19  Bruno Haible  <bruno@clisp.org>
14283
14284         fprintf-posix: Check against memory leak fixed on 2009-12-15.
14285         * tests/test-fprintf-posix3.sh: New file.
14286         * tests/test-fprintf-posix3.c: New file.
14287         * modules/fprintf-posix-tests (Files): Add them.
14288         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
14289
14290 2009-12-19  Eric Blake  <ebb9@byu.net>
14291
14292         dirfd: fix prototype
14293         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
14294         * lib/dirfd.c (dirfd): Likewise.
14295
14296         canonicalize: reduce memory usage
14297         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
14298         allocation to size.
14299         Reported by Solar Designer <solar@openwall.com>.
14300
14301 2009-12-19  Bruno Haible  <bruno@clisp.org>
14302
14303         New module attribute 'Applicability'.
14304         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
14305         * gnulib-tool: New option --extract-applicability.
14306         (func_usage): Document it.
14307         (sed_extract_prog): Recognize it.
14308         (func_get_applicability): New function.
14309         (func_import): Generalize handling of 'link-warning' module.
14310         * modules/link-warning (Applicability): New section.
14311         * modules/arg-nonnull (Applicability): New section.
14312         Repoted by Simon Josefsson <simon@josefsson.org>.
14313
14314 2009-12-19  Bruno Haible  <bruno@clisp.org>
14315
14316         fflush: tweak
14317         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
14318         * lib/fseeko.c (rpl_fseeko): Likewise.
14319
14320 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
14321
14322         * lib/gl_list.h: Fix typo in comment.
14323
14324 2009-12-16  Eric Blake  <ebb9@byu.net>
14325
14326         fcntl: use to simplify other modules
14327         * modules/cloexec (Depends-on): Add fcntl.
14328         * modules/fchdir (Depends-on): Likewise.
14329         * modules/fd-safer-flag (Depends-on): Likewise.
14330         * modules/unistd-safer (Depends-on): Likewise.
14331         * modules/dup3 (configure.ac): Set module indicator.
14332         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
14333         missing.
14334         * lib/fchdir.c (_gl_register_dup): Fix comment.
14335         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
14336         * lib/dup-safer.c (dup_safer): Likewise.
14337         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
14338         * lib/dup3.c (dup3): Likewise.
14339         * tests/test-fchdir.c (main): Enhance test.
14340         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
14341
14342         fcntl: port portions of fcntl to mingw
14343         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
14344         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
14345         replacement for mingw.
14346         * modules/fcntl (Description): Update.
14347         (Depends-on): Add dup2.
14348         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
14349         * modules/fcntl-h (Makefile.am): Substitute it.
14350         * lib/fcntl.in.h (fcntl): Update declaration.
14351         (F_DUPFD, F_GETFD): New macros, when needed.
14352         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
14353         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
14354         * tests/test-fcntl.c (check_flags, main): Enhance test for items
14355         we now guarantee.
14356
14357         fcntl: work around cygwin bug in F_DUPFD
14358         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
14359         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
14360         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
14361         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
14362         * doc/posix-functions/fcntl.texi (fcntl): Document it.
14363
14364         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
14365         * modules/fcntl (Files): List new files.
14366         (configure.ac): Run a test.
14367         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
14368         * lib/fcntl.c (rpl_fcntl): Likewise.
14369         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
14370         (gl_FCNTL_H): Always replace fcntl.h.
14371         * modules/fcntl-h (Makefile.am): Substitute witnesses.
14372         * lib/fcntl.in.h (fcntl): Declare replacement.
14373         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
14374         needed, plus a witness.
14375         * doc/posix-functions/fcntl.texi (fcntl): Document this.
14376         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
14377         * tests/test-fcntl.c: New file.
14378         * modules/fcntl-tests: Likewise.
14379
14380         binary-io: avoid potential compilation warning
14381         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
14382         directives.
14383
14384         fflush: avoid compilation error on NetBSD
14385         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
14386         between off_t and fpos_t, since the latter is sometimes a struct.
14387         * lib/fseeko.c (rpl_fseeko): Likewise.
14388         Reported by Alexander Nasonov <alnsn@yandex.ru>.
14389
14390 2009-12-15  Eric Blake  <ebb9@byu.net>
14391
14392         fcntl-h, stdio, sys_ioctl: fix declarations
14393         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
14394         function must not take arguments.
14395         * lib/sys_ioctl.in.h (ioctl): Likewise.
14396         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
14397         (open): Add a link warning.
14398
14399 2009-12-15  Jim Meyering  <meyering@redhat.com>
14400
14401         areadlink, areadlink-with-size: relax license to LGPLv2+
14402         * modules/areadlink (License): Relax to LGPLv2+.
14403         * modules/areadlink-with-size (License): Likewise.
14404
14405 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
14406             Bruno Haible  <bruno@clisp.org>
14407
14408         *printf: Fix memory leak.
14409         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
14410         * lib/vfprintf.c (vfprintf): Likewise.
14411         * lib/dprintf.c (dprintf): Likewise.
14412         * lib/vdprintf.c (vdprintf): Likewise.
14413
14414 2009-12-14  Eric Blake  <ebb9@byu.net>
14415
14416         accept4: adjust module dependencies
14417         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
14418
14419         utimens: one more try at avoiding compiler warning
14420         * lib/utimens.c (lutimens): Lower scope of result.
14421
14422 2009-12-13  Bruno Haible  <bruno@clisp.org>
14423
14424         Move the malloc checking from module 'list' to new module 'xlist'.
14425         * modules/xlist: New file.
14426         * lib/gl_xlist.h: New file.
14427         * lib/gl_xlist.c: New file.
14428         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
14429         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
14430         gl_list_add_last, gl_list_add_before, gl_list_add_after,
14431         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
14432         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
14433         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
14434         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
14435         gl_sortedlist_nx_add): New declarations.
14436         (struct gl_list_implementation): Rename and change methods accordingly.
14437         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
14438         (gl_list_nx_create): Renamed from gl_list_create.
14439         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
14440         (gl_list_nx_set_at): Renamed from gl_list_set_at.
14441         (gl_list_nx_add_first): Renamed from gl_list_add_first.
14442         (gl_list_nx_add_last): Renamed from gl_list_add_last.
14443         (gl_list_nx_add_before): Renamed from gl_list_add_before.
14444         (gl_list_nx_add_after): Renamed from gl_list_add_after.
14445         (gl_list_nx_add_at): Renamed from gl_list_add_at.
14446         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
14447         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
14448         gl_list_create_empty.
14449         (gl_list_nx_create): Renamed from gl_list_create.
14450         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
14451         (gl_list_nx_set_at): Renamed from gl_list_set_at.
14452         (gl_list_nx_add_first): Renamed from gl_list_add_first.
14453         (gl_list_nx_add_last): Renamed from gl_list_add_last.
14454         (gl_list_nx_add_before): Renamed from gl_list_add_before.
14455         (gl_list_nx_add_after): Renamed from gl_list_add_after.
14456         (gl_list_nx_add_at): Renamed from gl_list_add_at.
14457         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
14458         * lib/gl_array_list.c: Don't include xalloc.h.
14459         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
14460         NULL upon out-of-memory.
14461         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
14462         out-of-memory.
14463         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
14464         Change return type to 'int'.
14465         (gl_array_nx_set_at): Renamed from gl_array_set_at.
14466         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
14467         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
14468         upon out-of-memory.
14469         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
14470         upon out-of-memory.
14471         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
14472         upon out-of-memory.
14473         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
14474         upon out-of-memory.
14475         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
14476         out-of-memory.
14477         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
14478         Update.
14479         (gl_array_list_implementation): Update.
14480         * lib/gl_carray_list.c: Don't include xalloc.h.
14481         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
14482         Return NULL upon out-of-memory.
14483         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
14484         out-of-memory.
14485         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
14486         Change return type to 'int'.
14487         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
14488         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
14489         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
14490         upon out-of-memory.
14491         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
14492         upon out-of-memory.
14493         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
14494         out-of-memory.
14495         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
14496         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
14497         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
14498         Update.
14499         (gl_carray_list_implementation): Update.
14500         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
14501         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
14502         gl_linked_create_empty. Return NULL upon out-of-memory.
14503         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
14504         out-of-memory.
14505         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
14506         Change return type to 'int'. Return -1 upon out-of-memory.
14507         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
14508         out-of-memory.
14509         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
14510         upon out-of-memory.
14511         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
14512         upon out-of-memory.
14513         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
14514         NULL upon out-of-memory.
14515         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
14516         upon out-of-memory.
14517         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
14518         out-of-memory.
14519         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
14520         Update.
14521         * lib/gl_linked_list.c: Don't include xalloc.h.
14522         (gl_linked_list_implementation): Update.
14523         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
14524         (add_to_bucket): Change return type to 'int'.
14525         (gl_linkedhash_list_implementation): Update.
14526         * lib/gl_anytree_list1.h (free_subtree): New function.
14527         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
14528         gl_tree_create_empty. Return NULL upon out-of-memory.
14529         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
14530         Change return type to 'int'. Return -1 upon out-of-memory.
14531         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
14532         out-of-memory.
14533         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
14534         (gl_tree_remove_node): New function, moved here from
14535         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
14536         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
14537         Update.
14538         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
14539         malloc, not xmalloc. Return NULL upon out-of-memory.
14540         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
14541         out-of-memory.
14542         (gl_tree_remove_node_from_tree): New function, extracted from
14543         gl_tree_remove_node.
14544         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
14545         upon out-of-memory.
14546         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
14547         out-of-memory.
14548         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
14549         upon out-of-memory.
14550         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
14551         upon out-of-memory.
14552         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
14553         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
14554         not xmalloc. Return NULL upon out-of-memory.
14555         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
14556         out-of-memory.
14557         (gl_tree_remove_node_from_tree): New function, extracted from
14558         gl_tree_remove_node.
14559         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
14560         upon out-of-memory.
14561         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
14562         out-of-memory.
14563         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
14564         upon out-of-memory.
14565         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
14566         upon out-of-memory.
14567         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
14568         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
14569         gl_anytree_list1.h before gl_anyavltree_list2.h.
14570         (gl_avltree_list_implementation): Update.
14571         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
14572         gl_anytree_list1.h before gl_anyavltree_list2.h.
14573         (gl_rbtree_list_implementation): Update.
14574         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
14575         Change return type to 'int'. Return -1 upon out-of-memory. Use
14576         __builtin_expect.
14577         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
14578         (gl_avltreehash_list_implementation): Update.
14579         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
14580         (gl_rbtreehash_list_implementation): Update.
14581         * modules/array-list (Depends-on): Remove xalloc.
14582         * modules/carray-list (Depends-on): Likewise.
14583         * modules/linked-list (Depends-on): Likewise.
14584         * modules/linkedhash-list (Depends-on): Likewise.
14585         * modules/avltree-list (Depends-on): Likewise.
14586         * modules/rbtree-list (Depends-on): Likewise.
14587         * modules/avltreehash-list (Depends-on): Likewise.
14588         * modules/rbtreehash-list (Depends-on): Likewise.
14589
14590         * modules/xsublist: New file.
14591         * lib/gl_xsublist.h: New file.
14592         * lib/gl_xsublist.c: New file.
14593         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
14594         (gl_sublist_nx_create): New declaration.
14595         * lib/gl_sublist.c: Don't include xalloc.h.
14596         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
14597         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
14598         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
14599         Change return type to 'int'. Return -1 upon out-of-memory.
14600         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
14601         upon out-of-memory.
14602         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
14603         NULL upon out-of-memory.
14604         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
14605         upon out-of-memory.
14606         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
14607         NULL upon out-of-memory.
14608         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
14609         NULL upon out-of-memory.
14610         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
14611         upon out-of-memory.
14612         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
14613         (gl_sublist_list_implementation): Update.
14614         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
14615         upon out-of-memory.
14616         * modules/sublist (Depends-on): Remove xalloc.
14617
14618         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
14619         * tests/test-carray_list.c: Likewise.
14620         * tests/test-linked_list.c: Likewise.
14621         * tests/test-linkedhash_list.c: Likewise.
14622         * tests/test-avltree_list.c: Likewise.
14623         * tests/test-rbtree_list.c: Likewise.
14624         * tests/test-avltreehash_list.c: Likewise.
14625         * tests/test-rbtreehash_list.c: Likewise.
14626         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
14627         * modules/carray-list-tests (Makefile.am): Likewise.
14628         * modules/linked-list-tests (Makefile.am): Likewise.
14629         * modules/linkedhash-list-tests (Makefile.am): Likewise.
14630         * modules/avltree-list-tests (Makefile.am): Likewise.
14631         * modules/rbtree-list-tests (Makefile.am): Likewise.
14632         * modules/avltreehash-list-tests (Makefile.am): Likewise.
14633         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
14634
14635         * NEWS: Mention the changes.
14636
14637         * lib/clean-temp.c: Include gl_xlist.h.
14638         * modules/clean-temp (Depends-on): Add xlist.
14639
14640         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
14641         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
14642
14643         * tests/test-array_oset.c: Include gl_xlist.h.
14644         * modules/array-oset-tests (Depends-on): Add xlist.
14645
14646         Reported by José E. Marchesi <jemarch@gnu.org>.
14647
14648 2009-12-13  Bruno Haible  <bruno@clisp.org>
14649
14650         Move the malloc checking from module 'oset' to new module 'xoset'.
14651         * modules/xoset: New file.
14652         * lib/gl_xoset.h: New file.
14653         * lib/gl_xoset.c: New file.
14654         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
14655         declarations.
14656         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
14657         (struct gl_oset_implementation): Rename and change methods accordingly.
14658         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
14659         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
14660         'int'. Mark as __warn_unused_result__.
14661         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
14662         gl_oset_create_empty.
14663         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
14664         'int'.
14665         * lib/gl_array_oset.c: Don't include xalloc.h.
14666         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
14667         malloc, not xmalloc.
14668         (grow): Change return type to 'int'. Don't call xalloc_die.
14669         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
14670         to 'int'.
14671         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
14672         'int'.
14673         (gl_array_oset_implementation): Update.
14674         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
14675         gl_tree_create_empty.
14676         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
14677         'int'.
14678         * lib/gl_avltree_oset.c: Don't include xalloc.h.
14679         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
14680         xmalloc.
14681         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
14682         not xmalloc.
14683         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
14684         xmalloc.
14685         (gl_avltree_oset_implementation): Update.
14686         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
14687         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
14688         xmalloc.
14689         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
14690         not xmalloc.
14691         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
14692         xmalloc.
14693         (gl_rbtree_oset_implementation): Update.
14694         * modules/array-oset (Depends-on): Remove xalloc.
14695         * modules/avltree-oset (Depends-on): Likewise.
14696         * modules/rbtree-oset (Depends-on): Likewise.
14697         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
14698         * tests/test-avltree_oset.c: Likewise.
14699         * tests/test-rbtree_oset.c: Likewise.
14700         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
14701         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
14702         * modules/rbtree-oset-tests (Makefile.am): Likewise.
14703         * NEWS: Mention the change.
14704
14705 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
14706
14707         maint.mk: allow a project to override release-prep commands
14708         * top/maint.mk (alpha, beta, stable): Move release-preparatory
14709         commands into a new rule.
14710         (release-prep): New rule.
14711         (release-prep-hook): New overridable variable.
14712
14713 2009-12-13  Bruno Haible  <bruno@clisp.org>
14714
14715         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
14716
14717 2009-12-13  Jim Meyering  <meyering@redhat.com>
14718
14719         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
14720         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
14721
14722 2009-12-12  Bruno Haible  <bruno@clisp.org>
14723
14724         duplocale: Tweak.
14725         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
14726
14727 2009-12-12  Karl Berry  <karl@gnu.org>
14728
14729         * config/srclist.txt (strtoll.c): tab changes, no more sync.
14730
14731 2009-12-12  Bruno Haible  <bruno@clisp.org>
14732
14733         * m4/po.m4: Undo incorrect untabification.
14734
14735 2009-12-12  Bruno Haible  <bruno@clisp.org>
14736
14737         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
14738         * modules/c-strtod (Depends-on): Add locale.
14739         * modules/c-strtold (Depends-on): Likewise.
14740
14741 2009-12-12  Bruno Haible  <bruno@clisp.org>
14742
14743         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
14744
14745 2009-12-11  Eric Blake  <ebb9@byu.net>
14746
14747         setenv: relax requirement in light of POSIX ruling
14748         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
14749         not NULL.
14750         * tests/test-setenv.c (main): Relax test.
14751         * tests/test-unsetenv.c (main): Likewise.
14752         * doc/posix-functions/setenv.texi (setenv): Document this.
14753         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
14754
14755 2009-12-11  Bruno Haible  <bruno@clisp.org>
14756
14757         New module 'fd-safer-flag'.
14758         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
14759         * lib/dup-safer.c (dup_safer_flag): Remove function.
14760         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
14761         * lib/fd-safer.c (fd_safer_flag): Remove function.
14762         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
14763         * modules/cloexec (configure.ac): Drop indicator macro.
14764         * modules/fd-safer-flag: New file.
14765         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
14766         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
14767         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
14768
14769 2009-12-11  Bruno Haible  <bruno@clisp.org>
14770
14771         Tests for module 'nl_langinfo'.
14772         * modules/nl_langinfo-tests: New file.
14773         * tests/test-nl_langinfo.sh: New file.
14774         * tests/test-nl_langinfo.c: New file.
14775
14776         New module 'nl_langinfo'.
14777         * lib/nl_langinfo.c: New file.
14778         * m4/nl_langinfo.m4: New file.
14779         * modules/nl_langinfo: New file.
14780         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
14781
14782 2009-12-11  Bruno Haible  <bruno@clisp.org>
14783
14784         Tests for module 'langinfo'.
14785         * modules/langinfo-tests: New file.
14786         * tests/test-langinfo.c: New file.
14787
14788         New module 'langinfo'.
14789         * lib/langinfo.in.h: New file.
14790         * m4/langinfo_h.m4: New file.
14791         * modules/langinfo: New file.
14792         * doc/posix-headers/langinfo.texi: Mention the new module.
14793
14794 2009-12-11  Bruno Haible  <bruno@clisp.org>
14795
14796         * lib/config.charset: Untabify.
14797
14798 2009-12-11  Bruno Haible  <bruno@clisp.org>
14799
14800         * modules/unistd-safer (configure.ac): Drop indicator macro.
14801
14802 2009-12-11  Bruno Haible  <bruno@clisp.org>
14803
14804         Move pipe2-safer code to its own file.
14805         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
14806         * lib/pipe-safer.c (pipe2_safer): Remove function.
14807         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
14808         (Makefile.am): Add it to lib_SOURCES.
14809
14810 2009-12-10  Bruno Haible  <bruno@clisp.org>
14811
14812         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
14813
14814 2009-12-10  Bruno Haible  <bruno@clisp.org>
14815
14816         Declare which arguments expect non-NULL values, for GCC and clang.
14817         * build-aux/arg-nonnull.h: New file.
14818         * modules/arg-nonnull: New file.
14819         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
14820         (inet_ntop, inet_pton): Use it.
14821         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
14822         (closedir, dirfd, opendir, scandir, alphasort): Use it.
14823         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
14824         (open, openat): Use it.
14825         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
14826         (fnmatch): Use it.
14827         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
14828         (getopt, getopt_long, getopt_long_only): Use it.
14829         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
14830         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
14831         Use it.
14832         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
14833         (iconv_open): Use it.
14834         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
14835         (strtoimax, strtoumax): Use it.
14836         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
14837         (duplocale): Use it.
14838         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
14839         (frexp, frexpl): Use it.
14840         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
14841         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
14842         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
14843         (tsearch, tfind, tdelete, twalk): Use it.
14844         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
14845         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
14846         sigpending): Use it.
14847         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
14848         (posix_spawn, posix_spawnp, posix_spawnattr_init,
14849         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
14850         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
14851         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
14852         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
14853         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
14854         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
14855         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
14856         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
14857         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
14858         Use it.
14859         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
14860         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
14861         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
14862         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
14863         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
14864         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
14865         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
14866         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
14867         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
14868         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
14869         strtoull, unsetenv): Use it.
14870         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
14871         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
14872         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
14873         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
14874         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
14875         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
14876         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
14877         (strcasecmp, strncasecmp): Use it.
14878         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
14879         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
14880         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
14881         rpl_setsockopt): Use it.
14882         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
14883         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
14884         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
14885         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
14886         (gettimeofday): Use it.
14887         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
14888         (times): Use it.
14889         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
14890         (uname): Use it.
14891         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
14892         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
14893         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
14894         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
14895         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
14896         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
14897         unlinkat, write): Use it.
14898         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
14899         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
14900         * lib/argv-iter.h: Include arg-nonnull.h.
14901         (_ATTRIBUTE_NONNULL_): Remove macro.
14902         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
14903         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
14904         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
14905         optimization.
14906         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
14907         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
14908         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
14909         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
14910         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
14911         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
14912         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
14913         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
14914         * modules/arpa_inet (Depends-on): Add arg-nonnull.
14915         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
14916         * modules/dirent (Depends-on): Add arg-nonnull.
14917         (Makefile.am): Insert arg-nonnull.h into dirent.h.
14918         * modules/fcntl-h (Depends-on): Add arg-nonnull.
14919         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
14920         * modules/fnmatch (Depends-on): Add arg-nonnull.
14921         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
14922         * modules/getopt-posix (Depends-on): Add arg-nonnull.
14923         (Makefile.am): Insert arg-nonnull.h into getopt.h.
14924         * modules/glob (Depends-on): Add arg-nonnull.
14925         (Makefile.am): Insert arg-nonnull.h into glob.h.
14926         * modules/iconv_open (Depends-on): Add arg-nonnull.
14927         (Makefile.am): Insert arg-nonnull.h into iconv.h.
14928         * modules/inttypes (Depends-on): Add arg-nonnull.
14929         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
14930         * modules/locale (Depends-on): Add arg-nonnull.
14931         (Makefile.am): Insert arg-nonnull.h into locale.h.
14932         * modules/math (Depends-on): Add arg-nonnull.
14933         (Makefile.am): Insert arg-nonnull.h into math.h.
14934         * modules/netdb (Depends-on): Add arg-nonnull.
14935         (Makefile.am): Insert arg-nonnull.h into netdb.h.
14936         * modules/search (Depends-on): Add arg-nonnull.
14937         (Makefile.am): Insert arg-nonnull.h into search.h.
14938         * modules/signal (Depends-on): Add arg-nonnull.
14939         (Makefile.am): Insert arg-nonnull.h into signal.h.
14940         * modules/spawn (Depends-on): Add arg-nonnull.
14941         (Makefile.am): Insert arg-nonnull.h into spawn.h.
14942         * modules/stdio (Depends-on): Add arg-nonnull.
14943         (Makefile.am): Insert arg-nonnull.h into stdio.h.
14944         * modules/stdlib (Depends-on): Add arg-nonnull.
14945         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
14946         * modules/string (Depends-on): Add arg-nonnull.
14947         (Makefile.am): Insert arg-nonnull.h into string.h.
14948         * modules/strings (Depends-on): Add arg-nonnull.
14949         (Makefile.am): Insert arg-nonnull.h into strings.h.
14950         * modules/sys_socket (Depends-on): Add arg-nonnull.
14951         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
14952         * modules/sys_stat (Depends-on): Add arg-nonnull.
14953         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
14954         * modules/sys_time (Depends-on): Add arg-nonnull.
14955         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
14956         * modules/sys_times (Depends-on): Add arg-nonnull.
14957         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
14958         * modules/sys_utsname (Depends-on): Add arg-nonnull.
14959         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
14960         * modules/time (Depends-on): Add arg-nonnull.
14961         (Makefile.am): Insert arg-nonnull.h into time.h.
14962         * modules/unistd (Depends-on): Add arg-nonnull.
14963         (Makefile.am): Insert arg-nonnull.h into unistd.h.
14964         * modules/wchar (Depends-on): Add arg-nonnull.
14965         (Makefile.am): Insert arg-nonnull.h into wchar.h.
14966         * modules/argv-iter (Depends-on): Add arg-nonnull.
14967         * tests/test-canonicalize.c (null_ptr): New function.
14968         (main): Use it.
14969         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
14970         (main): Use it.
14971         * tests/test-memmem.c (null_ptr): New function.
14972         (main): Use it.
14973         Reported by Jim Meyering.
14974
14975 2009-12-10  Bruno Haible  <bruno@clisp.org>
14976
14977         Use spaces for indentation, not tabs.
14978         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
14979         * m4/*.m4: Untabify.
14980         * build-aux/*.h: Untabify.
14981         * tests/**/*.[hc]: Untabify.
14982         * README: New section "Indent with spaces, not TABs", based on
14983         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
14984         * NEWS: Mention the change.
14985
14986 2009-12-10  Bruno Haible  <bruno@clisp.org>
14987
14988         pty test: Fix link error.
14989         * modules/pty-tests (Makefile.am): Add the default LDADD value to
14990         test_pty_LDADD.
14991
14992 2009-12-07  Simon Josefsson  <simon@josefsson.org>
14993
14994         * modules/pty: New file.
14995         * modules/pty-tests: New file.
14996         * m4/pty.m4: New file.
14997         * tests/test-pty.c: New file.
14998         * doc/glibc-headers/pty.texi: Modified.
14999         * doc/glibc-functions/forkpty.texi: Modified.
15000         * doc/glibc-functions/openpty.texi: Modified.
15001
15002 2009-12-10  Bruno Haible  <bruno@clisp.org>
15003
15004         Avoid syntax error in C++ mode.
15005         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
15006
15007 2009-12-10  Bruno Haible  <bruno@clisp.org>
15008
15009         Use sed with option -e.
15010         * gnulib-tool (func_version, func_emit_copyright_notice,
15011         func_emit_initmacro_end, func_import, func_create_testdir): Pass
15012         option -e to sed.
15013         * modules/link-warning (Makefile.am): Likewise.
15014
15015 2009-12-10  Jim Meyering  <meyering@redhat.com>
15016
15017         mgetgroups: do not write bytes beyond end of malloc'd buffer
15018         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
15019         username, we call getgroups with a one-element-shorter buffer,
15020         but still told it the length was original, max_n_groups.
15021
15022 2009-12-09  Eric Blake  <ebb9@byu.net>
15023
15024         cloexec: relax license
15025         * modules/cloexec (Maintainer): Add myself.
15026         (License): Use LGPL, not GPL.
15027
15028         link-warning: optimize generation
15029         * modules/link-warning (Makefile.am): Reduce process usage.
15030
15031 2009-12-09  Bruno Haible  <bruno@clisp.org>
15032
15033         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
15034         workaround was added on 2009-11-17.
15035
15036 2009-12-09  Jim Meyering  <meyering@redhat.com>
15037             Bruno Haible  <bruno@clisp.org>
15038
15039         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
15040         * modules/link-warning (Makefile.am): Make the comment-removing sed
15041         command more robust in the face of bootstrap-prepended comment lines.
15042
15043 2009-12-09  Bruno Haible  <bruno@clisp.org>
15044
15045         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
15046         most one group.
15047
15048 2009-12-09  Simon Josefsson <simon@josefsson.org>
15049             Bruno Haible  <bruno@clisp.org>
15050
15051         * build-aux/link-warning.h: Add copyright notice.
15052         * modules/link-warning (Makefile.am): Generate link-warning.h from
15053         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
15054         * NEWS: Mention change in link-warning module.
15055         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
15056         * modules/dirent (Makefile.am): Add dependency to dirent.h.
15057         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
15058         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
15059         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
15060         * modules/math (Makefile.am): Add dependency to math.h.
15061         * modules/search (Makefile.am): Add dependency to search.h.
15062         * modules/signal (Makefile.am): Add dependency to signal.h.
15063         * modules/spawn (Makefile.am): Add dependency to spawn.h.
15064         * modules/stdio (Makefile.am): Add dependency to stdio.h.
15065         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
15066         * modules/string (Makefile.am): Add dependency to string.h.
15067         * modules/strings (Makefile.am): Add dependency to strings.h.
15068         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
15069         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
15070         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
15071         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
15072         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
15073         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
15074         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
15075         * modules/unistd (Makefile.am): Add dependency to unistd.h.
15076         * modules/wchar (Makefile.am): Add dependency to wchar.h.
15077
15078 2009-12-09  Bruno Haible  <bruno@clisp.org>
15079
15080         fchdir: Optimize away rpl_fstat when possible.
15081         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
15082         REPLACE_OPEN_DIRECTORY.
15083         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
15084
15085 2009-12-09  Bruno Haible  <bruno@clisp.org>
15086
15087         * lib/fchdir.c: Update comment.
15088
15089 2009-12-09  Bruno Haible  <bruno@clisp.org>
15090
15091         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
15092
15093 2009-12-08  Eric Blake  <ebb9@byu.net>
15094
15095         fchdir: avoid memory leak on re-registration.
15096         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
15097
15098 2009-12-08  Jim Meyering  <meyering@redhat.com>
15099
15100         init.sh: avoid Solaris 10 /bin/sh portability problem
15101         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
15102         sourced script:
15103           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
15104           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
15105           bar
15106         tests/init.sh relied on that, accepting a --set-path=DIR argument,
15107         and two tests used that idiom.
15108         * tests/init.sh: Update suggested usage comments.
15109         (path_prepend_): New function, to be used in place
15110         of the --src-path=DIR option.
15111         (setup_): Move PATH-prepending code into path_prepend_.
15112         * tests/test-pread.sh: Adapt to new usage.
15113         * tests/test-xalloc-die.sh: Likewise.
15114
15115 2009-12-08  Simon Josefsson  <simon@josefsson.org>
15116
15117         * doc/gnulib.texi (Glibc pty.h): Add.
15118         * doc/glibc-functions/forkpty.texi: Add.
15119         * doc/glibc-functions/openpty.texi: Add.
15120         Suggested by Bruno Haible.
15121
15122 2009-12-08  Eric Blake  <ebb9@byu.net>
15123
15124         fchdir: fix logic bugs
15125         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
15126         * tests/test-fchdir.c (main): Enhance test.
15127         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
15128         is in use.
15129
15130         dup2: fix logic bugs
15131         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
15132         REPLACE_DUP2 to decide when rpl_dup2 is needed.
15133         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
15134         exists.
15135         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
15136
15137 2009-12-07  Eric Blake  <ebb9@byu.net>
15138
15139         unlink: fix m4 detection
15140         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
15141
15142         unistd-safer: add unit test
15143         * modules/unistd-safer-tests: New file.
15144         * tests/test-dup-safer.c: Likewise.
15145         * tests/test-cloexec.c (setmode): Avoid compiler warning.
15146         * tests/test-dup2.c (setmode): Likewise.
15147         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
15148
15149         cloexec: preserve text vs. binary across dup_cloexec
15150         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
15151         mode.
15152         * modules/dup2-tests (Depends-on): Add binary-io.
15153         * modules/cloexec-tests (Depends-on): Likewise.
15154         * tests/test-dup2.c (setmode, is_mode): New helpers.
15155         (main): Add tests that translation mode is preserved.
15156         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
15157         Reported by Bruno Haible.
15158
15159         mgetgroups: reduce duplicate listings
15160         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
15161         resulting array.
15162         * tests/test-chown.h (test_chown): Simplify client.
15163         * tests/test-lchown.h (test_lchown): Likewise.
15164
15165 2009-12-06  Bruno Haible  <bruno@clisp.org>
15166
15167         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
15168         value.
15169
15170 2009-12-06  Bruno Haible  <bruno@clisp.org>
15171
15172         * lib/progname.c: Include stdio.h, stdlib.h.
15173         (set_program_name): Reject a NULL argument.
15174
15175 2009-12-05  Eric Blake  <ebb9@byu.net>
15176
15177         pipe2-safer: new module
15178         * modules/pipe2-safer: New file.
15179         * lib/unistd-safer.h (pipe2_safer): New prototype.
15180         * lib/unistd--.h (pipe2): New wrapper.
15181         * lib/pipe-safer.c (pipe2_safer): New function.
15182         * modules/pipe (Depends-on): Add pipe2-safer.
15183         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
15184
15185         stdlib-safer: preserve cloexec flag for mkostemp[s]
15186         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
15187         fd_safer_flag.
15188
15189         unistd-safer: allow preservation of cloexec status via flag
15190         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
15191         prototypes.
15192         * lib/dup-safer.c (dup_safer_flag): New function.
15193         * lib/fd-safer.c (fd_safer_flag): Likewise.
15194         * modules/cloexec (configure.ac): Set witness.
15195
15196         test-dup2: enhance test
15197         * modules/dup2-tests (Depends-on): Add cloexec.
15198         * tests/test-dup2.c (main): Enhance test.
15199
15200         cloexec: add dup_cloexec
15201         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
15202         header and comments.
15203         * lib/cloexec.c (set_cloexec_flag): Add comments.
15204         (dup_cloexec): New function, with mingw implementation borrowed
15205         from...
15206         * lib/w32spawn.h (dup_noinherit): ...here.
15207         * modules/execute (Depends-on): Add cloexec.
15208         * modules/pipe (Depends-on): Likewise.
15209         * modules/cloexec (Depends-on): Add dup2.
15210         * modules/cloexec-tests (Files): New file.
15211         * tests/test-cloexec.c: Likewise.
15212
15213         test-xalloc-die: fix test for mingw
15214         * modules/xalloc-die-tests (Files): Add tests/init.sh.
15215         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
15216         directory and .exe suffix off argv[0] output.
15217
15218         test-fseeko: fix test for mingw
15219         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
15220         than undefining fseek, so test will pass on mingw.
15221
15222 2009-12-05  Bruno Haible  <bruno@clisp.org>
15223
15224         * lib/progname.h (set_program_name): Clarify specification.
15225         * lib/progname.c (set_program_name): Likewise.
15226         Reported by Jim Meyering.
15227
15228 2009-12-05  Jim Meyering  <meyering@redhat.com>
15229
15230         maint.mk: backslash-escape parens in default regexp
15231         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
15232         backslash-escape the literal parentheses.
15233
15234         maint.mk: news-date-check: use grep -E
15235         * top/maint.mk (today): Define a Make variable, not a...
15236         (news-date-check): ...shell variable.
15237         (news-date-regexp): Use the Make variable.
15238         Use grep's -E option.  Change the failing diagnostic to mention
15239         the variable, $(news-date-regexp).
15240
15241 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
15242
15243         maintainer-makefile: allow customization of NEWS entry format
15244         * top/maint.mk (news-date-regexp): New overridable variable.
15245         (news-date-check): Use it.
15246
15247 2009-12-04  Eric Blake  <ebb9@byu.net>
15248
15249         mgetgroups: add xgetgroups, and avoid ENOSYS failures
15250         * lib/mgetgroups.h (xgetgroups): New prototype.
15251         * lib/mgetgroups.c (xgetgroups): New wrapper.
15252         (mgetgroups): Handle ENOSYS.
15253         * modules/mgetgroups (Depends-on): Add realloc.
15254         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
15255
15256         mgetgroups: avoid argument promotion issues with -1
15257         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
15258         for invalid gid_t.
15259         * tests/test-chown.h (getegid, test_chown): Likewise.
15260         * tests/test-lchown.h (getegid, test_lchown): Likewise.
15261
15262 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
15263
15264         exclude: Fix header file problems.
15265         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
15266
15267 2009-12-01  Jim Meyering  <meyering@redhat.com>
15268
15269         fts: fts_open: do not let an empty string cause immediate failure
15270         This is required in support of GNU rm, for which the command
15271         "rm A '' B" must process and remove both A and B, in spite of
15272         the empty string argument.
15273         * lib/fts.c (fts_open): Do not let the presence of an empty string
15274         cause fts_open to fail immediately.  Most fts-using tools must be
15275         able to process all arguments, in order, and can be expected to
15276         diagnose such arguments themselves.
15277
15278 2009-11-30  Eric Blake  <ebb9@byu.net>
15279
15280         utimens: fix compilation error
15281         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
15282         Declare variable at right scope.
15283
15284 2009-11-29  Jim Meyering  <meyering@redhat.com>
15285
15286         bootstrap: handle perl-5.11's changed --version output
15287         * build-aux/bootstrap (get_version): Handle perl separately,
15288         since perl-5.11's --version output is different.
15289
15290 2009-11-28  Jim Meyering  <meyering@redhat.com>
15291
15292         userspec: depend on the inttostr module, too
15293         * modules/userspec (Depends-on): Add inttostr.
15294
15295         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
15296         * lib/userspec.c (parse_with_separator): Do not accept a user ID
15297         number of MAXUID when it evaluates to (uid_t) -1.
15298         Likewise for group ID.  Reported by Matt McCutchen in
15299         <http://savannah.gnu.org/bugs/?28113>
15300
15301         userspec: reformat to use spaces, not TABs
15302         * lib/userspec.c: Expand TABs to spaces.
15303         Add Emacs' "indent-tabs-mode: nil" hint.
15304
15305 2009-11-27  Eric Blake  <ebb9@byu.net>
15306
15307         getopt-gnu: flush out another BSD bug
15308         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
15309         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
15310         flush out BSD bug.
15311         * tests/test-getopt.h (test_getopt): End lists with NULL.
15312         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15313         (test_getopt_long_posix): Enhance test.
15314         * modules/getopt-posix-tests (Depends-on): Add stdbool.
15315         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
15316         getopt-gnu.
15317         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15318         Likewise.
15319
15320 2009-11-27  Simon Josefsson  <simon@josefsson.org>
15321
15322         * modules/idpriv-droptemp-tests (Notice): Fix text.
15323
15324 2009-11-27  Jim Meyering  <meyering@redhat.com>
15325
15326         test-xalloc-die: avoid spurious failure due to libtool argv difference
15327         In a libtool-enabled project, this test would fail due to a difference
15328         in the emitted program name, e.g.,
15329         -test-xalloc-die: memory exhausted
15330         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
15331         Use program to avoid that.
15332         * modules/xalloc-die-tests (Depends-on): Add progname.
15333         * tests/test-xalloc-die.c: Include progname.h".
15334         (program_name): Remove decl.
15335         (main): Call set_program_name.
15336         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
15337
15338 2009-11-26  Richard Jones  <rjones@redhat.com>
15339
15340         w32sock: leave win32 error in place.
15341         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
15342
15343 2009-11-26  Eric Blake  <ebb9@byu.net>
15344
15345         init.sh: suggest to use skip_ and fail_ functions in comments
15346         * tests/init.sh: Add a sentence.
15347
15348 2009-11-25  Bruno Haible  <bruno@clisp.org>
15349
15350         init.sh: add documentation in comments
15351         * tests/init.sh: Add some developer and user documentation.
15352
15353 2009-11-26  Jim Meyering  <meyering@redhat.com>
15354
15355         init.sh: accommodate even those who specify bogus srcdir manually
15356         * tests/init.sh: Normally, srcdir is guaranteed by automake and
15357         configure-time tests to be sanitized, so that there is no need to
15358         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
15359         (with no double quotes) suffices.  However, since tests may be
15360         invoked manually, and since you may explicitly set srcdir to the
15361         name of a directory containing spaces, do quote its uses here.
15362         * tests/test-pread.sh: Likewise.
15363         Suggested by Bruno Haible.
15364
15365         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
15366         * tests/test-pread.sh: Write no data into the pipe, because
15367         test-pread actually reads none.  This avoids a diagnostic,
15368         "bash: echo: write error: Broken pipe", that arises in the unusual
15369         event something is ignoring SIGPIPE, and might be interpreted
15370         as some sort of failure.  Reported by Bruno Haible.
15371
15372 2009-11-25  Jim Meyering  <meyering@redhat.com>
15373
15374         test-pread: cover failure with ESPIPE and EINVAL
15375         * tests/test-pread.c (main): Test for failure, too.
15376         * tests/test-pread.sh: Invoke with stdin on a pipe.
15377         Suggested by Eric Blake.
15378
15379         pread: improvement and fix
15380         * modules/pread (Depends-on): Depend on lseek, for portability to
15381         e.g., mingw.  Suggested by Eric Blake.
15382         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
15383
15384         unistd.in.h: correct declaration of pread
15385         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
15386         Reported by Richard W.M. Jones.
15387
15388         test-pread.sh: distribute the test script
15389         * modules/pread-tests (Files): Include test-pread.sh.
15390
15391         test-pread.sh: clean up
15392         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
15393         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
15394         That is unnecessary, since it's always ".".
15395         Suggestion from Eric Blake.
15396
15397         test-pread.sh: make executable
15398         * tests/test-pread.sh: Set executable bit.
15399         Reported by Eric Blake.
15400
15401         correct typo in test-pread.sh
15402         * tests/test-pread.sh: Add #! line.
15403
15404         test pread
15405         * tests/test-pread.c: New file.
15406         * tests/test-pread.sh: Likewise.
15407         * modules/pread-tests: Likewise.
15408
15409         pread: new module
15410         * modules/pread: New file.
15411         * lib/unistd.in.h (pread): Define/declare.
15412         * lib/pread.c (pread): New file.
15413         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
15414         * modules/unistd (Makefile.am): Substitute witnesses.
15415         * doc/posix-functions/pread.texi (pread): Update.
15416         * MODULES.html.sh: Add pread.
15417
15418 2009-11-25  Jim Meyering  <meyering@redhat.com>
15419
15420         tests/init.sh: new file to be used via most *.sh tests
15421         * tests/init.sh: New file.
15422
15423 2009-11-25  Eric Blake  <ebb9@byu.net>
15424
15425         utimens: work around older Linux failure with symlinks
15426         * lib/utimens.c (lutimensat_works_really): New variable.
15427         (fdutimens, lutimens): Use it to manage kernels that support
15428         nanosecond times on files, but not on symlinks.
15429         Reported by OndÅ™ej Vašík.
15430
15431         utimes: fix configure grammar
15432         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
15433
15434 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
15435
15436         regex: Fix fastmap for multibyte character ranges.
15437         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
15438         characters when a multibyte character range is included.
15439
15440 2009-11-22  Andy Wingo  <wingo@pobox.com>
15441
15442         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
15443         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
15444
15445 2009-11-24  Bruno Haible  <bruno@clisp.org>
15446
15447         doc: Most *_l functions exist in MacOS X 10.5.
15448         * doc/posix-functions/duplocale.texi: Update platforms list.
15449         * doc/posix-functions/freelocale.texi: Likewise.
15450         * doc/posix-functions/newlocale.texi: Likewise.
15451         * doc/posix-functions/uselocale.texi: Likewise.
15452         * doc/posix-functions/isalnum_l.texi: Likewise.
15453         * doc/posix-functions/isalpha_l.texi: Likewise.
15454         * doc/posix-functions/isblank_l.texi: Likewise.
15455         * doc/posix-functions/iscntrl_l.texi: Likewise.
15456         * doc/posix-functions/isdigit_l.texi: Likewise.
15457         * doc/posix-functions/isgraph_l.texi: Likewise.
15458         * doc/posix-functions/islower_l.texi: Likewise.
15459         * doc/posix-functions/isprint_l.texi: Likewise.
15460         * doc/posix-functions/ispunct_l.texi: Likewise.
15461         * doc/posix-functions/isspace_l.texi: Likewise.
15462         * doc/posix-functions/isupper_l.texi: Likewise.
15463         * doc/posix-functions/iswalnum_l.texi: Likewise.
15464         * doc/posix-functions/iswalpha_l.texi: Likewise.
15465         * doc/posix-functions/iswblank_l.texi: Likewise.
15466         * doc/posix-functions/iswcntrl_l.texi: Likewise.
15467         * doc/posix-functions/iswctype_l.texi: Likewise.
15468         * doc/posix-functions/iswdigit_l.texi: Likewise.
15469         * doc/posix-functions/iswgraph_l.texi: Likewise.
15470         * doc/posix-functions/iswlower_l.texi: Likewise.
15471         * doc/posix-functions/iswprint_l.texi: Likewise.
15472         * doc/posix-functions/iswpunct_l.texi: Likewise.
15473         * doc/posix-functions/iswspace_l.texi: Likewise.
15474         * doc/posix-functions/iswupper_l.texi: Likewise.
15475         * doc/posix-functions/iswxdigit_l.texi: Likewise.
15476         * doc/posix-functions/isxdigit_l.texi: Likewise.
15477         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
15478         * doc/posix-functions/strcasecmp_l.texi: Likewise.
15479         * doc/posix-functions/strcoll_l.texi: Likewise.
15480         * doc/posix-functions/strfmon_l.texi: Likewise.
15481         * doc/posix-functions/strftime_l.texi: Likewise.
15482         * doc/posix-functions/strncasecmp_l.texi: Likewise.
15483         * doc/posix-functions/strxfrm_l.texi: Likewise.
15484         * doc/posix-functions/tolower_l.texi: Likewise.
15485         * doc/posix-functions/toupper_l.texi: Likewise.
15486         * doc/posix-functions/towctrans_l.texi: Likewise.
15487         * doc/posix-functions/towlower_l.texi: Likewise.
15488         * doc/posix-functions/towupper_l.texi: Likewise.
15489         * doc/posix-functions/wcscoll_l.texi: Likewise.
15490         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
15491         * doc/posix-functions/wctrans_l.texi: Likewise.
15492         * doc/posix-functions/wctype_l.texi: Likewise.
15493         * doc/glibc-functions/strptime_l.texi: Likewise.
15494         * doc/glibc-functions/strtod_l.texi: Likewise.
15495         * doc/glibc-functions/strtof_l.texi: Likewise.
15496         * doc/glibc-functions/strtol_l.texi: Likewise.
15497         * doc/glibc-functions/strtold_l.texi: Likewise.
15498         * doc/glibc-functions/strtoll_l.texi: Likewise.
15499         * doc/glibc-functions/strtoul_l.texi: Likewise.
15500         * doc/glibc-functions/strtoull_l.texi: Likewise.
15501         * doc/glibc-functions/wcsftime_l.texi: Likewise.
15502         * doc/glibc-functions/wcstod_l.texi: Likewise.
15503         * doc/glibc-functions/wcstof_l.texi: Likewise.
15504         * doc/glibc-functions/wcstol_l.texi: Likewise.
15505         * doc/glibc-functions/wcstold_l.texi: Likewise.
15506         * doc/glibc-functions/wcstoll_l.texi: Likewise.
15507         * doc/glibc-functions/wcstoul_l.texi: Likewise.
15508         * doc/glibc-functions/wcstoull_l.texi: Likewise.
15509
15510 2009-11-24  Bruno Haible  <bruno@clisp.org>
15511
15512         duplocale: Fix logic bug.
15513         * lib/duplocale.c: Don't include <langinfo.h>.
15514         (_NL_LOCALE_NAME): Remove macro.
15515         (rpl_duplocale): Use setlocale instead of nl_langinfo.
15516         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
15517
15518 2009-11-23  Jim Meyering  <meyering@redhat.com>
15519
15520         test-update-copyright: don't hard-code /usr/bin/perl
15521         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
15522         perl to print the current year.  Gilles Espinasse reported that
15523         the replaced use of perl was hard-coded as /usr/bin/perl.
15524
15525 2009-11-23  Bruno Haible  <bruno@clisp.org>
15526
15527         duplocale: Add support for glibc 2.3.x.
15528         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
15529
15530 2009-11-22  Bruno Haible  <bruno@clisp.org>
15531
15532         vasnprintf: Tiny optimization.
15533         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
15534         MacOS X.
15535
15536 2009-11-22  Bruno Haible  <bruno@clisp.org>
15537
15538         Tests for module 'duplocale'.
15539         * modules/duplocale-tests: New file.
15540         * tests/test-duplocale.c: New file.
15541
15542         New module 'duplocale'.
15543         * m4/duplocale.m4: New file.
15544         * lib/locale.in.h (duplocale): New declaration.
15545         * lib/duplocale.c: New file.
15546         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
15547         gl_LOCALE_H_DEFAULTS): New macros.
15548         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
15549         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
15550         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
15551         REPLACE_DUPLOCALE.
15552         * modules/duplocale: New file.
15553         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
15554
15555 2009-11-22  Bruno Haible  <bruno@clisp.org>
15556
15557         * modules/locale-tests (configure.ac): Test for newlocale function.
15558         * tests/test-locale.c: When the system has extended locale functions,
15559         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
15560
15561         locale: Make locale_t available when possible.
15562         * lib/locale.in.h: Include <xlocale.h> when it exists.
15563         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
15564         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
15565         * modules/locale (Depends-on): Add extensions.
15566         (Makefile.am): Also substitute HAVE_XLOCALE_H.
15567         * doc/posix-headers/locale.texi: Document the problem with locale_t.
15568
15569 2009-11-22  Bruno Haible  <bruno@clisp.org>
15570
15571         Add comments.
15572         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
15573         invocation.
15574         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
15575         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15576         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15577
15578 2009-11-22  Bruno Haible  <bruno@clisp.org>
15579
15580         error: account for the possibility of freopen (stdout).
15581         * lib/error.c: Include <unistd.h>.
15582         (flush_stdout): New function, extracted from error and error_at_line.
15583         Determine stdout's fd dynamically.
15584         (error, error_at_line): Invoke flush_stdout.
15585         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
15586         * modules/error (Depends-on): Add unistd.
15587
15588 2009-11-22  Bruno Haible  <bruno@clisp.org>
15589
15590         diffseq: Add comment.
15591         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
15592
15593 2009-11-22  Jim Meyering  <meyering@redhat.com>
15594
15595         c-stack: avoid defining an unused static function
15596         * lib/c-stack.c (find_stack_direction): Do not define this function
15597         when it will not be used.
15598
15599         diffseq: avoid spurious gcc warnings
15600         * lib/diffseq.h (IF_LINT2): Define.
15601         (compareseq): Use it to initialize two members of "part".
15602         This avoids two used-uninitialized warnings.
15603
15604 2009-11-21  Jim Meyering  <meyering@redhat.com>
15605
15606         c-stack: avoid "ignoring return value of `write'" warning
15607         * lib/c-stack.c: Include "ignore-value.h".
15608         (die): Explicitly ignore each write return value.
15609         * modules/c-stack (Depends-on): Add ignore-value.
15610
15611 2009-11-21  Bruno Haible  <bruno@clisp.org>
15612
15613         diffseq: reduce scope of variable 'best'.
15614         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
15615         variable, earlier used for two different purposes.
15616
15617 2009-11-21  Jim Meyering  <meyering@redhat.com>
15618
15619         diffseq: remove useless assignment to "best"
15620         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
15621         assignment.  At that point "best" is already guaranteed to be zero.
15622
15623 2009-11-20  Eric Blake  <ebb9@byu.net>
15624
15625         build: mention ftp redirector in release announcements
15626         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
15627         values that used to come from cfg.mk; mention FTP redirect URL.
15628         * build-aux/announce-gen: Mention the mirror list.
15629         Suggested by Karl Berry.
15630
15631         nanosleep: improve port to mingw
15632         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
15633         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
15634         LIB_NANOSLEEP, but only when needed.
15635         * modules/select (Link): Document LIBSOCKET.
15636         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
15637         enough.
15638
15639         nanosleep: work around cygwin bug
15640         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
15641         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
15642         bug.
15643         (getnow): Delete, not needed.
15644         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
15645         LIB_CLOCK_GETTIME.
15646         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
15647         clock-time, gettime.
15648         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
15649         bug.
15650         * modules/nanosleep-tests: New test.
15651         * tests/test-nanosleep.c: New file.
15652
15653         sleep: work around cygwin bug
15654         * lib/sleep.c (rpl_sleep): Work around the bug.
15655         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
15656         (gl_PREREQ_SLEEP): Delete unused macro.
15657         * modules/sleep (Depends-on): Add verify.
15658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
15659         * modules/unistd (Makefile.am): Substitute witness.
15660         * lib/unistd.in.h (sleep): Update prototype.
15661         * doc/posix-functions/sleep.texi (sleep): Document the bug.
15662         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
15663         * modules/sleep-tests (Depends-on): Check for alarm.
15664
15665 2009-11-20  Jim Meyering  <meyering@redhat.com>
15666
15667         maint.mk: improve sc_prohibit_magic_number_exit
15668         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
15669         so it does not match uses like System.exit(1).
15670         Add comments showing how to correct all offenders.
15671
15672 2009-11-19  Eric Blake  <ebb9@byu.net>
15673
15674         xalloc-die-tests: add missing library
15675         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
15676
15677         test-xvasprintf: silence compiler warnings
15678         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
15679         empty string from gcc.
15680
15681 2009-11-19  Jim Meyering  <meyering@redhat.com>
15682
15683         xfreopen: new module, from coreutils
15684         * modules/xfreopen: New module.
15685         * lib/xfreopen.c: New file.
15686         * lib/xfreopen.h: New file.
15687         * MODULES.html.sh (File stream based Input/Output"): Add it.
15688
15689 2009-11-19  Eric Blake  <ebb9@byu.net>
15690
15691         manywarnings: depend on warnings
15692         * modules/manywarnings (Depends-on): Add warnings.
15693
15694         build: avoid compiler warnings
15695         * lib/select.c (rpl_select): Delete unused variable.
15696         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
15697
15698 2009-11-18  Eric Blake  <ebb9@byu.net>
15699
15700         tests: avoid false negative with --with-packager
15701         * tests/test-version-etc.sh: Discard packager information.
15702         * tests/test-argp-version-etc-1.sh: Likewise.
15703         Reported by Mike Frysinger.
15704
15705         utimens: fix regression on Solaris
15706         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
15707         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
15708         can only change fd timestamps via futimesat.  Instead, use an
15709         additional witness macro to avoid BSD bug.
15710         Reported by Jim Meyering.
15711
15712 2009-11-17  Eric Blake  <ebb9@byu.net>
15713
15714         usleep: use it to simplify tests
15715         * modules/stat-time-tests (Depends-on): Add usleep.
15716         (configure.ac): Drop usleep check.
15717         * modules/chown-tests (Depends-on, configure.ac): Likewise.
15718         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
15719         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
15720         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
15721         * modules/openat-tests (Depends-on, configure.ac): Likewise.
15722         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
15723         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
15724         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
15725         Likewise.
15726         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
15727         * tests/test-lchown.h (nap): Likewise.
15728         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
15729         * tests/test-stat-time.c (nap): Likewise.
15730         * tests/test-utimens-common.h (nap): Update comments.
15731
15732         usleep: new module
15733         * modules/usleep: New file.
15734         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
15735         * lib/usleep.c (usleep): Likewise.
15736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15737         * modules/unistd (Makefile.am): Substitute witnesses.
15738         * lib/unistd.in.h (usleep): Add declaration.
15739         * doc/pastposix-functions/usleep.texi (usleep): Document this.
15740         * MODULES.html.sh (Date and time): Likewise.
15741         * modules/usleep-tests (Depends-on): New test.
15742         * tests/test-usleep.c: New file.
15743
15744         chown: work around OpenBSD bug
15745         * lib/chown.c (rpl_chown): Work around the bug.
15746         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
15747         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
15748         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
15749         * modules/chown (Depends-on): Add stdbool.
15750         * modules/lchown (Depends-on): Likewise.
15751         * doc/posix-functions/chown.texi (chown): Document the bug.
15752         * doc/posix-functions/lchown.texi (lchown): Likewise.
15753         * tests/test-lchown.h (test_chown): Relax test.
15754
15755         mkstemp: avoid conflict with C++ keyword template
15756         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
15757         * lib/mkostemp.c (mkostemp): Likewise.
15758         * lib/mkostemps.c (mkostemps): Likewise.
15759         * lib/mkstemp.c (mkstemp): Likewise.
15760         * lib/mkstemps.c (mkstemps): Likewise.
15761
15762         xalloc-die-tests: optimize
15763         * tests/test-xalloc-die.sh: Reduce number of processes.
15764
15765 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15766
15767         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
15768         patch from ludo@gnu.org (Ludovic Courtès).
15769
15770 2009-11-17  Jim Meyering  <meyering@redhat.com>
15771
15772         version-etc: use proper license string
15773         * modules/version-etc (License): Use LGPL, not LGPLv3+.
15774         * modules/version-etc-fsf: Likewise.
15775
15776 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15777
15778         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
15779         printed to stdout.  Deal with EOL differences.
15780
15781 2009-11-17  Eric Blake  <ebb9@byu.net>
15782
15783         unsetenv: work around Solaris bug
15784         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
15785         * lib/unsetenv.c (rpl_unsetenv): Work around it.
15786         Reported by Jim Meyering.
15787
15788         vasnprintf: avoid compiler warnings
15789         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
15790         variables.
15791         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
15792
15793 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15794
15795         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
15796         settings since xalloc-die is no longer the self test,
15797         xalloc-die.sh is.
15798
15799 2009-11-17  Jim Meyering  <meyering@redhat.com>
15800
15801         test-xalloc-die.sh: make the code agree with the commit log
15802         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
15803         at the end, just in case you happen to have a test-xalloc-die
15804         program in some other PATH directory.
15805
15806         test-xalloc-die.sh: fix a portability bug
15807         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
15808         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
15809         Otherwise, argv[0] (as often seen in diagnostics) would be too
15810         system-dependent, sometimes with, and sometimes without the leading "./".
15811
15812         version-etc-fsf: relax license to LGPLv3+
15813         * modules/version-etc-fsf (License): Relax license.
15814
15815 2009-11-16  Eric Blake  <ebb9@byu.net>
15816
15817         xalloc-die-tests: avoid printing null pointer
15818         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
15819         shell script.
15820         * tests/test-xalloc-die.c (program_name): Declare.
15821         * tests/test-xalloc-die.sh (tmpfiles): New file.
15822
15823         setenv, unsetenv: work around various bugs
15824         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
15825         (setenv) [HAVE_SETENV]: Work around bugs.
15826         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
15827         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
15828         for bugs.
15829         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
15830         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
15831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
15832         * modules/stdlib (Makefile.am): Update substitutions.
15833         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
15834         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
15835         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
15836         * modules/setenv-tests: New test.
15837         * modules/unsetenv-tests: Likewise.
15838         * tests/test-setenv.c: New file.
15839         * tests/test-unsetenv.c: Likewise.
15840
15841 2009-11-16  Jim Meyering  <meyering@redhat.com>
15842
15843         version-etc: relax license to LGPLv3+
15844         * modules/version-etc (License): Relax license.
15845
15846         better AC_REQUIRE expanded-before-required-warning avoidance
15847         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
15848         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
15849         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
15850         which is no longer needed.
15851
15852 2009-11-16  Eric Blake  <ebb9@byu.net>
15853
15854         test-freading: clean up temporary file
15855         * tests/test-freading.c (main): Remove file on success, and use
15856         ASSERT more liberally.
15857         Reported by Jim Meyering.
15858
15859 2009-11-16  Jim Meyering  <meyering@redhat.com>
15860
15861         avoid new AC_REQUIRE expanded-before-required warnings
15862         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
15863         merely using it.
15864         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
15865         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
15866
15867 2009-11-15  Simon Josefsson  <simon@josefsson.org>
15868
15869         * tests/test-xalloc-die.c: New file.
15870         * modules/xalloc-die-tests: New file.
15871         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
15872         XFAIL_TESTS so it can be appended by modules.
15873
15874 2009-11-15  Simon Josefsson  <simon@josefsson.org>
15875
15876         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
15877         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
15878
15879 2009-11-14  Eric Blake  <ebb9@byu.net>
15880
15881         fnmatch: avoid compiler warning
15882         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
15883         to silence compiler warning about mismatch signedness in ?:.
15884         Reported by Robert Millan.
15885
15886         intprops: add double-inclusion guard
15887         * lib/intprops.h: Allow idempotent includes.
15888         Suggested by Bruce Korb.
15889
15890         openat: detect Solaris fchownat bug
15891         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
15892         penalizing glibc chownat when only lchownat is broken.
15893         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
15894         trailing slash bugs.
15895         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
15896         * modules/openat-tests (Files): Include more files.
15897         (Depends-on): Add mgetgroups, sleep, stat-time.
15898         (configure.ac): Add additional checks.
15899         (Makefile.am): Build new test.
15900         * tests/test-fchownat.c: New file.
15901
15902         lchown: detect Solaris and FreeBSD bug
15903         * lib/lchown.c (rpl_lchown): Work around bug.
15904         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
15905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15906         * modules/unistd (Makefile.am): Populate it.
15907         * lib/unistd.in.h (lchown): Update declaration.
15908         * doc/posix-functions/lchown.texi (lchown): Document the bug.
15909         * modules/lchown-tests: New file.
15910         * tests/test-lchown.h (test_lchown): Likewise.
15911         * tests/test-lchown.c (main): Likewise.
15912
15913         chown: detect Solaris and FreeBSD bug
15914         * lib/chown.c (rpl_chown): Work around bug.
15915         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
15916         (gl_PREREQ_CHOWN): Delete.
15917         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15918         * modules/unistd (Makefile.am): Populate it.
15919         * lib/unistd.in.h (chown): Update declaration.
15920         * lib/lchown.c (chown): Update client.
15921         * modules/lchown (Depends-on): Add lstat.
15922         * doc/posix-functions/chown.texi (chown): Document the bug.
15923         * doc/posix-functions/getgroups.texi (getgroups): Document
15924         getgroups pitfall.
15925         * modules/chown-tests: New file.
15926         * tests/test-chown.h (test_chown): Likewise.
15927         * tests/test-chown.c (main): Likewise.
15928
15929 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
15930
15931         gnulib-tool: correctly detect absence of m4 directories
15932         * gnulib-tool: Avoid extra newline on data passed to wc -l.
15933
15934 2009-11-14  Jim Meyering  <meyering@redhat.com>
15935
15936         maint.mk: Prohibit inclusion of "xalloc.h" without use.
15937         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
15938
15939 2009-11-14  John W. Eaton  <jwe@gnu.org>
15940
15941         strftime.h: wrap funtion declaration in extern "C" block
15942         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
15943
15944 2009-11-13  Eric Blake  <ebb9@byu.net>
15945
15946         getgroups: avoid compiler warning
15947         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
15948
15949         getgroups: work around FreeBSD bug
15950         * lib/getgroups.c (rpl_getgroups): Work around the bug.
15951         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
15952         * doc/posix-functions/getgroups.texi (getgroups): Document it.
15953         * tests/test-getgroups.c (main): Fix buffer overrun.
15954
15955         getgroups: avoid compilation failure
15956         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
15957         * modules/getgroups (Depends-on): Add stdint.
15958
15959 2009-11-13  Jim Meyering  <meyering@redhat.com>
15960
15961         test-getgroups: avoid compilation failure
15962         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
15963
15964 2009-11-13  Eric Blake  <ebb9@byu.net>
15965
15966         mgetgroups: new module, taken from coreutils
15967         * modules/mgetgroups: New file.
15968         * lib/mgetgroups.h: Likewise.
15969         * lib/mgetgroups.c (mgetgroups): Likewise.
15970         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
15971         * MODULES.html.sh (Users and groups): Mention it.
15972
15973         getgroups: don't expose GETGROUPS_T to user
15974         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
15975         an element at a time if GETGROUPS_T is wrong size.
15976         * lib/getugroups.h (getugroups): Change signature.
15977         * lib/unistd.in.h (getgroups): Likewise.
15978         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
15979         signature needs fixing.
15980         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
15981         AC_TYPE_GETGROUPS.
15982         * modules/group-member (Depends-on): Add getgroups.
15983         * lib/group-member.c (group_info, get_group_info): Use gid_t.
15984         (group_member): Rely on getgroups replacement.
15985         * lib/getugroups.c (getugroups): Use gid_t.
15986         * tests/test-getgroups.c (main): Likewise.
15987         * NEWS: Mention the signature change.
15988         * doc/posix-functions/getgroups.texi (getgroups): Mention the
15989         problem with signature.
15990         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
15991         GETGROUPS_T is still useful for setgroups.
15992
15993         getgroups, getugroups: provide stubs for mingw
15994         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
15995         * lib/getugroups.c (getugroups): Likewise.
15996         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
15997         function.  Modernize replacement scheme.
15998         (gl_PREREQ_GETGROUPS): Delete.
15999         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
16000         * modules/getgroups (configure.ac): Declare witness.
16001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
16002         * modules/unistd (Depends-on): Substitute witness.
16003         * lib/unistd.in.h (getgroups): Declare replacement.
16004
16005         getgroups: avoid calling exit
16006         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
16007         drop xalloc.
16008         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
16009         dependencies.
16010         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
16011         exiting, in the rare case of malloc failure.
16012
16013         getgroups: fix logic error
16014         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
16015         has more than 20 groups.
16016         * modules/getgroups-tests: New test.
16017         * tests/test-getgroups.c: New file.
16018
16019 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16020
16021         * tests/test-base64.c: Improve.
16022
16023 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16024
16025         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
16026         Blake <ebb9@byu.net>.
16027
16028 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16029
16030         * tests/test-xvasprintf.c: Add %s%s related checks.
16031
16032 2009-11-12  Eric Blake  <ebb9@byu.net>
16033
16034         version-etc: match standards.texi style
16035         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
16036         and use <> only for URLs.
16037
16038 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
16039
16040         fts: do not fail on a submount during traversal
16041         * lib/fts.c (fts_build): Read the stat info again after opening
16042         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
16043         Original report at http://bugzilla.redhat.com/501848.
16044
16045 2009-11-12  Jim Meyering  <meyering@redhat.com>
16046
16047         bootstrap: sync from coreutils
16048         * build-aux/bootstrap (bootstrap_epilogue): New function.
16049         Use git_modules_config in one more place.  This make bootstrap's
16050         --gnulib-srcdir option more useful for testing.
16051
16052         bootstrap: generalize autoheader check
16053         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
16054         AC_CONFIG_HEADERS.
16055
16056 2009-11-11  Eric Blake  <ebb9@byu.net>
16057
16058         mkfifoat: use new modules for Solaris and BSD bugs
16059         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
16060         * lib/mkfifoat.c (mknodat): Split...
16061         * lib/mknodat.c (mknodat): ...into new file.
16062         * modules/mkfifoat (Files): Ship new file.
16063         (Depends-on): Add mkfifo, mknod.
16064         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
16065         (Depends-on): Add symlink.
16066         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
16067         redundant with test_mkfifo.h.
16068         (do_mkfifoat, do_mknodat): New helpers.
16069
16070         mknod: new module
16071         * modules/mknod: New file.
16072         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
16073         * lib/mknod.c (mknod): Likewise.
16074         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
16075         defaults.
16076         * modules/sys_stat (Makefile.am): Substitute them.
16077         * lib/sys_stat.in.h (mknod): Declare replacement.
16078         * MODULES.html.sh (Support for systems lacking POSIX:2008):
16079         Document it.
16080         * doc/posix-functions/mknod.texi (mknod): Likewise.
16081         * modules/mknod-tests: New test.
16082         * tests/test-mknod.c: Likewise.
16083
16084         mkfifo: new module
16085         * modules/mkfifo: New file.
16086         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16087         * lib/mkfifo.c (mkfifo): Likewise.
16088         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
16089         defaults.
16090         * modules/sys_stat (Makefile.am): Substitute them.
16091         * lib/sys_stat.in.h (mkfifo): Declare replacement.
16092         * MODULES.html.sh (Support for systems lacking POSIX:2008):
16093         Document it.
16094         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
16095         * modules/mkfifo-tests: New test.
16096         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
16097         from test-mkfifoat.c.
16098         * tests/test-mkfifo.c: New file.
16099
16100         readlink: detect FreeBSD bug
16101         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
16102         slash on symlink.
16103         * doc/posix-functions/readlink.texi (readlink): Document the bug.
16104         * tests/test-readlink.h (test_readlink): Enhance test.
16105
16106         symlink: detect FreeBSD bug
16107         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
16108         slash on symlink.
16109         * doc/posix-functions/symlink.texi (symlink): Document the bug.
16110         * tests/test-symlink.h (test_symlink): Enhance test.
16111
16112 2009-11-10  Eric Blake  <ebb9@byu.net>
16113
16114         link: detect FreeBSD bug
16115         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
16116         symlink.
16117         * doc/posix-functions/link.texi (link): Document the bug.
16118         * tests/test-link.h (test_link): Enhance test.
16119         * tests/test-linkat.c (main): Update caller.
16120
16121         unlink, remove: detect FreeBSD bug
16122         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
16123         slash on symlink.
16124         * doc/posix-functions/unlink.texi (unlink): Document the bug.
16125         * doc/posix-functions/remove.texi (remove): Likewise.
16126         * tests/test-unlink.h (test_unlink): Enhance test.
16127         * tests/test-remove.c (main): Likewise.
16128
16129 2009-11-09  Eric Blake  <ebb9@byu.net>
16130
16131         rename: detect FreeBSD bug
16132         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
16133         slash on symlink.
16134         * modules/renameat-tests (Depends-on): Add filenamecat.
16135         * tests/test-rename.h (test_rename): Allow one more errno.
16136         * tests/test-renameat.c (main): Likewise.
16137         * doc/posix-functions/rename.texi (rename): Document the bug.
16138
16139         open: detect FreeBSD bug
16140         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
16141         symlink.
16142         * doc/posix-functions/open.texi (open): Document the bug.
16143         * doc/posix-functions/utimes.texi (utimes): Likewise.
16144         * tests/test-open.h (test_open): Add parameters, and test symlink
16145         handling.
16146         * tests/test-open.c (main): Adjust caller.
16147         * tests/test-fcntl-safer.c (main): Likewise.
16148         * modules/open-tests (Depends-on): Add stdbool, symlink.
16149         * modules/fcntl-safer-tests (Depends-on): Likewise.
16150         * tests/test-openat.c (main): Add test-open tests.
16151
16152         stat: detect FreeBSD bug
16153         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
16154         symlink.
16155         * doc/posix-functions/stat.texi (stat): Document the bug.
16156         * tests/test-stat.h (test_stat_func): Add argument.
16157         * tests/test-stat.c (main): Adjust caller.
16158         * tests/test-fstatat.c (main): Likewise.
16159         * modules/stat-tests (Depends-on): Add stdbool, symlink.
16160         Reported by Jim Meyering.
16161
16162 2009-11-09  James Youngman  <jay@gnu.org>
16163
16164         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
16165         * lib/strftime.c: Correct placement of #include "ignore-value.h".
16166
16167 2009-11-08  Jim Meyering  <meyering@redhat.com>
16168
16169         utimens: remove invalid futimesat call
16170         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
16171         It used the file descriptor of the target file as the DIR_FD
16172         parameter and NULL as the file name.  That caused failure with
16173         errno == EFAULT on FreeBSD-8.0-rc2
16174
16175 2009-11-07  Eric Blake  <ebb9@byu.net>
16176
16177         fflush, freadseek: use fseeko, not fseek
16178         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16179         (clear_ungetc_buffer): Avoid potential problems on large files.
16180         * lib/freadseek.c (freadseek): Likewise.
16181         * modules/freadseek (Depends-on): Add fseeko.
16182         * modules/fseek (configure.ac): Set a witness.
16183         * tests/test-fflush.c (main): Use fseeko.
16184         * tests/test-fpurge.c (fseek): Disable link warning.
16185         * tests/test-freadable.c (fseek): Likewise.
16186         * tests/test-freading.c (fseek): Likewise.
16187         * tests/test-fseeko.c (fseek): Likewise.
16188         * tests/test-ftell.c (fseek): Likewise.
16189         * tests/test-ftello.c (fseek): Likewise.
16190         * tests/test-fwritable.c (fseek): Likewise.
16191         * tests/test-fwriting.c (fseek): Likewise.
16192
16193 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16194
16195         * modules/memchr (Depends-on): Drop getpagesize dependency.
16196
16197 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16198
16199         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
16200         Reported by Ludovic Courtès.
16201         * build-aux/pmccabe2html: Improve example usage.
16202         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
16203
16204 2009-11-06  Jim Meyering  <meyering@redhat.com>
16205
16206         do-release-commit-and-tag: New module.
16207         Automate the release-commit and tag process.
16208         * build-aux/do-release-commit-and-tag: New script, from coreutils.
16209         * modules/do-release-commit-and-tag: New file.
16210         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16211
16212 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16213
16214         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
16215         because test-select.c uses inet_pton.
16216
16217 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16218
16219         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
16220         GETADDRINFO_LIB.  Bump serial number.
16221         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
16222         Suggested by Eric Blake <ebb9@byu.net>.
16223
16224 2009-11-05  Eric Blake  <ebb9@byu.net>
16225
16226         strtod: detect darwin bug
16227         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
16228         Reported by Leo Davis.
16229
16230         freopen-safer: new module
16231         * modules/freopen-safer: New module.
16232         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
16233         * lib/freopen-safer.c (freopen_safer): New file.
16234         * lib/stdio-safer.h (freopen_safer): New declaration.
16235         * lib/stdio--.h (freopen): New override.
16236         * MODULES.html.sh (File stream based Input/Output): Mention it.
16237         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
16238         freopen-safer module.
16239         * doc/posix-functions/stderr.texi (stderr): Likewise.
16240         * doc/posix-functions/stdin.texi (stdin): Likewise.
16241         * doc/posix-functions/stdout.texi (stdout): Likewise.
16242         * modules/freopen-safer-tests: New test.
16243         * tests/test-reopen-safer.c: New file.
16244
16245 2009-11-05  Jim Meyering  <meyering@redhat.com>
16246
16247         maint.mk: Prohibit inclusion of "close-stream.h" without use.
16248         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
16249
16250 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16251
16252         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
16253
16254 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16255
16256         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
16257
16258 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16259
16260         Fix link error.
16261         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
16262         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16263
16264 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16265
16266         * tests/test-func.c: Also test value of __func__.
16267
16268 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16269
16270         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
16271         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
16272
16273 2009-11-05  Bruno Haible  <bruno@clisp.org>
16274
16275         Fix link error.
16276         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
16277         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16278         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
16279
16280 2009-11-05  Bruno Haible  <bruno@clisp.org>
16281
16282         Tests for module 'inet_pton'.
16283         * modules/inet_pton-tests: New file.
16284         * tests/test-inet_pton.c: New file.
16285
16286 2009-11-05  Bruno Haible  <bruno@clisp.org>
16287
16288         Tests for module 'inet_ntop'.
16289         * modules/inet_ntop-tests: New file.
16290         * tests/test-inet_ntop.c: New file.
16291
16292 2009-11-04  Eric Blake  <ebb9@byu.net>
16293
16294         stdlib-safer: wrap all mkstemp variants
16295         * modules/mkostemp (configure.ac): Set witness.
16296         * modules/mkostemps (configure.ac): Likewise.
16297         * modules/mkstemps (configure.ac): Likewise.
16298         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
16299         (mkstemps_safer): Wrap more functions.
16300         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
16301         wrapping.
16302         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
16303         (mkstemps_safer): Implement the wrappers.
16304
16305         mkstemps, mkostemps: new modules
16306         * modules/mkostemps: New module.
16307         * modules/mkstemps: Likewise.
16308         * lib/mkostemps.c (mkostemps): New file.
16309         * lib/mkstemps.c (mkstemps): Likewise.
16310         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
16311         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
16312         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
16313         * modules/stdlib (Makefile.am): Substitute them.
16314         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
16315         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
16316         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16317         * doc/gnulib.texi (Glibc stdlib.h): Include them.
16318         * MODULES.html.sh (File system functions): Mention them.
16319
16320         tempname: resync from glibc
16321         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
16322         same values for __GT_FILE as glibc.  Abort even when assertions
16323         are disabled.
16324         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
16325         match its value otherwise.  Allow idempotent inclusion.
16326         * lib/mkdtemp.c (mkdtemp): Adjust caller.
16327         * lib/mkostemp.c (mkostemp): Likewise.
16328         * lib/mkstemp.c (mkstemp): Likewise.
16329         * lib/tmpfile.c (tmpfile): Likewise.
16330         * NEWS: Document this.
16331
16332         utimens: fix use of futimens on older Linux
16333         * lib/utimens.c (fdutimens): Use updated, rather than original,
16334         timespec to avoid bug in older Linux kernel.
16335         Reported by Simon Josefsson.
16336
16337 2009-11-04  Bruno Haible  <bruno@clisp.org>
16338
16339         Make num_processors more flexible and consistent.
16340         * lib/nproc.h (enum nproc_query): New type.
16341         (num_processors): Add a 'query' argument.
16342         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
16343         (num_processors): Add a 'query' argument. Test the value of the
16344         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
16345         mingw, count the number of CPUs available for the current process.
16346         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
16347         Check for sched_getaffinity and sched_getaffinity_np.
16348         * modules/nproc (Depends-on): Add c-ctype, extensions.
16349         * NEWS: Mention the change.
16350
16351 2009-11-03  Bruno Haible  <bruno@clisp.org>
16352
16353         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
16354
16355 2009-11-03  Jim Meyering  <meyering@redhat.com>
16356
16357         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
16358         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
16359         if it is defined.
16360
16361 2009-11-02  Eric Blake  <ebb9@byu.net>
16362
16363         mktime, timegm: share common declaration
16364         * lib/mktime-internal.h: New file.
16365         * lib/mktime.c: Use it rather than open-coding a declaration.
16366         * lib/timegm.c: Likewise.
16367         * modules/mktime (Files): Ship it.
16368         * modules/timegm (Files): Likewise.
16369         Suggested by Bruno Haible.
16370
16371         test-update-copyright: update test to match script changes
16372         * tests/test-update-copyright.sh: Avoid hard-coding perl
16373         location.  Don't update *.bak created by earlier runs.
16374
16375 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
16376             Simon Josefsson  <simon@josefsson.org>
16377             Bruno Haible  <bruno@clisp.org>
16378
16379         Fix link error on Solaris 8.
16380         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
16381         also in libnsl. Define also INET_PTON_LIB.
16382         * modules/inet_pton (Link): New section.
16383
16384 2009-11-02  Simon Josefsson  <simon@josefsson.org>
16385             Bruno Haible  <bruno@clisp.org>
16386
16387         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
16388         * modules/inet_ntop (Link): New section.
16389         Reported by Boyan Kasarov <bkasarov@gmail.com>.
16390
16391 2009-11-02  Eric Blake  <ebb9@byu.net>
16392
16393         maint: avoid compiler warnings in m4 macros
16394         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
16395         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
16396
16397 2009-11-02  Simon Josefsson  <simon@josefsson.org>
16398
16399         * m4/pmccabe2html.m4: Remove file.
16400         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
16401         function.  Change maintainer.
16402         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
16403         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
16404         Courtès).
16405
16406 2009-10-31  Eric Blake  <ebb9@byu.net>
16407
16408         fseeko: fix m4 regression
16409         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
16410         regression from 2009-10-27.
16411         Reported by Ralf Wildenhues.
16412
16413 2009-10-31  Jim Meyering  <meyering@redhat.com>
16414
16415         inttostr: aesthetics and improved (compile-time) safety
16416         Define inttype_is_signed rather than inttype_is_unsigned,
16417         since the sole use is via "#if inttype_is_signed".
16418         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
16419         inttype_is_unsigned.
16420         * lib/offtostr.c (inttype_is_signed): Likewise.
16421         * lib/uinttostr.c (inttype_is_signed): Likewise.
16422         * lib/umaxtostr.c (inttype_is_signed): Likewise.
16423         * lib/inttostr.c (inttostr): Use verify to cross-check the
16424         inttype_is_signed value and the signedness of the actual type.
16425         * modules/inttostr (Depends-on): Add verify.
16426
16427 2009-10-30  Eric Blake  <ebb9@byu.net>
16428
16429         build: avoid compiler warnings
16430         * lib/fchmodat.c (lchmod): Mark unused variables.
16431         * lib/getopt.c (_getopt_initialize): Likewise.
16432         * lib/mktime.c (__mktime_internal): Provide prototype.
16433         * lib/inttostr.c (inttostr): Avoid compiler warning even with
16434         older gcc that do not understand #pragma GCC diagnostic.
16435         * lib/uinttostr.c (inttype_is_unsigned): Define.
16436         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
16437
16438 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
16439
16440         stat: fix compilation on AIX
16441         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
16442         only see struct stat64.
16443
16444 2009-10-30  Eric Blake  <ebb9@byu.net>
16445
16446         exclude: make more robust
16447         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
16448         rather than masking a coding bug.
16449         Suggested by Bruno Haible.
16450
16451 2009-10-30  Jim Meyering  <meyering@redhat.com>
16452
16453         perl scripts: remove #!/usr/bin/perl in favor of more portable...
16454         Rather than putting #!/usr/bin/perl on the first line,
16455         start with a variant of what's recommended by "man perlrun" that
16456         invokes the first "perl" program from your shell's search path.
16457         * build-aux/gitlog-to-changelog: Replace #!... as above.
16458         Add a "Local Variables" perl mode setting.
16459         Prompted by a patch from Ludovic Courtès.
16460         Improved by Eric Blake.
16461         * build-aux/useless-if-before-free: Likewise.
16462         * build-aux/announce-gen: Likewise.
16463         * build-aux/update-copyright: Likewise.
16464
16465 2009-10-29  Eric Blake  <ebb9@byu.net>
16466
16467         filenamecat-lgpl: adjust clients
16468         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
16469         filenamecat.
16470         * modules/renameat (Depends-on): Likewise.
16471
16472         filenamecat: split into filenamecat-lgpl
16473         * modules/filenamecat-lgpl: New module.
16474         * modules/filenamecat (Files): Move library-safe files into
16475         filenamecat-lgpl.
16476         (Depends-on): Add filenamecat-lgpl.
16477         (configure.ac): Declare witness.
16478         * lib/filenamecat.h (file_name_concat): Only declare when using
16479         GPL module.
16480         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
16481         Move...
16482         * lib/filenamecat-lgpl.c: ...into new file.
16483         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
16484         (gl_FILE_NAME_CONCAT): Use it.
16485         * MODULES.html.sh (File system functions): Mention new module.
16486
16487         argp: avoid memory leak
16488         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
16489         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
16490         base_name, since the latter malloc()s and can call exit().
16491         Leak introduced 2006-07-03.
16492
16493         dirname-lgpl: adjust clients that don't need full dirname
16494         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
16495         * modules/filenamecat (Depends-on): Likewise.
16496         * modules/linkat (Depends-on): Likewise.
16497         * modules/mkancesdirs (Depends-on): Likewise.
16498         * modules/mkdir (Depends-on): Likewise.
16499         * modules/openat (Depends-on): Likewise.
16500         * modules/savewd (Depends-on): Likewise.
16501         * modules/rename (Depends-on): Likewise.
16502         (License): Relax license.
16503         * modules/mkdir-tests (Depends-on): Drop progname.
16504         (Makefile.am): Delete unneeded LDADD.
16505         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
16506
16507         dirname: split into dirname-lgpl
16508         * modules/dirname-lgpl: New module.
16509         * modules/dirname (Files): Move library-safe files into
16510         dirname-lgpl.
16511         (Depends-on): Add dirname-lgpl.
16512         (configure.ac): Declare witness.
16513         * modules/double-slash-root (License): Relax license.
16514         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
16515         module.
16516         * lib/dirname.c (dir_len, mdir_name): Move...
16517         * lib/dirname-lgpl.c: ...into new file.
16518         * lib/basename.c (last_component, base_len): Move...
16519         * lib/basename-lgpl.c: ...into new file.
16520         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
16521         (gl_DIRNAME): Use it.
16522         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
16523         Mention new module.
16524         * modules/dirname-tests (Depends-on): Add progname.
16525         * tests/test-dirname.c (program_name): Delete.
16526
16527         mkdir: make safe for libraries
16528         * modules/mkdir (Depends-on): Drop xalloc.
16529         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
16530         exit.
16531
16532         tests: avoid some compiler warnings
16533         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
16534         literals.
16535         * tests/test-memchr.c (main): Avoid type mismatch.
16536         * tests/test-arpa_inet.c (main): Avoid unused parameters.
16537         * tests/test-base64.c (main): Likewise.
16538         * tests/test-getdelim.c (main): Likewise.
16539         * tests/test-gethostname.c (main): Likewise.
16540         * tests/test-getline.c (main): Likewise.
16541         * tests/test-netinet_in.c (main): Likewise.
16542         * tests/test-select.c (open_server_socket, main): Likewise.
16543         * tests/test-select-stdin.c (main): Likewise.
16544         * tests/test-sockets.c (main): Likewise.
16545         * tests/test-strsignal.c (main): Likewise.
16546         * tests/test-sys_select.c (main): Likewise.
16547         * tests/test-sys_socket.c (main): Likewise.
16548         * tests/test-u64.c (main): Likewise.
16549         * tests/test-xfprintf-posix.c (main): Likewise.
16550         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
16551
16552         sockets: avoid compiler warning
16553         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
16554
16555         maint: detect usage(1) and other suspicious exits
16556         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
16557
16558 2009-10-29  Jim Meyering  <meyering@redhat.com>
16559
16560         timespec: long-to-int truncation could make timespec_cmp malfunction
16561         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
16562         a multiple of 2^32 nanoseconds as no difference.
16563
16564 2009-10-28  Jim Meyering  <meyering@redhat.com>
16565
16566         fprintftime: wrap macro code argument in "do {...} while(0)"
16567         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
16568         cpy macro must be a statement that can be followed by a semicolon.
16569         Now that the else clause contains a comment and is hence longer
16570         than one line, I require curly braces.  That in turn requires
16571         that we wrap this code block in the standard do...while(0).
16572
16573         fprintftime: remove stray semicolon from previous change
16574         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
16575
16576         fprintftime: avoid a warning about ignored fwrite return value
16577         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
16578         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
16579         that is unsafe.
16580         * modules/fprintftime (Depends-on): Add ignore-value.
16581
16582         exclude: avoid an unwarranted warning
16583         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
16584
16585 2009-10-27  Eric Blake  <ebb9@byu.net>
16586
16587         fseek: avoid compilation failure when fflush is replaced
16588         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
16589         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
16590         module is in use.
16591         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
16592         module is not in use; since REPLACE_FSEEK worked otherwise.
16593         (GNULIB_FTELLO): Likewise for ftell.
16594         Reported by Ian Beckwith and others.
16595
16596 2009-10-27  Bruno Haible  <bruno@clisp.org>
16597
16598         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
16599         Reported by Jim Meyering.
16600
16601 2009-10-27  Jim Meyering  <jim@meyering.net>
16602             Bruno Haible  <bruno@clisp.org>
16603
16604         Avoid warning despite dropping the return value of fwrite.
16605         * lib/unicodeio.c: Include ignore-value.h.
16606         (fwrite_success_callback): Explicitly ignore fwrite's return value.
16607         * modules/unicodeio (Depends-on): Add ignore-value.
16608
16609 2009-10-26  Eric Blake  <ebb9@byu.net>
16610
16611         areadlinkat: fix fallback path
16612         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
16613         pointer and zero.
16614
16615 2009-10-22  Pádraig Brady  <P@draigBrady.com>
16616
16617         Use a better IO block size for modern systems
16618         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
16619         * lib/md2.c: Likewise.
16620         * lib/md4.c: Likewise.
16621         * lib/md5.c: Likewise.
16622         * lib/sha1.c: Likewise.
16623         * lib/sha256.c: Likewise.
16624         * lib/sha512.c: Likewise.
16625
16626 2009-10-22  Eric Blake  <ebb9@byu.net>
16627
16628         tests: avoid several compiler warnings
16629         * tests/test-getcwd.c (main): Avoid buffer underflow.
16630         * tests/test-getdate.c (main): String literals are not safe with
16631         putenv, so use setenv.  Declare unused argument.
16632         * modules/getdate-tests (Depends-on): Add setenv.
16633         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
16634         problems with string literals in char *.
16635         * tests/test-hash.c (main): Avoid shadowing declaration.
16636         (insert_new): Treat string literals as char const *.
16637         * tests/test-getopt.h (test_getopt): Likewise.
16638         (getopt_loop): Alter types to minimize casting elsewhere.
16639         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
16640         (test_getopt_long_posix): Likewise.
16641         (do_getopt_long): Add wrapper to minimize casting.
16642         * tests/test-atexit.c (clear_temp_file): Use void.
16643         * tests/test-areadlink-with-size.c (main): Declare unused
16644         arguments.
16645         * tests/test-areadlink.c (main): Likewise.
16646         * tests/test-areadlinkat-with-size.c (main): Likewise.
16647         * tests/test-areadlinkat.c (main): Likewise.
16648         * tests/test-canonicalize-lgpl.c (main): Likewise.
16649         * tests/test-canonicalize.c (main): Likewise.
16650         * tests/test-dirent-safer.c (main): Likewise.
16651         * tests/test-dirname.c (main): Likewise.
16652         * tests/test-dup2.c (main): Likewise.
16653         * tests/test-fchdir.c (main): Likewise.
16654         * tests/test-fcntl-h.c (main): Likewise.
16655         * tests/test-fcntl-safer.c (main): Likewise.
16656         * tests/test-fdopendir.c (main): Likewise.
16657         * tests/test-fdutimensat.c (main): Likewise.
16658         * tests/test-fflush.c (main): Likewise.
16659         * tests/test-filenamecat.c (main): Likewise.
16660         * tests/test-filevercmp.c (main): Likewise.
16661         * tests/test-fopen-safer.c (main): Likewise.
16662         * tests/test-fopen.c (main): Likewise.
16663         * tests/test-fpending.c (main): Likewise.
16664         * tests/test-fpurge.c (main): Likewise.
16665         * tests/test-freading.c (main): Likewise.
16666         * tests/test-fstatat.c (main): Likewise.
16667         * tests/test-fsync.c (main): Likewise.
16668         * tests/test-futimens.c (main): Likewise.
16669         * tests/test-getndelim2.c (main): Likewise.
16670         * tests/test-gettimeofday.c (main): Likewise.
16671         * tests/test-getopt.c (main): Likewise.
16672         * tests/test-i-ring.c (main): Likewise.
16673         * tests/test-inttypes.c (main): Likewise.
16674         * tests/test-link.c (main): Likewise.
16675         * tests/test-lstat.c (main): Likewise.
16676         * tests/test-math.c (main): Likewise.
16677         * tests/test-md5.c (main): Likewise.
16678         * tests/test-memchr2.c (main): Likewise.
16679         * tests/test-memrchr.c (main): Likewise.
16680         * tests/test-mkdir.c (main): Likewise.
16681         * tests/test-mkdirat.c (main): Likewise.
16682         * tests/test-mkfifoat.c (main): Likewise.
16683         * tests/test-open.c (main): Likewise.
16684         * tests/test-openat-safer.c (main): Likewise.
16685         * tests/test-openat.c (main): Likewise.
16686         * tests/test-quotearg.c (main): Likewise.
16687         * tests/test-rawmemchr.c (main): Likewise.
16688         * tests/test-readlink.c (main): Likewise.
16689         * tests/test-remove.c (main): Likewise.
16690         * tests/test-rename.c (main): Likewise.
16691         * tests/test-renameat.c (main): Likewise.
16692         * tests/test-rmdir.c (main): Likewise.
16693         * tests/test-sha1.c (main): Likewise.
16694         * tests/test-signal.c (main): Likewise.
16695         * tests/test-sigaction.c (main): Likewise.
16696         * tests/test-stat.c (main): Likewise.
16697         * tests/test-stat-time.c (main): Likewise.
16698         * tests/test-stddef.c (main): Likewise.
16699         * tests/test-stdint.c (main): Likewise.
16700         * tests/test-stdio.c (main): Likewise.
16701         * tests/test-stdlib.c (main): Likewise.
16702         * tests/test-strchrnul.c (main): Likewise.
16703         * tests/test-strerror.c (main): Likewise.
16704         * tests/test-string.c (main): Likewise.
16705         * tests/test-strtod.c (main): Likewise.
16706         * tests/test-strverscmp.c (main): Likewise.
16707         * tests/test-symlink.c (main): Likewise.
16708         * tests/test-symlinkat.c (main): Likewise.
16709         * tests/test-sys_stat.c (main): Likewise.
16710         * tests/test-sys_time.c (main): Likewise.
16711         * tests/test-time.c (main): Likewise.
16712         * tests/test-unistd.c (main): Likewise.
16713         * tests/test-unlink.c (main): Likewise.
16714         * tests/test-unlinkat.c (main): Likewise.
16715         * tests/test-utimens.c (main): Likewise.
16716         * tests/test-utimensat.c (main): Likewise.
16717         * tests/test-version-etc.c (main): Likewise.
16718         * tests/test-wchar.c (main): Likewise.
16719         * tests/test-wctype.c (main): Likewise.
16720         * tests/test-xprintf-posix.c (main): Likewise.
16721         * tests/test-posixtm.c (main): Likewise.
16722         (STREQ): Delete unused macro.
16723         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
16724         shadowed variables.
16725         * tests/test-memchr.c (main): Likewise.
16726
16727 2009-10-21  Eric Blake  <ebb9@byu.net>
16728
16729         areadlinkat: avoid failure on older glibc
16730         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
16731         rather than mis-comparing 0 against FUNC_RESULT of char*.
16732
16733 2009-10-21  Bruno Haible  <bruno@clisp.org>
16734
16735         * modules/stpncpy (License): Relicense under LGPLv2+.
16736         Reported by David Lutterkort <lutter@redhat.com>.
16737
16738 2009-10-20  Eric Blake  <ebb9@byu.net>
16739
16740         utimensat: work around Solaris 9 bug
16741         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
16742         has trailing slash bugs.
16743         * tests/test-lutimens.h (test_lutimens): Enhance test.
16744         * tests/test-utimens.h (test_utimens): Likewise.
16745         * doc/posix-functions/utime.texi (utime): Enhance documentation.
16746         * doc/posix-functions/utimes.texi (utimes): Likewise.
16747         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16748         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
16749         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
16750         * doc/posix-functions/futimens.texi (futimens): Likewise.
16751
16752         fdutimensat: new module
16753         * modules/fdutimensat: New file.
16754         * lib/fdutimensat.c (fdutimensat): Likewise.
16755         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
16756         * MODULES.html.sh (File system functions): Mention module.
16757         * modules/fdutimensat-tests: New test.
16758         * tests/test-fdutimensat.c: Likewise.
16759
16760         doc: regenerate INSTALL
16761         * doc/INSTALL: Reflect recent autoconf update.
16762         * doc/INSTALL.ISO: Likewise.
16763         * doc/INSTALL.UTF-8: Likewise.
16764
16765 2009-10-20  Pádraig Brady  <P@draigBrady.com>
16766
16767         acl: warn if ACL support is not detected
16768         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
16769
16770 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
16771
16772         * lib/nproc.h: Add extern "C" block for C++.
16773
16774 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
16775             Bruno Haible  <bruno@clisp.org>
16776
16777         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
16778         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
16779         * doc/posix-functions/isalpha.texi: Likewise.
16780         * doc/posix-functions/isblank.texi: Likewise.
16781         * doc/posix-functions/iscntrl.texi: Likewise.
16782         * doc/posix-functions/isdigit.texi: Likewise.
16783         * doc/posix-functions/isgraph.texi: Likewise.
16784         * doc/posix-functions/islower.texi: Likewise.
16785         * doc/posix-functions/isprint.texi: Likewise.
16786         * doc/posix-functions/ispunct.texi: Likewise.
16787         * doc/posix-functions/isspace.texi: Likewise.
16788         * doc/posix-functions/isupper.texi: Likewise.
16789         * doc/posix-functions/isxdigit.texi: Likewise.
16790
16791 2009-10-18  Bruno Haible  <bruno@clisp.org>
16792
16793         Tests for module 'isblank'.
16794         * modules/isblank-tests: New file.
16795         * tests/test-isblank.c: New file.
16796
16797         New module 'isblank'.
16798         * lib/isblank.c: New file.
16799         * m4/isblank.m4: New file.
16800         * modules/isblank: New file.
16801         * doc/posix-functions/isblank.texi: Mention the new module.
16802
16803 2009-10-18  Bruno Haible  <bruno@clisp.org>
16804
16805         New module 'ctype'.
16806         * lib/ctype.in.h: New file.
16807         * m4/ctype.m4: New file.
16808         * modules/ctype: New file.
16809         * doc/posix-headers/ctype.texi: Mention the new module.
16810
16811 2009-10-18  Jim Meyering  <meyering@redhat.com>
16812
16813         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
16814         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
16815         right after its initialization, rather than farther down.
16816         Keeping these in close proximity makes it easier to ensure
16817         that each such variable is initialized.  E.g.,
16818
16819             LIB_CLOCK_GETTIME=
16820             AC_SUBST([LIB_CLOCK_GETTIME])
16821
16822         This change also increments these serial numbers.
16823         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
16824         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16825         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16826
16827 2009-10-18  Bruno Haible  <bruno@clisp.org>
16828
16829         Don't let environment variables perturb build.
16830         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
16831         (gl_PREREQ_GETHRXTIME): ... not here.
16832
16833 2009-10-18  Bruno Haible  <bruno@clisp.org>
16834
16835         Avoid symlink attack in localcharset module.
16836         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
16837         (O_NOFOLLOW): Define fallback.
16838         (get_charset_aliases): Don't open the file if it is a symbolic link.
16839         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
16840         gl_FCNTL_H.
16841         (gl_FCNTL_H): Require it.
16842         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
16843         * modules/localcharset (Files): Add m4/fcntl_h.m4.
16844         Reported by Fergal Glynn <fglynn@veracode.com>.
16845
16846 2009-10-18  Bruno Haible  <bruno@clisp.org>
16847
16848         Implement nproc for mingw.
16849         * lib/nproc.c: Include <windows.h>
16850         (num_processors): On native Windows platforms, try GetSystemInfo.
16851
16852 2009-10-18  Bruno Haible  <bruno@clisp.org>
16853
16854         Implement nproc for IRIX.
16855         * lib/nproc.c: Include <sys/sysmp.h>.
16856         (num_processors): On IRIX systems, try sysmp.
16857         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
16858
16859 2009-10-18  Bruno Haible  <bruno@clisp.org>
16860
16861         Implement nproc for HP-UX.
16862         * lib/nproc.c: Include <sys/pstat.h>
16863         (num_processors): On HP-UX systems, try pstat_getdynamic.
16864         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
16865         pstat_getdynamic.
16866
16867 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
16868             Bruno Haible  <bruno@clisp.org>
16869
16870         Implement nproc for NetBSD, OpenBSD.
16871         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
16872         (ARRAY_SIZE): New macro.
16873         (num_processors): On BSD systems, try sysctl of HW_NCPU.
16874         * m4/nproc.m4: New file.
16875         * modules/nproc (Files): Add m4/nproc.m4.
16876         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
16877         (Makefile.am): Instead, augment lib_SOURCES.
16878
16879 2009-10-18  Bruno Haible  <bruno@clisp.org>
16880
16881         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
16882         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
16883         sys/param.h.
16884
16885 2009-10-16  Eric Blake  <ebb9@byu.net>
16886
16887         utimensat: new module
16888         * modules/utimensat: New file.
16889         * lib/utimensat.c (utimensat): Likewise.
16890         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16891         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
16892         so we can work around Linux bugs.
16893         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16894         * modules/sys_stat (Makefile.am): Substitute them.
16895         * lib/sys_stat.in.h (utimensat): Declare it.
16896         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16897         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16898         * modules/utimensat-tests: New test.
16899         * tests/test-utimensat.c: Likewise.
16900
16901         utimens: let lutimens work on non-symlinks
16902         * lib/utimens.c (lutimens): Fall back to utimens rather than
16903         failing with ENOSYS, when file is not a symlink.
16904         (utimens): Reduce redirection.
16905         * tests/test-lutimens.h (test_lutimens): Update test to cover
16906         non-symlinks.
16907         * tests/test-utimens.h (test_utimens): Update test to cover
16908         symlinks.
16909         * tests/test-utimens.c (main): Update caller.
16910
16911         utimens: cache whether utimensat syscall works
16912         * lib/utimens.c (utimensat_works_really): New cache variable.
16913         (fdutimens, lutimens): Use it to avoid failing syscall.
16914
16915         test-stat-time, test-utimens: improve portability
16916         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
16917         ext4 on alpha, and for cygwin.
16918         * tests/test-utimens-common.h: New file.
16919         (nap): Factor delays into single function.
16920         * tests/test-lutimens.h (test_lutimens): Use new header.
16921         * tests/test-futimens.h (test_futimens): Likewise.
16922         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
16923         timestamps to occur from same machine, as was done previously for
16924         test_utimens.
16925         * modules/utimens-tests (Files): Ship new file.
16926         * modules/futimens-tests (Files): Likewise.
16927         Reported in part by Jim Meyering.
16928
16929         sys_stat: sort replacement declarations
16930         * lib/sys_stat.in.h: Sort declarations.
16931         * lib/futimens.c (futimens): Fix typo.
16932
16933 2009-10-15  Jim Meyering  <meyering@redhat.com>
16934
16935         don't let environment settings perturb build
16936         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
16937         could cause a configure-time and/or build-time malfunction.
16938         Typically, a configure-time function-in-library test is performed
16939         via code like this:
16940
16941           LIB_VAR=
16942           AC_SUBST([LIB_VAR])
16943           prefix_saved_LIBS=$LIBS
16944             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
16945                        [test "$ac_cv_search_FUNC" = "none required" ||
16946                         LIB_VAR=$ac_cv_search_FUNC])
16947           LIBS=$prefix_saved_LIBS
16948
16949         However, in each of the files affected by this change, the LIB_VAR=
16950         initialization was omitted.  Thus, when set in the environment, its
16951         value would propagate into generated Makefiles when FUNC is not found
16952         in LIB_NAME.
16953         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
16954         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16955         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16956
16957 2009-10-14  Eric Blake  <ebb9@byu.net>
16958
16959         fchdir: avoid infinite recursion in mingw
16960         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
16961         recursing.
16962
16963         test-stat-time: port to mingw
16964         * tests/test-stat-time.c (force_unlink): Return a value.
16965         (test_ctime) [W32]: Fix compilation error.
16966         (nap): Don't call usleep with too large an argument.  Use
16967         force_unlink.
16968         * doc/pastposix-functions/usleep.texi (usleep): Document the
16969         portability issue.
16970
16971 2009-10-13  Jim Meyering  <meyering@redhat.com>
16972
16973         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
16974         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
16975         * modules/pipe-filter-ii: Likewise.
16976         * modules/sys_socket-tests: Likewise.
16977         * modules/tsearch-tests: Likewise.
16978         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
16979         (check): Depend on it.
16980
16981 2009-10-12  Eric Blake  <ebb9@byu.net>
16982
16983         utimens-tests: port to NFS file systems
16984         * tests/test-utimens.h (test_utimens): Refactor utimecmp
16985         comparisons to avoid spurious failures from timestamp drift
16986         between NFS machines.
16987
16988 2009-10-12  Eric Blake  <ebb9@byu.net>
16989
16990         stat-time-tests: minor cleanups
16991         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
16992         * tests/test-stat-time.c (nap): Separate assignment from call.
16993         Suggested by Paolo Bonzini and Bruno Haible.
16994
16995         sys_stat: guarantee struct timespec
16996         * lib/sys_stat.in.h (includes): Always include <time.h>
16997         * modules/sys_stat (Depends-on): Add time.
16998         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
16999         mode_t permission values.
17000         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
17001         get at subsecond timestamps.
17002
17003 2009-10-10  Eric Blake  <ebb9@byu.net>
17004
17005         futimens: new module
17006         * modules/futimens: New file.
17007         * lib/futimens.c (futimens): Likewise.
17008         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
17009         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
17010         we can work around Linux bugs.
17011         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17012         * modules/sys_stat (Makefile.am): Substitute them.
17013         * lib/sys_stat.in.h (futimens): Declare it.
17014         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17015         * doc/posix-functions/futimens.texi (futimens): Likewise.
17016         * modules/futimens-tests: New test.
17017         * tests/test-futimens.c: Likewise.
17018
17019         utimens: introduce fdutimens
17020         * lib/utimens.h (fdutimens): New prototype.
17021         * lib/utimens.c (gl_futimens): Move guts...
17022         (fdutimens): ...to new interface.
17023         * tests/test-utimens.c (do_fdutimens): Use it.
17024
17025         utimens: add UTIME_NOW and UTIME_OMIT support
17026         * lib/utimens.c (validate_timespec, update_timespec): New helper
17027         functions.
17028         (gl_futimens, lutimens): Use them.
17029         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
17030         stdbool, sys_stat.
17031         (Link): Mention resulting library dependency.
17032         * modules/utimecmp (Link): Likewise.
17033         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
17034         (Makefile.am): Pick up library dependency.
17035         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
17036         definition.
17037         * tests/test-sys_stat.c: Test the definitions.
17038         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
17039         * NEWS: Document library dependency.
17040
17041         utimecmp: support symlink timestamps
17042         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
17043         hashing when possible.  Use pathconf when available.
17044         (SYSCALL_RESOLUTION): Recognize tighter resolution.
17045         * modules/utimecmp (Depends-on): Add lstat.
17046
17047         utimens: add lutimens interface
17048         * lib/utimens.c (lutimens): New function.
17049         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
17050         * lib/utimens.h (lutimens): Declare new interface.
17051         * tests/test-utimens.c (main): Enhance test.
17052         * tests/test-lutimens.h (test_lutimens): New file.
17053         * modules/utimens-tests (Files): Distribute it.
17054         (Depends-on): Add symlink.
17055         (configure.ac): Check for usleep.
17056
17057         utimens: validate futimens usage
17058         * lib/utimens.c (gl_futimens): Require valid fd up front, using
17059         fewer syscalls on failure later on.  Avoid compiler warning on
17060         mingw.
17061         * modules/utimens (Depends-on): Add dup2.
17062
17063         utimens: add test
17064         * modules/utimens-tests: New test.
17065         * tests/test-utimens.h: New file.
17066         * tests/test-futimens.h: Likewise.
17067         * tests/test-utimens.c: Likewise.
17068
17069         doc: mention timestamp portability issues
17070         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
17071         instead.
17072         * doc/posix-functions/utime.texi (utime): Likewise.
17073         * doc/posix-functions/utimes.texi (utimes): Likewise.
17074         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
17075         instead.
17076         * doc/posix-functions/futimens.texi (futimens): Mention utimens
17077         module.
17078         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17079         Mention weakness with symlink timestamps.
17080         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
17081         to utimensat/futimens instead.
17082         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
17083
17084         test-dup2: enhance test
17085         * tests/test-dup2.c (main): Also check AT_FDCWD.
17086
17087         test-stat-time: avoid more spurious failures
17088         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
17089         xfs; and avoid race if the two timestamps cross quantization edge.
17090
17091         relocatable: prefer 'file system' over 'filesystem'
17092         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
17093         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
17094         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
17095         * doc/relocatable.texi (Enabling Relocatability): Likewise.
17096         * lib/relocatable.c (compute_curr_prefix): Likewise.
17097
17098 2009-10-10  Jim Meyering  <meyering@redhat.com>
17099
17100         stat-time-tests: check for the usleep function
17101         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
17102
17103 2009-10-10  Bruno Haible  <bruno@clisp.org>
17104
17105         * modules/xnanosleep: Put the Link section after the Include section.
17106
17107 2009-10-09  Eric Blake  <ebb9@byu.net>
17108
17109         dup2: work around FreeBSD 6.1 bug
17110         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
17111         * doc/posix-functions/dup2.texi (dup2): Document it.
17112         Reported by Nelson H. F. Beebe and Jim Meyering.
17113
17114         test-stat-time: port to buggy NFS clients
17115         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
17116         (test_ctime): Also skip test if mtime and ctime are skewed.
17117
17118         maint: prefer 'file system' over 'filesystem'
17119         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
17120         * doc/posix-functions/lstat.texi (lstat): Likewise.
17121         * lib/file-has-acl.c (file_has_acl): Likewise.
17122         * lib/fwriteerror.c [TEST]: Likewise.
17123         * tests/test-areadlink.h (test_areadlink): Likewise.
17124         * tests/test-areadlinkat-with-size.c (main): Likewise.
17125         * tests/test-areadlinkat.c (main): Likewise.
17126         * tests/test-canonicalize-lgpl.c (main): Likewise.
17127         * tests/test-canonicalize.c (main): Likewise.
17128         * tests/test-fstatat.c (main): Likewise.
17129         * tests/test-linkat.c (main): Likewise.
17130         * tests/test-lstat.h (test_lstat_func): Likewise.
17131         * tests/test-mkdir.h (test_mkdir): Likewise.
17132         * tests/test-readlink.h (test_readlink): Likewise.
17133         * tests/test-remove.c (main): Likewise.
17134         * tests/test-rename.h (test_rename): Likewise.
17135         * tests/test-renameat.c (main): Likewise.
17136         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17137         * tests/test-symlink.h (test_symlink): Likewise.
17138         * tests/test-symlinkat.c (main): Likewise.
17139         * tests/test-unlink.h (test_unlink_func): Likewise.
17140         * tests/test-unlinkat.c (main): Likewise.
17141
17142         maint: make realtime library usage explicit
17143         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
17144         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
17145         * modules/settime (Link): Likewise.
17146         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
17147
17148         test-stat-time: speed up execution
17149         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
17150         warning on mingw.
17151         (nap): New helper function.
17152         (prepare_test): Use it to reduce sleep time.
17153         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
17154         execution.
17155         * modules/stat-time-tests (configure.ac): Check for usleep.
17156
17157 2009-10-09  Jim Meyering  <meyering@redhat.com>
17158
17159         selinux-h: always use getfilecon wrappers
17160         * lib/getfilecon.c: New file.
17161         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
17162         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
17163         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
17164         (fgetfilecon): Provide a stub.
17165         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
17166         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
17167         file unconditionally.
17168         When <selinux/selinux.h> is found, arrange to use wrappers.
17169         * modules/selinux-h (Files): Add getfilecon.c.
17170         (Makefile.am): Substitute include-next-related bits
17171         into the now-always-generated selinux/selinux.h file.
17172         * doc/glibc-functions/lgetfilecon.texi: New file.
17173         * doc/glibc-functions/fgetfilecon.texi: New file.
17174         * doc/glibc-functions/getfilecon.texi: New file.
17175         * doc/glibc-functions/getfilecon-desc.texi: New file.
17176         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
17177         which to pull in the new files.
17178         * MODULES.html.sh (Misc): Add selinux-h.
17179
17180 2009-10-08  Jim Meyering  <meyering@redhat.com>
17181
17182         unistd: fix comment typo
17183         * lib/unistd.in.h (euidaccess): Fix a comment typo.
17184
17185 2009-10-08  Eric Blake  <ebb9@byu.net>
17186
17187         areadlink: use SIZE_MAX consistently
17188         * modules/areadlink (Depends-on): Add stdint.
17189         * modules/areadlink-with-size (Depends-on): Likewise.
17190         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
17191         gives NULL; drop sys/types, since unistd gives size_t; and add
17192         stdint for SIZE_MAX.
17193         (SIZE_MAX): Rely on headers.
17194         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
17195         and add stdint.
17196         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
17197         (SIZE_MAX): Likewise.
17198         (INITIAL_BUF_SIZE): Turn into enum.
17199         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
17200
17201 2009-10-08  Jim Meyering  <meyering@redhat.com>
17202
17203         areadlinkat: avoid compilation failure
17204         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
17205         Fix typo in comment.
17206
17207 2009-10-07  Eric Blake  <ebb9@byu.net>
17208
17209         areadlinkat-with-size: new module
17210         * modules/areadlinkat-with-size: New module.
17211         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
17212         * lib/areadlink.h (areadlinkat): Declare it.
17213         * MODULES.html.sh (File system functions): Mention it.
17214         * modules/areadlinkat-with-size-tests: New test.
17215         * tests/test-areadlinkat-with-size.c: New file.
17216
17217         xreadlinkat: new module
17218         * modules/xreadlinkat: New module.
17219         * lib/xreadlinkat.c (xreadlinkat): New file.
17220         * lib/xreadlink.h (xreadlinkat): Declare it.
17221         * MODULES.html.sh (File system functions): Mention it.
17222
17223         areadlinkat: new module
17224         * lib/at-func.c (FUNC_FAIL): New define.
17225         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
17226         * modules/areadlinkat: New module.
17227         * lib/linkat.c (areadlinkat): Move...
17228         * lib/areadlinkat.c (areadlinkat): ...to new file.
17229         * lib/areadlink.h (areadlinkat): Declare it.
17230         * modules/linkat (Depends-on): Add areadlinkat.
17231         * MODULES.html.sh (File system functions): Mention it.
17232         * modules/areadlinkat-tests: New test.
17233         * tests/test-areadlinkat.c: New file.
17234
17235         areadlink, areadlink-with-size: add tests
17236         * modules/areadlink-tests: New test.
17237         * modules/areadlink-with-size-tests: Likewise.
17238         * tests/test-areadlink.h: New file.
17239         * tests/test-areadlink.c: Likewise.
17240         * tests/test-areadlink-with-size.c: Likewise.
17241
17242         maint: minor cleanups
17243         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
17244         _UNUSED_PARAMETER_ instead.
17245         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
17246         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
17247         * modules/linkat-tests (Files): Distribute test-link.h.
17248
17249         openat, utimens: whitespace cleanup
17250         * lib/openat.c: Prefer space throughout, rather than mix of 8
17251         spaces vs. tabs.
17252         * lib/at-func.c: Likewise.
17253         * lib/utimens.c: Likewise.
17254
17255         openat: avoid using wrong fd
17256         * lib/openat.c (openat_permissive): Reject user's fd if saving the
17257         working directory chooses same fd.
17258         * lib/at-func.c (AT_FUNC_NAME): Likewise.
17259
17260         mkdir, mkdirat: fix cygwin 1.5.x bug
17261         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
17262         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
17263         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
17264         bug.
17265         (gl_PREREQ_MKDIR): Delete unused macro.
17266         * modules/mkdir (Files): Track file rename.
17267         (configure.ac): Update macro name.
17268         * modules/openat (Depends-on): Add mkdir.
17269         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
17270
17271         mkdir, mkdirat: add tests
17272         * modules/mkdir-tests: New test.
17273         * tests/test-mkdir.h: New file.
17274         * tests/test-mkdir.c: Likewise.
17275         * tests/test-mkdirat.c: Likewise.
17276         * modules/openat-tests (Files): Add new files.
17277         (Makefile.am): Run new test.
17278
17279 2009-10-06  Eric Blake  <ebb9@byu.net>
17280
17281         doc: tweak *at function documentation
17282         * doc/posix-functions/faccessat.texi (faccessat): Mention
17283         known issue with replacement.
17284         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
17285         * doc/posix-functions/linkat.texi (linkat): Likewise.
17286         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
17287         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
17288         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17289         * doc/posix-functions/renameat.texi (renameat): Likewise.
17290         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17291
17292         openat: fix GNU/Hurd bug in unlinkat
17293         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
17294         broken.
17295         * doc/posix-functions/unlink.texi (unlink): Document this.
17296         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
17297
17298         fdopendir: fix GNU/Hurd bug
17299         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
17300         allowing non-directory fds.
17301         * lib/fdopendir.c (rpl_fdopendir): Work around it.
17302         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17303         * modules/dirent (Makefile.am): Substitute it.
17304         * lib/dirent.in.h (fdopendir): Declare replacement.
17305         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
17306         * tests/test-fdopendir.c (main): Test something other than
17307         /dev/null, since on Hurd that behaves like a directory.
17308
17309         test-symlink: port to GNU/Hurd
17310         * tests/test-symlink.h (test_symlink): Relax expected errno.
17311
17312         doc: tweak more cygwin information
17313         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
17314         now compatible with glibc.
17315         * doc/posix-functions/getopt.texi (getopt): Likewise.
17316
17317         getopt-gnu: add another test
17318         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
17319         guarantee behavior relied on by m4.
17320         * tests/test-getopt.c (main): Use it.
17321         * modules/getopt-posix-tests (Depends-on): Add setenv.
17322         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
17323
17324         getopt: fix compilation on darwin
17325         * lib/getopt.in.h (includes): Leave breadcrumbs during system
17326         include.
17327         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
17328         Reported by Ludovic Courtès.
17329
17330 2009-10-06  Bruno Haible  <bruno@clisp.org>
17331
17332         * modules/size_max (Description): Discourage its use.
17333         Reported by Simon Josefsson.
17334
17335 2009-10-06  Jim Meyering  <meyering@redhat.com>
17336
17337         linkat: avoid compilation failure
17338         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
17339
17340 2009-10-05  Eric Blake  <ebb9@byu.net>
17341
17342         linkat: support Linux 2.6.17
17343         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
17344         linkat on Linux, but allow cache variable override.
17345         * lib/linkat.c (rpl_linkat): Define override.
17346         * modules/linkat (Depends-on): Add symlinkat.
17347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
17348         * modules/unistd (Makefile.am): Substitute it.
17349         * lib/unistd.in.h (linkat): Declare replacement.
17350         Reported by Pádraig Brady.
17351
17352         quotearg: port test to systems with C.UTF-8 locale
17353         * tests/test-quotearg.c (struct result_strings): Add another
17354         member, differentiating between C.ASCII and C.UTF-8 handling.
17355         (compare_strings): Add parameter.
17356         (main): Adjust all callers.
17357
17358         getopt: avoid clash with FreeBSD _getopt_internal
17359         * lib/getopt.in.h (_getopt_internal): Override the name.
17360         * lib/getopt_int.h (includes): Pick up any overrides.
17361         Reported by Reuben Thomas.
17362
17363         hash: allow C89 compilation
17364         * lib/hash.c (check_tuning): Move declaration before statement.
17365         Reported by Reuben Thomas.
17366
17367 2009-10-05  Karl Berry  <karl@gnu.org>
17368
17369         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
17370
17371 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
17372             Bruno Haible  <bruno@clisp.org>
17373
17374         * lib/uname.c (uname): Use a table-driven algorithm to compute
17375         Windows NT versions.
17376
17377 2009-10-04  Bruno Haible  <bruno@clisp.org>
17378
17379         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
17380         program_invocation_short_name.
17381         * modules/progname (configure.ac): Test for presence of
17382         program_invocation_short_name.
17383         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17384
17385 2009-10-04  Bruno Haible  <bruno@clisp.org>
17386
17387         * lib/progname.c (set_program_name): Fix comment.
17388         Reported by Jim Meyering.
17389
17390 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
17391             Bruno Haible  <bruno@clisp.org>
17392
17393         * lib/uname.c: Include <string.h>.
17394         (uname): Do only one call to GetVersionEx in the common case.
17395
17396 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
17397             Bruno Haible  <bruno@clisp.org>
17398
17399         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
17400         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
17401         (uname): Add support for Windows CE and various non-x86 CPU types.
17402
17403 2009-10-03  Bruno Haible  <bruno@clisp.org>
17404
17405         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
17406         invocation to tests/configure.ac.
17407         Reported by Ian Beckwith <ianb@erislabs.net>.
17408
17409 2009-10-02  Eric Blake  <ebb9@byu.net>
17410
17411         fchdir: avoid compiler warning
17412         * lib/fchdir.c (canonicalize_file_name)
17413         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
17414
17415         test-open: support mingw errno values
17416         * tests/test-open.h (test_open): Relax test.
17417         * tests/test-fopen.h (test_fopen): Likewise.
17418         * tests/test-openat-safer.c (main): Likewise.
17419
17420         open: fix opening directory on mingw
17421         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
17422
17423         test-open: on GNU/Hurd, /dev/null is a directory
17424         * tests/test-fopen.h (main): Rename...
17425         (test_fopen): ...to this.  Use a guaranteed non-directory when
17426         confirming open behavior on trailing slash.
17427         * tests/test-openat-safer.c (main): Likewise.
17428         * tests/test-open.h (main): Likewise....
17429         (test_open): ...to this.
17430         * tests/test-fopen.c (main): Adjust caller.
17431         * tests/test-fopen-safer.c (main): Likewise.
17432         * tests/test-open.c (main): Likewise.
17433         * tests/test-fcntl-safer.c (main): Likewise.
17434         Reported by Samuel Thibault.
17435
17436         rename, fchdir: don't ignore chdir failure
17437         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
17438         * lib/rename.c (rpl_rename) [W32]: Likewise.
17439         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
17440         an empty destination directory if source cannot be renamed,
17441         although there is still possibility for failure.
17442         * doc/posix-functions/rename.texi (rename): Document the race.
17443         Reported by Jim Meyering.
17444
17445         maint: cleanup whitespace in recent commits
17446         * lib/rename.c (rpl_rename): Remove tabs.
17447         * tests/test-link.h (test_link): Likewise.
17448         * lib/fchdir.c (get_name): Likewise.
17449         Reported by Jim Meyering.
17450
17451 2009-10-02  Ben Pfaff  <blp@gnu.org>
17452
17453         relocatable-prog-wrapper: Add missing dependency on
17454         double-slash-root.
17455         * modules/relocatable-prog-wrapper: Add dependency.
17456         Reported by Ian Beckwith <ianb@erislabs.net>.
17457
17458 2009-10-02  Eric Blake  <ebb9@byu.net>
17459
17460         renameat: fix Solaris bugs
17461         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
17462         needed fixing.
17463         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
17464         * modules/stdio (Makefile.am): Substitute it.
17465         * lib/stdio.in.h (renameat): Declare replacement.
17466         * lib/renameat.c (rpl_renameat): Implement fix.
17467
17468         renameat: new module
17469         * modules/renameat: New file.
17470         * lib/renameat.c (renameat): Likewise.
17471         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
17472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
17473         * modules/stdio (Makefile.am): Substitute them.
17474         * lib/stdio.in.h (renameat): Declare it.
17475         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17476         * doc/posix-functions/renameat.texi (renameat): Likewise.
17477         * modules/renameat-tests: New test.
17478         * tests/test-renameat.c: Likewise.
17479
17480         rename: fix mingw bugs
17481         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
17482         directory overwrite bugs.
17483
17484         rename: fix another cygwin 1.5 bug
17485         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
17486         checks.
17487         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
17488         unnecessary cygwin workarounds.  Also work around bug with moving
17489         full directory onto an empty one.
17490         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
17491
17492         rename-dest-slash: merge into rename module
17493         * modules/rename-dest-slash (Status): Mark obsolete.
17494         (Depends-on): Add rename.
17495         (Files): Let rename do it all.
17496         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
17497         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
17498         * m4/rename-dest-slash.m4: ...so this file can be deleted.
17499         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
17500         * lib/rename.c (rpl_rename): Update comments.
17501
17502         rename: fix cygwin 1.5.x bugs
17503         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
17504         * lib/rename.c (rpl_rename): Work around them.
17505         * modules/rename (Depends-on): Add same-inode.
17506
17507         rename: fix Solaris 10 bug
17508         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
17509         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
17510         was the only bug.
17511
17512         rename: fix Solaris 9 bug
17513         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
17514         on non-directory.  Avoid calling exit.
17515         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
17516         strdup.
17517         * modules/rename-tests (Depends-on): Drop lstat.
17518         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
17519         (gl_PREREQ_RENAME): Delete unused macro.
17520
17521         rename-dest-slash: fix NetBSD bug
17522         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
17523         links.
17524         * modules/rename-dest-slash (Depends-on): Add same-inode.
17525
17526         rename-tests: new test, exposes several platform bugs
17527         * modules/rename-tests: New file.
17528         * tests/test-rename.h: Likewise.
17529         * tests/test-rename.c: Likewise.
17530         * doc/posix-functions/rename.texi (rename): Improve documentation,
17531         including bugs that will eventually be fixed in gnulib.
17532
17533 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
17534
17535         * lib/uname.c: Include <stdlib.h>
17536         (uname): Assume version info is available.
17537
17538 2009-10-02  Jim Meyering  <meyering@redhat.com>
17539
17540         gnu-web-doc-update: correct --help output
17541         * build-aux/gnu-web-doc-update: Make --help output relevant.
17542
17543         gnu-web-doc-update: add standard options
17544         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
17545
17546         gnu-web-doc-update: New module.
17547         Use this script to automatically update the on-line web documentation
17548         for your GNU project at http://www.gnu.org/software/$pkg/manual/
17549         * modules/gnu-web-doc-update: New file, from coreutils.
17550         * build-aux/gnu-web-doc-update: New script.
17551
17552 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
17553
17554         link: LoadLibrary is not needed.
17555         * lib/link.c: Use GetModuleHandle.
17556
17557 2009-10-01  Eric Blake  <ebb9@byu.net>
17558
17559         getopt: bump serial number
17560         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
17561         change.
17562
17563         tests: tighten link, rmdir, and remove tests
17564         * tests/test-link.h (includes): No need to use <config.h> here.
17565         Clean up if directory hard link was created, otherwise test for
17566         trailing '.'.
17567         * tests/test-linkat.c (main): Simplify.
17568         * tests/test-remove.c (main): Enhance test for trailing '.'.
17569         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17570
17571 2009-10-01  Jim Meyering  <meyering@redhat.com>
17572
17573         maint.mk: requiring "make major" was annoying, for a "minor" release.
17574         What is intended is "stable", to contrast with alpha and beta,
17575         so require "make stable", not "make major".
17576         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
17577         (get_tool_versions): Likewise.
17578         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
17579
17580 2009-09-30  Ben Pfaff  <blp@gnu.org>
17581
17582         Fix broken build of replacement for Windows tmpfile().
17583         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
17584         flags argument added along with the 'mkostemp' module.
17585
17586 2009-09-28  Bruno Haible  <bruno@clisp.org>
17587
17588         Avoid identifier clash with POSIX function 'remove' defined as a macro.
17589         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
17590         to 'remove_elt'.
17591         (gl_list_remove): Update.
17592         * lib/gl_list.c (gl_list_remove): Update.
17593         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
17594         to 'remove_elt'.
17595         (gl_oset_remove): Update.
17596         * lib/gl_list.c (gl_oset_remove): Update.
17597         Reported by Eric Blake.
17598
17599 2009-09-28  Eric Blake  <ebb9@byu.net>
17600
17601         doc: mention yet more cygwin 1.7 status
17602         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
17603         cygwin.
17604         * doc/glibc-functions/execvpe.texi (execvpe): New file.
17605         * doc/gnulib.texi (Glibc unistd.h): Mention it.
17606
17607         argp: fix test failure
17608         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
17609         that are not upper-case.  Pass correct range to tolower.
17610
17611 2009-09-27  Jim Meyering  <meyering@redhat.com>
17612
17613         test-yesno: work around sparc-dash here-document infelicity
17614         Without this change, the literal \177 byte in a here document
17615         would make dash 0.5.5.1-3 access uninitialized memory.
17616         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
17617         Instead, use a marker, "@", and filter through tr to create the desired
17618         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
17619
17620 2009-09-27  Bruno Haible  <bruno@clisp.org>
17621
17622         Disable untested support for new flavours of ACLs on AIX.
17623         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
17624         progress.
17625         * lib/set-mode-acl.c (qset_acl): Likewise.
17626
17627 2008-12-07  Bruno Haible  <bruno@clisp.org>
17628
17629         Add support for new flavours of ACLs on AIX. (Untested.)
17630         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
17631         (file_has_acl): Add support for newer AIX.
17632         * lib/set-mode-acl.c (qset_acl): Likewise.
17633         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
17634         Rainer Tammer <tammer@tammer.net>.
17635
17636 2009-09-26  Eric Blake  <ebb9@byu.net>
17637
17638         argp: fix compilation of getopt
17639         * lib/getopt.in.h (includes): Use different guard than glibc.
17640         Reported by Sergey Poznyakoff.
17641
17642         doc: mention more cygwin 1.7 status
17643         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
17644         bug.
17645         * doc/posix-functions/execl.texi (execl): Likewise.
17646         * doc/posix-functions/execle.texi (execle): Likewise.
17647         * doc/posix-functions/execlp.texi (execlp): Likewise.
17648         * doc/posix-functions/execv.texi (execv): Likewise.
17649         * doc/posix-functions/execve.texi (execve): Likewise.
17650         * doc/posix-functions/execvp.texi (execvp): Likewise.
17651         * doc/glibc-functions/canonicalize_file_name.texi
17652         (canonicalize_file_name): Cygwin 1.7 now provides this.
17653         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
17654         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
17655         on AT_SYMLINK_NOFOLLOW.
17656
17657 2009-09-24  Eric Blake  <ebb9@byu.net>
17658
17659         test-linkat: make test more robust
17660         * tests/test-linkat.c (main): Avoid collision with EEXIST.
17661
17662         getopt: fix inclusion guards for cygwin
17663         * modules/getopt-posix (Depends-on): Add include-next.
17664         (Makefile.am): Substitute more items in replacement header.
17665         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
17666         <getopt.h>.
17667         * lib/getopt.in.h (includes): Use split inclusion guard, and
17668         prefer <getopt.h> over include <unistd.h> when one is present.
17669         (option): Also override name of 'struct option'.
17670
17671         same-inode: revert prior change; it is not yet ready
17672         * NEWS: Undo mention of this change.
17673         * lib/same-inode.h (same-inode.h): Undo tri-state change.
17674         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
17675         * lib/cycle-check.c (cycle_check): Likewise.
17676         * lib/same.c (same_name): Likewise.
17677         * lib/at-func2.c (at_func2): Likewise.
17678
17679 2009-09-23  Eric Blake  <ebb9@byu.net>
17680
17681         linkat: new module
17682         * modules/linkat: New file.
17683         * lib/at-func2.c (at_func2): Likewise.
17684         * lib/linkat.c (linkat): Likewise.
17685         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17686         * lib/openat-priv.h (at_func2): Add declaration.
17687         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17688         * modules/unistd (Makefile.am): Substitute them.
17689         * lib/unistd.in.h (linkat): Declare it.
17690         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17691         * doc/posix-functions/linkat.texi (linkat): Likewise.
17692         * doc/posix-functions/link.texi (link): Tweak wording.
17693         * tests/test-link.c (main): Move guts...
17694         * tests/test-link.h (test_link): ...into new file.
17695         * modules/linkat-tests: New test.
17696         * tests/test-linkat.c: Likewise.
17697         * modules/link-tests (Files): Ship new file.
17698         (Depends-on): Add stdbool.
17699
17700         dirname: add library-safe mdir_name
17701         * lib/dirname.h (mdir_name): New prototype.
17702         * lib/dirname.c (dir_name): Move guts...
17703         (mdir_name): ...to new function that avoids xalloc_die.
17704
17705         fchdir: another mingw fix
17706         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
17707         * lib/fchdir.c (get_name): New helper method; skips canonicalize
17708         on mingw (where it has not yet been ported), and make it optional
17709         elsewhere.
17710         (_gl_register_fd): Use it.
17711
17712         same-inode: make SAME_INODE tri-state, to port to mingw
17713         * NEWS: Mention this change.
17714         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
17715         st_ino always being 0.
17716         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
17717         * lib/cycle-check.c (cycle_check): Likewise.
17718         * lib/same.c (same_name): Likewise.
17719
17720         lstat: avoid mingw compilation error
17721         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
17722         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
17723         lstat ourselves.
17724         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
17725         was adequate.
17726         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
17727         the checks for lstat.
17728         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
17729
17730         link: fix test failure on Solaris 9
17731         * lib/link.c (rpl_link): Don't assume link will catch bogus
17732         trailing slash on source.
17733
17734         test-symlinkat: enhance test
17735         * tests/test-readlink.c (main): Move guts...
17736         * tests/test-readlink.h (test_readlink): ...into new file.
17737         * tests/test-symlink.c (main): Move guts...
17738         * tests/test-symlink.h (test_symlink): ...into new file.
17739         * tests/test-symlinkat.c (main): Use new files for further
17740         coverage.
17741         (do_symlink, do_readlink): New helper functions.
17742         * modules/symlink-tests (Files): Ship new file.
17743         (Depends-on): Add stdbool.
17744         * modules/readlink-tests (Files): Ship new file.
17745         (Depends-on): Add stdbool.
17746         * modules/symlinkat-tests (Files): Use new files.
17747
17748 2009-09-23  Eric Blake  <ebb9@byu.net>
17749
17750         readlink: document portability issue with symlink length
17751         * doc/posix-functions/lstat.texi (lstat): Mention that some file
17752         systems have bogus st_size on symlinks, and mention the
17753         areadlink-with-size module.
17754         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
17755         * doc/posix-functions/readlink.texi (readlink): Mention the
17756         areadlink module, and ERANGE failure.
17757         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17758         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
17759
17760         readlink: fix Solaris 9 bug with trailing slash
17761         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
17762         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
17763         * doc/posix-functions/readlink.texi (readlink): Document this.
17764         * modules/readlink-tests: New test.
17765         * tests/test-readlink.c: Likewise.
17766
17767         readlink: fix cygwin 1.5.x bug with return type
17768         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
17769         * lib/unistd.in.h (readlink): Use ssize_t.
17770         * lib/readlink.c (readlink): Likewise.
17771         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17772         * modules/unistd (Makefile.am): Substitute it.
17773         * lib/unistd.in.h (readlink): Declare replacement.
17774         * doc/posix-functions/readlink.texi (readlink): Document this.
17775
17776         symlink: use throughout gnulib
17777         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
17778         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
17779         symlink is not used.
17780         * modules/symlinkat (Depends-on): Add symlink.
17781         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17782         * modules/canonicalize-tests (Depends-on): Likewise.
17783         * modules/lstat-tests (Depends-on): Likewise.
17784         * modules/openat-tests (Depends-on): Likewise.
17785         * modules/remove-tests (Depends-on): Likewise.
17786         * modules/rmdir-tests (Depends-on): Likewise.
17787         * modules/unlink-tests (Depends-on): Likewise.
17788         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
17789         * tests/test-canonicalize.c (symlink): Likewise.
17790         * tests/test-fstatat.c (symlink): Likewise.
17791         * tests/test-lstat.c (symlink): Likewise.
17792         * tests/test-remove.c (symlink): Likewise.
17793         * tests/test-rmdir.c (symlink): Likewise.
17794         * tests/test-unlink.c (symlink): Likewise.
17795         * tests/test-unlinkat.c (symlink): Likewise.
17796
17797         symlink: new module, for Solaris 9 bug
17798         * modules/symlink: New file.
17799         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17800         * lib/symlink.c: Likewise.
17801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
17802         * modules/unistd (Makefile.am): Substitute them.
17803         * lib/unistd.in.h (symlink): Declare replacement.
17804         * MODULES.html.sh (File system functions): Mention it.
17805         * doc/posix-functions/symlink.texi (symlink): Likewise.
17806         * modules/symlink-tests: New test.
17807         * tests/test-symlink.c: Likewise.
17808
17809 2009-09-23  Bruno Haible  <bruno@clisp.org>
17810
17811         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
17812         when needed.
17813         Test case: gnulib-tool --import --with-tests atexit inttypes.
17814         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
17815
17816 2009-09-23  Bruno Haible  <bruno@clisp.org>
17817
17818         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
17819         subcommand, not in a subshell.
17820
17821 2009-09-22  Eric Blake  <ebb9@byu.net>
17822
17823         unistd: sort replacement declarations
17824         * lib/unistd.in.h: Sort declarations.
17825
17826         open, openat: minor optimization
17827         * lib/open.c (open): If open succeeded, len is non-zero.
17828         * lib/openat.c (rpl_openat): Likewise.
17829
17830         link-follow: ensure correct result
17831         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
17832         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
17833         distinguish between possible failures.
17834
17835 2009-09-21  Eric Blake  <ebb9@byu.net>
17836
17837         fts: avoid compiler warning
17838         * lib/fts.c (dirent_inode_sort_may_be_useful)
17839         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
17840
17841 2009-09-19  Bruno Haible  <bruno@clisp.org>
17842
17843         * lib/progreloc.c (canonicalize_file_name): New declaration.
17844
17845 2009-09-19  Eric Blake  <ebb9@byu.net>
17846
17847         link: fix quoting
17848         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
17849
17850         openat: fix openat bugs on Solaris 9
17851         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
17852         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
17853         * modules/openat (Depends-on): Add open.
17854         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
17855         * modules/fcntl-h (Makefile.am): Substitute it.
17856         * lib/fcntl.in.h (openat): Declare replacement.
17857         * doc/posix-functions/openat.texi (openat): Document this.
17858
17859         openat: move fstatat and unlinkat into correct files
17860         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
17861         compiled.
17862         * lib/openat.c (fstatat, unlinkat): Move...
17863         * lib/fstatat.c (fstatat): ...into correct files.
17864         * lib/unlinkat.c (unlinkat): Likewise.
17865
17866         openat: fix unlinkat bugs on Solaris 9
17867         * lib/unlinkat.c (unlinkat): New file.
17868         * modules/openat (Depends-on): Add unlink.
17869         (Files): Distribute it.
17870         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
17871         trailing slash behavior is broken.
17872         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17873         * modules/unistd (Makefile.am): Substitute it.
17874         * lib/unistd.in.h (unlinkat): Declare replacement.
17875         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
17876
17877         openat: fix fstatat bugs on Solaris 9
17878         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
17879         stat.
17880         * doc/posix-functions/fstatat.texi (fstatat): Document this.
17881
17882         test-unlinkat: enhance test, to expose Solaris 9 bug
17883         * tests/test-unlink.c (main): Factor guts...
17884         * tests/test-unlink.h (test_rmdir_func): ...into new file.
17885         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
17886         * tests/test-rmdir.c (main): Adjust caller.
17887         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
17888         (unlinker): New helper function.
17889         (rmdirat): Enhance check.
17890         * modules/rmdir-tests (Depends-on): Add stdbool.
17891         * modules/unlink-tests (Depends-on): Likewise.
17892         (Files): Add test-unlink.h.
17893         * modules/openat-tests (Files): Likewise.
17894         (Depends-on): Add unlinkdir.
17895
17896         test-fstatat: new test, to expose Solaris 9 bugs
17897         * tests/test-stat.c (main): Factor guts...
17898         * tests/test-stat.h (test_stat_func): ...into new file.
17899         * tests/test-lstat.c (main): Factor guts...
17900         * tests/test-lstat.h (test_lstat_func): ...into new file.
17901         * tests/test-fstatat.c: New file.
17902         * modules/stat-tests (Files): Add test-stat.h.
17903         * modules/lstat-tests (Files): Add test-lstat.h.
17904         (Depends-on): Add stdbool.
17905         * modules/openat-tests (Depends-on): Add pathmax.
17906         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
17907         (Makefile.am): Run new test.
17908
17909         remove: new module, for mingw and Solaris 9 bugs
17910         * modules/remove: New file.
17911         * lib/remove.c: Likewise.
17912         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
17913         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
17914         * modules/stdio (Makefile.am): Use them.
17915         * lib/stdio.in.h (remove): Declare replacement.
17916         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17917         * doc/posix-functions/remove.texi (remove): Likewise.
17918         * modules/remove-tests: New test.
17919         * tests/test-remove.c: Likewise.
17920
17921         unlink: new module, for Solaris 9 bug
17922         * modules/unlink: New file.
17923         * lib/unlink.c: Likewise.
17924         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17926         * modules/unistd (Makefile.am): Use them.
17927         * lib/unistd.in.h (stat): Declare replacement.
17928         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17929         * doc/posix-functions/unlink.texi (unlink): Likewise.
17930         * modules/unlink-tests: New test.
17931         * tests/test-unlink.c: Likewise.
17932
17933         lstat: fix Solaris 9 bug
17934         * lib/lstat.c (lstat): Also check for trailing slash on
17935         non-symlink, non-directories.  Use stat module to simplify logic.
17936         * doc/posix-functions/lstat.texi (lstat): Document it.
17937         * modules/lstat-tests (Depends-on): Add errno, same-inode.
17938         (configure.ac): Check for symlink.
17939         * tests/test-lstat.c (main): Add more tests.
17940
17941         stat: add as dependency to other modules
17942         * modules/chown (Depends-on): Add stat.
17943         * modules/euidaccess (Depends-on): Likewise.
17944         * modules/fchdir (Depends-on): Likewise.
17945         * modules/isdir (Depends-on): Likewise.
17946         * modules/link (Depends-on): Likewise.
17947         * modules/lstat (Depends-on): Likewise.
17948         * modules/mkdir-p (Depends-on): Likewise.
17949         * modules/modechange (Depends-on): Likewise.
17950         * modules/open (Depends-on): Likewise.
17951         * modules/readlink (Depends-on): Likewise.
17952         * modules/same (Depends-on): Likewise.
17953
17954         stat: fix Solaris 9 bug
17955         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
17956         slash.
17957         * lib/stat.c (rpl_stat): Work around it.
17958         * doc/posix-functions/stat.texi (stat): Update documentation.
17959
17960         stat: new module, for mingw bug
17961         * modules/stat: New file.
17962         * lib/stat.c: Likewise.
17963         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17964         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17965         * modules/sys_stat (Makefile.am): Use them.
17966         * lib/sys_stat.in.h (stat): Declare replacement.
17967         * lib/openat.c (fstatat): Deal with lstat and stat being function
17968         macros.
17969         * modules/openat (Depends-on): Add inline.
17970         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17971         * doc/posix-functions/stat.texi (stat): Likewise.
17972         * modules/stat-tests: New test.
17973         * tests/test-stat.c: Likewise.
17974
17975 2009-09-19  Jim Meyering  <meyering@redhat.com>
17976
17977         syntax-check: detect unnecessary inclusion of canonicalize.h
17978         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
17979
17980 2009-09-19  Eric Blake  <ebb9@byu.net>
17981
17982         canonicalize-lgpl: adjust clients to use correct header
17983         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
17984         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
17985         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
17986         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
17987         * lib/progreloc.c (includes): Likewise.
17988
17989 2009-09-19  Jim Meyering  <meyering@redhat.com>
17990
17991         test-posixtm.c: correct a comment
17992         * tests/test-posixtm.c: Correct first-line comment.
17993         Spotted by Eric Blake.
17994
17995 2009-09-16  Jim Meyering  <meyering@redhat.com>
17996
17997         posixtm-tests: make T const-correct; add a test case
17998         * tests/test-posixtm.c (T): Declare const.
17999         Add a test for -(2^31+1).
18000         Remove useless can-succeed-only-in-2002 test.
18001
18002         posixtm-tests: adjust the sole failing test
18003         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
18004         expected output matches what mktime now produces.  Cross-checked via
18005         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
18006
18007         posixtm: move #ifdef'd tests into a new module
18008         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
18009         * tests/test-posixtm.c: ... this new file.
18010         * modules/posixtm-tests: New module.
18011
18012 2009-09-19  Eric Blake  <ebb9@byu.net>
18013
18014         openat: simplify use of at-func.c
18015         * lib/at-func.c (includes): Include prerequisites here, to
18016         simplify requirements on client files.
18017         * lib/openat-priv.h: Add double-inclusion guard.
18018         * lib/faccessat.c (includes): Simplify.
18019         * lib/fchmodat.c (includes): Likewise.
18020         * lib/fchownat.c (includes): Likewise.
18021         * lib/mkdirat.c (includes): Likewise.
18022         * lib/mkfifoat.c (includes): Likewise.
18023         * lib/symlinkat.c (includes): Likewise.
18024
18025         openat: allow return of fd 0
18026         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
18027         * modules/save-cwd (Depends-on): Replace fcntl-safer with
18028         unistd-safer.
18029         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
18030         <fcntl.h>; this module does not leak fds.
18031         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
18032         must be allowed to return 0, leaving openat_safer to add the
18033         safety.
18034         (openat_permissive): Avoid writing to just-opened fd 2 if
18035         restoring the current directory fails.
18036         * lib/openat-die.c (openat_restore_fail): Add comment.
18037         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
18038         (save_cwd): Guarantee safe fd, but without use of open_safer.
18039         * tests/test-openat.c: New test.
18040         * modules/openat-tests (Files, Makefile.am): Distribute and build
18041         new file.
18042
18043         relocatable-prog-wrapper: fix build
18044         * modules/relocatable-prog-wrapper (Files): Update name of
18045         canonicalize m4 file, broken on 2009-09-17.
18046         Reported by emad hajjar <aleppos@hotmail.com>.
18047
18048 2009-09-19  Bruno Haible  <bruno@clisp.org>
18049
18050         * lib/safe-alloc.h: Use the standard header with GPL copyright.
18051         * lib/safe-alloc.c: Likewise.
18052         Reported by Ian Beckwith <ianb@erislabs.net>.
18053
18054 2009-09-18  Bruno Haible  <bruno@clisp.org>
18055
18056         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
18057         Reported by <erobles@sensacd.com.mx>.
18058
18059 2009-09-17  Eric Blake  <ebb9@byu.net>
18060
18061         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
18062         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
18063         slashes when checking if last component is missing.
18064         * tests/test-canonicalize.c (main): Test this.
18065
18066         canonicalize, canonicalize-lgpl: honor // if distinct from /
18067         * modules/canonicalize (Files): Add double-slash-root.m4.
18068         * modules/canonicalize-lgpl (Files): Likewise.
18069         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
18070         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
18071         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
18072         fallback definition.
18073         (canonicalize_filename_mode): Use it to protect //.
18074         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
18075         (__realpath): Likewise.
18076         * tests/test-canonicalize.c (main): Test this.
18077         * tests/test-canonicalize-lgpl.c (main): Likewise.
18078         * modules/canonicalize-tests (Depends-on): Add same-inode.
18079         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18080
18081         canonicalize-lgpl: fix glibc bug with trailing slash
18082         * m4/canonicalize-lgpl.m4: Move contents...
18083         * m4/canonicalize.m4: ...here.
18084         (gl_CANONICALIZE_LGPL): Factor realpath check...
18085         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
18086         glibc 2.3.5 bug, fixed 2005-04-27.
18087         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
18088         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
18089         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
18090         * modules/canonicalize-lgpl (Files): Manage file rename.
18091         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
18092         * modules/stdlib (Makefile.am): Substitute witness.
18093         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
18094         is needed.
18095         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
18096         replacement is required.
18097         * lib/canonicalize.c (canonicalize_file_name): Likewise.
18098         * doc/glibc-functions/canonicalize_file_name.texi
18099         (canonicalize_file_name): Document this.
18100         * doc/posix-functions/realpath.texi (realpath): Likewise.
18101
18102         canonicalize-lgpl: reject non-directory with trailing slash
18103         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
18104         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
18105         catches failures in glibc 2.3.5.
18106         * tests/test-canonicalize.c (main): Likewise.
18107
18108         canonicalize-lgpl: use native realpath if it works
18109         * lib/canonicalize-lgpl.c (realpath): Guard with
18110         FUNC_REALPATH_WORKS.
18111         * lib/stdlib.in.h (realpath): Make declaration optional based on
18112         HAVE_REALPATH.
18113         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
18114         native realpath works.
18115         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
18116         * modules/stdlib (Makefile.am): Substitute witness.
18117
18118         canonicalize, canonicalize-lgpl: use <stdlib.h>
18119         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
18120         (Include): Mention <stdlib.h>.
18121         (configure.ac): Mention functions we provide.
18122         * modules/canonicalize (configure.ac): Likewise.
18123         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
18124         realpath if canonicalize_file_name is missing.
18125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
18126         * modules/stdlib (Makefile.am): Substitute witnesses.
18127         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
18128         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
18129         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
18130         * NEWS: Document this.
18131         * doc/glibc-functions/canonicalize_file_name.texi
18132         (canonicalize_file_name): Likewise.
18133         * doc/posix-functions/realpath.texi (realpath): Likewise.
18134         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
18135
18136         test-canonicalize: consolidate into single C program
18137         * tests/test-canonicalize.sh: Delete; move setup into...
18138         * tests/test-canonicalize.c (main): ...the program, making it
18139         easier to run in debugger.  Add some tests.
18140         * modules/canonicalize-tests (Files): Remove unused file.
18141         (Depends-on): Add progname.
18142         (configure.ac, Makefile.am): Simplify.
18143
18144         test-canonicalize-lgpl: consolidate into single C program
18145         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
18146         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
18147         easier to run in debugger.  Add some tests.
18148         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
18149         (configure.ac, Makefile.am): Simplify.
18150
18151         canonicalize: avoid resolvepath
18152         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
18153         unnecessary checks.
18154         * lib/canonicalize.c (includes): Simplify.
18155         (canonicalize_file_name): Drop resolvepath implementation.
18156         * modules/canonicalize (Depends-on): Drop filenamecat.
18157
18158         canonicalize: don't lose errno
18159         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
18160         over calls to free.
18161
18162         canonicalize: simplify errno handling
18163         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
18164         assignment.
18165
18166         canonicalize, canonicalize-lgpl: update module dependencies
18167         * modules/canonicalize (Depends-on): Add extensions, lstat,
18168         pathmax, stdlib.
18169         (Files): Drop pathmax.h.
18170         (configure.ac): Adjust macro name.
18171         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
18172         lstat, stdlib, sys_stat.
18173         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
18174         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
18175         extensions.
18176         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
18177         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
18178         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
18179         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
18180         declaration, if available.
18181         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
18182         we can rely on the readlink module.
18183         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
18184         (includes): Use <unistd.h> unconditionally.
18185
18186 2009-09-17  Eric Blake  <ebb9@byu.net>
18187
18188         maint: make Include sections of modules consistent
18189         * modules/alloca: Use only header name; no need to list #include.
18190         * modules/alloca-opt: Likewise.
18191         * modules/arpa_inet: Likewise.
18192         * modules/canon-host: Likewise.
18193         * modules/configmake: Likewise.
18194         * modules/dirent: Likewise.
18195         * modules/eealloc: Likewise.
18196         * modules/environ: Likewise.
18197         * modules/fchdir: Likewise.
18198         * modules/fcntl: Likewise.
18199         * modules/fcntl-h: Likewise.
18200         * modules/gethrxtime: Likewise.
18201         * modules/gettime: Likewise.
18202         * modules/ignore-value: Likewise.
18203         * modules/inet_ntop: Likewise.
18204         * modules/inet_pton: Likewise.
18205         * modules/inttypes: Likewise.
18206         * modules/isnand-nolibm: Likewise.
18207         * modules/isnanf-nolibm: Likewise.
18208         * modules/mbchar: Likewise.
18209         * modules/mbfile: Likewise.
18210         * modules/mbiter: Likewise.
18211         * modules/mbuiter: Likewise.
18212         * modules/netdb: Likewise.
18213         * modules/netinet_in: Likewise.
18214         * modules/nproc: Likewise.
18215         * modules/pagealign_alloc: Likewise.
18216         * modules/poll: Likewise.
18217         * modules/printf-frexp: Likewise.
18218         * modules/pthread: Likewise.
18219         * modules/putenv: Likewise.
18220         * modules/random_r: Likewise.
18221         * modules/relocatable-prog: Likewise.
18222         * modules/search: Likewise.
18223         * modules/select: Likewise.
18224         * modules/selinux-h: Likewise.
18225         * modules/settime: Likewise.
18226         * modules/signal: Likewise.
18227         * modules/size_max: Likewise.
18228         * modules/socklen: Likewise.
18229         * modules/ssize_t: Likewise.
18230         * modules/stdarg: Likewise.
18231         * modules/stdbool: Likewise.
18232         * modules/stddef: Likewise.
18233         * modules/stdint: Likewise.
18234         * modules/stdio: Likewise.
18235         * modules/stdlib: Likewise.
18236         * modules/string: Likewise.
18237         * modules/strings: Likewise.
18238         * modules/sys_file: Likewise.
18239         * modules/sys_ioctl: Likewise.
18240         * modules/sys_select: Likewise.
18241         * modules/sys_socket: Likewise.
18242         * modules/sys_stat: Likewise.
18243         * modules/sys_time: Likewise.
18244         * modules/sys_times: Likewise.
18245         * modules/sys_utsname: Likewise.
18246         * modules/sys_wait: Likewise.
18247         * modules/sysexits: Likewise.
18248         * modules/time: Likewise.
18249         * modules/times: Likewise.
18250         * modules/tmpfile: Likewise.
18251         * modules/trim: Likewise.
18252         * modules/unistd: Likewise.
18253         * modules/wchar: Likewise.
18254         * modules/wctype: Likewise.
18255
18256 2009-09-17  Bruno Haible  <bruno@clisp.org>
18257
18258         Make getdate.y compile on QNX and NetBSD 5 / i386.
18259         * m4/getdate.m4 (gl_GETDATE): Conditionally define
18260         TIME_T_FITS_IN_LONG_INT.
18261         * lib/getdate.y (long_time_t): New type.
18262         (relative_time): Change type of 'seconds' field to long_time_t.
18263         (get_date): Update types of local variables. Check against overflow
18264         during conversion from long_time_t to time_t.
18265         Reported by Matt Kraai <kraai@ftbfs.org>
18266         and Hasso Tepper <hasso@netbsd.org>.
18267
18268 2009-09-17  Bruno Haible  <bruno@clisp.org>
18269
18270         * modules/COPYING: Update copyright years.
18271         * modules/README: Likeiwse.
18272         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
18273         Reported by Ian Beckwith <ianb@erislabs.net>.
18274
18275 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
18276
18277         * users.txt: Update references for gnuit package.
18278
18279 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
18280
18281         * m4/getdelim.m4: Fix typo in copyright line.
18282
18283 2009-09-17  Bruno Haible  <bruno@clisp.org>
18284
18285         * lib/atoll.c: Use the standard header with GPL copyright.
18286         * lib/argz.in.h: Likewise.
18287         * lib/glob.c: Likewise.
18288         * lib/glob-libc.h: Likewise.
18289         * lib/random_r.c: Likewise.
18290         * lib/siglist.h: Likewise.
18291         * lib/strsignal.c: Likewise.
18292         Reported by Ian Beckwith <ianb@erislabs.net>.
18293
18294 2009-09-17  Eric Blake  <ebb9@byu.net>
18295
18296         rmdir: ensure correct dependency order
18297         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
18298
18299 2009-09-17  Bruno Haible  <bruno@clisp.org>
18300
18301         Disable assertion that fails on NetBSD 5 / i386.
18302         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
18303         Reported by Sam Steingold <sds@gnu.org>
18304         and Hasso Tepper <hasso@netbsd.org>.
18305
18306 2009-09-16  Eric Blake  <ebb9@byu.net>
18307
18308         unlinkdir: port to mingw
18309         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
18310         on which no one can unlink a directory.
18311
18312         stdlib: sort witness names
18313         * modules/stdlib (Makefile.am): Sort replacements.
18314         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
18315         * lib/stdlib.in.h: Likewise.
18316
18317         parse-duration-tests: avoid link failure
18318         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
18319         LIBINTL.
18320         Reported by Tom G. Christensen.
18321
18322         openat-tests: ensure unlinkat behaves like rmdir
18323         * tests/test-rmdir.c (main): Factor guts...
18324         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
18325         * modules/rmdir-tests (Files): Ship new file.
18326         * modules/openat-tests: New test.
18327         * tests/test-unlinkat.c: Likewise.
18328
18329         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
18330         * modules/rmdir-errno (Status, Notice): Now obsolete.
18331
18332         rmdir: work around cygwin 1.5.x and mingw bugs
18333         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
18334         * lib/rmdir.c (rmdir): Work around it.
18335         * modules/rmdir (Status, Notice): No longer obsolete.
18336         (Files): Add dos.m4.
18337         (Depends-on): Add unistd.
18338         (configure.ac): Set witnesses.
18339         (License): Relax to LGPLv2+.
18340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
18341         * modules/unistd (Makefile.am): Substitute witnesses.
18342         * lib/unistd.in.h (rmdir): Declare replacement.
18343         * doc/posix-functions/rmdir.texi (rmdir): Document this.
18344         * modules/rmdir-tests: New tests.
18345         * tests/test-rmdir.c: Likewise.
18346
18347 2009-09-15  Eric Blake  <ebb9@byu.net>
18348
18349         fchdir: improve use of replacement functions
18350         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
18351         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
18352         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
18353         REPLACE_CLOSEDIR.
18354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
18355         * modules/sys_stat (Makefile.am): Substitute correct witness.
18356         * modules/dirent (Makefile.am): Likewise.
18357         * modules/unistd (Makefile.am): Likewise.
18358         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
18359         * lib/unistd.in.h (dup): Likewise.
18360         * lib/sys_stat.in.h (fstat): Likewise.
18361
18362         maint: ignore gnulib-tool temp files
18363         * .gitignore: Ignore files created during gnulib-tool --test.
18364
18365 2009-09-13  Jim Meyering  <meyering@redhat.com>
18366
18367         posixtm: don't reject a time that specify "60" as the number of seconds
18368         * lib/posixtm.c (posixtime): The code to reject invalid dates
18369         would also reject a time specified with the .60 suffix.
18370         But POSIX allows that, in order to accommodate leap seconds.
18371         So don't reject it.
18372         (main): Adjust tests accordingly.
18373         * modules/posixtm (Depends-on): Add stpcpy.
18374
18375 2009-09-11  Jim Meyering  <meyering@redhat.com>
18376
18377         announce-gen: include [$release_type] in emitted Subject:
18378         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
18379         e.g., [stable] in the emitted Subject: line.
18380
18381 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18382
18383         Remove obsolete macros from several modules.
18384         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
18385         obsolete Autoconf macros with their modern counterparts.
18386         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
18387         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
18388         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
18389         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
18390         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
18391         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18392         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18393         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18394         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18395         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
18396         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
18397         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18398         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
18399         * m4/sockets.m4 (gl_SOCKETS): Likewise.
18400         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
18401         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
18402         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
18403         * m4/time_r.m4 (gl_TIME_R): Likewise.
18404         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18405         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
18406         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18407
18408         Fix copyright header in build-aux scripts.
18409         * build-aux/git-version-gen: Fix copyright header to match GPLv3
18410         recommendation.
18411         * build-aux/ncftpput-ftp: Likewise.
18412         * build-aux/update-copyright: Likewise.
18413
18414 2009-09-09  Eric Blake  <ebb9@byu.net>
18415
18416         test-link: allow Linux choice of errno
18417         * tests/test-link.c (main): Relax test for alternate error.
18418
18419         strndup: fix improper m4 caching
18420         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
18421         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
18422         (gl_PREREQ_STRNDUP): Delete.
18423         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
18424         * modules/string (Makefile.am): Substitute it.
18425         * lib/string.in.h (strndup): Modernize prototype.
18426
18427         getcwd: port to mingw
18428         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
18429         different from the POSIX assumptions made throughout the getcwd
18430         module; fortunately, the mingw getcwd does not need replacement.
18431         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
18432         * modules/getcwd-tests: New test.
18433         * tests/test-getcwd.c: Likewise.
18434
18435         link: fix platform bugs
18436         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
18437         * lib/link.c (link): Work around them.  Fix related mingw bug.
18438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
18439         * modules/unistd (Makefile.am): Substitute it.
18440         * lib/unistd.in.h (link): Declare replacement.
18441         * doc/posix-functions/link.texi (link): Document this.
18442         * modules/link (Depends-on): Add strdup-posix, sys_stat.
18443
18444         test-link: consolidate into single C program, test more cases
18445         * tests/test-link.sh: Delete.
18446         * tests/test-link.c: Test more error conditions.  Exposes bugs on
18447         at least Cygwin and Solaris.
18448         * modules/link-tests (Files): Remove unused file.
18449         (Depends-on): Add errno, sys_stat.
18450         (Makefile.am): Simplify.
18451
18452 2009-09-08  Bruno Haible  <bruno@clisp.org>
18453
18454         Work around towlower, towupper bug on mingw.
18455         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
18456         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
18457         * doc/posix-functions/towlower.texi: Mention the mingw bug.
18458         * doc/posix-functions/towupper.texi: Likewise.
18459         Reported by Eric Blake.
18460
18461 2009-09-08  Jim Meyering  <meyering@redhat.com>
18462
18463         build: don't try to run autoheader if we don't use it
18464         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
18465         is not used in configure.ac.
18466
18467 2009-09-08  Eric Blake  <ebb9@byu.net>
18468
18469         euidaccess: fix compilation error
18470         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
18471
18472         rawmemchr: relax license
18473         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
18474         okay.
18475         Reported by Jim Meyering.
18476
18477         mkfifoat: new module
18478         * modules/mkfifoat: New file.
18479         * lib/mkfifoat.c: Likewise.
18480         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
18481         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18482         * modules/sys_stat (Makefile.am): Use them.
18483         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
18484         * MODULES.html.sh (File system functions): Mention module.
18485         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
18486         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
18487         * modules/mkfifoat-tests: New test.
18488         * tests/test-mkfifoat.c: Likewise.
18489
18490         strchrnul: relax license
18491         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
18492         okay.
18493         Reported by Jim Meyering.
18494
18495 2009-09-08  Eric Blake  <ebb9@byu.net>
18496
18497         fstatat: fix compilation on Solaris
18498         * lib/fstatat.c (includes): Add fcntl.h.
18499         Reported by Pádraig Brady.
18500
18501 2009-09-07  Eric Blake  <ebb9@byu.net>
18502
18503         rename: modernize replacement
18504         * modules/rename (Depends-on): Add stdio.
18505         (configure.ac): Declare witness.
18506         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
18507         stdio take care of replacement.
18508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
18509         * modules/stdio (Makefile.am): Substitute them.
18510         * lib/stdio.in.h (rename): Declare replacement.
18511         * lib/rename.c (includes): Allow cross-compilation to non-windows
18512         machines.
18513         * doc/posix-functions/rename.texi (rename): Improve
18514         documentation.
18515
18516         stdio: sort witness names
18517         * modules/stdio (Makefile.am): Sort replacements.
18518         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18519         * lib/stdio.in.h: Likewise.
18520
18521         getcwd: minor cleanups
18522         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
18523         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
18524
18525         openat: provide more convenience names
18526         * modules/faccessat (configure.ac): Add C witness.
18527         * lib/unistd.in.h (readlinkat): Fix typo.
18528         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
18529         convenience wrappers.
18530         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
18531         wrappers in syntax checks.
18532
18533 2009-09-06  Eric Blake  <ebb9@byu.net>
18534
18535         doc: fix comments in recent patches
18536         * lib/faccessat.c: Mention correct function.
18537         * lib/fchmodat.c: Likewise.
18538         * lib/fchownat.c: Likewise.
18539         * lib/symlinkat.c: Likewise.
18540         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
18541         constants.
18542
18543         faccessat, symlinkat: continue cleanup of previous patch
18544         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
18545         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
18546         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
18547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
18548         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
18549         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
18550         set.
18551
18552 2009-09-06  Bruno Haible  <bruno@clisp.org>
18553
18554         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
18555         (fstatat): Declare if GNULIB_FSTATAT is set.
18556         (mkdirat): Declare if GNULIB_MKDIRAT is set.
18557         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
18558         (unlinkat): Declare if GNULIB_UNLINKAT is set.
18559         * modules/fcntl-h (Files): Remove m4/openat.m4.
18560         * modules/sys_stat (Files): Remove m4/openat.m4.
18561         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
18562         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
18563         * modules/unistd (Files): Remove m4/openat.m4.
18564         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
18565         GNULIB_OPENAT.
18566         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
18567         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
18568         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
18569         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
18570         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
18571         gl_OPENAT_DEFAULTS.
18572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
18573         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
18574         Don't require gl_OPENAT_DEFAULTS.
18575         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
18576         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
18577         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
18578         (gl_OPENAT_DEFAULTS): Remove macro.
18579
18580 2009-09-06  Bruno Haible  <bruno@clisp.org>
18581
18582         * modules/openat (configure.ac): Remove unneeded witness.
18583
18584 2009-09-06  Bruno Haible  <bruno@clisp.org>
18585
18586         Set errno to ENOSYS when a function is entirely unsupported.
18587         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
18588         EOPNOTSUPP.
18589         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
18590         * modules/chown (Depends-on): Remove errno.
18591
18592 2009-09-06  Bruno Haible  <bruno@clisp.org>
18593
18594         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
18595
18596 2009-09-06  Bruno Haible  <bruno@clisp.org>
18597
18598         * lib/sys_stat.in.h: Fix preprocessor command indentation.
18599
18600 2009-09-06  Ben Pfaff  <blp@gnu.org>
18601             Bruno Haible  <bruno@clisp.org>
18602
18603         Work around a glibc bug in strtok_r.
18604         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
18605         Undefine if UNDEFINE_STRTOK_R is set.
18606         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
18607         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18608         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
18609         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
18610         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
18611         UNDEFINE_STRTOK_R.
18612         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
18613
18614 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
18615
18616         exclude: minor fix
18617         * lib/exclude.c: Include wctype.h
18618
18619 2009-09-06  Akim Demaille  <demaille@gostai.com>
18620
18621         bootstrap: improve error message
18622         * build-aux/bootstrap (find_tool): Upon failure, report the list
18623         of candidates.
18624         Honor the initial value of the envvar.
18625
18626 2009-09-05  Eric Blake  <ebb9@byu.net>
18627
18628         symlinkat: new module
18629         * modules/symlinkat: New file.
18630         * lib/symlinkat.c: Likewise.
18631         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18632         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
18633         * modules/unistd (Makefile.am): Use them.
18634         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
18635         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
18636         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
18637         * MODULES.html.sh (File system functions): Mention module.
18638         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18639         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18640         * modules/symlinkat-tests: New test.
18641         * tests/test-symlinkat.c: Likewise.
18642
18643         test-openat-safer: add more checks
18644         * tests/test-openat-safer.c (main): Check more code paths.
18645
18646 2009-09-05  Jim Meyering  <meyering@redhat.com>
18647
18648         syntax-check: detect unnecessary inclusion of openat.h
18649         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
18650
18651 2009-09-05  Bruno Haible  <bruno@clisp.org>
18652
18653         Support towlower, towupper.
18654         * doc/posix-functions/towlower.texi: Mention module wctype.
18655         * doc/posix-functions/towupper.texi: Likewise.
18656         * lib/wctype.in.h (towlower, towupper): New functions.
18657         * tests/test-wctype.c: Include stdio.h, stdlib.h.
18658         (ASSERT): New macro.
18659         (e): New variable.
18660         (main): Test also towlower, towupper. Test WEOF argument.
18661         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18662
18663 2009-09-05  Bruno Haible  <bruno@clisp.org>
18664
18665         Fix conversion behaviour when the input is invalid.
18666         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
18667         mark occurring in first pass of indirect conversion.
18668         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
18669         input.
18670         Found by clang's static analyzer.
18671
18672 2009-09-05  Bruno Haible  <bruno@clisp.org>
18673
18674         * tests/test-striconveh.c (main): Test indirect conversion on platforms
18675         where direct conversion is possible.
18676
18677 2009-09-04  Eric Blake  <ebb9@byu.net>
18678
18679         openat: fail with ENOENT on empty name
18680         * lib/openat-proc.c (openat_proc_name): Special-case the empty
18681         buffer.
18682
18683         link-follow: fix logic bug in prior patch
18684         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
18685         reversed sense of yes and no in prior patch.  Avoid confusing
18686         compilation failure with desired semantics.
18687
18688         link-follow: accomodate mingw and cross-compilation
18689         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
18690         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
18691         cross-compilation results to -1, to make linkat easier to
18692         implement when cross-compiling.  Trivially support mingw.
18693         * modules/link-follow (configure.ac): Call new name.
18694         * NEWS: Mention this.
18695
18696 2009-09-03  Eric Blake  <ebb9@byu.net>
18697
18698         faccessat: compile replacement
18699         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
18700         needed.
18701
18702         fts: fix compilation error
18703         * lib/fts.c (includes): Re-add "openat.h", for
18704         openat_needs_fchdir.
18705
18706         faccessat: new module
18707         * modules/faccessat: New file.
18708         * lib/faccessat.c: Likewise.
18709         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
18710         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18711         * modules/unistd (Makefile.am): Use it.
18712         * lib/unistd.in.h (faccessat): Declare it.
18713         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
18714         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
18715         * MODULES.html.sh (File system functions): Mention it.
18716         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
18717         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
18718
18719         euidaccess: prefer POSIX over non-standard implementation
18720         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
18721         * lib/euidaccess.c (euidaccess): Use it if available.
18722
18723         openat: make template easier to use
18724         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
18725         AT_FUNC_F2 to be undefined.
18726         (VALIDATE_FLAG): New macro; use it to reject bad flags.
18727         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
18728         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
18729         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
18730         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
18731         Likewise.
18732         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
18733         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
18734         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
18735         Likewise.
18736
18737         openat: declare in POSIX headers
18738         * NEWS: Mention this.
18739         * modules/openat (configure.ac): Declare witnesses.
18740         (Depends-on): Add fcntl-h, sys_stat, unistd.
18741         (Include): Mention correct headers.
18742         * modules/fcntl-h (Depends-on): Add link-warning.
18743         (Files): Add openat.m4.
18744         (Makefile.am): Substitute witnesses.
18745         * modules/sys_stat (Files, Makefile.am): Likewise.
18746         * modules/unistd (Files, Makefile.am): Likewise.
18747         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
18748         (gl_OPENAT_DEFAULTS): New macro.
18749         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
18750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
18751         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
18752         (SYS_STAT_H): Remove unused variable.
18753         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
18754         * lib/fcntl--.h (includes): Remove unneeded header.
18755         * lib/openat-safer.c (includes): Likewise.
18756         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
18757         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
18758         appropriate headers.
18759         (__OPENAT_PREFIX): Delete.
18760         * lib/fcntl.in.h (openat): Provide declaration.
18761         (AT_FDCWD): Fix Solaris bug.
18762         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
18763         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
18764         * lib/fchmodat.c (includes):  Adjust to find declaration.
18765         * lib/fchownat.c (includes): Likewise.
18766         * lib/mkdirat.c (includes): Likewise.
18767         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
18768         still visible.
18769
18770 2009-09-02  Eric Blake  <ebb9@byu.net>
18771
18772         errno: use consistently
18773         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
18774         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
18775         * lib/canonicalize.c (ELOOP): Likewise.
18776         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
18777         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
18778         * lib/lchown.c (EOPNOTSUPP): Likewise.
18779         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
18780         * lib/savewd.c (ESTALE): Likewise.
18781         * lib/settime.c (ENOSYS): Likewise.
18782         * lib/utimens.c (ENOSYS): Likewise.
18783         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
18784         * lib/chdir-safer.c (ELOOP): Likewise.
18785         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
18786         * modules/c-stack (Depends-on): Add errno.
18787         * modules/canonicalize (Depends-on): Likewise.
18788         * modules/chdir-safer (Depends-on): Likewise.
18789         * modules/fdopendir (Depends-on): Likewise.
18790         * modules/inet_ntop (Depends-on): Likewise.
18791         * modules/inet_pton (Depends-on): Likewise.
18792         * modules/lchown (Depends-on): Likewise.
18793         * modules/openat (Depends-on): Likewise.
18794         * modules/savewd (Depends-on): Likewise.
18795         * modules/settime (Depends-on): Likewise.
18796         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
18797
18798         fts: avoid leaking fds
18799         * modules/fts (Depends-on): Add cloexec.
18800         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
18801         flag.
18802
18803         fts: make directory fds more robust
18804         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
18805         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
18806
18807         backupfile, chdir-long, fts, savedir: make safer
18808         * lib/backupfile.c (includes): Use "dirent--.h", since
18809         numbered_backup can write to stderr during readdir.
18810         * lib/savedir.c (includes): Likewise.
18811         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
18812         emulation can write to stderr on failure.
18813         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
18814         * lib/getcwd.c: Document why opendir_safer is unused.
18815         * lib/glob.c: Likewise.
18816         * lib/scandir.c: Likewise.
18817         * lib/openat-proc.c: Likewise, for open_safer.
18818         * modules/backupfile (Depends-on): Add dirent-safer.
18819         * modules/savedir (Depends-on): Likewise.
18820         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
18821         * modules/chdir-long (Depends-on): Add openat-safer.
18822
18823         openat-safer: new module
18824         * modules/openat-safer: New file.
18825         * lib/openat-safer.c: Likewise.
18826         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
18827         * lib/fcntl-safer.h (openat_safer): Declare.
18828         * lib/fcntl--.h (openat): Override.
18829         * MODULES.html.sh (File descriptor based I/O): Mention it.
18830         * lib/openat.h: Add double-inclusion guards.
18831         * lib/openat.c (includes): Only include "fcntl-safer.h", not
18832         "fcntl--.h", so we can implement openat.
18833         * modules/openat-safer-tests: New test.
18834         * tests/test-openat-safer.c: New file.
18835
18836         dirent-safer: new module
18837         * modules/dirent-safer: New file.
18838         * lib/dirent--.h: Likewise.
18839         * lib/dirent-safer.h: Likewise.
18840         * lib/opendir-safer.c: Likewise.
18841         * m4/dirent-safer.m4: Likewise.
18842         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
18843         * modules/dirent-safer-tests: New test.
18844         * tests/test-dirent-safer.c: New file.
18845         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
18846
18847         fdopendir: optimize on mingw
18848         * lib/unistd.in.h (_gl_directory_name): New prototype.
18849         * lib/fchdir.c (_gl_directory_name): Implement it.
18850         (fchdir): Use it to simplify implementation.
18851         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
18852         fchdir, when available, to avoid calling [f]chdir().
18853
18854         fdopendir: split into its own module
18855         * lib/openat.c (fdopendir): Move...
18856         * lib/fdopendir.c: ...into new file.
18857         * modules/fdopendir: New module.
18858         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
18859         * modules/openat (Depends-on): Add fdopendir.
18860         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
18861         fdopendir here.
18862         * modules/savedir (Depends-on): Only need fdopendir, not full
18863         openat.
18864         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
18865         * lib/openat.h (fdopendir): Drop prototype.
18866         * lib/dirent.in.h (fdopendir): Provide prototype.
18867         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
18868         * modules/dirent (Makefile.am): Substitute them.
18869         * MODULES.html.sh (File system functions): Mention it.
18870         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
18871         * modules/fdopendir-tests: New file.
18872         * tests/test-fdopendir.c: Likewise.
18873
18874         fchdir: use more consistent macro convention
18875         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
18876         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
18877         REPLACE_FCHDIR, rather than relying on config.h macros.
18878         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
18879         inside a single make-time REPLACE_FCHDIR block, rather than using
18880         the config.h FCHDIR_REPLACEMENT.
18881         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
18882         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
18883         Manage fstat replacement.
18884         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
18885         REPLACE_FCHDIR.
18886         * modules/sys_stat (Files): Add m4/unistd_h.m4.
18887         (Makefile.am): Substitute REPLACE_FCHDIR.
18888         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
18889         FCHDIR_REPLACEMENT.
18890         * lib/dup-safer.c (dup_safer): Likewise.
18891         * lib/dup2.c (rpl_dup2): Likewise.
18892         * lib/dup3.c (rpl_dup3): Likewise.
18893         * lib/open.c (rpl_open): Likewise.
18894
18895         fchdir: simplify error handling, and support dup3
18896         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
18897         stdbool, malloc-posix, realloc-posix.
18898         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
18899         (ensure_dirs_slot): Return false on allocation failure.
18900         (rpl_dup2): Delete.
18901         (_gl_register_dup): New function.
18902         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
18903         (_gl_register_fd): Close fd on allocation failure.
18904         * lib/fcntl.in.h (_gl_register_fd): Update signature.
18905         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
18906         prototype.
18907         (rpl_dup2_fchdir): Delete prototype.
18908         * lib/open.c (open): Update caller.
18909         * lib/dup2.c (dup2): Track fchdir metadata.
18910         * lib/dup3.c (dup3): Likewise.
18911         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
18912         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
18913
18914 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18915
18916         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
18917         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
18918         don't pass arguments to AC_OUTPUT.
18919
18920 2009-09-02  Bruno Haible  <bruno@clisp.org>
18921
18922         * modules/mkdtemp (License): Relicense under LGPLv2+.
18923         Reported by Paolo Bonzini.
18924
18925 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18926
18927         Replace uses of obsolete autoconf macros in Jim's modules.
18928         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
18929         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
18930         can evoke a warning from autoconf when run with -Wobsolete
18931         enabled.  They were declared obsolete for good reasons (see
18932         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
18933         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
18934         should not continue using the deprecated macros.
18935         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
18936         obsolete Autoconf macros with modern counterparts.
18937         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18938         * m4/dos.m4 (gl_AC_DOS): Likewise.
18939         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
18940         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18941         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
18942         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
18943         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
18944         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
18945         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
18946         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
18947         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
18948         Likewise.
18949         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18950         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18951         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
18952         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
18953         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
18954         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
18955
18956 2009-09-01  Eric Blake  <ebb9@byu.net>
18957
18958         fchdir: fix off-by-one bug in previous patch
18959         * lib/fchdir.c (rpl_fstat): Use correct bounds.
18960         (_gl_unregister_fd): Delete useless if.
18961
18962 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
18963
18964         maint.mk: sort the list of syntax-check rules
18965         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
18966         easier to get a sense of progress when the rules are run sequentially
18967         and take a long time.
18968
18969 2009-09-01  Simon Josefsson  <simon@josefsson.org>
18970
18971         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
18972         * modules/netinet_in: Likewise.
18973         * modules/sys_file: Likewise.
18974         * modules/sys_ioctl: Likewise.
18975         * modules/sys_select: Likewise.
18976         * modules/sys_socket: Likewise.
18977         * modules/sys_stat: Likewise.
18978         * modules/sys_time: Likewise.
18979         * modules/sys_times: Likewise.
18980         * modules/sys_utsname: Likewise.
18981         * modules/sys_wait: Likewise.
18982
18983 2009-09-01  Jim Meyering  <meyering@redhat.com>
18984
18985         fts: help ensure that return values are not ignored
18986         * lib/fts_.h (__GNUC_PREREQ): Define.
18987         (__attribute_warn_unused_result__): Define.
18988         (fts_children, fts_close, fts_open, fts_read): Declare with
18989         __attribute_warn_unused_result__.
18990
18991         fts: fts_close now fails also when closing a dir file descriptor fails
18992         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
18993         and propagate to caller, along with errno.
18994
18995         announce-gen: correct formatting in --help output
18996         * build-aux/announce-gen (usage): Move the one-line description in
18997         --help output "up", to where it belongs, just after Usage:.
18998
18999 2009-08-31  Eric Blake  <ebb9@byu.net>
19000
19001         fchdir: port to mingw
19002         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
19003         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
19004         opened, then use a substitute.
19005         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
19006         replacement.
19007         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
19008         (_gl_register_fd): No need to check stat if open already filters
19009         all directories.
19010         (fchdir): Fix error condition to match POSIX.
19011         * modules/fchdir (Depends-on): Add sys_stat.
19012         * doc/posix-functions/open.texi (open): Document the limitation.
19013         * modules/fchdir-tests: New file.
19014         * tests/test-fchdir.c: Likewise.
19015
19016         canonicalize: allow cross-testing from cygwin to mingw
19017         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
19018         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
19019         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
19020         Likewise.
19021         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
19022         target does not support symlinks.
19023         * tests/test-canonicalize-lgpl.sh: Likewise.
19024
19025         chown: avoid compilation warning on mingw
19026         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
19027         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
19028         mingw.
19029         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
19030         * modules/chown (Depends-on): Add errno.
19031
19032 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19033
19034         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
19035         command.
19036
19037 2009-08-31  Jim Meyering  <meyering@redhat.com>
19038
19039         canonicalize: remove useless initialization
19040         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
19041         initialization of local, "end".
19042
19043 2009-08-30  Bruno Haible  <bruno@clisp.org>
19044
19045         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
19046         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
19047         ENOSYS.
19048
19049 2009-08-30  Bruno Haible  <bruno@clisp.org>
19050
19051         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
19052         /usr/xpg4/bin/tr when it exists.
19053         * tests/test-pipe-filter-gi1.sh: Likewise.
19054
19055 2009-08-30  Bruno Haible  <bruno@clisp.org>
19056
19057         Work around deficient /usr/bin/id program on Solaris.
19058         * tests/test-file-has-acl.sh (ID): New variable.
19059         * tests/test-set-mode-acl.sh (ID): Likewise.
19060         * tests/test-copy-acl.sh (ID): Likewise.
19061         * tests/test-copy-file.sh (ID): Likewise.
19062
19063 2009-08-30  Bruno Haible  <bruno@clisp.org>
19064
19065         New module 'xstriconveh'.
19066         * lib/xstriconveh.h: New file.
19067         * lib/xstriconveh.c: New file.
19068         * modules/xstriconveh: New file.
19069
19070 2009-08-30  Bruno Haible  <bruno@clisp.org>
19071
19072         Make it easier to use mem_cd_iconveh.
19073         * lib/striconveh.h (iconveh_t): New type.
19074         (iconveh_open, iconveh_close): New declarations.
19075         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
19076         with a single 'const iconveh_t *' argument.
19077         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
19078         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
19079         with a single 'const iconveh_t *' argument.
19080         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
19081         * tests/test-striconveh.c (main): Update.
19082         * NEWS: Mention the change.
19083
19084 2009-08-30  Bruno Haible  <bruno@clisp.org>
19085
19086         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
19087         problem.
19088
19089 2009-08-30  Bruno Haible  <bruno@clisp.org>
19090
19091         Work around iconv_open problem on Solaris.
19092         * lib/iconv_open-solaris.gperf: New file.
19093         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
19094         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
19095         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
19096         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
19097         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
19098         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
19099
19100 2009-08-29  Jim Meyering  <meyering@redhat.com>
19101
19102         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
19103         * top/maint.mk (cvs-check): Remove target; it was just an alias
19104         to the better-named vc-diff-check.
19105         (maintainer-distcheck): Remove rule.  It was used only from
19106         the (alpha/beta/major) target, and all of its commands but one
19107         were coreutils-specific.
19108         (vc-dist): Remove rule.
19109         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
19110         Run vc-diff-check, not vc-dist.
19111         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
19112
19113 2009-08-27  Bruno Haible  <bruno@clisp.org>
19114
19115         * tests/test-bitrotate.c (main): Remove test that uses a shift count
19116         of 0.
19117
19118 2009-08-27  Bruno Haible  <bruno@clisp.org>
19119
19120         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
19121         compilers.
19122         * doc/func.texi: Document the SunPRO C bug.
19123
19124 2009-08-27  Bruno Haible  <bruno@clisp.org>
19125
19126         Fix link error on Solaris.
19127         * tests/test-parse-duration.c (xstrdup): Remove function.
19128
19129 2009-08-26  Pádraig Brady  <P@draigbrady.com>
19130
19131         ignore-value: handle pointer types, too
19132         * lib/ignore-value.h (__attribute__): Remove definition.
19133         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
19134         of a more concise and more-often effective "(void) i" statement.
19135         (ignore_ptr): New function to suppress warnings from functions that
19136         return pointers, and to make it explicit that one function doesn't
19137         handle all cases.
19138
19139 2009-08-25  Bruno Haible  <bruno@clisp.org>
19140
19141         dup2: work around a Linux bug.
19142         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
19143         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
19144         * doc/posix-functions/dup2.texi: Mention the Linux bug.
19145         Reported by Simon Josefsson.
19146
19147 2009-08-25  Jim Meyering  <meyering@redhat.com>
19148
19149         libguestfs uses gnulib
19150         * users.txt: Add libguestfs.
19151
19152 2009-08-24  Eric Blake  <ebb9@byu.net>
19153
19154         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
19155         * lib/pipe2.c (includes): Add binary-io.h.
19156         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
19157
19158 2009-08-24  Bruno Haible  <bruno@clisp.org>
19159
19160         Tolerate declared but missing accept4 syscall.
19161         * lib/accept4.c (accept4): Invoke original accept4 function first, if
19162         available.
19163         * lib/sys_socket.in.h (accept4): If the function is already present,
19164         override it.
19165         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
19166         * modules/accept4 (Makefile.am): Compile accept4.c always.
19167         Reported by Paolo Bonzini and Eric Blake.
19168
19169 2009-08-23  Bruno Haible  <bruno@clisp.org>
19170
19171         New module 'accept4'.
19172         * lib/sys_socket.in.h (accept4): New declaration.
19173         * lib/accept4.c: New file.
19174         * m4/accept4.m4: New file.
19175         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19176         GNULIB_ACCEPT4, HAVE_ACCEPT4.
19177         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
19178         HAVE_ACCEPT4.
19179         * modules/accept4: New file.
19180         * doc/glibc-functions/accept4.texi: Mention the new module.
19181
19182 2009-08-24  Jim Meyering  <meyering@redhat.com>
19183
19184         progname: also set global program_invocation_name, when possible
19185         Before this change, a libtool-enabled program that calls glibc's
19186         error function would report the program name as
19187         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
19188         * modules/progname (configure.ac): Check for a declaration of
19189         program_invocation_name.
19190         * lib/progname.c:  Include <errno.h>.
19191         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
19192         Set program_invocation_name.
19193
19194 2009-08-23  Bruno Haible  <bruno@clisp.org>
19195
19196         * lib/dup3.c: Include <string.h>.
19197
19198 2009-08-23  Bruno Haible  <bruno@clisp.org>
19199
19200         * lib/dup3.c (dup3): Test only once whether the system actually exists.
19201         * lib/pipe2.c (pipe2): Likewise.
19202         Suggested by Eric Blake.
19203
19204 2009-08-23  Bruno Haible  <bruno@clisp.org>
19205
19206         Tolerate declared but missing dup3 syscall.
19207         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
19208         * lib/unistd.in.h (dup3): If the function is already present,
19209         override it.
19210         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
19211         * modules/dup3 (Makefile.am): Compile dup3.c always.
19212         Reported by Paolo Bonzini.
19213
19214 2009-08-23  Bruno Haible  <bruno@clisp.org>
19215
19216         Tolerate declared but missing pipe2 syscall.
19217         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
19218         available.
19219         * lib/unistd.in.h (pipe2): If the function is already present,
19220         override it.
19221         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
19222         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
19223         Reported by Paolo Bonzini.
19224
19225 2009-08-23  Bruno Haible  <bruno@clisp.org>
19226
19227         * lib/pipe2.c (pipe2): Move #ifs inside function.
19228
19229 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19230
19231         quotearg: document limitations of quote_these_too
19232         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
19233         those limitations are created.
19234         * lib/quotearg.h (set_char_quoting): Document that digits and
19235         letters that are special after backslash are not permitted.
19236         (quotearg_char): Cross-reference set_char_quoting documentation.
19237
19238 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
19239
19240         quotearg: implement custom_quoting_style
19241         * lib/quotearg.c: (struct quoting_options): Add left_quote and
19242         right_quote fields.
19243         (set_custom_quoting): New public function.
19244         (quotearg_buffer_restyled): Add left_quote and right_quote
19245         arguments, handle them very much like locale quoting, and update
19246         all uses.
19247         (quotearg_n_custom): New public function.
19248         (quotearg_n_custom_mem): New public function.
19249         (quotearg_custom): New public function.
19250         (quotearg_custom_mem): New public function.
19251         * lib/quotearg.h: Prototype and document new public functions.
19252         (enum quoting_style): For escape_quoting_style and
19253         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
19254         ignored even though they're otherwise like c_quoting_style.
19255         Add custom_quoting_style member and document with comparison to
19256         clocale_quoting_style.
19257         * tests/test-quotearg.c (custom_quotes): New array.
19258         (custom_results): New array.
19259         (main): Extend to test custom quoting.
19260
19261 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19262
19263         quotearg: fix right quote escaping when it's in quote_these_too
19264         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
19265         quote, be sure to prepend only one backslash.
19266         * tests/test-quotearg.c (use_quote_double_quotes): New function.
19267         (main): Test it.
19268
19269 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19270
19271         quotearg-tests: test escaping of embedded locale quotes
19272         * tests/test-quotearg.c (struct result_strings): Add member for
19273         new input.
19274         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
19275         (inputs): Add new input.
19276         (results_g): Add expected results.
19277         (flag_results): Likewise.
19278         (locale_results): Likewise.
19279         (compare_strings): Check those.
19280
19281 2009-08-23  Bruno Haible  <bruno@clisp.org>
19282
19283         Tests for module 'dup3'.
19284         * modules/dup3-tests: New file.
19285         * tests/test-dup3.c: New file.
19286
19287         New module 'dup3'.
19288         * lib/unistd.in.h (dup3): New declaration.
19289         * lib/dup3.c: New file.
19290         * m4/dup3.m4: New file.
19291         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
19292         HAVE_DUP3.
19293         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
19294         * modules/dup3: New file.
19295         * doc/glibc-functions/dup3.texi: Mention the new module.
19296
19297 2009-08-23  Bruno Haible  <bruno@clisp.org>
19298
19299         Tweak the dup2 test.
19300         * tests/test-dup2.c (main): Create the test file empty. Verify that an
19301         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
19302         the test file is still empty. Fix argument order of lseek.
19303
19304 2009-08-23  Bruno Haible  <bruno@clisp.org>
19305
19306         Avoid test link errors when the modules getopt-gnu, gettext are used.
19307         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
19308         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19309
19310 2009-08-23  Bruno Haible  <bruno@clisp.org>
19311
19312         Fix getdtablesize() on mingw.
19313         * lib/getdtablesize.c (getdtablesize): Implement differently.
19314         * lib/unistd.in.h (getdtablesize): Improve comment.
19315
19316 2009-08-23  Bruno Haible  <bruno@clisp.org>
19317
19318         New module 'mkostemp'.
19319         Based on Ulrich Drepper's 2007-08-10 change in glibc.
19320         * lib/stdlib.in.h (mksotemp): New declaration.
19321         * lib/mkostemp.c: New file, from glibc with modifications.
19322         * lib/tempname.h (GT_FILE): Remove outdated comment.
19323         (gen_tempname): Add flags argument.
19324         * lib/tempname.c (__GT_BIGFILE): Remove macro.
19325         (__GT_FILE): Map to 1.
19326         (small_open, large_open): Remove macros.
19327         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
19328         * lib/mkstemp.c (mkstemp): Update.
19329         * lib/mkdtemp.c (mkdtemp): Likewise.
19330         * m4/mkostemp.m4: New file.
19331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
19332         HAVE_MKOSTEMP.
19333         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
19334         HAVE_MKOSTEMP.
19335         * modules/mkostemp: New file, based on modules/mkstemp.
19336         * doc/glibc-functions/mkostemp.texi: Mention the new module.
19337         * NEWS: Mention the change.
19338
19339 2009-08-23  Bruno Haible  <bruno@clisp.org>
19340
19341         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
19342         Reported by Eric Blake.
19343
19344 2009-08-23  Bruno Haible  <bruno@clisp.org>
19345
19346         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
19347         Reported by Eric Blake.
19348
19349 2009-08-23  Bruno Haible  <bruno@clisp.org>
19350
19351         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
19352         * modules/pipe2 (Depends-on): Likewise.
19353
19354 2009-08-23  Eric Blake  <ebb9@byu.net>
19355
19356         fcntl-h: add O_TTY_INIT support
19357         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
19358         * tests/test-fcntl-h.c (o): Test it.
19359         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19360
19361         fcntl-h: rename from fcntl, in preparation for fcntl(2)
19362         * modules/fcntl: Move <fcntl.h> header replacement...
19363         * modules/fcntl-h: ...to new name, so as not to collide with
19364         like-named function.
19365         * tests/test-fcntl.c: Rename...
19366         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
19367         * modules/fcntl-tests: Rename...
19368         * modules/fcntl-h-tests: ...to this.  Update test file name.
19369         * modules/chdir-long (Depends-on): Update clients.
19370         * modules/chdir-safer (Depends-on): Likewise.
19371         * modules/fcntl-safer (Depends-on): Likewise.
19372         * modules/fts (Depends-on): Likewise.
19373         * modules/mkancesdirs (Depends-on): Likewise.
19374         * modules/mkdir-p (Depends-on): Likewise.
19375         * modules/open (Depends-on): Likewise.
19376         * modules/savewd (Depends-on): Likewise.
19377         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
19378         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19379
19380 2009-08-22  Bruno Haible  <bruno@clisp.org>
19381
19382         * modules/binary-io (License): Relicense under LGPL.
19383         * modules/pipe2 (License): Likewise.
19384
19385 2009-08-22  Bruno Haible  <bruno@clisp.org>
19386
19387         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
19388         return value.
19389         * lib/pipe-filter-gi.c (filter_init): Likewise.
19390         Reported by Eric Blake.
19391
19392 2009-08-22  Bruno Haible  <bruno@clisp.org>
19393
19394         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
19395         * modules/pipe (Depends-on): Add pipe2.
19396
19397 2009-08-22  Bruno Haible  <bruno@clisp.org>
19398
19399         Tests for module 'pipe2'.
19400         * modules/pipe2-tests: New file.
19401         * tests/test-pipe2.c: New file.
19402
19403         New module 'pipe2'.
19404         * lib/unistd.in.h (pipe2): New declaration.
19405         * lib/pipe2.c: New file.
19406         * m4/pipe2.m4: New file.
19407         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
19408         HAVE_PIPE2.
19409         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
19410         * modules/pipe2: New file.
19411         * doc/glibc-functions/pipe2.texi: Mention the new module.
19412
19413 2009-08-22  Bruno Haible  <bruno@clisp.org>
19414
19415         Reference some new glibc functions.
19416         * doc/glibc-functions/accept4.texi: New file.
19417         * doc/glibc-functions/dup3.texi: New file.
19418         * doc/glibc-functions/mkostemp.texi: New file.
19419         * doc/glibc-functions/pipe2.texi: New file.
19420         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
19421         (Glibc sys/socket.h): Refer to accept4.
19422         (Glibc unistd.h): Refer to dup3, pipe2.
19423         Reported by Eric Blake.
19424
19425 2009-08-22  Jim Meyering  <meyering@redhat.com>
19426             Bruno Haible  <bruno@clisp.org>
19427
19428         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
19429         This makes it so packages using automake-1.11's silent-rules option
19430         can print e.g., a single "GEN    configmake.h" line, rather than
19431         the 30+ statements that perform the job.  If you want to see the
19432         actual commands, you can still run "make V=1".
19433         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
19434         so that make output is abbreviated when those variables are defined
19435         appropriately.
19436         * modules/argz: Likewise.
19437         * modules/arpa_inet: Likewise.
19438         * modules/byteswap: Likewise.
19439         * modules/configmake: Likewise.
19440         * modules/dirent: Likewise.
19441         * modules/errno: Likewise.
19442         * modules/fcntl: Likewise.
19443         * modules/float: Likewise.
19444         * modules/fnmatch: Likewise.
19445         * modules/getopt-posix: Likewise.
19446         * modules/glob: Likewise.
19447         * modules/iconv_open: Likewise.
19448         * modules/inttypes: Likewise.
19449         * modules/localcharset: Likewise.
19450         * modules/locale: Likewise.
19451         * modules/math: Likewise.
19452         * modules/netdb: Likewise.
19453         * modules/netinet_in: Likewise.
19454         * modules/poll: Likewise.
19455         * modules/posix_spawnp-tests: Likewise.
19456         * modules/sched: Likewise.
19457         * modules/search: Likewise.
19458         * modules/selinux-h: Likewise.
19459         * modules/signal: Likewise.
19460         * modules/spawn: Likewise.
19461         * modules/stdarg: Likewise.
19462         * modules/stdbool: Likewise.
19463         * modules/stddef: Likewise.
19464         * modules/stdint: Likewise.
19465         * modules/stdio: Likewise.
19466         * modules/stdlib: Likewise.
19467         * modules/string: Likewise.
19468         * modules/strings: Likewise.
19469         * modules/sys_file: Likewise.
19470         * modules/sys_ioctl: Likewise.
19471         * modules/sys_select: Likewise.
19472         * modules/sys_socket: Likewise.
19473         * modules/sys_stat: Likewise.
19474         * modules/sys_time: Likewise.
19475         * modules/sys_times: Likewise.
19476         * modules/sys_utsname: Likewise.
19477         * modules/sys_wait: Likewise.
19478         * modules/sysexits: Likewise.
19479         * modules/time: Likewise.
19480         * modules/unistd: Likewise.
19481         * modules/wchar: Likewise.
19482         * modules/wctype: Likewise.
19483
19484 2009-08-22  Jim Meyering  <meyering@redhat.com>
19485
19486         announce-gen: detect write failure
19487         * build-aux/announce-gen: Add Coda at end.
19488         Remove equivalent-but-more-verbose block at top.
19489
19490 2009-08-19  Akim Demaille  <demaille@gostai.com>
19491
19492         bootstrap: --help to stdout.
19493         * bootstrap (usage): Don't send --help to stderr.
19494         Use a here doc instead of a long string.
19495
19496 2009-08-21  Eric Blake  <ebb9@byu.net>
19497
19498         test-popen-safer: split from test-popen
19499         * tests/test-popen.c (main): Move...
19500         * tests/test-popen.h: ...into new file.
19501         * tests/test-popen-safer2.c: New file.
19502         * modules/popen-tests (Files): Add test-popen.h.
19503         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
19504         Suggested by Bruno Haible.
19505
19506         test-fcntl-safer: split from test-open
19507         * tests/test-open.c (main): Move...
19508         * tests/test-open.h: ...into new file.
19509         * tests/test-fcntl-safer.c: New file.
19510         * modules/open-tests (Files): Add test-open.h.
19511         * modules/fcntl-safer-tests: New file.
19512         Suggested by Bruno Haible.
19513
19514         test-fopen-safer: split from test-fopen
19515         * tests/test-fopen.c (main): Move...
19516         * tests/test-fopen.h: ...into new file.
19517         * tests/test-fopen-safer.c: New file.
19518         * modules/fopen-tests (Files): Add test-fopen.h.
19519         * modules/fopen-safer-tests: New file.
19520         Suggested by Bruno Haible.
19521
19522 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
19523
19524         popen-safer: test O_CLOEXEC at run-time.
19525         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
19526
19527 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
19528
19529         fcntl: move more flags to the header
19530         * lib/cloexec.c: Do not define FD_CLOEXEC here.
19531         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
19532         * lib/fcntl.in.h: Do both things here.
19533
19534 2009-08-21  Jim Meyering  <meyering@redhat.com>
19535
19536         consistently remove $@-t before redirecting to it
19537         * modules/argz: Remove $@-t and $@ before redirecting to the former.
19538         * modules/alloca-opt: Likewise.
19539         * modules/byteswap: Likewise.
19540         * modules/fnmatch: Likewise.
19541         * modules/getopt-posix: Likewise.
19542         * modules/glob: Likewise.
19543         * modules/poll: Likewise.
19544         * modules/posix_spawnp-tests: Likewise.
19545         * modules/sys_socket: Likewise.
19546         * modules/sysexits: Likewise.
19547
19548 2009-08-21  Eric Blake  <ebb9@byu.net>
19549
19550         popen: simplify access to original popen
19551         * lib/popen.c (rpl_popen): No need to worry about popen being a
19552         macro.
19553         Reported by Bruno Haible.
19554
19555 2009-08-20  Eric Blake  <ebb9@byu.net>
19556
19557         build: avoid some compiler warnings
19558         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
19559         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
19560         type.
19561         (new_exclude_segment, excluded_file_pattern_p)
19562         (excluded_file_name_p): Reduce scope.
19563         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
19564         old-style declaration.
19565
19566 2009-08-20  Simon Josefsson  <simon@josefsson.org>
19567
19568         * tests/test-exclude1.sh: Handle Windows EOL.
19569         * tests/test-exclude2.sh: Likewise.
19570         * tests/test-exclude3.sh: Likewise.
19571         * tests/test-exclude4.sh: Likewise.
19572         * tests/test-exclude5.sh: Likewise.
19573         * tests/test-exclude6.sh: Likewise.
19574         * tests/test-exclude7.sh: Likewise.
19575
19576 2009-08-19  Akim Demaille  <demaille@gostai.com>
19577
19578         bootstrap: find sha1sum when named gsha1sum.
19579         * bootstrap (find_tool): New.
19580         ($SHA1SUM): New.
19581         Use it.
19582
19583 2009-08-20  Jim Meyering  <meyering@redhat.com>
19584
19585         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
19586         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
19587         expression that converts "." in a file name to "\." in the resulting
19588         regexp.  Start with a dummy statement, so that prior shell variable
19589         definitions are expanded portably.  Reported by Simon Josefsson.
19590
19591 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
19592
19593         Fix polling for writeability of a screen buffer.
19594         * lib/poll.c: Distinguish input and screen buffers for the
19595         Win32 implementation.
19596         * lib/select.c: Likewise.
19597
19598 2009-08-19  Eric Blake  <ebb9@byu.net>
19599
19600         popen-safer: prevent popen from clobbering std descriptors
19601         * modules/popen-safer: New file.
19602         * lib/popen-safer.c: Likewise.
19603         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
19604         * lib/stdio--.h (popen): Provide override.
19605         * lib/stdio-safer.h (popen_safer): Provide declaration.
19606         * tests/test-popen.c (includes): Partially test this.
19607         * modules/popen-safer-tests: New file, for more tests.
19608         * tests/test-popen-safer.c: Likewise.
19609         * MODULES.html.sh (file stream based Input/Output): Mention it.
19610
19611         tests: test some of the *-safer modules
19612         * modules/fopen-safer (Depends-on): Add fopen.
19613         * modules/fcntl-safer (Depends-on): Add fcntl.
19614         * modules/stdlib-safer (Depends-on): Add stdlib.
19615         (configure.ac): Set indicator.
19616         * modules/unistd-safer (configure.ac): Likewise.
19617         * modules/tmpfile-safer (configure.ac): Likewise.
19618         (Depends-on): Add tmpfile.
19619         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
19620         active.
19621         * tests/test-fopen.c (includes): Test safer versions when they are
19622         in use.
19623         * tests/test-open.c (includes): Likewise.
19624
19625         popen: fix cygwin 1.5 bug when stdin closed
19626         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
19627         * modules/popen: New file.
19628         * modules/popen-tests: Likewise.
19629         * tests/test-popen.c: Likewise.
19630         * m4/popen.m4: Likewise.
19631         * lib/popen.c: Likewise.
19632         * lib/stdio.in.h (popen): New declaration.
19633         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
19634         * modules/stdio (Makefile.am): Likewise.
19635         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
19636
19637 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
19638
19639         maint.mk: give full control over update-copyright exclusions
19640         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
19641         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
19642         (update-copyright): Don't force inclusion of top-level
19643         ChangeLog.  Don't force exclusion of all COPYING files, but make
19644         them the default exclusion instead.
19645
19646 2009-08-16  Bruno Haible  <bruno@clisp.org>
19647
19648         Fix test failures on Solaris 10.
19649         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
19650         tests when Solaris iconv() is used.
19651         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
19652         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
19653         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
19654         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
19655         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
19656
19657 2009-08-16  Bruno Haible  <bruno@clisp.org>
19658
19659         Fix test failures on Solaris 10.
19660         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
19661         'tr' program and pass it as first argument.
19662         * tests/test-pipe-filter-gi1.sh: Likewise.
19663         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
19664         program as first argument.
19665         * tests/test-pipe-filter-gi1.c (main): Likewise.
19666
19667 2009-08-16  Eric Blake  <ebb9@byu.net>
19668
19669         fpurge: fix previous commits
19670         * modules/fpurge (Makefile.am): Make replacement conditional,
19671         partially reverting 2007-04-29 change; missed in previous
19672         attempt.
19673         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
19674         is missing.
19675
19676 2009-08-16  Bruno Haible  <bruno@clisp.org>
19677
19678         Clarify fpurge's effect on the file position.
19679         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
19680         * tests/test-fpurge.c (main): Make a second pass for checking the file
19681         position.
19682
19683 2009-08-16  Bruno Haible  <bruno@clisp.org>
19684
19685         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
19686         declaration of fpurge is missing.
19687         * tests/test-fpurge.c (main): Check that the file has not more contents
19688         than expected. Close the file before removing it.
19689
19690 2009-08-15  Eric Blake  <ebb9@byu.net>
19691
19692         fpurge: don't wrap working cygwin implementation
19693         * lib/fpurge.c (fpurge): Fix comment typo.
19694         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
19695         1.7 to avoid replacement.
19696         * tests/test-fpurge.c (main): Enhance test.
19697
19698 2009-08-15  Eric Blake  <ebb9@byu.net>
19699         and Jim Meyering  <meyering@redhat.com>
19700
19701         test-update-copyright: skip if perl is insufficient
19702         * tests/test-update-copyright.sh: Failure to run maintainer tool
19703         should not cause testsuite failure on cygwin 1.5.
19704
19705 2009-08-14  Eric Blake  <ebb9@byu.net>
19706
19707         doc: mention more functions added in cygwin 1.7.0
19708         * doc/posix-headers/limits.texi (limits.h): Update for recent
19709         cygwin additions.
19710         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
19711         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19712         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
19713         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
19714         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
19715
19716 2009-08-14  Eric Blake  <ebb9@byu.net>
19717
19718         maint.mk: simplify update-copyright rule
19719         * top/maint.mk (update-copyright-local): Delete, and document how
19720         to do it in cfg.mk instead.
19721         (update-copyright-exclude-regexp): Delete, and document how to do
19722         it in .x-update-copyright instead.
19723         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
19724         exclude ChangeLog.
19725
19726 2009-08-14  Bruno Haible  <bruno@clisp.org>
19727
19728         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
19729
19730 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19731
19732         maint.mk: support update-copyright-env
19733         * top/maint.mk (update-copyright-env): Define place-holder.
19734         (update-copyright): Expand $(update-copyright-env) before
19735         invoking update-copyright.
19736
19737 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19738
19739         update-copyright: implement forced reformatting
19740         * build-aux/update-copyright: Implement and document
19741         UPDATE_COPYRIGHT_FORCE.
19742         * tests/test-update-copyright.sh: Test it.
19743
19744 2009-08-14  Eric Blake  <ebb9@byu.net>
19745         and Bruno Haible  <bruno@clisp.org>
19746
19747         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
19748         * tests/test-locale.c: Revert previous patch related to NULL.
19749         * tests/test-stdio.c: Likewise.
19750         * tests/test-stdlib.c: Likewise.
19751         * tests/test-string.c: Likewise.
19752         * tests/test-unistd.c: Likewise.
19753         * modules/time-tests (Depends-on): Add verify.
19754         * modules/wchar-tests (Depends-on): Likewise.
19755         * tests/test-time.c: Test for NULL compliance.
19756         * tests/test-wchar.c: Likewise.
19757         * modules/locale (Depends-on): Add stddef.
19758         * modules/stdio (Depends-on): Likewise.
19759         * modules/stdlib (Depends-on): Likewise.
19760         * modules/string (Depends-on): Likewise.
19761         * modules/time (Depends-on): Likewise.
19762         * modules/unistd (Depends-on): Likewise.
19763         * modules/wchar (Depends-on): Likewise.
19764         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
19765         * lib/stdlib.in.h (includes): Likewise.
19766         * lib/string.in.h (includes): Likewise.
19767         * lib/time.in.h (includes): Likewise.
19768         * lib/unistd.in.h (includes): Likewise.
19769         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
19770         replaced.
19771         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19772         * m4/stddef_h.m4: New file.
19773         * modules/stddef: Likewise.
19774         * lib/stddef.in.h: Likewise.
19775         * modules/stddef-tests: Likewise.
19776         * tests/test-stddef.c: Likewise.
19777         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
19778         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
19779         * doc/posix-headers/locale.texi (locale.h): Likewise.
19780         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
19781         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19782         * doc/posix-headers/string.texi (string.h): Likewise.
19783         * doc/posix-headers/time.texi (time.h): Likewise.
19784         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
19785         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
19786
19787 2009-08-14  Eric Blake  <ebb9@byu.net>
19788
19789         doc: improve git diff of texinfo files
19790         * .gitattributes: Add rule for *.texi files, with hint on how to
19791         use it.
19792         Copied from m4, and based on a report by Bruno Haible.
19793
19794 2009-08-14  Bruno Haible  <bruno@clisp.org>
19795
19796         Disable multithread support by default on Cygwin 1.5.x for real.
19797         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
19798
19799 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19800
19801         update-copyright: much ado about intervals
19802         * build-aux/update-copyright: Implement and document
19803         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
19804         of copyright year intervals.
19805         Also, document UPDATE_COPYRIGHT_YEAR.
19806         * tests/test-update-copyright.sh: Test it.
19807
19808         update-copyright: convert 2-digit to 4-digit years
19809         * build-aux/update-copyright: Implement and document.
19810         * tests/test-update-copyright.sh: Update.
19811
19812 2009-08-14  Jim Meyering  <meyering@redhat.com>
19813
19814         test-exclude: avoid coreutils "make check" failure
19815         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
19816         just as in test-argmatch.c.
19817
19818 2009-08-13  Eric Blake  <ebb9@byu.net>
19819
19820         test-dup2: fix bad assumption
19821         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
19822         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
19823
19824         test-version-etc: fix CRLF portability issue
19825         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
19826         recognize \r.
19827         * tests/test-argp-version-etc-1.sh: Likewise.
19828
19829         getopt: update client modules
19830         * modules/argp (Depends-on): Use getopt-gnu.
19831         * modules/git-merge-changelog (Depends-on): Likewise.
19832         * modules/long-options (Depends-on): Likewise.
19833         * modules/xstrtol (Depends-on): Likewise.
19834
19835 2009-08-13  Simon Josefsson  <simon@josefsson.org>
19836
19837         * tests/test-version-etc.sh: Don't fail on different
19838         project/version.  Don't fail on CRLF differences.  Rewrite to use
19839         multiple -e instead of multiple sed forks, suggested by Eric Blake
19840         <ebb9@byu.net>.
19841         * tests/test-argp-version-etc-1.sh: Likewise.
19842
19843 2009-08-13  Simon Josefsson  <simon@josefsson.org>
19844
19845         * tests/test-version-etc.sh: Don't fail on different
19846         project/version.
19847
19848 2009-08-12  Bruno Haible  <bruno@clisp.org>
19849
19850         Tests for modules 'getopt-posix', 'getopt-gnu'.
19851         * modules/getopt-posix-tests: New file.
19852         * tests/test-getopt.c: New file.
19853         * tests/test-getopt.h: New file.
19854         * tests/test-getopt_long.h: New file.
19855
19856         New modules 'getopt-posix', 'getopt-gnu'.
19857         * modules/getopt-gnu: New file, renamed from modules/getopt.
19858         * modules/getopt-posix: New file.
19859         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
19860         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
19861         (gl_GETOPT): Remove macro.
19862         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
19863         Disable the test against BSD systems that declare optreset. Test
19864         against mingw bug. Test against lack of support of optional arguments
19865         on many platforms.
19866         * doc/glibc-headers/getopt.texi: Update module name and list of
19867         relevant platforms.
19868         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
19869         'getopt-gnu' and more portability problems.
19870         * NEWS: Mention the changes.
19871
19872 2009-08-12  Bruno Haible  <bruno@clisp.org>
19873
19874         Ensure that optarg etc. get declared by <unistd.h>.
19875         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
19876         AC_USE_SYSTEM_EXTENSIONS.
19877         * modules/getopt (Depends-on): Add 'extensions'.
19878
19879 2009-08-12  Bruno Haible  <bruno@clisp.org>
19880
19881         Avoid test link errors.
19882         * modules/pipe-filter-ii-tests (Makefile.am): Define
19883         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
19884         * modules/pipe-filter-gi-tests (Makefile.am): Define
19885         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
19886         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19887
19888 2009-08-12  Bruno Haible  <bruno@clisp.org>
19889
19890         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
19891         gl_GETOPT_SUBSTITUTE before.
19892         (gl_GETOPT): Use it.
19893         * m4/argp.m4 (gl_ARGP): Update.
19894         Reported by Sergey Poznyakoff.
19895
19896         * m4/getopt.m4: Reorder macros.
19897         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
19898         (gl_GETOPT_SUBSTITUTE): Remove macro.
19899
19900 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19901
19902         Minor improvement in gitlog-to-changelog
19903
19904         * build-aux/gitlog-to-changelog: New option `--format' makes
19905         output format string configurable.
19906
19907 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19908
19909         Optimize exclude: use hash tables for non-wildcard patterns.
19910
19911         * lib/exclude.c: Include hash.h and mbuiter.h
19912         (struct exclude_pattern, exclude_segment): New data types.
19913         (struct exclude): Rewrite.
19914         (fnmatch_pattern_has_wildcards): New function.
19915         (new_exclude_segment, free_exclude_segment): New functions.
19916         (excluded_file_pattern_p, excluded_file_name_p): New functions.
19917         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
19918         * lib/exclude.h (is_fnmatch_pattern): New prototype.
19919         * modules/exclude: Depend on hash and mbuiter.
19920
19921         * modules/exclude-tests: New file.
19922         * tests/test-exclude.c: New file.
19923         * tests/test-exclude1.sh: New file.
19924         * tests/test-exclude2.sh: New file.
19925         * tests/test-exclude3.sh: New file.
19926         * tests/test-exclude4.sh: New file.
19927         * tests/test-exclude5.sh: New file.
19928         * tests/test-exclude6.sh: New file.
19929         * tests/test-exclude7.sh: New file.
19930
19931 2009-08-12  Bruno Haible  <bruno@clisp.org>
19932
19933         Ensure that getopt() gets declared by <unistd.h>.
19934         * lib/unistd.in.h: Conditionally include getopt.h.
19935         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
19936         Set GNULIB_UNISTD_H_GETOPT.
19937         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19938         GNULIB_UNISTD_H_GETOPT.
19939         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
19940
19941 2009-08-12  Bruno Haible  <bruno@clisp.org>
19942
19943         Clarify logic.
19944         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
19945         gl_replace_getopt instead of GETOPT_H.
19946
19947 2009-08-12  Bruno Haible  <bruno@clisp.org>
19948
19949         * m4/getopt.m4: Add comments.
19950
19951 2009-08-12  Bruno Haible  <bruno@clisp.org>
19952
19953         Disable multithread support by default on Cygwin 1.5.x.
19954         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
19955         set gl_use_threads=no if not specified otherwise.
19956
19957 2009-08-11  Bruno Haible  <bruno@clisp.org>
19958
19959         Avoid compilation error on NetBSD 5.0.
19960         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
19961         * tests/test-stdio.c: Likewise.
19962         * tests/test-stdlib.c: Likewise.
19963         * tests/test-string.c: Likewise.
19964         * tests/test-unistd.c: Likewise.
19965         Reported by Greg Troxel <gdt@ir.bbn.com>
19966         at <https://savannah.gnu.org/support/?106973>.
19967
19968 2009-08-11  Bruno Haible  <bruno@clisp.org>
19969
19970         * modules/dup2-tests (Depends-on): Remove close.
19971
19972         Undo 2009-07-19 commit.
19973         * modules/acl-tests (Depends-on): Remove close.
19974         * modules/binary-io-tests (Depends-on): Likewise.
19975         * modules/closein-tests (Depends-on): Likewise.
19976         * modules/flock-tests (Depends-on): Likewise.
19977         * modules/fsync-tests (Depends-on): Likewise.
19978         * modules/lseek-tests (Depends-on): Likewise.
19979         * modules/pipe-tests (Depends-on): Likewise.
19980         * modules/posix_spawn-tests (Depends-on): Likewise.
19981         * modules/posix_spawnp-tests (Depends-on): Likewise.
19982         * modules/stat-time-tests (Depends-on): Likewise.
19983         * modules/yesno-tests (Depends-on): Likewise.
19984
19985 2009-08-10  Bruno Haible  <bruno@clisp.org>
19986
19987         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
19988
19989 2009-08-10  Bruno Haible  <bruno@clisp.org>
19990
19991         Fix a gcc warning.
19992         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
19993
19994 2009-08-10  Bruno Haible  <bruno@clisp.org>
19995
19996         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
19997         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
19998         not only the first time.
19999         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
20000         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
20001         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
20002         is 1, not only the the first time.
20003
20004 2009-08-10  Bruno Haible  <bruno@clisp.org>
20005
20006         Make it possible to use module 'gethostname' without module 'close'.
20007         * lib/unistd.in.h (close): Evoke a link error only if
20008         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
20009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20010         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20011         * modules/unistd (Makefile.am): Substitute
20012         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20013         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
20014         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
20015         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
20016         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20017         * modules/sys_ioctl (Makefile.am): Substitute
20018         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20019         * modules/socket (configure.ac): On native Windows, set
20020         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
20021         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20022         Reported by Sam Steingold <sds@gnu.org>.
20023
20024 2009-08-10  Bruno Haible  <bruno@clisp.org>
20025
20026         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
20027         * modules/ioctl (configure.ac): Likewise.
20028
20029 2009-08-10  Bruno Haible  <bruno@clisp.org>
20030
20031         Avoid collision between gnulib wrapper and libintl wrapper.
20032         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
20033         already defined in intl/printf.c.
20034         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
20035         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
20036
20037 2009-08-09  Bruno Haible  <bruno@clisp.org>
20038
20039         Make <sys/select.h> really self-contained, also on Solaris 10.
20040         * lib/sys_select.in.h: Include <string.h>.
20041         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
20042         Solaris 10 problem.
20043         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
20044         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
20045         Reported by Jim Meyering.
20046
20047 2009-08-09  Bruno Haible  <bruno@clisp.org>
20048
20049         Avoid warnings from 'aclocal' that are due to a use of macro name
20050         AM_XGETTEXT_OPTION that is not defined in automake.
20051         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
20052         automake.
20053         * modules/error (configure.ac): Likewise.
20054         * modules/propername (configure.ac): Likewise.
20055         * modules/vasprintf (configure.ac): Likewise.
20056         * modules/verror (configure.ac): Likewise.
20057         * modules/xprintf (configure.ac): Likewise.
20058         * modules/xvasprintf (configure.ac): Likewise.
20059
20060 2009-08-08  Bruno Haible  <bruno@clisp.org>
20061
20062         Avoid compilation error in C++ mode.
20063         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
20064         Reported by Sam Steingold <sds@gnu.org>.
20065
20066 2009-08-08  Bruno Haible  <bruno@clisp.org>
20067
20068         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
20069         for the various Unix platforms.
20070         * doc/posix-headers/limits.texi: Update platforms list regarding
20071         HOST_NAME_MAX.
20072         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20073
20074 2009-08-07  Jim Meyering  <meyering@redhat.com>
20075
20076         selinux-at: fix typo in a comment
20077         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
20078         Spotted by Paolo Bonzini.
20079
20080         selinux-at: remove redundant m4 code, add documentation
20081         * modules/selinux-at (configure.ac): Remove redundant code.
20082         LIB_SELINUX is already set via the dependent module, selinux-h.
20083         (Include): Add quotes around selinux-at.h.
20084         * lib/selinux-at.h: Add documentation.
20085         Reported by Bruno Haible in
20086         http://marc.info/?l=gnulib-bug&m=124958988300749
20087
20088 2009-08-07  Bruno Haible  <bruno@clisp.org>
20089
20090         Avoid link error on MacOS X 10.3 and 10.4.
20091         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
20092         on non-ELF systems.
20093         * lib/argp-pv.c (argp_program_version): Likewise.
20094         Reported by Simon Josefsson.
20095
20096 2009-08-07  Simon Josefsson  <simon@josefsson.org>
20097
20098         * tests/test-version-etc.sh: Use $EXEEXT.
20099
20100 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
20101
20102         update-copyright: update documentation to point to maint.mk
20103         * build-aux/update-copyright: Here.
20104
20105 2009-08-06  Jim Meyering  <meyering@redhat.com>
20106
20107         maint.mk: support update-copyright-local
20108         * top/maint.mk (update-copyright-local): Define place-holder.
20109         (update-copyright): Depend on $(update-copyright-local).
20110
20111 2009-08-06  Jim Meyering  <meyering@redhat.com>
20112
20113         selinux-at: new module
20114         Initially written for coreutils, this module will soon be
20115         used by findutils, too.
20116         * MODULES.html.sh [Misc]: Add selinux-at.
20117         * lib/selinux-at.h: New file, from coreutils.
20118         * lib/selinux-at.c: Likewise.
20119         * modules/selinux-at: Likewise.
20120         (License): Change from LGPL to GPL, since it depends
20121         on the GPL'd openat module.
20122
20123         doc: update README
20124         * README: Remove references to cogito.
20125         Remove cvs-repo-updating instructions from 2007.
20126         Don't imply that CVS is better if you have limited disk space.
20127
20128 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20129
20130         update-copyright: support C-style comments
20131         * build-aux/update-copyright: Implement and document.
20132         * tests/test-update-copyright.sh: Test.
20133
20134 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20135
20136         update-copyright: support omitted "(C)"
20137         * build-aux/update-copyright: Implement and document.  Also,
20138         allow variable whitespace before "(C)".
20139         * tests/test-update-copyright.sh: Test.
20140
20141 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20142
20143         update-copyright: don't trip on non-FSF copyright statements
20144         * build-aux/update-copyright: Fix so that the first correctly
20145         formatted FSF copyright statement is recognized no matter what
20146         appears before it.  Update documentation.
20147         * tests/test-update-copyright.sh: Test that.
20148
20149 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20150
20151         update-copyright: clean up code a little
20152         * build-aux/update-copyright: Append "_re" to the name of any
20153         variable holding a regular expression.
20154         Replace "old" and "new" with "stmt" in variable names.
20155         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
20156         handled correctly.
20157         Format code more consistently.
20158
20159 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20160
20161         update-copyright-tests: improve portability
20162         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
20163         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
20164
20165 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
20166
20167         update-copyright: support @copyright{} and &copy;
20168         * build-aux/update-copyright: Implement and document.
20169         * tests/test-update-copyright.sh: Test.
20170
20171 2009-08-04  Jim Meyering  <meyering@redhat.com>
20172
20173         update-copyright-tests: correctly test EOL=\r\n handling
20174         * tests/test-update-copyright.sh: Put \r at the end of some lines
20175         for the dos-eol tests.  Based on a patch by Joel E. Denny.
20176
20177         maint.mk: make update-copyright exclusion list more configurable
20178         * top/maint.mk (update-copyright): Default to excluding COPYING,
20179         but allow an override, in case someone does want to update that file.
20180
20181         maint.mk: don't update copyright date in COPYING
20182         * top/maint.mk (update-copyright): Exclude COPYING.
20183
20184         maint.mk: add a copyright-updating rule
20185         * top/maint.mk (update-copyright): New rule.
20186         Derived from coreutils/Makefile.am.
20187
20188         update-copyright: rename some variables
20189         * build-aux/update-copyright: Rename a few variables for clarity.
20190         Tweak syntax.  List Joel E. Denny as coauthor.
20191
20192 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
20193
20194         update-copyright: fix bug for 2-digit last year and add tests
20195         * build-aux/update-copyright: Fix bug.
20196         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
20197         specified.
20198         * modules/update-copyright-tests: New
20199         * tests/test-update-copyright.sh: New.
20200
20201 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20202
20203         update-copyright: handle leading tabs in line prefix
20204         * build-aux/update-copyright: Count leading tabs as 8 spaces
20205         when computing margin.  This helps with the formatting of
20206         ChangeLogs, for example.
20207         Fix documentation a little.
20208
20209 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20210
20211         update-copyright: support EOL=\r\n
20212         * build-aux/update-copyright: Implement that.
20213
20214 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20215
20216         update-copyright: automatically format copyright statements
20217         * build-aux/update-copyright: Implement that.
20218         Also, be a little more predictable and safer by always failing
20219         when the full copyright format is not perfectly recognized as an
20220         unbroken whole.  Discussed at
20221         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
20222         Rewrite documentation.
20223
20224 2009-08-03  Bruno Haible  <bruno@clisp.org>
20225
20226         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
20227
20228 2009-08-02  Bruno Haible  <bruno@clisp.org>
20229
20230         Tests for module 'uname'.
20231         * modules/uname-tests: New file.
20232         * tests/test-uname.c: New file.
20233
20234         New module 'uname'.
20235         * lib/uname.c: New file.
20236         * m4/uname.m4: New file.
20237         * modules/uname: New file.
20238         * doc/posix-functions/uname.texi: Mention the new module.
20239
20240 2009-08-02  Bruno Haible  <bruno@clisp.org>
20241
20242         Tests for module 'sys_utsname'.
20243         * modules/sys_utsname-tests: New file.
20244         * tests/test-sys_utsname.c: New file.
20245
20246         New module 'sys_utsname'.
20247         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
20248         * m4/sys_utsname_h.m4: New file.
20249         * modules/sys_utsname: New file.
20250         * doc/posix-headers/sys_utsname.texi: Mention the new module.
20251
20252 2009-08-02  Bruno Haible  <bruno@clisp.org>
20253
20254         Implicitly initialize the sockets library.
20255         * lib/gethostname.c: Include sockets.h.
20256         (rpl_gethostname): Invoke gl_sockets_startup.
20257         * lib/socket.c: Include sockets.h.
20258         (rpl_socket): Invoke gl_sockets_startup.
20259         * modules/gethostname (Depends-on): Add sockets.
20260         * modules/socket (Depends-on): Likewise.
20261         * tests/test-poll.c: Don't include sockets.h.
20262         (main): Don't invoke gl_sockets_startup.
20263         * tests/test-select.c: Don't include sockets.h.
20264         (main): Don't invoke gl_sockets_startup.
20265
20266 2009-08-02  Bruno Haible  <bruno@clisp.org>
20267
20268         Allow multiple calls to gl_sockets_startup.
20269         * lib/sockets.c (initialized_sockets_version): New variable.
20270         (gl_sockets_startup): Do nothing if already called for this or a higher
20271         version.
20272         (gl_sockets_cleanup): Reset initialized_sockets_version.
20273
20274 2009-08-03  Simon Josefsson  <simon@josefsson.org>
20275
20276         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
20277         different project/version.
20278
20279 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
20280             Bruno Haible  <bruno@clisp.org>
20281
20282         Tests for module 'pipe-filter-gi'.
20283         * modules/pipe-filter-gi-tests: New file.
20284         * tests/test-pipe-filter-gi1.sh: New file.
20285         * tests/test-pipe-filter-gi1.c: New file.
20286         * tests/test-pipe-filter-gi2.sh: New file.
20287         * tests/test-pipe-filter-gi2-main.c: New file.
20288         * tests/test-pipe-filter-gi2-child.c: New file.
20289
20290         New module 'pipe-filter-gi'.
20291         * lib/pipe-filter-gi.c: New file.
20292         * modules/pipe-filter-gi: New file.
20293
20294 2009-08-02  Bruno Haible  <bruno@clisp.org>
20295             Paolo Bonzini  <bonzini@gnu.org>
20296
20297         Tests for module 'pipe-filter-ii'.
20298         * modules/pipe-filter-ii-tests: New file.
20299         * tests/test-pipe-filter-ii1.sh: New file.
20300         * tests/test-pipe-filter-ii1.c: New file.
20301         * tests/test-pipe-filter-ii2.sh: New file.
20302         * tests/test-pipe-filter-ii2-main.c: New file.
20303         * tests/test-pipe-filter-ii2-child.c: New file.
20304
20305         New module 'pipe-filter-ii'.
20306         * lib/pipe-filter.h: New file.
20307         * lib/pipe-filter-ii.c: New file.
20308         * lib/pipe-filter-aux.h: New file.
20309         * modules/pipe-filter-ii: New file.
20310
20311 2009-08-02  Simon Josefsson  <simon@josefsson.org>
20312
20313         * lib/gc-libgcrypt.c: Change copyright to FSF.
20314         * lib/gc-gnulib.c: Likewise.
20315
20316 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
20317
20318         * lib/gethostname.c: Include limits.h.
20319
20320 2009-08-02  Simon Josefsson  <simon@josefsson.org>
20321             Bruno Haible  <bruno@clisp.org>
20322
20323         Ensure HOST_NAME_MAX as part of the gethostname module.
20324         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
20325         define also HOST_NAME_MAX.
20326         * tests/test-gethostname.c: Include <limits.h>.
20327         (main): Check also HOST_NAME_MAX.
20328         * doc/posix-headers/limits.texi: Document the mingw problem.
20329
20330 2009-08-02  Bruno Haible  <bruno@clisp.org>
20331
20332         * lib/gethostname.c (gethostname): Fix handling of large len argument.
20333         Add comments.
20334
20335 2009-03-31  Simon Josefsson  <simon@josefsson.org>
20336
20337         * lib/gethostname.c: Add Windows wrapper.
20338         * m4/gethostname.m4: Look for gethostname in -lws2_32.
20339         * modules/gethostname: Depend on sys_socket & errno, for also
20340         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
20341         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
20342
20343 2009-07-31  Jim Meyering  <meyering@redhat.com>
20344
20345         getloadavg: fix symbol name in comment
20346         * lib/getloadavg.c: Correct a typo I introduced when adding
20347         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
20348         Matt Kraai spotted the problem.
20349
20350 2009-07-29  Matt Kraai  <mkraai@beckman.com>
20351
20352         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
20353         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
20354         code also if ! defined N_NAME_POINTER.
20355         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
20356         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
20357         but the n_name member is a 12-byte array.
20358
20359 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
20360
20361         update-copyright: generalize comment handling
20362         * build-aux/update-copyright: Handle copyright statements
20363         within more comment styles.
20364         Document usage.
20365         Report any file with an external copyright holder or parse failure.
20366
20367 2009-07-29  Jim Meyering  <meyering@redhat.com>
20368
20369         mktime: correct setting of REPLACE_MKTIME
20370         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
20371
20372         update-copyright: new module
20373         * modules/update-copyright: New file.
20374         * build-aux/update-copyright: New file.
20375         * MODULES.html.sh (maint+release support): Add update-copyright.
20376
20377 2009-07-27  Bruno Haible  <bruno@clisp.org>
20378
20379         Fix compilation error when <ctime> is used and mktime is replaced.
20380         * lib/time.in.h (mktime): New declaration.
20381         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
20382         REPLACE_MKTIME instead of defining mktime in config.h.
20383         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
20384         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
20385         Reported by Ross McFarland <rwmcfa1@neces.com>.
20386
20387 2009-07-27  Bruno Haible  <bruno@clisp.org>
20388
20389         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
20390         Reported by Matt Kraai <mkraai@beckman.com>.
20391
20392 2009-07-25  Jim Meyering  <meyering@redhat.com>
20393
20394         maint.mk: avoid warnings about missing files
20395         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
20396         diagnostic when .prev-version does not exist.
20397         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
20398         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
20399         nonexistent cfg.mk.
20400         Suggestions from Simon Josefsson.
20401
20402 2009-07-25  Bruno Haible  <bruno@clisp.org>
20403
20404         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
20405         defined as macros. Needed on QNX 6.4.1.
20406         Reported by Matt Kraai <mkraai@beckman.com>.
20407
20408 2009-07-23  Jim Meyering  <meyering@redhat.com>
20409
20410         maint.mk: invoke "make dist" with a working value of XZ_OPT
20411         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
20412
20413 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
20414
20415         Make fseeko.c compile on QNX.
20416         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
20417
20418 2009-07-22  Peter Simons  <simons@cryp.to>
20419
20420         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
20421         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
20422         * lib/md4.h: Likewise.
20423         * lib/md5.h: Likewise.
20424         * lib/sha1.h: Likewise.
20425         * lib/sha256.h: Likewise.
20426         * lib/sha512.h: Likewise.
20427
20428         tests-sha1: don't assign literal string to 'char *' variable
20429         * tests/test-sha1.c (main): Declare locals with "const" to match
20430         attributes of the right hand side.
20431
20432 2009-07-21  Eric Blake  <ebb9@byu.net>
20433
20434         dup2: fix more mingw problems
20435         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
20436         fd to itself.
20437         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20438         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
20439         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
20440         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
20441         care of mingw bugs.
20442
20443 2009-07-21  Jim Meyering  <meyering@redhat.com>
20444
20445         vc-list-files: avoid failure when /bin/sh is dash
20446         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
20447         On some Debian based systems, /bin/sh is a symlink to dash, and running
20448         this command would omit the "/" following each 'tests' prefix:
20449           dash -x build-aux/vc-list-files -C . tests
20450         That is because bash and dash work differently:
20451           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
20452           bash ok
20453           dash odd
20454
20455 2009-07-21  Eric Blake  <ebb9@byu.net>
20456
20457         dup2-tests: test previous patch
20458         * modules/dup2-tests: New file.
20459         * tests/test-dup2.c: Likewise.
20460         * tests/test-open.c (main): Avoid unspecified behavior.
20461         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
20462         test.
20463
20464         dup2: work around mingw and cygwin 1.5 bug
20465         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
20466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20467         * modules/unistd (Makefile.am): Substitute it.
20468         * lib/unistd.in.h (dup2): Declare the replacement.
20469         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
20470         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
20471         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
20472         * modules/execute (Depends-on): Add dup2.
20473         * modules/fseterr (Depends-on): Likewise.
20474         * modules/pipe (Depends-on): Likewise.
20475         * modules/posix_spawn-internal (Depends-on): Likewise.
20476
20477 2009-07-21  Bruno Haible  <bruno@clisp.org>
20478
20479         * modules/.gitattributes: New file.
20480
20481 2009-07-20  Bruno Haible  <bruno@clisp.org>
20482
20483         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
20484         (main): Use it.
20485
20486 2009-07-20  Eric Blake  <ebb9@byu.net>
20487
20488         test-pipe: make a bit more robust.
20489         * tests/test-pipe.c (myerr): Allow error messages regardless of
20490         what we do to stderr.
20491         (test_pipe): Rearrange to avoid deadlock.
20492         (child_main): Try a larger read, to ensure we avoided deadlock.
20493         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
20494         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
20495         if misused.
20496
20497 2009-07-19  Jim Meyering  <meyering@redhat.com>
20498
20499         fts: avoid false-positive cycle-detection
20500         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
20501         for each new command line argument.
20502
20503 2009-07-19  Bruno Haible  <bruno@clisp.org>
20504
20505         Fix build error on mingw with the modules sys_select and unistd.
20506         * modules/acl-tests (Depends-on): Add close.
20507         * modules/binary-io-tests (Depends-on): Likewise.
20508         * modules/closein-tests (Depends-on): Likewise.
20509         * modules/flock-tests (Depends-on): Likewise.
20510         * modules/fsync-tests (Depends-on): Likewise.
20511         * modules/lseek-tests (Depends-on): Likewise.
20512         * modules/pipe-tests (Depends-on): Likewise.
20513         * modules/posix_spawn-tests (Depends-on): Likewise.
20514         * modules/posix_spawnp-tests (Depends-on): Likewise.
20515         * modules/stat-time-tests (Depends-on): Likewise.
20516         * modules/yesno-tests (Depends-on): Likewise.
20517
20518 2009-07-19  Bruno Haible  <bruno@clisp.org>
20519
20520         Unify conditionals.
20521         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
20522         macros, not at the compiler macros.
20523         * lib/pipe.c: Likewise.
20524         * lib/execute.c: Likewise.
20525         * lib/spawni.c: Likewise.
20526
20527 2009-07-19  Bruno Haible  <bruno@clisp.org>
20528
20529         Fix handling of closed stdin/stdout/stderr on mingw.
20530         * lib/w32spawn.h: Include unistd.h.
20531         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
20532         file descriptor with O_NOINHERIT flag.
20533         (fd_safer_noinherit): New function, based on fd-safer.c.
20534         (dup_safer_noinherit): New function, based on dup-safer.c.
20535         (undup_safer_noinherit): New function.
20536         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
20537         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
20538         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
20539         instead of fd_safer.
20540         * tests/test-pipe.c: Include <windows.h>.
20541         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
20542
20543         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
20544         from main.
20545         (test_pipe): Pass an extra argument for disambiguation.
20546         (main): Invoke parent_main or child_main.
20547
20548         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
20549         consistently.
20550
20551 2009-07-18  Eric Blake  <ebb9@byu.net>
20552
20553         test-pipe: fix mingw build
20554         * tests/test-pipe.c (main): Avoid fcntl on mingw.
20555
20556 2009-07-18  Bruno Haible  <bruno@clisp.org>
20557
20558         * modules/pipe-tests (Makefile.am): Fix typo.
20559
20560 2009-07-18  Eric Blake  <ebb9@byu.net>
20561
20562         error: fix mingw build
20563         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
20564         Reported by Bruno Haible.
20565
20566         error: avoid undefined use of stdout
20567         * lib/error.c (error, error_at_line): Check that fd 1 is open
20568         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
20569         is handling faults and the close_stdout module wants to report the
20570         detection of closed stdout as an error.
20571
20572 2009-07-17  Eric Blake  <ebb9@byu.net>
20573
20574         pipe: be robust in face of closed fds
20575         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
20576         should cause child to misbehave.
20577         * modules/pipe-tests: New module.
20578         * tests/test-pipe.c: New file.
20579         * tests/test-pipe.sh: New file.
20580         Reported by Akim Demaille.
20581
20582 2009-07-14  Bruno Haible  <bruno@clisp.org>
20583
20584         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
20585         Reported by anonymous kc.
20586
20587 2009-07-07  Jim Meyering  <meyering@redhat.com>
20588
20589         maint.mk: don't look for translatable strings in *.m4 or *.mk
20590         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
20591         when searching for translatable strings.
20592
20593 2009-07-05  Jim Meyering  <meyering@redhat.com>
20594
20595         remove superfluous parentheses in STREQ definition
20596         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
20597         * lib/getugroups.c (STREQ): Likewise.
20598         * lib/fnmatch.c (STREQ): Likewise.
20599         Spotted by Bruno Haible.
20600
20601 2009-07-04  Jim Meyering  <meyering@redhat.com>
20602
20603         argv-iter: new module
20604         * MODULES.html.sh: Add argv-iter.
20605         * lib/argv-iter.c, lib/argv-iter.h: New files.
20606         * modules/argv-iter: New file.
20607         * modules/argv-iter-tests: New file.
20608         * tests/test-argv-iter.c: Test it.
20609
20610 2009-07-04  Bruno Haible  <bruno@clisp.org>
20611
20612         Fix assertion.
20613         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
20614         contains more exact copies of a given entry than file2, leave the extra
20615         copies unpaired rather than aborting.
20616         Reported by Eric Blake.
20617
20618 2009-07-02  Bruno Haible  <bruno@clisp.org>
20619
20620         Speedup git-merge-changelog for git cherry-pick.
20621         * lib/git-merge-changelog.c (struct entries_mapping): New type.
20622         (entries_mapping_get): New function, extracted from compute_mapping.
20623         (entries_mapping_reverse_get): New function.
20624         (compute_mapping): Add a 'full' argument. Return the result in a
20625         'struct entries_mapping'.
20626         (main): Update. Access the mappings through entries_mapping_get.
20627         Reported by Eric Blake.
20628
20629 2009-07-02  Bruno Haible  <bruno@clisp.org>
20630
20631         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
20632         best_i.
20633
20634 2009-07-02  Bruno Haible  <bruno@clisp.org>
20635
20636         Speed up approximate search for matching ChangeLog entries.
20637         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
20638         argument. Call fstrcmp_bounded instead of fstrcmp.
20639         (compute_mapping, try_split_merged_entry, main): Update callers.
20640
20641 2009-07-02  Bruno Haible  <bruno@clisp.org>
20642
20643         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
20644
20645 2009-06-30  Bruno Haible  <bruno@clisp.org>
20646
20647         Reduce the number of uc_is_cased calls.
20648         * lib/unicase.h (casing_suffix_context_t): Add
20649         'first_char_except_ignorable' field.
20650         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
20651         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
20652         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
20653         Update initializer.
20654         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
20655         case-ignorable characters.
20656         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
20657         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
20658         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
20659         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
20660         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
20661
20662 2009-06-30  Bruno Haible  <bruno@clisp.org>
20663
20664         Tests for module 'unicase/ignorable'.
20665         * modules/unicase/ignorable-tests: New file.
20666         * tests/unicase/test-ignorable.c: New file, generated by
20667         gen-uni-tables.
20668
20669         Tests for module 'unicase/cased'.
20670         * modules/unicase/cased-tests: New file.
20671         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
20672         * tests/unicase/test-predicate-part1.h: New file, derived from
20673         tests/unictype/test-predicate-part1.h.
20674         * tests/unicase/test-predicate-part2.h: New file, same as
20675         tests/unictype/test-predicate-part2.h.
20676
20677         Fix evaluation of "Before C" condition of FINAL_SIGMA.
20678         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
20679         (output_casing_properties): New function.
20680         (main): Call it.
20681         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
20682         * lib/unicase/cased.c: Include unictype/bitmap.h.
20683         (uc_is_cased): Define through a bitmap lookup.
20684         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
20685         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
20686         (uc_is_case_ignorable): Define through a bitmap lookup.
20687         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
20688         lib/unictype/bitmap.h.
20689         (Depends-on): Add inline. Clean up.
20690         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
20691         lib/unictype/bitmap.h.
20692         (Depends-on): Add inline. Clean up.
20693         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
20694         recognition.
20695         * tests/unicase/test-u16-tolower.c (main): Likewise.
20696         * tests/unicase/test-u32-tolower.c (main): Likewise.
20697
20698 2009-06-30  Bruno Haible  <bruno@clisp.org>
20699
20700         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
20701         * lib/unicase/u16-casemap.c: Likewise.
20702         * lib/unicase/u32-casemap.c: Likewise.
20703
20704 2009-06-29  Bruno Haible  <bruno@clisp.org>
20705
20706         Define u32_casefold as a wrapper around u32_ct_casefold.
20707         * lib/unicase/u32-casefold.c: Update.
20708         * modules/unicase/u32-casefold (Depends-on): Add
20709         unicase/u32-ct-casefold, unicase/empty-prefix-context,
20710         unicase/empty-suffix-context. Clean up.
20711
20712         Define u16_casefold as a wrapper around u16_ct_casefold.
20713         * lib/unicase/u16-casefold.c: Update.
20714         * modules/unicase/u16-casefold (Depends-on): Add
20715         unicase/u16-ct-casefold, unicase/empty-prefix-context,
20716         unicase/empty-suffix-context. Clean up.
20717
20718         Define u8_casefold as a wrapper around u8_ct_casefold.
20719         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
20720         * lib/unicase/u8-casefold.c: Update.
20721         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
20722         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20723
20724         Define u32_totitle as a wrapper around u32_ct_totitle.
20725         * lib/unicase/u32-totitle.c: Update.
20726         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
20727         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20728
20729         Define u16_totitle as a wrapper around u16_ct_totitle.
20730         * lib/unicase/u16-totitle.c: Update.
20731         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
20732         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20733
20734         Define u8_totitle as a wrapper around u8_ct_totitle.
20735         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
20736         functions.
20737         (FUNC): Delegate to U_CT_TOTITLE.
20738         * lib/unicase/u8-totitle.c: Update.
20739         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
20740         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20741
20742         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
20743         invocation.
20744         * modules/unicase/u32-tolower (Depends-on): Add
20745         unicase/empty-prefix-context, unicase/empty-suffix-context.
20746
20747         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
20748         invocation.
20749         * modules/unicase/u16-tolower (Depends-on): Add
20750         unicase/empty-prefix-context, unicase/empty-suffix-context.
20751
20752         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
20753         * modules/unicase/u8-tolower (Depends-on): Add
20754         unicase/empty-prefix-context, unicase/empty-suffix-context.
20755
20756         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
20757         invocation.
20758         * modules/unicase/u32-toupper (Depends-on): Add
20759         unicase/empty-prefix-context, unicase/empty-suffix-context.
20760
20761         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
20762         invocation.
20763         * modules/unicase/u16-toupper (Depends-on): Add
20764         unicase/empty-prefix-context, unicase/empty-suffix-context.
20765
20766         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
20767         * modules/unicase/u8-toupper (Depends-on): Add
20768         unicase/empty-prefix-context, unicase/empty-suffix-context.
20769
20770         New module 'unicase/u32-ct-casefold'.
20771         * lib/unicase/u32-ct-casefold.c: New file.
20772         * modules/unicase/u32-ct-casefold: New file.
20773
20774         New module 'unicase/u16-ct-casefold'.
20775         * lib/unicase/u16-ct-casefold.c: New file.
20776         * modules/unicase/u16-ct-casefold: New file.
20777
20778         New module 'unicase/u8-ct-casefold'.
20779         * lib/unicase/u8-ct-casefold.c: New file.
20780         * lib/unicase/u-ct-casefold.h: New file, derived from
20781         lib/unicase/u-casefold.h.
20782         * modules/unicase/u8-ct-casefold: New file.
20783
20784         New module 'unicase/u32-ct-totitle'.
20785         * lib/unicase/u32-ct-totitle.c: New file.
20786         * modules/unicase/u32-ct-totitle: New file.
20787
20788         New module 'unicase/u16-ct-totitle'.
20789         * lib/unicase/u16-ct-totitle.c: New file.
20790         * modules/unicase/u16-ct-totitle: New file.
20791
20792         New module 'unicase/u8-ct-totitle'.
20793         * lib/unicase/u8-ct-totitle.c: New file.
20794         * lib/unicase/u-ct-totitle.h: New file, derived from
20795         lib/unicase/u-totitle.h.
20796         * modules/unicase/u8-ct-totitle: New file.
20797
20798         New module 'unicase/u32-ct-tolower'.
20799         * lib/unicase/u32-ct-tolower.c: New file.
20800         * modules/unicase/u32-ct-tolower: New file.
20801
20802         New module 'unicase/u16-ct-tolower'.
20803         * lib/unicase/u16-ct-tolower.c: New file.
20804         * modules/unicase/u16-ct-tolower: New file.
20805
20806         New module 'unicase/u8-ct-tolower'.
20807         * lib/unicase/u8-ct-tolower.c: New file.
20808         * modules/unicase/u8-ct-tolower: New file.
20809
20810         New module 'unicase/u32-ct-toupper'.
20811         * lib/unicase/u32-ct-toupper.c: New file.
20812         * modules/unicase/u32-ct-toupper: New file.
20813
20814         New module 'unicase/u16-ct-toupper'.
20815         * lib/unicase/u16-ct-toupper.c: New file.
20816         * modules/unicase/u16-ct-toupper: New file.
20817
20818         New module 'unicase/u8-ct-toupper'.
20819         * lib/unicase/u8-ct-toupper.c: New file.
20820         * modules/unicase/u8-ct-toupper: New file.
20821
20822         Add context arguments to u*_casemap functions.
20823         * lib/unicase/unicasemap.h: Include unicase.h.
20824         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
20825         suffix_context arguments.
20826         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
20827         functions.
20828         (FUNC): Add prefix_context and suffix_context arguments. Use
20829         uc_is_cased and uc_is_case_ignorable.
20830         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
20831         * lib/unicase/u16-casemap.c: Likewise.
20832         * lib/unicase/u32-casemap.c: Likewise.
20833         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
20834         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20835         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
20836         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20837         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
20838         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20839
20840         New module 'unicase/u32-suffix-context'.
20841         * lib/unicase/u32-suffix-context.c: New file.
20842         * modules/unicase/u32-suffix-context: New file.
20843
20844         New module 'unicase/u16-suffix-context'.
20845         * lib/unicase/u16-suffix-context.c: New file.
20846         * modules/unicase/u16-suffix-context: New file.
20847
20848         New module 'unicase/u8-suffix-context'.
20849         * lib/unicase/u8-suffix-context.c: New file.
20850         * lib/unicase/u-suffix-context.h: New file.
20851         * modules/unicase/u8-suffix-context: New file.
20852
20853         New module 'unicase/empty-suffix-context'.
20854         * lib/unicase/empty-suffix-context.c: New file.
20855         * modules/unicase/empty-suffix-context: New file.
20856
20857         New module 'unicase/u32-prefix-context'.
20858         * lib/unicase/u32-prefix-context.c: New file.
20859         * modules/unicase/u32-prefix-context: New file.
20860
20861         New module 'unicase/u16-prefix-context'.
20862         * lib/unicase/u16-prefix-context.c: New file.
20863         * modules/unicase/u16-prefix-context: New file.
20864
20865         New module 'unicase/u8-prefix-context'.
20866         * lib/unicase/u8-prefix-context.c: New file.
20867         * lib/unicase/u-prefix-context.h: New file.
20868         * lib/unicase/context.h: New file.
20869         * modules/unicase/u8-prefix-context: New file.
20870
20871         New module 'unicase/empty-prefix-context'.
20872         * lib/unicase/empty-prefix-context.c: New file.
20873         * modules/unicase/empty-prefix-context: New file.
20874
20875         New module 'unicase/ignorable'.
20876         * lib/unicase/ignorable.c: New file.
20877         * modules/unicase/ignorable: New file.
20878
20879         New module 'unicase/cased'.
20880         * lib/unicase/caseprop.h: New file.
20881         * lib/unicase/cased.c: New file.
20882         * modules/unicase/cased: New file.
20883
20884         New functions for case mapping of substrings.
20885         * lib/unicase.h (casing_prefix_context_t): New type.
20886         (unicase_empty_prefix_context): New variable.
20887         (u8_casing_prefix_context, u16_casing_prefix_context,
20888         u32_casing_prefix_context, u8_casing_prefixes_context,
20889         u16_casing_prefixes_context, u32_casing_prefixes_context): New
20890         declarations.
20891         (casing_suffix_context_t): New type.
20892         (unicase_empty_suffix_context): New variable.
20893         (u8_casing_suffix_context, u16_casing_suffix_context,
20894         u32_casing_suffix_context, u8_casing_suffixes_context,
20895         u16_casing_suffixes_context, u32_casing_suffixes_context,
20896         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
20897         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
20898         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
20899         declarations.
20900
20901 2009-06-28  Jim Meyering  <meyering@redhat.com>
20902
20903         boostrap: indent only with spaces
20904         * build-aux/bootstrap: Indent only with spaces, never TABs.
20905
20906         bootstrap: split long lines
20907         * build-aux/bootstrap: Keep line length < 80.
20908
20909         bootstrap: sync from coreutils
20910         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
20911         just as autoreconf does.  Verify a list of prerequisite
20912         package-name,version-number pairs if defined in bootstrap.conf.
20913         Refer to README-prereq, if prerequisites are not satisfied.
20914
20915 2009-06-27  Eric Blake  <ebb9@byu.net>
20916
20917         tests: add test for bogus NULL definition
20918         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
20919         * tests/test-stdlib.c: Likewise.
20920         * tests/test-string.c: Likewise.
20921         * tests/test-locale.c: Likewise.
20922         * tests/test-unistd.c: Likewise.
20923         * modules/stdio-tests (Depends-on): Add verify.
20924         * modules/stdlib-tests (Depends-on): Likewise.
20925         * modules/string-tests (Depends-on): Likewise.
20926         * modules/locale-tests (Depends-on): Likewise.
20927         * modules/unistd-tests (Depends-on): Likewise.
20928
20929 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
20930
20931         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
20932         self-explaining comment.
20933         * m4/selinux-selinux-h: Update serial.
20934         (gl_LIBSELINUX): New macro, adding a warning for missing development
20935         packages to code extracted from...
20936         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
20937         Add warning for missing development packages here, too.
20938
20939 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
20940
20941         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
20942
20943 2009-06-25  Eric Blake  <ebb9@byu.net>
20944
20945         version-etc: fix regression
20946         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
20947         gcc.
20948         (version_etc): Use it, to catch bugs with trailing NULL.
20949         * lib/version-etc.c (version_etc_arn): Delete unused argument.
20950         (version_etc_va): Fix logic bug.
20951         * modules/version-etc-tests: Add test.
20952         * tests/test-version-etc.c: New file.
20953         * tests/test-version-etc.sh: Likewise.
20954
20955 2009-06-25  Sam Steingold  <sds@gnu.org>
20956
20957         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
20958         mbtowc declaration.
20959
20960 2009-06-25  Eric Blake  <ebb9@byu.net>
20961
20962         fpurge: migrate into <stdio.h>
20963         * lib/fpurge.h: Delete...
20964         * lib/stdio.in.h (fpurge): ...and declare here, instead.
20965         * lib/fpurge.c (fpurge): Change declaring header.
20966         * modules/fpurge (Files): Drop deleted file.
20967         (Depends-on): Add stdio.
20968         (configure.ac): Set witness.
20969         * modules/stdio (Makefile.am): Support fpurge macros.
20970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20971         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
20972         * lib/fflush.c: Update client.
20973         * tests/test-fpurge.c: Likewise.
20974         * NEWS: Mention the change.
20975
20976 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20977
20978         * lib/argp-version-etc.c (program_authors): Add const
20979         qualifier.
20980         * lib/version-etc.c: Fix typos in the comments.
20981         * modules/argp-version-etc: Depends on version-etc.
20982
20983 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20984
20985         argp-version-etc: new module.
20986
20987         * lib/argp-version-etc.c: New file.
20988         * lib/argp-version-etc.h: New file.
20989         * modules/argp-version-etc: New file.
20990         * modules/argp-version-etc-tests: New file.
20991         * tests/test-argp-version-etc.c: New test.
20992         * tests/test-argp-version-etc-1.sh: New test.
20993
20994 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
20995
20996         Provide additional interfaces and documentation for version-etc
20997         module.
20998
20999         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
21000         interfaces.
21001         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
21002         prototypes.
21003
21004 2009-06-24  Bruno Haible  <bruno@clisp.org>
21005
21006         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
21007         HAVE_LIB${NAME} macro.
21008         Reported by Sam Steingold <sds@gnu.org>.
21009
21010 2009-06-23  Simon Josefsson  <simon@josefsson.org>
21011
21012         * modules/hash-tests (test_hash_LDADD): Link to libintl when
21013         needed.
21014
21015 2009-06-21  Bruno Haible  <bruno@clisp.org>
21016
21017         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
21018         work.
21019         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
21020         together with LIB${NAME}, LTLIB${NAME}.
21021         Reported by Sam Steingold <sds@gnu.org>.
21022
21023 2009-06-20  Jim Meyering  <meyering@redhat.com>
21024
21025         tests: make sc_require_test_exit_idiom more generic
21026         * top/maint.mk (Exit_witness_file): New overridable variable.
21027         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
21028         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
21029
21030 2009-06-19  Jim Meyering  <meyering@redhat.com>
21031
21032         hash: reverse order of src/dst parameters in an internal interface
21033         * lib/hash.c (transfer_entries): Reverse order of parameters to
21034         put DST before SRC.  Adjust callers.
21035
21036         tests: test-hash: avoid wholesale duplication
21037         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
21038         Instead, use a loop and add a single conditional.
21039
21040         tests: test-hash: allow seed selection via a command line argument
21041         * tests/test-hash.c (get_seed): New function.
21042         (main): Use it.
21043
21044 2009-06-19  Eric Blake  <ebb9@byu.net>
21045
21046         hash: avoid memory leak on allocation failure
21047         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
21048         failure.  Factor repeated algorithm...
21049         (transfer_entries): ...into new helper routine.
21050         (hash_delete): React to hash_rehash return value.
21051
21052         hash: reduce memory pressure in hash_rehash no-op case
21053         * lib/hash.c (next_prime): Avoid overflow.
21054         (hash_initialize): Factor bucket size computation...
21055         (compute_bucket_size): ...into new helper function.
21056         (hash_rehash): Use new function and open coding to reduce memory
21057         pressure, and avoid a memory leak in USE_OBSTACK code.
21058         Reported by Jim Meyering.
21059
21060 2009-06-18  Eric Blake  <ebb9@byu.net>
21061
21062         hash: make rotation more obvious
21063         * modules/hash (Depends-on): Add bitrotate and stdint.
21064         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
21065         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
21066         (SIZE_MAX): Rely on headers for definition.
21067         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
21068         (raw_hasher): Use rotr_sz.
21069         Suggested by Jim Meyering.
21070
21071         hash: fix memory leak in last patch
21072         * lib/hash.c (hash_rehash): Avoid memory leak.
21073
21074         hash: avoid no-op rehashing
21075         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
21076
21077         hash: provide default callback functions
21078         * lib/hash.c (raw_hasher, raw_comparator): New functions.
21079         (hash_initialize): Use them as defaults.
21080         * tests/test-hash.c (main): Test this.
21081
21082         hash: minor optimization
21083         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
21084         when possible.
21085         (hash_initialize): Document this promise.
21086         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
21087         * tests/test-hash.c (hash_compare_strings): Test this.
21088
21089 2009-06-18  Bruno Haible  <bruno@clisp.org>
21090
21091         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
21092         going to be replaced anyway.
21093
21094 2009-06-18  Bruno Haible  <bruno@clisp.org>
21095
21096         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
21097         in one place.
21098         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
21099         be replaced anyway.
21100
21101 2009-06-18  Eric Blake  <ebb9@byu.net>
21102
21103         hash: check for resize before insertion
21104         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
21105         threshold before insertion, so that a pathological hash_rehash
21106         that fills every bucket can still trigger another rehash.
21107
21108 2009-06-18  Jim Meyering  <meyering@redhat.com>
21109
21110         hash-tests: add a loop around the small tests
21111         * tests/test-hash.c (main): Repeat small tests with selected
21112         small initial table sizes.
21113
21114 2009-06-17  Eric Blake  <ebb9@byu.net>
21115
21116         hash: minor cleanups
21117         * lib/hash.h (hash_entry): Make opaque, by moving...
21118         * lib/hash.c (hash_entry): ...here.
21119         (hash_insert): Clarify restrictions on what can be inserted.
21120         (hash_get_next): Clarify when it is safe to remove an element
21121         during traversal.
21122         (check_tuning): Skip verification when tuning is known safe.
21123         (hash_initialize): Clarify restrictions on tuning.
21124
21125 2009-06-17  Jim Meyering  <jim@meyering.net>
21126         and Eric Blake  <ebb9@byu.net>
21127
21128         hash-tests: new module
21129         * modules/hash-tests: New file.
21130         * tests/test-hash.c: New file.
21131
21132 2009-06-17  Eric Blake  <ebb9@byu.net>
21133
21134         strstr-simple: document new module
21135         * MODULES.html.sh: Document new module.
21136
21137         strstr, strcasestr: replace on platforms with broken memchr
21138         * modules/strstr: Split into...
21139         * modules/strstr-simple: ...new module that does not care about
21140         performance, but does care about glibc bug.
21141         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
21142         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
21143         if platform memchr is broken, per Debian bug 521737.
21144         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
21145         memchr.
21146         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
21147         * doc/posix-functions/strstr.texi (strstr): Document the fix.
21148         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21149         * modules/mountlist (Depends-on): Add strstr-simple.
21150         * modules/gen-uni-tables (Depends-on): Likewise.
21151         * modules/argz (Depends-on): Add strstr.
21152
21153 2009-06-17  Bruno Haible  <bruno@clisp.org>
21154
21155         * modules/posix_spawn-internal (Depends-on): Add errno.
21156
21157 2009-06-17  Bruno Haible  <bruno@clisp.org>
21158
21159         Define missing ESTALE on Interix 3.5.
21160         * lib/errno.in.h (ESTALE): Assign a value if missing.
21161         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
21162         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
21163         missing.
21164         * doc/posix-headers/errno.texi: Mention the Interix bug.
21165         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
21166
21167 2009-06-15  Eric Blake  <ebb9@byu.net>
21168
21169         memchr, memchr2: add valgrind exception
21170         * lib/memchr.valgrind: New file.
21171         * lib/memchr2.valgrind: New file.
21172         * modules/memchr (Files): Distribute valgrind file.
21173         * modules/memchr2 (Files): Likewise.
21174
21175         docs: memchr is no longer obsolete
21176         * MODULES.html.sh: Move memchr from obsolete to string.h section.
21177         * lib/string.in.h (memchr): Simplify logic.
21178
21179 2009-06-14  Jim Meyering  <meyering@redhat.com>
21180
21181         link-follow: fix the "checking..." message to not mention trailing slash
21182         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
21183         never considered trailing slashes.
21184
21185 2009-06-14  Bruno Haible  <bruno@clisp.org>
21186
21187         * m4/memchr.m4: Mention also the bug on IA-64.
21188         * doc/posix-functions/memchr.texi: Likewise.
21189
21190 2009-06-12  Eric Blake  <ebb9@byu.net>
21191
21192         memchr: detect broken x86_64 and alpha implementations
21193         * modules/memchr-tests (Depends-on): Move mmap detection...
21194         * modules/memchr (Depends-on): ...here.
21195         (configure.ac): Set indicator.
21196         * lib/string.in.h (memchr): Declare replacement.
21197         * modules/string (Makefile.am): Trigger replacement.
21198         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
21199         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
21200         bugs.
21201         * doc/posix-functions/memchr.texi (memchr): Document the bug.
21202         * modules/getpagesize (License): Relax license.
21203
21204 2009-06-11  Bruno Haible  <bruno@clisp.org>
21205
21206         * lib/idpriv.h: Add more references.
21207
21208 2009-06-08  Bruno Haible  <bruno@clisp.org>
21209
21210         Tests for module 'idpriv-droptemp'.
21211         * modules/idpriv-droptemp-tests: New file.
21212         * tests/test-idpriv-droptemp.sh: New file.
21213         * tests/test-idpriv-droptemp.su.sh: New file.
21214         * tests/test-idpriv-droptemp.c: New file.
21215
21216         New module 'idpriv-droptemp'.
21217         * lib/idpriv-droptemp.c: New file.
21218         * modules/idpriv-droptemp: New file.
21219
21220 2009-06-08  Bruno Haible  <bruno@clisp.org>
21221
21222         Tests for module 'idpriv-drop'.
21223         * modules/idpriv-drop-tests: New file.
21224         * tests/test-idpriv-drop.sh: New file.
21225         * tests/test-idpriv-drop.su.sh: New file.
21226         * tests/test-idpriv-drop.c: New file.
21227
21228         New module 'idpriv-drop'.
21229         * lib/idpriv.h: New file.
21230         * lib-idpriv-drop.c: New file.
21231         * m4/idpriv.m4: New file.
21232         * modules/idpriv-drop: New file.
21233
21234 2009-06-08  Bruno Haible  <bruno@clisp.org>
21235
21236         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
21237         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21238         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21239         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21240         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21241         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21242         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21243
21244 2009-06-08  Eric Blake  <ebb9@byu.net>
21245
21246         test-strstr: use memory fence, when possible
21247         * tests/test-strstr.c (main): Use memory fence, in order to be
21248         more likely to trigger Debian bug 521737.
21249         * modules/strstr-tests (Files): Pull in additional files.
21250
21251         memchr: no longer obsolete, for wider field testing
21252         * modules/memchr (Status, Notice): Delete, this module is no
21253         longer obsolete.
21254         * modules/vasnprintf (Depends-on): Add memchr.
21255
21256 2009-06-07  Jim Meyering  <meyering@redhat.com>
21257
21258         hash: declare some functions with the warn_unused_result attribute
21259         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
21260
21261 2009-06-07  Bruno Haible  <bruno@clisp.org>
21262
21263         * tests/test-alignof.c: Don't test int64_t if it does not exist.
21264         Reported by Eric Blake.
21265
21266 2009-06-06  Eric Blake  <ebb9@byu.net>
21267
21268         test-alignof: fix typo with long double
21269         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
21270         compiler error.
21271
21272 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
21273
21274         Escape non-texinfo { and }s.
21275         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
21276         markup error.
21277
21278 2009-06-04  Jim Meyering  <meyering@redhat.com>
21279
21280         gitlog-to-changelog: don't infloop on an empty commit log
21281         * build-aux/gitlog-to-changelog: Warn about an empty log message.
21282         Reported by Boris Petersen <transacid@centerim.org>.
21283
21284 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
21285
21286         version-etc: extend for packagers
21287         Add three new configure options, intended for packagers:
21288           --with-packager="packager name"
21289           --with-packager-version="packager-specific version"
21290           --with-packager-bug-reports="packager bug reporting"
21291         An example with coreutils:
21292           $ ./configure \
21293             --with-packager=Gentoo \
21294             --with-packager-bug-report=http://bugs.gentoo.org/ \
21295             --with-packager-version="patchset 1.6"
21296           $ ./src/ls --version | head -n2
21297           ls (GNU coreutils) 7.1-dirty
21298           Packaged by Gentoo (patchset 1.6)
21299         Note that the bug reporting info via --help doesn't show up because
21300         coreutils uses its own custom emit_bug_reporting_address() implementation
21301         in src/system.h.  If it didn't, it'd look like:
21302           $ ./src/ls --help | tail -n4
21303           Report bugs to <bug-coreutils@gnu.org>.
21304           Report Gentoo bugs to <http://bugs.gentoo.org/>.
21305           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
21306           General help using GNU software: <http://www.gnu.org/gethelp/>.
21307         * lib/version-etc.c: Print new information, if provided.
21308         * m4/version-etc.m4: New file.
21309         * modules/version-etc (Files): Add m4/version-etc.m4.
21310         (configure.ac): Add gl_VERSION_ETC.
21311
21312 2009-05-31  Bruno Haible  <bruno@clisp.org>
21313
21314         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
21315         and 'int64_t'.
21316         * modules/alignof-tests (Dependencies): Add stdint.
21317         Reported by Eric Blake.
21318
21319 2009-05-31  Bruno Haible  <bruno@clisp.org>
21320
21321         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
21322         restriction due to compiler bugs.
21323         Reported by Eric Blake.
21324
21325 2009-05-31  Simon Josefsson  <simon@josefsson.org>
21326             Bruno Haible  <bruno@clisp.org>
21327
21328         Fix test-alignof failure.
21329         * lib/alignof.h (alignof_slot): New macro.
21330         (alignof_type): New macro, with the same semantics as the previous
21331         'alignof'.
21332         (alignof): Alias to alignof_slot.
21333         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
21334         check that the results are usable as constant expressions.
21335
21336 2009-05-31  Bruno Haible  <bruno@clisp.org>
21337
21338         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
21339         * tests/test-memchr.c (main): Check that memchr does not read past the
21340         first occurrence of the byte.
21341         * tests/test-strstr.c (main): Update comment.
21342         Suggested by Eric Blake.
21343
21344 2009-05-30  Bruno Haible  <bruno@clisp.org>
21345
21346         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
21347         detail how to use dumpbin.
21348         Reported by David Byron <dbyron@dbyron.com>.
21349
21350 2009-06-02  Simon Josefsson  <simon@josefsson.org>
21351
21352         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
21353
21354 2009-06-02  Simon Josefsson  <simon@josefsson.org>
21355
21356         * m4/manywarnings.m4: Add GCC 4.4 warnings.
21357
21358 2009-05-28  Bruno Haible  <bruno@clisp.org>
21359
21360         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
21361         build-aux/ files.
21362
21363 2009-05-28  Simon Josefsson  <simon@josefsson.org>
21364
21365         * gnulib-tool (func_import): Transform license on build-aux/ files too.
21366
21367 2009-05-27  Simon Josefsson  <simon@josefsson.org>
21368
21369         * gnulib-tool (sed_transform_main_lib_file)
21370         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
21371         regexps.
21372
21373 2009-05-26  Simon Josefsson  <simon@josefsson.org>
21374
21375         * tests/test-strstr.c: Add another self-test.
21376         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
21377         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
21378
21379 2009-05-23  Bruno Haible  <bruno@clisp.org>
21380
21381         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
21382         change.
21383
21384 2009-05-21  Bruno Haible  <bruno@clisp.org>
21385
21386         Simplify use of mode_t varargs.
21387         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
21388         uses 'mode_t' or 'int'.
21389         * lib/openat.c (openat): Likewise.
21390         * lib/open-safer.c (open_safer): Likewise.
21391         * m4/mode_t.m4: New file.
21392         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
21393         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
21394         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
21395         * modules/open (Files): Add m4/mode_t.m4.
21396         * modules/openat (Files): Likewise.
21397         * modules/fcntl-safer (Files): Likewise.
21398         Suggested by Eric Blake.
21399
21400 2009-05-21  Pádraig Brady  <P@draigbrady.com>
21401
21402         * doc/glibc-functions/fallocate.texi: New file.
21403         * doc/gnulib.texi: Include it.
21404
21405 2009-05-21  Eric Blake  <ebb9@byu.net>
21406             Bruno Haible  <bruno@clisp.org>
21407
21408         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
21409         invocations.
21410         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
21411
21412 2009-05-21  Eric Blake  <ebb9@byu.net>
21413             Bruno Haible  <bruno@clisp.org>
21414
21415         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
21416         include_next. Fix of 2008-11-20 commit.
21417         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
21418         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
21419         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
21420         NEXT_MATH_H.
21421         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
21422         instead of NEXT_MATH_H.
21423
21424 2009-05-21  Bruno Haible  <bruno@clisp.org>
21425
21426         Avoid redefinition warnings for SIZE_MAX.
21427         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
21428         Reported by Simon Josefsson.
21429
21430 2009-05-21  Bruno Haible  <bruno@clisp.org>
21431
21432         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
21433         AC_CACHE_VAL.
21434
21435 2009-05-20  Bruno Haible  <bruno@clisp.org>
21436
21437         Make zeroptr.h work on mingw.
21438         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
21439         mprotect.
21440         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
21441         * modules/memchr2-tests (configure.ac): Likewise.
21442         * modules/memcmp-tests (configure.ac): Likewise.
21443         * modules/memmem-tests (configure.ac): Likewise.
21444         * modules/memrchr-tests (configure.ac): Likewise.
21445         Reported by Simon Josefsson.
21446
21447 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21448
21449         * tests/test-glob.c: Include string.h for strcmp prototype.
21450
21451 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21452
21453         * modules/getdelim (Depends-on): Add explicit stdint, although it
21454         was implicitly already pulled in via realloc-posix.
21455         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
21456
21457 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21458
21459         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
21460         G. Christensen" <tgc@jupiterrise.com>.
21461         * m4/sys_socket_h.m4: Check for sa_family_t.
21462         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
21463         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
21464         * tests/test-sys_socket.c: Check that sa_family_t works.
21465
21466 2009-05-18  Eric Blake  <ebb9@byu.net>
21467
21468         maint.mk: allow gnulib_dir in VPATH build
21469         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
21470
21471 2009-05-15  Jim Meyering  <meyering@redhat.com>
21472
21473         maint.mk: Give gnulib_dir a default definition.
21474         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
21475         Thus, most packages no longer need to specify this variable in cfg.mk
21476
21477 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
21478
21479         rename.m4: fix typos that would make non-mingw cross-configure fail
21480         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
21481
21482 2009-05-13  Eric Blake  <ebb9@byu.net>
21483
21484         mmap-anon: avoid out-of-order autoconf expansion
21485         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
21486         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
21487         * modules/memchr-tests (Depends-on): Add extensions.
21488         * modules/memchr2-tests (Depends-on): Add extensions.
21489         * modules/memcmp-tests (Depends-on): Add extensions.
21490         * modules/memmem-tests (Depends-on): Add extensions.
21491         * modules/memrchr-tests (Depends-on): Add extensions.
21492
21493 2009-05-13  Bruno Haible  <bruno@clisp.org>
21494
21495         Make some tests ISO C 99 compliant.
21496         * tests/zerosize-ptr.h: New file.
21497         * tests/test-memchr.c: Include zerosize-ptr.h.
21498         (main): Use a zero-size object pointer instead of NULL.
21499         * tests/test-memchr2.c: Include zerosize-ptr.h.
21500         (main): Use a zero-size object pointer instead of NULL.
21501         * tests/test-memcmp.c: Include zerosize-ptr.h.
21502         (main): Use a zero-size object pointer instead of NULL.
21503         * tests/test-memmem.c: Include zerosize-ptr.h.
21504         (main): Use a zero-size object pointer instead of NULL.
21505         * tests/test-memrchr.c: Include zerosize-ptr.h.
21506         (main): Use a zero-size object pointer instead of NULL.
21507         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
21508         m4/mmap-anon.m4.
21509         (Depends-on): Add getpagesize.
21510         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21511         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
21512         m4/mmap-anon.m4.
21513         (Depends-on): Add getpagesize.
21514         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21515         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
21516         m4/mmap-anon.m4.
21517         (Depends-on): Add getpagesize.
21518         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21519         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
21520         m4/mmap-anon.m4.
21521         (Depends-on): Add getpagesize.
21522         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21523         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
21524         m4/mmap-anon.m4.
21525         (Depends-on): Add getpagesize.
21526         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21527
21528 2009-05-12  Bruno Haible  <bruno@clisp.org>
21529
21530         Tests for module 'alignof'.
21531         * modules/alignof-tests: New file.
21532         * tests/test-alignof.c: New file.
21533
21534 2009-05-12  Bruno Haible  <bruno@clisp.org>
21535
21536         Fix alignof macro.
21537         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
21538         vendor compilers that are always correct.
21539
21540 2009-05-12  Bruno Haible  <bruno@clisp.org>
21541
21542         Make the MAP_ANONYMOUS detection work on HP-UX 11.
21543         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
21544         not whether its fully works.
21545
21546 2009-05-12  Bruno Haible  <bruno@clisp.org>
21547
21548         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
21549
21550 2009-05-12  Jim Meyering  <meyering@redhat.com>
21551
21552         * top/maint.mk: Adjust backslash alignment.
21553
21554 2009-05-11  Simon Josefsson  <simon@josefsson.org>
21555
21556         * top/maint.mk: Make $(srcdir)/build-aux configurable.
21557
21558 2009-05-11  Eric Blake  <ebb9@byu.net>
21559
21560         argp: avoid undefined behavior
21561         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
21562         macros.
21563
21564 2009-05-08  Simon Josefsson  <simon@josefsson.org>
21565
21566         * tests/test-vc-list-files-git.sh: Do git config of user.email and
21567         user.name to prevent git commit from complaining.
21568
21569 2009-05-10  Bruno Haible  <bruno@clisp.org>
21570
21571         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
21572         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
21573         it rewrites every file name only once.
21574         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
21575
21576 2009-05-08  Bruno Haible  <bruno@clisp.org>
21577
21578         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
21579         instead of 'max'.
21580
21581 2009-05-08  Simon Josefsson  <simon@josefsson.org>
21582
21583         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
21584         sockaddr_storage test.
21585
21586 2009-05-07  Simon Josefsson  <simon@josefsson.org>
21587
21588         * modules/sys_socket (Makefile.am): Substitute
21589         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
21590         * m4/sys_socket_h.m4: Check for sockaddr_storage.
21591         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
21592         * tests/test-sys_socket.c: Check sockaddr_storage.
21593
21594 2009-05-08  Bruno Haible  <bruno@clisp.org>
21595
21596         New module 'alignof'.
21597         * lib/alignof.h: New file.
21598         * modules/alignof: New file.
21599
21600 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21601             Bruno Haible  <bruno@clisp.org>
21602
21603         Fix test-file-has-acl on FreeBSD.
21604         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
21605         mask is implicitly added.
21606         * tests/test-file-has-acl.c: Include <signal.h>.
21607         (main): Terminate the test after 5 seconds.
21608         * modules/acl-tests (configure.ac): Check for alarm function.
21609
21610 2009-05-04  Bruno Haible  <bruno@clisp.org>
21611
21612         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
21613         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
21614         * modules/errno (configure.ac): Drop AC_REQUIRE.
21615         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
21616         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
21617
21618 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21619
21620         * modules/glob-tests: New module.
21621         * tests/test-glob.c: Add.
21622
21623 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21624
21625         * modules/fnmatch-tests: New module.
21626         * tests/test-fnmatch.c: Add.
21627
21628 2009-05-04  Eric Blake  <ebb9@byu.net>
21629
21630         maint: make the new no-submodule-changes rule VPATH-safe
21631         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
21632
21633 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21634             Bruno Haible  <bruno@clisp.org>
21635
21636         acl: Fix infinite loop on FreeBSD.
21637         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
21638         of return value from acl_get_entry.
21639         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
21640         Likewise.
21641
21642 2009-05-03  Bruno Haible  <bruno@clisp.org>
21643
21644         * lib/acl-internal.h (acl_entries): Clarify return value.
21645         * lib/acl_entries.c (acl_entries): Likewise.
21646
21647 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21648
21649         Bug fix in acl module.
21650         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
21651
21652 2009-05-03  Bruno Haible  <bruno@clisp.org>
21653
21654         Create gperf-generated file in the source dir, not in the build dir.
21655         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
21656         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
21657         * modules/unicase/locale-language (unicase/locale-languages.h):
21658         Likewise.
21659         * modules/unicase/special-casing (unicase/special-casing-table.h):
21660         Likewise.
21661         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
21662         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
21663         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
21664         Reported by Ralf Wildenhues.
21665
21666 2009-05-03  Bruno Haible  <bruno@clisp.org>
21667
21668         * modules/fnmatch (Description, configure.ac): Taken from
21669         fnmatch-posix.
21670         * modules/fnmatch-posix: Turn into a symbolic reference to the
21671         'fnmatch' module, and deprecate.
21672         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
21673
21674 2009-05-03  Bruno Haible  <bruno@clisp.org>
21675
21676         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
21677         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
21678         Reported by Ralf Wildenhues.
21679
21680 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21681
21682         * m4/fnmatch.m4: Fix fnmatch re-define.
21683
21684 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21685
21686         priv-set: new module and tests; adapt write-any-file
21687         * lib/priv-set.c: New file.
21688         * lib/priv-set.h: New file.
21689         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
21690         * lib/write-any-file.c: Simplify by using priv-set module.
21691         * m4/priv-set.m4: New file.
21692         * modules/priv-set: New file.
21693         * modules/unlinkdir: Add dependency on priv-set module.
21694         * modules/write-any-file: Likewise.
21695
21696         Tests for module 'priv-set'.
21697         * modules/priv-set-tests: New file.
21698         * tests/test-priv-set.c: New file.
21699
21700 2009-05-03  Jim Meyering  <meyering@redhat.com>
21701             Bruno Haible  <bruno@clisp.org>
21702
21703         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
21704         use the converted UTF-8 variant of the name instead.
21705
21706 2009-05-03  Jim Meyering  <meyering@redhat.com>
21707
21708         tests: tighten some getdate tests
21709         * tests/test-getdate.c (main): Tighten tests: require equality,
21710         not just greater than.  Set TZ envvar to UTC0.
21711
21712 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
21713
21714         getdate: correctly interpret "next monday" when run on a Monday
21715         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
21716         that e.g., "next tues" (when run on a tuesday) results in a date
21717         that is one week in the future, and not today's date.
21718         I.e., add a week when the wday is the same as the current one.
21719         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
21720         and earlier by Martin Bernreuther and Jan Minář.
21721         * tests/test-getdate.c (main): Check that "next DAY" is always in
21722         the future and that "last DAY" is always in the past.
21723
21724 2009-05-02  Jim Meyering  <meyering@redhat.com>
21725
21726         build: ensure that a release build fails when a submodule is unclean
21727         * top/maint.mk (no-submodule-changes): New rule.
21728         (alpha beta major): Depend on it.
21729
21730 2009-05-02  Bruno Haible  <bruno@clisp.org>
21731
21732         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
21733         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
21734         shell variable gl_fnmatch_required to detect which variant is
21735         requested.
21736         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
21737         gl_FUNC_FNMATCH_POSIX.
21738         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
21739         exclude fnmatch-posix.
21740
21741 2009-05-02  Bruno Haible  <bruno@clisp.org>
21742
21743         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
21744         * modules/mbsrtowcs (License): Change to LGPLv2+.
21745         * modules/strnlen1 (License): Likewise.
21746         Reported by Simon Josefsson.
21747
21748 2009-05-02  Bruno Haible  <bruno@clisp.org>
21749
21750         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
21751         "cross".
21752         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
21753         gnulib-tool was called with option --source-base=lib.
21754
21755 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21756
21757         Use automake *-local hooks without commands, for extensibility.
21758         * modules/localcharset (Makefile.am): Rename install-exec-local
21759         rule to install-exec-localcharset, and make it a prerequisite of
21760         install-exec-local.  Likewise, rename the uninstall-local rule to
21761         uninstall-localcharset, and make it a prerequisite of the former.
21762
21763 2009-05-01  Bruno Haible  <bruno@clisp.org>
21764
21765         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
21766         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
21767         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
21768         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
21769         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
21770         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
21771         m4/locale-zh.m4, m4/codeset.m4.
21772
21773         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
21774         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
21775         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
21776         m4/locale-zh.m4.
21777
21778         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
21779         REPLACE_WCRTOMB if mbstate_t must be replaced.
21780         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
21781         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
21782
21783 2009-05-01  Bruno Haible  <bruno@clisp.org>
21784
21785         Avoid compiler warnings when redefining macros defined by <libintl.h>.
21786         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
21787         dngettext, dcngettext, textdomain, bindtextdomain,
21788         bind_textdomain_codeset): Undefine before redefining.
21789
21790 2009-04-30  Bruno Haible  <bruno@clisp.org>
21791
21792         Fix bug introduced on 2009-04-25.
21793         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
21794         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
21795         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
21796         is defined.
21797         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
21798         is defined.
21799         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
21800         is defined.
21801         Reported by Elbert_Pol <elbert.pol@gmail.com>.
21802
21803 2009-04-28  Bruno Haible  <bruno@clisp.org>
21804
21805         Comment tweaks.
21806         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
21807         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
21808         * lib/unicase.h (u*_casexfrm): Likewise.
21809         Reported by Paolo Bonzini.
21810
21811 2009-04-28  Bruno Haible  <bruno@clisp.org>
21812
21813         Fix a compilation error.
21814         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
21815         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21816         Reported by Jim Meyering.
21817
21818 2009-04-27  Bruno Haible  <bruno@clisp.org>
21819
21820         New module 'libunistring'.
21821         * modules/libunistring: New file.
21822         * m4/libunistring.m4: New file.
21823         * MODULES.html.sh (Unicode string functions): Add it.
21824
21825 2009-04-27  Eric Blake  <ebb9@byu.net>
21826
21827         maint.mk: allow package-specific header to provide <config.h>
21828         * top/maint.mk (sc_require_config_h): New variable.
21829         (sc_require_config_h, sc_require_config_h_first): Use it.
21830
21831 2009-04-27  Simon Josefsson  <simon@josefsson.org>
21832
21833         * top/maint.mk (sc_avoid_if_before_free): Except
21834         useless-if-before-free script.
21835
21836 2009-04-27  Eric Blake  <ebb9@byu.net>
21837
21838         maintainer-makefile: depend on all required helper scripts
21839         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
21840         useless-if-before-free.
21841         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
21842         version, rather than assuming gnulib checkout is available.
21843         Reported by Simen Josefsson.
21844
21845 2009-04-26  Bruno Haible  <bruno@clisp.org>
21846
21847         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
21848         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
21849         "../" or "..".
21850
21851 2009-04-26  Bruno Haible  <bruno@clisp.org>
21852
21853         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
21854         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
21855         AC_LIB_HAVE_LINKFLAGS.
21856
21857 2009-04-26  Bruno Haible  <bruno@clisp.org>
21858
21859         Simplify calling convention of u*_conv_from_encoding.
21860         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
21861         u32_conv_from_encoding): Expect a resultbuf argument and return the
21862         result directly as a pointer.
21863         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
21864         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
21865         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
21866         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
21867         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
21868         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
21869         Update.
21870         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
21871         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
21872         * lib/vasnprintf.c (VASNPRINTF): Update.
21873         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
21874         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
21875         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
21876         * NEWS: Mention the change.
21877
21878 2009-04-26  Bruno Haible  <bruno@clisp.org>
21879
21880         Simplify calling convention of u*_conv_to_encoding.
21881         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
21882         u32_conv_to_encoding): Expect a resultbuf argument and return the
21883         result directly as a pointer.
21884         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
21885         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
21886         freeing scaled_offsets if mem_iconveha failed.
21887         * lib/unicase/u-casexfrm.h (FUNC): Update.
21888         * lib/uninorm/u-normxfrm.h (FUNC): Update.
21889         * lib/vasnprintf.c (VASNPRINTF): Update.
21890         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
21891         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
21892         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
21893         * NEWS: Mention the change.
21894
21895 2009-04-26  Bruno Haible  <bruno@clisp.org>
21896
21897         Avoid test failures on AIX and OSF/1.
21898         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
21899         malloc(0).
21900         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
21901         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
21902         Likewise.
21903         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
21904         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
21905         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
21906         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
21907         * doc/posix-functions/malloc.texi: Document the portability problem
21908         related to malloc(0).
21909
21910 2009-04-26  Bruno Haible  <bruno@clisp.org>
21911
21912         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
21913         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
21914         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
21915
21916 2009-04-25  Bruno Haible  <bruno@clisp.org>
21917
21918         Avoid link error when creating a namespace clean library.
21919         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
21920         as macro with arguments if already defined as an alias.
21921         * lib/signbitf.c (gl_signbitf): Don't undefine.
21922         * lib/signbitd.c (gl_signbitd): Don't undefine.
21923         * lib/signbitl.c (gl_signbitl): Don't undefine.
21924
21925 2009-04-25  Jim Meyering  <meyering@redhat.com>
21926
21927         vc-list-files: fix another quoting bug
21928         * build-aux/vc-list-files: Avoid sed backslash expansion
21929         of pathological directory names.
21930
21931 2009-04-25  Eric Blake  <ebb9@byu.net>
21932
21933         vc-list-files: fix shell quoting error
21934         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
21935         timestamp.
21936
21937 2009-04-25  Jim Meyering  <meyering@redhat.com>
21938
21939         vc-list-files: restore lost functionality with subdir argument
21940         * build-aux/vc-list-files: When given a non-"." sub-directory
21941         argument, substitute the $dir/ prefix back onto each resulting name.
21942         Otherwise, coreutils' root_tests check would fail.
21943
21944 2009-04-24  Eric Blake  <ebb9@byu.net>
21945
21946         vc-list-files: ignore git symlinks
21947         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
21948         than ls-files, to ignore git symlinks.
21949
21950         maint.mk: import improvements from m4
21951         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
21952         (move_if_change): Delete unused macro.
21953         (news-date-check, vc-diff-check): Support VPATH builds.
21954         (announcement): Likewise.  Split --bootstrap-tools list...
21955         (boostrap-tools): ...into separate list, which can be overridden
21956         in cfg.mk.
21957         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
21958         requiring dependency on useless-if-before-free module.
21959         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
21960         Support VPATH builds.
21961
21962 2009-04-24  Jim Meyering  <meyering@redhat.com>
21963
21964         maint.mk: remove coreutils-specific rules and variables
21965         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
21966         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
21967         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
21968
21969         maint.mk: remove obsolete rule
21970         * top/maint.mk (rel-check): Remove rule.
21971         (WGET, WGETFLAGS): Remove now-unused variables.
21972
21973 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21974
21975         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
21976         consistency.
21977
21978         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
21979         '$(PATH_SEPARATOR)' instead of ':'.
21980
21981 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21982
21983         * lib/getopt1.c (main): Use 'const' for static array.
21984
21985 2009-04-24  Simon Josefsson  <simon@josefsson.org>
21986
21987         * top/maint.mk: Sync with coreutils.
21988         * NEWS: Explain incompatibilities.
21989
21990 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21991             Bruno Haible  <bruno@clisp.org>
21992
21993         Fix cross-compilation results.
21994         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
21995         statement, as third argument of AC_TRY_RUN.
21996         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21997         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
21998         Likewise.
21999         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22000         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22001         Likewise.
22002         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22003         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
22004         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
22005
22006 2009-04-20  Bruno Haible  <bruno@clisp.org>
22007
22008         Avoid test failure on mingw.
22009         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
22010
22011 2009-04-20  Bruno Haible  <bruno@clisp.org>
22012
22013         Avoid compilation error on mingw.
22014         * modules/localename-tests (Depends-on): Add locale.
22015
22016 2009-04-19  Bruno Haible  <bruno@clisp.org>
22017
22018         Support for building a shared library on Windows platforms.
22019         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
22020         (main): Test the presence of UNINORM_NFC here.
22021         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
22022         (main): Test the presence of UNINORM_NFD here.
22023         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
22024         (main): Test the presence of UNINORM_NFKC here.
22025         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
22026         (main): Test the presence of UNINORM_NFKD here.
22027
22028 2009-04-19  Bruno Haible  <bruno@clisp.org>
22029
22030         Avoid a compiler warning.
22031         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
22032         Change type of variable 'sequence'.
22033
22034 2009-04-19  Bruno Haible  <bruno@clisp.org>
22035
22036         * modules/configmake (Makefile.am): When the contents of configmake.h
22037         does not change, arrange to preserve its modification time.
22038
22039 2009-04-17  Simon Josefsson  <simon@josefsson.org>
22040
22041         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
22042         gettext domain.
22043
22044 2009-04-16  Jim Meyering  <meyering@redhat.com>
22045
22046         useless-if-before-free: improve conversion code
22047         * build-aux/useless-if-before-free: Adjust code-in-comment to match
22048         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
22049
22050 2009-04-14  Bruno Haible  <bruno@clisp.org>
22051
22052         * modules/fcntl (Depends-on): Add extensions.
22053         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
22054
22055 2009-04-12  Ben Pfaff  <blp@gnu.org>
22056
22057         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
22058         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
22059
22060 2009-03-20  Ben Pfaff  <blp@gnu.org>
22061
22062         Make rename replace existing destinations on Windows.
22063         * m4/rename.m4: Add test for Mingw.
22064         * lib/rename.c: Add rename replacement that uses MoveFileEx with
22065         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
22066         * doc/posix-functions/rename.texi: Document.
22067
22068 2009-04-10  Bruno Haible  <bruno@clisp.org>
22069
22070         New include file "iconveh.h".
22071         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
22072         * lib/striconveh.h: Include it.
22073         (enum iconv_ilseq_handler): Remove definition.
22074         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
22075         striconveh.h.
22076         * lib/striconveha.c: Include striconveh.h.
22077         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
22078         * modules/striconveh (Files): Add lib/iconveh.h.
22079         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
22080         lib/striconveh.h.
22081
22082 2009-04-10  Bruno Haible  <bruno@clisp.org>
22083
22084         * lib/uniconv.h: Update comment.
22085
22086 2009-04-10  Bruno Haible  <bruno@clisp.org>
22087
22088         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
22089         always.
22090         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
22091         * lib/unistr/u16-mbtouc-aux.c: Likewise.
22092         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
22093         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
22094         "unistring-notinline.h", so that the function gets defined always.
22095         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
22096         * lib/unistr/u8-uctomb.c: Likewise.
22097         * lib/unistr/u16-mbtouc.c: Likewise.
22098         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
22099         * lib/unistr/u16-uctomb.c: Likewise.
22100         * lib/unistr/u32-mbtouc.c: Likewise.
22101         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
22102         * lib/unistr/u32-uctomb.c: Likewise.
22103
22104 2009-04-10  Bruno Haible  <bruno@clisp.org>
22105
22106         Mark 'utime' obsolete.
22107         * modules/utime (Status, Notice): New sections.
22108         Suggested by Jim Meyering.
22109
22110         Fix cross-compile guess for utime test.
22111         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
22112         autoconf.
22113         * doc/posix-functions/utime.texi: Give more precisions.
22114         Reported by Jan <ipif@ymail.com>.
22115
22116 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
22117
22118         filevercmp: correct today's change
22119         * lib/filevercmp.c: Also handle coreutils' test inputs.
22120         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
22121
22122         Fix regression in 'filevercmp' module. Thanks Sven Joachim
22123         for reporting it.
22124         * lib/filevercmp.c: Special handle for "", "." and "..".
22125         * tests/test-filevercmp.c: Enlarge the set suite.
22126
22127 2009-04-07  Jim Meyering  <meyering@redhat.com>
22128
22129         useless-if-before-free: show how to remove braced useless free, too
22130         * build-aux/useless-if-before-free: still only in a comment, though.
22131
22132 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
22133
22134         maint.mk: import changes to syntax-check macros from coreutils
22135         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
22136         Use them in the relevant macros.
22137
22138 2009-04-06  Bruno Haible  <bruno@clisp.org>
22139
22140         Fix unportable use of bit-fields.
22141         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
22142         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
22143         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
22144
22145 2009-04-06  Bruno Haible  <bruno@clisp.org>
22146
22147         Avoid test failures on AIX and OSF/1.
22148         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
22149         that malloc(0) = NULL.
22150         * tests/unicase/test-u8-tolower.c (check): Likewise.
22151         * tests/unicase/test-u8-totitle.c (check): Likewise.
22152         * tests/unicase/test-u8-toupper.c (check): Likewise.
22153         * tests/unicase/test-u16-casefold.c (check): Likewise.
22154         * tests/unicase/test-u16-tolower.c (check): Likewise.
22155         * tests/unicase/test-u16-totitle.c (check): Likewise.
22156         * tests/unicase/test-u16-toupper.c (check): Likewise.
22157         * tests/unicase/test-u32-casefold.c (check): Likewise.
22158         * tests/unicase/test-u32-tolower.c (check): Likewise.
22159         * tests/unicase/test-u32-totitle.c (check): Likewise.
22160         * tests/unicase/test-u32-toupper.c (check): Likewise.
22161         * tests/uninorm/test-u8-nfc.c (check): Likewise.
22162         * tests/uninorm/test-u8-nfd.c (check): Likewise.
22163         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
22164         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
22165         * tests/uninorm/test-u16-nfc.c (check): Likewise.
22166         * tests/uninorm/test-u16-nfd.c (check): Likewise.
22167         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
22168         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
22169         * tests/uninorm/test-u32-nfc.c (check): Likewise.
22170         * tests/uninorm/test-u32-nfd.c (check): Likewise.
22171         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
22172         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
22173
22174 2009-04-05  Bruno Haible  <bruno@clisp.org>
22175
22176         Work around an autoconf limitation.
22177         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
22178         comment line if it would be longer than 3 KB.
22179
22180 2009-04-05  Bruno Haible  <bruno@clisp.org>
22181
22182         Avoid test failure with libiconv-1.13.
22183         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
22184         of the expected test results.
22185
22186 2009-04-05  Bruno Haible  <bruno@clisp.org>
22187
22188         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
22189         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
22190         that it should be installed.
22191
22192 2009-04-05  Bruno Haible  <bruno@clisp.org>
22193
22194         * gnulib-tool: New option --copy-file.
22195         (func_usage): Document it.
22196         (func_dest_tmpfilename): Moved out of func_import.
22197         (func_add_file, func_update_file): New functions, extracted from
22198         func_import.
22199         (func_import): Update.
22200
22201 2009-04-05  Karl Berry  <karl@gnu.org>
22202
22203         * README: prominently mention gnulib-tool.
22204         Rearrange sections so getting the code is near the top.
22205
22206 2009-04-05  Bruno Haible  <bruno@clisp.org>
22207
22208         * lib/unicase.h: Mention u*_cmp2.
22209         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
22210         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
22211         * lib/unicase/ulc-casecmp.c: Likewise.
22212         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
22213         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
22214         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
22215         unistr/u8-cmp.
22216         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
22217         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
22218         unistr/u16-cmp.
22219         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
22220         unistr/u32-cmp.
22221
22222         * lib/uninorm.h: Mention u*_cmp2.
22223         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
22224         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
22225         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
22226         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
22227         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
22228         unistr/u8-cmp.
22229         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
22230         unistr/u16-cmp.
22231         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
22232         unistr/u32-cmp.
22233
22234         New module 'unistr/u32-cmp2'.
22235         * lib/unistr/u32-cmp2.c: New file.
22236         * modules/unistr/u32-cmp2: New file.
22237
22238         New module 'unistr/u16-cmp2'.
22239         * lib/unistr/u16-cmp2.c: New file.
22240         * modules/unistr/u16-cmp2: New file.
22241
22242         New module 'unistr/u8-cmp2'.
22243         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
22244         * lib/unistr/u8-cmp2.c: New file.
22245         * lib/unistr/u-cmp2.h: New file.
22246         * modules/unistr/u8-cmp2: New file.
22247
22248 2009-04-05  Bruno Haible  <bruno@clisp.org>
22249
22250         * lib/unictype.h (uc_property_is_valid): New macro.
22251         * tests/unictype/test-pr_byname.c (main): Use it.
22252
22253         * lib/unistr.h: Doc fixes.
22254         * lib/uniconv.h: Doc fixes.
22255         * lib/unictype.h: Doc fixes.
22256
22257 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
22258
22259         Port coreutils 7.2 to Solaris 8.
22260
22261         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
22262         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
22263         for Solaris 8.  This is a bit of a hack, as it means it's the
22264         caller's responsibility to add -lnsl if needed, but most likely it
22265         won't be needed since only getaddrinfo uses this and getaddrinfo
22266         isn't needed on Solaris 8.
22267
22268         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
22269         problem to Solaris 8 encountered with coreutils 7.2, which
22270         resulted in a message "fnmatch.c:292: warning: passing argument 4
22271         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
22272         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
22273
22274 2009-04-03  Simon Josefsson  <simon@josefsson.org>
22275
22276         * m4/ld-version-script.m4: Add FIXME comment.
22277
22278 2009-04-02  Simon Josefsson  <simon@josefsson.org>
22279
22280         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
22281         SOVERSION variable.
22282
22283 2009-04-02  Bruno Haible  <bruno@clisp.org>
22284
22285         * Makefile (info, html, dvi, pdf): Combine the rules.
22286         Suggested by Jim Meyering.
22287
22288 2009-04-01  Bruno Haible  <bruno@clisp.org>
22289
22290         * Makefile (info, html, dvi, pdf): New targets.
22291         Reported by Reuben Thomas <rrt@sc3d.org>.
22292
22293 2009-04-01  Bruno Haible  <bruno@clisp.org>
22294
22295         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
22296         can be put into PATH.
22297         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
22298
22299 2009-04-01  Bruno Haible  <bruno@clisp.org>
22300
22301         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
22302
22303 2009-04-01  Bruno Haible  <bruno@clisp.org>
22304
22305         Rename module 'visibility'.
22306         * modules/lib-symbol-visibility: Renamed from modules/visibility.
22307         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
22308         * doc/gnulib.texi: Update.
22309         * MODULES.html.sh (Misc): Update.
22310         * NEWS: Mention the change.
22311
22312 2009-04-01  Simon Josefsson  <simon@josefsson.org>
22313
22314         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
22315         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
22316         Eric Blake <ebb9@byu.net> for review.
22317         * MODULES.html.sh: Add lib-msvc-compat.
22318         * doc/gnulib.texi: Link to new section.
22319         * m4/ld-output-def.m4: New file.
22320         * doc/ld-output-def.texi: New file.
22321
22322 2009-04-01  Simon Josefsson  <simon@josefsson.org>
22323
22324         Rename ld-version-script to lib-symbol-versions.  Suggested by
22325         Bruno Haible <bruno@clisp.org>.
22326         * modules/ld-version-script: Renamed to lib-symbol-versions.
22327         * doc/ld-version-script.texi: Fix module name.
22328         * MODULES.html.sh: Add lib-symbol-versions.
22329
22330 2009-03-31  Simon Josefsson  <simon@josefsson.org>
22331
22332         * modules/u64-tests: New file.
22333         * tests/test-u64.c: New file.
22334
22335 2009-03-04  Simon Josefsson  <simon@josefsson.org>
22336
22337         * MODULES.html.sh: Mention u64.
22338         * modules/u64: New module.
22339         * modules/crypto/sha512: Depend on u64 module instead of providing
22340         u64.h.
22341
22342 2009-03-27  Eric Blake  <ebb9@byu.net>
22343
22344         test-strerror: make debugging EAI_SYSTEM easier
22345         * modules/getaddrinfo-tests (Depends-on): Add strerror.
22346         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
22347         failure was EAI_SYSTEM.
22348
22349 2009-03-25  Bruno Haible  <bruno@clisp.org>
22350
22351         Fix a problem with --enable-relocatable on Solaris 7.
22352         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
22353         since 2008-02-24.
22354
22355 2009-03-25  Eric Blake  <ebb9@byu.net>
22356
22357         test-sockets: avoid gcc warning
22358         * tests/test-sockets.c (main): Silence compiler warning.
22359
22360 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
22361
22362         New modules nproc, pthread, contributed by Glen Lenker.
22363
22364         * MODULES.html.sh: Add pthread, nproc.
22365         * lib/nproc.c: New file.
22366         * lib/nproc.h: New file.
22367         * lib/pthread.in.h: New file.
22368         * m4/pthread.m4: New file.
22369         * modules/nproc: New file.
22370         * modules/pthread: New file.
22371
22372 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22373
22374         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
22375         New variable.
22376
22377 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
22378
22379         filevercmp: handle simple~ and numbered.~3~ backup suffixes
22380         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
22381         * tests/test-filevercmp.c: Add tests for backup suffixes.
22382
22383 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22384
22385         * modules/stdlib (Depends-on): Add stdint, needed when defining
22386         struct random_data on, for example, HP-UX 10.20.  Reported by
22387         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22388
22389 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22390
22391         * lib/readline.c (readline): Call fflush on stdout after printing
22392         prompt.
22393
22394 2009-03-20  Bruno Haible  <bruno@clisp.org>
22395
22396         Remove dependency from 'close' module to -lws2_32 on native Windows.
22397         * lib/close-hook.h: New file.
22398         * lib/close-hook.c: New file.
22399         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
22400         w32sock.h.
22401         (_gl_close_fd_maybe_socket): Remove function.
22402         (rpl_close): Invoke execute_all_close_hooks instead of
22403         _gl_close_fd_maybe_socket.
22404         * lib/sockets.c: Include close-hook.h, w32sock.h.
22405         (close_fd_maybe_socket): New function, essentially from lib/close.c.
22406         (close_sockets_hook): New variable.
22407         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
22408         (gl_sockets_cleanup): Unregister it.
22409         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
22410         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
22411         * modules/close-hook: New file.
22412         * modules/close (Files): Remove lib/w32sock.h.
22413         (Depends-on): Add close-hook.
22414         (Link): Remove section.
22415         * modules/sockets (Files): Add lib/w32sock.h.
22416         (Depends-on): Add close-hook.
22417         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
22418         invocation.
22419         * NEWS: Mention that LIB_CLOSE is gone.
22420
22421 2009-03-23  Eric Blake  <ebb9@byu.net>
22422
22423         signal-tests: test previous patch
22424         * tests/test-signal.c: New file.
22425         * modules/signal-tests: Likewise.
22426
22427         signal.h: always support 'volatile sig_atomic_t'
22428         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
22429         (gl_SIGNAL_H_DEFAULTS): Add a default.
22430         * modules/signal (Makefile.am): Substitute if needed.
22431         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
22432         users can blindly add volatile.
22433         * doc/posix-headers/signal.texi (signal.h): Document it.
22434         Reported by Matthew Woehlke.
22435
22436 2009-03-23  Jim Meyering  <meyering@redhat.com>
22437
22438         pathmax: PATH_MAX: use pathconf only when available
22439         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
22440         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
22441         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
22442         This avoids a link failure in a PSP cross-compilation environment
22443         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
22444
22445         * lib/vasnprintf.c (divide): Fix typo in comment.
22446
22447 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22448
22449         * gnulib-tool (func_filter_filelist): Fix comment.
22450
22451 2009-03-20  Bruno Haible  <bruno@clisp.org>
22452
22453         Make sockets.h self-contained.
22454         * lib/sockets.c: Include sockets.h first.
22455         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
22456
22457 2009-03-19  Eric Blake  <ebb9@byu.net>
22458
22459         doc: mention more functions added in cygwin 1.7.0
22460         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
22461         addition.
22462         * doc/posix-functions/log2f.texi: Likewise.
22463
22464 2009-03-19  Jim Meyering  <meyering@redhat.com>
22465
22466         fsusage: avoid syntax error due to statement-before-declaration
22467         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
22468         after all declarations.  Reported by Matthew Woehlke in
22469         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
22470
22471 2009-03-18  Eric Blake  <ebb9@byu.net>
22472
22473         build-aux/compile: sync from automake
22474         * build-aux/compile: New file, from automake.
22475         * config/srclist.txt: Mention build-aux/compile.
22476
22477 2009-03-17  Bruno Haible  <bruno@clisp.org>
22478
22479         * lib/git-merge-changelog.c: Fix typo in comment.
22480         Reported by Reuben Thomas <rrt@sc3d.org>.
22481
22482 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
22483
22484         * m4/regex.m4: update and improve help for
22485         --without-included-regex.
22486
22487 2009-03-17  Simon Josefsson  <simon@josefsson.org>
22488
22489         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
22490         failure on missing include files.
22491
22492 2009-03-17  Eric Blake  <ebb9@byu.net>
22493
22494         doc: mention more functions added in cygwin 1.7.0
22495         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
22496         addition.
22497         * doc/posix-functions/fwscanf.texi: Likewise.
22498         * doc/posix-functions/swprintf.texi: Likewise.
22499         * doc/posix-functions/swscanf.texi: Likewise.
22500         * doc/posix-functions/vfwprintf.texi: Likewise.
22501         * doc/posix-functions/vfwscanf.texi: Likewise.
22502         * doc/posix-functions/vswprintf.texi: Likewise.
22503         * doc/posix-functions/vswscanf.texi: Likewise.
22504         * doc/posix-functions/vwprintf.texi: Likewise.
22505         * doc/posix-functions/vwscanf.texi: Likewise.
22506         * doc/posix-functions/wcscasecmp.texi: Likewise.
22507         * doc/posix-functions/wcsdup.texi: Likewise.
22508         * doc/posix-functions/wcsftime.texi: Likewise.
22509         * doc/posix-functions/wcsncasecmp.texi: Likewise.
22510         * doc/posix-functions/wprintf.texi: Likewise.
22511         * doc/posix-functions/wscanf.texi: Likewise.
22512         * doc/glibc-functions/gethostbyname2.texi: Likewise.
22513
22514 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22515
22516         maint.mk: really add $(AM_MAKEFLAGS)
22517         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
22518         was inadvertently omitted in the last commit.
22519         Spotted by Bruno Haible.
22520
22521         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
22522         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
22523         $(AM_MAKEFLAGS)' rather than plain `make'.
22524
22525         gnulib-tool: execute $MAKE not make
22526         * gnulib-tool: Default $MAKE to 'make'.
22527         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
22528         than make.  Initialize $MAKE in the do-autobuild script.
22529
22530         gnulib-tool: use $MAKE not make in generated files
22531         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
22532         make, in generated files.  Initialize $MAKE in the do-autobuild
22533         script.
22534
22535         * top/GNUmakefile (_have-git-version-gen): Fix typo.
22536
22537         GNUmakefile: disable parallelism only for multiple, recursive targets
22538         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
22539         additions in the Makefile.
22540         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
22541         by Automake.
22542         (.NOTPARALLEL): Only disable parallel builds if multiple targets
22543         are listed on the command line and at least one of them is
22544         listed in $(ALL_RECURSIVE_TARGETS).
22545
22546 2009-03-14  Bruno Haible  <bruno@clisp.org>
22547
22548         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
22549         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
22550         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
22551         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
22552         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
22553         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
22554         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
22555         unistr/u8-uctomb.
22556         * modules/unistr/u8-strchr (Depends-on): Likewise.
22557         * modules/unistr/u8-strrchr (Depends-on): Likewise.
22558         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
22559         unistr/u16-uctomb.
22560         * modules/unistr/u16-strchr (Depends-on): Likewise.
22561         * modules/unistr/u16-strrchr (Depends-on): Likewise.
22562
22563 2009-03-12  Bruno Haible  <bruno@clisp.org>
22564
22565         Work around select() bug on Interix 3.5.
22566         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
22567         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
22568         * m4/select.m4: New file.
22569         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
22570         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
22571         * modules/select (Files): Add m4/select.m4.
22572         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
22573         * modules/nanosleep (Depends-on): Add select.
22574         * modules/poll (Depends-on): Likewise.
22575         * doc/posix-functions/select.texi: Mention the Interix bug.
22576         Reported by Markus Duft <mduft@gentoo.org>.
22577
22578         * lib/select.c: Renamed from lib/winsock-select.c.
22579         * modules/select (Files): Add lib/select.c, remove
22580         lib/winsock-select.c.
22581         (configure.ac): Update.
22582
22583 2009-03-12  Jim Meyering  <meyering@redhat.com>
22584
22585         avoid gcc warnings about unused macro definitions
22586         * lib/readtokens.c (STREQ): Remove unused definition.
22587         * lib/xmalloc.c (SIZE_MAX): Likewise.
22588         * lib/openat-die.c (N_): Likewise.
22589         * lib/mountlist.c (SIZE_MAX): Remove definition.
22590         Instead, include <stdint.h>.
22591         * lib/readutmp.c: Likewise.
22592         * modules/readutmp (Depends-on): Add stdint.
22593         * modules/mountlist (Depends-on): Add stdint.
22594         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
22595
22596 2009-03-10  Bruno Haible  <bruno@clisp.org>
22597
22598         Tests for module 'mbmemcasecoll'.
22599         * modules/mbmemcasecoll-tests: New file.
22600         * tests/test-mbmemcasecoll1.sh: New file.
22601         * tests/test-mbmemcasecoll2.sh: New file.
22602         * tests/test-mbmemcasecoll3.sh: New file.
22603         * tests/test-mbmemcasecoll.c: New file.
22604
22605         New module 'mbmemcasecoll'.
22606         * lib/mbmemcasecoll.h: New file.
22607         * lib/mbmemcasecoll.c: New file.
22608         * modules/mbmemcasecoll: New file.
22609
22610         * tests/test-mbmemcasecmp.h: New file, extracted from
22611         tests/test-mbmemcasecmp.c.
22612         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
22613         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
22614         (main): Update.
22615         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
22616
22617 2009-03-09  Bruno Haible  <bruno@clisp.org>
22618
22619         Tests for module 'mbmemcasecmp'.
22620         * modules/mbmemcasecmp-tests: New file.
22621         * tests/test-mbmemcasecmp1.sh: New file.
22622         * tests/test-mbmemcasecmp2.sh: New file.
22623         * tests/test-mbmemcasecmp3.sh: New file.
22624         * tests/test-mbmemcasecmp.c: New file.
22625
22626         New module 'mbmemcasecmp'.
22627         * lib/mbmemcasecmp.h: New file.
22628         * lib/mbmemcasecmp.c: New file.
22629         * modules/mbmemcasecmp: New file.
22630
22631 2009-03-09  Bruno Haible  <bruno@clisp.org>
22632
22633         Tests for module 'unicase/ulc-casecoll'.
22634         * modules/unicase/ulc-casecoll-tests: New file.
22635         * tests/unicase/test-ulc-casecoll1.sh: New file.
22636         * tests/unicase/test-ulc-casecoll2.sh: New file.
22637         * tests/unicase/test-ulc-casecoll.c: New file.
22638
22639         New module 'unicase/ulc-casecoll'.
22640         * lib/unicase.h (ulc_casecoll): New declaration.
22641         * lib/unicase/ulc-casecoll.c: New file.
22642         * modules/unicase/ulc-casecoll: New file.
22643
22644         New module 'unicase/ulc-casexfrm'.
22645         * lib/unicase.h (ulc_casexfrm): New declaration.
22646         * lib/unicase/ulc-casexfrm.c: New file.
22647         * modules/unicase/ulc-casexfrm: New file.
22648
22649 2009-03-09  Bruno Haible  <bruno@clisp.org>
22650
22651         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
22652         invocations.
22653
22654         * m4/mbscasecmp.m4: Remove file.
22655         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
22656         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
22657
22658         * m4/mbscasestr.m4: Remove file.
22659         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
22660         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
22661
22662         * m4/mbschr.m4: Remove file.
22663         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
22664         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
22665
22666         * m4/mbscspn.m4: Remove file.
22667         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
22668         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
22669
22670         * m4/mbslen.m4: Remove file.
22671         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
22672         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
22673
22674         * m4/mbsncasecmp.m4: Remove file.
22675         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
22676         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
22677
22678         * m4/mbsnlen.m4: Remove file.
22679         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
22680         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
22681
22682         * m4/mbspbrk.m4: Remove file.
22683         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
22684         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
22685
22686         * m4/mbspcasecmp.m4: Remove file.
22687         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
22688         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
22689
22690         * m4/mbsrchr.m4: Remove file.
22691         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
22692         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
22693
22694         * m4/mbssep.m4: Remove file.
22695         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
22696         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
22697
22698         * m4/mbsspn.m4: Remove file.
22699         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
22700         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
22701
22702         * m4/mbsstr.m4: Remove file.
22703         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
22704         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
22705
22706         * m4/mbstok_r.m4: Remove file.
22707         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
22708         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
22709
22710         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
22711
22712         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
22713         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
22714
22715         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
22716
22717 2009-03-08  Bruno Haible  <bruno@clisp.org>
22718
22719         Tests for module 'unicase/ulc-casecmp'.
22720         * modules/unicase/ulc-casecmp-tests: New file.
22721         * tests/unicase/test-ulc-casecmp1.sh: New file.
22722         * tests/unicase/test-ulc-casecmp2.sh: New file.
22723         * tests/unicase/test-ulc-casecmp.c: New file.
22724
22725         New module 'unicase/ulc-casecmp'.
22726         * lib/unicase.h (ulc_casecmp): New declaration.
22727         * lib/unicase/ulc-casecmp.c: New file.
22728         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
22729         'const SRC_UNIT *'.
22730         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
22731         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
22732         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
22733         * modules/unicase/ulc-casecmp: New file.
22734
22735         Tests for module 'unicase/u32-is-cased'.
22736         * modules/unicase/u32-is-cased-tests: New file.
22737         * tests/unicase/test-u32-is-cased.c: New file.
22738
22739         Tests for module 'unicase/u16-is-cased'.
22740         * modules/unicase/u16-is-cased-tests: New file.
22741         * tests/unicase/test-u16-is-cased.c: New file.
22742
22743         Tests for module 'unicase/u8-is-cased'.
22744         * modules/unicase/u8-is-cased-tests: New file.
22745         * tests/unicase/test-u8-is-cased.c: New file.
22746         * tests/unicase/test-is-cased.h: New file.
22747
22748         New module 'unicase/u32-is-cased'.
22749         * lib/unicase/u32-is-cased.c: New file.
22750         * modules/unicase/u32-is-cased: New file.
22751
22752         New module 'unicase/u16-is-cased'.
22753         * lib/unicase/u16-is-cased.c: New file.
22754         * modules/unicase/u16-is-cased: New file.
22755
22756         New module 'unicase/u8-is-cased'.
22757         * lib/unicase/u8-is-cased.c: New file.
22758         * lib/unicase/u-is-cased.h: New file.
22759         * modules/unicase/u8-is-cased: New file.
22760
22761         Tests for module 'unicase/u32-is-casefolded'.
22762         * modules/unicase/u32-is-casefolded-tests: New file.
22763         * tests/unicase/test-u32-is-casefolded.c: New file.
22764
22765         Tests for module 'unicase/u16-is-casefolded'.
22766         * modules/unicase/u16-is-casefolded-tests: New file.
22767         * tests/unicase/test-u16-is-casefolded.c: New file.
22768
22769         Tests for module 'unicase/u8-is-casefolded'.
22770         * modules/unicase/u8-is-casefolded-tests: New file.
22771         * tests/unicase/test-u8-is-casefolded.c: New file.
22772         * tests/unicase/test-is-casefolded.h: New file.
22773
22774         New module 'unicase/u32-is-casefolded'.
22775         * lib/unicase/u32-is-casefolded.c: New file.
22776         * modules/unicase/u32-is-casefolded: New file.
22777
22778         New module 'unicase/u16-is-casefolded'.
22779         * lib/unicase/u16-is-casefolded.c: New file.
22780         * modules/unicase/u16-is-casefolded: New file.
22781
22782         New module 'unicase/u8-is-casefolded'.
22783         * lib/unicase/u8-is-casefolded.c: New file.
22784         * modules/unicase/u8-is-casefolded: New file.
22785
22786         Tests for module 'unicase/u32-is-titlecase'.
22787         * modules/unicase/u32-is-titlecase-tests: New file.
22788         * tests/unicase/test-u32-is-titlecase.c: New file.
22789
22790         Tests for module 'unicase/u16-is-titlecase'.
22791         * modules/unicase/u16-is-titlecase-tests: New file.
22792         * tests/unicase/test-u16-is-titlecase.c: New file.
22793
22794         Tests for module 'unicase/u8-is-titlecase'.
22795         * modules/unicase/u8-is-titlecase-tests: New file.
22796         * tests/unicase/test-u8-is-titlecase.c: New file.
22797         * tests/unicase/test-is-titlecase.h: New file.
22798
22799         New module 'unicase/u32-is-titlecase'.
22800         * lib/unicase/u32-is-titlecase.c: New file.
22801         * modules/unicase/u32-is-titlecase: New file.
22802
22803         New module 'unicase/u16-is-titlecase'.
22804         * lib/unicase/u16-is-titlecase.c: New file.
22805         * modules/unicase/u16-is-titlecase: New file.
22806
22807         New module 'unicase/u8-is-titlecase'.
22808         * lib/unicase/u8-is-titlecase.c: New file.
22809         * modules/unicase/u8-is-titlecase: New file.
22810
22811         Tests for module 'unicase/u32-is-lowercase'.
22812         * modules/unicase/u32-is-lowercase-tests: New file.
22813         * tests/unicase/test-u32-is-lowercase.c: New file.
22814
22815         Tests for module 'unicase/u16-is-lowercase'.
22816         * modules/unicase/u16-is-lowercase-tests: New file.
22817         * tests/unicase/test-u16-is-lowercase.c: New file.
22818
22819         Tests for module 'unicase/u8-is-lowercase'.
22820         * modules/unicase/u8-is-lowercase-tests: New file.
22821         * tests/unicase/test-u8-is-lowercase.c: New file.
22822         * tests/unicase/test-is-lowercase.h: New file.
22823
22824         New module 'unicase/u32-is-lowercase'.
22825         * lib/unicase/u32-is-lowercase.c: New file.
22826         * modules/unicase/u32-is-lowercase: New file.
22827
22828         New module 'unicase/u16-is-lowercase'.
22829         * lib/unicase/u16-is-lowercase.c: New file.
22830         * modules/unicase/u16-is-lowercase: New file.
22831
22832         New module 'unicase/u8-is-lowercase'.
22833         * lib/unicase/u8-is-lowercase.c: New file.
22834         * modules/unicase/u8-is-lowercase: New file.
22835
22836         Tests for module 'unicase/u32-is-uppercase'.
22837         * modules/unicase/u32-is-uppercase-tests: New file.
22838         * tests/unicase/test-u32-is-uppercase.c: New file.
22839
22840         Tests for module 'unicase/u16-is-uppercase'.
22841         * modules/unicase/u16-is-uppercase-tests: New file.
22842         * tests/unicase/test-u16-is-uppercase.c: New file.
22843
22844         Tests for module 'unicase/u8-is-uppercase'.
22845         * modules/unicase/u8-is-uppercase-tests: New file.
22846         * tests/unicase/test-u8-is-uppercase.c: New file.
22847         * tests/unicase/test-is-uppercase.h: New file.
22848
22849         New module 'unicase/u32-is-uppercase'.
22850         * lib/unicase/u32-is-uppercase.c: New file.
22851         * modules/unicase/u32-is-uppercase: New file.
22852
22853         New module 'unicase/u16-is-uppercase'.
22854         * lib/unicase/u16-is-uppercase.c: New file.
22855         * modules/unicase/u16-is-uppercase: New file.
22856
22857         New module 'unicase/u8-is-uppercase'.
22858         * lib/unicase/u8-is-uppercase.c: New file.
22859         * modules/unicase/u8-is-uppercase: New file.
22860
22861         New module 'unicase/u32-is-invariant'.
22862         * lib/unicase/u32-is-invariant.c: New file.
22863         * modules/unicase/u32-is-invariant: New file.
22864
22865         New module 'unicase/u16-is-invariant'.
22866         * lib/unicase/u16-is-invariant.c: New file.
22867         * modules/unicase/u16-is-invariant: New file.
22868
22869         New module 'unicase/u8-is-invariant'.
22870         * lib/unicase/u8-is-invariant.c: New file.
22871         * lib/unicase/invariant.h: New file.
22872         * lib/unicase/u-is-invariant.h: New file.
22873         * modules/unicase/u8-is-invariant: New file.
22874
22875         Tests for module 'unicase/u32-casecoll'.
22876         * modules/unicase/u32-casecoll-tests: New file.
22877         * tests/unicase/test-u32-casecoll.c: New file.
22878
22879         Tests for module 'unicase/u16-casecoll'.
22880         * modules/unicase/u16-casecoll-tests: New file.
22881         * tests/unicase/test-u16-casecoll.c: New file.
22882
22883         Tests for module 'unicase/u8-casecoll'.
22884         * modules/unicase/u8-casecoll-tests: New file.
22885         * tests/unicase/test-u8-casecoll.c: New file.
22886
22887         New module 'unicase/u32-casecoll'.
22888         * lib/unicase/u32-casecoll.c: New file.
22889         * modules/unicase/u32-casecoll: New file.
22890
22891         New module 'unicase/u16-casecoll'.
22892         * lib/unicase/u16-casecoll.c: New file.
22893         * modules/unicase/u16-casecoll: New file.
22894
22895         New module 'unicase/u8-casecoll'.
22896         * lib/unicase/u8-casecoll.c: New file.
22897         * lib/unicase/u-casecoll.h: New file.
22898         * modules/unicase/u8-casecoll: New file.
22899
22900         New module 'unicase/u32-casexfrm'.
22901         * lib/unicase/u32-casexfrm.c: New file.
22902         * modules/unicase/u32-casexfrm: New file.
22903
22904         New module 'unicase/u16-casexfrm'.
22905         * lib/unicase/u16-casexfrm.c: New file.
22906         * modules/unicase/u16-casexfrm: New file.
22907
22908         New module 'unicase/u8-casexfrm'.
22909         * lib/unicase/u8-casexfrm.c: New file.
22910         * lib/unicase/u-casexfrm.h: New file.
22911         * modules/unicase/u8-casexfrm: New file.
22912
22913         Tests for module 'unicase/u32-casecmp'.
22914         * modules/unicase/u32-casecmp-tests: New file.
22915         * tests/unicase/test-u32-casecmp.c: New file.
22916
22917         Tests for module 'unicase/u16-casecmp'.
22918         * modules/unicase/u16-casecmp-tests: New file.
22919         * tests/unicase/test-u16-casecmp.c: New file.
22920
22921         Tests for module 'unicase/u8-casecmp'.
22922         * modules/unicase/u8-casecmp-tests: New file.
22923         * tests/unicase/test-u8-casecmp.c: New file.
22924         * tests/unicase/test-casecmp.h: New file.
22925
22926         New module 'unicase/u32-casecmp'.
22927         * lib/unicase/u32-casecmp.c: New file.
22928         * modules/unicase/u32-casecmp: New file.
22929
22930         New module 'unicase/u16-casecmp'.
22931         * lib/unicase/u16-casecmp.c: New file.
22932         * modules/unicase/u16-casecmp: New file.
22933
22934         New module 'unicase/u8-casecmp'.
22935         * lib/unicase/u8-casecmp.c: New file.
22936         * lib/unicase/u-casecmp.h: New file.
22937         * modules/unicase/u8-casecmp: New file.
22938
22939         Tests for module 'unicase/u32-casefold'.
22940         * modules/unicase/u32-casefold-tests: New file.
22941         * tests/unicase/test-u32-casefold.c: New file.
22942
22943         Tests for module 'unicase/u16-casefold'.
22944         * modules/unicase/u16-casefold-tests: New file.
22945         * tests/unicase/test-u16-casefold.c: New file.
22946
22947         Tests for module 'unicase/u8-casefold'.
22948         * modules/unicase/u8-casefold-tests: New file.
22949         * tests/unicase/test-u8-casefold.c: New file.
22950
22951         New module 'unicase/u32-casefold'.
22952         * lib/unicase/u32-casefold.c: New file.
22953         * modules/unicase/u32-casefold: New file.
22954
22955         New module 'unicase/u16-casefold'.
22956         * lib/unicase/u16-casefold.c: New file.
22957         * modules/unicase/u16-casefold: New file.
22958
22959         New module 'unicase/u8-casefold'.
22960         * lib/unicase/u8-casefold.c: New file.
22961         * lib/unicase/u-casefold.h: New file.
22962         * modules/unicase/u8-casefold: New file.
22963
22964         New module 'unicase/tocasefold'.
22965         * lib/unicase/casefold.h: New file.
22966         * lib/unicase/tocasefold.c: New file.
22967         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
22968         * modules/unicase/tocasefold: New file.
22969
22970         Tests for module 'unicase/u32-totitle'.
22971         * modules/unicase/u32-totitle-tests: New file.
22972         * tests/unicase/test-u32-totitle.c: New file.
22973
22974         Tests for module 'unicase/u16-totitle'.
22975         * modules/unicase/u16-totitle-tests: New file.
22976         * tests/unicase/test-u16-totitle.c: New file.
22977
22978         Tests for module 'unicase/u8-totitle'.
22979         * modules/unicase/u8-totitle-tests: New file.
22980         * tests/unicase/test-u8-totitle.c: New file.
22981
22982         New module 'unicase/u32-totitle'.
22983         * lib/unicase/u32-totitle.c: New file.
22984         * modules/unicase/u32-totitle: New file.
22985
22986         New module 'unicase/u16-totitle'.
22987         * lib/unicase/u16-totitle.c: New file.
22988         * modules/unicase/u16-totitle: New file.
22989
22990         New module 'unicase/u8-totitle'.
22991         * lib/unicase/u8-totitle.c: New file.
22992         * lib/unicase/u-totitle.h: New file.
22993         * modules/unicase/u8-totitle: New file.
22994
22995         Tests for module 'unicase/u32-tolower'.
22996         * modules/unicase/u32-tolower-tests: New file.
22997         * tests/unicase/test-u32-tolower.c: New file.
22998
22999         Tests for module 'unicase/u16-tolower'.
23000         * modules/unicase/u16-tolower-tests: New file.
23001         * tests/unicase/test-u16-tolower.c: New file.
23002
23003         Tests for module 'unicase/u8-tolower'.
23004         * modules/unicase/u8-tolower-tests: New file.
23005         * tests/unicase/test-u8-tolower.c: New file.
23006
23007         New module 'unicase/u32-tolower'.
23008         * lib/unicase/u32-tolower.c: New file.
23009         * modules/unicase/u32-tolower: New file.
23010
23011         New module 'unicase/u16-tolower'.
23012         * lib/unicase/u16-tolower.c: New file.
23013         * modules/unicase/u16-tolower: New file.
23014
23015         New module 'unicase/u8-tolower'.
23016         * lib/unicase/u8-tolower.c: New file.
23017         * modules/unicase/u8-tolower: New file.
23018
23019         Tests for module 'unicase/u32-toupper'.
23020         * modules/unicase/u32-toupper-tests: New file.
23021         * tests/unicase/test-u32-toupper.c: New file.
23022
23023         Tests for module 'unicase/u16-toupper'.
23024         * modules/unicase/u16-toupper-tests: New file.
23025         * tests/unicase/test-u16-toupper.c: New file.
23026
23027         Tests for module 'unicase/u8-toupper'.
23028         * modules/unicase/u8-toupper-tests: New file.
23029         * tests/unicase/test-u8-toupper.c: New file.
23030
23031         New module 'unicase/u32-toupper'.
23032         * lib/unicase/u32-toupper.c: New file.
23033         * modules/unicase/u32-toupper: New file.
23034
23035         New module 'unicase/u16-toupper'.
23036         * lib/unicase/u16-toupper.c: New file.
23037         * modules/unicase/u16-toupper: New file.
23038
23039         New module 'unicase/u8-toupper'.
23040         * lib/unicase/u8-toupper.c: New file.
23041         * modules/unicase/u8-toupper: New file.
23042
23043         New module 'unicase/u32-casemap'.
23044         * lib/unicase/u32-casemap.c: New file.
23045         * modules/unicase/u32-casemap: New file.
23046
23047         New module 'unicase/u16-casemap'.
23048         * lib/unicase/u16-casemap.c: New file.
23049         * modules/unicase/u16-casemap: New file.
23050
23051         New module 'unicase/u8-casemap'.
23052         * lib/unicase/unicasemap.h: New file.
23053         * lib/unicase/u8-casemap.c: New file.
23054         * lib/unicase/u-casemap.h: New file.
23055         * modules/unicase/u8-casemap: New file.
23056
23057         New module 'unicase/special-casing'.
23058         * lib/unicase/special-casing.h: New file.
23059         * lib/unicase/special-casing.c: New file.
23060         * lib/unicase/special-casing-table.gperf: New file, generated by
23061         gen-uni-tables.c.
23062         * modules/unicase/special-casing: New file.
23063
23064         Tests for module 'unicase/locale-language'.
23065         * modules/unicase/locale-language-tests: New file.
23066         * tests/unicase/test-locale-language.sh: New file.
23067         * tests/unicase/test-locale-language.c: New file.
23068
23069         New module 'unicase/locale-language'.
23070         * lib/unicase/locale-language.c: New file.
23071         * lib/unicase/locale-languages.gperf: New file.
23072         * modules/unicase/locale-language: New file.
23073
23074         Generate more tables for case conversion and case folding.
23075         * lib/gen-uni-tables.c (SCC_*): New enum items.
23076         (struct special_casing_rule): New type.
23077         (casing_rules, num_casing_rules, allocated_casing_rules): New
23078         variables.
23079         (add_casing_rule, fill_casing_rules): New functions.
23080         (struct casefold_rule): New type.
23081         (casefolding_rules, num_casefolding_rules,
23082         allocated_casefolding_rules): New variables.
23083         (fill_casefolding_rules): New function.
23084         (unicode_casefold): New variable.
23085         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
23086         sort_casing_rules, output_casing_rules): New functions.
23087         (main): Accept to more arguments: SpecialCasing.txt and
23088         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
23089         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
23090         Output mapping for casefolding.
23091
23092         * lib/unicase.h: Include stdbool.h, uninorm.h.
23093         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
23094         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
23095         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
23096         arguments.
23097         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
23098         resultp arguments.
23099         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
23100         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
23101         resultp arguments.
23102         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
23103         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
23104         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
23105         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
23106         declarations.
23107         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
23108
23109 2009-03-08  Bruno Haible  <bruno@clisp.org>
23110
23111         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
23112         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
23113         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
23114         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
23115
23116 2009-03-07  Bruno Haible  <bruno@clisp.org>
23117
23118         Adjust u*_normcmp, u*_normcoll API.
23119         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
23120         u16_normcoll, u32_normcoll): Change failure conventions.
23121         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
23122         errno and return -1.
23123         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
23124
23125 2009-03-07  Bruno Haible  <bruno@clisp.org>
23126
23127         Tests for module 'uninorm/u32-normcoll'.
23128         * modules/uninorm/u32-normcoll-tests: New file.
23129         * tests/uninorm/test-u32-normcoll.c: New file.
23130
23131         Tests for module 'uninorm/u16-normcoll'.
23132         * modules/uninorm/u16-normcoll-tests: New file.
23133         * tests/uninorm/test-u16-normcoll.c: New file.
23134
23135         Tests for module 'uninorm/u8-normcoll'.
23136         * modules/uninorm/u8-normcoll-tests: New file.
23137         * tests/uninorm/test-u8-normcoll.c: New file.
23138
23139 2009-03-07  Bruno Haible  <bruno@clisp.org>
23140
23141         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
23142         tests/uninorm/test-u32-normcmp.c.
23143         * tests/uninorm/test-u32-normcmp.c: Include it.
23144         (test_nonascii): New function, extracted from main. Add some more
23145         tests.
23146         (main): Invoke test_ascii and test_nonascii.
23147         * modules/uninorm/u32-normcmp-tests (Files): Add
23148         tests/uninorm/test-u32-normcmp.h.
23149         (Depends-on): Remove uninorm/u32-normcmp.
23150
23151         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
23152         tests/uninorm/test-u16-normcmp.c.
23153         * tests/uninorm/test-u16-normcmp.c: Include it.
23154         (test_nonascii): New function, extracted from main. Add some more
23155         tests.
23156         (main): Invoke test_ascii and test_nonascii.
23157         * modules/uninorm/u16-normcmp-tests (Files): Add
23158         tests/uninorm/test-u16-normcmp.h.
23159         (Depends-on): Remove uninorm/u16-normcmp.
23160
23161         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
23162         tests/uninorm/test-u8-normcmp.c.
23163         * tests/uninorm/test-u8-normcmp.c: Include it.
23164         (test_nonascii): New function, extracted from main. Add some more
23165         tests.
23166         (main): Invoke test_ascii and test_nonascii.
23167         * modules/uninorm/u8-normcmp-tests (Files): Add
23168         tests/uninorm/test-u8-normcmp.h.
23169         (Depends-on): Remove uninorm/u8-normcmp.
23170
23171 2009-03-07  Bruno Haible  <bruno@clisp.org>
23172
23173         New module 'uninorm/u32-normcoll'.
23174         * lib/uninorm/u32-normcoll.c: New file.
23175         * modules/uninorm/u32-normcoll: New file.
23176
23177         New module 'uninorm/u16-normcoll'.
23178         * lib/uninorm/u16-normcoll.c: New file.
23179         * modules/uninorm/u16-normcoll: New file.
23180
23181         New module 'uninorm/u8-normcoll'.
23182         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
23183         declarations.
23184         * lib/uninorm/u8-normcoll.c: New file.
23185         * lib/uninorm/u-normcoll.h: New file.
23186         * modules/uninorm/u8-normcoll: New file.
23187
23188         New module 'uninorm/u32-normxfrm'.
23189         * lib/uninorm/u32-normxfrm.c: New file.
23190         * modules/uninorm/u32-normxfrm: New file.
23191
23192         New module 'uninorm/u16-normxfrm'.
23193         * lib/uninorm/u16-normxfrm.c: New file.
23194         * modules/uninorm/u16-normxfrm: New file.
23195
23196         New module 'uninorm/u8-normxfrm'.
23197         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
23198         declarations.
23199         * lib/uninorm/u8-normxfrm.c: New file.
23200         * lib/uninorm/u-normxfrm.h: New file.
23201         * modules/uninorm/u8-normxfrm: New file.
23202
23203 2009-03-07  Bruno Haible  <bruno@clisp.org>
23204
23205         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
23206         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
23207         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
23208
23209 2009-03-07  Bruno Haible  <bruno@clisp.org>
23210
23211         New module 'memxfrm'.
23212         * lib/memxfrm.h: New file.
23213         * lib/memxfrm.c: New file.
23214         * modules/memxfrm: New file.
23215
23216 2009-03-07  Bruno Haible  <bruno@clisp.org>
23217
23218         New module 'memcmp2'.
23219         * lib/memcmp2.h: New file.
23220         * lib/memcmp2.c: New file.
23221         * modules/memcmp2: New file.
23222
23223 2009-03-07  Bruno Haible  <bruno@clisp.org>
23224
23225         Tests for module 'uninorm/decomposing-form'.
23226         * modules/uninorm/decomposing-form-tests: New file.
23227         * tests/uninorm/test-decomposing-form.c: New file.
23228
23229         New module 'uninorm/decomposing-form'.
23230         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
23231         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
23232         Add 'decomposing_variant' field.
23233         * lib/uninorm/decomposing-form.c: New file.
23234         * lib/uninorm/nfc.c (uninorm_nfc): Update.
23235         * lib/uninorm/nfd.c (uninorm_nfd): Update.
23236         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
23237         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
23238         * modules/uninorm/decomposing-form: New file.
23239         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
23240         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
23241
23242 2009-03-07  Bruno Haible  <bruno@clisp.org>
23243
23244         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
23245         strings.
23246
23247 2009-03-06  Bruno Haible  <bruno@clisp.org>
23248
23249         Tests for module 'uninorm/u32-normcmp'.
23250         * tests/uninorm/test-u32-normcmp.c: New file.
23251         * modules/uninorm/u32-normcmp-tests: New file.
23252
23253         Tests for module 'uninorm/u16-normcmp'.
23254         * tests/uninorm/test-u16-normcmp.c: New file.
23255         * modules/uninorm/u16-normcmp-tests: New file.
23256
23257         Tests for module 'uninorm/u8-normcmp'.
23258         * tests/uninorm/test-u8-normcmp.c: New file.
23259         * modules/uninorm/u8-normcmp-tests: New file.
23260
23261         New module 'uninorm/u32-normcmp'.
23262         * lib/uninorm/u32-normcmp.c: New file.
23263         * modules/uninorm/u32-normcmp: New file.
23264
23265         New module 'uninorm/u16-normcmp'.
23266         * lib/uninorm/u16-normcmp.c: New file.
23267         * modules/uninorm/u16-normcmp: New file.
23268
23269         New module 'uninorm/u8-normcmp'.
23270         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
23271         declarations.
23272         * lib/uninorm/u8-normcmp.c: New file.
23273         * lib/uninorm/u-normcmp.h: New file.
23274         * modules/uninorm/u8-normcmp: New file.
23275
23276 2009-03-06  Bruno Haible  <bruno@clisp.org>
23277
23278         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
23279         Reported by Eric Blake.
23280
23281 2009-03-06  Eric Blake  <ebb9@byu.net>
23282             Bruno Haible  <bruno@clisp.org>
23283
23284         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
23285         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
23286         condition.
23287         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
23288         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
23289         condition.
23290         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
23291
23292 2009-03-06  Eric Blake  <ebb9@byu.net>
23293
23294         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
23295         to avoid compiler warnings.
23296         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
23297
23298 2009-03-05  Bruno Haible  <bruno@clisp.org>
23299
23300         * tests/test-ftell.c (main): Disable test beyond end of file on
23301         FreeMiNT.
23302         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
23303
23304 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
23305
23306         * lib/filevercmp.c: Move hidden files up in ordering.
23307         * tests/test-filevercmp.c: Add tests for hidden files.
23308
23309 2009-03-04  Bruno Haible  <bruno@clisp.org>
23310
23311         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
23312         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
23313         AM_CFLAGS.
23314         Reported by Simon Josefsson.
23315
23316 2009-03-03  Bruno Haible  <bruno@clisp.org>
23317
23318         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
23319         Reported by Simon Josefsson.
23320
23321         * doc/ld-version-script.texi: Update node reference.
23322
23323 2009-03-03  Bruno Haible  <bruno@clisp.org>
23324
23325         * modules/visibility (License): Change to 'unlimited'.
23326         Suggested by Simon Josefsson.
23327
23328 2009-03-03  Jim Meyering  <meyering@redhat.com>
23329
23330         unlinkdir: cannot_unlink_dir may modify process state
23331         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
23332         it's neither thread-safe nor appropriate for use in a library.
23333
23334 2009-03-03  Eric Blake  <ebb9@byu.net>
23335
23336         test-closein: silence test under Darwin
23337         * tests/test-closein.sh: Ignore stderr from cat, since we don't
23338         care if it dies from EPIPE or EBADF.
23339
23340 2009-03-03  Bruno Haible  <bruno@clisp.org>
23341
23342         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
23343         earlier.
23344         * doc/visibility.texi: Fix @node and @section.
23345
23346 2009-03-03  Simon Josefsson  <simon@josefsson.org>
23347
23348         * doc/gnulib.texi: Link to sections for ld version script and
23349         visibility.
23350         * doc/visibility.texi: Add @node and @section.
23351         * modules/ld-version-script: New module.
23352         * m4/ld-version-script.m4: New file.
23353         * doc/ld-version-script.texi: New file.
23354
23355 2009-03-02  David Lutterkort  <lutter@redhat.com>
23356
23357         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
23358         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23359
23360 2009-03-02  Bruno Haible  <bruno@clisp.org>
23361
23362         * doc/visibility.texi: Mention libtool's -export-symbols option.
23363
23364 2009-03-02  Jim Meyering  <meyering@redhat.com>
23365
23366         announce-gen: new option: --no-print-checksums
23367         * build-aux/announce-gen (usage): Describe it.
23368         (print_checksums): Print a newline here, not in the [*] footnote.
23369         (main): Honor it.
23370
23371 2009-03-01  Bruno Haible  <bruno@clisp.org>
23372
23373         Use socklen_t in the native Windows replacements prototypes.
23374         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
23375         instead of 'int'.
23376         * lib/getsockopt.c (rpl_getsockopt): Likewise.
23377         * lib/setsockopt.c (rpl_setsockopt): Likewise.
23378         * modules/getsockopt (Depends-on): Add socklen.
23379         * modules/setsockopt (Depends-on): Add socklen.
23380
23381 2009-03-01  Bruno Haible  <bruno@clisp.org>
23382
23383         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
23384         least 4.2.
23385
23386 2009-03-01  Eric Blake  <ebb9@byu.net>
23387             Bruno Haible  <bruno@clisp.org>
23388
23389         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
23390         error messages.
23391         * lib/wait-process.c (wait_subprocess): Omit error message about
23392         deadly signal sent to the child of termsigp != NULL.
23393
23394 2009-03-01  Eric Blake  <ebb9@byu.net>
23395
23396         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
23397
23398 2009-03-01  Bruno Haible  <bruno@clisp.org>
23399
23400         Avoid a gcc warning.
23401         * tests/test-sched.c (b): Make global.
23402         Reported by Eric Blake.
23403
23404 2009-01-19  Martin Lambers  <marlam@marlam.de>
23405
23406         Provide POSIX semantics for socket timeout options on W32.
23407         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
23408         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
23409         * modules/setsockopt: Depend on sys_time module for struct timeval.
23410         * modules/getsockopt: Depend on sys_time module for struct timeval.
23411
23412 2009-03-01  Simon Josefsson  <simon@josefsson.org>
23413
23414         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
23415         __USE_GNU, for consistency with netdb.in.h.
23416         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23417
23418 2009-03-01  Bruno Haible  <bruno@clisp.org>
23419
23420         More support for FreeMiNT.
23421         * lib/fseeko.c (rpl_fseeko): Complete last commit.
23422         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23423
23424 2009-03-01  Bruno Haible  <bruno@clisp.org>
23425
23426         More support for FreeMiNT.
23427         * lib/fpurge.c (fpurge): Correct last commit.
23428         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23429
23430 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23431
23432         Fix unportable awk script in vc-list-files.
23433         * build-aux/vc-list-files: In the replacement awk script, use
23434         substr with a second argument of 1, not zero.
23435         Report by Simon Josefsson.
23436
23437 2009-02-28  Bruno Haible  <bruno@clisp.org>
23438
23439         More support for FreeMiNT.
23440         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
23441         to FreeMiNT today.
23442         * lib/fwriting.c (fwriting): Likewise.
23443         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
23444
23445 2009-02-28  Bruno Haible  <bruno@clisp.org>
23446
23447         * tests/test-freadseek.c (main): Disable test beyond end of file on
23448         FreeMiNT.
23449         * tests/test-ftello.c (main): Likewise.
23450         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
23451
23452 2009-02-28  Bruno Haible  <bruno@clisp.org>
23453
23454         Add tentative support for FreeMiNT.
23455         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
23456         * lib/fpurge.c (fpurge): Likewise.
23457         * lib/freadable.c (freadable): Likewise.
23458         * lib/freading.c (freading): Likewise.
23459         * lib/freadptr.c (freadptr): Likewise.
23460         * lib/freadseek.c (freadptrinc): Likewise.
23461         * lib/fseeko.c (rpl_fseeko): Likewise.
23462         * lib/fseterr.c (fseterr): Likewise.
23463         * lib/fwritable.c (fwritable): Likewise.
23464         * lib/fwriting.c (fwriting): Likewise.
23465         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
23466         Hourihane.
23467         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23468
23469 2009-02-28  Bruno Haible  <bruno@clisp.org>
23470
23471         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
23472         SIGCHLD.
23473         Reported by Jim Meyering.
23474
23475 2009-02-28  Bruno Haible  <bruno@clisp.org>
23476
23477         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
23478         Mention the results of these tests on various platforms.
23479         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
23480         order.
23481         * doc/posix-functions/printf.texi: Likewise.
23482         * doc/posix-functions/snprintf.texi: Likewise.
23483         * doc/posix-functions/sprintf.texi: Likewise.
23484         * doc/posix-functions/vfprintf.texi: Likewise.
23485         * doc/posix-functions/vprintf.texi: Likewise.
23486         * doc/posix-functions/vsnprintf.texi: Likewise.
23487         * doc/posix-functions/vsprintf.texi: Likewise.
23488         * doc/glibc-functions/obstack_printf.texi: Likewise.
23489         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23490
23491 2009-02-28  Bruno Haible  <bruno@clisp.org>
23492
23493         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
23494         Reported by Loïc Minier <lool@dooz.org>.
23495
23496 2009-02-27  Bruno Haible  <bruno@clisp.org>
23497
23498         * gnulib-tool (func_import): Make the sed expression used to create the
23499         sed script for updating the .gitignore file POSIX compliant.
23500         Reported by Eric Blake.
23501
23502 2009-02-27  Bruno Haible  <bruno@clisp.org>
23503
23504         * gnulib-tool (sed): Don't alias as "sed --posix".
23505         Reported by Eric Blake.
23506
23507 2009-02-27  Bruno Haible  <bruno@clisp.org>
23508
23509         Avoid test link errors.
23510         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
23511         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
23512         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
23513         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
23514         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23515
23516 2009-02-27  Bruno Haible  <bruno@clisp.org>
23517
23518         Avoid spurious "(cached)" in configure output.
23519         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
23520         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
23521         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23522         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23523         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23524         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
23525         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23526         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23527         Reported by Eric Blake.
23528
23529 2009-02-27  Eric Blake  <ebb9@byu.net>
23530
23531         printf: fix regression in previous patch
23532         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
23533
23534 2009-02-27  Bruno Haible  <bruno@clisp.org>
23535
23536         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
23537         value.
23538         * lib/stdint.in.h: Likewise.
23539         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
23540
23541 2009-02-27  Eric Blake  <ebb9@byu.net>
23542
23543         doc: mention more functions added in cygwin 1.7.0
23544         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
23545         addition.
23546         * doc/posix-functions/open_wmemstream.texi: Likewise.
23547         * doc/posix-functions/wcsnlen.texi: Likewise.
23548         * doc/posix-functions/wcsnrtombs.texi: Likewise.
23549         * doc/posix-functions/wcstod.texi: Likewise.
23550         * doc/posix-functions/wcstof.texi: Likewise.
23551         * doc/posix-functions/wcstoimax.texi: Likewise.
23552         * doc/posix-functions/wcstok.texi: Likewise.
23553         * doc/posix-functions/wcstoumax.texi: Likewise.
23554
23555         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
23556         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
23557         * doc/posix-functions/fprintf.texi: Update.
23558         * doc/posix-functions/printf.texi: Update.
23559         * doc/posix-functions/snprintf.texi: Update.
23560         * doc/posix-functions/sprintf.texi: Update.
23561         * doc/posix-functions/vfprintf.texi: Update.
23562         * doc/posix-functions/vprintf.texi: Update.
23563         * doc/posix-functions/vsnprintf.texi: Update.
23564         * doc/posix-functions/vsprintf.texi: Update.
23565         * doc/glibc-functions/obstack_printf.texi: Update.
23566         * doc/glibc-functions/obstack_vprintf.texi: Update.
23567
23568 2009-02-26  Eric Blake  <ebb9@byu.net>
23569
23570         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
23571         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
23572         compilation bug by using runtime conversion.
23573         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23574         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
23575         * modules/ceill-tests (Files): Use nan.h.
23576         * modules/floorl-tests (Files): Likewise.
23577         * modules/frexpl-tests (Files): Likewise.
23578         * modules/isnanl-tests (Files): Likewise.
23579         * modules/ldexpl-tests (Files): Likewise.
23580         * modules/roundl-tests (Files): Likewise.
23581         * modules/truncl-tests (Files): Likewise.
23582         * tests/test-ceill.c (main): Use a working NaN.
23583         * tests/test-floorl.c (main): Likewise.
23584         * tests/test-frexpl.c (main): Likewise.
23585         * tests/test-isnan.c (test_long_double): Likewise.
23586         * tests/test-isnanl.h (main): Likewise.
23587         * tests/test-ldexpl.h (main): Likewise.
23588         * tests/test-roundl.h (main): Likewise.
23589         * tests/test-truncl.h (main): Likewise.
23590         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
23591
23592 2009-02-26  Eric Blake  <ebb9@byu.net>
23593             Bruno Haible  <bruno@clisp.org>
23594
23595         Work around a *printf bug with %ls on Solaris.
23596         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
23597         precision is specified, sprintf stops converting the wide string
23598         argument when the number of bytes that have been produced by this
23599         conversion equals or exceeds the precision.
23600         * doc/posix-functions/fprintf.texi: Update.
23601         * doc/posix-functions/printf.texi: Update.
23602         * doc/posix-functions/snprintf.texi: Update.
23603         * doc/posix-functions/sprintf.texi: Update.
23604         * doc/posix-functions/vfprintf.texi: Update.
23605         * doc/posix-functions/vprintf.texi: Update.
23606         * doc/posix-functions/vsnprintf.texi: Update.
23607         * doc/posix-functions/vsprintf.texi: Update.
23608         * doc/glibc-functions/obstack_printf.texi: Update.
23609         * doc/glibc-functions/obstack_vprintf.texi: Update.
23610
23611 2009-02-26  Eric Blake  <ebb9@byu.net>
23612
23613         stdlib: favor compiler check of random.h
23614         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
23615         to avoid an ObjC random.h installed by Swarm.
23616
23617 2009-02-26  Bruno Haible  <bruno@clisp.org>
23618
23619         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
23620         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
23621         Reported by Gary V. Vaughan <gary@gnu.org>.
23622
23623 2009-02-26  Bruno Haible  <bruno@clisp.org>
23624
23625         Fix *printf behaviour regarding the %ls directive.
23626         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
23627         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
23628         NEED_PRINTF_DIRECTIVE_LS.
23629         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
23630         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23631         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23632         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
23633         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
23634         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
23635         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23636         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23637         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23638         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23639         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23640         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
23641         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23642         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23643         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23644         * doc/posix-functions/fprintf.texi: Update.
23645         * doc/posix-functions/printf.texi: Update.
23646         * doc/posix-functions/snprintf.texi: Update.
23647         * doc/posix-functions/sprintf.texi: Update.
23648         * doc/posix-functions/vfprintf.texi: Update.
23649         * doc/posix-functions/vprintf.texi: Update.
23650         * doc/posix-functions/vsnprintf.texi: Update.
23651         * doc/posix-functions/vsprintf.texi: Update.
23652         * doc/glibc-functions/obstack_printf.texi: Update.
23653         * doc/glibc-functions/obstack_vprintf.texi: Update.
23654         Reported by Eric Blake.
23655
23656 2009-02-25  Bruno Haible  <bruno@clisp.org>
23657
23658         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
23659         with known value.
23660         Reported by Gary V. Vaughan <gary@gnu.org>.
23661
23662 2009-02-25  Bruno Haible  <bruno@clisp.org>
23663
23664         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
23665         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
23666         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
23667         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
23668         Reported by Gary V. Vaughan <gary@gnu.org>.
23669
23670 2009-02-25  Bruno Haible  <bruno@clisp.org>
23671
23672         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
23673         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
23674         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
23675         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
23676         Reported by Gary V. Vaughan <gary@gnu.org>.
23677
23678 2009-02-25  Eric Blake  <ebb9@byu.net>
23679
23680         tests: skip fseek/ftell tests if ungetc is broken
23681         * m4/ungetc.m4: New file.
23682         * modules/fseek-tests: Split test, so ungetc dependency is
23683         separate from rest of test.
23684         * modules/fseeko-tests: Likewise.
23685         * modules/ftell-tests: Likewise.
23686         * modules/ftello-tests: Likewise.
23687         * tests/test-fseek.c (main): Isolate ungetc dependency.
23688         * tests/test-fseeko.c (main): Likewise.
23689         * tests/test-ftell.c (main): Likewise.
23690         * tests/test-ftello.c (main): Likewise.
23691         * tests/test-fseek2.sh: New file.
23692         * tests/test-fseeko2.sh: Likewise.
23693         * tests/test-ftell2.sh: Likewise.
23694         * tests/test-ftello2.sh: Likewise.
23695
23696 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
23697
23698         test-getaddrinfo: fix usage of skip return code 77
23699         * tests/test-gettaddrinfo.c: Return skip code 77 only
23700         for first occurance of skip (4x77 is not 77)
23701
23702 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
23703
23704         strtod: avoid C99 decl-after-statement
23705         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
23706
23707 2009-02-24  Eric Blake  <ebb9@byu.net>
23708
23709         strtod: detect HP-UX 11.31 bug
23710         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
23711         Reported by Gary V. Vaughan.
23712
23713 2009-02-23  Bruno Haible  <bruno@clisp.org>
23714
23715         Fix invalid read past end of memory block.
23716         * lib/vasnprintf.c (DCHAR_SET): Define.
23717         (local_wcslen): Define only when needed.
23718         (local_strnlen, local_wcsnlen): New functions.
23719         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
23720         directives that involve a conversion ourselves.
23721         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
23722         wcsnlen, mbrtowc, wcrtomb.
23723         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
23724         * tests/test-vasprintf-posix.c (test_function): Likewise.
23725         * tests/test-snprintf-posix.h (test_function): Likewise.
23726         * tests/test-sprintf-posix.h (test_function): Likewise.
23727         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23728
23729 2009-02-22  Bruno Haible  <bruno@clisp.org>
23730
23731         Implement new clarified decomposition of Hangul syllables.
23732         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
23733         of type LTV, return only a pairwise decomposition.
23734         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
23735         Likewise.
23736         * tests/uninorm/test-decomposition.c (main): Updated expected result.
23737         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
23738         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
23739
23740 2009-02-22  Bruno Haible  <bruno@clisp.org>
23741
23742         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
23743         zero-length results and shrink excess allocated memory.
23744         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
23745         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
23746         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
23747         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
23748         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
23749         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
23750         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
23751         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
23752         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
23753         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
23754         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
23755         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
23756
23757 2009-02-21  Bruno Haible  <bruno@clisp.org>
23758
23759         * doc/gnulib.texi: Include safe-alloc.texi earlier.
23760         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
23761         spaces after a period. Put a space between a macro name and its
23762         argument list. Trivial rewordings.
23763         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
23764         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
23765         (main): Return 0 explicitly.
23766
23767 2009-02-21  Bruno Haible  <bruno@clisp.org>
23768
23769         Tests for module 'uninorm/filter'.
23770         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
23771         * modules/uninorm/filter-tests: New file.
23772
23773         New module 'uninorm/filter'.
23774         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
23775         uninorm_filter_flush, uninorm_filter_free): New declarations.
23776         * lib/uninorm/uninorm-filter.c: New file.
23777         * modules/uninorm/filter: New file.
23778
23779 2009-02-21  Bruno Haible  <bruno@clisp.org>
23780
23781         Tests for module 'uninorm/nfkc'.
23782         * tests/uninorm/test-nfkc.c: New file.
23783         * tests/uninorm/test-u8-nfkc.c: New file.
23784         * tests/uninorm/test-u16-nfkc.c: New file.
23785         * tests/uninorm/test-u32-nfkc.c: New file.
23786         * tests/uninorm/test-u32-nfkc-big.sh: New file.
23787         * tests/uninorm/test-u32-nfkc-big.c: New file.
23788         * modules/uninorm/nfkc-tests: New file.
23789
23790         New module 'uninorm/nfkc'.
23791         * lib/uninorm/nfkc.c: New file.
23792         * modules/uninorm/nfkc: New file.
23793
23794         Tests for module 'uninorm/nfkd'.
23795         * tests/uninorm/test-nfkd.c: New file.
23796         * tests/uninorm/test-u8-nfkd.c: New file.
23797         * tests/uninorm/test-u16-nfkd.c: New file.
23798         * tests/uninorm/test-u32-nfkd.c: New file.
23799         * tests/uninorm/test-u32-nfkd-big.sh: New file.
23800         * tests/uninorm/test-u32-nfkd-big.c: New file.
23801         * modules/uninorm/nfkd-tests: New file.
23802
23803         New module 'uninorm/nfkd'.
23804         * lib/uninorm/nfkd.c: New file.
23805         * modules/uninorm/nfkd: New file.
23806
23807         Tests for module 'uninorm/nfc'.
23808         * tests/uninorm/test-nfc.c: New file.
23809         * tests/uninorm/test-u8-nfc.c: New file.
23810         * tests/uninorm/test-u16-nfc.c: New file.
23811         * tests/uninorm/test-u32-nfc.c: New file.
23812         * tests/uninorm/test-u32-nfc-big.sh: New file.
23813         * tests/uninorm/test-u32-nfc-big.c: New file.
23814         * modules/uninorm/nfc-tests: New file.
23815
23816         New module 'uninorm/nfc'.
23817         * lib/uninorm/nfc.c: New file.
23818         * modules/uninorm/nfc: New file.
23819
23820         Tests for module 'uninorm/nfd'.
23821         * tests/uninorm/test-nfd.c: New file.
23822         * tests/uninorm/test-u8-nfd.c: New file.
23823         * tests/uninorm/test-u16-nfd.c: New file.
23824         * tests/uninorm/test-u32-nfd.c: New file.
23825         * tests/uninorm/test-u32-nfd-big.sh: New file.
23826         * tests/uninorm/test-u32-nfd-big.c: New file.
23827         * tests/uninorm/test-u32-normalize-big.h: New file.
23828         * tests/uninorm/test-u32-normalize-big.c: New file.
23829         * tests/uninorm/NormalizationTest.txt: New file, created from
23830         Unicode 5.1.0 NormalizationTest.txt.
23831         * modules/uninorm/nfd-tests: New file.
23832
23833         New module 'uninorm/nfd'.
23834         * lib/uninorm/nfd.c: New file.
23835         * modules/uninorm/nfd: New file.
23836
23837         New module 'uninorm/u32-normalize'.
23838         * lib/uninorm/u32-normalize.c: New file.
23839         * modules/uninorm/u32-normalize: New file.
23840
23841         New module 'uninorm/u16-normalize'.
23842         * lib/uninorm/u16-normalize.c: New file.
23843         * modules/uninorm/u16-normalize: New file.
23844
23845         New module 'uninorm/u8-normalize'.
23846         * lib/uninorm/u8-normalize.c: New file.
23847         * lib/uninorm/normalize-internal.h: New file.
23848         * lib/uninorm/u-normalize-internal.h: New file.
23849         * modules/uninorm/u8-normalize: New file.
23850
23851         New module 'uninorm/decompose-internal'.
23852         * lib/uninorm/decompose-internal.c: New file.
23853         * modules/uninorm/decompose-internal: New file.
23854
23855         Tests for module 'uninorm/composition'.
23856         * tests/uninorm/test-composition.c: New file.
23857         * modules/uninorm/composition-tests: New file.
23858
23859         New module 'uninorm/composition'.
23860         * lib/uninorm/composition.c: New file.
23861         * lib/uninorm/composition-table.gperf: New file, generated by
23862         gen-uni-tables.
23863         * modules/uninorm/composition: New file.
23864
23865         Tests for module 'uninorm/compat-decomposition'.
23866         * tests/uninorm/test-compat-decomposition.c: New file.
23867         * modules/uninorm/compat-decomposition-tests: New file.
23868
23869         New module 'uninorm/compat-decomposition'.
23870         * lib/uninorm/decompose-internal.h: New file.
23871         * lib/uninorm/compat-decomposition.c: New file.
23872         * modules/uninorm/compat-decomposition: New file.
23873
23874         Tests for module 'uninorm/canonical-decomposition'.
23875         * tests/uninorm/test-canonical-decomposition.c: New file.
23876         * modules/uninorm/canonical-decomposition-tests: New file.
23877
23878         New module 'uninorm/canonical-decomposition'.
23879         * lib/uninorm/canonical-decomposition.c: New file.
23880         * modules/uninorm/canonical-decomposition: New file.
23881
23882         Tests for module 'uninorm/decomposition'.
23883         * tests/uninorm/test-decomposition.c: New file.
23884         * modules/uninorm/decomposition-tests: New file.
23885
23886         New module 'uninorm/decomposition'.
23887         * lib/uninorm/decomposition.c: New file.
23888         * modules/uninorm/decomposition: New file.
23889
23890         New module 'uninorm/decomposition-table'.
23891         * lib/uninorm/decomposition-table.h: New file.
23892         * lib/uninorm/decomposition-table.c: New file.
23893         * lib/uninorm/decomposition-table1.h: New file, generated by
23894         gen-uni-tables.
23895         * lib/uninorm/decomposition-table2.h: New file, generated by
23896         gen-uni-tables.
23897         * modules/uninorm/decomposition-table: New file.
23898
23899         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
23900         (UC_DECOMP_*): New enumeration items.
23901         (get_decomposition): New function.
23902         (struct decomp_table): New type.
23903         (output_decomposition, output_decomposition_tables): New functions.
23904         (unicode_composition_exclusions): New variable.
23905         (fill_composition_exclusions, debug_output_composition_tables): New
23906         functions.
23907         (main): Accept one more argument. Invoke fill_composition_exclusions.
23908         Output decomposition and composition tables.
23909
23910         New module 'uninorm/base'.
23911         * lib/uninorm.h: New file.
23912         * lib/unictype.h: Update comment.
23913         * modules/uninorm/base: New file.
23914
23915 2009-02-21  David Lutterkort  <lutter@redhat.com>
23916
23917         Tests for module 'safe-alloc'.
23918         * tests/test-safe-alloc.c: New file.
23919         * modules/safe-alloc-tests: New file.
23920
23921         New module 'safe-alloc'.
23922         * lib/safe-alloc.h: New file.
23923         * lib/safe-alloc.c: New file.
23924         * m4/safe-alloc.m4: New file.
23925         * modules/safe-alloc: New file.
23926         * doc/safe-alloc.texi: New file.
23927         * doc/gnulib.texi: Include it.
23928         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23929         safe-alloc.
23930
23931 2009-02-18  Bruno Haible  <bruno@clisp.org>
23932
23933         Fix link error on non-glibc systems.
23934         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
23935         variable.
23936         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23937
23938 2009-02-18  Jim Meyering  <meyering@redhat.com>
23939
23940         fts: avoid used-uninitialized error due to recent change
23941         * lib/fts.c (fts_read): Guard uses of the new member,
23942         parent->fts_n_dirs_remaining, since it's not relevant for
23943         the parent of a directory specified on the command-line.
23944
23945 2009-02-17  James Youngman  <jay@gnu.org>
23946             Bruno Haible  <bruno@clisp.org>
23947
23948         * m4/include_next.m4: Reformulate comment.
23949
23950 2009-02-16  Jim Meyering  <meyering@redhat.com>
23951
23952         fts: add #if guards so that the fts_lgpl module still builds
23953         * lib/fts.c: Guard just-added hash-table-using parts with
23954         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
23955         Reported by Simon Josefsson.
23956
23957 2009-02-15  Bruno Haible  <bruno@clisp.org>
23958
23959         * modules/array-mergesort-tests: New file.
23960         * tests/test-array-mergesort.c: New file.
23961
23962         New module 'array-mergesort'.
23963         * modules/array-mergesort: New file.
23964         * lib/array-mergesort.h: New file.
23965
23966 2009-02-15  Bruno Haible  <bruno@clisp.org>
23967
23968         Fix 2009-02-07 commit.
23969         * lib/gen-uni-tables.c (output_predicate, output_category,
23970         output_combclass, output_bidi_category, output_decimal_digit,
23971         output_digit, output_numeric, output_mirror, output_scripts,
23972         output_ident_category, output_simple_mapping): Fix format directives.
23973         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
23974
23975 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
23976
23977         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
23978         fixes are available from IBM.
23979
23980 2009-02-13  Jim Meyering  <meyering@redhat.com>
23981
23982         fts: arrange not to stat non-directories in more cases
23983         This makes GNU find (when it doesn't need to stat each file)
23984         *much* more efficient at traversing reiserfs file systems.
23985         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
23986         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
23987         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
23988         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
23989         (leaf_optimization_applies): New function.
23990         (LCO_hash, LCO_compare): New helper functions.
23991         (link_count_optimize_ok): New function.
23992         (fts_stat): Initialize new member (if dir).
23993         (fts_read): Decrement parent's fts_n_dirs_remaining count if
23994         we've just stat'ed a directory.  Skip the stat call when possible.
23995         ---
23996         Note this AFS-related exchange:
23997         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
23998         and note find's pioctl call in find/fstype.c.
23999         But that is necessary only if you want to enable the
24000         optimization for AFS, and for now, I don't.
24001
24002         fts: move a function definition "up" (no semantic change)
24003         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
24004         "up" to precede upcoming use of a related function.
24005
24006 2009-02-11  Jim Meyering  <meyering@redhat.com>
24007
24008         fts: correct internal computation of nlinks (optimization-related)
24009         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
24010         whether the current entry is a directory, so don't test it.
24011
24012 2009-02-10  Bruno Haible  <bruno@clisp.org>
24013
24014         Tests for module 'uniwbrk/ulc-wordbreaks'.
24015         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
24016         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
24017         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
24018
24019         Tests for module 'uniwbrk/u32-wordbreaks'.
24020         * modules/uniwbrk/u32-wordbreaks-tests: New file.
24021         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
24022
24023         Tests for module 'uniwbrk/u16-wordbreaks'.
24024         * modules/uniwbrk/u16-wordbreaks-tests: New file.
24025         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
24026
24027         Tests for module 'uniwbrk/u8-wordbreaks'.
24028         * modules/uniwbrk/u8-wordbreaks-tests: New file.
24029         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
24030
24031 2009-02-10  Bruno Haible  <bruno@clisp.org>
24032
24033         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
24034         property.
24035         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
24036         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
24037         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
24038
24039 2009-02-10  Simon Josefsson  <simon@josefsson.org>
24040
24041         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
24042         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
24043
24044 2009-02-10  Bruno Haible  <bruno@clisp.org>
24045
24046         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
24047         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
24048         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
24049         * lib/unilbrk/u8-possible-linebreaks.c: Update.
24050         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
24051         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
24052
24053 2009-02-09  Simon Josefsson  <simon@josefsson.org>
24054
24055         * lib/sockets.h (gl_fd_to_handle): New function.
24056
24057         * tests/test-sockets.c: Call gl_fd_to_handle.
24058
24059 2009-02-09  Bruno Haible  <bruno@clisp.org>
24060
24061         * doc/havelib.texi: Document the conventions on bi-arch systems.
24062
24063 2009-02-08  Bruno Haible  <bruno@clisp.org>
24064
24065         Document the AC_LIB_LINKFLAGS macro.
24066         * doc/havelib.texi: New file, mostly written on 2005-05-24.
24067         * doc/gnulib.texi: Include it.
24068
24069 2009-02-08  Bruno Haible  <bruno@clisp.org>
24070
24071         Fix wrong order of sections, compared to TOC.
24072         * doc/gnulib.texi: Include relocatable-maint.texi after the
24073         "Regular expressions" node, not before.
24074
24075 2009-02-08  Bruno Haible  <bruno@clisp.org>
24076
24077         Tests for module 'unicase/totitle'.
24078         * modules/unicase/totitle-tests: New file.
24079
24080         Tests for module 'unicase/tolower'.
24081         * modules/unicase/tolower-tests: New file.
24082
24083         Tests for module 'unicase/toupper'.
24084         * modules/unicase/toupper-tests: New file.
24085         * tests/unicase/test-mapping-part1.h: New file.
24086         * tests/unicase/test-mapping-part2.h: New file.
24087
24088         New module 'unicase/totitle'.
24089         * modules/unicase/totitle: New file.
24090         * lib/unicase/totitle.c: New file.
24091
24092         New module 'unicase/tolower'.
24093         * modules/unicase/tolower: New file.
24094         * lib/unicase/tolower.c: New file.
24095
24096         New module 'unicase/toupper'.
24097         * modules/unicase/toupper: New file.
24098         * lib/unicase/toupper.c: New file.
24099         * lib/unicase/simple-mapping.h: New file.
24100
24101         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
24102         (mapping_table): New structure.
24103         (output_simple_mapping): New function.
24104         (main): Invoke output_simple_mapping_test and output_simple_mapping.
24105         * modules/gen-uni-tables (Description): Update.
24106         * lib/unicase/toupper.h: New file, automatically generated by
24107         gen-uni-tables.
24108         * lib/unicase/tolower.h: New file, automatically generated by
24109         gen-uni-tables.
24110         * lib/unicase/totitle.h: New file, automatically generated by
24111         gen-uni-tables.
24112         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
24113         gen-uni-tables.
24114         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
24115         gen-uni-tables.
24116         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
24117         gen-uni-tables.
24118
24119         New module 'unicase/base'.
24120         * modules/unicase/base: New file.
24121         * lib/unicase.h: New file.
24122
24123 2009-02-08  Bruno Haible  <bruno@clisp.org>
24124
24125         New module 'uniwbrk/ulc-wordbreaks'.
24126         * modules/uniwbrk/ulc-wordbreaks: New file.
24127         * lib/uniwbrk/ulc-wordbreaks.c: New file.
24128
24129         New module 'uniwbrk/u32-wordbreaks'.
24130         * modules/uniwbrk/u32-wordbreaks: New file.
24131         * lib/uniwbrk/u32-wordbreaks.c: New file.
24132
24133         New module 'uniwbrk/u16-wordbreaks'.
24134         * modules/uniwbrk/u16-wordbreaks: New file.
24135         * lib/uniwbrk/u16-wordbreaks.c: New file.
24136
24137         New module 'uniwbrk/u8-wordbreaks'.
24138         * modules/uniwbrk/u8-wordbreaks: New file.
24139         * lib/uniwbrk/u8-wordbreaks.c: New file.
24140         * lib/uniwbrk/u-wordbreaks.h: New file.
24141
24142         New module 'uniwbrk/table'.
24143         * modules/uniwbrk/table: New file.
24144         * lib/uniwbrk/wbrktable.h: New file.
24145         * lib/uniwbrk/wbrktable.c: New file.
24146
24147         New module 'uniwbrk/wordbreak-property'.
24148         * modules/uniwbrk/wordbreak-property: New file.
24149         * lib/uniwbrk/wordbreak-property.c: New file.
24150
24151         * lib/gen-uni-tables.c (WBP_*): New enum items.
24152         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
24153         (unicode_org_wbp): New variable.
24154         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
24155         New functions.
24156         (wbp_table): New structure.
24157         (output_wbp, output_wbrk_tables): New functions.
24158         (main): Accept additional argument. Invoke fill_org_wbp,
24159         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
24160         output_wbrk_tables.
24161         * modules/gen-uni-tables (Description): Update.
24162         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
24163         gen-uni-tables.
24164
24165         New module 'uniwbrk/base'.
24166         * modules/uniwbrk/base: New file.
24167         * lib/uniwbrk.h: New file.
24168
24169 2009-02-08  Bruno Haible  <bruno@clisp.org>
24170
24171         Update to Unicode 5.1.0.
24172         * lib/gen-uni-tables.c (is_property_alphabetic): Include
24173         U+2185..U+2188.
24174         (is_property_default_ignorable_code_point): Don't include characters
24175         of category Cc or Cs and not-a-characters.
24176         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
24177         U+0D79, U+109E, U+109F, U+A60C.
24178         * lib/unictype/bidi_of.h: Regenerated.
24179         * lib/unictype/blocks.h: Regenerated.
24180         * lib/unictype/categ_C.h: Regenerated.
24181         * lib/unictype/categ_Cf.h: Regenerated.
24182         * lib/unictype/categ_Cn.h: Regenerated.
24183         * lib/unictype/categ_L.h: Regenerated.
24184         * lib/unictype/categ_Ll.h: Regenerated.
24185         * lib/unictype/categ_Lm.h: Regenerated.
24186         * lib/unictype/categ_Lo.h: Regenerated.
24187         * lib/unictype/categ_Lu.h: Regenerated.
24188         * lib/unictype/categ_M.h: Regenerated.
24189         * lib/unictype/categ_Mc.h: Regenerated.
24190         * lib/unictype/categ_Me.h: Regenerated.
24191         * lib/unictype/categ_Mn.h: Regenerated.
24192         * lib/unictype/categ_N.h: Regenerated.
24193         * lib/unictype/categ_Nd.h: Regenerated.
24194         * lib/unictype/categ_Nl.h: Regenerated.
24195         * lib/unictype/categ_No.h: Regenerated.
24196         * lib/unictype/categ_P.h: Regenerated.
24197         * lib/unictype/categ_Pd.h: Regenerated.
24198         * lib/unictype/categ_Pe.h: Regenerated.
24199         * lib/unictype/categ_Pf.h: Regenerated.
24200         * lib/unictype/categ_Pi.h: Regenerated.
24201         * lib/unictype/categ_Po.h: Regenerated.
24202         * lib/unictype/categ_Ps.h: Regenerated.
24203         * lib/unictype/categ_S.h: Regenerated.
24204         * lib/unictype/categ_Sk.h: Regenerated.
24205         * lib/unictype/categ_Sm.h: Regenerated.
24206         * lib/unictype/categ_So.h: Regenerated.
24207         * lib/unictype/categ_of.h: Regenerated.
24208         * lib/unictype/combining.h: Regenerated.
24209         * lib/unictype/ctype_alnum.h: Regenerated.
24210         * lib/unictype/ctype_alpha.h: Regenerated.
24211         * lib/unictype/ctype_graph.h: Regenerated.
24212         * lib/unictype/ctype_lower.h: Regenerated.
24213         * lib/unictype/ctype_print.h: Regenerated.
24214         * lib/unictype/ctype_punct.h: Regenerated.
24215         * lib/unictype/ctype_upper.h: Regenerated.
24216         * lib/unictype/decdigit.h: Regenerated.
24217         * lib/unictype/digit.h: Regenerated.
24218         * lib/unictype/mirror.h: Regenerated.
24219         * lib/unictype/numeric.h: Regenerated.
24220         * lib/unictype/pr_alphabetic.h: Regenerated.
24221         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
24222         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
24223         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
24224         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
24225         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
24226         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
24227         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
24228         * lib/unictype/pr_combining.h: Regenerated.
24229         * lib/unictype/pr_dash.h: Regenerated.
24230         * lib/unictype/pr_decimal_digit.h: Regenerated.
24231         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
24232         * lib/unictype/pr_deprecated.h: Regenerated.
24233         * lib/unictype/pr_diacritic.h: Regenerated.
24234         * lib/unictype/pr_extender.h: Regenerated.
24235         * lib/unictype/pr_format_control.h: Regenerated.
24236         * lib/unictype/pr_grapheme_base.h: Regenerated.
24237         * lib/unictype/pr_grapheme_extend.h: Regenerated.
24238         * lib/unictype/pr_grapheme_link.h: Regenerated.
24239         * lib/unictype/pr_id_continue.h: Regenerated.
24240         * lib/unictype/pr_id_start.h: Regenerated.
24241         * lib/unictype/pr_ideographic.h: Regenerated.
24242         * lib/unictype/pr_ignorable_control.h: Regenerated.
24243         * lib/unictype/pr_lowercase.h: Regenerated.
24244         * lib/unictype/pr_math.h: Regenerated.
24245         * lib/unictype/pr_numeric.h: Regenerated.
24246         * lib/unictype/pr_other_alphabetic.h: Regenerated.
24247         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
24248         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
24249         * lib/unictype/pr_other_id_continue.h: Regenerated.
24250         * lib/unictype/pr_other_lowercase.h: Regenerated.
24251         * lib/unictype/pr_other_math.h: Regenerated.
24252         * lib/unictype/pr_punctuation.h: Regenerated.
24253         * lib/unictype/pr_sentence_terminal.h: Regenerated.
24254         * lib/unictype/pr_soft_dotted.h: Regenerated.
24255         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
24256         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
24257         * lib/unictype/pr_unified_ideograph.h: Regenerated.
24258         * lib/unictype/pr_uppercase.h: Regenerated.
24259         * lib/unictype/pr_xid_continue.h: Regenerated.
24260         * lib/unictype/pr_xid_start.h: Regenerated.
24261         * lib/unictype/pr_zero_width.h: Regenerated.
24262         * lib/unictype/scripts.h: Regenerated.
24263         * lib/unictype/scripts_byname.gperf: Regenerated.
24264         * lib/unictype/sy_java_ident.h: Regenerated.
24265         * lib/unilbrk/lbrkprop1.h: Regenerated.
24266         * lib/unilbrk/lbrkprop2.h: Regenerated.
24267         * tests/unictype/test-categ_C.c: Regenerated.
24268         * tests/unictype/test-categ_Cf.c: Regenerated.
24269         * tests/unictype/test-categ_Cn.c: Regenerated.
24270         * tests/unictype/test-categ_L.c: Regenerated.
24271         * tests/unictype/test-categ_Ll.c: Regenerated.
24272         * tests/unictype/test-categ_Lm.c: Regenerated.
24273         * tests/unictype/test-categ_Lo.c: Regenerated.
24274         * tests/unictype/test-categ_Lu.c: Regenerated.
24275         * tests/unictype/test-categ_M.c: Regenerated.
24276         * tests/unictype/test-categ_Mc.c: Regenerated.
24277         * tests/unictype/test-categ_Me.c: Regenerated.
24278         * tests/unictype/test-categ_Mn.c: Regenerated.
24279         * tests/unictype/test-categ_N.c: Regenerated.
24280         * tests/unictype/test-categ_Nd.c: Regenerated.
24281         * tests/unictype/test-categ_Nl.c: Regenerated.
24282         * tests/unictype/test-categ_No.c: Regenerated.
24283         * tests/unictype/test-categ_P.c: Regenerated.
24284         * tests/unictype/test-categ_Pd.c: Regenerated.
24285         * tests/unictype/test-categ_Pe.c: Regenerated.
24286         * tests/unictype/test-categ_Pf.c: Regenerated.
24287         * tests/unictype/test-categ_Pi.c: Regenerated.
24288         * tests/unictype/test-categ_Po.c: Regenerated.
24289         * tests/unictype/test-categ_Ps.c: Regenerated.
24290         * tests/unictype/test-categ_S.c: Regenerated.
24291         * tests/unictype/test-categ_Sk.c: Regenerated.
24292         * tests/unictype/test-categ_Sm.c: Regenerated.
24293         * tests/unictype/test-categ_So.c: Regenerated.
24294         * tests/unictype/test-ctype_alnum.c: Regenerated.
24295         * tests/unictype/test-ctype_alpha.c: Regenerated.
24296         * tests/unictype/test-ctype_graph.c: Regenerated.
24297         * tests/unictype/test-ctype_lower.c: Regenerated.
24298         * tests/unictype/test-ctype_print.c: Regenerated.
24299         * tests/unictype/test-ctype_punct.c: Regenerated.
24300         * tests/unictype/test-ctype_upper.c: Regenerated.
24301         * tests/unictype/test-decdigit.h: Regenerated.
24302         * tests/unictype/test-digit.h: Regenerated.
24303         * tests/unictype/test-numeric.h: Regenerated.
24304         * tests/unictype/test-pr_alphabetic.c: Regenerated.
24305         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
24306         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
24307         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
24308         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
24309         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
24310         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
24311         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
24312         * tests/unictype/test-pr_combining.c: Regenerated.
24313         * tests/unictype/test-pr_dash.c: Regenerated.
24314         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
24315         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
24316         * tests/unictype/test-pr_deprecated.c: Regenerated.
24317         * tests/unictype/test-pr_diacritic.c: Regenerated.
24318         * tests/unictype/test-pr_extender.c: Regenerated.
24319         * tests/unictype/test-pr_format_control.c: Regenerated.
24320         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
24321         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
24322         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
24323         * tests/unictype/test-pr_id_continue.c: Regenerated.
24324         * tests/unictype/test-pr_id_start.c: Regenerated.
24325         * tests/unictype/test-pr_ideographic.c: Regenerated.
24326         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
24327         * tests/unictype/test-pr_lowercase.c: Regenerated.
24328         * tests/unictype/test-pr_math.c: Regenerated.
24329         * tests/unictype/test-pr_numeric.c: Regenerated.
24330         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
24331         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
24332         Regenerated.
24333         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
24334         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
24335         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
24336         * tests/unictype/test-pr_other_math.c: Regenerated.
24337         * tests/unictype/test-pr_punctuation.c: Regenerated.
24338         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
24339         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
24340         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
24341         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
24342         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
24343         * tests/unictype/test-pr_uppercase.c: Regenerated.
24344         * tests/unictype/test-pr_xid_continue.c: Regenerated.
24345         * tests/unictype/test-pr_xid_start.c: Regenerated.
24346         * tests/unictype/test-pr_zero_width.c: Regenerated.
24347
24348         Update to Unicode 5.1.0.
24349         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
24350         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
24351         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
24352         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
24353         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
24354         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
24355         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
24356         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
24357         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
24358         (nonspacing_table_ind): Update.
24359         * tests/uniwidth/test-uc_width2.sh: Update expected result.
24360
24361         Update to Unicode 5.1.0.
24362         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
24363         code transform.
24364         * lib/uniname/uniname.c (unicode_character_name,
24365         unicode_name_character): Add the range 0x1Fxxx to the code transform.
24366         * lib/uniname/uninames.h: Regenerated.
24367         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
24368
24369 2009-02-07  Bruno Haible  <bruno@clisp.org>
24370
24371         Merge gen-ctype and gen-lbrk into a single program.
24372         * lib/gen-uni-tables.c: New file, incorporating
24373         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
24374         Add directory prefixes to the names of the generated files.
24375         * lib/unictype/gen-ctype.c: Remove file.
24376         * lib/unilbrk/gen-lbrk.c: Remove file.
24377         * modules/gen-uni-tables: New file.
24378         * modules/unictype/gen-ctype: Remove file.
24379         * modules/unilbrk/gen-lbrk: Remove file.
24380
24381 2009-02-07  Bruno Haible  <bruno@clisp.org>
24382
24383         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
24384
24385         New module 'unistr/u32-strcoll'.
24386         * modules/unistr/u32-strcoll: New file.
24387         * lib/unistr/u32-strcoll.c: New file.
24388
24389         New module 'unistr/u16-strcoll'.
24390         * modules/unistr/u16-strcoll: New file.
24391         * lib/unistr/u16-strcoll.c: New file.
24392
24393         New module 'unistr/u8-strcoll'.
24394         * modules/unistr/u8-strcoll: New file.
24395         * lib/unistr/u8-strcoll.c: New file.
24396         * lib/unistr/u-strcoll.h: New file.
24397
24398 2009-02-07  Bruno Haible  <bruno@clisp.org>
24399
24400         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
24401         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
24402         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
24403         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
24404         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
24405         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
24406
24407 2009-02-07  Bruno Haible  <bruno@clisp.org>
24408
24409         Make 64-bit clean.
24410         * lib/unictype/gen-ctype.c (output_predicate, output_category,
24411         output_combclass, output_bidi_category, output_decimal_digit,
24412         output_digit, output_numeric, output_mirror, output_scripts,
24413         output_ident_category): Use proper width specifier in format strings.
24414
24415 2009-02-07  Bruno Haible  <bruno@clisp.org>
24416
24417         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
24418         failure behaviour.
24419
24420 2009-02-07  Jim Meyering  <meyering@redhat.com>
24421
24422         regex: avoid compilation failure with upcoming gcc-4.4
24423         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
24424         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
24425         "... error: integer overflow in preprocessor expression".
24426
24427 2009-02-05  Ben Pfaff  <blp@gnu.org>
24428
24429         Fix link errors on Windows when close module is used.
24430         * modules/close: Add $(LIB_CLOSE) to Link section.
24431         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
24432         $(LIB_CLOSE) on Windows.
24433
24434 2009-02-05  Jim Meyering  <meyering@redhat.com>
24435
24436         still avoid unused-parameter warnings, but do it cleanly
24437         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
24438         (get_fs_usage): Cast to void instead.
24439         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
24440         (dev_from_mount_options, read_file_system_list): Cast to void.
24441         Prompted by Bruno Haible.
24442
24443 2009-02-04  Jim Meyering  <meyering@redhat.com>
24444
24445         fsusage.c: correct copyright year
24446         * lib/fsusage.c: Reflect year in which the change is pushed into
24447
24448         avoid misc. warnings
24449         * lib/fsusage.c (UNUSED_PARAM): Define.
24450         (get_fs_usage): Mark parameter "disk" as unused.
24451         * lib/getugroups.c (getgrent): Use "void" in prototype.
24452         * lib/mountlist.c: Mark unused parameters.
24453         (read_file_system_list): Declare a local with "const".
24454         * lib/nanosleep.c (getnow): Declare static.
24455         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
24456
24457         dirfd: set errno upon failure
24458         * lib/dirfd.c: Include <errno.h>.
24459         Set errno to ENOTSUP when returning -1.
24460         * modules/dirfd (Depends-on): Add errno.
24461         Suggested by John Kodis <kodis@comcast.net>.
24462
24463 2009-02-01  Bruno Haible  <bruno@clisp.org>
24464
24465         Don't assume sizeof (long) >= sizeof (void *).
24466         * lib/memcmp.c: Include stdint.h.
24467         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
24468         srcp2 to 'const byte *'.
24469         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
24470         types to uintptr_t.
24471         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
24472         * modules/memcmp (Depends-on): Add stdint.
24473         Reported by Ozkan Sezer <sezeroz@gmail.com>.
24474
24475 2009-01-30  Eric Blake  <ebb9@byu.net>
24476
24477         fix more require-before-expand issues
24478         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
24479         expand, AC_PROG_AWK.
24480         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
24481
24482 2009-01-28  Eric Blake  <ebb9@byu.net>
24483
24484         version-etc: use consistent URL formatting
24485         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
24486         Improve formatting.  Use fputs for string without %.
24487
24488 2009-01-28  Jim Meyering  <meyering@redhat.com>
24489
24490         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
24491         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
24492         "underquoted definition of NAME" from autoconf-2.59.
24493
24494 2009-01-28  Bruno Haible  <bruno@clisp.org>
24495
24496         * doc/gnulib.texi: Add "Obsolete modules" to index.
24497
24498 2009-01-28  Jim Meyering  <meyering@redhat.com>
24499
24500         useless-if-before-free: recognize more variants
24501         * build-aux/useless-if-before-free: Also recognize e.g.,
24502         if (NULL != p) free (p);
24503
24504 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
24505
24506         test-getaddrinfo: skip (don't fail) this test when there's no network
24507         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
24508         on the presumption that it means you lack network access.
24509
24510 2009-01-26  Jim Meyering  <meyering@redhat.com>
24511
24512         fflush: avoid warnings on modern systems
24513         * lib/fflush.c (rpl_fflush): Move declarations of locals,
24514         pos and result, into scopes where they're used.
24515
24516 2009-01-26  Eric Blake  <ebb9@byu.net>
24517
24518         Silence warning reintroduced by recent extensions patch.
24519         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
24520         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
24521         autoconf.
24522
24523         Backport improved autoconf semantics of AC_DEFUN_ONCE.
24524         * m4/00gnulib.m4: New file.
24525         * gnulib-tool (func_get_filelist): Always use it.
24526         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
24527         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
24528
24529 2009-01-25  Bruno Haible  <bruno@clisp.org>
24530
24531         Make test-quotearg work on MacOS X and AIX.
24532         * tests/test-quotearg.sh: New file.
24533         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
24534         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
24535         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
24536         include <libintl.h>.
24537         (fake_locale): Remove variable.
24538         (gettext, dgettext, dcgettext): Remove functions.
24539         (main): Instead of setting a fake locale, set a real locale. Call
24540         textdomain and bindtextdomain.
24541         * modules/quotearg-tests (Files): Add the new files.
24542         (Depends-on): Add gettext, setenv, unsetenv.
24543         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
24544         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
24545         Augment TESTS_ENVIRONMENT.
24546
24547 2009-01-25  Bruno Haible  <bruno@clisp.org>
24548
24549         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
24550         fr_FR.ISO8859-1 locale on MacOS X.
24551         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
24552         ja_JP.eucJP locale on MacOS X.
24553         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
24554         zh_CN.GB18030 locale on MacOS X.
24555
24556 2009-01-25  Bruno Haible  <bruno@clisp.org>
24557
24558         Avoid link errors on MacOS X 10.3.
24559         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
24560         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
24561
24562 2009-01-25  Bruno Haible  <bruno@clisp.org>
24563
24564         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
24565         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
24566         * modules/pipe (Files): Remove m4/posix_spawn.m4.
24567         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
24568         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
24569         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
24570         posix_spawnattr_init, posix_spawnattr_setsigmask,
24571         posix_spawnattr_setflags, posix_spawnattr_destroy.
24572
24573         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
24574         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
24575         * modules/execute (Files): Remove m4/posix_spawn.m4.
24576         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
24577         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
24578         posix_spawnattr_init, posix_spawnattr_setsigmask,
24579         posix_spawnattr_setflags, posix_spawnattr_destroy.
24580
24581 2009-01-25  Bruno Haible  <bruno@clisp.org>
24582
24583         * lib/glthread/threadlib.c: Include <stdlib.h>.
24584
24585 2009-01-25  Bruno Haible  <bruno@clisp.org>
24586
24587         * lib/glthread/threadlib.c (dummy): New declaration.
24588
24589 2009-01-25  Bruno Haible  <bruno@clisp.org>
24590
24591         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
24592         multibyte characters also for the GB18030 encoding. Don't crash when
24593         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
24594
24595 2009-01-25  Bruno Haible  <bruno@clisp.org>
24596
24597         Avoid redefining 'struct random_data' on OSF/1 5.1.
24598         * lib/stdlib.in.h: Include <random.h> if it exists.
24599         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
24600         HAVE_RANDOM_H. Include <random.h> when testing whether
24601         'struct random_data' exists.
24602         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
24603
24604 2009-01-25  Bruno Haible  <bruno@clisp.org>
24605
24606         Don't install charset.alias on MacOS X >= 10.3.
24607         * lib/localcharset.c (DARWIN7): New macro.
24608         (get_charset_aliases): Hardcode the result for Darwin7.
24609         * modules/localcharset (install-exec-local): Don't install
24610         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
24611
24612 2009-01-25  Bruno Haible  <bruno@clisp.org>
24613
24614         Don't install charset.alias on mingw and Cygwin.
24615         * modules/localcharset (install-exec-local): Don't install
24616         charset.alias on mingw and Cygwin, if the file does not yet exist.
24617         The result for these platforms is hardcoded in localcharset.c.
24618
24619 2009-01-25  Bruno Haible  <bruno@clisp.org>
24620
24621         Make it possible again to use AC_GNU_SOURCE together with gnulib.
24622         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
24623         before requiring AC_USE_SYSTEM_EXTENSIONS.
24624
24625 2009-01-25  Jim Meyering  <meyering@redhat.com>
24626
24627         c-strtod: avoid warnings
24628         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
24629         "assignment discards qualifiers from pointer target type" warnings.
24630
24631 2009-01-24  Bruno Haible  <bruno@clisp.org>
24632
24633         Add support for non-UTF-8 locales on MacOS X.
24634         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
24635         canonical encodings. For Darwin 7 and newer, don't map traditional
24636         encodings to UTF-8.
24637         Reported by Vincent Lefevre <vincent@vinc17.org>
24638         at <http://savannah.gnu.org/bugs/?25235>.
24639
24640 2009-01-24  Bruno Haible  <bruno@clisp.org>
24641
24642         * doc/gnulib.texi (Obsolete modules): New section.
24643         Reported by Mike Frysinger <vapier@gentoo.org>.
24644
24645 2009-01-24  Bruno Haible  <bruno@clisp.org>
24646
24647         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
24648         (%.dvi): New rule.
24649
24650 2009-01-24  Bruno Haible  <bruno@clisp.org>
24651
24652         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
24653         Reported by Eric Blake.
24654
24655 2009-01-24  Bruno Haible  <bruno@clisp.org>
24656
24657         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
24658         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
24659         Reported by Gary V. Vaughan <gary@gnu.org>.
24660
24661 2009-01-24  Bruno Haible  <bruno@clisp.org>
24662
24663         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
24664
24665 2009-01-23  Bruno Haible  <bruno@clisp.org>
24666
24667         Make c-strtod, c-strtold usable in libraries.
24668         * lib/c-strtod.c: Include string.h instead of xalloc.h.
24669         (C_STRTOD): Call strdup instead of xstrdup.
24670         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
24671         * modules/c-strtold (Depends-on): Likewise.
24672         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
24673         * NEWS: Mention the change.
24674         Reported by Michael Gold <mgold@ncf.ca>.
24675
24676 2009-01-23  Jim Meyering  <meyering@redhat.com>
24677
24678         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
24679         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
24680         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
24681
24682 2009-01-23  Simon Josefsson  <simon@josefsson.org>
24683
24684         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
24685         GNU CoreUtils.
24686         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
24687         * modules/version-etc (Description): Update.
24688
24689 2009-01-22  Bruno Haible  <bruno@clisp.org>
24690
24691         Cache the C locale object.
24692         * lib/c-strtod.c (c_locale_cache): New variable.
24693         (c_locale): New function.
24694         (C_STRTOD): Use it, and don't call freelocale.
24695         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
24696         Suggested by Paolo Bonzini.
24697
24698 2009-01-21  Bruno Haible  <bruno@clisp.org>
24699
24700         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
24701         conditions other than overflow.
24702
24703 2009-01-21  Bruno Haible  <bruno@clisp.org>
24704
24705         * lib/c-strtod.c: Include errno.h.
24706         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
24707         value from STRTOD_L and STRTOD.
24708
24709 2009-01-21  Bruno Haible  <bruno@clisp.org>
24710         and Jim Meyering  <meyering@redhat.com>
24711
24712         nanosleep: skip configure test (fail it) for apple universal builds
24713         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
24714         universal builds, assume that nanosleep does not work.
24715         * modules/nanosleep (Depends-on): Add multiarch.
24716
24717         mktime: skip configure test (fail it) for apple universal builds
24718         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
24719         universal builds, assume that mktime does not work.
24720         * modules/mktime (Depends-on): Add multiarch.
24721
24722 2009-01-21  Eric Blake  <ebb9@byu.net>
24723
24724         multiarch: avoid expand-before-require warning
24725         * modules/multiarch (configure.ac): Require, rather than expand,
24726         gl_MULTIARCH.
24727         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
24728         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
24729         enforce that all clients require it.  Partial reversion of
24730         2008-12-29 patch.
24731
24732         error: avoid expand-before-require warning
24733         * modules/errno (configure.ac): Require, rather than expand,
24734         gl_HEADER_ERRNO_H.
24735         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
24736         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
24737         enforce that all clients require it.
24738
24739         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
24740         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
24741         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
24742         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
24743
24744 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
24745
24746         Revert:
24747         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
24748
24749         regex: do not depend on obsolete modules.
24750         * modules/regex: Remove memcmp and memmove.
24751
24752 2009-01-20  Bruno Haible  <bruno@clisp.org>
24753
24754         Make the 'link' module link on Windows NT 4.
24755         * lib/link.c (_WIN32_WINNT): Don't define.
24756         (CreateHardLinkFuncType): New type.
24757         (CreateHardLinkFunc, initialized): New variables.
24758         (initialize): New function.
24759         (link): Invoke CreateHardLink indirectly through the function pointer.
24760
24761 2009-01-20  Bruno Haible  <bruno@clisp.org>
24762
24763         Fix compilation failure on mingw.
24764         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
24765
24766 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
24767
24768         * doc/c-strtod.texi: Mention a couple of restrictions.
24769
24770 2009-01-20  Jim Meyering  <meyering@redhat.com>
24771
24772         gettimeofday: move more declarations out of functions
24773         * lib/gettimeofday.c: Move extern declarations of tzset and
24774         gmtime out of containing functions.  Prompted by Bruno Haible.
24775
24776 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
24777
24778         regex: do not depend on obsolete modules.
24779         * modules/regex: Remove memcmp and memmove.
24780
24781 2009-01-19  Bruno Haible  <bruno@clisp.org>
24782
24783         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
24784         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
24785         gl_BIGENDIAN, not AC_C_BIGENDIAN.
24786         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
24787         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
24788
24789 2009-01-19  Bruno Haible  <bruno@clisp.org>
24790
24791         * tests/test-link.c: Include <errno.h>.
24792         (main): Exit with code 77 when a hard link cannot be created due to
24793         the file system.
24794         * tests/test-link.sh: Skip test when a hard link cannot be created due
24795         to the file system.
24796         Suggested by Eric Blake.
24797
24798 2009-01-19  Martin Lambers  <marlam@marlam.de>
24799
24800         * modules/link-tests: New file.
24801         * tests/test-link.sh: New file.
24802         * tests/test-link.c: New file.
24803
24804 2009-01-19  Eric Blake  <ebb9@byu.net>
24805
24806         doc: mention another function added in cygwin 1.7.0
24807         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
24808         Another new function in cygwin 1.7.
24809
24810 2009-01-19  Bruno Haible  <bruno@clisp.org>
24811
24812         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
24813         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
24814         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
24815         gl_BIGENDIAN, not AC_C_BIGENDIAN.
24816         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24817         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
24818         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24819         * m4/md4.m4 (gl_MD4): Likewise.
24820         * m4/md5.m4 (gl_MD5): Likewise.
24821         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
24822         * m4/sha1.m4 (gl_SHA1): Likewise.
24823         * m4/sha256.m4 (gl_SHA256): Likewise.
24824         * m4/sha512.m4 (gl_SHA512): Likewise.
24825
24826 2009-01-19  Bruno Haible  <bruno@clisp.org>
24827
24828         * modules/uniname/uniname-tests (Depends-on): Add progname.
24829         * tests/uniname/test-uninames.c: Include progname.h.
24830         (main): Call set_program_name.
24831
24832         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
24833         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
24834         (main): Call set_program_name.
24835
24836         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
24837         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
24838         (main): Call set_program_name.
24839
24840         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
24841         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
24842         (main): Call set_program_name.
24843
24844         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
24845         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
24846         (main): Call set_program_name.
24847
24848         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
24849         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
24850         (main): Call set_program_name.
24851
24852         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
24853         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
24854         (main): Call set_program_name.
24855
24856         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
24857         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
24858         (main): Call set_program_name.
24859
24860         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
24861         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
24862         (main): Call set_program_name.
24863
24864 2009-01-19  Eric Blake  <ebb9@byu.net>
24865
24866         test-unistd: test previous patch
24867         * tests/test-unistd.c: Test *_FILENO macros.
24868
24869         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
24870         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24871         Guarantee a definition.
24872         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
24873         * modules/unistd-safer (Depends-on): Add dependency on unistd.
24874         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
24875         * lib/dup-safer.c (STDERR_FILENO): Likewise.
24876         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24877         Likewise.
24878         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
24879         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
24880         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24881         Likewise.
24882         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
24883         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
24884         (STDERR_FILENO): Likewise.
24885         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
24886         (STDERR_FILENO): Likewise.
24887         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
24888         (STDERR_FILENO): Likewise.
24889         Reported by Elbert Pol.
24890
24891 2009-01-19  Eric Blake  <ebb9@byu.net>
24892
24893         doc: mention more functions added in cygwin 1.7.0
24894         * doc/posix-functions/abort.texi (abort): Update wording related
24895         to cygwin.
24896         * doc/posix-functions/daylight.texi (daylight): Likewise.
24897         * doc/posix-functions/optarg.texi (optarg): Likewise.
24898         * doc/posix-functions/optarg.texi (opterr): Likewise.
24899         * doc/posix-functions/optarg.texi (optind): Likewise.
24900         * doc/posix-functions/optarg.texi (optopt): Likewise.
24901         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
24902         worked in 1.5.x, and was withdrawn in 1.7.
24903         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
24904         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
24905         cygwin versions.
24906         * doc/posix-functions/perror.texi (perror): Likewise.
24907         * doc/posix-functions/printf.texi (printf): Likewise.
24908         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
24909         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
24910         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
24911         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
24912         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24913         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
24914         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24915         Likewise.
24916         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24917         Likewise.
24918         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
24919         this function.
24920         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
24921         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
24922         Likewise.
24923         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
24924         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
24925         * doc/posix-functions/confstr.texi (confstr): Likewise.
24926         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
24927         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
24928         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
24929         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
24930         * doc/posix-functions/fputws.texi (fputws): Likewise.
24931         * doc/posix-functions/fwide.texi (fwide): Likewise.
24932         * doc/posix-functions/getwc.texi (getwc): Likewise.
24933         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
24934         * doc/posix-functions/putwc.texi (putwc): Likewise.
24935         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
24936         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
24937         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
24938         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
24939         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
24940         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
24941         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
24942         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
24943         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
24944         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
24945         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
24946
24947 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
24948
24949         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
24950         * lib/ioctl.c: Include <sys/ioctl.h>.
24951
24952 2009-01-19  Simon Josefsson  <simon@josefsson.org>
24953
24954         * modules/getdate-tests (Depends-on): Add progname.
24955         * tests/test-getdate.c: Use progname module, to avoid link errors
24956         on non-glibc systems.
24957
24958 2009-01-18  Simon Josefsson  <simon@josefsson.org>
24959
24960         * modules/filenamecat-tests (Depends-on): Add progname.
24961         * modules/fstrcmp-tests (Depends-on): Likewise.
24962
24963         * tests/test-filenamecat.c: Use progname module, to avoid link
24964         errors on non-glibc systems.
24965         * tests/test-fstrcmp.c: Likewise.
24966
24967 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
24968
24969         gettimeofday: avoid warning: nested extern declaration of 'localtime'
24970         * lib/gettimeofday.c: Move extern declaration out of function.
24971
24972 2009-01-18  Bruno Haible  <bruno@clisp.org>
24973
24974         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
24975         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
24976         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
24977
24978 2009-01-18  Bruno Haible  <bruno@clisp.org>
24979
24980         * lib/strftime.c (MEMPCPY): Remove unused macro.
24981         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
24982
24983 2009-01-18  Martin Lambers  <marlam@marlam.de>
24984
24985         New module 'link'.
24986         * lib/unistd.in.h (link): New declaration.
24987         * lib/link.c: New file.
24988         * m4/link.m4: New file.
24989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
24990         HAVE_LINK.
24991         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
24992         * modules/link: New file.
24993         * doc/posix-functions/link.texi: Mention the new module.
24994
24995 2009-01-18  Bruno Haible  <bruno@clisp.org>
24996
24997         * tests/test-avltree_list.c (main): Call set_program_name.
24998         * tests/test-avltree_oset.c (main): Likewise.
24999         * tests/test-obstack-printf.c: Include progname.h.
25000         (main): Call set_program_name.
25001         * tests/test-quotearg.c: Include progname.h.
25002         (main): Call set_program_name.
25003         * tests/test-xmemdup0.c: Include progname.h.
25004         (main): Call set_program_name.
25005
25006 2009-01-18  Bruno Haible  <bruno@clisp.org>
25007
25008         New module 'alphasort'.
25009         * lib/dirent.in.h (alphasort): New declaration.
25010         * lib/alphasort.c: New file, from glibc with modifications.
25011         * m4/alphasort.m4: New file.
25012         * modules/alphasort: New file.
25013         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
25014         HAVE_ALPHASORT.
25015         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
25016         HAVE_ALPHASORT.
25017         * doc/posix-functions/alphasort.texi: Mention the new module and the
25018         portability problems.
25019
25020 2009-01-18  Bruno Haible  <bruno@clisp.org>
25021
25022         New module 'scandir'.
25023         * lib/dirent.in.h (scandir): New declaration.
25024         * lib/scandir.c: New file, from glibc with modifications.
25025         * m4/scandir.m4: New file.
25026         * modules/scandir: New file.
25027         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
25028         HAVE_SCANDIR.
25029         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
25030         HAVE_SCANDIR.
25031         * doc/posix-functions/scandir.texi: Mention the new module and the
25032         portability problems.
25033
25034 2009-01-17  Bruno Haible  <bruno@clisp.org>
25035
25036         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
25037         Update documentation.
25038         (func_remove_suffix): Escape all dots in the suffix. Update
25039         documentation.
25040         (func_filter_filelist): Update documentation.
25041         Reported by Ralf Wildenhues.
25042
25043 2009-01-17  Bruno Haible  <bruno@clisp.org>
25044
25045         * modules/dprintf-posix-tests: New file.
25046         * tests/test-dprintf-posix.sh: New file.
25047         * tests/test-dprintf-posix.c: New file.
25048
25049         New modules 'dprintf', 'dprintf-posix'.
25050         * lib/stdio.in.h (dprintf): New declaration.
25051         * lib/dprintf.c: New file.
25052         * m4/dprintf.m4: New file.
25053         * m4/dprintf-posix.m4: New file.
25054         * modules/dprintf: New file.
25055         * modules/dprintf-posix: New file.
25056         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
25057         HAVE_DPRINTF, REPLACE_DPRINTF.
25058         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
25059         HAVE_DPRINTF, REPLACE_DPRINTF.
25060         * doc/posix-functions/dprintf.texi: Mention the new modules.
25061
25062 2009-01-17  Bruno Haible  <bruno@clisp.org>
25063
25064         * modules/vdprintf-posix-tests: New file.
25065         * tests/test-vdprintf-posix.sh: New file.
25066         * tests/test-vdprintf-posix.c: New file.
25067
25068         New modules 'vdprintf', 'vdprintf-posix'.
25069         * lib/stdio.in.h (vdprintf): New declaration.
25070         * lib/vdprintf.c: New file.
25071         * m4/vdprintf.m4: New file.
25072         * m4/vdprintf-posix.m4: New file.
25073         * modules/vdprintf: New file.
25074         * modules/vdprintf-posix: New file.
25075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
25076         HAVE_VDPRINTF, REPLACE_VDPRINTF.
25077         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
25078         HAVE_VDPRINTF, REPLACE_VDPRINTF.
25079         * doc/posix-functions/vdprintf.texi: Mention the new modules.
25080
25081 2009-01-17  Bruno Haible  <bruno@clisp.org>
25082
25083         Fix replacement of fopen on mingw.
25084         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
25085         mingw.
25086
25087 2009-01-17  Bruno Haible  <bruno@clisp.org>
25088
25089         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
25090         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
25091
25092 2009-01-17  Bruno Haible  <bruno@clisp.org>
25093
25094         Avoid test-fflush2.sh failure on mingw.
25095         * tests/test-fflush2.c: Include binary-io.h.
25096         (main): Put standard input into binary mode.
25097         * modules/fflush-tests (Depends-on): Add binary-io.
25098
25099 2009-01-17  Bruno Haible  <bruno@clisp.org>
25100
25101         * lib/wchar.in.h: In another particular situation, include only the
25102         system's <wchar.h> file.
25103         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
25104         Reported by Albert Chin-A-Young <china@thewrittenword.com>
25105         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
25106
25107 2009-01-17  Bruno Haible  <bruno@clisp.org>
25108
25109         Support for stripping executables in --enable-relocatable.
25110         * build-aux/install-reloc: Expect one more argument, or an environment
25111         variable RELOC_STRIP_PROG. If set, strip the destination program and
25112         its wrapper.
25113         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
25114         RELOC_STRIP_PROG.
25115         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
25116         to set RELOCATABLE_STRIP.
25117         * NEWS: Mention the new Makefile requirement.
25118
25119 2009-01-17  Bruno Haible  <bruno@clisp.org>
25120
25121         * build-aux/install-reloc: Remove debugging information left over by
25122         C compiler on MacOS X.
25123
25124 2009-01-17  Bruno Haible  <bruno@clisp.org>
25125
25126         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
25127         * lib/progreloc.c (find_executable): Fix type of pointer passed to
25128         _NSGetExecutablePath.
25129
25130 2009-01-16  Jim Meyering  <meyering@redhat.com>
25131
25132         strerror: avoid warnings about discarding "const"
25133         * lib/strerror.c (rpl_strerror): Instead of returning a const
25134         string from each and every "case", use a variable, and add a single
25135         cast after the switch.
25136
25137 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
25138
25139         * lib/arpa_inet.in.h: Add extern "C" block for C++.
25140
25141 2009-01-16  Bruno Haible  <bruno@clisp.org>
25142
25143         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
25144         array initializer syntax that also works in C++ mode.
25145         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25146
25147 2009-01-16  Jim Meyering  <meyering@redhat.com>
25148
25149         poll: suppress a warning
25150         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
25151         to ignore "...unsigned expression < 0 is always false" warnings.
25152
25153 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
25154
25155         poll: remove declarations of unused variables
25156         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
25157         sockbuf and optlen.
25158
25159 2009-01-15  Bruno Haible  <bruno@clisp.org>
25160
25161         Make fflush-after-ungetc POSIX compliant on BSD systems.
25162         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
25163         (clear_ungetc_buffer): Implement also for other systems.
25164         (rpl_fflush): On glibc systems, invoke
25165         clear_ungetc_buffer_preserving_position. Otherwise, invoke
25166         clear_ungetc_buffer after fetching the stream's position, not before.
25167
25168 2009-01-15  Bruno Haible  <bruno@clisp.org>
25169
25170         Make fflush-after-ungetc POSIX compliant on glibc systems.
25171         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
25172         after ungetc.
25173         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
25174         (rpl_fflush): On glibc systems, simply call the system's fflush
25175         function after clearing the ungetc buffer.
25176         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
25177         Instead, lseek only to the end of file, then use the system's fseeko
25178         for the rest. On glibc systems, reset the EOF indicator bit.
25179
25180 2009-01-15  Jim Meyering  <meyering@redhat.com>
25181
25182         openmp.m4: revert quote-adding change, for portability to older autoconf
25183         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
25184         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
25185         Simon Josefsson noticed the problem when using autoconf-2.61.
25186
25187 2009-01-15  Bruno Haible  <bruno@clisp.org>
25188
25189         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
25190         * tests/test-fflush2.c (ASSERT): Always fail.
25191         (main): Add two tests for fflush() after ungetc(), taking into account
25192         the Austin Group's clarification.
25193         Suggested by Eric Blake.
25194
25195 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
25196
25197         mktime.m4: remove K&R-style function prototypes
25198         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
25199         for the Sun C++ compiler.
25200
25201 2009-01-14  Bruno Haible  <bruno@clisp.org>
25202
25203         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
25204         while including <wchar.h>.
25205         * lib/wchar.in.h: In two particular situations on HP-UX, include only
25206         the system's <wchar.h> file.
25207         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25208
25209 2009-01-14  Bruno Haible  <bruno@clisp.org>
25210
25211         * m4/csharp.m4: Don't mention gettext on the serial number line.
25212         * m4/csharpexec.m4: Likewise.
25213         * m4/eaccess.m4: Likewise.
25214         * m4/javaexec.m4: Likewise.
25215         * m4/sig_atomic_t.m4: Likewise.
25216         * m4/tmpdir.m4: Likewise.
25217         * m4/intldir.m4: Bump gettext version.
25218         * m4/lib-ld.m4: Likewise.
25219
25220 2009-01-14  Bruno Haible  <bruno@clisp.org>
25221
25222         * lib/progname.c (set_program_name): Add more comments.
25223         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25224
25225 2009-01-14  Simon Josefsson  <simon@josefsson.org>
25226
25227         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
25228         were sys/stat.h does not define it.
25229
25230 2009-01-14  Jim Meyering  <meyering@redhat.com>
25231
25232         many *.m4 files: improve m4 quoting
25233         99% of this change was performed by running the following commands:
25234         git ls-files | grep '\.m4$' | xargs perl -pi \
25235           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
25236           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
25237           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
25238           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
25239         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
25240         The remainder were to add Copyright dates, increment serial numbers,
25241         undo some changes in comments, exclude m4/intl.m4, and add quotes
25242         around the "1" in ",1" where the unusual spacing prohibited the
25243         above regexps from doing the job.  For more details, see
25244         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
25245         * m4/acl.m4: Modified.
25246         * m4/afs.m4: Likewise.
25247         * m4/alloca.m4: Likewise.
25248         * m4/argp.m4: Likewise.
25249         * m4/argz.m4: Likewise.
25250         * m4/atexit.m4: Likewise.
25251         * m4/bison-i18n.m4: Likewise.
25252         * m4/bison.m4: Likewise.
25253         * m4/byteswap.m4: Likewise.
25254         * m4/c-stack.m4: Likewise.
25255         * m4/c-strtod.m4: Likewise.
25256         * m4/calloc.m4: Likewise.
25257         * m4/canonicalize-lgpl.m4: Likewise.
25258         * m4/chown.m4: Likewise.
25259         * m4/clock_time.m4: Likewise.
25260         * m4/codeset.m4: Likewise.
25261         * m4/copy-file.m4: Likewise.
25262         * m4/csharp.m4: Likewise.
25263         * m4/csharpcomp.m4: Likewise.
25264         * m4/csharpexec.m4: Likewise.
25265         * m4/d-ino.m4: Likewise.
25266         * m4/d-type.m4: Likewise.
25267         * m4/dirfd.m4: Likewise.
25268         * m4/double-slash-root.m4: Likewise.
25269         * m4/eaccess.m4: Likewise.
25270         * m4/eealloc.m4: Likewise.
25271         * m4/environ.m4: Likewise.
25272         * m4/errno_h.m4: Likewise.
25273         * m4/euidaccess.m4: Likewise.
25274         * m4/execute.m4: Likewise.
25275         * m4/fatal-signal.m4: Likewise.
25276         * m4/fchdir.m4: Likewise.
25277         * m4/fcntl_h.m4: Likewise.
25278         * m4/fileblocks.m4: Likewise.
25279         * m4/filenamecat.m4: Likewise.
25280         * m4/findprog.m4: Likewise.
25281         * m4/flexmember.m4: Likewise.
25282         * m4/fnmatch.m4: Likewise.
25283         * m4/fopen.m4: Likewise.
25284         * m4/fpending.m4: Likewise.
25285         * m4/fprintf-posix.m4: Likewise.
25286         * m4/free.m4: Likewise.
25287         * m4/frexp.m4: Likewise.
25288         * m4/frexpl.m4: Likewise.
25289         * m4/fsusage.m4: Likewise.
25290         * m4/ftruncate.m4: Likewise.
25291         * m4/gc-camellia.m4: Likewise.
25292         * m4/gc-random.m4: Likewise.
25293         * m4/gc.m4: Likewise.
25294         * m4/getaddrinfo.m4: Likewise.
25295         * m4/getcwd-abort-bug.m4: Likewise.
25296         * m4/getcwd-path-max.m4: Likewise.
25297         * m4/getdate.m4: Likewise.
25298         * m4/getdomainname.m4: Likewise.
25299         * m4/getgroups.m4: Likewise.
25300         * m4/gethostname.m4: Likewise.
25301         * m4/gethrxtime.m4: Likewise.
25302         * m4/getline.m4: Likewise.
25303         * m4/getloadavg.m4: Likewise.
25304         * m4/getndelim2.m4: Likewise.
25305         * m4/getpass.m4: Likewise.
25306         * m4/gettext.m4: Likewise.
25307         * m4/gettime.m4: Likewise.
25308         * m4/gettimeofday.m4: Likewise.
25309         * m4/gnulib-common.m4: Likewise.
25310         * m4/group-member.m4: Likewise.
25311         * m4/host-os.m4: Likewise.
25312         * m4/iconv.m4: Likewise.
25313         * m4/iconv_open.m4: Likewise.
25314         * m4/inet_ntop.m4: Likewise.
25315         * m4/inet_pton.m4: Likewise.
25316         * m4/inline.m4: Likewise.
25317         * m4/intldir.m4: Likewise.
25318         * m4/intlmacosx.m4: Likewise.
25319         * m4/intmax.m4: Likewise.
25320         * m4/intmax_t.m4: Likewise.
25321         * m4/inttypes.m4: Likewise.
25322         * m4/inttypes_h.m4: Likewise.
25323         * m4/inttypes-pri.m4: Likewise.
25324         * m4/isapipe.m4: Likewise.
25325         * m4/isnand.m4: Likewise.
25326         * m4/isnanf.m4: Likewise.
25327         * m4/isnanl.m4: Likewise.
25328         * m4/javacomp.m4: Likewise.
25329         * m4/javaexec.m4: Likewise.
25330         * m4/jm-winsz1.m4: Likewise.
25331         * m4/jm-winsz2.m4: Likewise.
25332         * m4/lchown.m4: Likewise.
25333         * m4/lcmessage.m4: Likewise.
25334         * m4/ldexpl.m4: Likewise.
25335         * m4/lib-ld.m4: Likewise.
25336         * m4/lib-link.m4: Likewise.
25337         * m4/libsigsegv.m4: Likewise.
25338         * m4/link-follow.m4: Likewise.
25339         * m4/localcharset.m4: Likewise.
25340         * m4/locale-fr.m4: Likewise.
25341         * m4/locale-ja.m4: Likewise.
25342         * m4/locale-tr.m4: Likewise.
25343         * m4/locale-zh.m4: Likewise.
25344         * m4/lock.m4: Likewise.
25345         * m4/longlong.m4: Likewise.
25346         * m4/ls-mntd-fs.m4: Likewise.
25347         * m4/lstat.m4: Likewise.
25348         * m4/malloc.m4: Likewise.
25349         * m4/mathl.m4: Likewise.
25350         * m4/mbrtowc.m4: Likewise.
25351         * m4/mbstate_t.m4: Likewise.
25352         * m4/mbswidth.m4: Likewise.
25353         * m4/memchr.m4: Likewise.
25354         * m4/memcmp.m4: Likewise.
25355         * m4/memcpy.m4: Likewise.
25356         * m4/memmem.m4: Likewise.
25357         * m4/memmove.m4: Likewise.
25358         * m4/mempcpy.m4: Likewise.
25359         * m4/memrchr.m4: Likewise.
25360         * m4/memset.m4: Likewise.
25361         * m4/minmax.m4: Likewise.
25362         * m4/mkdir-slash.m4: Likewise.
25363         * m4/mkdtemp.m4: Likewise.
25364         * m4/mktime.m4: Likewise.
25365         * m4/mmap-anon.m4: Likewise.
25366         * m4/mountlist.m4: Likewise.
25367         * m4/nanosleep.m4: Likewise.
25368         * m4/nls.m4: Likewise.
25369         * m4/nocrash.m4: Likewise.
25370         * m4/open.m4: Likewise.
25371         * m4/openat.m4: Likewise.
25372         * m4/openmp.m4: Likewise.
25373         * m4/pathmax.m4: Likewise.
25374         * m4/perl.m4: Likewise.
25375         * m4/physmem.m4: Likewise.
25376         * m4/pipe.m4: Likewise.
25377         * m4/po.m4: Likewise.
25378         * m4/poll.m4: Likewise.
25379         * m4/posixtm.m4: Likewise.
25380         * m4/posixver.m4: Likewise.
25381         * m4/printf-frexp.m4: Likewise.
25382         * m4/printf-frexpl.m4: Likewise.
25383         * m4/printf-posix.m4: Likewise.
25384         * m4/printf-posix-rpl.m4: Likewise.
25385         * m4/printf.m4: Likewise.
25386         * m4/progtest.m4: Likewise.
25387         * m4/putenv.m4: Likewise.
25388         * m4/readline.m4: Likewise.
25389         * m4/readlink.m4: Likewise.
25390         * m4/readutmp.m4: Likewise.
25391         * m4/realloc.m4: Likewise.
25392         * m4/regex.m4: Likewise.
25393         * m4/relocatable.m4: Likewise.
25394         * m4/relocatable-lib.m4: Likewise.
25395         * m4/rename-dest-slash.m4: Likewise.
25396         * m4/rename.m4: Likewise.
25397         * m4/rmdir-errno.m4: Likewise.
25398         * m4/rmdir.m4: Likewise.
25399         * m4/roundf.m4: Likewise.
25400         * m4/roundl.m4: Likewise.
25401         * m4/rpmatch.m4: Likewise.
25402         * m4/save-cwd.m4: Likewise.
25403         * m4/selinux-selinux-h.m4: Likewise.
25404         * m4/setenv.m4: Likewise.
25405         * m4/settime.m4: Likewise.
25406         * m4/sig2str.m4: Likewise.
25407         * m4/sig_atomic_t.m4: Likewise.
25408         * m4/signalblocking.m4: Likewise.
25409         * m4/signbit.m4: Likewise.
25410         * m4/sigpipe.m4: Likewise.
25411         * m4/sockets.m4: Likewise.
25412         * m4/sockpfaf.m4: Likewise.
25413         * m4/st_dm_mode.m4: Likewise.
25414         * m4/stat-time.m4: Likewise.
25415         * m4/stdbool.m4: Likewise.
25416         * m4/stdint.m4: Likewise.
25417         * m4/stdint_h.m4: Likewise.
25418         * m4/stpcpy.m4: Likewise.
25419         * m4/stpncpy.m4: Likewise.
25420         * m4/strcase.m4: Likewise.
25421         * m4/strchrnul.m4: Likewise.
25422         * m4/strcspn.m4: Likewise.
25423         * m4/strdup.m4: Likewise.
25424         * m4/strftime.m4: Likewise.
25425         * m4/strndup.m4: Likewise.
25426         * m4/strnlen.m4: Likewise.
25427         * m4/strpbrk.m4: Likewise.
25428         * m4/strptime.m4: Likewise.
25429         * m4/strsep.m4: Likewise.
25430         * m4/strtod.m4: Likewise.
25431         * m4/strtoimax.m4: Likewise.
25432         * m4/strtok_r.m4: Likewise.
25433         * m4/strtol.m4: Likewise.
25434         * m4/strtoll.m4: Likewise.
25435         * m4/strtoul.m4: Likewise.
25436         * m4/strtoull.m4: Likewise.
25437         * m4/strtoumax.m4: Likewise.
25438         * m4/strverscmp.m4: Likewise.
25439         * m4/threadlib.m4: Likewise.
25440         * m4/timegm.m4: Likewise.
25441         * m4/tm_gmtoff.m4: Likewise.
25442         * m4/tmpdir.m4: Likewise.
25443         * m4/tmpfile.m4: Likewise.
25444         * m4/tzset.m4: Likewise.
25445         * m4/uintmax_t.m4: Likewise.
25446         * m4/unlinkdir.m4: Likewise.
25447         * m4/unlocked-io.m4: Likewise.
25448         * m4/uptime.m4: Likewise.
25449         * m4/userspec.m4: Likewise.
25450         * m4/utimbuf.m4: Likewise.
25451         * m4/utime.m4: Likewise.
25452         * m4/utimes-null.m4: Likewise.
25453         * m4/utimes.m4: Likewise.
25454         * m4/vararrays.m4: Likewise.
25455         * m4/vasnprintf.m4: Likewise.
25456         * m4/vfprintf-posix.m4: Likewise.
25457         * m4/vprintf-posix.m4: Likewise.
25458         * m4/wait-process.m4: Likewise.
25459         * m4/wchar_t.m4: Likewise.
25460         * m4/wint_t.m4: Likewise.
25461         * m4/write-any-file.m4: Likewise.
25462         * m4/yield.m4: Likewise.
25463
25464 2009-01-13  Bruno Haible  <bruno@clisp.org>
25465
25466         Avoid test-copy-file.sh failures when ACL support insufficient.
25467         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
25468         TESTS_ENVIRONMENT.
25469         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
25470         Reported by Jim Meyering.
25471
25472 2009-01-13  Bruno Haible  <bruno@clisp.org>
25473
25474         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
25475         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
25476         * modules/unistdio/u8-printf-parse (Files): Likewise.
25477         * modules/unistdio/u32-printf-parse (Files): Likewise.
25478         * modules/unistdio/ulc-printf-parse (Files): Likewise.
25479
25480 2009-01-13  Simon Josefsson  <simon@josefsson.org>
25481
25482         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
25483         and m4/inttypes_h.m4 too.
25484
25485 2009-01-12  Eric Blake  <ebb9@byu.net>
25486
25487         tests: IRIX 6.2 cc can't compile -0.0 into .data
25488         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
25489         rather than at compile-time.
25490         * tests/test-floorl.c (minus_zero): Likewise.
25491         * tests/test-frexpl.c (minus_zero): Likewise.
25492         * tests/test-isnan.c (minus_zerol): Likewise.
25493         * tests/test-isnanl.h (minus_zero): Likewise.
25494         * tests/test-ldexpl.c (minus_zero): Likewise.
25495         * tests/test-roundl.c (minus_zero): Likewise.
25496         * tests/test-signbit.c (minus_zerol): Likewise.
25497         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25498         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25499         * tests/test-truncl.c (minus_zero): Likewise.
25500         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25501         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25502         Reported by Tom G. Christensen and Nelson H. F. Beebe.
25503
25504 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25505
25506         regex: fix glibc bug 9697
25507         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
25508         handling.
25509
25510 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25511
25512         regex: fix glibc bug 697
25513         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
25514         being NULL also if there are no backreferences.
25515
25516 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25517
25518         regex: merge glibc changes
25519         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
25520         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
25521         re_string_skip_chars, re_string_reconstruct): Likewise.
25522         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
25523
25524 2009-01-07  Jim Meyering  <meyering@redhat.com>
25525
25526         poll: filter through cppi
25527         * lib/poll.c: Indent cpp directives to reflect nesting.
25528
25529 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
25530
25531         poll: don't return uninitialized
25532         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
25533
25534 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
25535
25536         avoid compile failure on AIX 6.1
25537         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
25538         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
25539
25540 2009-01-04  Jim Meyering  <meyering@redhat.com>
25541
25542         remove duplicate inclusion of <stdio.h>
25543         * tests/test-fprintf-posix.c: Likewise.
25544         * tests/test-printf-posix.c: Likewise.
25545         * tests/test-snprintf-posix.c: Likewise.
25546         * tests/test-sprintf-posix.c: Likewise.
25547         * tests/test-vasprintf-posix.c: Likewise.
25548         * tests/test-vfprintf-posix.c: Likewise.
25549         * tests/test-vprintf-posix.c: Likewise.
25550         * tests/test-vsnprintf-posix.c: Likewise.
25551         * tests/test-vsprintf-posix.c: Likewise.
25552
25553 2009-01-03  Jim Meyering  <meyering@redhat.com>
25554
25555         gnulib-tool: fix sed-based filtering
25556         * gnulib-tool (func_filter_filelist): Remove extra backslash
25557         in sed_fff_filter definition.
25558
25559 2009-01-02  Jim Meyering  <meyering@redhat.com>
25560
25561         strftime: avoid compilation failure on Solaris 2.6
25562         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
25563         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
25564         Don't #define mbrlen or mbsinit, since now they're guaranteed to
25565         be available.  Reported by Tom G. Christensen.  Details in
25566         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
25567
25568 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25569             Bruno Haible  <bruno@clisp.org>
25570
25571         Speed up gnulib-tool by doing more string processing through shell
25572         built-ins.
25573         * gnulib-tool (fast_func_append): New variable.
25574         (func_remove_prefix, func_remove_suffix): New functions.
25575         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
25576         (func_filter_filelist): New function.
25577         (func_get_dependencies): Use func_remove_suffix instead of sed.
25578         (func_get_automake_snippet): Use func_filter_filelist instead of a
25579         subshell and sed invocation.
25580
25581 2009-01-01  Bruno Haible  <bruno@clisp.org>
25582
25583         Fix a security bug.
25584         * gnulib-tool (func_import, import, update): Don't allow the characters
25585         '"', '$', '`', '\' in macro arguments that become part of commands that
25586         are evaluated.
25587
25588 2009-01-01  Bruno Haible  <bruno@clisp.org>
25589
25590         * gnulib-tool (func_reset_sigpipe): Add more comments.
25591
25592 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25593
25594         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
25595         func_emit_tests_Makefile_am, func_import): Abort loops early if we
25596         already know the answer.
25597
25598 2009-01-01  Jim Meyering  <meyering@redhat.com>
25599
25600         * lib/version-etc.c (version_etc_va): Update copyright year.
25601
25602 2008-12-30  Bruno Haible  <bruno@clisp.org>
25603
25604         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
25605         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
25606         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
25607
25608 2008-12-29  Eric Blake  <ebb9@byu.net>
25609
25610         multiarch: avoid autoconf AC_REQUIRE bug
25611         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
25612         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
25613         2.63 and older.
25614         Reported by Bruno Haible, and analyzed in
25615         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
25616
25617 2008-12-29  Bruno Haible  <bruno@clisp.org>
25618
25619         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
25620         files in subdirectories correctly.
25621         Reported by Ralf Wildenhues.
25622
25623 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25624
25625         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
25626         rather than 'join FILE -', for Solaris join.
25627
25628 2008-12-29  Bruno Haible  <bruno@clisp.org>
25629
25630         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
25631         quoting.
25632         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25633         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25634         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25635         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
25636         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25637         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25638         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25639         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25640         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25641         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25642         * m4/nls.m4 (AM_NLS): Likewise.
25643         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
25644         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25645         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25646         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25647         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25648         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25649         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
25650         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25651         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25652         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25653         * m4/xsize.m4 (gl_XSIZE): Likewise.
25654         Suggested by Jim Meyering.
25655
25656 2008-11-17  Bruce Korb  <bkorb@gnu.org>
25657
25658         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
25659         * lib/parse-duration.c: use a switch instead of cascading if's.
25660
25661 2008-12-29  Eric Blake  <ebb9@byu.net>
25662
25663         wchar.h: supply WEOF on Irix 5.3
25664         * lib/wchar.in.h (wint_t): Also supply WEOF.
25665         * lib/wctype.in.h (wint_t): Likewise.
25666         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
25667         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
25668         Reported by Tom G. Christensen.
25669
25670 2008-12-26  Bruno Haible  <bruno@clisp.org>
25671
25672         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
25673         i486, i586, i686.
25674
25675 2008-12-26  Bruno Haible  <bruno@clisp.org>
25676
25677         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
25678
25679 2008-12-26  Bruno Haible  <bruno@clisp.org>
25680
25681         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
25682         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
25683         not __STDC_CONSTANT_MACROS.
25684         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25685
25686 2008-12-25  Bruno Haible  <bruno@clisp.org>
25687
25688         Add support for universal builds to vasnprintf.
25689         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
25690         universal builds, guess no.
25691         * modules/vasnprintf-posix (Depends-on): Add multiarch.
25692         * modules/vasprintf-posix (Depends-on): Likewise.
25693         * modules/fprintf-posix (Depends-on): Likewise.
25694         * modules/vfprintf-posix (Depends-on): Likewise.
25695         * modules/snprintf-posix (Depends-on): Likewise.
25696         * modules/vsnprintf-posix (Depends-on): Likewise.
25697         * modules/sprintf-posix (Depends-on): Likewise.
25698         * modules/vsprintf-posix (Depends-on): Likewise.
25699         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25700         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25701         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25702         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25703         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25704         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25705         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25706
25707         Add support for universal builds to <inttypes.h>.
25708         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
25709         _SCNu64_PREFIX): In Apple
25710         universal builds, define directly, using _LP64.
25711         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
25712         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
25713         * modules/inttypes (Depends-on): Add multiarch.
25714         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
25715
25716         Add support for universal builds to <stdint.h>.
25717         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
25718         universal builds, define directly, using _LP64.
25719         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
25720         Apple universal builds, don't test for the size and suffix of ptrdiff_t
25721         and size_t.
25722         * modules/stdint (Depends-on): Add multiarch.
25723         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
25724
25725         New module 'multiarch'.
25726         * modules/multiarch: New file.
25727         * m4/multiarch.m4: New file.
25728
25729 2008-12-25  Bruno Haible  <bruno@clisp.org>
25730
25731         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
25732
25733 2008-12-25  Bruno Haible  <bruno@clisp.org>
25734
25735         * modules/btowc (License): Relicense under LGPLv2+.
25736         * modules/mbsinit (License): Likewise.
25737         * modules/mbrtowc (License): Likewise.
25738         * modules/wcrtomb (License): Likewise.
25739         * modules/streq (License): Likewise.
25740         Reported by David Lutterkort <lutter@redhat.com>.
25741
25742 2008-12-23  Bruno Haible  <bruno@clisp.org>
25743
25744         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
25745
25746 2008-12-23  Bruno Haible  <bruno@clisp.org>
25747
25748         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
25749         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
25750         GETADDRINFO_LIB, not in LIBS.
25751         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
25752         * modules/canon-host (Link): Likewise.
25753         * NEWS: Mention the change.
25754         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
25755         GETADDRINFO_LIB.
25756
25757 2008-12-22  Bruno Haible  <bruno@clisp.org>
25758
25759         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
25760         * doc/posix-functions/iswalpha_l.texi: Likewise.
25761         * doc/posix-functions/iswblank_l.texi: Likewise.
25762         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25763         * doc/posix-functions/iswctype_l.texi: Likewise.
25764         * doc/posix-functions/iswdigit_l.texi: Likewise.
25765         * doc/posix-functions/iswgraph_l.texi: Likewise.
25766         * doc/posix-functions/iswlower_l.texi: Likewise.
25767         * doc/posix-functions/iswprint_l.texi: Likewise.
25768         * doc/posix-functions/iswpunct_l.texi: Likewise.
25769         * doc/posix-functions/iswspace_l.texi: Likewise.
25770         * doc/posix-functions/iswupper_l.texi: Likewise.
25771         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25772         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
25773         * doc/posix-functions/open_wmemstream.texi: Likewise.
25774         * doc/posix-functions/swscanf.texi: Likewise.
25775         * doc/posix-functions/towctrans_l.texi: Likewise.
25776         * doc/posix-functions/towlower.texi: Likewise.
25777         * doc/posix-functions/towlower_l.texi: Likewise.
25778         * doc/posix-functions/towupper.texi: Likewise.
25779         * doc/posix-functions/towupper_l.texi: Likewise.
25780         * doc/posix-functions/vfwprintf.texi: Likewise.
25781         * doc/posix-functions/vfwscanf.texi: Likewise.
25782         * doc/posix-functions/vswscanf.texi: Likewise.
25783         * doc/posix-functions/vwprintf.texi: Likewise.
25784         * doc/posix-functions/vwscanf.texi: Likewise.
25785         * doc/posix-functions/wcpcpy.texi: Likewise.
25786         * doc/posix-functions/wcpncpy.texi: Likewise.
25787         * doc/posix-functions/wcscasecmp.texi: Likewise.
25788         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
25789         * doc/posix-functions/wcscoll_l.texi: Likewise.
25790         * doc/posix-functions/wcsdup.texi: Likewise.
25791         * doc/posix-functions/wcsncasecmp.texi: Likewise.
25792         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
25793         * doc/posix-functions/wcsnlen.texi: Likewise.
25794         * doc/posix-functions/wcsnrtombs.texi: Likewise.
25795         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25796         * doc/posix-functions/wctrans_l.texi: Likewise.
25797         * doc/posix-functions/wctype_l.texi: Likewise.
25798         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
25799         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
25800         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
25801         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
25802         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
25803         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
25804         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
25805         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
25806         * doc/glibc-functions/wcschrnul.texi: Likewise.
25807         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25808         * doc/glibc-functions/wcstod_l.texi: Likewise.
25809         * doc/glibc-functions/wcstof_l.texi: Likewise.
25810         * doc/glibc-functions/wcstol_l.texi: Likewise.
25811         * doc/glibc-functions/wcstold_l.texi: Likewise.
25812         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25813         * doc/glibc-functions/wcstoq.texi: Likewise.
25814         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25815         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25816         * doc/glibc-functions/wcstouq.texi: Likewise.
25817         * doc/glibc-functions/wmempcpy.texi: Likewise.
25818
25819 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
25820             Eric Blake  <ebb9@byu.net>
25821             Paolo Bonzini  <bonzini@gnu.org>
25822             Bruno Haible  <bruno@clisp.org>
25823
25824         Make c-stack work on Haiku.
25825         * lib/c-stack.c (SA_ONSTACK): Define fallback.
25826         (c_stack_action): Use SA_ONSTACK flag.
25827
25828 2008-12-22  Bruno Haible  <bruno@clisp.org>
25829
25830         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
25831
25832 2008-12-22  Bruno Haible  <bruno@clisp.org>
25833
25834         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
25835         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
25836         being overridden.
25837         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
25838         New macros.
25839         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
25840         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
25841         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
25842         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
25843
25844 2008-12-22  Bruno Haible  <bruno@clisp.org>
25845
25846         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
25847         from test code.
25848
25849 2008-12-22  Eric Blake  <ebb9@byu.net>
25850
25851         Avoid gcc warnings on cygwin.
25852         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
25853         Avoid unused variable.
25854         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
25855         Likewise.
25856
25857 2008-12-22  Bruno Haible  <bruno@clisp.org>
25858
25859         Remove HAVE_MBRTOWC conditionals.
25860         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
25861         (mbscasecmp): Assume mbrtowc function.
25862         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
25863         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
25864         * lib/mbschr.c: Include mbuiter.h unconditionally.
25865         (mbschr): Assume mbrtowc function.
25866         * lib/mbscspn.c: Include mbuiter.h unconditionally.
25867         (mbscspn): Assume mbrtowc function.
25868         * lib/mbslen.c: Include mbuiter.h unconditionally.
25869         (mbslen): Assume mbrtowc function.
25870         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
25871         (mbsncasecmp): Assume mbrtowc function.
25872         * lib/mbsnlen.c: Include mbiter.h unconditionally.
25873         (mbsnlen): Assume mbrtowc function.
25874         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
25875         (mbspbrk): Assume mbrtowc function.
25876         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
25877         (mbspcasecmp): Assume mbrtowc function.
25878         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
25879         (mbsrchr): Assume mbrtowc function.
25880         * lib/mbssep.c: Include mbuiter.h unconditionally.
25881         (mbssep): Assume mbrtowc function.
25882         * lib/mbsspn.c: Include mbuiter.h unconditionally.
25883         (mbsspn): Assume mbrtowc function.
25884         * lib/mbsstr.c: Include mbuiter.h unconditionally.
25885         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
25886         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
25887         (mbstok_r): Assume mbrtowc function.
25888         * lib/propername.c: Include mbuiter.h unconditionally.
25889         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
25890         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
25891         (trim2): Assume mbrtowc function.
25892         * lib/mbswidth.c (mbsinit): Remove fallback definition.
25893         (mbsnwidth): Assume mbrtowc function.
25894         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
25895         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
25896         fallback definitions.
25897         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
25898
25899 2008-12-22  Bruno Haible  <bruno@clisp.org>
25900
25901         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
25902
25903 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
25904
25905         * modules/regex: Request emulations for the mb*/wc* functions we need.
25906         * m4/regex.m4: Don't look for those functions here.
25907         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
25908
25909 2008-12-22  Bruno Haible  <bruno@clisp.org>
25910
25911         * modules/fnmatch (Depends-on): Remove duplicated dependency.
25912
25913 2008-12-21  Bruno Haible  <bruno@clisp.org>
25914
25915         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
25916         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
25917         (Include): Remove conditionalization.
25918         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
25919         (Include): Remove conditionalization.
25920         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
25921         (Include): Remove conditionalization.
25922         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
25923         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25924         * NEWS: Mention the change.
25925         Reported by Alan Hourihane <alanh@fairlite.co.uk>
25926         via Sergey Poznyakoff <gray@gnu.org.ua>.
25927
25928 2008-12-21  Bruno Haible  <bruno@clisp.org>
25929
25930         * MODULES.html.sh (Extended multibyte and wide character utilities
25931         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
25932         wcrtomb, wcsrtombs.
25933         (Support for systems lacking POSIX:2008): Add accept, bind, close,
25934         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
25935         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
25936         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
25937
25938 2008-12-21  Bruno Haible  <bruno@clisp.org>
25939
25940         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
25941
25942 2008-12-21  Bruno Haible  <bruno@clisp.org>
25943
25944         * modules/wcsnrtombs-tests: New file.
25945         * tests/test-wcsnrtombs1.sh: New file.
25946         * tests/test-wcsnrtombs2.sh: New file.
25947         * tests/test-wcsnrtombs3.sh: New file.
25948         * tests/test-wcsnrtombs4.sh: New file.
25949         * tests/test-wcsnrtombs.c: New file.
25950
25951         New module 'wcsnrtombs'.
25952         * lib/wchar.in.h (wcsnrtombs): New declaration.
25953         * lib/wcsnrtombs.c: New file.
25954         * lib/wcsrtombs-state.c: New file.
25955         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
25956         (internal_state): Remove variable.
25957         * m4/wcsnrtombs.m4: New file.
25958         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
25959         compilation units.
25960         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
25961         HAVE_WCSNRTOMBS.
25962         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
25963         HAVE_WCSNRTOMBS.
25964         * modules/wcsnrtombs: New file.
25965         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
25966         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
25967
25968 2008-12-21  Bruno Haible  <bruno@clisp.org>
25969
25970         * modules/wcsrtombs-tests: New file.
25971         * tests/test-wcsrtombs1.sh: New file.
25972         * tests/test-wcsrtombs2.sh: New file.
25973         * tests/test-wcsrtombs3.sh: New file.
25974         * tests/test-wcsrtombs4.sh: New file.
25975         * tests/test-wcsrtombs.c: New file.
25976
25977         New module 'wcsrtombs'.
25978         * lib/wchar.in.h (wcsrtombs): New declaration.
25979         * lib/wcsrtombs.c: New file.
25980         * m4/wcsrtombs.m4: New file.
25981         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
25982         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
25983         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
25984         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
25985         * modules/wcsrtombs: New file.
25986         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
25987         bugs.
25988
25989 2008-12-21  Bruno Haible  <bruno@clisp.org>
25990
25991         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
25992         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
25993         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
25994         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
25995         if not correct.
25996         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
25997         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
25998         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
25999         m4/locale-zh.m4, m4/codeset.m4.
26000         * doc/posix-functions/wcrtomb.texi: Document the bug.
26001
26002 2008-12-21  Bruno Haible  <bruno@clisp.org>
26003
26004         Work around a btowc() bug on IRIX 6.5.
26005         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
26006         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
26007         REPLACE_WTOBC if not.
26008         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
26009         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
26010         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
26011
26012 2008-12-21  Bruno Haible  <bruno@clisp.org>
26013
26014         * modules/wcrtomb-tests: New file.
26015         * tests/test-wcrtomb.sh: New file.
26016         * tests/test-wcrtomb.c: New file.
26017
26018         New module 'wcrtomb'.
26019         * lib/wchar.in.h (wcrtomb): New declaration.
26020         * lib/wcrtomb.c: New file.
26021         * m4/wcrtomb.m4: New file.
26022         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
26023         HAVE_WCRTOMB.
26024         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
26025         HAVE_WCRTOMB.
26026         * modules/wcrtomb: New file.
26027         * doc/posix-functions/wcrtomb.texi: Mention the new module.
26028
26029 2008-12-21  Bruno Haible  <bruno@clisp.org>
26030
26031         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
26032         * modules/mbsrtowcs (Files): Likewise.
26033         * modules/wctob (Files): Likewise.
26034         * modules/c-strcase-tests (Files): Likewise.
26035         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26036         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26037         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26038         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26039         * modules/vasnprintf-posix-tests (Files): Likewise.
26040
26041 2008-12-21  William Pursell  <bill.pursell@gmail.com>
26042
26043         gitlog-to-changelog: pass all command-line arguments to git-log
26044         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
26045         it is sometimes convenient to filter the commits in various ways.
26046         gitlog-to-changelog only allows --since to specify a start date,
26047         but git-log itself supports many other filtering mechanisms.
26048         At the moment, I want to filter by branch name.  Rather than
26049         adding a --branch option to gitlog-to-changelog, it seems more
26050         flexible to simply pass all options directly to git-log and let
26051         git do the work.  Notice that this effectively makes --since a
26052         redundant option for gitlog-to-changelog, but removing it would
26053         require current usage to change since calls would then require
26054         an additional '--'.
26055
26056 2008-12-21  Bruno Haible  <bruno@clisp.org>
26057
26058         * modules/mbsnrtowcs-tests: New file.
26059         * tests/test-mbsnrtowcs1.sh: New file.
26060         * tests/test-mbsnrtowcs2.sh: New file.
26061         * tests/test-mbsnrtowcs3.sh: New file.
26062         * tests/test-mbsnrtowcs4.sh: New file.
26063         * tests/test-mbsnrtowcs.c: New file.
26064
26065         New module 'mbsnrtowcs'.
26066         * lib/wchar.in.h (mbsnrtowcs): New declaration.
26067         * lib/mbsnrtowcs.c: New file.
26068         * lib/mbsrtowcs-state.c: New file.
26069         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
26070         (internal_state): Remove variable.
26071         * m4/mbsnrtowcs.m4: New file.
26072         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
26073         compilation units.
26074         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
26075         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
26076         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
26077         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
26078         * modules/mbsnrtowcs: New file.
26079         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
26080         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
26081         portability problem.
26082
26083 2008-12-21  Bruno Haible  <bruno@clisp.org>
26084
26085         Work around mbsrtowcs bug.
26086         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
26087         (gl_FUNC_MBSRTOWCS): Invoke it.
26088         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26089         m4/locale-zh.m4.
26090         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
26091
26092 2008-12-21  Bruno Haible  <bruno@clisp.org>
26093
26094         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
26095
26096 2008-12-21  Bruno Haible  <bruno@clisp.org>
26097
26098         Update doc for AIX.
26099         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
26100         16-bit wchar_t type.
26101         * doc/posix-functions/btowc.texi: Likewise.
26102         * doc/posix-functions/fgetwc.texi: Likewise.
26103         * doc/posix-functions/fgetws.texi: Likewise.
26104         * doc/posix-functions/fputwc.texi: Likewise.
26105         * doc/posix-functions/fputws.texi: Likewise.
26106         * doc/posix-functions/fwide.texi: Likewise.
26107         * doc/posix-functions/fwprintf.texi: Likewise.
26108         * doc/posix-functions/fwscanf.texi: Likewise.
26109         * doc/posix-functions/getwchar.texi: Likewise.
26110         * doc/posix-functions/getwc.texi: Likewise.
26111         * doc/posix-functions/iswalnum.texi: Likewise.
26112         * doc/posix-functions/iswalpha.texi: Likewise.
26113         * doc/posix-functions/iswblank.texi: Likewise.
26114         * doc/posix-functions/iswcntrl.texi: Likewise.
26115         * doc/posix-functions/iswctype.texi: Likewise.
26116         * doc/posix-functions/iswdigit.texi: Likewise.
26117         * doc/posix-functions/iswgraph.texi: Likewise.
26118         * doc/posix-functions/iswlower.texi: Likewise.
26119         * doc/posix-functions/iswprint.texi: Likewise.
26120         * doc/posix-functions/iswpunct.texi: Likewise.
26121         * doc/posix-functions/iswspace.texi: Likewise.
26122         * doc/posix-functions/iswupper.texi: Likewise.
26123         * doc/posix-functions/iswxdigit.texi: Likewise.
26124         * doc/posix-functions/mbrtowc.texi: Likewise.
26125         * doc/posix-functions/mbsrtowcs.texi: Likewise.
26126         * doc/posix-functions/mbstowcs.texi: Likewise.
26127         * doc/posix-functions/mbtowc.texi: Likewise.
26128         * doc/posix-functions/putwchar.texi: Likewise.
26129         * doc/posix-functions/putwc.texi: Likewise.
26130         * doc/posix-functions/swprintf.texi: Likewise.
26131         * doc/posix-functions/tolower.texi: Likewise.
26132         * doc/posix-functions/toupper.texi: Likewise.
26133         * doc/posix-functions/towctrans.texi: Likewise.
26134         * doc/posix-functions/ungetwc.texi: Likewise.
26135         * doc/posix-functions/vswprintf.texi: Likewise.
26136         * doc/posix-functions/wcrtomb.texi: Likewise.
26137         * doc/posix-functions/wcscat.texi: Likewise.
26138         * doc/posix-functions/wcschr.texi: Likewise.
26139         * doc/posix-functions/wcscmp.texi: Likewise.
26140         * doc/posix-functions/wcscoll.texi: Likewise.
26141         * doc/posix-functions/wcscpy.texi: Likewise.
26142         * doc/posix-functions/wcscspn.texi: Likewise.
26143         * doc/posix-functions/wcsftime.texi: Likewise.
26144         * doc/posix-functions/wcslen.texi: Likewise.
26145         * doc/posix-functions/wcsncat.texi: Likewise.
26146         * doc/posix-functions/wcsncmp.texi: Likewise.
26147         * doc/posix-functions/wcsncpy.texi: Likewise.
26148         * doc/posix-functions/wcspbrk.texi: Likewise.
26149         * doc/posix-functions/wcsrchr.texi: Likewise.
26150         * doc/posix-functions/wcsrtombs.texi: Likewise.
26151         * doc/posix-functions/wcsspn.texi: Likewise.
26152         * doc/posix-functions/wcsstr.texi: Likewise.
26153         * doc/posix-functions/wcstod.texi: Likewise.
26154         * doc/posix-functions/wcstof.texi: Likewise.
26155         * doc/posix-functions/wcstoimax.texi: Likewise.
26156         * doc/posix-functions/wcstok.texi: Likewise.
26157         * doc/posix-functions/wcstold.texi: Likewise.
26158         * doc/posix-functions/wcstoll.texi: Likewise.
26159         * doc/posix-functions/wcstol.texi: Likewise.
26160         * doc/posix-functions/wcstombs.texi: Likewise.
26161         * doc/posix-functions/wcstoull.texi: Likewise.
26162         * doc/posix-functions/wcstoul.texi: Likewise.
26163         * doc/posix-functions/wcstoumax.texi: Likewise.
26164         * doc/posix-functions/wcswidth.texi: Likewise.
26165         * doc/posix-functions/wcsxfrm.texi: Likewise.
26166         * doc/posix-functions/wctob.texi: Likewise.
26167         * doc/posix-functions/wctomb.texi: Likewise.
26168         * doc/posix-functions/wctrans.texi: Likewise.
26169         * doc/posix-functions/wctype.texi: Likewise.
26170         * doc/posix-functions/wcwidth.texi: Likewise.
26171         * doc/posix-functions/wmemchr.texi: Likewise.
26172         * doc/posix-functions/wmemcmp.texi: Likewise.
26173         * doc/posix-functions/wmemcpy.texi: Likewise.
26174         * doc/posix-functions/wmemmove.texi: Likewise.
26175         * doc/posix-functions/wmemset.texi: Likewise.
26176         * doc/posix-functions/wprintf.texi: Likewise.
26177         * doc/posix-functions/wscanf.texi: Likewise.
26178
26179 2008-12-21  Bruno Haible  <bruno@clisp.org>
26180
26181         Update doc for HP-UX 11.11.
26182         * doc/posix-functions/btowc.texi: Clarify that the function is missing
26183         in HP-UX version 11.00, not in all versions of HP-UX 11.
26184         * doc/posix-functions/fwide.texi: Likewise.
26185         * doc/posix-functions/fwprintf.texi: Likewise.
26186         * doc/posix-functions/fwscanf.texi: Likewise.
26187         * doc/posix-functions/inet_ntop.texi: Likewise.
26188         * doc/posix-functions/inet_pton.texi: Likewise.
26189         * doc/posix-functions/mbrlen.texi: Likewise.
26190         * doc/posix-functions/mbrtowc.texi: Likewise.
26191         * doc/posix-functions/mbsinit.texi: Likewise.
26192         * doc/posix-functions/mbsrtowcs.texi: Likewise.
26193         * doc/posix-functions/swprintf.texi: Likewise.
26194         * doc/posix-functions/swscanf.texi: Likewise.
26195         * doc/posix-functions/towctrans.texi: Likewise.
26196         * doc/posix-functions/vfwprintf.texi: Likewise.
26197         * doc/posix-functions/vswprintf.texi: Likewise.
26198         * doc/posix-functions/vwprintf.texi: Likewise.
26199         * doc/posix-functions/wcrtomb.texi: Likewise.
26200         * doc/posix-functions/wcsrtombs.texi: Likewise.
26201         * doc/posix-functions/wcsstr.texi: Likewise.
26202         * doc/posix-functions/wctob.texi: Likewise.
26203         * doc/posix-functions/wctrans.texi: Likewise.
26204         * doc/posix-functions/wmemchr.texi: Likewise.
26205         * doc/posix-functions/wmemcmp.texi: Likewise.
26206         * doc/posix-functions/wmemcpy.texi: Likewise.
26207         * doc/posix-functions/wmemmove.texi: Likewise.
26208         * doc/posix-functions/wmemset.texi: Likewise.
26209         * doc/posix-functions/wprintf.texi: Likewise.
26210         * doc/posix-functions/wscanf.texi: Likewise.
26211
26212 2008-12-21  Bruno Haible  <bruno@clisp.org>
26213
26214         Work around a portability problem.
26215         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
26216         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
26217
26218 2008-12-20  Bruno Haible  <bruno@clisp.org>
26219
26220         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
26221         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
26222         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
26223         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
26224         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
26225
26226         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
26227         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
26228         set.
26229         (GNULIB_defined_mbstate_t): New macro.
26230         (mbsinit): Redefine if REPLACE_MBSINIT is set.
26231         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
26232         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
26233         reuses the system's mbrtowc function but works around the bugs.
26234         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
26235         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
26236         macros.
26237         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
26238         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
26239         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
26240         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
26241         REPLACE_MBSINIT if mbsinit needs to be overridden.
26242         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
26243         REPLACE_MBSINIT, REPLACE_MBRTOWC.
26244         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
26245         REPLACE_MBSINIT, REPLACE_MBRTOWC.
26246         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26247         m4/locale-zh.m4.
26248         (Depends): Add mbsinit.
26249         * modules/mbsinit (Depends): Add mbrtowc.
26250         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
26251
26252 2008-12-20  Bruno Haible  <bruno@clisp.org>
26253
26254         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
26255         so that there are no conversion errors on AIX.
26256         * tests/test-mbsrtowcs.c (main): LIkewise.
26257
26258 2008-12-20  Bruno Haible  <bruno@clisp.org>
26259
26260         Work around wctob bug on Solaris <= 9.
26261         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
26262         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
26263         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
26264         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
26265         * modules/wctob (Files): Add m4/locale-fr.m4.
26266         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
26267
26268 2008-12-20  Bruno Haible  <bruno@clisp.org>
26269
26270         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
26271         /dev/null.
26272         * tests/test-select-in.sh: Likewise.
26273         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26274
26275 2008-12-20  Bruno Haible  <bruno@clisp.org>
26276
26277         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
26278         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
26279         Cygwin 1.5.x.
26280
26281 2008-12-20  Bruno Haible  <bruno@clisp.org>
26282
26283         Ensure mbstate_t is defined on HP-UX 11.11.
26284         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
26285         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
26286         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
26287         AC_USE_SYSTEM_EXTENSIONS.
26288         * modules/fnmatch (Depends-on): Add extensions.
26289         * modules/mbrlen (Depends-on): Likewise.
26290         * modules/mbrtowc (Depends-on): Likewise.
26291         * modules/mbsinit (Depends-on): Likewise.
26292         * modules/mbsrtowcs (Depends-on): Likewise.
26293         * modules/mbswidth (Depends-on): Likewise.
26294         * modules/quotearg (Depends-on): Likewise.
26295         * modules/strftime (Depends-on): Likewise.
26296
26297 2008-12-20  Bruno Haible  <bruno@clisp.org>
26298
26299         Ensure wctob is declared on IRIX 6.5.
26300         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
26301         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
26302         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
26303         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
26304         of HAVE_WCTOB.
26305         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
26306         HAVE_WCTOB.
26307         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
26308
26309 2008-12-19  Bruno Haible  <bruno@clisp.org>
26310
26311         * modules/mbsrtowcs-tests: New file.
26312         * tests/test-mbsrtowcs1.sh: New file.
26313         * tests/test-mbsrtowcs2.sh: New file.
26314         * tests/test-mbsrtowcs3.sh: New file.
26315         * tests/test-mbsrtowcs4.sh: New file.
26316         * tests/test-mbsrtowcs.c: New file.
26317
26318         New module 'mbsrtowcs'.
26319         * lib/wchar.in.h (mbsrtowcs): New declaration.
26320         * lib/mbsrtowcs.c: New file.
26321         * m4/mbsrtowcs.m4: New file.
26322         * modules/mbsrtowcs: New file.
26323         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
26324         HAVE_MBSRTOWCS.
26325         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
26326         HAVE_MBSRTOWCS.
26327         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
26328
26329 2008-12-19  Bruno Haible  <bruno@clisp.org>
26330
26331         New module 'mbrlen'.
26332         * lib/wchar.in.h (mbrlen): New declaration.
26333         * lib/mbrlen.c: New file.
26334         * m4/mbrlen.m4: New file.
26335         * modules/mbrlen: New file.
26336         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
26337         HAVE_MBRLEN.
26338         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
26339         HAVE_MBRLEN.
26340         * doc/posix-functions/mbrlen.texi: Document the new module.
26341
26342 2008-12-19  Bruno Haible  <bruno@clisp.org>
26343
26344         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
26345         * modules/mbrtowc (Depends-on): Add verify.
26346         Suggested by Paul Eggert.
26347
26348 2008-12-18  Bruno Haible  <bruno@clisp.org>
26349
26350         * modules/mbsinit-tests: New file.
26351         * tests/test-mbsinit.sh: New file.
26352         * tests/test-mbsinit.c: New file.
26353
26354 2008-12-18  Bruno Haible  <bruno@clisp.org>
26355
26356         * modules/mbrtowc-tests: New file.
26357         * tests/test-mbrtowc1.sh: New file.
26358         * tests/test-mbrtowc2.sh: New file.
26359         * tests/test-mbrtowc3.sh: New file.
26360         * tests/test-mbrtowc4.sh: New file.
26361         * tests/test-mbrtowc.c: New file.
26362
26363         New module 'mbrtowc'.
26364         * lib/wchar.in.h (mbstate_t): Override when the system does not have
26365         mbsinit and mbrtowc.
26366         (mbrtowc): New declaration.
26367         * lib/mbrtowc.c: New file.
26368         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
26369         * modules/mbrtowc: New file.
26370         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
26371         HAVE_MBRTOWC.
26372         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
26373         HAVE_MBRTOWC.
26374         * doc/posix-functions/mbrtowc.texi: Document the new module.
26375
26376 2008-12-18  Bruno Haible  <bruno@clisp.org>
26377
26378         New module 'wctob'.
26379         * lib/wchar.in.h (wctob): New declaration.
26380         * lib/wctob.c: New file.
26381         * m4/wctob.m4: New file.
26382         * modules/wctob: New file.
26383         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
26384         HAVE_WCTOB.
26385         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
26386         * doc/posix-functions/wctob.texi: Document the new module.
26387
26388 2008-12-18  Bruno Haible  <bruno@clisp.org>
26389
26390         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
26391         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
26392
26393 2008-12-18  Simon Josefsson  <simon@josefsson.org>
26394
26395         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
26396         G. Christensen" <tgc@jupiterrise.com>.
26397
26398         * lib/flock.c: Need to include errno.h.  Reported by "Tom
26399         G. Christensen" <tgc@jupiterrise.com>.
26400
26401         * lib/flock.c: Need to include string.h.  Reported by "Tom
26402         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
26403         <ebb9@byu.net>.
26404
26405 2008-12-18  Bruno Haible  <bruno@clisp.org>
26406
26407         * m4/locale-ja.m4: New file, from GNU gettext.
26408
26409 2008-12-17  Bruno Haible  <bruno@clisp.org>
26410
26411         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
26412         Suggested by Eric Blake.
26413
26414 2008-12-17  Bruno Haible  <bruno@clisp.org>
26415
26416         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
26417
26418 2008-12-17  Bruno Haible  <bruno@clisp.org>
26419
26420         * lib/mbsinit.c: Include verify.h. Verify an assumption.
26421         * modules/mbsinit (Depends-on): Add verify.
26422         Suggested by Paul Eggert.
26423
26424 2008-12-17  Bruno Haible  <bruno@clisp.org>
26425
26426         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
26427         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
26428         gl_FUNC_MBRTOWC.
26429         * m4/mbiter.m4 (gl_MBITER): LIkewise.
26430         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
26431         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
26432         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
26433         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
26434         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
26435         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
26436         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
26437         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
26438         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
26439         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
26440         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
26441         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
26442         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
26443         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
26444         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26445         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
26446         * modules/trim (configure.ac): Likewise.
26447
26448 2008-12-17  Bruno Haible  <bruno@clisp.org>
26449
26450         * modules/btowc-tests: New file.
26451         * tests/test-btowc1.sh: New file.
26452         * tests/test-btowc2.sh: New file.
26453         * tests/test-btowc.c: New file.
26454
26455         New module 'btowc'.
26456         * lib/wchar.in.h (btowc): New declaration.
26457         * lib/btowc.c: New file.
26458         * m4/btowc.m4: New file.
26459         * modules/btowc: New file.
26460         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
26461         HAVE_BTOWC.
26462         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
26463         * doc/posix-functions/btowc.texi: Document the new module.
26464
26465 2008-12-17  Bruno Haible  <bruno@clisp.org>
26466
26467         New module 'mbsinit'.
26468         * lib/wchar.in.h (mbsinit): New declaration.
26469         * lib/mbsinit.c: New file.
26470         * m4/mbsinit.m4: New file.
26471         * modules/mbsinit: New file.
26472         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
26473         HAVE_MBSINIT.
26474         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
26475         HAVE_MBSINIT.
26476         * doc/posix-functions/mbsinit.texi: Document the new module.
26477
26478 2008-12-16  Bruno Haible  <bruno@clisp.org>
26479
26480         * lib/unistd.in.h: Add comment.
26481         * tests/test-environ.c: Don't include <stdlib.h>.
26482
26483 2008-12-16  Bruno Haible  <bruno@clisp.org>
26484
26485         * lib/parse-duration.h (parse_duration): Document return value
26486         convention.
26487         * lib/parse-duration.c: Include specification header first. Add
26488         comments.
26489         (_): Remove macro.
26490         (parse_year_month_day, parse_hour_minute_second): Move side effects
26491         outside of strchr call.
26492         (parse_non_iso8601): Move side effects outside of isspace call.
26493         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
26494         call.
26495
26496 2008-12-16  Bruno Haible  <bruno@clisp.org>
26497
26498         * tests/test-parse-duration.sh: Produce no output when the test
26499         succeeds.
26500
26501 2008-12-16  Bruno Haible  <bruno@clisp.org>
26502
26503         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
26504         expressions.
26505
26506 2008-12-15  Bruno Haible  <bruno@clisp.org>
26507
26508         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
26509         * doc/glibc-functions/flistxattr.texi: Likewise.
26510         * doc/glibc-functions/fopencookie.texi: Likewise.
26511         * doc/glibc-functions/fremovexattr.texi: Likewise.
26512         * doc/glibc-functions/fsetxattr.texi: Likewise.
26513         * doc/glibc-functions/getxattr.texi: Likewise.
26514         * doc/glibc-functions/lgetxattr.texi: Likewise.
26515         * doc/glibc-functions/listxattr.texi: Likewise.
26516         * doc/glibc-functions/llistxattr.texi: Likewise.
26517         * doc/glibc-functions/lremovexattr.texi: Likewise.
26518         * doc/glibc-functions/lsetxattr.texi: Likewise.
26519         * doc/glibc-functions/removexattr.texi: Likewise.
26520         * doc/glibc-functions/setxattr.texi: Likewise.
26521         * doc/posix-functions/open_memstream.texi: Likewise.
26522
26523 2008-12-15  Eric Blake  <ebb9@byu.net>
26524
26525         Update doc for cygwin 1.7.
26526         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
26527         functions.
26528         * doc/posix-functions/fchmodat.texi: Likewise.
26529         * doc/posix-functions/fchownat.texi: Likewise.
26530         * doc/posix-functions/fdopendir.texi: Likewise.
26531         * doc/posix-functions/fmemopen.texi: Likewise.
26532         * doc/posix-functions/freeaddrinfo.texi: Likewise.
26533         * doc/posix-functions/fstatat.texi: Likewise.
26534         * doc/posix-functions/futimens.texi: Likewise.
26535         * doc/posix-functions/gai_strerror.texi: Likewise.
26536         * doc/posix-functions/getaddrinfo.texi: Likewise.
26537         * doc/posix-functions/getnameinfo.texi: Likewise.
26538         * doc/posix-functions/if_freenameindex.texi: Likewise.
26539         * doc/posix-functions/if_indextoname.texi: Likewise.
26540         * doc/posix-functions/if_nameindex.texi: Likewise.
26541         * doc/posix-functions/if_nametoindex.texi: Likewise.
26542         * doc/posix-functions/insque.texi: Likewise.
26543         * doc/posix-functions/linkat.texi: Likewise.
26544         * doc/posix-functions/llrint.texi: Likewise.
26545         * doc/posix-functions/llrintf.texi: Likewise.
26546         * doc/posix-functions/llrintl.texi: Likewise.
26547         * doc/posix-functions/lockf.texi: Likewise.
26548         * doc/posix-functions/lrintl.texi: Likewise.
26549         * doc/posix-functions/mkdirat.texi: Likewise.
26550         * doc/posix-functions/mkfifoat.texi: Likewise.
26551         * doc/posix-functions/mknodat.texi: Likewise.
26552         * doc/posix-functions/mq_close.texi: Likewise.
26553         * doc/posix-functions/mq_getattr.texi: Likewise.
26554         * doc/posix-functions/mq_notify.texi: Likewise.
26555         * doc/posix-functions/mq_open.texi: Likewise.
26556         * doc/posix-functions/mq_receive.texi: Likewise.
26557         * doc/posix-functions/mq_send.texi: Likewise.
26558         * doc/posix-functions/mq_setattr.texi: Likewise.
26559         * doc/posix-functions/mq_timedreceive.texi: Likewise.
26560         * doc/posix-functions/mq_timedsend.texi: Likewise.
26561         * doc/posix-functions/mq_unlink.texi: Likewise.
26562         * doc/posix-functions/open_memstream.texi: Likewise.
26563         * doc/posix-functions/openat.texi: Likewise.
26564         * doc/posix-functions/posix_fadvise.texi: Likewise.
26565         * doc/posix-functions/posix_fallocate.texi: Likewise.
26566         * doc/posix-functions/posix_madvise.texi: Likewise.
26567         * doc/posix-functions/posix_memalign.texi: Likewise.
26568         * doc/posix-functions/posix_openpt.texi: Likewise.
26569         * doc/posix-functions/readlinkat.texi: Likewise.
26570         * doc/posix-functions/remque.texi: Likewise.
26571         * doc/posix-functions/renameat.texi: Likewise.
26572         * doc/posix-functions/rintl.texi: Likewise.
26573         * doc/posix-functions/sem_unlink.texi: Likewise.
26574         * doc/posix-functions/shm_open.texi: Likewise.
26575         * doc/posix-functions/shm_unlink.texi: Likewise.
26576         * doc/posix-functions/signgam.texi: Likewise.
26577         * doc/posix-functions/sigset.texi: Likewise.
26578         * doc/posix-functions/stpcpy.texi: Likewise.
26579         * doc/posix-functions/stpncpy.texi: Likewise.
26580         * doc/posix-functions/strerror.texi: Likewise.
26581         * doc/posix-functions/strtod.texi: Likewise.
26582         * doc/posix-functions/symlinkat.texi: Likewise.
26583         * doc/posix-functions/unlinkat.texi: Likewise.
26584         * doc/posix-functions/utimensat.texi: Likewise.
26585         * doc/glibc-functions/bindresvport.texi: Likewise.
26586         * doc/glibc-functions/dn_expand.texi: Likewise.
26587         * doc/glibc-functions/exp10.texi: Likewise.
26588         * doc/glibc-functions/exp10f.texi: Likewise.
26589         * doc/glibc-functions/fgetxattr.texi: Likewise.
26590         * doc/glibc-functions/flistxattr.texi: Likewise.
26591         * doc/glibc-functions/fopencookie.texi: Likewise.
26592         * doc/glibc-functions/freeifaddrs.texi: Likewise.
26593         * doc/glibc-functions/fremovexattr.texi: Likewise.
26594         * doc/glibc-functions/fsetxattr.texi: Likewise.
26595         * doc/glibc-functions/getifaddrs.texi: Likewise.
26596         * doc/glibc-functions/getxattr.texi: Likewise.
26597         * doc/glibc-functions/lgetxattr.texi: Likewise.
26598         * doc/glibc-functions/listxattr.texi: Likewise.
26599         * doc/glibc-functions/llistxattr.texi: Likewise.
26600         * doc/glibc-functions/lremovexattr.texi: Likewise.
26601         * doc/glibc-functions/lsetxattr.texi: Likewise.
26602         * doc/glibc-functions/pow10.texi: Likewise.
26603         * doc/glibc-functions/pow10f.texi: Likewise.
26604         * doc/glibc-functions/rcmd_af.texi: Likewise.
26605         * doc/glibc-functions/removexattr.texi: Likewise.
26606         * doc/glibc-functions/res_init.texi: Likewise.
26607         * doc/glibc-functions/res_mkquery.texi: Likewise.
26608         * doc/glibc-functions/res_query.texi: Likewise.
26609         * doc/glibc-functions/res_querydomain.texi: Likewise.
26610         * doc/glibc-functions/res_send.texi: Likewise.
26611         * doc/glibc-functions/rresvport_af.texi: Likewise.
26612         * doc/glibc-functions/setxattr.texi: Likewise.
26613         * doc/glibc-functions/strcasestr.texi: Likewise.
26614
26615 2008-12-15  Bruno Haible  <bruno@clisp.org>
26616
26617         Fix compilation error on OSF/1 4.0.
26618         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
26619         <sys/time.h>, simply delegate to the system header.
26620         Reported by Daniel Richard G. <oss@teragram.com>.
26621
26622 2008-12-15  Bruno Haible  <bruno@clisp.org>
26623
26624         * doc/posix-functions/openat.texi: Mention the 'openat' module.
26625         * doc/posix-functions/fchmodat.texi: Likewise.
26626         * doc/posix-functions/fchownat.texi: Likewise.
26627         * doc/posix-functions/fdopendir.texi: Likewise.
26628         * doc/posix-functions/fstatat.texi: Likewise.
26629         * doc/posix-functions/mkdirat.texi: Likewise.
26630         * doc/posix-functions/unlinkat.texi: Likewise.
26631
26632 2008-12-14  Bruno Haible  <bruno@clisp.org>
26633
26634         Update doc for POSIX:2008.
26635         * doc/posix-functions/faccessat.texi: New file.
26636         * doc/posix-functions/fchmodat.texi: New file.
26637         * doc/posix-functions/fchownat.texi: New file.
26638         * doc/posix-functions/fdopendir.texi: New file.
26639         * doc/posix-functions/fstatat.texi: New file.
26640         * doc/posix-functions/futimens.texi: New file.
26641         * doc/posix-functions/linkat.texi: New file.
26642         * doc/posix-functions/mkdirat.texi: New file.
26643         * doc/posix-functions/mkfifoat.texi: New file.
26644         * doc/posix-functions/mknodat.texi: New file.
26645         * doc/posix-functions/open_wmemstream.texi: New file.
26646         * doc/posix-functions/openat.texi: New file.
26647         * doc/posix-functions/psiginfo.texi: New file.
26648         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
26649         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
26650         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
26651         * doc/posix-functions/readlinkat.texi: New file.
26652         * doc/posix-functions/renameat.texi: New file.
26653         * doc/posix-functions/strerror_l.texi: New file.
26654         * doc/posix-functions/symlinkat.texi: New file.
26655         * doc/posix-functions/unlinkat.texi: New file.
26656         * doc/posix-functions/utimensat.texi: New file.
26657         * doc/gnulib.texi (Function Substitutes): Add these subsections.
26658
26659 2008-12-14  Bruno Haible  <bruno@clisp.org>
26660
26661         Update doc for POSIX:2008.
26662         * doc/posix-functions/alphasort.texi: Renamed from
26663         doc/glibc-functions/alphasort.texi.
26664         * doc/posix-functions/dirfd.texi: Renamed from
26665         doc/glibc-functions/dirfd.texi.
26666         * doc/posix-functions/dprintf.texi: Renamed from
26667         doc/glibc-functions/dprintf.texi.
26668         * doc/posix-functions/duplocale.texi: Renamed from
26669         doc/glibc-functions/duplocale.texi.
26670         * doc/posix-functions/fexecve.texi: Renamed from
26671         doc/glibc-functions/fexecve.texi.
26672         * doc/posix-functions/fmemopen.texi: Renamed from
26673         doc/glibc-functions/fmemopen.texi.
26674         * doc/posix-functions/freelocale.texi: Renamed from
26675         doc/glibc-functions/freelocale.texi.
26676         * doc/posix-functions/getdate_err.texi: Renamed from
26677         doc/glibc-functions/getdate_err.texi.
26678         * doc/posix-functions/isalnum_l.texi: Renamed from
26679         doc/glibc-functions/isalnum_l.texi.
26680         * doc/posix-functions/isalpha_l.texi: Renamed from
26681         doc/glibc-functions/isalpha_l.texi.
26682         * doc/posix-functions/isblank_l.texi: Renamed from
26683         doc/glibc-functions/isblank_l.texi.
26684         * doc/posix-functions/iscntrl_l.texi: Renamed from
26685         doc/glibc-functions/iscntrl_l.texi.
26686         * doc/posix-functions/isdigit_l.texi: Renamed from
26687         doc/glibc-functions/isdigit_l.texi.
26688         * doc/posix-functions/isgraph_l.texi: Renamed from
26689         doc/glibc-functions/isgraph_l.texi.
26690         * doc/posix-functions/islower_l.texi: Renamed from
26691         doc/glibc-functions/islower_l.texi.
26692         * doc/posix-functions/isprint_l.texi: Renamed from
26693         doc/glibc-functions/isprint_l.texi.
26694         * doc/posix-functions/ispunct_l.texi: Renamed from
26695         doc/glibc-functions/ispunct_l.texi.
26696         * doc/posix-functions/isspace_l.texi: Renamed from
26697         doc/glibc-functions/isspace_l.texi.
26698         * doc/posix-functions/isupper_l.texi: Renamed from
26699         doc/glibc-functions/isupper_l.texi.
26700         * doc/posix-functions/iswalnum_l.texi: Renamed from
26701         doc/glibc-functions/iswalnum_l.texi.
26702         * doc/posix-functions/iswalpha_l.texi: Renamed from
26703         doc/glibc-functions/iswalpha_l.texi.
26704         * doc/posix-functions/iswblank_l.texi: Renamed from
26705         doc/glibc-functions/iswblank_l.texi.
26706         * doc/posix-functions/iswcntrl_l.texi: Renamed from
26707         doc/glibc-functions/iswcntrl_l.texi.
26708         * doc/posix-functions/iswctype_l.texi: Renamed from
26709         doc/glibc-functions/iswctype_l.texi.
26710         * doc/posix-functions/iswdigit_l.texi: Renamed from
26711         doc/glibc-functions/iswdigit_l.texi.
26712         * doc/posix-functions/iswgraph_l.texi: Renamed from
26713         doc/glibc-functions/iswgraph_l.texi.
26714         * doc/posix-functions/iswlower_l.texi: Renamed from
26715         doc/glibc-functions/iswlower_l.texi.
26716         * doc/posix-functions/iswprint_l.texi: Renamed from
26717         doc/glibc-functions/iswprint_l.texi.
26718         * doc/posix-functions/iswpunct_l.texi: Renamed from
26719         doc/glibc-functions/iswpunct_l.texi.
26720         * doc/posix-functions/iswspace_l.texi: Renamed from
26721         doc/glibc-functions/iswspace_l.texi.
26722         * doc/posix-functions/iswupper_l.texi: Renamed from
26723         doc/glibc-functions/iswupper_l.texi.
26724         * doc/posix-functions/iswxdigit_l.texi: Renamed from
26725         doc/glibc-functions/iswxdigit_l.texi.
26726         * doc/posix-functions/isxdigit_l.texi: Renamed from
26727         doc/glibc-functions/isxdigit_l.texi.
26728         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
26729         doc/glibc-functions/mbsnrtowcs.texi.
26730         * doc/posix-functions/mkdtemp.texi: Renamed from
26731         doc/glibc-functions/mkdtemp.texi.
26732         * doc/posix-functions/newlocale.texi: Renamed from
26733         doc/glibc-functions/newlocale.texi.
26734         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
26735         doc/glibc-functions/nl_langinfo_l.texi.
26736         * doc/posix-functions/open_memstream.texi: Renamed from
26737         doc/glibc-functions/open_memstream.texi.
26738         * doc/posix-functions/opterr.texi: Renamed from
26739         doc/glibc-functions/opterr.texi.
26740         * doc/posix-functions/optind.texi: Renamed from
26741         doc/glibc-functions/optind.texi.
26742         * doc/posix-functions/optopt.texi: Renamed from
26743         doc/glibc-functions/optopt.texi.
26744         * doc/posix-functions/psignal.texi: Renamed from
26745         doc/glibc-functions/psignal.texi.
26746         * doc/posix-functions/scandir.texi: Renamed from
26747         doc/glibc-functions/scandir.texi.
26748         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
26749         doc/glibc-functions/sched_get_priority_min.texi.
26750         * doc/posix-functions/signgam.texi: Renamed from
26751         doc/glibc-functions/signgam.texi.
26752         * doc/posix-functions/stpcpy.texi: Renamed from
26753         doc/glibc-functions/stpcpy.texi.
26754         * doc/posix-functions/stpncpy.texi: Renamed from
26755         doc/glibc-functions/stpncpy.texi.
26756         * doc/posix-functions/strcasecmp_l.texi: Renamed from
26757         doc/glibc-functions/strcasecmp_l.texi.
26758         * doc/posix-functions/strcoll_l.texi: Renamed from
26759         doc/glibc-functions/strcoll_l.texi.
26760         * doc/posix-functions/strfmon_l.texi: Renamed from
26761         doc/glibc-functions/strfmon_l.texi.
26762         * doc/posix-functions/strftime_l.texi: Renamed from
26763         doc/glibc-functions/strftime_l.texi.
26764         * doc/posix-functions/strncasecmp_l.texi: Renamed from
26765         doc/glibc-functions/strncasecmp_l.texi.
26766         * doc/posix-functions/strndup.texi: Renamed from
26767         doc/glibc-functions/strndup.texi.
26768         * doc/posix-functions/strnlen.texi: Renamed from
26769         doc/glibc-functions/strnlen.texi.
26770         * doc/posix-functions/strsignal.texi: Renamed from
26771         doc/glibc-functions/strsignal.texi.
26772         * doc/posix-functions/strxfrm_l.texi: Renamed from
26773         doc/glibc-functions/strxfrm_l.texi.
26774         * doc/posix-functions/timer_gettime.texi: Renamed from
26775         doc/glibc-functions/timer_gettime.texi.
26776         * doc/posix-functions/tolower_l.texi: Renamed from
26777         doc/glibc-functions/tolower_l.texi.
26778         * doc/posix-functions/toupper_l.texi: Renamed from
26779         doc/glibc-functions/toupper_l.texi.
26780         * doc/posix-functions/towctrans_l.texi: Renamed from
26781         doc/glibc-functions/towctrans_l.texi.
26782         * doc/posix-functions/towlower_l.texi: Renamed from
26783         doc/glibc-functions/towlower_l.texi.
26784         * doc/posix-functions/towupper_l.texi: Renamed from
26785         doc/glibc-functions/towupper_l.texi.
26786         * doc/posix-functions/uselocale.texi: Renamed from
26787         doc/glibc-functions/uselocale.texi.
26788         * doc/posix-functions/vdprintf.texi: Renamed from
26789         doc/glibc-functions/vdprintf.texi.
26790         * doc/posix-functions/wcpcpy.texi:
26791         Renamed from doc/glibc-functions/wcpcpy.texi.
26792         * doc/posix-functions/wcpncpy.texi: Renamed from
26793         doc/glibc-functions/wcpncpy.texi.
26794         * doc/posix-functions/wcscasecmp.texi: Renamed from
26795         doc/glibc-functions/wcscasecmp.texi.
26796         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
26797         doc/glibc-functions/wcscasecmp_l.texi.
26798         * doc/posix-functions/wcscoll_l.texi: Renamed from
26799         doc/glibc-functions/wcscoll_l.texi.
26800         * doc/posix-functions/wcsdup.texi: Renamed from
26801         doc/glibc-functions/wcsdup.texi.
26802         * doc/posix-functions/wcsncasecmp.texi: Renamed from
26803         doc/glibc-functions/wcsncasecmp.texi.
26804         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
26805         doc/glibc-functions/wcsncasecmp_l.texi.
26806         * doc/posix-functions/wcsnlen.texi: Renamed from
26807         doc/glibc-functions/wcsnlen.texi.
26808         * doc/posix-functions/wcsnrtombs.texi: Renamed from
26809         doc/glibc-functions/wcsnrtombs.texi.
26810         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
26811         doc/glibc-functions/wcsxfrm_l.texi.
26812         * doc/posix-functions/wctrans_l.texi: Renamed from
26813         doc/glibc-functions/wctrans_l.texi.
26814         * doc/posix-functions/wctype_l.texi: Renamed from
26815         doc/glibc-functions/wctype_l.texi.
26816         * doc/gnulib.texi (Function Substitutes): Add these subsections.
26817         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
26818         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
26819         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
26820         these subsections.
26821         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
26822         Remove sections.
26823
26824 2008-12-14  Bruno Haible  <bruno@clisp.org>
26825
26826         Update doc for POSIX:2008.
26827         * doc/posix-functions/*.texi: Update URL of POSIX specification.
26828
26829 2008-12-14  Bruno Haible  <bruno@clisp.org>
26830
26831         Update doc for POSIX:2008.
26832         * doc/pastposix-functions/bcmp.texi: Renamed from
26833         doc/posix-functions/bcmp.texi.
26834         * doc/pastposix-functions/bcopy.texi: Renamed from
26835         doc/posix-functions/bcopy.texi.
26836         * doc/pastposix-functions/bsd_signal.texi: Renamed from
26837         doc/posix-functions/bsd_signal.texi.
26838         * doc/pastposix-functions/bzero.texi: Renamed from
26839         doc/posix-functions/bzero.texi.
26840         * doc/pastposix-functions/ecvt.texi: Renamed from
26841         doc/posix-functions/ecvt.texi.
26842         * doc/pastposix-functions/fcvt.texi: Renamed from
26843         doc/posix-functions/fcvt.texi.
26844         * doc/pastposix-functions/ftime.texi: Renamed from
26845         doc/posix-functions/ftime.texi.
26846         * doc/pastposix-functions/gcvt.texi: Renamed from
26847         doc/posix-functions/gcvt.texi.
26848         * doc/pastposix-functions/getcontext.texi: Renamed from
26849         doc/posix-functions/getcontext.texi.
26850         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
26851         doc/posix-functions/gethostbyaddr.texi.
26852         * doc/pastposix-functions/gethostbyname.texi: Renamed from
26853         doc/posix-functions/gethostbyname.texi.
26854         * doc/pastposix-functions/getwd.texi: Renamed from
26855         doc/posix-functions/getwd.texi.
26856         * doc/pastposix-functions/h_errno.texi: Renamed from
26857         doc/posix-functions/h_errno.texi.
26858         * doc/pastposix-functions/index.texi: Renamed from
26859         doc/posix-functions/index.texi.
26860         * doc/pastposix-functions/makecontext.texi: Renamed from
26861         doc/posix-functions/makecontext.texi.
26862         * doc/pastposix-functions/mktemp.texi: Renamed from
26863         doc/posix-functions/mktemp.texi.
26864         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
26865         doc/posix-functions/pthread_attr_getstackaddr.texi.
26866         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
26867         doc/posix-functions/pthread_attr_setstackaddr.texi.
26868         * doc/pastposix-functions/rindex.texi: Renamed from
26869         doc/posix-functions/rindex.texi.
26870         * doc/pastposix-functions/scalb.texi: Renamed from
26871         doc/posix-functions/scalb.texi.
26872         * doc/pastposix-functions/setcontext.texi: Renamed from
26873         doc/posix-functions/setcontext.texi.
26874         * doc/pastposix-functions/swapcontext.texi: Renamed from
26875         doc/posix-functions/swapcontext.texi.
26876         * doc/pastposix-functions/ualarm.texi: Renamed from
26877         doc/posix-functions/ualarm.texi.
26878         * doc/pastposix-functions/usleep.texi: Renamed from
26879         doc/posix-functions/usleep.texi.
26880         * doc/pastposix-functions/vfork.texi: Renamed from
26881         doc/posix-functions/vfork.texi.
26882         * doc/pastposix-functions/wcswcs.texi: Renamed from
26883         doc/posix-functions/wcswcs.texi.
26884         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
26885         (Function Substitutes): Update.
26886
26887 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26888
26889         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
26890         m4/strerror.m4.
26891
26892 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26893             Bruno Haible  <bruno@clisp.org>
26894
26895         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
26896
26897 2008-12-13  Bruno Haible  <bruno@clisp.org>
26898
26899         * modules/strtoull (Depends-on): Remove unistd.
26900
26901 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26902
26903         * modules/strtoull (Depends-on): Add stdlib.
26904
26905 2008-12-11  Simon Josefsson  <simon@josefsson.org>
26906
26907         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
26908
26909 2008-12-10  Jim Meyering  <meyering@redhat.com>
26910
26911         gl_ASSERT: don't say assertions are disabled when they're not
26912         * m4/assert.m4 (gl_ASSERT): Do not make configure report
26913         "checking whether to enable assertions... no", when they are in
26914         fact enabled.  This is solely a bug in the output of configure.
26915         In spite of saying "no", NDEBUG was not defined in that case.
26916         Also, as noted by Eric Blake, leave assertions enabled upon
26917         --enable-assert=INVALID.
26918
26919 2008-12-10  Bruno Haible  <bruno@clisp.org>
26920
26921         Change MODULES.html to refer to POSIX:2008 where possible.
26922         * MODULES.html.sh (POSIX2008_URL): New variable.
26923         (posix_headers): Remove sys/timeb, ucontext.
26924         (posix2001_headers): New variable.
26925         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
26926         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
26927         index, makecontext, mktemp, pthread_attr_getstackaddr,
26928         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
26929         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
26930         (posix2001_functions): New variable.
26931         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
26932         otherwise.
26933
26934 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26935
26936         add missing include to parse-duration.c
26937         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
26938         * modules/parse-duration (Depends-on): Add xalloc.
26939
26940         fix sed script reading maint.mk
26941         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
26942         (syntax-check-rules): Use it.
26943
26944 2008-12-09  Bruno Haible  <bruno@clisp.org>
26945
26946         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
26947         MacOS X 10.4/PowerPC.
26948         Reported by Simon Josefsson.
26949
26950 2008-12-08  Jim Meyering  <meyering@redhat.com>
26951
26952         work around mingw's lack of some S_IF definitions
26953         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
26954         Reported by Simon Josefsson.
26955
26956 2008-12-08  Bruno Haible  <bruno@clisp.org>
26957
26958         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
26959         applied to variables. Needed on MacOS X 10.4/PowerPC.
26960         Reported by Simon Josefsson.
26961
26962 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
26963         and Eric Blake  <ebb9@byu.net>
26964
26965         assert: honor --enable-assert
26966         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
26967         order to honor --enable-assert, rather than treating it as a
26968         synonym for --disable-assert.
26969
26970 2008-12-08  Jim Meyering  <meyering@redhat.com>
26971
26972         * lib/posixtm.c: Remove now-useless declaration of mktime.
26973
26974         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
26975
26976 2008-12-07  Bruno Haible  <bruno@clisp.org>
26977
26978         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
26979         test_once): Mark functions as static.
26980         * tests/test-tls.c (test_tls): Likewise.
26981
26982 2008-12-07  Bruno Haible  <bruno@clisp.org>
26983
26984         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
26985         iconv_register_autodetect.
26986
26987 2008-12-07  Jim Meyering  <meyering@redhat.com>
26988
26989         posixtm.c: avoid a warning
26990         * lib/posixtm.c (posixtime): Don't initialize tm0.
26991         It's no longer needed to placate gcc4's -Wuninitialized,
26992         and the attempt to placate would elicit a new warning.
26993
26994         unicodeio.c: mark unused parameters
26995         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
26996         (fallback_failure_callback): Likewise.
26997
26998 2008-12-07  Bruno Haible  <bruno@clisp.org>
26999
27000         * gnulib-tool (func_create_testdir): When building the tests
27001         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
27002         Reported by Simon Josefsson.
27003
27004 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27005
27006         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
27007
27008 2008-12-06  Bruno Haible  <bruno@clisp.org>
27009
27010         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
27011         Suggested by Eric Blake.
27012
27013 2008-12-06  Bruno Haible  <bruno@clisp.org>
27014
27015         Fix a c-stack test failure on MacOS X.
27016         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
27017         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
27018         handler for SIGBUS as well.
27019         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
27020         install a signal handler for SIGBUS as well.
27021         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
27022
27023 2008-12-06  Bruno Haible  <bruno@clisp.org>
27024
27025         Advocacy documentation.
27026         * doc/gnulib-intro.texi (Benefits): New section.
27027         * doc/gnulib.texi: Update.
27028
27029 2008-12-06  Bruno Haible  <bruno@clisp.org>
27030
27031         Document the 'manywarnings' module.
27032         * doc/manywarnings.texi: New file.
27033         * doc/gnulib.texi: Include it.
27034
27035 2008-12-05  Eric Blake  <ebb9@byu.net>
27036
27037         tests: silence some gcc warnings
27038         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
27039         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
27040         type mismatches.
27041
27042 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27043             Bruno Haible  <bruno@clisp.org>
27044
27045         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
27046
27047 2008-11-29  Jim Meyering  <meyering@redhat.com>
27048
27049         unicodeio.c: mark unused parameters
27050         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
27051         (fallback_failure_callback): Likewise.
27052
27053         fts: fix a thinko
27054         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
27055         (set_stat_type): Return S_IF*-valued "type" directly.
27056         Prompted by James Youngman's spotting a related bug.
27057         Confirmed by further testing through find.
27058
27059         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
27060         * lib/fts.c (D_TYPE): Define.
27061         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
27062         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
27063         (s_ifmt_shift_bits): New function.
27064         (set_stat_type): New function.
27065         (fts_build): When not calling fts_stat, call set_stat_type
27066         to propagate dirent.d_type info to fts_read caller.
27067         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
27068         fts_statp->st_mode type information may be valid.
27069
27070 2008-11-28  Simon Josefsson  <simon@josefsson.org>
27071
27072         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
27073         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
27074         <sds@gnu.org>.
27075
27076 2008-11-20  Bruno Haible  <bruno@clisp.org>
27077
27078         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
27079         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
27080         INCLUDE_NEXT.
27081         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
27082         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
27083         * modules/math (Makefile.am): Substitute
27084         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
27085         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27086
27087 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
27088             Bruno Haible  <bruno@clisp.org>
27089
27090         * lib/stdint.in.h: Define all type macros so that their expansion is
27091         a single typedef'ed token. Fixes a compilation failure in Boost which
27092         does "using ::int8_t;".
27093
27094 2008-11-18  Simon Josefsson  <simon@josefsson.org>
27095
27096         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
27097         gl_MANYWARN_ALL_GCC.
27098         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
27099         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
27100         * modules/manywarnings: New file.
27101         * MODULES.html.sh: Mention manywarnings module.
27102
27103 2008-11-18  Bruno Haible  <bruno@clisp.org>
27104
27105         * doc/gnulib-tool.texi (Unit tests): New section.
27106
27107 2008-11-18  Simon Josefsson  <simon@josefsson.org>
27108
27109         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
27110         paths like 'lib/po/foo.po'.
27111
27112 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27113
27114         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
27115         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
27116
27117 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27118
27119         * m4/warnings.m4: Use CPPFLAGS to really check whether the
27120         parameter works.
27121
27122 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27123
27124         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
27125
27126 2008-11-17  Bruce Korb  <bkorb@gnu.org>
27127
27128         * modules/parse-duration-tests: New file.
27129         * tests/test-parse-duration.sh: New file.
27130         * tests/test-parse-duration.c: New file.
27131
27132         New module 'parse-duration'.
27133         * lib/parse-duration.h: New file.
27134         * lib/parse-duration.c: New file.
27135         * modules/parse-duration: New file.
27136
27137 2008-11-17  Bruno Haible  <bruno@clisp.org>
27138
27139         * tests/test-select-out.sh: Comment out the first pipe test.
27140         Reported by Simon Josefsson.
27141
27142 2008-11-17  Bruno Haible  <bruno@clisp.org>
27143
27144         * modules/getaddrinfo (Depends-on): Add servent, hostent.
27145         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
27146         gl_HOSTENT.
27147
27148 2008-11-17  Bruno Haible  <bruno@clisp.org>
27149
27150         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
27151         -lnetwork and -lnet. Needed for Haiku and BeOS.
27152
27153 2008-11-16  Bruno Haible  <bruno@clisp.org>
27154
27155         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
27156
27157 2008-11-16  Bruno Haible  <bruno@clisp.org>
27158
27159         Avoid test failure on Haiku.
27160         * tests/test-fsync.c: Include <errno.h>.
27161         (main): Don't require that fsync (0) fails.
27162
27163 2008-11-15  Bruno Haible  <bruno@clisp.org>
27164
27165         New module 'hostent'.
27166         * modules/hostent: New file.
27167         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
27168
27169 2008-11-15  Bruno Haible  <bruno@clisp.org>
27170
27171         New module 'servent'.
27172         * modules/servent: New file.
27173         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
27174
27175 2008-11-15  Bruno Haible  <bruno@clisp.org>
27176
27177         Avoid generating same test program with two different rules.
27178         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
27179         test-frexp to test-frexp-nolibm.
27180         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
27181         test-frexpl to test-frexpl-nolibm.
27182
27183 2008-11-15  Bruno Haible  <bruno@clisp.org>
27184
27185         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
27186         $(FREXPL_LIBM).
27187
27188 2008-11-15  Bruno Haible  <bruno@clisp.org>
27189
27190         * lib/netdb.in.h: Activate the definitions also when the system's
27191         <netdb.h> has 'struct addrinfo'.
27192         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
27193         EAI_OVERFLOW or AI_NUMERICSERV.
27194         * doc/posix-headers/netdb.texi: Document the problem.
27195
27196 2008-11-15  Bruno Haible  <bruno@clisp.org>
27197
27198         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
27199
27200         Make the 'sched' module work on platforms where <sched.h> exists but
27201         is incomplete (such as Haiku).
27202         * lib/sched.in.h; Include the system's <sched.h> if it exists.
27203         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
27204         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
27205         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
27206         HAVE_STRUCT_SCHED_PARAM.
27207         * modules/sched (Depends-on): Add include_next.
27208         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
27209         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
27210         * doc/posix-headers/sched.texi: Document the issue.
27211
27212 2008-11-13  Jim Meyering  <meyering@redhat.com>
27213
27214         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
27215         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
27216         test would fail due to the difference in the Report bugs to ...
27217         line.  The expected address is empty, "<>", while the actual
27218         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
27219
27220 2008-11-12  Bruno Haible  <bruno@clisp.org>
27221
27222         lstat: don't compile lstat.c on systems lacking lstat
27223         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
27224         which don't have lstat; this is handled by lib/sys_stat.in.h already.
27225         Reported by Daniel P. Berrange via Jim Meyering.
27226
27227 2008-11-12  Jim Meyering  <meyering@redhat.com>
27228
27229         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
27230
27231 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27232
27233         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
27234         instead.
27235
27236 2008-11-12  Bruno Haible  <bruno@clisp.org>
27237
27238         * lib/unicodeio.c: Include unistr.h.
27239         (utf8_wctomb): Remove function.
27240         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
27241
27242 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27243
27244         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
27245         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
27246         <bruno@clisp.org>.
27247         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
27248
27249 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27250
27251         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
27252         * doc/gnulib.texi: Add section for warnings.
27253
27254 2008-11-11  Bruno Haible  <bruno@clisp.org>
27255
27256         * lib/sockets.h: Add a comment.
27257
27258 2008-11-11  Karl Berry  <karl@gnu.org>
27259
27260         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
27261
27262 2008-11-11  Eric Blake  <ebb9@byu.net>
27263
27264         fdl.texi: avoid git symlinks
27265         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
27266
27267 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27268
27269         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
27270
27271 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27272
27273         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
27274         (gl_WARN_ADD): Substitute $2 if literal.
27275
27276 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27277
27278         * m4/warning.m4: Remove.
27279
27280 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27281
27282         * m4/warnings.m4: Almost complete rewrite. :-)
27283
27284 2008-11-10  Simon Josefsson  <simon@josefsson.org>
27285
27286         * modules/warnings: New module.
27287         * m4/warnings.m4: New file.
27288         * MODULES.html.sh: Mention warnings module.
27289         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
27290         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27291
27292 2008-11-10  Eric Blake  <ebb9@byu.net>
27293
27294         fdl.texi: make a symlink to the latest version
27295         * doc/standards.texi: Revert today's earlier change.
27296         * doc/fdl-1.2.texi: Rename from old fdl.texi...
27297         * doc/fdl.texi: ...and replace this with a symlink to the newer
27298         fdl-1.3.texi.
27299
27300 2008-11-10  Bruno Haible  <bruno@clisp.org>
27301
27302         * tests/test-select-fd.c (main): Accept the result file name as fourth
27303         argument.
27304         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
27305         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
27306
27307 2008-11-10  Bruno Haible  <bruno@clisp.org>
27308
27309         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
27310         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
27311         as autoconf-substituted macros.
27312         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
27313         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
27314         gl_NETDB_H_DEFAULTS. Set these variables.
27315         * modules/netdb (Makefile.am): Substitute these variables.
27316
27317 2008-11-10  Eric Blake  <ebb9@byu.net>
27318
27319         standards.texi: include correct file for FDL 1.3
27320         * doc/standards.texi (GNU Free Documentation License): Change
27321         include file to pull in FDL 1.3, not 1.2.
27322
27323         fdl.texi: revert accidental change to license
27324         * doc/fdl.texi: This is FDL 1.2, not 1.3.
27325
27326 2008-11-10  Bruno Haible  <bruno@clisp.org>
27327
27328         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
27329         cross-compiling guesses also when the native compile gives no result.
27330
27331 2008-11-10  Bruno Haible  <bruno@clisp.org>
27332
27333         * lib/spawni.c (__spawni): Force variable into the stack.
27334
27335 2008-11-10  Bruno Haible  <bruno@clisp.org>
27336
27337         Add support for Haiku.
27338         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
27339         glibc and BeOS, but also on Haiku.
27340         * lib/fpurge.c (fpurge): Likewise.
27341         * lib/freadable.c (freadable): Likewise.
27342         * lib/freadahead.c (freadahead): Likewise.
27343         * lib/freading.c (freading): Likewise.
27344         * lib/freadptr.c (freadptr): Likewise.
27345         * lib/freadseek.c (freadptrinc): Likewise.
27346         * lib/fseeko.c (rpl_fseeko): Likewise.
27347         * lib/fseterr.c (fseterr): Likewise.
27348         * lib/fwritable.c (fwritable): Likewise.
27349         * lib/fwriting.c (fwriting): Likewise.
27350         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
27351
27352 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
27353
27354         * lib/config.charset: Treat Haiku like BeOS.
27355
27356 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
27357
27358         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
27359         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
27360
27361 2008-11-08  Bruno Haible  <bruno@clisp.org>
27362
27363         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
27364         AC_CACHE_CHECK.
27365
27366 2008-11-08  Bruno Haible  <bruno@clisp.org>
27367
27368         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
27369
27370 2008-11-08  Bruno Haible  <bruno@clisp.org>
27371
27372         * tests/test-select-fd.c: New file.
27373         * tests/test-select-in.sh: New file.
27374         * tests/test-select-out.sh: New file.
27375         * tests/test-select-stdin.c: New file.
27376         * modules/select-tests (Files): Add the new files.
27377         (Depends-on): Add gettimeofday.
27378         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
27379         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
27380         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
27381
27382 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
27383             Bruno Haible  <bruno@clisp.org>
27384
27385         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
27386
27387 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
27388
27389         * build-aux/pmccabe2html: Added support for C++ source files.
27390
27391 2008-11-05  Ben Pfaff  <blp@gnu.org>
27392
27393         Fix lib/close.c build on Windows.
27394         * modules/close (Files): Add lib/w32sock.h.
27395
27396 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
27397
27398         Accept Bison's NEWS format.
27399         * build-aux/announce-gen (print_news_deltas): Tweak
27400         $re_prefix.
27401
27402 2008-11-04  Bruno Haible  <bruno@clisp.org>
27403
27404         * modules/random_r (Maintainer): Add glibc.
27405
27406 2008-11-04  Simon Josefsson  <simon@josefsson.org>
27407
27408         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
27409         by karl@freefriends.org (Karl Berry).
27410         * doc/alloca.texi: Likewise.
27411         * doc/c-ctype.texi: Likewise.
27412         * doc/c-strcase.texi: Likewise.
27413         * doc/c-strcaseeq.texi: Likewise.
27414         * doc/c-strcasestr.texi: Likewise.
27415         * doc/c-strstr.texi: Likewise.
27416         * doc/c-strtod.texi: Likewise.
27417         * doc/c-strtold.texi: Likewise.
27418         * doc/ctime.texi: Likewise.
27419         * doc/error.texi: Likewise.
27420         * doc/fdl.texi: Likewise.
27421         * doc/gcd.texi: Likewise.
27422         * doc/getdate.texi: Likewise.
27423         * doc/gnulib-intro.texi: Likewise.
27424         * doc/gnulib-tool.texi: Likewise.
27425         * doc/gnulib.texi: Likewise.
27426         * doc/inet_ntoa.texi: Likewise.
27427         * doc/maintain.texi: Likewise.
27428         * doc/make-stds.texi: Likewise.
27429         * doc/quote.texi: Likewise.
27430         * doc/regexprops-generic.texi: Likewise.
27431         * doc/standards.texi: Likewise.
27432         * doc/verify.texi: Likewise.
27433         * doc/visibility.texi: Likewise.
27434         * doc/gnulib.texi (GNU Free Documentation License): Include
27435         fdl-1.3.texi instead of fdl.texi.
27436
27437 2008-11-04  Simon Josefsson  <simon@josefsson.org>
27438
27439         * doc/fdl-1.3.texi: New file, from
27440         <http://www.gnu.org/licenses/fdl-1.3.texi>.
27441         * modules/fdl-1.3: Add.
27442         * MODULES.html.sh: Add fdl-1.3.
27443
27444 2008-11-03  Bruno Haible  <bruno@clisp.org>
27445
27446         Make determination of absolute name of header file work with AIX xlc.
27447         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
27448         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
27449         preprocessing.
27450         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27451         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
27452
27453 2008-11-03  Simon Josefsson  <simon@josefsson.org>
27454
27455         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
27456         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
27457         <ludo@gnu.org>.
27458
27459 2008-11-02  Bruno Haible  <bruno@clisp.org>
27460
27461         Mark 'strpbrk' obsolete.
27462         * modules/strpbrk (Status, Notice): New sections.
27463         * modules/strtok_r (Depends-on): Add strpbrk.
27464
27465 2008-11-02  Bruno Haible  <bruno@clisp.org>
27466
27467         Mark 'strdup' obsolete.
27468         * modules/strdup (Status, Notice): New sections.
27469         * modules/findprog (Depends-on): Add strdup.
27470         * modules/getaddrinfo (Depends-on): Likewise.
27471         * modules/localename (Depends-on): Likewise.
27472         * modules/relocatable-lib (Depends-on): Likewise.
27473         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
27474         * modules/relocatable-prog (Depends-on): Likewise.
27475         * modules/trim (Depends-on): Likewise.
27476         * modules/unictype/gen-ctype (Depends-on): Likewise.
27477         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
27478
27479 2008-11-02  Bruno Haible  <bruno@clisp.org>
27480
27481         Mark 'strcspn' obsolete.
27482         * modules/strcspn (Status, Notice): New sections.
27483
27484 2008-11-02  Bruno Haible  <bruno@clisp.org>
27485
27486         Mark 'rmdir' obsolete.
27487         * modules/rmdir (Status, Notice): New sections.
27488         * modules/clean-temp (Depends-on): Add rmdir.
27489         * modules/openat (Depends-on): Likewise.
27490
27491 2008-11-02  Bruno Haible  <bruno@clisp.org>
27492
27493         Mark 'raise' obsolete.
27494         * modules/raise (Status, Notice): New sections.
27495         (Include): Specify <signal.h>.
27496         * modules/stdio (Depends-on): Add raise.
27497         * modules/write (Depends-on): Likewise.
27498
27499 2008-11-02  Bruno Haible  <bruno@clisp.org>
27500
27501         Mark 'memset' obsolete.
27502         * modules/memset (Status, Notice): New sections.
27503
27504 2008-11-02  Bruno Haible  <bruno@clisp.org>
27505
27506         Mark 'memmove' obsolete.
27507         * modules/memmove (Status, Notice): New sections.
27508         * modules/argp (Depends-on): Add memmove.
27509         * modules/argz (Depends-on): Likewise.
27510         * modules/canonicalize (Depends-on): Likewise.
27511         * modules/canonicalize-lgpl (Depends-on): Likewise.
27512         * modules/fts (Depends-on): Likewise.
27513         * modules/getcwd (Depends-on): Likewise.
27514         * modules/human (Depends-on): Likewise.
27515         * modules/regex (Depends-on): Likewise.
27516         * modules/striconveh (Depends-on): Likewise.
27517         * modules/trim (Depends-on): Likewise.
27518         * modules/unistr/u8-move (Depends-on): Likewise.
27519         * modules/unistr/u16-move (Depends-on): Likewise.
27520         * modules/unistr/u32-move (Depends-on): Likewise.
27521
27522 2008-11-02  Bruno Haible  <bruno@clisp.org>
27523
27524         Mark 'memcpy' obsolete.
27525         * modules/memcpy (Status, Notice): New sections.
27526
27527 2008-11-02  Bruno Haible  <bruno@clisp.org>
27528
27529         Mark 'memcmp' obsolete.
27530         * modules/memcmp (Status, Notice): New sections.
27531         * modules/argmatch (Depends-on): Add memchr.
27532         * modules/backupfile (Depends-on): Likewise.
27533         * modules/c-strcasestr (Depends-on): Likewise.
27534         * modules/crypto/des (Depends-on): Likewise.
27535         * modules/csharpcomp (Depends-on): Likewise.
27536         * modules/fnmatch (Depends-on): Likewise.
27537         * modules/git-merge-changelog (Depends-on): Likewise.
27538         * modules/isnand (Depends-on): Likewise.
27539         * modules/isnand-nolibm (Depends-on): Likewise.
27540         * modules/isnanf (Depends-on): Likewise.
27541         * modules/isnanf-nolibm (Depends-on): Likewise.
27542         * modules/isnanl (Depends-on): Likewise.
27543         * modules/isnanl-nolibm (Depends-on): Likewise.
27544         * modules/mbchar (Depends-on): Likewise.
27545         * modules/memcoll (Depends-on): Likewise.
27546         * modules/quotearg (Depends-on): Likewise.
27547         * modules/regex (Depends-on): Likewise.
27548         * modules/relocatable-prog (Depends-on): Likewise.
27549         * modules/same (Depends-on): Likewise.
27550         * modules/signbit (Depends-on): Likewise.
27551         * modules/strcasestr-simple (Depends-on): Likewise.
27552         * modules/unictype/gen-ctype (Depends-on): Likewise.
27553         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
27554         * modules/uniname/uniname (Depends-on): Likewise.
27555         * modules/unistr/u8-cmp (Depends-on): Likewise.
27556
27557 2008-11-02  Bruno Haible  <bruno@clisp.org>
27558
27559         Mark 'memchr' obsolete.
27560         * modules/memchr (Status, Notice): New sections.
27561         * modules/argp (Depends-on): Add memchr.
27562         * modules/base64 (Depends-on): Likewise.
27563         * modules/c-strcasestr (Depends-on): Likewise.
27564         * modules/chdir-long (Depends-on): Likewise.
27565         * modules/fnmatch (Depends-on): Likewise.
27566         * modules/getsubopt (Depends-on): Likewise.
27567         * modules/git-merge-changelog (Depends-on): Likewise.
27568         * modules/glob (Depends-on): Likewise.
27569         * modules/strcasestr-simple (Depends-on): Likewise.
27570         * modules/strnlen (Depends-on): Likewise.
27571
27572 2008-11-02  Bruno Haible  <bruno@clisp.org>
27573
27574         Mark 'atexit' obsolete.
27575         * modules/atexit (Status, Notice): New sections.
27576         * modules/chdir-long (Depends-on): Add atexit.
27577         * modules/wait-process (Depends-on): Likewise.
27578
27579 2008-11-02  Bruno Haible  <bruno@clisp.org>
27580
27581         * gnulib-tool: New option --with-obsolete.
27582         (func_usage): Document it.
27583         (func_modules_transitive_closure): Drop obsolete dependencies if
27584         incobsolete is not true.
27585         (func_import): Read and save the incobsolete variable to the cache.
27586
27587 2008-11-02  Bruno Haible  <bruno@clisp.org>
27588
27589         * modules/TEMPLATE-EXTENDED: New field 'Status'.
27590         * gnulib-tool: New option --extract-status.
27591         (func_usage): Document it.
27592         (sed_extract_prog): Recognize it.
27593         (func_get_status): New function.
27594
27595 2008-10-30  Simon Josefsson  <simon@josefsson.org>
27596
27597         * modules/sockets (License): Change from LGPL to LGPLv2+.
27598
27599 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27600
27601         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
27602
27603 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27604
27605         * MODULES.html.sh (Support for systems lacking POSIX:2001):
27606         Mention times and sys_times.
27607         * modules/sys_times, modules/sys_times-tests: New modules.
27608         * modules/times, modules/times-tests: Likewise
27609         * m4/sys_times_h.m4: New file.
27610         * lib/sys_times.in.h: Likewise
27611         * lib/times.c: Likewise.
27612         * tests/test-sys_times.c: Likewise.
27613         * tests/test-times.c: Likewise.
27614         * doc/posix-headers/sys_times.texi: Update.
27615         * doc/posix-functions/times.texi: Update.
27616
27617 2008-10-28  Jim Meyering  <meyering@redhat.com>
27618
27619         * modules/tempname (Depends-on): Add lstat.
27620
27621         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
27622
27623 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27624
27625         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
27626         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
27627         using idiom used elsewhere in gnulib.
27628
27629 2008-10-27  Jim Meyering  <meyering@redhat.com>
27630
27631         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
27632
27633 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27634
27635         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
27636         TESTS_ENVIRONMENT, for shell scripts that needs to call built
27637         programs.
27638         * tests/test-argp-2.sh: Use $EXEEXT when needed.
27639
27640 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27641
27642         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
27643
27644 2008-10-27  Bruno Haible  <bruno@clisp.org>
27645
27646         * tests/test-lstat.c: Include <stdio.h>.
27647
27648 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27649
27650         * modules/lstat-tests: New module.
27651         * tests/test-lstat.c: New file.
27652
27653 2008-10-26  Jim Meyering  <meyering@redhat.com>
27654
27655         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
27656
27657 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27658             Bruno Haible  <bruno@clisp.org>
27659
27660         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
27661         * modules/configmake (Include): Add a note that the include must come
27662         after all system headers.
27663         * lib/javaversion.c: Include configmake.h after all other includes.
27664
27665 2008-10-26  Bruno Haible  <bruno@clisp.org>
27666
27667         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
27668         HAVE_STRUCT_RANDOM_DATA to 1.
27669         (gl_STDLIB_H): Simplify.
27670
27671 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27672
27673         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
27674         substitute HAVE_STRUCT_RANDOM_DATA.
27675         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
27676         random_data.
27677         * modules/stdlib (Makefile.am): Substitute
27678         HAVE_STRUCT_RANDOM_DATA.
27679
27680 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27681
27682         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
27683         * doc/gnulib-intro.texi (Copyright): Likewise.
27684
27685 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27686
27687         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
27688         findings.
27689
27690 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
27691             Bruno Haible  <bruno@clisp.org>
27692
27693         * lib/unistd.in.h: Include <winsock2.h>.
27694         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
27695         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
27696         Provide dummy declarations.
27697         (gethostname): Override.
27698         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
27699         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
27700         gl_PREREQ_SYS_H_WINSOCK2.
27701         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
27702         * doc/posix-functions/gethostname.texi: More details.
27703
27704 2008-10-25  Bruno Haible  <bruno@clisp.org>
27705
27706         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27707         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
27708         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
27709
27710         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
27711         here ...
27712         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
27713         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
27714         gl_UNISTD_H_DEFAULTS.
27715
27716 2008-10-25  Eric Blake  <ebb9@byu.net>
27717
27718         signbit: avoid spurious compiler failure
27719         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
27720         declarations inside function.
27721
27722 2008-10-24  Simon Josefsson  <simon@josefsson.org>
27723             Bruno Haible  <bruno@clisp.org>
27724
27725         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
27726         * modules/random_r (Depends-on): Add stdint.
27727
27728 2008-10-24  Bruno Haible  <bruno@clisp.org>
27729
27730         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
27731         Eggert.
27732         * modules/strerror (License): Likewise.
27733
27734 2008-10-24  Jim Meyering  <meyering@redhat.com>
27735
27736         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
27737         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
27738
27739 2008-10-24  Eric Blake  <ebb9@byu.net>
27740
27741         getgroups: fix compilation when getgroups is available
27742         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
27743         but with <config.h> override of getgroups disabled.
27744
27745 2008-10-24  Simon Josefsson  <simon@josefsson.org>
27746
27747         * doc/gnulib.texi (Header files): Add note about C++ problems.
27748         Explained by Bruno Haible <bruno@clisp.org>.
27749
27750 2008-10-23  Bruno Haible  <bruno@clisp.org>
27751
27752         Define a dummy SA_NODEFER macro on Interix.
27753         * lib/signal.in.h (SA_NODEFER): Define fallback.
27754         Reported by Aleksey Cheusov <cheusov@tut.by> via
27755         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
27756
27757 2008-10-23  Bruno Haible  <bruno@clisp.org>
27758
27759         * modules/freadahead (License): Change to LGPLv2+.
27760         Suggested by Simon Josefsson.
27761
27762 2008-10-23  Jim Meyering  <meyering@redhat.com>
27763
27764         random_r: new module
27765         * modules/random_r: New file.
27766         * m4/random_r.m4: New file.
27767         * lib/random_r.c: New file, from glibc.
27768         * modules/random_r-tests: New file.
27769         * tests/test-random_r.c: New file.
27770         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
27771          Declare.
27772         (RAND_MAX): Define.
27773         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
27774         * modules/stdlib: Substitute them, too.
27775         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
27776         * doc/glibc-functions/initstate_r.texi: Mention the new module.
27777         * doc/glibc-functions/random_r.texi: Likewise.
27778         * doc/glibc-functions/setstate_r.texi: Likewise.
27779         * doc/glibc-functions/srandom_r.texi: Likewise.
27780         * config/srclist.txt: Mention it.
27781
27782 2008-10-23  David Lutterkort  <lutter@redhat.com>
27783
27784         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
27785         link requirement
27786
27787 2008-10-23  Jim Meyering  <meyering@redhat.com>
27788
27789         selinux-h: mark parameters of stub functions as intentionally unused
27790         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
27791         * lib/se-context.in.h: Likewise.
27792
27793 2008-10-22  Simon Josefsson  <simon@josefsson.org>
27794
27795         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
27796
27797 2008-10-22  Simon Josefsson  <simon@josefsson.org>
27798
27799         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
27800
27801 2008-10-22  Eric Blake  <ebb9@byu.net>
27802
27803         glthread/thread: avoid compiler warning
27804         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
27805         Add unreachable abort to silence compiler.
27806
27807 2008-10-22  Eric Blake  <ebb9@byu.net>
27808
27809         netdb: also supply struct addrinfo for cygwin 1.5.x
27810         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
27811         older cygwin.
27812         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
27813         cygwin.
27814         * doc/posix-headers/netdb.texi (netdb.h): Document this.
27815
27816 2008-10-22  Bruno Haible  <bruno@clisp.org>
27817
27818         * users.txt: Update entry about pspp.
27819
27820 2008-10-21  Bruno Haible  <bruno@clisp.org>
27821
27822         Simplification.
27823         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
27824         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
27825
27826         Simplification.
27827         * lib/ioctl.c (ioctl): Don't undefine.
27828         * lib/socket.c (socket): Don't undefine.
27829
27830         Remove unused module indicator macros.
27831         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
27832         GNULIB_$1 as a C macro.
27833
27834         * doc/posix-functions/close.texi: Undo last change.
27835         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
27836         Windows platforms.
27837
27838 2008-10-21  Bruno Haible  <bruno@clisp.org>
27839
27840         Add gethostname() declaration to <unistd.h>.
27841         * lib/unistd.in.h (gethostname): New declaration.
27842         * lib/gethostname.c: Include <unistd.h>.
27843         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
27844         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
27845         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
27846         and HAVE_GETHOSTNAME.
27847         * modules/gethostname (Depends-on): Add unistd.
27848         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27849         (Include): Specify <unistd.h>.
27850         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
27851         HAVE_GETHOSTNAME.
27852         * tests/test-gethostname.c: Include <unistd.h> first.
27853
27854 2008-10-21  Bruno Haible  <bruno@clisp.org>
27855
27856         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
27857         * modules/select-tests (Depends-on): Likewise.
27858         Reported by Simon Josefsson.
27859
27860 2008-10-21  Simon Josefsson  <simon@josefsson.org>
27861
27862         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
27863         * lib/accept.c: New file, based on winsock.c.
27864         * lib/bind.c: New file, based on winsock.c.
27865         * lib/connect.c: New file, based on winsock.c.
27866         * lib/getpeername.c: New file, based on winsock.c.
27867         * lib/getsockname.c: New file, based on winsock.c.
27868         * lib/getsockopt.c: New file, based on winsock.c.
27869         * lib/ioctl.c: New file, based on winsock.c.
27870         * lib/listen.c: New file, based on winsock.c.
27871         * lib/recv.c: New file, based on winsock.c.
27872         * lib/recvfrom.c: New file, based on winsock.c.
27873         * lib/send.c: New file, based on winsock.c.
27874         * lib/sendto.c: New file, based on winsock.c.
27875         * lib/setsockopt.c: New file, based on winsock.c.
27876         * lib/shutdown.c: New file, based on winsock.c.
27877         * lib/socket.c: New file, based on winsock.c.
27878         * lib/w32sock.h: New file, based on winsock.c.
27879         * lib/winsock.c: Remove file.
27880         * modules/accept: Likewise.
27881         * modules/bind: Likewise.
27882         * modules/connect: Likewise.
27883         * modules/getpeername: Likewise.
27884         * modules/getsockname: Likewise.
27885         * modules/getsockopt: Likewise.
27886         * modules/ioctl: Likewise.
27887         * modules/listen: Likewise.
27888         * modules/recv: Likewise.
27889         * modules/recvfrom: Likewise.
27890         * modules/send: Likewise.
27891         * modules/sendto: Likewise.
27892         * modules/setsockopt: Likewise.
27893         * modules/shutdown: Likewise.
27894         * modules/socket: Use socket.c instead of winsock.c.
27895         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
27896         * doc/posix-functions/accept.texi: Doc fix.
27897         * doc/posix-functions/bind.texi: Doc fix.
27898         * doc/posix-functions/close.texi: Doc fix.
27899         * doc/posix-functions/connect.texi: Doc fix.
27900         * doc/posix-functions/getpeername.texi: Doc fix.
27901         * doc/posix-functions/getsockname.texi: Doc fix.
27902         * doc/posix-functions/getsockopt.texi: Doc fix.
27903         * doc/posix-functions/ioctl.texi: Doc fix.
27904         * doc/posix-functions/listen.texi: Doc fix.
27905         * doc/posix-functions/recv.texi: Doc fix.
27906         * doc/posix-functions/recvfrom.texi: Doc fix.
27907         * doc/posix-functions/send.texi: Doc fix.
27908         * doc/posix-functions/sendto.texi: Doc fix.
27909         * doc/posix-functions/setsockopt.texi: Doc fix.
27910         * doc/posix-functions/shutdown.texi: Doc fix.
27911         * doc/posix-functions/socket.texi: Doc fix.
27912
27913 2008-10-20  Bruno Haible  <bruno@clisp.org>
27914
27915         Take into account the role of SIGABRT_COMPAT on Windows 2008.
27916         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
27917         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
27918         as an alias for SIGABRT.
27919         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
27920         (sigaction): Map it to SIGABRT.
27921         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
27922
27923 2008-10-20  Bruno Haible  <bruno@clisp.org>
27924
27925         * lib/fts.c: Don't include lstat.h.
27926         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
27927
27928         Move the lstat() declaration to <sys/stat.h>.
27929         * lib/lstat.h: Remove file.
27930         * lib/sys_stat.in.h: Add special invocation convention.
27931         (lstat): New declaration.
27932         * lib/lstat.c (orig_lstat): New function.
27933         (rpl_lstat): Use orig_lstat instead of lstat.
27934         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
27935         AC_C_INLINE. Set REPLACE_LSTAT.
27936         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
27937         and REPLACE_LSTAT.
27938         * modules/lstat (Files): Remove lib/lstat.h.
27939         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
27940         (Include): Specify <sys/stat.h> instead of lstat.h.
27941         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
27942         REPLACE_LSTAT.
27943         * NEWS: Mention the change.
27944
27945 2008-10-20  Bruno Haible  <bruno@clisp.org>
27946
27947         * modules/posix_spawn-tests: New file.
27948         * tests/test-posix_spawn3.c: New file.
27949
27950 2008-10-20  Bruno Haible  <bruno@clisp.org>
27951
27952         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
27953         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
27954         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
27955         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
27956         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
27957
27958 2008-10-20  Bruno Haible  <bruno@clisp.org>
27959
27960         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
27961         of posix_spawn on AIX 5.3.
27962
27963 2008-10-20  Bruno Haible  <bruno@clisp.org>
27964
27965         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
27966
27967 2008-10-20  Bruno Haible  <bruno@clisp.org>
27968
27969         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
27970         of AC_LANG_PROGRAM.
27971
27972 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27973
27974         * lib/netdb.in.h: Don't define GNU specific constants until they
27975         are supported or needed.  Reported by Bruno Haible
27976         <bruno@clisp.org>.
27977
27978 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27979
27980         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
27981
27982 2008-10-20  Simon Josefsson  <simon@josefsson.org>
27983
27984         * lib/getaddrinfo.h: Remove file.
27985         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
27986         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
27987         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
27988         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
27989         * modules/netdb: Substitute GNULIB_GETADDRINFO.
27990         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
27991         * tests/test-getaddrinfo.c: Likewise.
27992         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
27993         * NEWS: Mention change.
27994
27995 2008-10-19  Bruno Haible  <bruno@clisp.org>
27996
27997         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
27998
27999 2008-10-19  Bruno Haible  <bruno@clisp.org>
28000
28001         * lib/wait-process.c: Include simply <sys/wait.h>.
28002         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
28003         WIFSTOPPED): Remove fallback definitions.
28004         * modules/wait-process (Depends-on): Add sys_wait.
28005
28006         New module 'sys_wait'.
28007         * modules/sys_wait: New file.
28008         * lib/sys_wait.in.h: New file, partially copied from
28009         lib/wait-process.c.
28010         * m4/sys_wait_h.m4: New file.
28011         * doc/posix-headers/sys_wait.texi: Mention the new module.
28012
28013 2008-10-19  Bruno Haible  <bruno@clisp.org>
28014
28015         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
28016
28017 2008-10-19  Bruno Haible  <bruno@clisp.org>
28018
28019         Assume that waitpid() fills an 'int' status, not a 'union wait'.
28020         * lib/wait-process.c (WAIT_T): Remove type.
28021         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
28022         (wait_subprocess): Update.
28023
28024 2008-10-19  Bruno Haible  <bruno@clisp.org>
28025
28026         New module 'atoll'.
28027         * modules/atoll: New file.
28028         * lib/stdlib.in.h (atoll): New declaration.
28029         * lib/atoll.c: New file, from glibc with modifications.
28030         * m4/atoll.m4: New file.
28031         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
28032         HAVE_ATOLL.
28033         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
28034         * doc/posix-functions/atoll.texi: Mention the new module.
28035
28036 2008-10-19  Bruno Haible  <bruno@clisp.org>
28037
28038         Add strtoull() declaration to <stdlib.h>.
28039         * lib/stdlib.in.h (strtoull): New declaration.
28040         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
28041         Set HAVE_STRTOULL.
28042         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
28043         HAVE_STRTOULL.
28044         * modules/strtoull (Depends-on): Add stdlib.
28045         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28046         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
28047         HAVE_STRTOULL.
28048
28049 2008-10-19  Bruno Haible  <bruno@clisp.org>
28050
28051         Add strtoll() declaration to <stdlib.h>.
28052         * lib/stdlib.in.h (strtoll): New declaration.
28053         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
28054         Set HAVE_STRTOLL.
28055         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
28056         HAVE_STRTOLL.
28057         * modules/strtoll (Depends-on): Add stdlib.
28058         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28059         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
28060
28061 2008-10-19  Bruno Haible  <bruno@clisp.org>
28062
28063         * modules/bcopy (Depends-on): Add strings.
28064         (Include): Specify <strings.h>.
28065
28066 2008-10-19  Bruno Haible  <bruno@clisp.org>
28067
28068         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
28069
28070 2008-10-19  Bruno Haible  <bruno@clisp.org>
28071
28072         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
28073         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
28074         mingw.
28075
28076 2008-10-19  Bruno Haible  <bruno@clisp.org>
28077
28078         * lib/atanl.c: Don't include isnanl.h.
28079         * lib/cosl.c: Likewise.
28080         * lib/ldexpl.c: Likewise.
28081         * lib/logl.c: Likewise.
28082         * lib/sinl.c: Likewise.
28083         * lib/sqrtl.c: Likewise.
28084         * lib/tanl.c: Likewise.
28085
28086         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
28087         * lib/isnanf.h: Remove file.
28088         * lib/isnand.h: Remove file.
28089         * lib/isnanl.h: Remove file.
28090         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
28091         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
28092         macros.
28093         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
28094         HAVE_ISNANF, don't define it as a C macro.
28095         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
28096         HAVE_ISNAND, don't define it as a C macro.
28097         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
28098         HAVE_ISNANL, don't define it as a C macro.
28099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
28100         HAVE_ISNAN[FDL].
28101         * modules/isnanf (Files): Remove lib/isnanf.h.
28102         (Depends-on): Add math.
28103         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28104         (Include): Specify <math.h> instead of isnanf.h.
28105         * modules/isnand (Files): Remove lib/isnand.h.
28106         (Depends-on): Add math.
28107         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28108         (Include): Specify <math.h> instead of isnand.h.
28109         * modules/isnanl (Files): Remove lib/isnanl.h.
28110         (Depends-on): Add math.
28111         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28112         (Include): Specify <math.h> instead of isnanl.h.
28113         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
28114         HAVE_ISNAN[FDL].
28115         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
28116         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
28117         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
28118         * NEWS: Mention the change.
28119
28120 2008-10-18  Bruno Haible  <bruno@clisp.org>
28121
28122         Add getusershell(), setusershell(), endusershell() declarations to
28123         <unistd.h>.
28124         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
28125         declarations.
28126         * lib/getusershell.c: Include unistd.h.
28127         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
28128         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
28129         HAVE_GETUSERSHELL.
28130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
28131         and HAVE_GETUSERSHELL.
28132         * modules/getusershell (Depends-on): Add unistd, extensions.
28133         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28134         (Include): Specify <unistd.h>.
28135         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
28136         HAVE_GETUSERSHELL.
28137
28138 2008-10-18  Bruno Haible  <bruno@clisp.org>
28139
28140         Add a getloadavg() declaration to <stdlib.h>.
28141         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
28142         getloadavg declaration.
28143         (getloadavg): New declaration.
28144         * lib/getloadavg.c: Include <stdlib.h> first.
28145         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
28146         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
28147         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
28148         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
28149         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
28150         * modules/getloadavg (Depends-on): Add stdlib, extensions.
28151         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28152         (Include): Specify <stdlib.h>.
28153         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
28154         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
28155
28156 2008-10-18  Bruno Haible  <bruno@clisp.org>
28157
28158         * lib/dirchownmod.c: Don't include lchmod.h.
28159
28160         Move the lchmod() declaration to <sys/stat.h>.
28161         * lib/lchmod.h: Remove file.
28162         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
28163         (lchmod): New declaration, moved here from lib/lchown.h.
28164         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
28165         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
28166         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
28167         and HAVE_LCHMOD.
28168         * modules/lchmod (Files): Remove lib/lchmod.h.
28169         (Depends-on): Add sys_stat, extensions.
28170         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
28171         (Include): Specify <sys/stat.h> instead of lchmod.h.
28172         * modules/sys_stat (Depends-on): Add link-warning.
28173         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
28174         definition of GL_LINK_WARNING.
28175         * NEWS: Mention the change.
28176
28177 2008-10-18  Bruno Haible  <bruno@clisp.org>
28178
28179         * lib/fchdir.c: Don't include dirfd.h.
28180         * lib/fts.c: Likewise.
28181         * lib/getcwd.c: Likewise.
28182         * lib/glob.c: Likewise.
28183
28184         Move the dirfd() declaration to <dirent.h>.
28185         * lib/dirfd.h: Remove file.
28186         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
28187         (dirfd): New declaration.
28188         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
28189         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
28190         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
28191         HAVE_DECL_DIRFD.
28192         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
28193         HAVE_DECL_DIRFD.
28194         * modules/dirfd (Files): Remove lib/dirfd.h.
28195         (Depends-on): Add dirent, extensions.
28196         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
28197         (Include): Specify <dirent.h> instead of dirfd.h.
28198         * modules/dirent (Depends-on): Add link-warning.
28199         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
28200         definition of GL_LINK_WARNING.
28201         * NEWS: Mention the change.
28202
28203 2008-10-18  Bruno Haible  <bruno@clisp.org>
28204
28205         Move the euidaccess() declaration to <unistd.h>.
28206         * lib/euidaccess.h: Remove file.
28207         * lib/unistd.in.h (euidaccess): New declaration.
28208         * lib/euidaccess.c: Don't include euidaccess.h.
28209         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
28210         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
28211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
28212         and HAVE_EUIDACCESS.
28213         * modules/euidaccess (Files): Remove lib/euidaccess.h.
28214         (Depends-on): Add unistd.
28215         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28216         (Include): Specify <unistd.h> instead of euidaccess.h.
28217         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
28218         HAVE_EUIDACCESS.
28219         * NEWS: Mention the change.
28220
28221 2008-10-18  Bruno Haible  <bruno@clisp.org>
28222
28223         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
28224
28225         Move the getdomainname() declaration to <unistd.h>.
28226         * lib/getdomainname.h: Remove file.
28227         * lib/unistd.in.h (getdomainname): New declaration.
28228         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
28229         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28230         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
28231         HAVE_GETDOMAINNAME.
28232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28233         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
28234         * modules/getdomainname (Files): Remove lib/getdomainname.h.
28235         (Depends-on): Add unistd, extensions.
28236         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28237         (Includes): Specify <unistd.h> instead of getdomainname.h.
28238         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
28239         HAVE_GETDOMAINNAME.
28240         * NEWS: Mention the change.
28241
28242 2008-10-18  Bruno Haible  <bruno@clisp.org>
28243
28244         * modules/dirent: New file.
28245         * m4/dirent_h.m4: New file.
28246         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
28247         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
28248         * modules/fchdir (Files): Remove lib/dirent.in.h.
28249         (Depends-on): Add dirent.
28250         (Makefile.am): Move rules to modules/dirent.
28251         * doc/posix-headers/dirent.texi: Mention the new module.
28252
28253 2008-10-18  Bruno Haible  <bruno@clisp.org>
28254
28255         Avoid -Wunused-parameter warnings in public gnulib header files.
28256         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
28257         macro.
28258         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
28259
28260 2008-10-18  Bruno Haible  <bruno@clisp.org>
28261
28262         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
28263         * doc/glibc-functions/error.texi: Mention the module 'error'.
28264         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
28265         * doc/glibc-functions/getdomainname.texi: Mention the module
28266         'getdomainname'.
28267         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
28268         * doc/glibc-functions/getpagesize.texi: Mention the module
28269         'getpagesize'.
28270         * doc/glibc-functions/getusershell.texi: Mention the module
28271         'getusershell'.
28272         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
28273         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
28274         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
28275         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
28276         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
28277         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
28278         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
28279         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
28280         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
28281         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
28282         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
28283         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
28284         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
28285         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
28286
28287 2008-10-17  Bruno Haible  <bruno@clisp.org>
28288
28289         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
28290         HP-UX and IRIX, use -0.0L.
28291         * tests/test-ceill.c (minus_zero): Likewise.
28292         * tests/test-floorl.c (minus_zero): Likewise.
28293         * tests/test-frexpl.c (minus_zero): Likewise.
28294         * tests/test-isnan.c (minus_zerol): Likewise.
28295         * tests/test-isnanl.h (minus_zero): Likewise.
28296         * tests/test-ldexpl.c (minus_zero): Likewise.
28297         * tests/test-roundl.c (minus_zero): Likewise.
28298         * tests/test-signbit.c (minus_zerol): Likewise.
28299         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
28300         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
28301         * tests/test-truncl.c (minus_zero): Likewise.
28302         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
28303         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
28304         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
28305         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
28306
28307 2008-10-17  Bruno Haible  <bruno@clisp.org>
28308
28309         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
28310         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
28311         that it gets activated only for gcc >= 3.0.
28312         * lib/dirent.in.h: Likewise.
28313         * lib/errno.in.h: Likewise.
28314         * lib/fcntl.in.h: Likewise.
28315         * lib/float.in.h: Likewise.
28316         * lib/iconv.in.h: Likewise.
28317         * lib/inttypes.in.h: Likewise.
28318         * lib/locale.in.h: Likewise.
28319         * lib/math.in.h: Likewise.
28320         * lib/netdb.in.h: Likewise.
28321         * lib/netinet_in.in.h: Likewise.
28322         * lib/search.in.h: Likewise.
28323         * lib/signal.in.h: Likewise.
28324         * lib/spawn.in.h: Likewise.
28325         * lib/stdarg.in.h: Likewise.
28326         * lib/stdint.in.h: Likewise.
28327         * lib/stdio.in.h: Likewise.
28328         * lib/stdlib.in.h: Likewise.
28329         * lib/string.in.h: Likewise.
28330         * lib/strings.in.h: Likewise.
28331         * lib/sys_file.in.h: Likewise.
28332         * lib/sys_ioctl.in.h: Likewise.
28333         * lib/sys_select.in.h: Likewise.
28334         * lib/sys_socket.in.h: Likewise.
28335         * lib/sys_stat.in.h: Likewise.
28336         * lib/sys_time.in.h: Likewise.
28337         * lib/sysexits.in.h: Likewise.
28338         * lib/time.in.h: Likewise.
28339         * lib/unistd.in.h: Likewise.
28340         * lib/wchar.in.h: Likewise.
28341         * lib/wctype.in.h: Likewise.
28342         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28343
28344 2008-10-17  Jim Meyering  <meyering@redhat.com>
28345
28346         ignore-value: don't depend on inline module
28347         * modules/ignore-value (Depends-on): Remove 'inline'.
28348         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
28349         Suggestion from Bruno Haible.
28350
28351 2008-10-17  Bruno Haible  <bruno@clisp.org>
28352
28353         New implementation of condition variables for Win32.
28354         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
28355         (gl_linked_waitqueue_t): New type.
28356         (gl_cond_t): Use it.
28357         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
28358         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
28359         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
28360         (glthread_cond_init_func, glthread_cond_wait_func,
28361         glthread_cond_timedwait_func, glthread_cond_signal_func,
28362         glthread_cond_broadcast_func, glthread_cond_destroy_func):
28363         Reimplemented on the basis of gl_linked_waitqueue_t.
28364         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
28365         gl_waitqueue_t.
28366         (gl_rwlock_t): Update.
28367         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
28368
28369 2008-10-17  Simon Josefsson  <simon@josefsson.org>
28370
28371         * modules/recvfrom (Depends-on): Add dependency on getpeername.
28372         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28373
28374 2008-10-17  Jim Meyering  <meyering@redhat.com>
28375
28376         ignore-value: new module
28377         * modules/ignore-value: New file.
28378         * lib/ignore-value.h: New file.
28379         * MODULES.html.sh (Compiler warning management): New section,
28380         just for this module.  More to come.
28381
28382 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28383
28384         open-safer.c: avoid 'signed and unsigned in conditional...' warning
28385         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
28386         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
28387
28388 2008-10-16  Jim Meyering  <meyering@redhat.com>
28389
28390         openat-die.c: avoid 'no previous prototype' warning
28391         * lib/openat-die.c: Include "openat.h".
28392         Reported by Reuben Thomas <rrt@sc3d.org>.
28393
28394 2008-10-16  Simon Josefsson  <simon@josefsson.org>
28395
28396         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
28397         * lib/netdb.in.h: Fix typo.
28398         Reported by Bruno Haible  <bruno@clisp.org>
28399
28400         * lib/netdb.in.h: Include sys/socket.h for platforms without
28401         netdb.h, to get structures like hostent on MinGW.
28402         * modules/netdb (Depends-on): Add sys_socket.
28403
28404 2008-10-15  Simon Josefsson  <simon@josefsson.org>
28405
28406         * modules/netdb, modules/netdb-tests: New file.
28407         * m4/netdb_h.m4: New file.
28408         * lib/netdb.in.h: Add, currently just an empty file pending
28409         definitions.
28410         * tests/test-netdb.c: New file.
28411         * doc/posix-headers/netdb.texi: Mention that we replace it if
28412         needed.
28413         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28414         netdb.
28415
28416 2008-10-15  Simon Josefsson  <simon@josefsson.org>
28417
28418         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
28419         with code.
28420
28421 2008-10-13  Bruno Haible  <bruno@clisp.org>
28422
28423         * lib/glthread/cond.c (glthread_cond_wait_func,
28424         glthread_cond_timedwait_func): Add a comment.
28425
28426 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28427
28428         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
28429         * tests/test-select.c: Likewise,
28430
28431 2008-10-13  Bruno Haible  <bruno@clisp.org>
28432
28433         * lib/glthread/cond.c (glthread_cond_wait_func,
28434         glthread_cond_timedwait_func): Fix variable name.
28435         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28436
28437 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
28438
28439         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
28440         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
28441         struct sockaddr.sa_len.
28442         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
28443
28444 2008-10-13  Simon Josefsson  <simon@josefsson.org>
28445
28446         * build-aux/pmccabe2html: Add css and css_url parameters.
28447
28448 2008-10-12  Bruno Haible  <bruno@clisp.org>
28449
28450         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
28451         calling aclx_get.
28452         Reported by Rainer Tammer <tammer@tammer.net>.
28453
28454 2008-10-12  Bruno Haible  <bruno@clisp.org>
28455
28456         Use msvcrt aware primitives for creation/termination of Win32 threads.
28457         * lib/glthread/thread.c: Include <process.h>.
28458         (glthread_create_func): Use _beginthreadex instead of CreateThread.
28459         (wrapper_func): Update signature.
28460         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
28461
28462 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28463             Bruno Haible  <bruno@clisp.org>
28464
28465         Provide a Win32 implementation of the 'cond' module.
28466         * lib/glthread/cond.h [USE_WIN32]: New implementation.
28467         * lib/glthread/cond.c (glthread_cond_init_func,
28468         glthread_cond_wait_func, glthread_cond_timedwait_func,
28469         glthread_cond_signal_func, glthread_cond_broadcast_func,
28470         glthread_cond_destroy_func) [USE_WIN32]: New functions.
28471         * modules/cond (Dependencies): Add gettimeofday.
28472
28473 2008-10-11  Bruno Haible  <bruno@clisp.org>
28474
28475         Make sleep work on older versions of mingw.
28476         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
28477         only whether it exists.
28478         * doc/posix-functions/sleep.texi: Mention the problem with older
28479         versions of mingw.
28480
28481 2008-10-11  Bruno Haible  <bruno@clisp.org>
28482
28483         New module 'shutdown'.
28484         * modules/shutdown: New file.
28485         * lib/sys_socket.in.h (shutdown): New declaration.
28486         * lib/winsock.c (shutdown): New function.
28487         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28488         GNULIB_SHUTDOWN.
28489         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
28490         * doc/posix-functions/shutdown.texi: Document the new module.
28491
28492 2008-10-11  Jim Meyering  <meyering@redhat.com>
28493
28494         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
28495
28496 2008-10-11  Bruno Haible  <bruno@clisp.org>
28497
28498         New module 'fclose'.
28499         * modules/fclose: New file.
28500         * lib/stdio.in.h (fclose): New declaration.
28501         * lib/fclose.c: New file.
28502         * m4/fclose.m4: New file.
28503         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
28504         REPLACE_FCLOSE.
28505         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
28506         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
28507         REPLACE_FCLOSE.
28508         * modules/close (Depends-on): fclose.
28509         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
28510
28511 2008-10-11  Bruno Haible  <bruno@clisp.org>
28512
28513         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
28514         set errno and don't call _close.
28515
28516 2008-10-10  Bruno Haible  <bruno@clisp.org>
28517
28518         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
28519         ACL, not afterwards. Fixes test failure on Cygwin.
28520
28521 2008-10-09  Ben Pfaff  <blp@gnu.org>
28522
28523         * build-aux/announce-gen: Fix gnulib version related part of usage
28524         message.  Die with a useful error message if no tarballs are
28525         found.
28526
28527 2008-10-10  Jim Meyering  <meyering@redhat.com>
28528
28529         bootstrap: use git's --depth=N option only if it's supported
28530         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
28531         recognize the --depth option.  Reported by Pádraig Brady.
28532
28533 2008-10-09  Bruno Haible  <bruno@clisp.org>
28534
28535         New module 'ioctl'.
28536         * modules/ioctl: New file.
28537         * lib/sys_socket.in.h (ioctl): Remove declaration.
28538         * lib/winsock.c: Include <sys/ioctl.h>.
28539         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
28540         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
28541         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
28542         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
28543         * doc/posix-functions/ioctl.texi: Mention the new module.
28544
28545 2008-10-09  Bruno Haible  <bruno@clisp.org>
28546
28547         New module 'sys_ioctl'.
28548         * lib/sys_ioctl.in.h: New file.
28549         * m4/sys_ioctl_h.m4: New file.
28550         * modules/sys_ioctl: New file.
28551         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
28552
28553 2008-10-09  Bruno Haible  <bruno@clisp.org>
28554
28555         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
28556         * lib/winsock.c: Include <stdarg.h>.
28557         (rpl_ioctl): Change to second argument 'int' and then varargs.
28558
28559 2008-10-09  Bruno Haible  <bruno@clisp.org>
28560
28561         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
28562         when the sys_socket module is present and the system has <winsock2.h>.
28563
28564 2008-10-09  Bruno Haible  <bruno@clisp.org>
28565
28566         * doc/posix-functions/close.texi: Mention module 'close' instead of
28567         module 'sys_socket'.
28568
28569 2008-10-09  Bruno Haible  <bruno@clisp.org>
28570
28571         * doc/glibc-headers/sys_ioctl.texi: New file.
28572         * doc/gnulib.texi: Include it.
28573
28574 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28575             Bruno Haible  <bruno@clisp.org>
28576
28577         Combine the two replacements of 'close'.
28578         * lib/sys_socket.in.h (close): Define to a reminder to include
28579         <unistd.h>.
28580         (_gl_close_fd_maybe_socket): New declaration.
28581         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
28582         * lib/winsock.c (close): Remove undefinition.
28583         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
28584         needed for the gnulib module 'close'.
28585         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
28586         define to an error symbol or to a warning, if suitable.
28587         * lib/close.c: Include <sys/socket.h>.
28588         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
28589         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
28590         UNISTD_H_HAVE_WINSOCK2_H.
28591         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
28592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28593         UNISTD_H_HAVE_WINSOCK2_H.
28594         * modules/sys_socket (Files): Add m4/unistd_h.m4.
28595         (configure.ac): Set a module indicator.
28596         (Makefile.am): Substitute GNULIB_CLOSE.
28597         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
28598         * modules/poll-tests (Depends-on): Add close.
28599         * modules/select-tests (Depends-on): Likewise.
28600
28601 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28602             Bruno Haible  <bruno@clisp.org>
28603
28604         New module 'close'.
28605         * modules/close: New file.
28606         * lib/unistd.in.h (close): Move declaration out of the
28607         FCHDIR_REPLACEMENT scope.
28608         (_gl_unregister_fd): New declaration.
28609         * lib/close.c: New file.
28610         * lib/fchdir.c (rpl_close): Remove function.
28611         * m4/close.m4: New file.
28612         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
28613         close.
28614         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
28615         REPLACE_CLOSE.
28616         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
28617         REPLACE_CLOSE.
28618         * modules/fchdir (Depends-on): Add close.
28619
28620 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28621             Bruno Haible  <bruno@clisp.org>
28622
28623         * lib/fcntl.in.h (open): Simplify conditionals.
28624         (_gl_register_fd): New declaration.
28625         * lib/fchdir.c (rpl_open): Remove function.
28626         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
28627         also.
28628         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
28629         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
28630         open.
28631
28632 2008-10-09  Jim Meyering  <meyering@redhat.com>
28633
28634         GNUmakefile: use the more name-space-friendly "_version"
28635         * top/GNUmakefile (_dummy): Update.
28636         (_version): Rename from "version".
28637
28638 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28639             Bruno Haible  <bruno@clisp.org>
28640
28641         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
28642         rpl_close.
28643         (_gl_register_fd): New function, extracted from rpl_open.
28644         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
28645         (rpl_open, rpl_opendir): Use _gl_register_fd.
28646
28647 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28648
28649         Fix organization of 'open' replacement.
28650         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
28651         (gl_FUNC_OPEN): Use it.
28652         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
28653
28654 2008-10-08  Bruno Haible  <bruno@clisp.org>
28655
28656         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
28657
28658 2008-10-08  Simon Josefsson  <simon@josefsson.org>
28659
28660         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
28661         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
28662         listen).
28663
28664 2008-10-08  Eric Blake  <ebb9@byu.net>
28665
28666         GNUmakefile: add 'make version' target
28667         * top/GNUmakefile (_curr-ver): Split version update rules...
28668         (version): ...into a target.
28669
28670 2008-10-07  Bruno Haible  <bruno@clisp.org>
28671
28672         Use a more portable replacement expression for -0.0L.
28673         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
28674         instead of -0.0L. Fix m4 quotation.
28675
28676         * tests/test-signbit.c: Include <float.h>.
28677         (minus_zero): New variable.
28678         (test_signbitl): Use minus_zero instead of -zero.
28679         * modules/signbit-tests (Depends-on): Add float.
28680
28681         * tests/test-ceill.c: Include <float.h>.
28682         (zero): Remove variable.
28683         (minus_zero): New variable.
28684         (main): Use minus_zero instead of -zero.
28685         * modules/ceill-tests (Depends-on): Add float.
28686
28687         * tests/test-floorl.c: Include <float.h>.
28688         (zero): Remove variable.
28689         (minus_zero): New variable.
28690         (main): Use minus_zero instead of -zero.
28691         * modules/floorl-tests (Depends-on): Add float.
28692
28693         * tests/test-roundl.c: Include <float.h>.
28694         (zero): Remove variable.
28695         (minus_zero): New variable.
28696         (main): Use minus_zero instead of -zero.
28697         * modules/roundl-tests (Depends-on): Add float.
28698
28699         * tests/test-truncl.c: Include <float.h>.
28700         (zero): Remove variable.
28701         (minus_zero): New variable.
28702         (main): Use minus_zero instead of -zero.
28703         * modules/truncl-tests (Depends-on): Add float.
28704
28705         * tests/test-frexpl.c (zero): Remove variable.
28706         (minus_zero): New variable.
28707         (main): Use minus_zero instead of -zero.
28708         * modules/frexpl-tests (Depends-on): Add float.
28709
28710         * tests/test-isnan.c (zerol): Remove variable.
28711         (minus_zerol): New variable.
28712         (test_long_double): Use minus_zerol instead of -zerol.
28713         * modules/isnan-tests (Depends-on): Add float.
28714
28715         * tests/test-isnanl.h (zero): Remove variable.
28716         (minus_zero): New variable.
28717         (main): Use minus_zero instead of -zero.
28718         * modules/isnanl-nolibm-tests (Depends-on): Add float.
28719         * modules/isnanl-tests (Depends-on): Add float.
28720
28721         * tests/test-ldexpl.c (zero): Remove variable.
28722         (minus_zero): New variable.
28723         (main): Use minus_zero instead of -zero.
28724         * modules/ldexpl-tests (Depends-on): Add float.
28725
28726         * tests/test-snprintf-posix.h (zerol): Remove variable.
28727         (minus_zerol): New variable.
28728         (test_function): Use minus_zerol instead of -zerol.
28729         * modules/snprintf-posix-tests (Depends-on): Add float.
28730         * modules/vsnprintf-posix-tests (Depends-on): Add float.
28731
28732         * tests/test-sprintf-posix.h (zerol): Remove variable.
28733         (minus_zerol): New variable.
28734         (test_function): Use minus_zerol instead of -zerol.
28735         * modules/sprintf-posix-tests (Depends-on): Add float.
28736         * modules/vsprintf-posix-tests (Depends-on): Add float.
28737
28738         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
28739         (minus_zerol): New variable.
28740         (test_function): Use minus_zerol instead of -zerol.
28741         * modules/vasnprintf-posix-tests (Depends-on): Add float.
28742
28743         * tests/test-vasprintf-posix.c (zerol): Remove variable.
28744         (minus_zerol): New variable.
28745         (test_function): Use minus_zerol instead of -zerol.
28746         * modules/vasprintf-posix-tests (Depends-on): Add float.
28747
28748 2008-10-07  Simon Josefsson  <simon@josefsson.org>
28749
28750         * MODULES.html.sh (Support for building documentation): Mention
28751         pmccabe2html.  Sort entries.
28752
28753         Add pmccabe2html module, from gnupdf.
28754         * build-aux/pmccabe.css: New file.
28755         * build-aux/pmccabe2html: New file.
28756         * m4/pmccabe2html.m4: New file.
28757         * modules/pmccabe2html: New file.
28758
28759 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
28760
28761         flock: new module
28762         * MODULES.html.sh: Add to list of modules.
28763         * lib/flock.c: flock implementation for Windows and Unix systems
28764         which have fcntl.
28765         * doc/glibc-functions/flock.texi: Update documentation.
28766         * lib/sys_file.in.h: <sys/file.h> header file.
28767         * m4/flock.m4: M4 macros.
28768         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
28769         * modules/flock: flock module.
28770         * modules/flock-tests: flock tests module.
28771         * modules/sys_file: sys/file.h module.
28772         * tests/test-flock.c: test suite for flock.
28773
28774 2008-10-06  Jim Meyering  <meyering@redhat.com>
28775
28776         bootstrap: check for LT_INIT more portably still ;-)
28777         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
28778         Spotted by Bruno Haible.
28779
28780 2008-10-06  Eric Blake  <ebb9@byu.net>
28781
28782         test-signbit: avoid tripping Irix cc bug on -0.0L
28783         * tests/test-signbit.c (minus_zerol): Delete, and replace with
28784         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
28785         entire testsuite consistent and avoids an Irix 6.2 bug.
28786
28787 2008-10-05  Bruno Haible  <bruno@clisp.org>
28788             Jim Meyering  <jim@meyering.net>
28789
28790         Add an option for ignoring EPIPE during close_stdout.
28791         * lib/closeout.h: Include <stdbool.h>.
28792         (close_stdout_set_ignore_EPIPE): New declaration.
28793         * lib/closeout.c: Include <stdbool.h>.
28794         (ignore_EPIPE): New variable.
28795         (close_stdout_set_ignore_EPIPE): New function.
28796         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
28797         * lib/close-stream.c (close_stream): Mention the possible EPIPE
28798         failure.
28799         * modules/closeout (Depends-on): Add stdbool.
28800
28801 2008-10-05  Bruno Haible  <bruno@clisp.org>
28802
28803         * modules/accept: New file.
28804         * modules/bind: New file.
28805         * modules/connect: New file.
28806         * modules/getpeername: New file.
28807         * modules/getsockname: New file.
28808         * modules/getsockopt: New file.
28809         * modules/listen: New file.
28810         * modules/recv: New file.
28811         * modules/recvfrom: New file.
28812         * modules/send: New file.
28813         * modules/sendto: New file.
28814         * modules/setsockopt: New file.
28815         * modules/socket: New file.
28816         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
28817         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28818         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
28819         the particular module is requested. Add a link warning when the
28820         particular module is not requested.
28821         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
28822         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
28823         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
28824         the particular module is requested.
28825         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
28826         gl_SYS_SOCKET_H_DEFAULTS): New macros.
28827         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
28828         * modules/sys_socket (Depends-on): Add link-warning.
28829         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
28830         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
28831         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
28832         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
28833         GL_LINK_WARNING.
28834         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
28835         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
28836         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
28837         * doc/posix-functions/getpeername.texi: Mention the new module
28838         'getpeername'.
28839         * doc/posix-functions/getsockname.texi: Mention the new module
28840         'getsockname'.
28841         * doc/posix-functions/getsockopt.texi: Mention the new module
28842         'getsockopt'.
28843         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
28844         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
28845         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
28846         * doc/posix-functions/send.texi: Mention the new module 'send'.
28847         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
28848         * doc/posix-functions/setsockopt.texi: Mention the new module
28849         'setsockopt'.
28850         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
28851         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
28852         listen, connect, accept.
28853         * modules/select-tests (Depends-on): Likewise.
28854
28855 2008-10-05  Bruno Haible  <bruno@clisp.org>
28856
28857         * lib/winsock.c (strerror): Remove unused #undef.
28858         (rpl_close): Remove unused local variable.
28859
28860         * modules/sys_socket (Depends-on); Add errno.
28861
28862 2008-10-05  Bruno Haible  <bruno@clisp.org>
28863
28864         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
28865         (select): Add a link warning when the 'select' module is not used.
28866         * modules/sys_select (Depends-on): Add link-warning.
28867         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
28868         Suggested by Paolo Bonzini.
28869
28870 2008-10-05  Jim Meyering  <meyering@redhat.com>
28871
28872         bootstrap: check for LT_INIT more portably
28873         * build-aux/bootstrap: Avoid using grep -E, since it's not
28874         portable enough.  Suggestion from Bruno Haible.
28875
28876 2008-10-05  Bruno Haible  <bruno@clisp.org>
28877
28878         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
28879         as being fixed by gnulib.
28880
28881 2008-10-05  Bruno Haible  <bruno@clisp.org>
28882
28883         * modules/select-tests: New file, mostly copied from
28884         modules/sys_select-tests.
28885         * tests/test-select.c: New file, mostly copied from
28886         tests/test-sys_select.c.
28887         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
28888         * modules/sys_select-tests (Depends-on): Remove all dependencies.
28889         (Makefile.am): Remove test_sys_select_LDADD.
28890
28891         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
28892         to an undefined symbol, for an error message.
28893         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
28894         (gl_SYS_SELECT_H_DEFAULTS): New macro.
28895         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
28896         winsock-select.c here.
28897         * modules/sys_select (Files): Remove lib/winsock-select.c.
28898         (Depends-on): Remove alloca.
28899         (Makefile.am): Substitute GNULIB_SELECT.
28900         * modules/select: New file.
28901         * doc/posix-functions/select.texi: Update.
28902
28903 2008-10-05  Bruno Haible  <bruno@clisp.org>
28904
28905         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
28906         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
28907         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
28908         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
28909         getdtablesize.
28910         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
28911         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
28912
28913 2008-10-05  Bruno Haible  <bruno@clisp.org>
28914
28915         * modules/getdtablesize-tests: New file.
28916         * tests/test-getdtablesize.c: New file.
28917
28918         New module 'getdtablesize'.
28919         * lib/unistd.in.h (getdtablesize): New declaration.
28920         * lib/getdtablesize.c: New file.
28921         * m4/getdtablesize.m4: New file.
28922         * modules/getdtablesize: New file.
28923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28924         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
28925         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
28926         HAVE_GETDTABLESIZE.
28927         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
28928
28929 2008-10-05  Bruno Haible  <bruno@clisp.org>
28930
28931         * modules/sched (Makefile.am): Fix typo.
28932         Reported by Simon Josefsson.
28933
28934 2008-10-05  Jim Meyering  <meyering@redhat.com>
28935
28936         bootstrap: check for LT_INIT, too
28937         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
28938         are deprecated.  Suggestion from Ralf Wildenhues.
28939
28940 2008-10-05  Bruno Haible  <bruno@clisp.org>
28941
28942         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
28943         overriding them by ours.
28944         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
28945
28946 2008-10-05  Jim Meyering  <meyering@redhat.com>
28947
28948         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
28949         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
28950         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
28951
28952 2008-10-04  Bruno Haible  <bruno@clisp.org>
28953
28954         * modules/dup2 (License): Change to LGPLv2+.
28955         * modules/sleep (License): Likewise.
28956         * modules/perror (License): Likewise.
28957         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
28958         Blake.
28959         * modules/signal (License): Likewise.
28960         * modules/sigprocmask (License): Likewise.
28961         * modules/raise (License): Change to LGPLv2+, with approval by Jim
28962         Meyering.
28963
28964 2008-10-04  Bruno Haible  <bruno@clisp.org>
28965
28966         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
28967         Reported by Rainer Tammer <tammer@tammer.net>.
28968
28969 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
28970             Bruno Haible  <bruno@clisp.org>
28971
28972         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
28973         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
28974         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
28975
28976 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
28977
28978         filevercmp: new module
28979         * lib/filevercmp.h: New function filevercmp comparing version strings.
28980         * lib/filevercmp.c: Implementation of filevercmp function.
28981         * modules/filevercmp: Module metadata.
28982         * tests/test-filevercmp.c: Unit test for new module.
28983         * modules/filevercmp-tests: Unit test metadata.
28984         * MODULES.html.sh: Add filevercmp module.
28985
28986 2008-10-03  Bruno Haible  <bruno@clisp.org>
28987
28988         * lib/c-ctype.h: Add comment.
28989         Reported by Jim Meyering.
28990
28991 2008-10-02  Bruno Haible  <bruno@clisp.org>
28992
28993         * modules/posix_spawn-internal (Depends-on): Add 'open'.
28994
28995 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
28996
28997         * build-aux/bootstrap: Allow renaming bootstrap, and change the
28998         name of bootstrap.conf accordingly.
28999
29000 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
29001
29002         * build-aux/bootstrap: Install git-merge-changelog configuration
29003         items into .gitconfig if needed.
29004
29005 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
29006
29007         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
29008         git repository, and initialize/update it accordingly.
29009
29010 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
29011
29012         * modules/fsync-tests: New file.
29013         * tests/test-fsync.c: New file.
29014
29015         New module 'fsync'.
29016         * lib/fsync.c: New file.
29017         * m4/fsync.m4: New file.
29018         * modules/fsync: New file.
29019         * lib/unistd.in.h (fsync): New declaration.
29020         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
29021         GNULIB_FSYNC and HAVE_FSYNC.
29022         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
29023         * MODULES.html.sh (posix_functions): Add fsync.
29024         * doc/posix-functions/fsync.texi: Mention the new module.
29025
29026 2008-10-02  Jim Meyering  <meyering@redhat.com>
29027
29028         fts.c: sync with similar code from coreutils' remove.c
29029         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
29030         Guard also with "#if defined __linux__", since for now at least,
29031         this code is Linux-kernel-specific.
29032
29033 2008-10-02  Jim Meyering  <meyering@redhat.com>
29034
29035         fts: bug fixes
29036         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
29037         Include <sys/vfs.h>, not <sys/statfs.h>.
29038
29039         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
29040         Include <sys/vfs.h>, not <sys/statfs.h>.
29041
29042 2008-10-01  Bruno Haible  <bruno@clisp.org>
29043
29044         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
29045         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
29046         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
29047         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
29048         * doc/posix-functions/posix_spawnp.texi: Likewise.
29049         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
29050         whether posix_spawn actually works.
29051         * m4/pipe.m4 (gl_PIPE): Likewise.
29052         * modules/execute (Files): Add m4/posix_spawn.m4.
29053         * modules/pipe (Files): Add m4/posix_spawn.m4.
29054         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
29055
29056 2008-10-01  Jim Meyering  <meyering@redhat.com>
29057
29058         remove trailing spaces
29059         * NEWS: Likewise.
29060         * lib/poll.c (poll): Likewise.
29061         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
29062         * lib/winsock.c (rpl_close): Likewise.
29063         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
29064         * modules/yield: Likewise.
29065         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
29066         * tests/test-sys_select.c (connect_to_socket): Likewise.
29067
29068         fts.c: adjust a new interface to be more generally useful
29069         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
29070         (fts_build): Adjust caller.
29071
29072 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29073
29074         * modules/cond-tests: New file.
29075         * tests/test-cond.c: New file.
29076
29077 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29078             Bruno Haible  <bruno@clisp.org>
29079
29080         * modules/cond (Dependencies): Add errno, time.
29081         * lib/glthread/cond.h: Include <time.h>.
29082         (gl_cond_define, gl_cond_define_initialized): Use the same definition
29083         across platforms.
29084
29085 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29086             Bruno Haible  <bruno@clisp.org>
29087
29088         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
29089
29090 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29091             Bruno Haible  <bruno@clisp.org>
29092
29093         * modules/tls-tests (Depends-on): Add thread, yield.
29094         (configure.ac): Remove all checks.
29095         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
29096         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
29097         gl_thread_self): Remove definitions. Include glthread/thread.h and
29098         glthread/yield.h instead.
29099         (test_tls): Pass an additional NULL argument to gl_thread_join.
29100
29101 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29102             Bruno Haible  <bruno@clisp.org>
29103
29104         * modules/lock-tests (Depends-on): Add thread, yield.
29105         (configure.ac): Remove all checks.
29106         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
29107         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
29108         gl_thread_self): Remove definitions. Include glthread/thread.h and
29109         glthread/yield.h instead.
29110         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
29111         additional NULL argument to gl_thread_join.
29112
29113 2008-09-30  Bruno Haible  <bruno@clisp.org>
29114
29115         Fix the Win32 implementation of the 'thread' module.
29116         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
29117         pointer type.
29118         (gl_thread_self): Invoke gl_thread_self_func.
29119         (gl_thread_self_func): New declaration.
29120         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
29121         (do_init_self_key, init_self_key): New functions.
29122         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
29123         Remove some fields.
29124         (running_threads, running_lock): Remove variables.
29125         (get_current_thread_handle): New function.
29126         (gl_thread_self_func, wrapper_func, glthread_create_func,
29127         glthread_join_func, gl_thread_exit_func): Largely rewritten and
29128         simplified.
29129
29130 2008-09-30  Bruno Haible  <bruno@clisp.org>
29131
29132         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
29133         files.
29134
29135 2008-09-30  Jim Meyering  <meyering@redhat.com>
29136
29137         fts.m4: correct the test for statfs.f_type
29138         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
29139         when checking for statfs.f_type.
29140
29141 2008-09-15  Simon Josefsson  <simon@josefsson.org>
29142
29143         tests: avoid some compiler warnings
29144         * tests/test-memchr.c (main): Pass NULL indirectly.
29145         * tests/test-getdate.c (main): Remove unused variable 'ret'.
29146
29147 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
29148
29149         getdate.y: disallow countable dayshifts like "4 yesterday ago"
29150         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
29151         exactly specified dayshifts.
29152         (dayshift): New rule.
29153         (rel): Add dayshift.
29154         (relative_time_table) [tomorrow, yesterday, today, now]:
29155         Use tDAY_SHIFT in place of tDAY_UNIT.
29156         * tests/test-getdate.c: Add tests for now-disallowed countable
29157         dayshifts, e.g., "4 yesterday ago".
29158
29159 2008-09-29  Bruno Haible  <bruno@clisp.org>
29160
29161         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
29162         * tests/test-posix_spawn1.in.sh: Renamed from
29163         tests/test-posix_spawn.in.sh.
29164         * tests/test-posix_spawn2.c: New file.
29165         * tests/test-posix_spawn2.in.sh: New file.
29166         * modules/posix_spawnp-tests (Files): Update.
29167         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
29168
29169 2008-09-29  Bruno Haible  <bruno@clisp.org>
29170
29171         Propagate effects of putenv/setenv/unsetenv to child processes.
29172         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
29173         * lib/pipe.c (create_pipe): Likewise.
29174
29175 2008-09-29  Bruno Haible  <bruno@clisp.org>
29176
29177         Enable use of shell scripts as executables in mingw.
29178         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
29179         run the program as a shell script.
29180         * lib/pipe.c (create_pipe): Likewise.
29181         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
29182         resulting array.
29183
29184 2008-09-29  Eric Blake  <ebb9@byu.net>
29185
29186         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
29187
29188 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
29189
29190         * doc/posix-functions/accept.texi: Update mingw problems.
29191         * doc/posix-functions/bind.texi: Update mingw problems.
29192         * doc/posix-functions/close.texi: Update mingw problems.
29193         * doc/posix-functions/connect.texi: Update mingw problems.
29194         * doc/posix-functions/getpeername.texi: Update mingw problems.
29195         * doc/posix-functions/getsockname.texi: Update mingw problems.
29196         * doc/posix-functions/getsockopt.texi: Update mingw problems.
29197         * doc/posix-functions/ioctl.texi: Update mingw problems.
29198         * doc/posix-functions/listen.texi: Update mingw problems.
29199         * doc/posix-functions/recv.texi: Update mingw problems.
29200         * doc/posix-functions/recvfrom.texi: Update mingw problems.
29201         * doc/posix-functions/select.texi: Update mingw problems.
29202         * doc/posix-functions/send.texi: Update mingw problems.
29203         * doc/posix-functions/sendto.texi: Update mingw problems.
29204         * doc/posix-functions/setsockopt.texi: Update mingw problems.
29205         * doc/posix-functions/socket.texi: Update mingw problems.
29206
29207 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
29208             Bruno Haible  <bruno@clisp.org>
29209
29210         * lib/sys_select.in.h: Include sys/time.h.
29211         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
29212         * modules/sys_select: Depend on sys_time.
29213         * tests/test-sys_select.c: Test that sys/select.h defines struct
29214         timeval fully.
29215
29216 2008-09-29  Bruno Haible  <bruno@clisp.org>
29217
29218         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
29219         * lib/sys_select.in.h: Likewise.
29220
29221 2008-09-29  Bruno Haible  <bruno@clisp.org>
29222
29223         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
29224
29225 2008-09-29  Bruno Haible  <bruno@clisp.org>
29226
29227         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
29228         Set LIBSOCKET instead of augmenting LIBS.
29229         * modules/sockets (Link): New section.
29230         * modules/sockets-tests (test_sockets_LDADD): New variable.
29231         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
29232         * modules/poll-tests (test_poll_LDADD): New variable.
29233         * NEWS: Document the change.
29234
29235 2008-09-29  Bruno Haible  <bruno@clisp.org>
29236
29237         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
29238         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
29239         ARPA_INET_H directly.
29240         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29241
29242 2008-09-28  Bruno Haible  <bruno@clisp.org>
29243
29244         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
29245         from gl_HEADER_SYS_SOCKET.
29246         (gl_HEADER_SYS_SOCKET): Invoke it.
29247         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29248
29249 2008-09-28  Bruno Haible  <bruno@clisp.org>
29250
29251         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
29252         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
29253         Needed on OSF/1 4.0.
29254
29255 2008-09-28  Bruno Haible  <bruno@clisp.org>
29256
29257         Override open more carefully.
29258         * lib/open.c (orig_open): New function.
29259         (rpl_open): Use orig_open instead of open.
29260         * lib/fcntl.in.h: Add special invocation convention.
29261         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
29262         (gl_FUNC_OPEN): Invoke it.
29263
29264         Override freopen more carefully.
29265         * lib/freopen.c (orig_freopen): New function.
29266         (rpl_freopen): Use orig_freopen instead of freopen.
29267         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
29268         (gl_FUNC_FREOPEN): Invoke it.
29269
29270         Override fopen more carefully.
29271         * lib/fopen.c (orig_fopen): New function.
29272         (rpl_fopen): Use orig_fopen instead of fopen.
29273         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
29274         (gl_FUNC_FOPEN): Invoke it.
29275         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
29276
29277 2008-09-28  Bruno Haible  <bruno@clisp.org>
29278
29279         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
29280         SIGPIPE.
29281
29282 2008-09-28  Bruno Haible  <bruno@clisp.org>
29283
29284         * tests/test-sigaction.c (handler, main): Disable the check whether
29285         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
29286         glibc systems with LinuxThreads.
29287
29288 2008-09-28  Bruno Haible  <bruno@clisp.org>
29289
29290         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
29291
29292         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
29293         with AIX xlc.
29294         * lib/fcntl.in.h (open): Likewise.
29295         Reported by Rainer Tammer <tammer@tammer.net>.
29296
29297 2008-09-28  Bruno Haible  <bruno@clisp.org>
29298
29299         * modules/posix_spawnp-tests: New file.
29300         * tests/test-posix_spawn.c: New file.
29301         * tests/test-posix_spawn.in.sh: New file.
29302
29303         New module 'posix_spawnp'.
29304         * modules/posix_spawnp: New file.
29305         * lib/spawnp.c: New file, from GNU libc with modifications.
29306         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
29307
29308         New module 'posix_spawn'.
29309         * modules/posix_spawn: New file.
29310         * lib/spawn.c: New file, from GNU libc with modifications.
29311         * doc/posix-functions/posix_spawn.texi: Mention the new module.
29312
29313         New module 'posix_spawnattr_destroy'.
29314         * modules/posix_spawnattr_destroy: New file.
29315         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
29316         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
29317         module.
29318
29319         New module 'posix_spawnattr_setsigmask'.
29320         * modules/posix_spawnattr_setsigmask: New file.
29321         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
29322         modifications.
29323         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
29324         new module.
29325
29326         New module 'posix_spawnattr_getsigmask'.
29327         * modules/posix_spawnattr_getsigmask: New file.
29328         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
29329         modifications.
29330         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
29331         new module.
29332
29333         New module 'posix_spawnattr_setsigdefault'.
29334         * modules/posix_spawnattr_setsigdefault: New file.
29335         * lib/spawnattr_setdefault.c: New file, from GNU libc with
29336         modifications.
29337         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
29338         new module.
29339
29340         New module 'posix_spawnattr_getsigdefault'.
29341         * modules/posix_spawnattr_getsigdefault: New file.
29342         * lib/spawnattr_getdefault.c: New file, from GNU libc with
29343         modifications.
29344         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
29345         new module.
29346
29347         New module 'posix_spawnattr_setschedpolicy'.
29348         * modules/posix_spawnattr_setschedpolicy: New file.
29349         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
29350         modifications.
29351         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
29352         new module.
29353
29354         New module 'posix_spawnattr_getschedpolicy'.
29355         * modules/posix_spawnattr_getschedpolicy: New file.
29356         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
29357         modifications.
29358         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
29359         new module.
29360
29361         New module 'posix_spawnattr_setschedparam'.
29362         * modules/posix_spawnattr_setschedparam: New file.
29363         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
29364         modifications.
29365         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
29366         new module.
29367
29368         New module 'posix_spawnattr_getschedparam'.
29369         * modules/posix_spawnattr_getschedparam: New file.
29370         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
29371         modifications.
29372         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
29373         new module.
29374
29375         New module 'posix_spawnattr_setpgroup'.
29376         * modules/posix_spawnattr_setpgroup: New file.
29377         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
29378         modifications.
29379         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
29380         module.
29381
29382         New module 'posix_spawnattr_getpgroup'.
29383         * modules/posix_spawnattr_getpgroup: New file.
29384         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
29385         modifications.
29386         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
29387         module.
29388
29389         New module 'posix_spawnattr_setflags'.
29390         * modules/posix_spawnattr_setflags: New file.
29391         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
29392         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
29393         module.
29394
29395         New module 'posix_spawnattr_getflags'.
29396         * modules/posix_spawnattr_getflags: New file.
29397         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
29398         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
29399         module.
29400
29401         New module 'posix_spawnattr_init'.
29402         * modules/posix_spawnattr_init: New file.
29403         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
29404         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
29405         module.
29406
29407         New module 'posix_spawn_file_actions_destroy'.
29408         * modules/posix_spawn_file_actions_destroy: New file.
29409         * lib/spawn_faction_destroy.c: New file, from GNU libc with
29410         modifications.
29411         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
29412         the new module.
29413
29414         New module 'posix_spawn_file_actions_addopen'.
29415         * modules/posix_spawn_file_actions_addopen: New file.
29416         * lib/spawn_faction_addopen.c: New file, from GNU libc with
29417         modifications.
29418         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
29419         the new module.
29420
29421         New module 'posix_spawn_file_actions_adddup2'.
29422         * modules/posix_spawn_file_actions_adddup2: New file.
29423         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
29424         modifications.
29425         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
29426         the new module.
29427
29428         New module 'posix_spawn_file_actions_addclose'.
29429         * modules/posix_spawn_file_actions_addclose: New file.
29430         * lib/spawn_faction_addclose.c: New file, from GNU libc with
29431         modifications.
29432         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
29433         the new module.
29434
29435         New module 'posix_spawn_file_actions_init'.
29436         * modules/posix_spawn_file_actions_init: New file.
29437         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
29438         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
29439         new module.
29440
29441         New module 'posix_spawn-internal'.
29442         * modules/posix_spawn-internal: New file.
29443         * lib/spawn_int.h: New file, from GNU libc with modifications.
29444         * lib/spawni.c: New file, from GNU libc with modifications.
29445         * m4/posix_spawn.m4: New file.
29446
29447         New module 'spawn'.
29448         * modules/spawn: New file.
29449         * lib/spawn.in.h: New file, from GNU libc with modifications.
29450         * m4/spawn_h.m4: New file.
29451         * doc/posix-headers/spawn.texi: Mention the new module.
29452
29453 2008-09-28  Bruno Haible  <bruno@clisp.org>
29454
29455         * modules/sched-tests: New file.
29456         * tests/test-sched.c: New file.
29457
29458         New module 'sched'.
29459         * modules/sched: New file.
29460         * lib/sched.in.h: New file.
29461         * m4/sched_h.m4: New file.
29462         * doc/posix-headers/sched.texi: Mention the new module.
29463
29464 2008-09-27  Eric Blake  <ebb9@byu.net>
29465
29466         Fix previous patch, and tweak references to $0.
29467         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
29468         (func_version, func_gnulib_dir): Don't call this program
29469         gnulib-tool.
29470         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
29471         with using $0 in function.
29472         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
29473         (func_fatal_error): Reuse the name the user invoked us with.
29474
29475 2008-09-27  Bruno Haible  <bruno@clisp.org>
29476
29477         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
29478         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
29479         (gl_ICONV_H): Not here.
29480         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
29481         instead of assigning ICONV_H directly.
29482
29483         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
29484         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
29485         WCHAR_H directly.
29486
29487 2008-09-27  Bruno Haible  <bruno@clisp.org>
29488
29489         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
29490         * modules/arpa_inet (Depends-on): Add link-warning.
29491         (Makefile.am): Insert the definition of GL_LINK-WARNING.
29492         * modules/unistd (Makefile.am): Likewise.
29493
29494 2008-09-26  Bruno Haible  <bruno@clisp.org>
29495
29496         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
29497         variables.
29498         (func_version): Essentially copied from gnulib-tool.
29499         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
29500         func_readlink): Copied from gnulib-tool.
29501
29502 2008-09-26  Bruno Haible  <bruno@clisp.org>
29503
29504         * gnulib-tool (func_version): Change directory to $gnulib_dir before
29505         invoking git-version-gen.
29506
29507 2008-09-26  Bruno Haible  <bruno@clisp.org>
29508
29509         * posix-modules: Update to directory names changed on 2008-01-19.
29510         Remove commas in output before splitting into words. No more need to
29511         avoid 'ftruncate' since 2007-02-19.
29512
29513 2008-09-26  Bruno Haible  <bruno@clisp.org>
29514
29515         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
29516
29517 2008-09-26  Bruno Haible  <bruno@clisp.org>
29518
29519         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
29520         * modules/fwriteerror (Depends-on): Add errno.
29521
29522 2008-09-26  Bruno Haible  <bruno@clisp.org>
29523
29524         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
29525         * tests/test-vc-list-files-cvs.sh: Likewise.
29526
29527 2008-09-26  Bruno Haible  <bruno@clisp.org>
29528
29529         * doc/posix-headers/sys_resource.texi: Reorder items.
29530
29531 2008-09-26  Jim Meyering  <meyering@redhat.com>
29532
29533         fts: tweak inode comparison function
29534         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
29535         inode numbers, as documented.
29536
29537         fts: sort dirent entries on inode number before traversing
29538         This avoids a quadratic, seek-related performance penalty when
29539         operating on a directory containing many entries (measurable at 10k;
29540         3.5 hours at 2 million entries with a cold cache) on certain types
29541         of file systems, including ext3 and ext4, but not tmpfs.
29542         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
29543         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
29544         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
29545         (fs_handles_readdir_ordered_dirents_efficiently): New function.
29546         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
29547         (fts_build): Set the stat.st_ino member from D_INO.
29548         If it is likely to be useful, sort dirent entries on inode number.
29549
29550         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
29551         and the struct statfs.f_type member.
29552         * modules/fts (Depends-on): Add d-ino.
29553
29554 2008-09-26  Bruno Haible  <bruno@clisp.org>
29555
29556         * modules/sigpipe-die (Depends-on): Add sigpipe.
29557
29558         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
29559         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
29560         and GNULIB_STDIO_H_SIGPIPE are set.
29561         * lib/stdio-write.c: New file.
29562         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
29563         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29564         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29565         REPLACE_STDIO_WRITE_FUNCS.
29566         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
29567         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29568         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29569         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
29570         * modules/stdio (Files): Add lib/stdio-write.c.
29571         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
29572         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29573         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29574         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
29575         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
29576         REPLACE_FPRINTF_POSIX.
29577         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
29578         REPLACE_PRINTF_POSIX.
29579         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
29580         REPLACE_VFPRINTF_POSIX.
29581         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
29582         REPLACE_VPRINTF_POSIX.
29583         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
29584         SIGPIPE issue.
29585         * doc/posix-functions/fputc.texi: Likewise.
29586         * doc/posix-functions/fputs.texi: Likewise.
29587         * doc/posix-functions/fwrite.texi: Likewise.
29588         * doc/posix-functions/printf.texi: Likewise.
29589         * doc/posix-functions/putc.texi: Likewise.
29590         * doc/posix-functions/putchar.texi: Likewise.
29591         * doc/posix-functions/puts.texi: Likewise.
29592         * doc/posix-functions/vfprintf.texi: Likewise.
29593         * doc/posix-functions/vprintf.texi: Likewise.
29594
29595         * modules/safe-write (Depends-on): Add write.
29596
29597         * modules/sigpipe-tests: New file.
29598         * tests/test-sigpipe.c: New file.
29599         * tests/test-sigpipe.sh: New file.
29600
29601         * modules/write: New file.
29602         * lib/unistd.in.h: Include <sys/types.h>.
29603         (write): New declaration.
29604         * lib/write.c: New file.
29605         * m4/write.m4: New file.
29606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29607         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
29608         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
29609         GNULIB_WRITE, REPLACE_WRITE.
29610         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
29611         and the SIGPIPE issue.
29612
29613         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
29614         (raise): New declaration.
29615         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
29616         (ext_signal): New function.
29617         (rpl_raise): New function.
29618         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
29619         GNULIB_SIGNAL_H_SIGPIPE.
29620         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
29621         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
29622
29623         * modules/sigpipe: New file.
29624         * m4/sigpipe.m4: New file.
29625
29626 2008-09-25  Derek Price  <derek@ximbiot.com>
29627             Bruno Haible  <bruno@clisp.org>
29628
29629         * gnulib-tool (func_import): Report all license incompatibilities, not
29630         just the first one.
29631
29632 2008-09-25  Bruno Haible  <bruno@clisp.org>
29633
29634         * gnulib-tool (func_import): When computing the edits, consider not
29635         only the Makefile.ams that exist but also those that will be generated.
29636
29637 2008-09-25  Simon Josefsson  <simon@josefsson.org>
29638
29639         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
29640         fixes gnulib-tool --test warning about duplicate dependency.
29641
29642 2008-09-25  Bruno Haible  <bruno@clisp.org>
29643
29644         * gnulib-tool: Don't ask the user to perform edits in the generated
29645         Makefile.ams.
29646         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
29647         apply to the Makefile.am being generated.
29648         (func_emit_tests_Makefile_am): Execute edits that apply to the
29649         Makefile.am being generated.
29650         (func_import): Setup list of Makefile.am edits before emitting the
29651         Makefile.ams, not at the end.
29652         (func_create_testdir): Update.
29653         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29654
29655 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29656
29657         * gnulib-tool (func_import): Store the --tests-base option in the
29658         comment in gnulib-cache.m4.
29659
29660 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
29661
29662         * NEWS: Document increased portability that sys_select now provides.
29663
29664         * lib/sys_select.in.h: Install select wrapper.
29665         * lib/sys_socket.in.h: Use more descriptive name when there is no
29666         select wrapper.
29667         * lib/winsock-select.c: New.
29668         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
29669         Require gl_HEADER_SYS_SOCKET.
29670         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
29671         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
29672         * tests/test-sys_select.c: Add functional tests.
29673
29674 2008-09-24  Eric Blake  <ebb9@byu.net>
29675
29676         open, fopen: close fd leak in last patch
29677         * lib/open.c (rpl_open): Close fd before returning error.
29678         * lib/fopen.c (rpl_fopen): Close fd before returning error.
29679         * doc/posix-functions/open.texi (open): Document that Irix also
29680         has the bug.
29681         * doc/posix-functions/fopen.texi (fopen): Likewise.
29682         Reported by Paolo Bonzini.
29683
29684 2008-09-24  Bruno Haible  <bruno@clisp.org>
29685
29686         Ensure that a filename ending in a slash cannot be used to access a
29687         non-directory.
29688         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
29689         to check whether it's really a directory.
29690         * lib/fopen.c: Include fcntl.h, unistd.h.
29691         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
29692         and fdopen().
29693         * modules/fopen (Depends-on): Add unistd.
29694         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
29695         * tests/test-fopen.c (main): Likewise.
29696         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
29697         * doc/posix-functions/fopen.texi: Likewise.
29698         Reported by Eric Blake.
29699
29700 2008-09-23  Eric Blake  <ebb9@byu.net>
29701
29702         c-stack: avoid compiler optimizations when provoking overflow
29703         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
29704         recursion harder to optimize, to ensure a stack overflow occurs.
29705         * tests/test-c-stack.c (recurse): Likewise.
29706         Borrowed from libsigsegv.
29707
29708         c-stack: work around Irix sigaltstack bug
29709         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
29710         whether sigaltstack uses wrong end of stack_t (copied in part from
29711         libsigsegv).
29712         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
29713         Irix bug, without requiring an over-allocation.
29714         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
29715         bug.
29716
29717         fopen: document mingw bug on directories
29718         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
29719         not allowing a stream visiting a directory, even though reading
29720         from such a stream is not portable.
29721
29722 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29723
29724         * lib/poll.c: Rewrite.
29725         * modules/poll: Depend on alloca.
29726
29727 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29728
29729         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
29730         instead define prototypes for a full set of wrappers.  Ensure
29731         that Cygwin does not use the compatibility code, which is only
29732         for MinGW.
29733         * lib/winsock.c: New.
29734         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
29735         * modules/sys_socket: Add lib/winsock.c.
29736
29737         * modules/poll-tests: Add errno and perror.
29738         * tests/test-poll.c: Use ioctl, not ioctlsocket.
29739
29740 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29741
29742         * tests/test-poll.c: Downgrade minimum needed Winsock version.
29743
29744 2008-09-23  Bruno Haible  <bruno@clisp.org>
29745
29746         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
29747         * doc/glibc-functions/*: Likewise.
29748
29749 2008-09-23  Simon Josefsson  <simon@josefsson.org>
29750
29751         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
29752         success.
29753
29754 2008-09-22  Eric Blake  <ebb9@byu.net>
29755             Bruno Haible  <bruno@clisp.org>
29756
29757         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
29758         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
29759         supply %A but mishandle pseudo-NaN.
29760         Reported by Simon Josefsson.
29761
29762 2008-09-21  Bruno Haible  <bruno@clisp.org>
29763
29764         * tests/test-lock.c (main): Tweak skip message.
29765         * tests/test-tls.c (main): Likewise.
29766
29767 2008-09-21  Bruno Haible  <bruno@clisp.org>
29768
29769         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
29770         whether 'struct sigaction' has sa_sigaction here...
29771         (gl_PREREQ_SIG_HANDLER_H): ... not here.
29772         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
29773
29774 2008-09-21  Bruno Haible  <bruno@clisp.org>
29775
29776         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
29777         section.
29778         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
29779         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
29780         the new section.
29781         (Support for obsolete systems lacking POSIX:2001): New section.
29782         (String handling <string.h>): Move strdup to the new section.
29783         Suggested by Simon Josefsson and Paolo Bonzini.
29784
29785 2008-09-21  Bruno Haible  <bruno@clisp.org>
29786
29787         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
29788         exponents in %e and %g results on 'long double'. Needed for mingw's
29789         improved *printf functions.
29790         * tests/test-vasprintf-posix.c (test_function): Likewise.
29791         * tests/test-snprintf-posix.h (test_function): Likewise.
29792         * tests/test-sprintf-posix.h (test_function): Likewise.
29793         Reported by Eric Blake.
29794
29795 2008-09-21  Bruno Haible  <bruno@clisp.org>
29796
29797         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
29798         * tests/test-sprintf-posix.h (test_function): Likewise.
29799
29800 2008-09-21  Bruno Haible  <bruno@clisp.org>
29801
29802         * modules/getpass (Depends-on): Add strdup-posix.
29803
29804         New module 'strdup-posix'.
29805         * modules/strdup-posix: New file.
29806         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
29807         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
29808         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29809         REPLACE_STRDUP.
29810         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
29811         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
29812         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29813         strdup-posix.
29814
29815         * modules/strdup (Depends-on): Remove malloc-posix.
29816
29817 2008-09-20  Bruno Haible  <bruno@clisp.org>
29818
29819         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
29820         Wildenhues.
29821
29822 2008-09-20  Bruno Haible  <bruno@clisp.org>
29823
29824         Ensure that wint_t gets defined on IRIX 5.3.
29825         * lib/wchar.in.h (wint_t): Define if not defined by the system.
29826         * lib/wctype.in.h (wint_t): Likewise.
29827         (__wctype_wint_t): Remove type.
29828         (isw*): Use wint_t instead of __wctype_wint_t.
29829         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
29830         * modules/wchar (Files): Add m4/wint_t.m4.
29831         (Makefile.am): Substitute HAVE_WINT_T.
29832         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
29833         * tests/test-wctype.c: Check that wint_t is defined.
29834         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
29835         * doc/posix-headers/wctype.texi: Likewise.
29836         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29837
29838 2008-09-18  Bruno Haible  <bruno@clisp.org>
29839
29840         * gnulib-tool (func_exit): Update comment.
29841
29842 2008-09-18  Simon Josefsson  <simon@josefsson.org>
29843
29844         * modules/getaddrinfo (Depends-on): Remove strdup, this module
29845         assumes strdup exists and does not depend on strdup to return
29846         ENOMEM on out of memory conditions.
29847
29848 2008-09-18  Bruno Haible  <bruno@clisp.org>
29849
29850         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
29851         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
29852         digits for the exponent.
29853
29854 2008-09-18  Jim Meyering  <meyering@redhat.com>
29855             Bruno Haible  <bruno@clisp.org>
29856
29857         * lib/vasnprintf.c (decimal_point_char): Define also if
29858         NEED_PRINTF_INFINITE_LONG_DOUBLE.
29859
29860 2008-09-16  Bruno Haible  <bruno@clisp.org>
29861         and Eric Blake  <ebb9@byu.net>
29862
29863         vasnprintf: support Irix 5.3
29864         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
29865         that mishandle long double infinity.
29866         Reported by Tom G. Christensen.
29867
29868 2008-09-16  Bruno Haible  <bruno@clisp.org>
29869
29870         * doc/glibc-functions/scandir.texi: Mention the function is missing on
29871         Solaris 9.
29872         * doc/glibc-functions/alphasort.texi: Likewise.
29873         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
29874
29875 2008-09-16  Jim Meyering  <meyering@redhat.com>
29876
29877         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
29878         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
29879         a umask modification leak out of a subshell.  Otherwise, the
29880         opensolaris /bin/sh would be accepted and thus cause unwarranted
29881         failures in the coreutils test suite.
29882
29883 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
29884
29885         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
29886         to succeed.
29887
29888 2008-09-16  Jim Meyering  <meyering@redhat.com>
29889
29890         avoid spurious test failure when library is built without ACL support
29891         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
29892         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
29893         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
29894         * tests/test-copy-acl.sh: Likewise.
29895
29896 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29897
29898         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
29899         based on character occurrence counts.
29900
29901 2008-09-15  Eric Blake  <ebb9@byu.net>
29902
29903         tests: avoid some compiler warnings
29904         * tests/test-memchr.c (main): Pass NULL indirectly.
29905         * tests/test-closein.c (main): Avoid unused variable.
29906
29907 2008-09-15  Bruno Haible  <bruno@clisp.org>
29908
29909         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
29910         are missing on OpenBSD 4.0 individually.
29911         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29912
29913 2008-09-15  Bruno Haible  <bruno@clisp.org>
29914
29915         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
29916         * doc/posix-functions/strerror.texi: Mention also Cygwin.
29917         * doc/posix-functions/perror.texi: Likewise.
29918         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
29919         is missing.
29920         Reported by Eric Blake.
29921
29922         * lib/errno.in.h: Use replacement values >= 2000.
29923         Reported by Eric Blake.
29924
29925 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29926
29927         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
29928         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
29929         limit.
29930         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
29931         compareseq was aborted.
29932
29933 2008-09-14  Bruno Haible  <bruno@clisp.org>
29934
29935         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
29936         yvec_edit_count.
29937         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
29938         (fstrcmp_bounded): Simplify result computation accordingly.
29939
29940 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29941
29942         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
29943         (fstrcmp): Define in terms of fstrcmp_bounded.
29944         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
29945         lower_bound argument.
29946         Return quickly if the result is certainly < lower_bound.
29947         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
29948
29949 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29950
29951         * lib/diffseq.h (EARLY_ABORT): New macro.
29952         (compareseq): Change return type to bool. Return true when EARLY_ABORT
29953         evaluates to true.
29954
29955 2008-09-14  Bruno Haible  <bruno@clisp.org>
29956
29957         * modules/perror-tests: New file.
29958         * tests/test-perror.sh: New file.
29959         * tests/test-perror.c: New file.
29960
29961         New module 'perror'.
29962         * lib/stdio.in.h (perror): New declaration.
29963         * lib/perror.c: New file.
29964         * m4/perror.m4: New file.
29965         * modules/perror: New file.
29966         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
29967         * doc/posix-functions/perror.texi: Mention the perror module.
29968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
29969         REPLACE_PERROR.
29970         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
29971         REPLACE_PERROR.
29972
29973 2008-09-14  Bruno Haible  <bruno@clisp.org>
29974
29975         * modules/stdio (Makefile.am): Reorder to match the order in
29976         lib/stdio.in.h.
29977         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29978
29979 2008-09-13  Bruno Haible  <bruno@clisp.org>
29980
29981         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
29982
29983 2008-09-13  Bruno Haible  <bruno@clisp.org>
29984
29985         Extend strerror to cover the added errno values.
29986         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
29987         (rpl_strerror): Provide error messages for the added errno values and
29988         for the WSA* values.
29989         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
29990         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
29991         strerror.
29992         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
29993         * modules/strerror (Depends-on): Add errno.
29994         * doc/posix-functions/strerror.texi: Document the change.
29995         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
29996         and EOVERFLOW.
29997
29998 2008-09-13  Bruno Haible  <bruno@clisp.org>
29999
30000         * modules/EOVERFLOW: Remove file.
30001         * m4/eoverflow.m4: Remove file.
30002         * modules/EOVERFLOW-tests: Remove file.
30003         * tests/test-EOVERFLOW.c: Remove file.
30004         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
30005         * modules/ftell (Depends-on): Likewise.
30006         * modules/getdelim (Depends-on): Likewise.
30007         * modules/getugroups (Depends-on): Likewise.
30008         * modules/poll (Depends-on): Likewise.
30009         * modules/snprintf (Depends-on): Likewise.
30010         * modules/sprintf-posix (Depends-on): Likewise.
30011         * modules/vasnprintf (Depends-on): Likewise.
30012         * modules/vasprintf (Depends-on): Likewise.
30013         * modules/vfprintf-posix (Depends-on): Likewise.
30014         * modules/vsnprintf (Depends-on): Likewise.
30015         * modules/vsprintf-posix (Depends-on): Likewise.
30016         * modules/xvasprintf (Depends-on): Likewise.
30017         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30018         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
30019         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
30020         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
30021         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30022         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
30023         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
30024         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
30025         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30026         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
30027         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
30028         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
30029         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30030         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
30031         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
30032         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
30033         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30034         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
30035         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
30036         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
30037         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30038         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
30039         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
30040         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
30041         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
30042         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30043         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
30044         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
30045         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
30046         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
30047         * MODULES.html.sh: Remove EOVERFLOW.
30048         * NEWS: Mention the change.
30049
30050 2008-09-13  Bruno Haible  <bruno@clisp.org>
30051
30052         * modules/errno-tests: New file.
30053         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
30054
30055         * lib/errno.in.h: New file.
30056         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
30057         * modules/errno: New file.
30058         * doc/posix-headers/errno.texi: Update documentation.
30059         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
30060
30061 2008-09-13  Bruno Haible  <bruno@clisp.org>
30062
30063         * tests/test-poll.c: Use #if for native Windows, rather than testing
30064         __MSVCRT__.
30065
30066 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30067             Bruno Haible  <bruno@clisp.org>
30068
30069         * lib/glob.c: Don't include <pwd.h> on native Windows.
30070         (WINDOWS32): New macro.
30071         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
30072
30073 2008-09-13  Bruno Haible  <bruno@clisp.org>
30074
30075         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
30076         (ETIMEDOUT): Remove macro.
30077         (glthread_cond_timedwait_multithreaded): New declaration.
30078         (glthread_cond_timedwait): Use it.
30079         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
30080         (glthread_cond_timedwait_multithreaded): New function.
30081
30082 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30083
30084         * modules/poll-tests: Do not check for io.h.
30085         * tests/test-poll.c: Check for __MSVCRT__ instead.
30086
30087 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30088
30089         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
30090         * modules/poll-tests: Add inet_pton, stdbool, sockets.
30091         * tests/test-poll.c: Use them.  Use _pipe on Windows.
30092
30093 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30094
30095         * modules/poll-tests: New.
30096         * tests/test-poll.c: New.
30097
30098 2008-09-12  Eric Blake  <ebb9@byu.net>
30099
30100         frexp: test for NetBSD failure on -0.0
30101         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
30102         not all, bugs from NetBSD 3.0 have been fixed.
30103         * doc/posix-functions/frexp.texi (frexp): Document bug.
30104         Reported by Thomas Klausner.
30105
30106         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
30107         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
30108         literal -0.0.
30109         Reported by Jonathan C. Patschke <jp@centtech.com>.
30110
30111 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30112
30113         * lib/glthread/cond.h: Use dummy implementation also if
30114         USE_WIN32_THREADS.
30115
30116 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30117
30118         * modules/fnmatch-posix (License): Change to LGPLv2+.
30119         * modules/fnmatch-gnu (License): Likewise.
30120
30121 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30122
30123         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
30124
30125 2008-09-11  Jim Meyering  <meyering@redhat.com>
30126
30127         * users.txt: Add gtk-vnc.
30128
30129 2008-09-08  Simon Josefsson  <simon@josefsson.org>
30130
30131         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
30132         rotate amounts.
30133
30134         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
30135         required for 16-bit and 8-bit rotates.
30136         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
30137         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
30138         UINT8_MAX instead of hard-coded constants.
30139         Suggested by Paul Eggert.
30140
30141 2008-09-07  Bruno Haible  <bruno@clisp.org>
30142
30143         * tests/test-striconveh.c (main): Check behaviour when converting from
30144         UTF-7.
30145
30146         Make striconveh work better with stateful encodings.
30147         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
30148         that iconv does not increment the inptr when returning -1/EINVAL.
30149
30150 2008-09-07  Bruno Haible  <bruno@clisp.org>
30151
30152         * build-aux/config.rpath: Update according to libtool-2.2.6.
30153         * build-aux/config.libpath: Likewise.
30154
30155 2008-09-06  Bruno Haible  <bruno@clisp.org>
30156
30157         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
30158         * lib/freadptr.c (freadptr): Likewise.
30159         * lib/freadseek.c (freadptrinc): Likewise.
30160         Reported by Simon Josefsson.
30161
30162 2008-09-06  Bruno Haible  <bruno@clisp.org>
30163
30164         * modules/freadptr (License): Change to LGPLv2+.
30165         * modules/freadseek (License): Likewise.
30166         Suggested by Eric Blake.
30167
30168         * modules/memchr2 (License): Change to LGPLv2+.
30169         Approved by Eric Blake.
30170
30171 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30172             Bruno Haible  <bruno@clisp.org>
30173
30174         Make gnulib-tool work with native 'sed' on AIX.
30175         * gnulib-tool (sed_noop): New variable.
30176         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
30177         func_add_or_update, func_create_testdir): Use it to initialize sed
30178         script variables.
30179         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30180
30181 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
30182             Bruno Haible  <bruno@clisp.org>
30183
30184         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
30185         also works after #include directives.
30186
30187 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
30188
30189         getdate.y: reject an out-of-range timezone value
30190         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
30191         the range [-24...+24].  When specified with only one or two digits,
30192         * tests/test-getdate.c: Tests for the fix.
30193         * doc/getdate.texi: Document this change.
30194
30195 2008-09-03  Bruno Haible  <bruno@clisp.org>
30196
30197         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
30198
30199 2008-09-02  Simon Josefsson  <simon@josefsson.org>
30200
30201         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
30202         <bruce.korb@gmail.com> with ideas from Ben Pfaff
30203         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
30204         Blake <ebb9@byu.net>.
30205
30206         * tests/test-bitrotate.c: Add more test vectors.
30207
30208 2008-09-02  Eric Blake  <ebb9@byu.net>
30209
30210         vasnprintf-posix: handle large precision via %.*d
30211         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
30212         when handling it ourselves.
30213         * tests/test-vasnprintf-posix.c (test_function): Add test.
30214         * tests/test-snprintf-posix.h (test_function): Likewise.
30215         * tests/test-sprintf-posix.h (test_function): Likewise.
30216         * tests/test-vasprintf-posix.c (test_function): Likewise.
30217         Reported by Alain Guibert.
30218
30219 2008-09-01  Eric Blake  <ebb9@byu.net>
30220
30221         c-stack: make configure-time check more robust
30222         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
30223         successful sigaction call.
30224         Reported by Tom G. Christensen.
30225
30226 2008-09-01  Bruno Haible  <bruno@clisp.org>
30227
30228         New module 'findprog-lgpl'.
30229         * modules/findprog-lgpl: New file.
30230         * lib/findprog-lgpl.c: New file.
30231         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
30232         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
30233         to decide whether to use strdup or xstrdup, concatenated_filename or
30234         xconcatenated_filename.
30235
30236 2008-09-01  Bruno Haible  <bruno@clisp.org>
30237
30238         Split module 'concat-filename' into 'concat-filename' (LGPL) and
30239         'xconcat-filename' (GPL).
30240         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
30241         (License): Change to LGPLv2+.
30242         * modules/xconcat-filename: New file.
30243         * lib/concat-filename.h (concatenated_filename): Change specification.
30244         (xconcatenated_filename): New declaration.
30245         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
30246         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
30247         memory situations.
30248         * lib/xconcat-filename.c: New file.
30249         * NEWS: Mention the change.
30250         * lib/findprog.c: Include concat-filename.h, not filename.h.
30251         (find_in_path): Use xconcatenated_filename instead of
30252         concatenated_filename.
30253         * lib/javacomp.c: Include concat-filename.h, not filename.h.
30254         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
30255         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
30256         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
30257         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
30258         instead of concatenated_filename.
30259         * lib/javaexec.c: Include concat-filename.h, not filename.h.
30260         (execute_java_class): Use xconcatenated_filename instead of
30261         concatenated_filename.
30262         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
30263         * modules/javacomp (Depends-on): Likewise.
30264         * modules/javaexec (Depends-on): Likewise.
30265
30266 2008-09-01  Bruno Haible  <bruno@clisp.org>
30267
30268         Split module 'filename' into 'filename' and 'concat-filename'.
30269         * modules/filename: Keep only lib/filename.h.
30270         (License): Change to LGPLv2+.
30271         * modules/concat-filename: New file, extracted from modules/filename.
30272         * lib/filename.h (concatenated_filename): Remove declaration.
30273         * lib/concat-filename.h: New file, extracted from lib/filename.h.
30274         * lib/concat-filename.c: Include concat-filename.h.
30275         * NEWS: Mention the change.
30276
30277 2008-09-01  Simon Josefsson  <simon@josefsson.org>
30278
30279         * lib/bitrotate.h (rotl8, rotr8): Add.
30280
30281         * modules/bitrotate (configure.ac): Need
30282         AC_REQUIRE([AC_C_INLINE]).
30283         (Description): Mention stdint.h.  Reported by Bruno Haible
30284         <bruno@clisp.org>.
30285
30286         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
30287         Paolo Bonzini <bonzini@gnu.org>.
30288
30289 2008-08-31  Bruno Haible  <bruno@clisp.org>
30290
30291         Assume Solaris specific bi-arch conventions on Solaris systems.
30292         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
30293         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
30294         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
30295         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
30296         like acl_libdirstem.
30297         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
30298         acl_libdirstem.
30299         * NEWS: Mention the change.
30300         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
30301
30302 2008-08-31  Jim Meyering  <meyering@redhat.com>
30303
30304         * lib/strftime.h: Add comments describing the two added arguments.
30305
30306         remove duplicate #include directives
30307         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
30308         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
30309
30310 2008-08-31  Bruno Haible  <bruno@clisp.org>
30311
30312         New module 'sigpipe-die'.
30313         * modules/sigpipe-die: New file.
30314         * lib/sigpipe-die.h: New file.
30315         * lib/sigpipe-die.c: New file.
30316         * MODULES.html.sh (Signal handling): Add sigpipe-die.
30317
30318 2008-08-31  Bruno Haible  <bruno@clisp.org>
30319
30320         Don't override previously installed signal handlers.
30321         * lib/fatal-signal.c (saved_sigactions): New variable.
30322         (uninstall_handlers): Reset the signal to the saved handler, not
30323         to SIG_DFL (except when ignored).
30324         (install_handlers): Save the previous handlers.
30325
30326 2008-08-30  Bruno Haible  <bruno@clisp.org>
30327
30328         * gnulib-tool (func_reset_sigpipe): New function.
30329         (func_get_automake_snippet, func_modules_transitive_closure,
30330         func_import): Invoke it before a join command that reads from stdin,
30331         to avoid "echo: write error: Broken pipe" error messages on stderr.
30332         Reported by Sam Steingold <sds@gnu.org>.
30333
30334 2008-08-30  Bruno Haible  <bruno@clisp.org>
30335
30336         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
30337         Code copied from m4/open.m4.
30338         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
30339         access and the filename ends in a slash. Code copied from lib/open.c.
30340         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
30341         * tests/test-fopen.c (main): Check against bug with trailing slash.
30342
30343 2008-08-29  Bruno Haible  <bruno@clisp.org>
30344
30345         Avoid some "gcc -pedantic" warnings.
30346         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
30347         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
30348         * lib/dirent.in.h: Likewise.
30349         * lib/fcntl.in.h: Likewise.
30350         * lib/float.in.h: Likewise.
30351         * lib/iconv.in.h: Likewise.
30352         * lib/inttypes.in.h: Likewise.
30353         * lib/locale.in.h: Likewise.
30354         * lib/math.in.h: Likewise.
30355         * lib/netinet_in.in.h: Likewise.
30356         * lib/search.in.h: Likewise.
30357         * lib/signal.in.h: Likewise.
30358         * lib/stdarg.in.h: Likewise.
30359         * lib/stdint.in.h: Likewise.
30360         * lib/stdio.in.h: Likewise.
30361         * lib/stdlib.in.h: Likewise.
30362         * lib/string.in.h: Likewise.
30363         * lib/strings.in.h: Likewise.
30364         * lib/sys_select.in.h: Likewise.
30365         * lib/sys_socket.in.h: Likewise.
30366         * lib/sys_stat.in.h: Likewise.
30367         * lib/sys_time.in.h: Likewise.
30368         * lib/sysexits.in.h: Likewise.
30369         * lib/time.in.h: Likewise.
30370         * lib/unistd.in.h: Likewise.
30371         * lib/wchar.in.h: Likewise.
30372         * lib/wctype.in.h: Likewise.
30373         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
30374         * modules/fchdir (Makefile.am): Likewise.
30375         * modules/fcntl (Makefile.am): Likewise.
30376         * modules/float (Makefile.am): Likewise.
30377         * modules/iconv_open (Makefile.am): Likewise.
30378         * modules/inttypes (Makefile.am): Likewise.
30379         * modules/locale (Makefile.am): Likewise.
30380         * modules/math (Makefile.am): Likewise.
30381         * modules/netinet_in (Makefile.am): Likewise.
30382         * modules/search (Makefile.am): Likewise.
30383         * modules/signal (Makefile.am): Likewise.
30384         * modules/stdarg (Makefile.am): Likewise.
30385         * modules/stdint (Makefile.am): Likewise.
30386         * modules/stdio (Makefile.am): Likewise.
30387         * modules/stdlib (Makefile.am): Likewise.
30388         * modules/string (Makefile.am): Likewise.
30389         * modules/strings (Makefile.am): Likewise.
30390         * modules/sys_select (Makefile.am): Likewise.
30391         * modules/sys_socket (Makefile.am): Likewise.
30392         * modules/sys_stat (Makefile.am): Likewise.
30393         * modules/sys_time (Makefile.am): Likewise.
30394         * modules/sysexits (Makefile.am): Likewise.
30395         * modules/time (Makefile.am): Likewise.
30396         * modules/unistd (Makefile.am): Likewise.
30397         * modules/wchar (Makefile.am): Likewise.
30398         * modules/wctype (Makefile.am): Likewise.
30399         Reported by Reuben Thomas <rrt@sc3d.org>.
30400
30401 2008-08-29  Bruno Haible  <bruno@clisp.org>
30402
30403         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
30404         any more.
30405
30406 2008-08-29  Simon Josefsson  <simon@josefsson.org>
30407
30408         * MODULES.html.sh (Misc): Add bitrotate.
30409
30410         * modules/bitrotate: New file.
30411
30412         * lib/bitrotate.h: New file.
30413
30414         * modules/bitrotate-tests: New file.
30415
30416         * tests/test-bitrotate.c: New file.
30417
30418         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
30419         on the bitrotate module.
30420
30421         * lib/arctwo.c: Use new bitrotate module.
30422
30423 2008-08-29  Jim Meyering  <meyering@redhat.com>
30424
30425         bootstrap: merge changes from coreutils
30426         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
30427         of copied files.  Remove a kludge, now that this is fixed.
30428         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
30429         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
30430         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
30431
30432 2008-08-29  Bruno Haible  <bruno@clisp.org>
30433
30434         * MODULES.html.sh: Remove --cvs-urls option.
30435
30436 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
30437
30438         maint.mk: adjust to file name change
30439         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
30440
30441 2008-08-28  Jim Meyering  <meyering@redhat.com>
30442
30443         * modules/getndelim2 (License): Relicense to LGPLv2+.
30444         Approved by Richard Stallman for the version of 1995, and by
30445         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
30446
30447 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
30448
30449         * lib/getdelim.c (flockfile, funlockfile): Make all of them
30450         dummy if one is not available.  Do not touch them if
30451         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
30452         (getc_maybe_unlocked): New.
30453         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
30454
30455 2008-08-26  Eric Blake  <ebb9@byu.net>
30456
30457         doc/INSTALL: resync from autoconf
30458         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
30459         (INSTALL_PRELUDE): Delete; this is done more efficiently by
30460         moving...
30461         * install.texi [!autoconf]: ...here.  Resync from autoconf.
30462         * INSTALL: Regenerate.
30463         * INSTALL.ISO: New file.
30464         * INSTALL.UTF-8: Likewise.
30465
30466 2008-08-26  Jim Meyering  <meyering@redhat.com>
30467
30468         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
30469         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
30470         these definitions conditional, so that they may be overridden, too.
30471
30472 2008-08-26  Bruno Haible  <bruno@clisp.org>
30473
30474         Generate INSTALL file variants with prettier quotes.
30475         * doc/Makefile (INSTALL_PRELUDE): New macro.
30476         (INSTALL): Use it.
30477         (INSTALL.ISO, INSTALL.UTF-8): New rules.
30478
30479 2008-08-26  Bruno Haible  <bruno@clisp.org>
30480
30481         Run makeinfo in an English locale.
30482         * doc/Makefile (MAKEINFO): New variable.
30483
30484 2008-08-26  Bruno Haible  <bruno@clisp.org>
30485
30486         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
30487         Suggested by Eric Blake.
30488
30489 2008-08-25  Bruno Haible  <bruno@clisp.org>
30490
30491         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
30492
30493 2008-08-25  Eric Blake  <ebb9@byu.net>
30494
30495         c-stack: test that stack overflow can be caught
30496         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
30497         that platform allows handling stack overflow; at least OS/2 EMX
30498         has sigaltstack, but crashes before transferring control to
30499         handler on stack overflow.
30500         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
30501         check for HAVE_STACK_OVERFLOW_HANDLING.
30502         Reported by Elbert Pol.
30503
30504 2008-08-25  Bruno Haible  <bruno@clisp.org>
30505
30506         * doc/posix-functions/strftime.texi: Fix description of strftime
30507         module.
30508
30509 2008-08-24  Bruno Haible  <bruno@clisp.org>
30510
30511         * tests/uniwidth/test-uc_width2.c: New file.
30512         * tests/uniwidth/test-uc_width2.sh: New file.
30513         * modules/uniwidth/width-tests (Files): Add the new files.
30514         (TESTS): Add uniwidth/test-uc_width2.sh.
30515         (TESTS_ENVIRONMENT): New variable.
30516         (check_PROGRAMS): Add test-uc_width2.
30517         (test_uc_width2_SOURCES): New variable.
30518
30519         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
30520         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
30521         not 0x00AB.
30522         Reported by Alexander V. Lukyanov <lav@netis.ru>.
30523
30524 2008-08-22  Eric Blake  <ebb9@byu.net>
30525
30526         test-lock, test-tls: mention why a test is skipped
30527         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
30528         skipped.
30529         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
30530
30531         count-one-bits: relax license
30532         * modules/count-one-bits (License): Relicense to LGPLv2+.
30533         Suggested by Ludovic Courtès, approved by Ben Pfaff.
30534
30535 2008-08-22  Andreas Schwab  <schwab@suse.de>
30536
30537         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
30538         Remove spurious space in assignment.
30539
30540 2008-08-21  Simon Josefsson  <simon@josefsson.org>
30541
30542         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
30543         Paul Eggert <eggert@CS.UCLA.EDU>.
30544
30545 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
30546
30547         * modules/gettext: Add m4/threadlib.m4.
30548
30549 2008-08-19  Eric Blake  <ebb9@byu.net>
30550
30551         test-c-stack: fix compilation failure on FreeBSD 5.0
30552         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
30553         headers before <sys/resource.h>.
30554         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
30555         the bug.
30556         Reported by Nelson H. F. Beebe.
30557
30558         strverscmp: migrate from "strverscmp.h" to <string.h>
30559         * modules/string (Makefile.am): Add new hooks.
30560         * modules/strverscmp (Files): Remove strverscmp.h.
30561         (Depends-on): Add string.
30562         (configure.ac): Add indicator.
30563         (Include): Mention new header.
30564         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
30565         defaults.
30566         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
30567         results.
30568         * lib/strverscmp.h: Delete.
30569         * lib/string.in.h (strverscmp): Provide declaration, when needed.
30570         * tests/test-strverscmp.c (includes): Adjust client.
30571         * lib/check-version.c (includes): Likewise.
30572         * NEWS: Document the change.
30573
30574         strverscmp: add unit test
30575         * modules/strverscmp-tests: New file.
30576         * tests/test-strverscmp.c: Likewise.
30577
30578 2008-08-19  Simon Josefsson  <simon@josefsson.org>
30579
30580         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
30581         regarding Windows crypto stuff, from Mono.
30582
30583 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
30584
30585         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
30586         if present, for intel RND.  Return error on failures.
30587
30588 2008-08-18  Ben Pfaff  <blp@gnu.org>
30589
30590         gitlog-to-changelog: give better diagnostic for failed pipe-open
30591         * build-aux/gitlog-to-changelog: Improve error message: suggest
30592         that the version of Git may be too old.
30593
30594 2008-08-18  Simon Josefsson  <simon@josefsson.org>
30595
30596         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
30597         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
30598
30599 2008-08-18  Bruno Haible  <bruno@clisp.org>
30600
30601         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
30602         pthread_in_use().
30603
30604 2008-08-18  Bruno Haible  <bruno@clisp.org>
30605
30606         * lib/glthread/threadlib.c: Include <pthread.h>.
30607
30608 2008-08-18  Bruno Haible  <bruno@clisp.org>
30609
30610         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
30611         glthread_recursive_lock_* macros.
30612         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
30613         Fix syntax error.
30614
30615 2008-08-18  Bruno Haible  <bruno@clisp.org>
30616
30617         * lib/glthread/thread.c: Avoid forcing a context switch right after
30618         thread creation.
30619
30620 2008-08-17  Bruno Haible  <bruno@clisp.org>
30621
30622         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
30623         * lib/glthread/thread.h: Provide Win32 specific implementation.
30624         * modules/thread (Files): Add lib/glthread/thread.c.
30625         (Depends-on): Add lock.
30626         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
30627
30628 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30629
30630         New module 'yield'.
30631         * modules/yield: New file.
30632         * lib/glthread/yield.h: New file.
30633         * m4/yield.m4: New file.
30634         * MODULES.html.sh (Multithreading): Add yield.
30635
30636 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30637
30638         New module 'thread'.
30639         * modules/thread: New file.
30640         * lib/glthread/thread.h: New file.
30641         * m4/thread.m4: New file.
30642         * MODULES.html.sh (Multithreading): Add thread.
30643
30644 2008-08-17  Bruno Haible  <bruno@clisp.org>
30645
30646         * lib/glthread/lock.h: Include <stdlib.h> always.
30647         * lib/glthread/tls.h: Likewise.
30648         * lib/glthread/cond.h: Likewise.
30649
30650 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30651
30652         New module 'cond'.
30653         * modules/cond: New file.
30654         * lib/glthread/cond.h: New file.
30655         * lib/glthread/cond.c: New file.
30656         * m4/cond.m4: New file.
30657         * MODULES.html.sh (Multithreading): Add cond.
30658
30659 2008-08-16  Eric Blake  <ebb9@byu.net>
30660
30661         c-stack: fix regression on Irix 5.3 from 2008-06-21
30662         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
30663         sa_sigaction...
30664         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
30665         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
30666         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
30667         * modules/signal (Makefile.am): Use the value.
30668         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
30669         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
30670         * doc/posix-headers/signal.texi (signal.h): Document this
30671         portability issue.
30672         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
30673         Reported by Tom G. Christensen.
30674
30675 2008-08-17  Bruno Haible  <bruno@clisp.org>
30676
30677         New module 'threadlib'.
30678         * modules/threadlib: New file.
30679         * lib/glthread/threadlib.c: New file, extracted from
30680         lib/glthread/lock.c.
30681         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
30682         functions.
30683         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
30684         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
30685         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
30686         macros.
30687         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
30688         (gl_DISABLE_THREADS): Remove macro.
30689         * modules/lock (Files): Remove build-aux/config.rpath.
30690         (Depends-on): Remove havelib. Add threadlib.
30691         (configure.ac-early): Remove section.
30692         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
30693         * modules/tls (Depends-on): Remove lock. Add threadlib.
30694         (Link): New section, copied from threadlib.
30695         * MODULES.html.sh (Multithreading): Add threadlib.
30696
30697 2008-08-14  Bruno Haible  <bruno@clisp.org>
30698
30699         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
30700         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
30701         glthread_rwlock_unlock, glthread_rwlock_destroy,
30702         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
30703         glthread_recursive_lock_destroy): Define as macros always.
30704         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
30705         glthread_lock_lock.
30706         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
30707         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
30708         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
30709         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
30710         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
30711         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
30712         (glthread_recursive_lock_lock_func): Renamed from
30713         glthread_recursive_lock_lock.
30714         (glthread_recursive_lock_unlock_func): Renamed from
30715         glthread_recursive_lock_unlock.
30716         (glthread_recursive_lock_destroy_func): Renamed from
30717         glthread_recursive_lock_destroy.
30718
30719 2008-08-14  Bruno Haible  <bruno@clisp.org>
30720
30721         * lib/glthread/lock.h: Renamed from lib/lock.h.
30722         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
30723         * lib/glthread/tls.h: Renamed from lib/tls.h.
30724         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
30725         * lib/fstrcmp.c: Update includes.
30726         * lib/strsignal.c: Update includes.
30727         * modules/lock (Files, Makefile.am): Update.
30728         (Include): Change to "glthread/lock.h".
30729         * modules/tls (Files, Makefile.am): Update.
30730         (Include): Change to "glthread/tls.h".
30731         * tests/test-lock.c: Update includes.
30732         * tests/test-tls.c: Update includes.
30733         * NEWS: Mention the renamed header files.
30734
30735 2008-08-11  Jim Meyering  <meyering@redhat.com>
30736
30737         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
30738
30739 2008-08-11  Eric Blake  <ebb9@byu.net>
30740
30741         test-c-stack: avoid C99-ism
30742         * tests/test-c-stack.c (main): Fix whitespace, move declaration
30743         before statement.
30744         Reported by Alain Guibert.
30745
30746 2008-08-10  Jim Meyering  <meyering@redhat.com>
30747
30748         ensure that return value of uinttostr et al are not ignored
30749         * lib/inttostr.h (__GNUC_PREREQ): Define.
30750         (__attribute_warn_unused_result__): Define.
30751         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
30752
30753 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
30754
30755         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
30756         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
30757
30758 2008-08-07  Jim Meyering  <meyering@redhat.com>
30759
30760         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
30761
30762         * modules/mkstemp (License): Relicense under LGPLv2+.
30763         * modules/tempname (License): Likewise.
30764
30765 2008-08-06  Bruno Haible  <bruno@clisp.org>
30766
30767         * lib/poll.c (poll): Further micro-optimization.
30768
30769 2008-08-06  Jim Meyering  <meyering@redhat.com>
30770
30771         inet_pton.c: use locale-independent tolower
30772         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
30773         (inet_pton6): Use c_tolower rather than tolower.
30774         * modules/inet_pton (Depends-on): Add c-ctype.
30775
30776 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
30777
30778         * lib/poll.c (poll): Avoid division when timeout is 0, cache
30779         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
30780
30781 2008-08-06  Jim Meyering  <meyering@redhat.com>
30782
30783         * modules/inet_pton (License): Relicense under LGPLv2+.
30784
30785 2008-08-03  Bruno Haible  <bruno@clisp.org>
30786
30787         Additional non-aborting API for lock and tls.
30788         * lib/lock.h: Include <errno.h>.
30789         (glthread_lock_init): New macro/function.
30790         (gl_lock_init): Define as wrapper around glthread_lock_init.
30791         (glthread_lock_lock): New macro/function.
30792         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
30793         (glthread_lock_unlock): New macro/function.
30794         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
30795         (glthread_lock_destroy): New macro/function.
30796         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
30797         (glthread_rwlock_init): New macro/function.
30798         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
30799         (glthread_rwlock_rdlock): New macro/function.
30800         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
30801         (glthread_rwlock_wrlock): New macro/function.
30802         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
30803         (glthread_rwlock_unlock): New macro/function.
30804         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
30805         (glthread_rwlock_destroy): New macro/function.
30806         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
30807         (glthread_recursive_lock_init): New macro/function.
30808         (gl_recursive_lock_init): Define as wrapper around
30809         glthread_recursive_lock_init.
30810         (glthread_recursive_lock_lock): New macro/function.
30811         (gl_recursive_lock_lock): Define as wrapper around
30812         glthread_recursive_lock_lock.
30813         (glthread_recursive_lock_unlock): New macro/function.
30814         (gl_recursive_lock_unlock): Define as wrapper around
30815         glthread_recursive_lock_unlock.
30816         (glthread_recursive_lock_destroy): New macro/function.
30817         (gl_recursive_lock_destroy): Define as wrapper around
30818         glthread_recursive_lock_destroy.
30819         (glthread_once): New macro/function.
30820         (gl_once): Define as wrapper around glthread_once.
30821         Update function declarations.
30822         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
30823         glthread_rwlock_init. Return error code.
30824         (glthread_rwlock_rdlock_multithreaded): Renamed from
30825         glthread_rwlock_rdlock. Return error code.
30826         (glthread_rwlock_wrlock_multithreaded): Renamed from
30827         glthread_rwlock_wrlock. Return error code.
30828         (glthread_rwlock_unlock_multithreaded): Renamed from
30829         glthread_rwlock_unlock. Return error code.
30830         (glthread_rwlock_destroy_multithreaded): Renamed from
30831         glthread_rwlock_destroy. Return error code.
30832         (glthread_recursive_lock_init_multithreaded): Renamed from
30833         glthread_recursive_lock_init. Return error code.
30834         (glthread_recursive_lock_lock_multithreaded): Renamed from
30835         glthread_recursive_lock_lock. Return error code.
30836         (glthread_recursive_lock_unlock_multithreaded): Renamed from
30837         glthread_recursive_lock_unlock. Return error code.
30838         (glthread_recursive_lock_destroy_multithreaded): Renamed from
30839         glthread_recursive_lock_destroy. Return error code.
30840         (glthread_once_call): Make static.
30841         (glthread_once_multithreaded): Renamed from glthread_once.
30842         * lib/tls.h: Include <errno.h>.
30843         (glthread_tls_key_init): New macro/function.
30844         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
30845         (glthread_tls_set): New macro/function.
30846         (gl_tls_set): Define as wrapper around glthread_tls_set.
30847         (glthread_tls_key_destroy): New macro/function.
30848         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
30849         Update function declarations.
30850         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
30851         glthread_tls_get.
30852         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30853
30854 2008-08-04  Eric Blake  <ebb9@byu.net>
30855
30856         gnumakefile: use space, not TAB, outside of targets
30857         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
30858
30859 2008-08-02  Jim Meyering  <meyering@redhat.com>
30860
30861         getdate.y: avoid locale-dependent date parsing failure
30862         In Turkish locales, getdate would fail to recognize keywords
30863         containing a lowercase "i".  The solution is not to rely on
30864         locale-sensitive case-conversion.
30865         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
30866         (lookup_word): Use c_toupper in place of toupper.
30867         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
30868         Reported by Vefa Bicakci <bicave@superonline.com> in
30869         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
30870         * modules/getdate (Depends-on): Add c-ctype.
30871
30872 2008-08-02  Bruno Haible  <bruno@clisp.org>
30873
30874         * gnulib-tool (func_import): When updating or creating a .gitignore
30875         file, prepend each added line with a slash, and ignore leading slashes
30876         from the existing lines.
30877         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
30878
30879 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30880
30881         Portability fix for GNU make 3.79.1.
30882         * top/GNUmakefile: Avoid 'else COND', which older GNU make
30883         versions do not understand.
30884
30885 2008-08-01  Bruno Haible  <bruno@clisp.org>
30886
30887         Work around bug of HP-UX 10.20 cc with -0.0 literal.
30888         * tests/test-isnanf.h (zero): New variable.
30889         (main): Avoid literal -0.0f.
30890         * tests/test-isnand.h (zero): New variable.
30891         (main): Avoid literal -0.0.
30892         * tests/test-isnanl.h (zero): New variable.
30893         (main): Avoid literal -0.0L.
30894         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
30895         (test_float, test_double, test_long_double): Avoid literals -0.0f,
30896         -0.0, -0.0L.
30897         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
30898         (test_signbitd): Avoid literal -0.0.
30899         (test_signbitl): Avoid literal -0.0L.
30900         * tests/test-ceilf1.c (zero): New variable.
30901         (main): Avoid literal -0.0f.
30902         * tests/test-ceill.c (zero): New variable.
30903         (main): Avoid literal -0.0L.
30904         * tests/test-floorf1.c (zero): New variable.
30905         (main): Avoid literal -0.0f.
30906         * tests/test-floorl.c (zero): New variable.
30907         (main): Avoid literal -0.0L.
30908         * tests/test-roundf1.c (zero): New variable.
30909         (main): Avoid literal -0.0f.
30910         * tests/test-round1.c (zero): New variable.
30911         (main): Avoid literal -0.0.
30912         * tests/test-roundl.c (zero): New variable.
30913         (main): Avoid literal -0.0L.
30914         * tests/test-truncf1.c (zero): New variable.
30915         (main): Avoid literal -0.0f.
30916         * tests/test-trunc1.c (zero): New variable.
30917         (main): Avoid literal -0.0.
30918         * tests/test-truncl.c (zero): New variable.
30919         (main): Avoid literal -0.0L.
30920         * tests/test-frexp.c (zero): New variable.
30921         (main): Avoid literal -0.0.
30922         * tests/test-frexpl.c (zero): New variable.
30923         (main): Avoid literal -0.0L.
30924         * tests/test-ldexpl.c (zero): New variable.
30925         (main): Avoid literal -0.0L.
30926         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
30927         (zerod, zerol): New variables.
30928         (test_function): Avoid literals -0.0, -0.0L.
30929         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
30930         (zerod, zerol): New variables.
30931         (test_function): Avoid literals -0.0, -0.0L.
30932         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
30933         (zerod, zerol): New variables.
30934         (test_function): Avoid literals -0.0, -0.0L.
30935         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
30936         (zerod, zerol): New variables.
30937         (test_function): Avoid literals -0.0, -0.0L.
30938         * tests/test-strtod.c (zero): New variable.
30939         (main): Avoid literal -0.0.
30940         Reported by Jonathan C. Patschke <jp@centtech.com>.
30941
30942 2008-07-31  Jim Meyering  <meyering@redhat.com>
30943
30944         sha256.h: correct definition of SHA224_DIGEST_SIZE
30945         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
30946         Reported by Paulie Pena IV <paulie4@gmail.com>.
30947         Define as 224 / 8, rather than as a literal.
30948         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
30949         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
30950         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
30951
30952 2008-07-31  Bruno Haible  <bruno@clisp.org>
30953
30954         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
30955         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
30956         Reported by Jonathan Patschke <jp@centtech.com>.
30957
30958 2008-07-31  Bruno Haible  <bruno@clisp.org>
30959
30960         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
30961         Reported by Paolo Bonzini <bonzini@gnu.org>.
30962
30963 2008-07-30  Eric Blake  <ebb9@byu.net>
30964
30965         test-strtod: allow compilation without -lm
30966         * tests/test-strtod.c (main): Avoid link dependence on fabs.
30967         Reported by Dennis Clarke <blastwave@gmail.com>.
30968
30969 2008-07-28  Jim Meyering  <meyering@redhat.com>
30970
30971         bootstrap: work also when there are no .po files in po/
30972         * build-aux/bootstrap (update_po_files): Complete the change
30973         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
30974
30975 2008-07-27  Jim Meyering  <meyering@redhat.com>
30976
30977         * users.txt: Add zile.
30978
30979 2008-07-26  Ben Pfaff  <blp@gnu.org>
30980
30981         Add missing dependencies on new m4/exponent[fdl].m4 files.
30982         * modules/isnanf-nolibm: Add m4/exponentf.m4.
30983         * modules/isnand-nolibm: Add m4/exponentd.m4.
30984         * modules/isnanl-nolibm: Add m4/exponentl.m4.
30985         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
30986         m4/isnan[fdl].m4, because the macros actually used moved.
30987         Reported by Jim Meyering.
30988
30989 2008-07-14  Ben Pfaff  <blp@gnu.org>
30990
30991         Add isinf module.
30992         * lib/isinf.c: New file.
30993         * lib/math.in.h: Define isinf macro if we have decided to replace
30994         it.
30995         * m4/isinf.m4: New file.
30996         * m4/math_h.m4: Initialize and substitute variables for isinf
30997         module.
30998         * modules/isinf: New file.
30999         * modules/isinf-tests: New file.
31000         * modules/math: Add substitutions for new module.
31001         * tests/test-isinf.c: New file.
31002         * doc/posix-functions/isinf.texi: Mention new module.
31003         * MODULES.html.sh: Mention new module.
31004
31005 2008-07-14  Ben Pfaff  <blp@gnu.org>
31006
31007         Factor out some macros for use by additional modules.
31008         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
31009         exponentf.m4.
31010         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
31011         exponentd.m4.
31012         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
31013         file exponentl.m4.
31014         * m4/exponentf.m4: New file.
31015         * m4/exponentd.m4: New file.
31016         * m4/exponentl.m4: New file.
31017         * modules/isnanf: Use new file m4/exponentf.m4.
31018         * modules/isnand: Use new file m4/exponentd.m4.
31019         * modules/isnanl: Use new file m4/exponentl.m4.
31020
31021 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
31022
31023         mktime.c: normalize tp->tm_isdst value to -1/0/1.
31024         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
31025         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
31026         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
31027
31028         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
31029         readlink on platforms without PATH_MAX.
31030
31031 2008-07-21  Eric Blake  <ebb9@byu.net>
31032
31033         Warn, not fail, on stale version.
31034         * top/GNUmakefile (_curr-ver): Tone down previous patch.
31035
31036         Don't allow installation with stale devel version number.
31037         * top/GNUmakefile (_is-install-target): New macro.
31038         (_curr-ver): Forbid installation with stale version number.
31039
31040 2008-07-20  Bruno Haible  <bruno@clisp.org>
31041
31042         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
31043         TESTS_ENVIRONMENT.
31044         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
31045
31046 2008-07-20  Bruno Haible  <bruno@clisp.org>
31047
31048         * lib/c-stack.h (c_stack_action): Add documentation.
31049         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
31050
31051 2008-07-20  Bruno Haible  <bruno@clisp.org>
31052
31053         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
31054         * modules/readlink (License): Likewise.
31055
31056 2008-07-17  Eric Blake  <ebb9@byu.net>
31057
31058         * modules/c-stack (Link): Fix typo.
31059
31060         Make c-stack use libsigsegv, when available.
31061         * modules/c-stack (Depends-on): Add libsigsegv.
31062         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
31063         needed.
31064         * lib/c-stack.c (SIGSTKSZ): Define fallback.
31065         (segv_handler, overflow_handler, c_stack_action)
31066         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
31067         implementation when libsigsegv is available, but only when using
31068         the library is necessary.
31069         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
31070         comment, explaining why XSI check fails on Linux.
31071         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
31072         * tests/test-c-stack2.sh: Tweak skip message.
31073         * NEWS: Document new link-time requirements.
31074
31075 2008-07-16  Eric Blake  <ebb9@byu.net>
31076
31077         c-stack: Expose false positives when not using libsigsegv.
31078         * modules/c-stack-tests (Files): Expand test.
31079         * tests/test-c-stack.c (main): Add means to conditionally trigger
31080         non-overflow SIGSEGV.
31081         * tests/test-c-stack2.sh: New file.
31082
31083 2008-07-14  Bruno Haible  <bruno@clisp.org>
31084
31085         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
31086         Reported by Eric Blake.
31087
31088 2008-07-14  Sam Steingold  <sds@gnu.org>
31089             Bruno Haible  <bruno@clisp.org>
31090
31091         New module libsigsegv.
31092         * modules/libsigsegv: New file.
31093         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
31094         modifications.
31095         * MODULES.html.sh (Signal handling): New section.
31096
31097 2008-07-14  Bruno Haible  <bruno@clisp.org>
31098
31099         * modules/unictype/ctype-* (Description): Add the word "function".
31100         Improves the resulting doc in MODULES.html.
31101
31102 2008-07-12  Ben Pfaff  <blp@gnu.org>
31103
31104         Add longlong module.
31105         * modules/longlong: New file.
31106
31107 2008-07-12  Bruno Haible  <bruno@clisp.org>
31108
31109         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
31110         to empty.
31111
31112 2008-07-10  Ben Pfaff  <blp@gnu.org>
31113
31114         Add isnan module.
31115         * doc/posix-functions/isnan.texi: Mention new module.
31116         * lib/math.in.h: Define isnan macro if we have decided to replace
31117         it.
31118         * m4/isnan.m4: New file.
31119         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
31120         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
31121         also.
31122         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
31123         redundancy.
31124         * m4/math_h.m4: Initialize and substitute variables for isnan
31125         module.
31126         * modules/isnan: New file.
31127         * modules/isnan-tests: New file.
31128         * modules/math: Add substitutions for new module.
31129         * tests/test-isnan.c: New file.
31130         * MODULES.html.sh: Mention new module.
31131
31132 2008-07-10  Ben Pfaff  <blp@gnu.org>
31133
31134         Add isnanf module.
31135         * lib/isnanf.m4: New file.
31136         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
31137         (gl_HAVE_ISNANF_IN_LIBM): New macro.
31138         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
31139         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
31140         * modules/isnanf: New file.
31141         * modules/isnanf-tests: New file.
31142         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
31143         files.
31144         * tests/test-isnanf-nolibm.c: factored most of its contents into
31145         new file tests/test-isnanf.h.
31146         * tests/test-isnanf.h: New file.
31147         * tests/test-isnanf.c: New file.
31148         * MODULES.html.sh: Mention new module.
31149         * doc/glibc-functions/isnanf.texi: Mention new module.
31150
31151 2008-07-10  Ben Pfaff  <blp@gnu.org>
31152
31153         Add isnand module.
31154         * lib/isnand.h: New file.
31155         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
31156         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
31157         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
31158         functionality also.
31159         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
31160         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
31161         (gl_HAVE_ISNAND_IN_LIBM): New macro.
31162         * modules/isnand: New file.
31163         * modules/isnand-tests: New file.
31164         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
31165         files.
31166         * tests/test-isnand-nolibm.c: factored most of its contents into
31167         new file tests/test-isnand.h.
31168         * tests/test-isnand.h: New file.
31169         * tests/test-isnand.c: New file.
31170         * MODULES.html.sh: Mention new module.
31171
31172 2008-07-10  Ben Pfaff  <blp@gnu.org>
31173
31174         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
31175         * lib/isnand.h: Rename lib/isnand-nolibm.h.
31176         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
31177         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
31178         * modules/isnanf-nolibm: Update references to renamed files.
31179         * modules/isnand-nolibm: Likewise.
31180         * modules/isnanf-nolibm-tests: Likewise.
31181         * modules/isnand-nolibm-tests: Likewise.
31182         * lib/frexp.c: Likewise.
31183         * lib/isfinite.c: Likewise.
31184         * lib/signbitd.c: Likewise.
31185         * lib/signbitf.c: Likewise.
31186         * lib/vasnprintf.c: Likewise.
31187         * tests/test-ceilf1.c: Likewise.
31188         * tests/test-ceilf2.c: Likewise.
31189         * tests/test-floorf1.c: Likewise.
31190         * tests/test-floorf2.c: Likewise.
31191         * tests/test-frexp.c: Likewise.
31192         * tests/test-round1.c: Likewise.
31193         * tests/test-round2.c: Likewise.
31194         * tests/test-roundf1.c: Likewise.
31195         * tests/test-strtod.c: Likewise.
31196         * tests/test-trunc1.c: Likewise.
31197         * tests/test-trunc2.c: Likewise.
31198         * tests/test-truncf1.c: Likewise.
31199         * tests/test-truncf2.c: Likewise.
31200         * NEWS: Mention the renamed header files.
31201
31202 2008-07-11  Jim Meyering  <meyering@redhat.com>
31203
31204         vc-list-files: make the last-resort awk code more portable
31205         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
31206         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
31207         does not support it.
31208
31209 2008-07-10  Eric Blake  <ebb9@byu.net>
31210
31211         Work with tar's bootstrap.
31212         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
31213         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
31214         an m4 comment.
31215
31216 2008-07-09  Jim Meyering  <meyering@redhat.com>
31217
31218         posix-shell.m4: fix typo that made this test malfunction
31219         * m4/posix-shell.m4: Remove capitalization in variable name.
31220
31221 2008-07-08  Bruno Haible  <bruno@clisp.org>
31222
31223         * m4/onceonly.m4: Update comments.
31224         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31225
31226 2008-07-04  Jim Meyering  <meyering@redhat.com>
31227
31228         * users.txt: Add vc-dwim.
31229         (bison, coreutils): Use the gitweb URL.
31230
31231 2008-07-03  Jim Meyering  <meyering@redhat.com>
31232
31233         * users.txt: Add libffcall.  From Sam Steingold.
31234
31235 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
31236
31237         getdate.y: do not ignore TZ with relative day, month or year offset
31238         * lib/getdate.y (get_date): Move the tz-handling block to follow the
31239         relative-date-handling, since otherwise, the latter would clobber the
31240         sole output (an updated Start value) of the tz-handling block.
31241         * tests/test-getdate.c: Tests for the fix
31242
31243 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31244
31245         Recognize 'foo_LIBRARIES += libgnu.a'.
31246         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
31247         makefile snippet has already specified an installation location,
31248         also using '+='.
31249
31250 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
31251
31252         getdate.y: factor out common actions
31253         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
31254         Use them in place of open-coded actions.
31255
31256 2008-07-01  Simon Josefsson  <simon@josefsson.org>
31257
31258         Add self-test for getdate module.
31259         * modules/getdate-tests: New file.
31260         * tests/test-getdate.c: New file.
31261
31262 2008-06-29  Bruno Haible  <bruno@clisp.org>
31263
31264         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
31265         .gitignore.
31266         Reported by Sylvain Beucler <beuc@beuc.net>.
31267
31268 2008-06-29  Bruno Haible  <bruno@clisp.org>
31269
31270         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
31271         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
31272
31273 2008-06-29  Bruno Haible  <bruno@clisp.org>
31274
31275         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
31276         EXTRA_DIST.
31277         Reported by Sylvain Beucler <beuc@beuc.net>.
31278
31279 2008-06-26  Jim Meyering  <meyering@redhat.com>
31280
31281         make several modules depend on the "open" module
31282         This provides slightly increased consistency when opening-for-write
31283         the name of a non-directory spelled with a trailing slash.
31284         * modules/chdir-safer: Likewise.
31285         * modules/chown: Likewise.
31286         * modules/clean-temp: Likewise.
31287         * modules/copy-file: Likewise.
31288         * modules/fchdir: Likewise.
31289         * modules/fcntl-safer: Likewise.
31290         * modules/pipe: Likewise.
31291         * modules/utime: Likewise.
31292         Prompted by Eric Blake and Bruno Haible.
31293
31294 2008-06-24  Andreas Schwab  <schwab@suse.de>
31295
31296         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
31297         literals can be used as initializers for global variables.
31298
31299 2008-06-23  Eric Blake  <ebb9@byu.net>
31300
31301         Make gnulib-cache.m4 easier to diff.
31302         * gnulib-tool (func_import): Allow newlines when reading cached
31303         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
31304
31305 2008-06-23  Bruno Haible  <bruno@clisp.org>
31306
31307         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
31308         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
31309         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
31310         m4/signalblocking.m4.
31311         (gl_PREREQ_SIGACTION): Don't invoke it.
31312         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
31313         gl_PREREQ_SIG_HANDLER_H.
31314         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31315         Don't check for sigaction here.
31316
31317 2008-06-23  Bruno Haible  <bruno@clisp.org>
31318
31319         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
31320         (install_handlers): Don't set the SA_RESETHAND flag.
31321
31322 2008-06-23  Bruno Haible  <bruno@clisp.org>
31323
31324         * m4/sigaction.m4: Comment fixes.
31325         * lib/signal.in.h: Likewise.
31326
31327 2008-06-23  Eric Blake  <ebb9@byu.net>
31328
31329         Fix typo.
31330         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
31331
31332         Avoid SA_ namespace.
31333         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
31334         Reported by Ralf Wildenhues.
31335
31336         Avoid test failure due to SA_RESTORER.
31337         * tests/test-sigaction.c (SA_MASK): New macro.
31338         (main): Avoid failing due to extension flags being set.
31339         Reported by Jim Meyering.
31340
31341         Revert use of sig-handler.h in sigprocmask.c.
31342         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
31343         it requires the existence of struct sigaction.
31344         * lib/sigprocmask.c (handler_t): Restore typedef.
31345         (rpl_signal, old_handlers): Use local type.
31346
31347 2008-06-22  Bruno Haible  <bruno@clisp.org>
31348
31349         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
31350         conditionally.
31351         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31352
31353 2008-06-22  Bruno Haible  <bruno@clisp.org>
31354
31355         * doc/posix-functions/siginterrupt.texi: Move note.
31356
31357         * lib/signal.in.h (SA_RESTART): New macro.
31358         * lib/sigaction.c: Update comment.
31359
31360         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
31361
31362         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
31363         (gl_PREREQ_SIGPROCMASK): Invoke it.
31364         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
31365
31366         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
31367
31368         * lib/sigprocmask.c: Update a comment.
31369
31370 2008-06-21  Eric Blake  <ebb9@byu.net>
31371
31372         Use sigaction module rather than signal().
31373         * modules/c-stack (Depends-on): Add sigaction.
31374         * modules/fatal-signal (Depends-on): Likewise.
31375         * modules/nanosleep (Depends-on): Likewise.
31376         * modules/sigprocmask (Files): Add sig-handler.h.
31377         * modules/sigaction (Files): Likewise.
31378         * lib/sig-handler.h (get_handler): New file, suggested by Paul
31379         Eggert.
31380         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
31381         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
31382         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
31383         (init_fatal_signals): Likewise.
31384         * lib/nanosleep.c (rpl_nanosleep): Likewise.
31385         (siginterrupt): Delete fallback.
31386         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
31387         instead.
31388         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
31389         siginterrupt.
31390
31391         New module sigaction, for mingw.
31392         * modules/sigaction: New module...
31393         * modules/sigaction-tests: ...and its test.
31394         * m4/sigaction.m4: New file.
31395         * lib/sigaction.c: Likewise.
31396         * tests/test-sigaction.c: Likewise.
31397         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
31398         * modules/signal (Makefile.am): Likewise.
31399         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
31400         needed.
31401         * doc/posix-headers/signal.texi (signal.h): Mention provided
31402         types.
31403         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
31404         that sigaction is preferable.
31405         * doc/posix-functions/sigaction.texi (sigaction): Mention new
31406         module.
31407         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31408         sigaction.
31409
31410         Improve robustness of sigprocmask by overriding signal.
31411         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
31412         is in use.
31413         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
31414         (SIGKILL, SIGSTOP): Provide fallbacks.
31415         (rpl_signal): Implement.
31416         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
31417         signal can be called inside handlers.
31418
31419         Fix nanosleep module on mingw.
31420         * modules/nanosleep (Depends-on): Add sys_select.
31421         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
31422
31423         Fix licensing of sigprocmask.
31424         * modules/raise (License): Relicense as LGPL.
31425
31426 2008-06-21  Bruno Haible  <bruno@clisp.org>
31427
31428         * lib/propername.c (proper_name_utf8): Don't use the transliterated
31429         result if it contains question marks.
31430         Reported by Michael Geng <linux@michaelgeng.de>.
31431
31432 2008-06-19  Bruno Haible  <bruno@clisp.org>
31433
31434         Fix CVS-ism.
31435         * doc/gnulib.texi: Include updated-stamp.texi.
31436         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
31437         (updated-stamp.texi): New rule.
31438         (gnulib.info): Depend on it.
31439         * doc/.gitignore: Add updated-stamp.texi.
31440         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
31441
31442 2008-06-19  Bruno Haible  <bruno@clisp.org>
31443
31444         * doc/Makefile (gnulib.info): Update and simplify dependencies.
31445         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31446
31447 2008-06-19  Eric Blake  <ebb9@byu.net>
31448
31449         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
31450         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
31451         Reported by Stepan Kasal.
31452
31453 2008-06-18  Bruno Haible  <bruno@clisp.org>
31454
31455         * lib/fatal-signal.c (init_fatal_signals): Add comment.
31456         Reported by Eric Blake.
31457
31458 2008-06-18  Eric Blake  <ebb9@byu.net>
31459
31460         Work around cygwin 1.5.25 strsignal bug.
31461         * tests/test-strsignal.c: Allow for const char *.
31462         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
31463
31464 2008-06-18  Simon Josefsson  <simon@josefsson.org>
31465
31466         * users.txt: Update URL to article and add author/date
31467         information.
31468
31469 2008-06-17  Bruno Haible  <bruno@clisp.org>
31470
31471         New macro gl_DISABLE_THREADS.
31472         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
31473         if the user did not pass --enable-threads or --disable-threads option.
31474         (gl_DISABLE_THREADS): New macro.
31475         Reported by Eric Blake <ebb9@byu.net>.
31476
31477 2008-06-17  Bruno Haible  <bruno@clisp.org>
31478
31479         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
31480         when the macro ignores it.
31481         Based on a patch by Eric Blake <ebb9@byu.net>.
31482
31483 2008-06-17  Bruno Haible  <bruno@clisp.org>
31484
31485         * modules/tls (License): Change to LGPLv2+.
31486         Reported by Eric Blake.
31487
31488 2008-06-17  Eric Blake  <ebb9@byu.net>
31489
31490         Simplify c-stack prerequisites.
31491         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
31492         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
31493         no longer requires <ucontext.h> to exist.  Optimize setrlimit
31494         check.
31495         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
31496         <sys/resource.h>.
31497
31498         Move c-stack test into testsuite.
31499         * modules/c-stack-tests: New file.
31500         * lib/c-stack.c [DEBUG]: Move test program...
31501         * tests/test-c-stack.c: ...into this new file.  Skip rather than
31502         fail test if sigaltstack is lacking.
31503         * tests/test-c-stack.sh: New driver file.
31504
31505 2008-06-16  Eric Blake  <ebb9@byu.net>
31506
31507         Use raise module consistently.
31508         * modules/fatal-signal (Depends-on): Add raise.
31509         * modules/sigprocmask (Depends-on): Likewise.
31510         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
31511         * lib/sigprocmask.c (sigprocmask): Likewise.
31512         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31513         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
31514
31515         Fix compliance bug in sigpending.
31516         * lib/sigprocmask.c (sigpending): Return pending array via
31517         parameter, not return value.
31518
31519 2008-06-14  Eric Blake  <ebb9@byu.net>
31520
31521         Improve obstack-printf test code.
31522         * tests/test-obstack-printf.c (test_function): Fix comment, and
31523         simplify usage of obstack_* in macros.  Add a test for coverage.
31524         Reported by Bruno Haible.
31525
31526 2008-06-14  Bruno Haible  <bruno@clisp.org>
31527
31528         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
31529         array size as a constant, not as a const variable.
31530         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
31531         AC_USE_SYSTEM_EXTENSIONS.
31532         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31533         Test whether the obstack_printf function actually exists.
31534         * modules/obstack-printf (Depends-on): Add extensions.
31535         (Include): Remove obstack.h.
31536         * modules/obstack-printf-posix (Depends-on): Add extensions.
31537         (Include): Remove obstack.h.
31538
31539 2008-06-13  Eric Blake  <ebb9@byu.net>
31540
31541         Add obstack-printf and obstack-printf-posix modules.
31542         * modules/obstack-printf: New file.
31543         * modules/obstack-printf-posix: Likewise.
31544         * MODULES.html.sh (Misc): Mention them.
31545         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31546         Likewise.
31547         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31548         Likewise.
31549         * modules/stdio (Makefile.am): Accomodate new modules.
31550         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31551         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
31552         Declare.
31553         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
31554         functions.
31555         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
31556         (gl_REPLACE_OBSTACK_PRINTF): New macros
31557         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
31558         * tests/test-obstack-printf.c: New file.
31559         * modules/obstack-printf-tests: Likewise.
31560         * modules/obstack-printf-posix-tests: Likewise.
31561
31562 2008-06-11  Bruno Haible  <bruno@clisp.org>
31563
31564         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
31565         * lib/open.c: Include errno.h.
31566         (open): Fail when attempting to write to a file that has a trailing
31567         slash.
31568         * tests/test-open.c (main): Test against trailing slash bug.
31569         * doc/posix-functions/open.texi: Mention the trailing slash bug.
31570
31571 2008-06-10  Bruno Haible  <bruno@clisp.org>
31572
31573         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
31574         for $? to work inside the trap command, with various /bin/sh-s.
31575         * tests/test-vc-list-files-cvs.sh: Likewise.
31576
31577 2008-06-10  Bruno Haible  <bruno@clisp.org>
31578
31579         * lib/acl-internal.h: Don't include gettext.h here.
31580         * lib/set-mode-acl.c: Include gettext.h here.
31581         * lib/copy-acl.c: Likewise.
31582
31583 2008-06-10  Bruno Haible  <bruno@clisp.org>
31584
31585         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
31586         * lib/wait-process.c (wait_subprocess): Likewise.
31587         * lib/execute.h (execute): Add termsigp argument.
31588         * lib/execute.c (execute): Likewise.
31589         * lib/csharpcomp.c (compile_csharp_using_pnet,
31590         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
31591         * lib/csharpexec.c (execute_csharp_using_pnet,
31592         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
31593         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
31594         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
31595         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
31596         is_jikes_present): Update.
31597         * lib/javaexec.c (execute_java_class): Update.
31598         * lib/javaversion.c (execute_and_read_line): Update.
31599         * NEWS: Document the changes.
31600         Reported by Eric Blake.
31601
31602 2008-06-10  Eric Blake  <ebb9@byu.net>
31603
31604         Add missing include.
31605         * tests/test-strstr.c (includes): Add <signal.h>.
31606         * tests/test-strcasestr.c (includes): Likewise.
31607         * tests/test-memmem.c (includes): Likewise.
31608
31609 2008-06-10  Bruno Haible  <bruno@clisp.org>
31610
31611         * lib/wait-process.c (wait_subprocess): Add an assertion.
31612
31613 2008-06-10  Bruno Haible  <bruno@clisp.org>
31614
31615         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
31616
31617 2008-06-10  Bruno Haible  <bruno@clisp.org>
31618
31619         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
31620         using alarm().
31621         * tests/test-strcasestr.c (main): Likewise.
31622         * tests/test-strstr.c (main): Likewise.
31623
31624 2008-06-09  Bruno Haible  <bruno@clisp.org>
31625
31626         Work around the Solaris 10 ACE ACLs ABI change.
31627         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
31628         declare if ACL_NO_TRIVIAL is present.
31629         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
31630         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
31631         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
31632         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
31633         define if ACL_NO_TRIVIAL is present.
31634         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
31635         and use the current ABI.
31636         (file_has_acl): Use same #if condition as elsewhere.
31637         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
31638         in use, and use the current ABI.
31639         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
31640         Reported by Jim Meyering.
31641
31642 2008-06-09  Eric Blake  <ebb9@byu.net>
31643
31644         Work around environments that (stupidly) ignore SIGALRM.
31645         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
31646         before using alarm().
31647         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31648         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31649         Reported by Ian Beckwith <ianb@erislabs.net>.
31650
31651         Produce autobuild blurb earlier in log.
31652         * modules/autobuild (configure.ac-early): Move AB_INIT here.
31653
31654 2008-06-09  Jim Meyering  <meyering@redhat.com>
31655         and OndÅ™ej Vašík  <ovasik@redhat.com>
31656
31657         utimens.c: correct kernel bug work-around
31658         OndÅ™ej Vašík found that the invalid return value of 280 indicates
31659         failure, not success, and the kernel bug we're trying to work
31660         around affects not just the utimensat call, but also the fallback
31661         futimens call.
31662         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
31663         not success.
31664         [HAVE_FUTIMENS]: Use the same work-around, here.
31665
31666 2008-06-09  Jim Meyering  <meyering@redhat.com>
31667
31668         add more guards around definition of ACE_-related code
31669         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
31670         ALLOW and ACE_OWNER are also defined.
31671
31672 2008-06-08  Bruno Haible  <bruno@clisp.org>
31673
31674         * lib/acl-internal.h: Add me as co-author.
31675         * lib/file-has-acl.c: Likewise.
31676         * lib/set-mode-acl.c: Likewise.
31677         * lib/copy-acl.c: Likewise.
31678
31679 2008-06-08  Bruno Haible  <bruno@clisp.org>
31680
31681         Add support for AIX ACLs.
31682         * lib/acl-internal.h (acl_nontrivial): New declaration.
31683         * lib/file-has-acl.c (acl_nontrivial): New function.
31684         (file_has_acl): Add implementation using AIX 4 ACL API.
31685         * lib/set-mode-acl.c (qset_acl): Likewise.
31686         * lib/copy-acl.c (qcopy_acl): Likewise.
31687
31688 2008-06-08  Bruno Haible  <bruno@clisp.org>
31689
31690         Add support for HP-UX ACLs.
31691         * lib/acl-internal.h (acl_nontrivial): New declaration.
31692         * lib/file-has-acl.c (acl_nontrivial): New function.
31693         (file_has_acl): Add implementation using HP-UX 11 ACL API.
31694         * lib/set-mode-acl.c (qset_acl): Likewise.
31695         * lib/copy-acl.c (qcopy_acl): Likewise.
31696
31697 2008-06-08  Bruno Haible  <bruno@clisp.org>
31698
31699         Add support for Cygwin ACLs.
31700         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
31701         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
31702         the chmod_or_fchmod call.
31703         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
31704
31705 2008-06-08  Bruno Haible  <bruno@clisp.org>
31706
31707         Fix bug with setuid modes in Solaris 10+ code.
31708         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
31709         succeeded, when the mode contains some special bits.
31710
31711 2008-06-08  Bruno Haible  <bruno@clisp.org>
31712
31713         Add support for Solaris 7..10 ACLs.
31714         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
31715         declarations.
31716         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
31717         functions.
31718         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
31719         * lib/set-mode-acl.c (qset_acl): Likewise.
31720         * lib/copy-acl.c (qcopy_acl): Likewise.
31721
31722 2008-06-08  Bruno Haible  <bruno@clisp.org>
31723
31724         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
31725         declaration.
31726         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
31727         (acl_access_nontrivial): Remove MacOS X case.
31728         (file_has_acl): Use acl_extended_nontrivial.
31729         * lib/copy-acl.c (qcopy_acl): Likewise.
31730
31731 2008-06-08  Bruno Haible  <bruno@clisp.org>
31732
31733         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
31734
31735 2008-06-08  Jim Meyering  <meyering@redhat.com>
31736
31737         * modules/acl (Maintainer): Add Bruno Haible.
31738
31739 2008-06-07  Bruno Haible  <bruno@clisp.org>
31740
31741         Improve support for Tru64 ACLs.
31742         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
31743         ACL on OSF/1.
31744
31745 2008-06-07  Bruno Haible  <bruno@clisp.org>
31746
31747         Add support for MacOS X ACLs.
31748         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
31749         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
31750         * lib/set-mode-acl.c (qset_acl): Likewise.
31751         * lib/copy-acl.c (qcopy_acl): Likewise.
31752
31753 2008-06-07  Bruno Haible  <bruno@clisp.org>
31754
31755         Fix memory leak introduced on 2008-05-22.
31756         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
31757         use.
31758
31759 2008-06-07  Bruno Haible  <bruno@clisp.org>
31760
31761         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
31762         to construct an empty ACL.
31763
31764 2008-06-07  Bruno Haible  <bruno@clisp.org>
31765
31766         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
31767         precisely.
31768         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
31769
31770 2008-06-07  Bruno Haible  <bruno@clisp.org>
31771
31772         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
31773         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
31774
31775 2008-06-07  Bruno Haible  <bruno@clisp.org>
31776
31777         * doc/posix-functions/_setjmp.texi: Explain the use of this function
31778         regardless of POSIX.
31779         * doc/posix-functions/_longjmp.texi: Likewise.
31780         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
31781         SystemV platform in this case.
31782
31783 2008-06-06  Eric Blake  <ebb9@byu.net>
31784
31785         Document abort() bugs.
31786         * doc/posix-functions/abort.texi (abort): Mention anomalies.
31787
31788         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
31789         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
31790         sigsetjmp.
31791         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
31792         siglongjmp, but only as a macro.
31793         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
31794         is obsolete.
31795         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
31796
31797         Tweak documentation to cover cygwin argz bugs.
31798         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
31799         argz bug fix; no code change needed since no cygwin releases
31800         occurred between the last fix and the bug being tested.
31801         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
31802         module and recently fixed cygwin bugs.
31803         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
31804         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
31805         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
31806         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
31807         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
31808         Likewise.
31809         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
31810         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
31811         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
31812         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
31813         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
31814         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
31815         Likewise.
31816
31817         Avoid gcc warning on cygwin.
31818         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
31819         !ACL_NO_TRIVIAL]: Avoid unused variable.
31820
31821 2008-06-05  Eric Blake  <ebb9@byu.net>
31822
31823         Be tolerant of UNKNOWN version in gnulib-tool test dir.
31824         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
31825         git-version-gen fails to come up with a version.
31826         Reported by Simon Josefsson.
31827
31828 2008-06-05  Jim Meyering  <meyering@redhat.com>
31829             Paul Eggert  <eggert@cs.ucla.edu>
31830
31831         utimens.c: work around a probable Linux kernel bug
31832         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
31833         appears to be a kernel bug that causes utimensat to return 280
31834         instead of 0, indicating success.
31835
31836 2008-06-04  Bruno Haible  <bruno@clisp.org>
31837
31838         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
31839         2008-06-01 commit.
31840
31841 2008-06-04  Bruno Haible  <bruno@clisp.org>
31842
31843         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
31844         * lib/file-has-acl.c (acl_access_nontrivial): New function.
31845         (file_has_acl): Use it. Save errno afterwards.
31846         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
31847
31848 2008-06-03  Bruno Haible  <bruno@clisp.org>
31849
31850         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
31851         draft code. Simplify #ifs.
31852         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
31853         Put Solaris code after POSIX-draft code. Fix comments regarding
31854         Solaris 10, HP-UX. Mention Cygwin.
31855         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
31856
31857 2008-06-03  Eric Blake  <ebb9@byu.net>
31858
31859         Provide fallback for older kernels.
31860         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
31861         Provide runtime fallback if kernel lacks support.
31862         Reported by Mike Frysinger.
31863
31864 2008-06-02  Bruno Haible  <bruno@clisp.org>
31865
31866         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
31867         it exists.
31868
31869 2008-06-02  Bruno Haible  <bruno@clisp.org>
31870
31871         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
31872         * lib/copy-acl.c (qcopy_acl): Update comment.
31873
31874 2008-06-02  Bruno Haible  <bruno@clisp.org>
31875
31876         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
31877         like ACL APIs.
31878
31879 2008-06-02  Bruno Haible  <bruno@clisp.org>
31880
31881         * tests/test-file-has-acl.sh: Use different code for Cygwin.
31882         * tests/test-set-mode-acl.sh: Likewise.
31883         * tests/test-copy-acl.sh: Likewise.
31884         * tests/test-copy-file.sh: Likewise.
31885
31886 2008-06-02  Bruno Haible  <bruno@clisp.org>
31887
31888         * tests/test-file-has-acl.sh: Remove unused code.
31889
31890 2008-06-01  Bruno Haible  <bruno@clisp.org>
31891
31892         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
31893         (copy_acl): Just a wrapper around qcopy_acl that emits the error
31894         messages.
31895         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
31896
31897 2008-06-01  Bruno Haible  <bruno@clisp.org>
31898
31899         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
31900         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
31901         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
31902         APIs.
31903         * modules/acl-tests (configure.ac): Remove tests now contained in
31904         m4/acl.m4.
31905
31906 2008-06-02  Jim Meyering  <meyering@redhat.com>
31907
31908         announce-gen: use a better key-server host name
31909         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
31910         it may be more consistently reliable.  Suggested by Werner Koch
31911         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
31912
31913 2008-06-01  Bruno Haible  <bruno@clisp.org>
31914
31915         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
31916         Reported by Voroskoi Andras <voroskoi@gmail.com>.
31917
31918 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
31919
31920         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
31921
31922 2008-06-01  Bruno Haible  <bruno@clisp.org>
31923
31924         New ACL tests.
31925         * tests/test-file-has-acl.sh: New file.
31926         * tests/test-file-has-acl.c: New file.
31927         * tests/test-set-mode-acl.sh: New file.
31928         * tests/test-set-mode-acl.c: New file.
31929         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
31930         * tests/test-copy-acl.c: New file.
31931         * modules/acl-tests: New file, based on modules/copy-file-tests.
31932         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
31933         (Depends-on): Add acl-tests.
31934         (configure.ac): Remove checks.
31935         (Makefile.am): Don't create test-sameacls program here any more.
31936
31937 2008-06-01  Bruno Haible  <bruno@clisp.org>
31938
31939         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
31940         * tests/test-sameacls.c: Include progname.h.
31941         (main): Invoke set_program_name. Portability fixes for MacOS X,
31942         Solaris, HP-UX.
31943
31944 2008-06-01  Bruno Haible  <bruno@clisp.org>
31945
31946         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
31947         function.
31948         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
31949
31950 2008-06-01  Bruno Haible  <bruno@clisp.org>
31951
31952         * modules/rpmatch (Depends-on): Add strdup.
31953
31954 2008-06-01  Bruno Haible  <bruno@clisp.org>
31955
31956         * lib/pipe.c: Include unistd-safer.h.
31957         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
31958         * modules/pipe (Depends-on): Add unistd-safer.
31959
31960 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31961
31962         * modules/autobuild (configure.ac): Call AB_INIT.
31963
31964 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31965
31966         * tests/test-getaddrinfo.c: Don't print debug messages by default.
31967         Suggested by Bruno Haible <bruno@clisp.org>.
31968
31969 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31970
31971         * tests/test-base64.c: Cast size_t to unsigned long when invoking
31972         printf.  Use %lu instead of %d.  Reported by Bruno Haible
31973         <bruno@clisp.org>.
31974
31975 2008-05-29  Eric Blake  <ebb9@byu.net>
31976
31977         Prefer new POSIX 200x interfaces over futimesat.
31978         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
31979         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
31980         when available.
31981         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
31982
31983 2008-05-28  Bruno Haible  <bruno@clisp.org>
31984
31985         * modules/stpcpy (License): Change to LGPLv2+.
31986         Requested by David Lutterkort <dlutter@redhat.com>.
31987
31988 2008-05-27  Bruno Haible  <bruno@clisp.org>
31989
31990         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
31991         current mingw.
31992         Reported by Jose E. Marchesi <jemarch@gnu.org>.
31993
31994 2008-05-27  Bruno Haible  <bruno@clisp.org>
31995
31996         * modules/iconv_open (Link): New section, from module 'iconv'.
31997         * modules/striconv (Link): Likewise.
31998         * modules/striconveh (Link): Likewise.
31999         * modules/xstriconv (Link): Likewise.
32000         * modules/unicodeio (Link): Likewise.
32001         * modules/propername (Link): Likewise.
32002         Reported by Jim Meyering.
32003
32004 2008-05-26  Jim Meyering  <meyering@redhat.com>
32005
32006         sha256: do not artificially restrict buffer length to be < 2^32
32007         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
32008         uint32_t to size_t.
32009         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
32010         to match.
32011
32012         avoid unaligned access errors, e.g., on sparc
32013         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
32014         direct access through a possibly-unaligned uint64* pointer.
32015         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
32016         direct access through a possibly-unaligned uint32* pointer.
32017         Prompted by this patch from Tom "spot" Callaway:
32018         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
32019
32020         sha512.c: fix typo in comment
32021         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
32022
32023 2008-05-25  Bruno Haible  <bruno@clisp.org>
32024
32025         * lib/set-mode-acl.c: Renamed from lib/acl.c.
32026         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
32027         (Makefile.am): Update lib_SOURCES.
32028
32029 2008-05-25  Bruno Haible  <bruno@clisp.org>
32030
32031         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
32032
32033 2008-05-25  Jim Meyering  <meyering@redhat.com>
32034
32035         useless-if-before-free: freed expr may have white-space differences
32036         * build-aux/useless-if-before-free: Recognize cases in which the
32037         freed expression differs from the tested one in embedded white
32038         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
32039         $1 was used, so we can't make any regexp shy.  Improved tests now
32040         detect this.
32041
32042         useless-if-before-free: accept white space in the expression.
32043         * build-aux/useless-if-before-free: For now, any white space
32044         in the expression must be identical in the free argument.
32045
32046         useless-if-before-free: efficiency tweak
32047         * build-aux/useless-if-before-free: Make the expression-matching
32048         regexp "shy".
32049         Make the *outer* regexp shy, not the expr-matching one.
32050
32051         update code-in-comment to accept cast of free arg
32052         * build-aux/useless-if-before-free: Update regexp.
32053
32054 2008-05-25  Bruno Haible  <bruno@clisp.org>
32055
32056         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
32057         * modules/copy-file-tests (Files, Makefile.am): Update.
32058         * tests/test-copy-file.c (func_test_copy): Update.
32059
32060 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
32061
32062         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
32063
32064 2008-05-23  Bruno Haible  <bruno@clisp.org>
32065
32066         Improve support for ACLs on OSF/1.
32067         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
32068         Remove fallback for unknown flavors of ACLs.
32069
32070 2008-05-22  Bruno Haible  <bruno@clisp.org>
32071
32072         Add support for ACLs on OSF/1.
32073         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
32074         replacements.
32075         (acl_free_text): New macro fallback.
32076         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
32077         acl_free.
32078         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
32079         acl_free_text function. Require AC_C_INLINE.
32080
32081 2008-05-22  Bruno Haible  <bruno@clisp.org>
32082
32083         Make copy_acl work on MacOS X 10.5.
32084         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
32085         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
32086         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
32087         If MODE_INSIDE_ACL, don't assume that every system has the same text
32088         representation for ACLs as FreeBSD.
32089         * lib/copy-acl.c (copy_acl): Add support for platforms with
32090         !MODE_INSIDE_ACL.
32091         * lib/file-has-acl.c (file_has_acl): Likewise.
32092         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
32093         FreeBSD, MacOS X, or IRIX, respectively.
32094
32095 2008-05-22  Bruno Haible  <bruno@clisp.org>
32096
32097         * lib/acl.h: Don't include <sys/acl.h>.
32098         (GETACLCNT): Move fallback to lib/acl-internal.h.
32099         * lib/acl-internal.h: Include <sys/acl.h> here.
32100         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
32101
32102 2008-05-22  Bruno Haible  <bruno@clisp.org>
32103
32104         Split off copy_acl function to separate file.
32105         * lib/copy-acl.c: New file, extracted from lib/acl.c.
32106         * lib/acl.c (copy_acl): Moved function to separate file.
32107         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
32108         * modules/acl (Files): Add lib/copy-acl.c.
32109         (Makefiles.am): Augment lib_SOURCES.
32110
32111 2008-05-22  Bruno Haible  <bruno@clisp.org>
32112
32113         * modules/copy-file-tests: New file.
32114         * tests/test-copy-file.sh: New file.
32115         * tests/test-copy-file.c: New file.
32116         * tests/test-copy-file-sameacls.c: New file.
32117
32118 2008-05-22  Eric Blake  <ebb9@byu.net>
32119
32120         Avoid gcc warning.
32121         * tests/test-memcmp.c (main): Pass NULL indirectly.
32122
32123 2008-05-21  Bruno Haible  <bruno@clisp.org>
32124
32125         Add reference doc about ACLs.
32126         * doc/acl-resources.txt: New file.
32127         * doc/acl-cygwin.txt: New file.
32128
32129 2008-05-21  Bruno Haible  <bruno@clisp.org>
32130
32131         Avoid one more warning from gcc.
32132         * lib/vasnprintf.c (IF_LINT): Update comments.
32133         (VASNPRINTF): Use it also for the 'prefix' array initializer.
32134
32135 2008-05-21  Jim Meyering  <meyering@redhat.com>
32136
32137         avoid a warning from gcc
32138         * lib/vasnprintf.c (IF_LINT): Define.
32139         (scale10_round_decimal_long_double):
32140         Use it to avoid a "may be used uninitialized" warning.
32141         (scale10_round_decimal_double): Likewise.
32142
32143 2008-05-21  Simon Josefsson  <simon@josefsson.org>
32144
32145         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
32146         declared.
32147
32148 2008-05-20  Bruno Haible  <bruno@clisp.org>
32149
32150         * tests/test-memcmp.c (main): Test also the sign of the result. Test
32151         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
32152
32153 2008-05-20  Simon Josefsson  <simon@josefsson.org>
32154
32155         * modules/memcmp-tests: New file.
32156         * tests/test-memcmp.c: New file.
32157
32158 2008-05-19  Bruno Haible  <bruno@clisp.org>
32159
32160         * modules/propername (Notice, configure.ac): Put quoted "..." into
32161         --keyword option.
32162         * lib/propername.h: Update comments accordingly.
32163         Reported by Eric Blake.
32164
32165 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
32166
32167         * modules/getpass-gnu (Depends-on): Add fseeko.
32168
32169 2008-05-19  Simon Josefsson  <simon@josefsson.org>
32170
32171         * modules/base64-tests: New file.
32172
32173 2008-05-19  Bo Borgerson <gigabo@gmail.com>
32174
32175         * lib/base64.c (base64_decode_ctx): If a decode context structure
32176         was passed in use it to ignore newlines.  If a context structure
32177         was _not_ passed in, continue to treat newlines as garbage (this
32178         is the historical behavior).  Formerly base64_decode.
32179         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
32180         takes a decode context structure.
32181         * lib/base64.h (base64_decode): Macro for four-argument calls.
32182         (base64_decode_alloc): Likewise.
32183         * lib/base64.c (base64_decode_ctx): If a decode context structure
32184         was passed in use it to ignore newlines.  If a context structure
32185         was _not_ passed in, continue to treat newlines as garbage (this
32186         is the historical behavior).  Formerly base64_decode.
32187         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
32188         takes a decode context structure.
32189         * lib/base64.h (base64_decode): Macro for four-argument calls.
32190         (base64_decode_alloc): Likewise.
32191
32192 2008-05-19  Jim Meyering  <meyering@redhat.com>
32193
32194         avoid a warning from gcc
32195         * lib/trim.c (IF_LINT): Define.
32196         (trim2): Use it to avoid a "may be used uninitialized" warning.
32197
32198         Fix doc typo.
32199         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
32200
32201 2008-05-19  Bruno Haible  <bruno@clisp.org>
32202
32203         * doc/glibc-functions/getpass.texi: Document limits of other
32204         implementations.
32205
32206 2008-05-19  Simon Josefsson  <simon@josefsson.org>
32207             Bruno Haible <bruno@clisp.org>
32208
32209         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
32210
32211 2008-05-18  Bruno Haible  <bruno@clisp.org>
32212
32213         * modules/propername: New file, from GNU gettext.
32214         * lib/propername.h: New file, from GNU gettext.
32215         * lib/propername.c: New file, from GNU gettext.
32216         * MODULES.html.sh (Internationalization functions): Add propername.
32217
32218 2008-05-16  Jim Meyering  <meyering@redhat.com>
32219             Bruno Haible  <bruno@clisp.org>
32220
32221         Avoid some warnings from "gcc -Wshadow".
32222         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
32223
32224 2008-05-15  Eric Blake  <ebb9@byu.net>
32225
32226         Extend previous patch to cygwin 1.7.0.
32227         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
32228         fast implementation in cygwin >= 1.7.0.
32229         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32230         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32231
32232 2008-05-15  Bruno Haible  <bruno@clisp.org>
32233
32234         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
32235         implementation in glibc >= 2.9.
32236         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32237         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32238
32239 2008-05-15  Bruno Haible  <bruno@clisp.org>
32240
32241         * MODULES.html.sh (Internationalization functions): Remove linebreak.
32242         (Unicode string functions): Add unilbrk/*.
32243         Reported by Karl Berry.
32244
32245 2008-05-15  Eric Blake  <ebb9@byu.net>
32246
32247         Fix violation of <stdbool.h> replacement in regex.
32248         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
32249         * lib/regexec.c (re_search_internal): Likewise.
32250         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
32251
32252 2008-05-15  Jim Meyering  <meyering@redhat.com>
32253
32254         avoid distracting test output when git or cvs is not found
32255         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
32256         * tests/test-vc-list-files-git.sh: Likewise.
32257
32258 2008-05-15  Eric Blake  <ebb9@byu.net>
32259
32260         Glibc finally accepted the memmem speedup code, bugzilla #5514.
32261         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
32262         glibc version.
32263         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32264         * doc/posix-functions/strstr.texi (strstr): Likewise.
32265         * lib/str-two-way.h (MAX): Sychronize with glibc.
32266
32267 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
32268
32269         * lib/regcomp.c (optimize_utf8): Add a note on why we test
32270         opr.ctx_type.
32271         (calc_first): Initialize constraint field.
32272         (duplicate_node_closure): Use it instead of special casing ANCHORS.
32273         Fix grammar.
32274         (duplicate_node): Merge constraint field for all node types.
32275         (calc_eclosure_iter): Look at constraint field for all node types.
32276         * lib/regex_internal.c (create_cd_newstate): Don't look at
32277         opr.ctx_type.
32278
32279 2008-05-14  Bruno Haible  <bruno@clisp.org>
32280
32281         Help GCC to do better code generation.
32282         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
32283         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
32284         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
32285         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
32286         Declare with attribute 'malloc' if supported.
32287
32288 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
32289
32290         use "echo STR|wc -c" rather than unportable "expr length STR"
32291         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
32292         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
32293
32294 2008-05-14  Jim Meyering  <meyering@redhat.com>
32295
32296         use dd ibs=$n count=1 ... rather than less-portable head -c$n
32297         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
32298         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
32299         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
32300         via Collin Lasse.
32301
32302 2008-05-14  Eric Blake  <ebb9@byu.net>
32303
32304         Avoid quadratic growth in gl_LIBSOURCES.
32305         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
32306         Suggested by Bruno Haible.
32307
32308         Test xmemdup0.
32309         * modules/xmemdup0-tests: New file.
32310         * tests/test-xmemdup0.c: Likewise.
32311
32312 2008-05-13  Eric Blake  <ebb9@byu.net>
32313
32314         Split xmemdup0 into its own module.
32315         * modules/xmemdup0: New file.
32316         * lib/xmemdup0.h: Likewise.
32317         * lib/xmemdup0.c: Likewise.
32318         * MODULES.html.sh (Memory management functions): Add xmemdup0.
32319         * lib/xalloc.h (xmemdup0): Remove.
32320         * lib/xmalloc.c (xmemdup0): Likewise.
32321
32322 2008-05-13  Eric Blake  <ebb9@byu.net>
32323             Bruno Haible  <bruno@clisp.org>
32324
32325         Reduce number of forks required during autoconf.
32326         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
32327         and gl_LIBSOURCES_DIR.
32328         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
32329         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
32330         m4_syscmd per file.
32331         <m4_foreach_w>: Move...
32332         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
32333
32334 2008-05-13  Eric Blake  <ebb9@byu.net>
32335
32336         * gnulib-tool: Fix various comment typos.
32337
32338 2008-05-12  Bruno Haible  <bruno@clisp.org>
32339
32340         Tailor the linebreaking algorithm.
32341         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
32342
32343 2008-05-12  Bruno Haible  <bruno@clisp.org>
32344
32345         Update to Unicode 5.0.0.
32346         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
32347         LBP_JV, LBP_JT. Redistribute values.
32348         (unilbrk_table): Change size.
32349         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
32350         Unicode TR#14 rev. 22.
32351         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
32352         LBP_JV, LBP_JT. Redistribute values.
32353         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
32354         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
32355         Update.
32356         * lib/unilbrk/lbrkprop1.h: Regenerated.
32357         * lib/unilbrk/lbrkprop2.h: Regenerated.
32358         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
32359         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
32360         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
32361         Likewise.
32362         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
32363         Likewise.
32364         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
32365         result.
32366         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
32367         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
32368         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
32369         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
32370         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
32371         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
32372
32373 2008-05-11  Bruno Haible  <bruno@clisp.org>
32374
32375         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
32376
32377 2008-05-11  Bruno Haible  <bruno@clisp.org>
32378
32379         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
32380         * modules/unilbrk/gen-lbrk: New file.
32381
32382 2008-05-11  Bruno Haible  <bruno@clisp.org>
32383
32384         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
32385         * m4/sha512.m4 (gl_SHA512): Likewise.
32386
32387 2008-05-11  Jim Meyering  <meyering@redhat.com>
32388
32389         New modules: crypto/sha256, crypto/sha512 (from coreutils)
32390         * modules/crypto/sha256: New file.
32391         * modules/crypto/sha512: Likewise.
32392         * lib/sha256.c: Likewise.
32393         * lib/sha256.h: Likewise.
32394         * lib/sha512.c: Likewise.
32395         * lib/sha512.h: Likewise.
32396         * lib/u64.h: Likewise.
32397         * m4/sha256.m4: Likewise.
32398         * m4/sha512.m4: Likewise.
32399         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
32400
32401 2008-05-10  Bruno Haible  <bruno@clisp.org>
32402
32403         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
32404         (Input/Output <stdio.h>): Add xprintf.
32405         (Signal handling <signal.h>): Add strsignal.
32406         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
32407         (Core language properties): Add func.
32408         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
32409         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
32410         strings.
32411         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
32412         (Input/output): New section.
32413         (File system functions): Add openat-die, stat-macros.
32414         (Networking functions): Add sockets.
32415         (Unicode string functions): Add unictype/*.
32416         (Support for building libraries and executables): Add gperf.
32417         (Support for building documentation): Add agpl-3.0.
32418         (Misc): Add nocrash.
32419
32420 2008-05-10  Bruno Haible  <bruno@clisp.org>
32421
32422         * modules/unictype/gen-ctype: New file.
32423
32424 2008-05-10  Jim Meyering  <meyering@redhat.com>
32425
32426         Make chdir-safer.c more efficient on a system with no symlinks.
32427         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
32428         also if ELOOP is zero.  Suggested by Bruno Haible.
32429
32430         Make chdir-safer.c slightly safer.
32431         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
32432         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
32433
32434         Avoid compile failure on systems without ELOOP (like mingw).
32435         * lib/chdir-safer.c (ELOOP): Define if not already defined.
32436         Reported by Bruno Haible.
32437
32438 2008-05-10  Bruno Haible  <bruno@clisp.org>
32439
32440         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
32441         (is_utf8_encoding): Use a case-insensitive comparison.
32442         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
32443         streq.
32444
32445 2008-05-10  Bruno Haible  <bruno@clisp.org>
32446
32447         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
32448         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
32449         * lib/unilbrk/ulc-common.h (iconv_string_length,
32450         iconv_string_keeping_offsets): Remove declarations.
32451         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
32452         Don't include <iconv.h>, streq.h, xsize.h.
32453         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
32454         conversion.
32455         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
32456         <iconv.h>, streq.h, xsize.h.
32457         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
32458         conversion.
32459         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
32460         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
32461         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
32462         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
32463
32464 2008-05-10  Bruno Haible  <bruno@clisp.org>
32465
32466         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
32467         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
32468
32469         * modules/unilbrk/u32-width-linebreaks-tests: New file.
32470         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
32471
32472         * modules/unilbrk/u16-width-linebreaks-tests: New file.
32473         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
32474
32475         * modules/unilbrk/u8-width-linebreaks-tests: New file.
32476         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
32477
32478         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
32479         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
32480
32481         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
32482         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
32483
32484         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
32485         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
32486
32487         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
32488         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
32489
32490 2008-05-10  Bruno Haible  <bruno@clisp.org>
32491
32492         Split up 'linebreak' module.
32493         * lib/unilbrk.h: New file, based on lib/linebreak.h.
32494         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
32495         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
32496         modifications.
32497         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
32498         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
32499         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
32500         lib/linebreak.c.
32501         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
32502         lib/linebreak.c.
32503         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
32504         lib/linebreak.c.
32505         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
32506         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
32507         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
32508         lib/linebreak.c.
32509         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
32510         lib/linebreak.c.
32511         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
32512         lib/linebreak.c.
32513         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
32514         lib/linebreak.c.
32515         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
32516         lib/linebreak.c.
32517         * modules/unilbrk/base: New file.
32518         * modules/unilbrk/tables: New file.
32519         * modules/unilbrk/u8-possible-linebreaks: New file.
32520         * modules/unilbrk/u16-possible-linebreaks: New file.
32521         * modules/unilbrk/u32-possible-linebreaks: New file.
32522         * modules/unilbrk/ulc-common: New file.
32523         * modules/unilbrk/ulc-possible-linebreaks: New file.
32524         * modules/unilbrk/u8-width-linebreaks: New file.
32525         * modules/unilbrk/u16-width-linebreaks: New file.
32526         * modules/unilbrk/u32-width-linebreaks: New file.
32527         * modules/unilbrk/ulc-width-linebreaks: New file.
32528         * lib/linebreak.h: Remove file.
32529         * lib/linebreak.c: Remove file.
32530         * m4/linebreak.m4: Remove file.
32531         * modules/linebreak: Remove file.
32532         * NEWS: Mention the changes.
32533
32534 2008-05-09  Eric Blake  <ebb9@byu.net>
32535
32536         Add xmemdup0.
32537         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
32538         implementation.
32539         * lib/xmalloc.c (xmemdup0): New C implementation.
32540
32541 2008-05-08  Bruno Haible  <bruno@clisp.org>
32542
32543         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
32544
32545 2008-05-07  Eric Blake  <ebb9@byu.net>
32546
32547         Support cross-compilation of <wctype.h>.
32548         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
32549         AC_CACHE_CHECK.
32550
32551 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
32552
32553         * build-aux/vc-list-files: Add support for bzr.
32554
32555 2008-05-03  Jim Meyering  <meyering@redhat.com>
32556
32557         avoid failed assertion with tight malloc
32558         * tests/test-getndelim2.c: Correct an off-by-one assertion.
32559
32560 2008-05-03  Simon Josefsson  <simon@josefsson.org>
32561
32562         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
32563         are needed from arpa/inet.h.
32564         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
32565         Reported by Bruno Haible.
32566
32567 2008-05-02  Jim Meyering  <meyering@redhat.com>
32568
32569         avoid compilation error on FreeBSD 6
32570         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
32571
32572 2008-05-01  Jim Meyering  <meyering@redhat.com>
32573
32574         useless-if-before-free: correct --help's exit status description
32575         * build-aux/useless-if-before-free (usage): Like grep, exit 0
32576         for one or more matches, etc.  Reported by Bruno Haible.
32577
32578         vc-list-files: make the stand-alone gnulib test work
32579         * modules/vc-list-files-tests (configure.ac):
32580         Define and AC_SUBST abs_aux_dir.
32581         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
32582         $(abs_top_srcdir) to each script and having each of them
32583         duplicate the work of setting PATH, set PATH here, using
32584         the new variable, abs_aux_dir instead.
32585         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
32586         * tests/test-vc-list-files-git.sh: Likewise.
32587         Reported by Bruno Haible.
32588
32589 2008-05-01  Bruno Haible  <bruno@clisp.org>
32590
32591         * lib/getndelim2.c (getndelim2): Fix newsize computation during
32592         reallocation. Rename 'done' to 'found_delimiter'.
32593
32594 2008-05-01  Jim Meyering  <meyering@redhat.com>
32595
32596         vc-list-files: accommodate /bin/sh like the one from Solaris 10
32597         * build-aux/vc-list-files: Use `...`, not $(...).
32598
32599 2008-04-30  Jim Meyering  <meyering@redhat.com>
32600
32601         add tests for vc-list-files
32602         * modules/vc-list-files-tests: New module.
32603         * tests/test-vc-list-files-cvs.sh: New file.
32604         * tests/test-vc-list-files-git.sh: New file.
32605
32606         avoid a warning from gcc
32607         * lib/getndelim2.c (IF_LINT): Define.
32608         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
32609
32610         vc-list-files: work properly with build-aux/cvsu, too
32611         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
32612         to all cvs-based clauses.
32613
32614         vc-list-files: work properly in the CVS+awk case, too
32615         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
32616
32617         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
32618         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
32619         take more than one file argument, so .  Add quotes, just in case $dir
32620         ever contains a shell meta-character.  Prompted by Soren Hansen in
32621         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
32622
32623 2008-04-29  Eric Blake  <ebb9@byu.net>
32624
32625         Optimize getndelim2 to use block operations when possible.
32626         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
32627         freadseek, and memchr2.
32628         * lib/getndelim2.c (getndelim2): Use them for block reads.
32629
32630 2008-04-29  Bruno Haible  <bruno@clisp.org>
32631
32632         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
32633         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32634         * modules/inet_ntop (Depends-on): Add extensions.
32635         * modules/inet_pton (Depends-on): Likewise.
32636         Reported by Simon Josefsson.
32637
32638 2008-04-29  Jim Meyering  <meyering@redhat.com>
32639
32640         When the is more than one match in a block, match all of them.
32641         * build-aux/useless-if-before-free: Iterate through each block
32642         until there are no more matches.
32643
32644         Fix broken useless-if-before-free script.
32645         * build-aux/useless-if-before-free: Fix typo: missing "?" after
32646         the expression to match cast of argument to free-like function.
32647
32648 2008-04-29  Eric Blake  <ebb9@byu.net>
32649
32650         Use new header.
32651         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
32652
32653 2008-04-29  Jim Meyering  <meyering@redhat.com>
32654
32655         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
32656         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
32657         by gnulib to exist and to declare e.g., inet_ntop.
32658         Don't include "inet_ntop.h", now removed.
32659
32660         * m4/arpa_inet_h.m4: Remove trailing blanks.
32661
32662 2008-04-29  Eric Blake  <ebb9@byu.net>
32663
32664         Silence valgrind on safe reads beyond potential array bounds.
32665         * lib/rawmemchr.valgrind: New file.
32666         * lib/strchrnul.valgrind: Likewise.
32667         * modules/rawmemchr (Files): Distribute new file.
32668         * modules/strchrnul (Files): Likewise.
32669         Suggested by Bruno Haible.
32670
32671 2008-04-29  Bruno Haible  <bruno@clisp.org>
32672
32673         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
32674         (inet_ntop, inet_pton): Change portability warning's wording.
32675         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
32676         Invoke gl_CHECK_NEXT_HEADERS.
32677         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
32678         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
32679         set ARPA_INET_H.
32680         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32681         * modules/arpa_inet (Description): No longer only for systems that
32682         lack it.
32683         (Depends-on): Add include_next.
32684         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
32685         HAVE_ARPA_INET_H.
32686
32687 2008-04-29  Jim Meyering  <meyering@redhat.com>
32688
32689         * modules/mkdir (License): Re-license as LGPLv2+.
32690
32691 2008-04-29  Bruno Haible  <bruno@clisp.org>
32692
32693         * modules/rawmemchr (Maintainer): Set to Eric.
32694         * modules/strchrnul (Maintainer): Likewise.
32695
32696 2008-04-29  Simon Josefsson  <simon@josefsson.org>
32697
32698         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
32699         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
32700
32701         * modules/arpa_inet (arpa/inet.h): Use them.
32702
32703 2008-04-28  Eric Blake  <ebb9@byu.net>
32704
32705         Test getndelim2.
32706         * modules/getndelim2-tests: New file.
32707         * tests/test-getndelim2.c: Likewise.
32708         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
32709         stream.
32710         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
32711
32712         * MODULES.html.sh: Document new module.
32713
32714 2008-04-20  Bruno Haible  <bruno@clisp.org>
32715
32716         * lib/c-stack.c (die): Use raise.
32717         * modules/c-stack (Depends-on): Add raise.
32718
32719 2008-04-28  Bruno Haible  <bruno@clisp.org>
32720
32721         Expect rpmatch to be declared.
32722         * lib/yesno.c (rpmatch): Remove declaration.
32723
32724         Declare rpmatch.
32725         * lib/stdlib.in.h (rpmatch): New declaration.
32726         * lib/rpmatch.c: Include <stdlib.h> first.
32727         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
32728         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
32729         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
32730         HAVE_RPMATCH.
32731         * modules/rpmatch (Depends-on): Add stdlib, extensions.
32732         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32733         (Include): Set to <stdlib.h>.
32734         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
32735         HAVE_RPMATCH.
32736         * NEWS: Document the change.
32737
32738 2008-04-28  Bruno Haible  <bruno@clisp.org>
32739
32740         Change rpmatch to use nl_langinfo when appropriate.
32741         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
32742         (N_): New macro.
32743         (localized_pattern): New function/macro.
32744         (try): Remove match, nomatch arguments. Copy the pattern into safe
32745         memory before caching it.
32746         (rpmatch): Use localized_pattern. Add translator comments.
32747         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
32748         Suggested by Eric Blake.
32749         * modules/rpmatch (Depends-on): Add stdbool.
32750
32751 2008-04-28  Eric Blake  <ebb9@byu.net>
32752
32753         Add rawmemchr module, matching glibc.
32754         * modules/string (Makefile.am): New indicator.
32755         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
32756         * lib/string.in.h (rawmemchr): Declare when appropriate.
32757         * modules/rawmemchr: New file.
32758         * m4/rawmemchr.m4: Likewise.
32759         * lib/rawmemchr.c: Likewise.
32760         * modules/rawmemchr-tests: Likewise.
32761         * tests/test-rawmemchr.c: Likewise.
32762         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
32763         module.
32764         * modules/strchrnul (Depends-on): Add rawmemchr.
32765         * lib/strchrnul.c (strchrnul): Optimize a corner case.
32766
32767         Whitespace cleanup.
32768         * tests/test-strchrnul.c: Reindent.
32769         * lib/strchrnul.c: Likewise.
32770
32771         Optimize and test strchrnul.
32772         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
32773         * modules/strchrnul-tests: New file.
32774         * tests/test-strchrnul.c: Likewise.
32775
32776         Remove intprops dependency.
32777         * modules/memchr (Depends-on): Remove intprops.
32778         * modules/memrchr (Depends-on): Likewise.
32779         * modules/memchr2 (Depends-on): Likewise.
32780         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
32781         * lib/memrchr.c (__memrchr): Likewise.
32782         * lib/memrchr2.c (memchr2): Likewise.
32783         Reported by Simon Josefsson.
32784
32785 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32786
32787         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
32788         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32789
32790 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32791
32792         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
32793
32794         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
32795
32796         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
32797
32798         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
32799         declarations.
32800         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
32801
32802         * m4/inet_pton.m4: Don't check for header files.
32803
32804         * m4/inet_ntop.m4: Don't check for header files.
32805
32806 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32807
32808         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
32809         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
32810         trigger for cygwin).
32811         Reported by Bruno Haible  <bruno@clisp.org>.
32812
32813 2008-04-28  Bruno Haible  <bruno@clisp.org>
32814
32815         * doc/posix-functions/strdup.texi: Mention mingw problem.
32816
32817 2008-04-27  Bruno Haible  <bruno@clisp.org>
32818
32819         * modules/stat-time-tests (Depends-on): Add sleep.
32820         * tests/test-stat-time.c (force_unlink): New function.
32821         (cleanup): Use it.
32822         (test_mtime): Remove the ctime related tests.
32823         (test_ctime): New function, containing the ctime related tests.
32824         (main): Call test_ctime, except on native Windows platforms.
32825
32826 2008-04-27  Bruno Haible  <bruno@clisp.org>
32827
32828         * lib/rpmatch.c (rpmatch): Add some comments.
32829         Reported by James Youngman <jay@gnu.org>.
32830
32831 2008-04-27  Bruno Haible  <bruno@clisp.org>
32832
32833         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
32834         quiet NaNs.
32835
32836 2008-04-27  Bruno Haible  <bruno@clisp.org>
32837
32838         Make test-yesno.sh work on mingw.
32839         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
32840         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
32841         (main): Set stdin to binary mode.
32842         * modules/yesno-tests (Depends-on): Add binary-io.
32843
32844 2008-04-27  Bruno Haible  <bruno@clisp.org>
32845
32846         Fix 'isfinite' on x86, x86_64, ia64 platforms.
32847         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
32848         argument that lie outside the IEEE 854 domain.
32849         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
32850         (gl_ISFINITE): Use it.
32851         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
32852
32853 2008-04-27  Bruno Haible  <bruno@clisp.org>
32854
32855         Allow local renaming in config.h.
32856         * lib/memrchr.c (memrchr): Don't undefine outside libc.
32857
32858 2008-04-27  Bruno Haible  <bruno@clisp.org>
32859
32860         * lib/memchr.c (__memchr): Change type of 'i'.
32861         * lib/memchr2.c (memchr2): Likewise.
32862
32863 2008-04-26  Eric Blake  <ebb9@byu.net>
32864         and Bruno Haible  <bruno@clisp.org>
32865
32866         Optimize and test memrchr.
32867         * modules/memrchr (Depends-on): Add intprops.
32868         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
32869         * modules/memrchr-tests: New file.
32870         * tests/test-memrchr.c: New file.
32871
32872 2008-04-26  Bruno Haible  <bruno@clisp.org>
32873
32874         Add tentative support for DragonFly BSD.
32875         * lib/stdio-impl.h: Add macros for DragonFly BSD.
32876         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
32877         fp.
32878         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
32879         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
32880         * lib/fpurge.c (fpurge): Likewise.
32881         * lib/freadable.c (freaadable): Likewise.
32882         * lib/freadahead.c (freadahead): Likewise.
32883         * lib/freading.c (freading): Likewise.
32884         * lib/freadptr.c (freadptr): Likewise.
32885         * lib/freadseek.c (freadptrinc): Likewise.
32886         * lib/fseeko.c (fseeko): Likewise.
32887         * lib/fseterr.c (fseterr): Likewise.
32888         * lib/fwritable.c (fwritable): Likewise.
32889         * lib/fwriting.c (fwriting): Likewise.
32890
32891 2008-04-26  Bruno Haible  <bruno@clisp.org>
32892
32893         * lib/stdio-impl.h: New file.
32894         * lib/fbufmode.c: Include stdio-impl.h.
32895         (fbufmode): Use fp_, remove redundant #defines.
32896         * lib/fflush.c: Include stdio-impl.h.
32897         (clear_ungetc_buffer): Remove redundant #defines.
32898         * lib/fpurge.c: Include stdio-impl.h.
32899         (fpurge): Remove redundant #defines.
32900         * lib/freadable.c: Include stdio-impl.h.
32901         (freadable): Remove redundant #defines.
32902         * lib/freadahead.c: Include stdio-impl.h.
32903         (freadahead): Remove redundant #defines.
32904         * lib/freading.c: Include stdio-impl.h.
32905         (freading): Remove redundant #defines.
32906         * lib/freadptr.c: Include stdio-impl.h.
32907         (freadptr): Remove redundant #defines.
32908         * lib/freadseek.c: Include stdio-impl.h.
32909         (freadptrinc): Remove redundant #defines.
32910         * lib/fseeko.c: Include stdio-impl.h.
32911         (rpl_fseeko): Remove redundant #defines.
32912         * lib/fseterr.c: Include stdio-impl.h.
32913         (fseterr): Remove redundant #defines.
32914         * lib/fwritable.c: Include stdio-impl.h.
32915         (fwritable: Remove redundant #defines.
32916         * lib/fwriting.c: Include stdio-impl.h.
32917         (fwriting): Remove redundant #defines.
32918         * modules/fbufmode (Files): Add lib/stdio-impl.h.
32919         * modules/fflush (Files): Likewise.
32920         * modules/fpurge (Files): Likewise.
32921         * modules/freadable (Files): Likewise.
32922         * modules/freadahead (Files): Likewise.
32923         * modules/freading (Files): Likewise.
32924         * modules/freadptr (Files): Likewise.
32925         * modules/freadseek (Files): Likewise.
32926         * modules/fseeko (Files): Likewise.
32927         * modules/fseterr (Files): Likewise.
32928         * modules/fwritable (Files): Likewise.
32929         * modules/fwriting (Files): Likewise.
32930
32931 2008-04-26  Bruno Haible  <bruno@clisp.org>
32932
32933         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
32934         restore_seek_optimization, update_fpos_cache): New functions, extracted
32935         from rpl_fflush.
32936         (rpl_fflush): Use them.
32937         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
32938         (gl_REPLACE_FFLUSH): Use it.
32939
32940 2008-04-26  Bruno Haible  <bruno@clisp.org>
32941
32942         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
32943         on Solaris.
32944         * tests/test-xstrtoimax.sh: Likewise.
32945         * tests/test-xstrtoumax.sh: Likewise.
32946         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32947
32948 2008-04-26  Bruno Haible  <bruno@clisp.org>
32949
32950         * modules/memchr-tests: New file.
32951         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
32952
32953 2008-04-26  Eric Blake  <ebb9@byu.net>
32954             Bruno Haible  <bruno@clisp.org>
32955
32956         * lib/memchr.c: Include intprops.h.
32957         (__memchr): Optimize parallel detection of matching bytes. Rename local
32958         variables. Add explanatory comments.
32959
32960 2008-04-26  Bruno Haible  <bruno@clisp.org>
32961
32962         Fix module 'memchr', broken since 2000-10-28.
32963         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
32964
32965 2008-04-26  Bruno Haible  <bruno@clisp.org>
32966
32967         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
32968         comments.
32969
32970 2008-04-25  Eric Blake  <ebb9@byu.net>
32971
32972         Use native fstatat on cygwin 1.7.0.
32973         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
32974         first.
32975
32976 2008-04-23  Eric Blake  <ebb9@byu.net>
32977
32978         Improve memchr2 performance.
32979         * lib/memchr2.c (memchr2): Further optimize parallel detection of
32980         NUL bytes.
32981         * modules/memchr2 (Depends-on): Use intprops.h.
32982
32983 2008-04-23  Simon Josefsson  <simon@josefsson.org>
32984
32985         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
32986         an inline function instead of a CPP macro.  Patch by Ben Pfaff
32987         <blp@cs.stanford.edu>.
32988
32989 2008-04-23  Simon Josefsson  <simon@josefsson.org>
32990
32991         * lib/arpa_inet.in.h: New file.
32992
32993         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
32994         (Makefile.am): Sed in substitute header file.
32995
32996         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
32997         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
32998
32999         * modules/inet_ntop (configure.ac): Use
33000         gl_ARPA_INET_MODULE_INDICATOR.
33001
33002         * modules/inet_pton (configure.ac): Use
33003         gl_ARPA_INET_MODULE_INDICATOR.
33004
33005 2008-04-22  Jim Meyering  <meyering@redhat.com>
33006
33007         * modules/verify (License): Re-license as LGPLv2+.
33008
33009 2008-04-22  Simon Josefsson  <simon@josefsson.org>
33010
33011         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
33012         parameter to void* as per POSIX standard (MinGW uses char*).
33013
33014 2008-04-21  Bruno Haible  <bruno@clisp.org>
33015
33016         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
33017         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
33018         Define to replacements if REPLACE_ISWCNTRL is 1.
33019         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
33020         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
33021         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
33022         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
33023         what it fixes.
33024         * doc/posix-functions/iswalpha.texi: Likewise.
33025         * doc/posix-functions/iswblank.texi: Likewise.
33026         * doc/posix-functions/iswcntrl.texi: Likewise.
33027         * doc/posix-functions/iswdigit.texi: Likewise.
33028         * doc/posix-functions/iswgraph.texi: Likewise.
33029         * doc/posix-functions/iswlower.texi: Likewise.
33030         * doc/posix-functions/iswprint.texi: Likewise.
33031         * doc/posix-functions/iswpunct.texi: Likewise.
33032         * doc/posix-functions/iswspace.texi: Likewise.
33033         * doc/posix-functions/iswupper.texi: Likewise.
33034         * doc/posix-functions/iswxdigit.texi: Likewise.
33035         Reported by Alain Guibert.
33036
33037 2008-04-21  Bruno Haible  <bruno@clisp.org>
33038
33039         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
33040         Patch by Alain Guibert.
33041
33042 2008-04-21  Bruno Haible  <bruno@clisp.org>
33043
33044         Fix test failures on mingw.
33045         * tests/test-xstrtol.c (print_no_progname): New function.
33046         (main): Install it in error_print_progname hook.
33047         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
33048         * tests/test-xstrtoimax.sh: Likewise.
33049         * tests/test-xstrtoumax.sh: Likewise.
33050
33051 2008-04-21  Bruno Haible  <bruno@clisp.org>
33052
33053         Fix test failure on mingw.
33054         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
33055
33056 2008-04-21  Bruno Haible  <bruno@clisp.org>
33057
33058         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
33059         Actually assign a value.
33060
33061 2008-04-20  Bruno Haible  <bruno@clisp.org>
33062
33063         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
33064         take 2.
33065         * lib/canonicalize.c (canonicalize_file_name): Elide if the
33066         'canonicalize-lgpl' module is also used.
33067         * lib/canonicalize-lgpl.c: Undo last change.
33068         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
33069
33070 2008-04-20  Bruno Haible  <bruno@clisp.org>
33071
33072         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
33073         config.h. Provide _mkdir based fallback for mingw.
33074         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
33075         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
33076         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
33077         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
33078         rather than defining mkdir in config.h.
33079         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
33080         (gl_SYS_STAT_H_DEFAULTS): New macro.
33081         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
33082         HAVE_IO_H any more.
33083         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
33084         HAVE_DECL_MKDIR and HAVE_IO_H.
33085
33086 2008-04-20  Bruno Haible  <bruno@clisp.org>
33087
33088         * lib/isapipe.c: Port to native Windows platforms.
33089
33090 2008-04-20  Bruno Haible  <bruno@clisp.org>
33091
33092         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
33093
33094 2008-04-21  Eric Blake  <ebb9@byu.net>
33095
33096         Work around preprocessors that don't handle UINTMAX_MAX.
33097         * lib/memchr2.c (memchr2): Avoid embedded #if.
33098         Reported by Alain Guibert, fix suggested by Bruno Haible.
33099
33100 2008-04-21  Simon Josefsson  <simon@josefsson.org>
33101
33102         * doc/posix-functions/strftime.texi (strftime): Explain better
33103         Windows incompatibility.  Suggested by Micah Cowan
33104         <micah@cowan.name>.
33105
33106 2008-04-20  Bruno Haible  <bruno@clisp.org>
33107
33108         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
33109         unistr/u8-mblen.
33110
33111 2008-04-20  Bruno Haible  <bruno@clisp.org>
33112
33113         Fix test failure on platforms with non-GNU iconv.
33114         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
33115         (U_TO_U8): Use it, rather than u16_to_u8.
33116         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
33117         units at the end of the input string.
33118         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
33119
33120 2008-04-20  Bruno Haible  <bruno@clisp.org>
33121
33122         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
33123         when the resulting length is 0.
33124         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
33125
33126 2008-04-20  Bruno Haible  <bruno@clisp.org>
33127
33128         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
33129         works.
33130         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
33131
33132 2008-04-20  Bruno Haible  <bruno@clisp.org>
33133
33134         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
33135         * modules/tsearch-tests (configure.ac): Test for initstate function.
33136
33137 2008-04-20  Bruno Haible  <bruno@clisp.org>
33138
33139         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
33140         for nlink_t if missing.
33141         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
33142
33143 2008-04-19  Bruno Haible  <bruno@clisp.org>
33144
33145         Work around snprintf bug on Linux libc5.
33146         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
33147         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33148         gl_SNPRINTF_SIZE1.
33149         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33150         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
33151         that test failed.
33152         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
33153         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
33154         * modules/snprintf (Files): Add m4/printf.m4.
33155         * modules/vsnprintf (Files): Likewise.
33156         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
33157         * doc/posix-functions/vsnprintf.texi: Likewise.
33158
33159 2008-04-19  Bruno Haible  <bruno@clisp.org>
33160
33161         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
33162         from 0.0058 to less than 10^-7.
33163
33164 2008-04-19  Bruno Haible  <bruno@clisp.org>
33165
33166         Fix rounding when a precision is given.
33167         * lib/vasnprintf.c (is_borderline): New function.
33168         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
33169         9...9x.
33170         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
33171         %e, %g.
33172         * tests/test-vasprintf-posix.c (test_function): Likewise.
33173         * tests/test-snprintf-posix.h (test_function): Likewise.
33174         * tests/test-sprintf-posix.h (test_function): Likewise.
33175         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
33176         * tests/test-printf-posix.h (test_function): Likewise.
33177         * tests/test-printf-posix.output: Update.
33178         Reported by John Darrington <john@darrington.wattle.id.au> via
33179         Ben Pfaff <blp@cs.stanford.edu>.
33180
33181 2008-04-18  Simon Josefsson  <simon@josefsson.org>
33182
33183         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
33184         Suggested by Bruno Haible <bruno@clisp.org>.
33185
33186 2008-04-17  Bruno Haible  <bruno@clisp.org>
33187
33188         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
33189         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
33190         implementation.
33191         Patch by Bruce Merry <bmerry@gmail.com>.
33192
33193 2008-04-17  Simon Josefsson  <simon@josefsson.org>
33194
33195         * doc/posix-functions/strftime.texi (strftime): Mention that %e
33196         doesn't work under Windows.
33197
33198 2008-04-16  Bruno Haible  <bruno@clisp.org>
33199
33200         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
33201         New macros.
33202         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
33203         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
33204         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
33205         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
33206         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
33207         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
33208         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
33209         macros.
33210         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
33211         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
33212         Northern Sotho, Uighur.
33213
33214 2008-04-16  Bruno Haible  <bruno@clisp.org>
33215
33216         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
33217         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
33218         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
33219         Reported by Daniel Bergström <daniel@octocode.com>.
33220
33221 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
33222             Bruno Haible  <bruno@clisp.org>
33223
33224         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
33225         function.
33226         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
33227         New functions, mostly extracted from gl_locale_name_default.
33228         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
33229
33230 2008-04-16  Eric Blake  <ebb9@byu.net>
33231
33232         Adjust strtod detection to catch glibc 2.7 bug.
33233         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
33234         Reported by John Gatewood Ham.
33235
33236 2008-04-16  Bruno Haible  <bruno@clisp.org>
33237
33238         Add tentative support for Linux libc5.
33239         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
33240         * lib/fpurge.c (fpurge): Likewise.
33241         * lib/freadable.c (freadable): Likewise.
33242         * lib/freadahead.c (freadahead): Likewise.
33243         * lib/freading.c (freading): Likewise.
33244         * lib/freadptr.c (freadptr): Likewise.
33245         * lib/freadseek.c (freadptrinc): Likewise.
33246         * lib/fseeko.c (rpl_fseeko): Likewise.
33247         * lib/fseterr.c (fseterr): Likewise.
33248         * lib/fwritable.c (fwritable): Likewise.
33249         * lib/fwriting.c (fwriting): Likewise.
33250         Reported by Alain Guibert <alguibert+bts@free.fr>.
33251
33252 2008-04-15  Bruno Haible  <bruno@clisp.org>
33253
33254         * modules/mathl (configure.ac): Define module indicator.
33255
33256 2008-04-15  Bruno Haible  <bruno@clisp.org>
33257
33258         * lib/logl.c (logl): Remove unused variables.
33259
33260 2008-04-15  Bruno Haible  <bruno@clisp.org>
33261
33262         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
33263         fails.
33264
33265 2008-04-15  Bruno Haible  <bruno@clisp.org>
33266
33267         * lib/trim.c (trim2): Fix argument of isspace() macro.
33268
33269 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
33270
33271         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
33272         to 0.
33273         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
33274
33275 2008-04-14  Bruno Haible  <bruno@clisp.org>
33276
33277         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
33278         AC_LANG_PROGRAM argument.
33279         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
33280         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
33281         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
33282         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33283         * m4/math_h.m4 (gl_MATH_H): Likewise.
33284         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
33285         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33286         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33287         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
33288         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
33289         * m4/regex.m4 (gl_REGEX): Likewise.
33290         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
33291         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
33292         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33293         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
33294         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
33295         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33296         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33297         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33298
33299 2008-04-14  Jim Meyering  <meyering@redhat.com>
33300
33301         test-strtod: fix typos: s/abs/fabs/
33302         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
33303
33304 2008-04-13  Bruno Haible  <bruno@clisp.org>
33305
33306         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
33307         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
33308         module is also used and while not building the reloc-wrapper.
33309
33310 2008-04-13  Bruno Haible  <bruno@clisp.org>
33311
33312         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
33313
33314 2008-04-13  Bruno Haible  <bruno@clisp.org>
33315
33316         Fix AIX compilation failure introduced on 2008-04-02.
33317         * tests/test-frexp.c (exp): Undefine before redefining.
33318         * tests/test-frexpl.c (exp): Likewise.
33319
33320 2008-04-13  Bruno Haible  <bruno@clisp.org>
33321
33322         Work around a HP-UX stdio bug.
33323         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
33324         * tests/test-ftello.c (main): Likewise.
33325         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
33326         * doc/posix-functions/ftello.texi: Likewise.
33327
33328 2008-04-13  Bruno Haible  <bruno@clisp.org>
33329
33330         Make test-signbit pass on HP-UX/hppa.
33331         * tests/test-signbit.c (minus_zerol): New variable.
33332         (test_signbitl): Use it.
33333
33334 2008-04-13  Bruno Haible  <bruno@clisp.org>
33335
33336         Make truncl work on OSF/1 4.0.
33337         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
33338         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
33339         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
33340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
33341         HAVE_DECL_TRUNCL.
33342         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
33343         HAVE_DECL_TRUNCL.
33344         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
33345
33346 2008-04-13  Bruno Haible  <bruno@clisp.org>
33347
33348         * lib/unictype.h: Remove trailing comma from enumeration definitions.
33349
33350 2008-04-13  Bruno Haible  <bruno@clisp.org>
33351
33352         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
33353         expression, so as to avoid HP-UX 11 cc compiler bug.
33354
33355 2008-04-13  Bruno Haible  <bruno@clisp.org>
33356
33357         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
33358
33359 2008-04-13  Bruno Haible  <bruno@clisp.org>
33360
33361         * lib/git-merge-changelog.c: Remove empty declaration outside of
33362         functions.
33363
33364 2008-04-13  Bruno Haible  <bruno@clisp.org>
33365
33366         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
33367
33368 2008-04-13  Bruno Haible  <bruno@clisp.org>
33369
33370         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
33371         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
33372         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
33373         also if it exists but lacks definitions of the SHUT_* macros.
33374         * modules/sys_socket (Description): Update.
33375         Reported by Elbert Pol <e.pol@chello.nl>.
33376
33377 2008-04-13  Bruno Haible  <bruno@clisp.org>
33378
33379         * lib/localcharset.c (OS2): Don't redefine if already defined.
33380         Reported by Elbert Pol <e.pol@chello.nl>.
33381
33382 2008-04-13  Bruno Haible  <bruno@clisp.org>
33383
33384         * lib/binary-io.h [__EMX__]: Include <io.h>.
33385         Reported by Elbert Pol <e.pol@chello.nl>.
33386
33387 2008-04-12  Bruno Haible  <bruno@clisp.org>
33388
33389         * lib/fpucw.h: Enable the definitions also for x86_64.
33390         Needed for NetBSD/x86_64.
33391         Reported by Thomas Klausner <tk@giga.or.at>.
33392
33393 2008-04-12  Bruno Haible  <bruno@clisp.org>
33394
33395         * tests/test-strtod.c: Include isnand.h.
33396         (main): Use isnand instead of isnan.
33397         Reported by Jim Meyering.
33398
33399 2008-04-12  Bruno Haible  <bruno@clisp.org>
33400
33401         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
33402         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
33403
33404 2008-04-12  Jim Meyering  <meyering@redhat.com>
33405
33406         * m4/math_h.m4 (gl_MATH_H): Fix typos.
33407
33408 2008-04-12  Bruno Haible  <bruno@clisp.org>
33409
33410         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
33411         Reported by Elbert Pol <e.pol@chello.nl>.
33412
33413 2008-04-12  Eric Blake  <ebb9@byu.net>
33414
33415         Work around Solaris 10 math.h bug.
33416         * m4/math_h.m4 (gl_MATH_H): Check for bug.
33417         (gl_MATH_H_DEFAULTS): Set up default.
33418         * modules/math (Makefile.am): Replace new indicators.
33419         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
33420         * tests/test-math.c (main): Test this.
33421         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
33422         * doc/posix-headers/math.texi (math.h): Mention bug.
33423         Reported by Nelson H. F. Beebe and Jim Meyering.
33424
33425 2008-04-11  Bruno Haible  <bruno@clisp.org>
33426
33427         Adapt to future versions of Apple GCC.
33428         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
33429         Reported by Peter O'Gorman <peter@pogma.com>.
33430
33431 2008-04-11  Bruno Haible  <bruno@clisp.org>
33432
33433         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
33434
33435 2008-04-11  Bruno Haible  <bruno@clisp.org>
33436
33437         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
33438
33439         * modules/getaddrinfo-tests (Makefile.am): Define
33440         test_getaddrinfo_LDADD.
33441
33442 2008-04-11  Bruno Haible  <bruno@clisp.org>
33443
33444         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
33445         (init): Fix syntax error.
33446         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
33447         is declared.
33448
33449 2008-04-11  Bruno Haible  <bruno@clisp.org>
33450
33451         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
33452         * modules/glob (Depends-on): Add stdbool.
33453
33454 2008-04-11  Bruno Haible  <bruno@clisp.org>
33455
33456         * lib/trim.c: Include <string.h>.
33457
33458 2008-04-11  Eric Blake  <ebb9@byu.net>
33459
33460         Avoid compile failure on OS/2.
33461         * lib/regex_internal.h (internal_function): Disable optimization
33462         on OS/2 (__EMX__), where it caused compiler error.
33463         Reported by Elbert Pol.
33464
33465 2008-04-11  Bruno Haible  <bruno@clisp.org>
33466
33467         Flush the standard error stream before aborting. Needed on mingw.
33468         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
33469         * tests/test-array_list.c (ASSERT): Likewise.
33470         * tests/test-array_oset.c (ASSERT): Likewise.
33471         * tests/test-avltree_list.c (ASSERT): Likewise.
33472         * tests/test-avltree_oset.c (ASSERT): Likewise.
33473         * tests/test-avltreehash_list.c (ASSERT): Likewise.
33474         * tests/test-binary-io.c (ASSERT): Likewise.
33475         * tests/test-byteswap.c (ASSERT): Likewise.
33476         * tests/test-c-ctype.c (ASSERT): Likewise.
33477         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
33478         * tests/test-c-strcasestr.c (ASSERT): Likewise.
33479         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
33480         * tests/test-c-strstr.c (ASSERT): Likewise.
33481         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
33482         * tests/test-canonicalize.c (ASSERT): Likewise.
33483         * tests/test-carray_list.c (ASSERT): Likewise.
33484         * tests/test-ceilf1.c (ASSERT): Likewise.
33485         * tests/test-ceilf2.c (ASSERT): Likewise.
33486         * tests/test-ceill.c (ASSERT): Likewise.
33487         * tests/test-count-one-bits.c (ASSERT): Likewise.
33488         * tests/test-fbufmode.c (ASSERT): Likewise.
33489         * tests/test-fflush2.c (ASSERT): Likewise.
33490         * tests/test-floorf1.c (ASSERT): Likewise.
33491         * tests/test-floorf2.c (ASSERT): Likewise.
33492         * tests/test-floorl.c (ASSERT): Likewise.
33493         * tests/test-fopen.c (ASSERT): Likewise.
33494         * tests/test-fpending.c (ASSERT): Likewise.
33495         * tests/test-fprintf-posix.c (ASSERT): Likewise.
33496         * tests/test-fpurge.c (ASSERT): Likewise.
33497         * tests/test-freadable.c (ASSERT): Likewise.
33498         * tests/test-freadahead.c (ASSERT): Likewise.
33499         * tests/test-freading.c (ASSERT): Likewise.
33500         * tests/test-freadptr.c (ASSERT): Likewise.
33501         * tests/test-freadptr2.c (ASSERT): Likewise.
33502         * tests/test-freadseek.c (ASSERT): Likewise.
33503         * tests/test-freopen.c (ASSERT): Likewise.
33504         * tests/test-frexp.c (ASSERT): Likewise.
33505         * tests/test-frexpl.c (ASSERT): Likewise.
33506         * tests/test-fseek.c (ASSERT): Likewise.
33507         * tests/test-fseeko.c (ASSERT): Likewise.
33508         * tests/test-fstrcmp.c (ASSERT): Likewise.
33509         * tests/test-ftell.c (ASSERT): Likewise.
33510         * tests/test-ftello.c (ASSERT): Likewise.
33511         * tests/test-func.c (ASSERT): Likewise.
33512         * tests/test-fwritable.c (ASSERT): Likewise.
33513         * tests/test-fwriting.c (ASSERT): Likewise.
33514         * tests/test-getdelim.c (ASSERT): Likewise.
33515         * tests/test-getline.c (ASSERT): Likewise.
33516         * tests/test-i-ring.c (ASSERT): Likewise.
33517         * tests/test-iconv-utf.c (ASSERT): Likewise.
33518         * tests/test-iconv.c (ASSERT): Likewise.
33519         * tests/test-isfinite.c (ASSERT): Likewise.
33520         * tests/test-isnand.c (ASSERT): Likewise.
33521         * tests/test-isnanf.c (ASSERT): Likewise.
33522         * tests/test-isnanl.h (ASSERT): Likewise.
33523         * tests/test-ldexpl.c (ASSERT): Likewise.
33524         * tests/test-linked_list.c (ASSERT): Likewise.
33525         * tests/test-linkedhash_list.c (ASSERT): Likewise.
33526         * tests/test-localename.c (ASSERT): Likewise.
33527         * tests/test-lseek.c (ASSERT): Likewise.
33528         * tests/test-mbscasecmp.c (ASSERT): Likewise.
33529         * tests/test-mbscasestr1.c (ASSERT): Likewise.
33530         * tests/test-mbscasestr2.c (ASSERT): Likewise.
33531         * tests/test-mbscasestr3.c (ASSERT): Likewise.
33532         * tests/test-mbscasestr4.c (ASSERT): Likewise.
33533         * tests/test-mbschr.c (ASSERT): Likewise.
33534         * tests/test-mbscspn.c (ASSERT): Likewise.
33535         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
33536         * tests/test-mbspbrk.c (ASSERT): Likewise.
33537         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
33538         * tests/test-mbsrchr.c (ASSERT): Likewise.
33539         * tests/test-mbsspn.c (ASSERT): Likewise.
33540         * tests/test-mbsstr1.c (ASSERT): Likewise.
33541         * tests/test-mbsstr2.c (ASSERT): Likewise.
33542         * tests/test-mbsstr3.c (ASSERT): Likewise.
33543         * tests/test-memchr2.c (ASSERT): Likewise.
33544         * tests/test-memmem.c (ASSERT): Likewise.
33545         * tests/test-open.c (ASSERT): Likewise.
33546         * tests/test-printf-frexp.c (ASSERT): Likewise.
33547         * tests/test-printf-frexpl.c (ASSERT): Likewise.
33548         * tests/test-printf-posix.c (ASSERT): Likewise.
33549         * tests/test-quotearg.c (ASSERT): Likewise.
33550         * tests/test-rbtree_list.c (ASSERT): Likewise.
33551         * tests/test-rbtree_oset.c (ASSERT): Likewise.
33552         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
33553         * tests/test-round1.c (ASSERT): Likewise.
33554         * tests/test-roundf1.c (ASSERT): Likewise.
33555         * tests/test-roundl.c (ASSERT): Likewise.
33556         * tests/test-signbit.c (ASSERT): Likewise.
33557         * tests/test-sleep.c (ASSERT): Likewise.
33558         * tests/test-snprintf-posix.c (ASSERT): Likewise.
33559         * tests/test-snprintf.c (ASSERT): Likewise.
33560         * tests/test-sprintf-posix.c (ASSERT): Likewise.
33561         * tests/test-stat-time.c (ASSERT): Likewise.
33562         * tests/test-strcasestr.c (ASSERT): Likewise.
33563         * tests/test-strerror.c (ASSERT): Likewise.
33564         * tests/test-striconv.c (ASSERT): Likewise.
33565         * tests/test-striconveh.c (ASSERT): Likewise.
33566         * tests/test-striconveha.c (ASSERT): Likewise.
33567         * tests/test-strsignal.c (ASSERT): Likewise.
33568         * tests/test-strstr.c (ASSERT): Likewise.
33569         * tests/test-strtod.c (ASSERT): Likewise.
33570         * tests/test-trunc1.c (ASSERT): Likewise.
33571         * tests/test-trunc2.c (ASSERT): Likewise.
33572         * tests/test-truncf1.c (ASSERT): Likewise.
33573         * tests/test-truncf2.c (ASSERT): Likewise.
33574         * tests/test-truncl.c (ASSERT): Likewise.
33575         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
33576         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
33577         * tests/test-vasnprintf.c (ASSERT): Likewise.
33578         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
33579         * tests/test-vasprintf.c (ASSERT): Likewise.
33580         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
33581         * tests/test-vprintf-posix.c (ASSERT): Likewise.
33582         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
33583         * tests/test-vsnprintf.c (ASSERT): Likewise.
33584         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
33585         * tests/test-wcwidth.c (ASSERT): Likewise.
33586         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
33587         * tests/test-xprintf-posix.c (ASSERT): Likewise.
33588         * tests/test-xvasprintf.c (ASSERT): Likewise.
33589         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
33590         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
33591         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
33592         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
33593         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
33594         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
33595         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
33596         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
33597         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
33598         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
33599         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
33600         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
33601         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
33602         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
33603         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
33604         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
33605         * tests/unictype/test-block_list.c (ASSERT): Likewise.
33606         * tests/unictype/test-block_of.c (ASSERT): Likewise.
33607         * tests/unictype/test-block_test.c (ASSERT): Likewise.
33608         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
33609         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
33610         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
33611         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
33612         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
33613         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
33614         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
33615         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
33616         * tests/unictype/test-combining.c (ASSERT): Likewise.
33617         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
33618         * tests/unictype/test-digit.c (ASSERT): Likewise.
33619         * tests/unictype/test-mirror.c (ASSERT): Likewise.
33620         * tests/unictype/test-numeric.c (ASSERT): Likewise.
33621         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
33622         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
33623         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
33624         * tests/unictype/test-scripts.c (ASSERT): Likewise.
33625         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
33626         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
33627         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
33628         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
33629         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
33630         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
33631         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
33632         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
33633         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
33634         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
33635         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
33636         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
33637         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
33638         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
33639         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
33640         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
33641         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
33642         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
33643         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
33644         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
33645         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
33646         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
33647         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
33648         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
33649         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
33650         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
33651         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
33652         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
33653         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
33654         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
33655         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
33656         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
33657         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
33658         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
33659         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
33660         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
33661         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
33662         Reported by Eric Blake.
33663
33664 2008-04-11  Bruno Haible  <bruno@clisp.org>
33665
33666         * lib/wchar.in.h: Tweak comment.
33667
33668 2008-04-11  Bruno Haible  <bruno@clisp.org>
33669
33670         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
33671         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
33672         gl_COMMON.
33673         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
33674
33675 2008-04-11  Bruno Haible  <bruno@clisp.org>
33676
33677         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
33678
33679 2008-04-11  Simon Josefsson  <simon@josefsson.org>
33680
33681         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
33682         of attempting to use non-existing /dev/*random.  Based on patch
33683         from Adam Strzelecki <ono@java.pl> in
33684         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
33685
33686 2008-04-08  Bruno Haible  <bruno@clisp.org>
33687
33688         Add tentative support for emx+gcc.
33689         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
33690         * lib/fpurge.c (fpurge): Likewise.
33691         * lib/freadable.c (freadable): Likewise.
33692         * lib/freadahead.c (freadahead): Likewise.
33693         * lib/freading.c (freading): Likewise.
33694         * lib/freadptr.c (freadptr): Likewise.
33695         * lib/freadseek.c (freadptrinc): Likewise.
33696         * lib/fseeko.c (rpl_fseeko): Likewise.
33697         * lib/fseterr.c (fseterr): Likewise.
33698         * lib/fwritable.c (fwritable): Likewise.
33699         * lib/fwriting.c (fwriting): Likewise.
33700         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
33701
33702 2008-04-09  Eric Blake  <ebb9@byu.net>
33703
33704         Avoid some autoconf warnings.
33705         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
33706         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
33707         * m4/afs.m4 (gl_AFS): Likewise.
33708         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
33709         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
33710         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33711         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
33712         (gl_INTEGER_TYPE_SUFFIX): Likewise.
33713         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
33714         (AC_CHECK_DECLS_ONCE): Likewise.
33715         Rename file...
33716         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
33717         gnulib-tool requires autoconf 2.59 or better.
33718         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
33719
33720 2008-04-08  Eric Blake  <ebb9@byu.net>
33721
33722         Use 'git describe --match' if present (added in git 1.5.5).
33723         * build-aux/git-version-gen: Limit result to tags that match 'v*'
33724         if possible.
33725
33726 2008-04-08  Bruno Haible  <bruno@clisp.org>
33727
33728         Add tentative support for OpenServer.
33729         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
33730         _ptr, _cnt.
33731         * lib/fpurge.c (fpurge): Likewise.
33732         * lib/freadable.c (freadable): Likewise.
33733         * lib/freadahead.c (freadahead): Likewise.
33734         * lib/freading.c (freading): Likewise.
33735         * lib/freadptr.c (freadptr): Likewise.
33736         * lib/freadseek.c (freadptrinc): Likewise.
33737         * lib/fseeko.c (rpl_fseeko): Likewise.
33738         * lib/fseterr.c (fseterr): Likewise.
33739         * lib/fwritable.c (fwritable): Likewise.
33740         * lib/fwriting.c (fwriting): Likewise.
33741         Reported by Roger Cornelius <rac@tenzing.org> and
33742         Brian K. White <brian@aljex.com>.
33743
33744 2008-04-06  Jim Meyering  <meyering@redhat.com>
33745
33746         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
33747
33748 2008-04-06  Bruno Haible  <bruno@clisp.org>
33749
33750         Avoid possible error with non-ASCII bytes in UTF-8 locales.
33751         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
33752         * tests/test-printf-posix.sh: Likewise.
33753         * tests/test-vfprintf-posix.sh: Likewise.
33754         * tests/test-vprintf-posix.sh: Likewise.
33755         * tests/test-xprintf-posix.sh: Likewise.
33756
33757 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33758
33759         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
33760         hide error from 'ls', needed on OS/2.
33761         Report by Elbert Pol <elbert.pol@gmail.com>.
33762
33763 2008-04-04  Eric Blake  <ebb9@byu.net>
33764
33765         Make test-fseeko.c failures meaningful.
33766         * tests/test-fseeko.c: Print line number on failure.
33767         * tests/test-fseek.c: Likewise.
33768         Reported by Nelson H. F. Beebe.
33769
33770         Improve strtod bug detection check.
33771         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
33772         required for Solaris 10.
33773         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
33774
33775 2008-04-04  Bruno Haible  <bruno@clisp.org>
33776
33777         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
33778         by m4/setenv.m4.
33779
33780 2008-04-03  Eric Blake  <ebb9@byu.net>
33781
33782         Ensure sane .version contents.
33783         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
33784         version string.
33785         * build-aux/git-version-gen: Improve documentation.
33786
33787         Make GNU make output nicer.
33788         * top/GNUmakefile [!_have-Makefile]: Add dependency on
33789         MAKECMDGOALS to enforce message for all command line targets.  Set
33790         srcdir for use in maint.mk.
33791
33792         Another maintainer tweak.
33793         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
33794         a target that regenerates version.
33795
33796 2008-04-03  Jim Meyering  <meyering@redhat.com>
33797
33798         vc-list-files: don't cause coreutils "make po-check" failure
33799         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
33800
33801 2008-04-03  Eric Blake  <ebb9@byu.net>
33802
33803         Allow VPATH usage of vc-list-files.
33804         * build-aux/vc-list-files (scriptversion): Add timestamp.
33805         (options): Add --help, --version, -C.
33806         (CVS): Support installed cvsu.
33807
33808 2008-04-02  Bruno Haible  <bruno@clisp.org>
33809
33810         Avoid some "statement with no effect" warnings from gcc.
33811         * tests/test-wctype.c (main): Explicitly ignore unused values.
33812         Reported by Jim Meyering.
33813
33814 2008-04-02  Jim Meyering  <meyering@redhat.com>
33815
33816         Avoid some warnings from "gcc -Wshadow".
33817         * tests/test-frexp.c (exp): Define to a different identifier.
33818         * tests/test-frexpl.c (exp): Likewise.
33819
33820 2008-04-03  Jim Meyering  <meyering@redhat.com>
33821
33822         bootstrap: remove dangling *.[ch] symlinks from lib
33823         * build-aux/bootstrap [dangling symlink removal]: Move find's
33824         -depth option to precede all others, to avoid a warning.
33825         Remove *.[ch] files too, and from "$source_base" (usually lib/).
33826
33827 2008-04-02  Bruno Haible  <bruno@clisp.org>
33828
33829         Avoid some warnings from "gcc -Wshadow".
33830         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
33831         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
33832         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
33833         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
33834         Reported by Jim Meyering.
33835
33836 2008-04-01  Bruno Haible  <bruno@clisp.org>
33837
33838         Fix test to work on IRIX 6.5 with cc.
33839         * tests/test-math.c (numeric_equal): New function.
33840         (main): Use it.
33841
33842 2008-04-01  Bruno Haible  <bruno@clisp.org>
33843
33844         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
33845
33846 2008-04-01  Bruno Haible  <bruno@clisp.org>
33847
33848         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
33849         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33850         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
33851         (Depends-on): Remove math.
33852
33853         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
33854         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33855         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
33856         (Depends-on): Remove math.
33857
33858         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
33859         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33860         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
33861         (Depends-on): Remove math.
33862         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
33863         (Depends-on): Remove math.
33864
33865         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
33866         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33867         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
33868         (Depends-on): Remove math.
33869         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
33870         (Depends-on): Remove math.
33871
33872         * tests/test-round1.c: Include nan.h.
33873         (main): Use NaNd instead of NAN.
33874         * modules/round-tests (Files): Add tests/nan.h.
33875
33876         * tests/test-trunc1.c: Include nan.h.
33877         (main): Use NaNd instead of NAN.
33878         * modules/trunc-tests (Files): Add tests/nan.h.
33879
33880         * tests/test-roundf1.c: Include nan.h.
33881         (main): Use NaNf instead of NAN.
33882         * modules/roundf-tests (Files): Add tests/nan.h.
33883
33884         * tests/test-truncf1.c: Include nan.h.
33885         (main): Use NaNf instead of NAN.
33886         * modules/truncf-tests (Files): Add tests/nan.h.
33887
33888         * tests/test-ceilf1.c: Include nan.h.
33889         (main): Use NaNf instead of NAN.
33890         * modules/ceilf-tests (Files): Add tests/nan.h.
33891
33892         * tests/test-floorf1.c: Include nan.h.
33893         (main): Use NaNf instead of NAN.
33894         * modules/floorf-tests (Files): Add tests/nan.h.
33895
33896         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
33897         (main): Use NaNf instead of NAN.
33898         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
33899
33900         * tests/test-isnand.c: Include nan.h instead of <math.h>.
33901         (main): Use NaNd instead of NAN.
33902         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
33903
33904         * tests/test-frexp.c: Include nan.h.
33905         (main): Use NaNd instead of NAN.
33906         * modules/frexp-tests (Files): Add tests/nan.h.
33907
33908         * lib/isnan.c: Don't include <math.h>.
33909         (FUNC): Don't use NAN macro.
33910         * modules/isnand-nolibm (Depends-on): Remove math.
33911         * modules/isnanf-nolibm (Depends-on): Remove math.
33912         * modules/isnanl (Depends-on): Remove math.
33913         * modules/isnanl-nolibm (Depends-on): Remove math.
33914
33915         * tests/nan.h: New file.
33916
33917 2008-04-01  Eric Blake  <ebb9@byu.net>
33918
33919         Fix typos.
33920         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
33921         values to be the right type.
33922
33923         For now, cater to gnulib strtod inaccuracies.
33924         * tests/test-strtod.c (main): Allow 1-ulp error on expected
33925         fractional results.  While not as nice from a QoI perspective, it
33926         is a quicker patch than correctly implementing decimal to binary
33927         rounding.
33928
33929 2008-03-31  Eric Blake  <ebb9@byu.net>
33930
33931         Guarantee a definition of NAN.
33932         * lib/math.in.h (NAN): Define if missing.
33933         * tests/test-math.c (main): Test it.
33934         * doc/posix-headers/math.texi (math.h): Document this.
33935         * lib/isnan.c (rpl_isnand): Use it.
33936         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
33937         * tests/test-floorf1.c (NaN): Likewise.
33938         * tests/test-frexp.c (NaN): Likewise.
33939         * tests/test-isnand.c (NaN): Likewise.
33940         * tests/test-isnanf.c (NaN): Likewise.
33941         * tests/test-round1.c (NaN): Likewise.
33942         * tests/test-roundf1.c (NaN): Likewise.
33943         * tests/test-snprintf-posix.h (NaN): Likewise.
33944         * tests/test-sprintf-posix.h (NaN): Likewise.
33945         * tests/test-trunc1.c (NaN): Likewise.
33946         * tests/test-truncf1.c (NaN): Likewise.
33947         * tests/test-vasnprintf-posix.c (NaN): Likewise.
33948         * tests/test-vasprintf-posix.c (NaN): Likewise.
33949         * modules/isnand-nolibm (Depends-on): Add math.
33950         * modules/isnanf-nolibm (Depends-on): Likewise.
33951         * modules/isnanl (Depends-on): Likewise.
33952         * modules/isnanl-nolibm (Depends-on): Likewise.
33953         * modules/snprintf-posix-tests (Depends-on): Likewise.
33954         * modules/sprintf-posix-tests (Depends-on): Likewise.
33955         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
33956         * modules/vsprintf-posix-tests (Depends-on): Likewise.
33957         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
33958         * modules/vasprintf-posix-tests (Depends-on): Likewise.
33959
33960 2008-03-31  Bruno Haible  <bruno@clisp.org>
33961
33962         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
33963         * doc/posix-functions/strtod.texi: Likewise.
33964
33965 2008-03-31  Bruno Haible  <bruno@clisp.org>
33966
33967         * tests/test-strtod.c (main): Don't use C99 syntax.
33968
33969 2008-03-31  Bruno Haible  <bruno@clisp.org>
33970
33971         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
33972         Reported by Eric Blake.
33973
33974 2008-03-31  Jim Meyering  <meyering@redhat.com>
33975
33976         Don't compare actual signbit return values.
33977         * tests/test-strtod.c (main): Rather, compare only their
33978         zero/non-zero nature.
33979
33980 2008-03-31  Eric Blake  <ebb9@byu.net>
33981
33982         More strtod documentation.
33983         * doc/posix-functions/strtod.texi (strtod): Interpret more test
33984         failures as distinct bugs.
33985
33986 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
33987
33988         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
33989         Problem reported by Erik Benada in
33990         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
33991
33992 2008-03-30  Bruno Haible  <bruno@clisp.org>
33993
33994         * tests/test-strtod.c: Add comments about which assertion fails on which
33995         platform.
33996         * doc/posix-functions/strtod.texi: Add info about many more platforms.
33997
33998 2008-03-30  Eric Blake  <ebb9@byu.net>
33999
34000         Test signbit behavior on zeros.
34001         * tests/test-signbit.c (test_signbitf): Add tests for zero.
34002         (test_signbitd, test_signbitl): Likewise.
34003
34004         More strtod touchups.
34005         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
34006         sign of negative underflow, for now.  Use .5, not .1.
34007         * doc/posix-functions/strtod.texi (strtod): Mention these
34008         limitations.
34009         Reported by Jim Meyering.
34010
34011 2008-03-30  Bruno Haible  <bruno@clisp.org>
34012
34013         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
34014         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
34015
34016 2008-03-30  Bruno Haible  <bruno@clisp.org>
34017
34018         Avoid failure when attempting to return empty iconv results on some
34019         platforms.
34020         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
34021         allocation, don't report ENOMEM when the resulting string is empty.
34022
34023 2008-03-30  Bruno Haible  <bruno@clisp.org>
34024
34025         Fix buffer overrun.
34026         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
34027         Don't consider the width for tmp_length. Check count against tmp_length
34028         before doing the padding. Ensure enough allocation during padding.
34029
34030 2008-03-30  Eric Blake  <ebb9@byu.net>
34031
34032         strtod touchups.
34033         * lib/strtod.c (strtod): Avoid compiler warnings.
34034         Reported by Jim Meyering.
34035
34036 2008-03-30  Bruno Haible  <bruno@clisp.org>
34037
34038         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
34039         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
34040         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
34041         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
34042         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
34043         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
34044         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
34045         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
34046
34047         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
34048         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
34049         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
34050         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
34051         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
34052         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
34053         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
34054         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
34055
34056         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
34057         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
34058         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
34059         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
34060         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
34061         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
34062         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
34063         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
34064
34065         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
34066         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
34067
34068         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
34069         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
34070
34071         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
34072         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
34073
34074         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
34075         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
34076         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
34077
34078         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
34079         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
34080         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
34081
34082         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
34083         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
34084         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
34085
34086         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
34087         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
34088         * modules/vasprintf (Depends-on): Add EOVERFLOW.
34089
34090         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
34091         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
34092         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
34093         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
34094         (Depends-on): Add EOVERFLOW.
34095         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
34096         (Depends-on): Add EOVERFLOW.
34097         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
34098         (Depends-on): Add EOVERFLOW.
34099         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
34100         (Depends-on): Add EOVERFLOW.
34101         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
34102         (Depends-on): Add EOVERFLOW.
34103         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
34104         (Depends-on): Add EOVERFLOW.
34105         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
34106         (Depends-on): Add EOVERFLOW.
34107         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
34108         (Depends-on): Add EOVERFLOW.
34109
34110         * lib/sprintf.c (EOVERFLOW): Remove fallback.
34111         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
34112         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
34113
34114         * lib/snprintf.c (EOVERFLOW): Remove fallback.
34115         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
34116         * modules/snprintf (Depends-on): Add EOVERFLOW.
34117
34118         * lib/poll.c (EOVERFLOW): Remove fallback.
34119         * modules/poll (Depends-on): Add EOVERFLOW.
34120
34121         * lib/getugroups.c (EOVERFLOW): Remove fallback.
34122         * modules/getugroups (Depends-on): Add EOVERFLOW.
34123
34124         * lib/getdelim.c (EOVERFLOW): Remove fallback.
34125         * modules/getdelim (Depends-on): Add EOVERFLOW.
34126
34127         * lib/ftell.c (EOVERFLOW): Remove fallback.
34128         * modules/ftell (Depends-on): Add EOVERFLOW.
34129
34130         * lib/fprintf.c (EOVERFLOW): Remove fallback.
34131         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
34132         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
34133
34134         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
34135
34136         * modules/EOVERFLOW-tests: New file.
34137         * tests/test-EOVERFLOW.c: New file.
34138
34139         * modules/EOVERFLOW: New file.
34140         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
34141
34142 2008-03-30  Bruno Haible  <bruno@clisp.org>
34143
34144         Fix bug introduced on 2007-06-10.
34145         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
34146         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
34147
34148 2008-03-30  Bruno Haible  <bruno@clisp.org>
34149
34150         Improve freadseek's efficiency after ungetc.
34151         * lib/freadseek.c: Include freadahead.h.
34152         (freadptrinc): New function, extracted from freadseek.
34153         (freadseek): Use it in a loop. Use freadahead to determine the number
34154         of loop iterations.
34155         * modules/freadseek (Depends-on): Add freadahead.
34156         (configure.ac): Require AC_C_INLINE.
34157
34158 2008-03-30  Bruno Haible  <bruno@clisp.org>
34159
34160         * lib/freadseek.c (freadseek): Don't ignore the return value of
34161         freadptr.
34162
34163 2008-03-29  Eric Blake  <ebb9@byu.net>
34164
34165         Add hex float support.
34166         * modules/strtod (Depends-on): Add c-ctype.
34167         (Link): Mention POW_LIB.
34168         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
34169         whitespace between 'e' and exponent.
34170         * tests/test-strtod.c (main): Enable hex float tests.
34171         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
34172         now provides.
34173
34174         Document various strtod bugs, with some fixes.
34175         * doc/posix-functions/strtod.texi (strtod): Document bugs with
34176         "-0x", "inf", "nan", and hex constants.
34177         * doc/posix-functions/atof.texi (atof): Likewise.
34178         * modules/stdlib (Makefile.am): Support strtod.
34179         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34180         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
34181         detect additional strtod bugs.
34182         * lib/stdlib.in.h (rpl_strtod): Add declarations.
34183         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
34184         bool where appropriate.  Parse 'inf' and 'nan'.
34185         * tests/test-strtod.c: New file.
34186         * modules/strtod (Depends-on): Add stdbool, stdlib.
34187         (configure.ac): Turn on module indicator.
34188         * modules/strtod-tests: New module.
34189
34190 2008-03-29  Eric Blake  <ebb9@byu.net>
34191
34192         Fix ftell on mingw.
34193         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
34194         * modules/ftell-tests (Depends-on): Add binary-io.
34195         * modules/ftello-tests (Depends-on): Likewise.
34196         * tests/test-ftell.c (main): Enhance test to cover behavior after
34197         ungetc.  Enforce binary mode.
34198         * tests/test-ftello.c (main): Likewise.
34199
34200         Pass test-freadseek on cygwin.
34201         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
34202         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
34203         ungetc buffer.
34204
34205         * tests/test-fflush2.c (main): Fix typo.
34206
34207 2008-03-29  Bruno Haible  <bruno@clisp.org>
34208
34209         * tests/test-fflush2.c (main): Temporarily disable the contents of
34210         this test.
34211         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
34212         Reported by Eric Blake.
34213
34214 2008-03-28  Simon Josefsson  <simon@josefsson.org>
34215
34216         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
34217         (GC_SHA224_DIGEST_SIZE): Add.
34218
34219         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
34220         (gc_hash_digest_length): Likewise.
34221         (gc_hash_buffer): Likewise.
34222
34223 2008-03-25  Bruno Haible  <bruno@clisp.org>
34224
34225         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
34226         detail which gettext release to use.
34227         Reported by Simon Josefsson.
34228
34229 2008-03-26  Jim Meyering  <meyering@redhat.com>
34230
34231         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
34232         * modules/gnumakefile (clean-GNUmakefile): Also, use
34233         test ... && ... || : syntax rather than if-then ... fi.
34234
34235         gnumakefile: Don't double-quote-expand $(VPATH) value.
34236         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
34237
34238 2008-03-24  Eric Blake  <ebb9@byu.net>
34239
34240         Alter GNUmakefile to install into top directory.
34241         * modules/maintainer-makefile: Split, and add dependency...
34242         * modules/gnumakefile: to this new module.
34243         * build-aux/GNUmakefile: Move...
34244         * top/GNUmakefile: ...here.
34245         * build-aux/maint.mk: Move...
34246         * top/maint.mk: ...here.
34247         * MODULES.html.sh (Support for maintaining...): Document new
34248         module.
34249
34250 2008-03-23  Bruno Haible  <bruno@clisp.org>
34251
34252         * gnulib-tool: New options --vc-files, --no-vc-files.
34253         (func_usage): Document them.
34254         (vc_files): New variable.
34255         (func_import): Consider vc_files.
34256         (func_create_testdir): Set vc_files to empty.
34257         Suggested by Jim Meyering and Karl Berry.
34258
34259 2008-03-23  Bruno Haible  <bruno@clisp.org>
34260
34261         Fix regex compilation error on HP-UX 11.
34262         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
34263         * modules/regex (Files): Add m4/mbstate_t.m4.
34264         Reported by Ton Voon <ton.voon@altinity.com>.
34265
34266 2008-03-23  Bruno Haible  <bruno@clisp.org>
34267
34268         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
34269
34270 2008-03-23  Eric Blake  <ebb9@byu.net>
34271             Bruno Haible  <bruno@clisp.org>
34272
34273         Install files from top/ in the destination directory.
34274         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
34275         augmentation also for the files from top/.
34276         (func_import, func_create_testdir): Rewrite file names:
34277         top/filename -> filename.
34278
34279 2008-03-23  Bruno Haible  <bruno@clisp.org>
34280
34281         Tweak "gnulib --version" output.
34282         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
34283
34284 2008-03-23  Bruno Haible  <bruno@clisp.org>
34285
34286         Tweak "gnulib --version" output.
34287         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
34288         rather than contents of ChangeLog, when possible.
34289
34290 2008-03-21  Eric Blake  <ebb9@byu.net>
34291
34292         More --version tweaks.
34293         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
34294         date of last ChangeLog entry.
34295
34296 2008-03-21  Jim Meyering  <meyering@redhat.com>
34297
34298         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
34299
34300 2008-03-20  Eric Blake  <ebb9@byu.net>
34301
34302         VPATH fix.
34303         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
34304
34305 2008-03-20  Simon Josefsson  <simon@josefsson.org>
34306
34307         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
34308         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
34309
34310 2008-03-20  Eric Blake  <ebb9@byu.net>
34311
34312         Sync GNUmakefile with coreutils.
34313         * build-aux/GNUmakefile (have-Makefile): Rename...
34314         (_have-Makefile): ...to this, for namespace consideration.
34315         (GNUmakefile.cfg): Include, if present.
34316         (_autoreconf): Define a default.
34317         (_is-dist-target): New rule for rebuilds to pick up intra-release
34318         version.
34319         (maint-cfg.mk): Rename...
34320         (cfg.mk): ...to this.
34321
34322 2008-03-18  Jim Meyering  <meyering@redhat.com>
34323
34324         New script and module: mktempd
34325         * MODULES.html.sh (maint+release support): Add mktempd.
34326         * build-aux/mktempd: New file.
34327         * modules/mktempd: New file.
34328
34329 2008-03-15  Jim Meyering  <meyering@redhat.com>
34330
34331         Undo last change.
34332         * lib/sha1.c, lib/md5.c: 63 != ~63.
34333         Reported by Andreas Schwab.
34334
34335         sha1.c, md5.c: Hoist a redundant expression.
34336         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
34337         "ctx->buflen" only once, before calling *_process_block.
34338         * lib/md5.c (md5_process_bytes): Likewise.
34339
34340 2008-03-14  Eric Blake  <ebb9@byu.net>
34341
34342         Bump copyright year in files generated by gnulib-tool.
34343         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
34344         gnulib-tool, rather than hard-coding it.
34345
34346         Fix 'gnulib-tool --version' output to work with git.
34347         * gnulib-tool (func_gnulib_dir): New function, extracted from...
34348         (startup): ...here.
34349         (func_version): Use it to invoke git-version-gen, rather than
34350         relying on CVS keyword expansion.  Modernize wording.
34351         (cvsdatestamp, last_checkin_date, version): Kill unused
34352         variables.
34353
34354 2008-03-12  Jim Meyering  <meyering@redhat.com>
34355
34356         Recognize optional cast of the argument to free.
34357         * build-aux/useless-if-before-free: Update regexps.
34358
34359         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
34360
34361 2008-03-11  Bruno Haible  <bruno@clisp.org>
34362
34363         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
34364         by a single package.
34365         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
34366         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
34367         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
34368         Reported by Sam Steingold <sds@gnu.org>.
34369
34370 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34371
34372         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
34373         repositories.
34374
34375 2008-03-11  Bruno Haible  <bruno@clisp.org>
34376
34377         Avoid conflicts between local macro definitions.
34378         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
34379         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
34380
34381 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
34382             Bruno Haible  <bruno@clisp.org>
34383
34384         Make va_copy work with some version of xlc on AIX 5.1.
34385         * lib/stdarg.in.h: New file.
34386         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
34387         On AIX, use a <stdarg.h> file substitute.
34388         * modules/stdarg (Files): Add lib/stdarg.in.h.
34389         (Depends-on): Add include_next.
34390         (Makefile.am): Build a stdarg.h substitute if requested.
34391         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
34392
34393 2008-03-10  Bruno Haible  <bruno@clisp.org>
34394
34395         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
34396         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34397         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
34398
34399 2008-03-10  Bruno Haible  <bruno@clisp.org>
34400
34401         * modules/stdlib (Depends-on): Add include_next, remove
34402         absolute-header.
34403
34404 2008-03-09  Bruno Haible  <bruno@clisp.org>
34405
34406         * lib/freadahead.h (freadahead): Document more precisely.
34407         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
34408         the sum of both buffer sizes.
34409         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
34410         * NEWS: Document the change.
34411
34412 2008-03-09  Bruno Haible  <bruno@clisp.org>
34413
34414         Extend freadptr to return also the buffer size.
34415         * lib/freadptr.h (freadptr): Add sizep argument.
34416         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
34417         (freadptr): Add sizep argument. Determine buffer size like freadahead
34418         does.
34419         * tests/test-freadptr.c: Don't include freadahead.h.
34420         (main): Adapt for new calling convention of freadptr.
34421         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
34422         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
34423         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
34424         tests/test-freadptr2.sh.
34425         (Depends): Remove freadahead.
34426         (TESTS): Add test-freadptr2.sh.
34427         (check_PROGRAMS): Add test-freadptr2.
34428
34429 2008-03-09  Bruno Haible  <bruno@clisp.org>
34430
34431         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
34432         Report and solution by Simon Josefsson.
34433
34434 2008-03-06  Bruno Haible  <bruno@clisp.org>
34435
34436         Make fflush after ungetc work on BSD platforms.
34437         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
34438         * tests/test-fflush2.c: New file.
34439         * tests/test-fflush2.sh: New file.
34440         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
34441         tests/test-fflush2.c.
34442         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
34443         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
34444
34445 2008-03-06  Eric Blake  <ebb9@byu.net>
34446
34447         Likewise for ftello.
34448         * modules/ftello (Dependencies): Add extensions.
34449         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
34450
34451 2008-03-06  Bruno Haible  <bruno@clisp.org>
34452
34453         * modules/fseeko (Dependencies): Add extensions.
34454         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
34455         Needed on glibc systems.
34456
34457 2008-03-06  Bruno Haible  <bruno@clisp.org>
34458
34459         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
34460         email address.
34461         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34462
34463 2008-03-06  Bruno Haible  <bruno@clisp.org>
34464
34465         * users.txt: Add libgnupdf.
34466
34467 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34468
34469         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
34470         (Header File Substitutes, Function Substitutes,
34471         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
34472         (Build robot for gnulib): Fix typo.
34473
34474 2008-03-06  Bruno Haible  <bruno@clisp.org>
34475
34476         * doc/gnulib-tool.texi (VCS Issues): Small updates.
34477         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34478
34479 2008-03-06  Bruno Haible  <bruno@clisp.org>
34480
34481         * doc/func.texi: New file, extracted from doc/gnulib.texi.
34482         * doc/gnulib.texi: Include it.
34483
34484 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34485
34486         * modules/func (License): Change license to unlimited; there was
34487         no LGPL parts in the module anyway.
34488
34489 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34490
34491         * modules/__func__: Renamed to modules/func.
34492         * modules/__func__-tests: Renamed to modules/func-tests.
34493         * tests/test-__func__.c: Renamed to tests/test-func.c.
34494         * m4/__func__.m4: Renamed to m4/func.m4.
34495         * doc/gnulib.texi (__func__): Section renamed to func.
34496         Suggested by Eric Blake <ebb9@byu.net>.
34497
34498 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34499
34500         * doc/gnulib.texi (__func__): Use C99 terminology when talking
34501         about __func__.  Make example self-contained.  Suggested by Eric
34502         Blake <ebb9@byu.net>.
34503
34504         * tests/test-__func__.c (main): Avoid extraneous () around __func.
34505         Suggested by Eric Blake <ebb9@byu.net>.
34506
34507 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34508
34509         * modules/__func__: New file.
34510         * modules/__func__-tests: New file.
34511         * tests/test-__func__.c: New file.
34512         * m4/__func__.m4: New file.
34513         * doc/gnulib.texi (__func__): Document __func__ module.
34514
34515 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34516
34517         * modules/byteswap (License): Re-license as LGPLv2+.
34518
34519 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34520
34521         * doc/Makefile: Add pdf target.
34522
34523 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34524
34525         * modules/inline (License): Use 'unlimited', since there are only
34526         *.m4 files in this module.
34527
34528 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
34529             Bruno Haible  <bruno@clisp.org>
34530
34531         Add support for HP C 7.1 on OpenVMS 8.3.
34532         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
34533
34534 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
34535
34536         Update VMS specifics.
34537         * lib/getopt.c [VMS]: Remove include of unixlib.h.
34538
34539 2008-03-02  Jim Meyering  <meyering@redhat.com>
34540
34541         Remove the last dependency on the "free" module.
34542         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
34543         Reported by Bob Proulx.
34544
34545         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
34546
34547         Remove useless "if" tests before free.  Deprecate "free" module.
34548         * doc/posix-functions/free.texi: Mention that this
34549         module is no longer useful.
34550         * modules/free (Notice): Say this module is obsolete.
34551         * modules/readutmp (Depends-on): Remove free.
34552         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
34553         * lib/putenv.c (putenv): Likewise.
34554         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
34555         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
34556         * tests/test-c-strcasestr.c (main): Likewise.
34557         * tests/test-c-strstr.c (main): Likewise.
34558         * tests/test-mbscasestr1.c (main): Likewise.
34559         * tests/test-mbscasestr2.c (main): Likewise.
34560         * tests/test-mbsstr1.c (main): Likewise.
34561         * tests/test-mbsstr2.c (main): Likewise.
34562         * tests/test-memmem.c (main): Likewise.
34563         * tests/test-strcasestr.c (main): Likewise.
34564         * tests/test-striconv.c (main): Likewise.
34565         * tests/test-striconveh.c (main): Likewise.
34566         * tests/test-striconveha.c (main): Likewise.
34567         * tests/test-strstr.c (main): Likewise.
34568
34569         * build-aux/git-version-gen: Adjust a comment and the Usage string.
34570
34571         bootstrap: sync from coreutils again
34572         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
34573
34574 2008-03-01  Jim Meyering  <meyering@redhat.com>
34575
34576         bootstrap: sync from coreutils
34577         * build-aux/bootstrap (update_po_files): Copy a .po file into place
34578         also when the target doesn't exist.
34579
34580 2008-03-01  Eric Blake  <ebb9@byu.net>
34581
34582         Fix bugs in last patch.
34583         * lib/memchr2.c (memchr2): Fix typo.
34584         * tests/test-memchr2.c: Test previous bug, and don't use GNU
34585         extension.
34586         Reported by Bruce Korb.
34587
34588         New module 'memchr2'.
34589         * modules/memchr2: New file.
34590         * modules/memchr2-tests: Likewise.
34591         * lib/memchr2.h: Likewise.
34592         * lib/memchr2.c: Likewise, based on memchr.c.
34593         * tests/test-memchr2.c: New test.
34594         * MODULES.html.sh (String handling): Add memchr2.
34595
34596 2008-02-29  Bruno Haible  <bruno@clisp.org>
34597
34598         * modules/freadseek-tests: New file.
34599         * tests/test-freadseek.sh: New file.
34600         * tests/test-freadseek.c: New file.
34601
34602         New module 'freadseek'.
34603         * modules/freadseek: New file.
34604         * lib/freadseek.h: New file.
34605         * lib/freadseek.c: New file.
34606         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
34607
34608 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34609
34610         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
34611         wydawca.
34612
34613         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
34614         program_invocation_name and program_invocation_short_name are
34615         present.
34616
34617 2008-02-28  Bruno Haible  <bruno@clisp.org>
34618
34619         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
34620         * tests/test-freadptr.sh: Also test non-seekable stdin.
34621
34622 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
34623
34624         * build-aux/bootstrap (source_base, m4_base)
34625         (doc_base, tests_base): New variables.
34626         (gnulib_tool_options): Do not hardcode base directories, use
34627         the above variables instead.
34628
34629 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
34630
34631         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
34632
34633 2008-02-28  Bruno Haible  <bruno@clisp.org>
34634
34635         * modules/freadptr-tests: New file.
34636         * tests/test-freadptr.sh: New file.
34637         * tests/test-freadptr.c: New file.
34638
34639         New module 'freadptr'.
34640         * modules/freadptr: New file.
34641         * lib/freadptr.h: New file.
34642         * lib/freadptr.c: New file.
34643         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
34644
34645 2008-02-26  Karl Berry  <karl@freefriends.org>
34646
34647         Sync from Libtool:
34648         * libltdl/argz.c (argz_add, argz_count): New functions.
34649         * libltdl/argz.in.h: Declare them.
34650         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
34651
34652 2008-02-22  Bruno Haible  <bruno@clisp.org>
34653
34654         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
34655         is a pointer type.  Needed for HP-UX 10.
34656         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
34657         * doc/posix-functions/gmtime_r.texi: Likewise.
34658         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
34659
34660 2008-02-24  Bruno Haible  <bruno@clisp.org>
34661
34662         * modules/environ-tests: New file.
34663         * tests/test-environ.c: New file.
34664
34665         New module 'environ'.
34666         * modules/environ: New file.
34667         * lib/unistd.in.h (environ): New declaration.
34668         * m4/environ.m4: New file.
34669         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
34670         after use.
34671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
34672         HAVE_DECL_ENVIRON.
34673         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
34674         HAVE_DECL_ENVIRON.
34675         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
34676         wrong claim that 'environ' is missing on some systems.
34677         * modules/execute (Depends-on): Add environ.
34678         * lib/execute.c (environ): Remove fallback declaration.
34679         * modules/pipe (Depends-on): Add environ.
34680         * lib/pipe.c (environ): Remove fallback declaration.
34681         * modules/setenv (Depends-on): Add environ.
34682         * lib/setenv.c (environ): Remove fallback declaration.
34683         * modules/unsetenv (Depends-on): Add environ.
34684         * lib/unsetenv.c (environ): Remove fallback declaration.
34685         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
34686         m4/environ.m4.
34687         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
34688         (gl_PREREQ_UNSETENV): Likewise.
34689
34690 2008-02-24  Bruno Haible  <bruno@clisp.org>
34691
34692         * doc/posix-functions/environ.texi: Document the MacOS X problem.
34693
34694 2008-02-20  Bob Proulx  <bob@proulx.com>
34695
34696         Enable use of older two part flavor 'git describe'.
34697         * build-aux/git-version-gen: If using the older two part flavor of
34698         git version then recreate the third part now present in the
34699         newer three part flavor of git describe.
34700
34701 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
34702
34703         * lib/fts.c (fts_build): Typo correction to comment.
34704
34705 2008-02-17  Bruno Haible  <bruno@clisp.org>
34706
34707         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
34708         generating no-op conflicts.
34709
34710 2008-02-17  Bruno Haible  <bruno@clisp.org>
34711
34712         Speed up by 10%.
34713         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
34714         result_entries, rather than an index-based loop.
34715
34716 2008-02-17  Bruno Haible  <bruno@clisp.org>
34717
34718         Speed up by 25%.
34719         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
34720         'hashcode_cached'.
34721         (entry_create): New function.
34722         (entry_hashcode): Use the cached hashcode if possible.
34723         (read_changelog_file, try_split_merged_entry): Use entry_create.
34724
34725 2008-02-17  Bruno Haible  <bruno@clisp.org>
34726
34727         Speed up from O(n^2) to O(n) for long ChangeLog files.
34728         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
34729         (read_changelog_file): Change implementation of entries_reversed list
34730         to rbtreehash.
34731         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
34732
34733 2008-02-17  Bruno Haible  <bruno@clisp.org>
34734
34735         New option --split-merged-entry.
34736         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
34737         (find_paragraph_end, try_split_merged_entry): New functions.
34738         (long_options): Add option --split-merged-entry.
34739         (usage): Document option --split-merged-entry.
34740         (main): Implement option --split-merged-entry.
34741         Reported by Eric Blake.
34742
34743 2008-02-17  Bruno Haible  <bruno@clisp.org>
34744
34745         * lib/git-merge-changelog.c: Include c-strstr.h.
34746         (main): Support the "git pull --rebase" situation.
34747         * modules/git-merge-changelog (Depends-on): Add c-strstr.
34748         Reported by Eric Blake.
34749
34750 2008-02-16  Eric Blake  <ebb9@byu.net>
34751
34752         Avoid doubling \ in common case of "c-maybe" quoting style.
34753         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
34754         eliding outer quotes.
34755         * lib/quotearg.h: Document this.
34756         * tests/test-quotearg.c (result_strings, inputs, results_g)
34757         (flag_results, locale_results): Test it by adding a new string to
34758         each test group.
34759         (compare_strings): Test new string.
34760
34761 2008-02-13  Eric Blake  <ebb9@byu.net>
34762
34763         Avoid trigraph quoting in default output.
34764         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
34765         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
34766         unless explicitly requested.
34767         * tests/test-quotearg.c (flag_results, main): Add additional tests.
34768
34769 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
34770
34771         Don't rely on signed integer overflowing to negative value.
34772         * lib/getugroups.c (getugroups): Include <limits.h>.
34773         Instead, compare against INT_MAX, and increment only if the test passes.
34774
34775 2008-02-13  Jim Meyering  <meyering@redhat.com>
34776         and Eric Blake  <ebb9@byu.net>
34777
34778         Avoid shadowing warning and compile errors on Linux.
34779         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
34780         forwarding macros on Linux.
34781         (dcgettext): Define a stub, for Linux.
34782         (results_g, main): Avoid warnings.
34783
34784 2008-02-12  Eric Blake  <ebb9@byu.net>
34785
34786         Silence warning in last patch.
34787         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
34788
34789         Quotearg part 4: add tests, fix c-maybe colon quoting.
34790         * lib/quotearg.h: Improve documentation.
34791         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
34792         escapes when adding outer quotes.  When quoting trigraphs, use
34793         valid C notation.  When quoting NUL, omit extra characters if next
34794         character is not digit.  Alter prototype.
34795         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
34796         callers.
34797         * modules/quotearg-tests: New module.
34798         * tests/test-quotearg.c: New test.
34799
34800 2008-02-07  Eric Blake  <ebb9@byu.net>
34801
34802         Quotearg part 3: add flag to control outer quote elision.
34803         * lib/quotearg.h (c_maybe_quoting_style): New style.
34804         (enum quoting_flags): Better documentation of flags.
34805         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
34806         c-maybe style.
34807         (quotearg_buffer_restyled): Handle new flag to elide outer
34808         quotes.
34809
34810         Quotearg part 2: add flag that can control NUL elision.
34811         * lib/quotearg.h (set_quoting_flags): New prototype.
34812         * lib/quotearg.c (struct quoting_options): Add flag field.
34813         (set_quoting_flags): New function.
34814         (quotearg_buffer_restyled): Add flags parameter.
34815         (quotearg_alloc_mem): Set the flag if length cannot be returned.
34816         (quotearg_n_options): Set the flag, since length cannot be
34817         returned.
34818         (quoting_options_from_style): Default flags correctly.
34819
34820         Quotearg part 1: more wrappers, restore quotearg_char state.
34821         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
34822         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
34823         (quotearg_colon_mem): New wrappers.
34824         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
34825         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
34826         functions.
34827         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
34828         (quotearg_colon_mem): New functions.
34829
34830 2008-02-11  Bruno Haible  <bruno@clisp.org>
34831
34832         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
34833         library in the current directory: it does not work with parallel make.
34834         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34835
34836 2008-02-11  Bruno Haible  <bruno@clisp.org>
34837
34838         * .gitattributes: New file.
34839
34840 2008-02-11  Jim Meyering  <meyering@redhat.com>
34841
34842         useless-if-before-free: Fix reversed exit values.
34843         * build-aux/useless-if-before-free: Use correct values
34844         for EXIT_MATCH and EXIT_NO_MATCH.
34845
34846         * build-aux/useless-if-before-free: Close stdout carefully.
34847
34848 2008-02-10  Bruno Haible  <bruno@clisp.org>
34849
34850         New module 'git-merge-changelog'.
34851         * modules/git-merge-changelog: New file.
34852         * lib/git-merge-changelog.c: New file.
34853
34854 2008-02-10  Jim Meyering  <meyering@redhat.com>
34855
34856         useless-if-before-free: New option: --list (-l).
34857
34858         useless-if-before-free: Don't exit immediately upon open failure.
34859         * build-aux/useless-if-before-free: Exit 2 for errors.
34860         Upon failure to open a file, don't exit immediately.
34861         Rather, just warn and continue with any remaining files.
34862
34863 2008-02-10  Bruno Haible  <bruno@clisp.org>
34864
34865         New abstract list operation 'node_set_value'.
34866         * lib/gl_list.h (gl_list_node_set_value): New function.
34867         (struct gl_list_implementation): New field node_set_value.
34868         * lib/gl_list.c (gl_list_node_set_value): New function.
34869         * lib/gl_array_list.c (gl_array_node_set_value): New function.
34870         (gl_array_list_implementation): Update.
34871         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
34872         (gl_carray_list_implementation): Update.
34873         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
34874         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
34875         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
34876         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
34877         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
34878         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
34879         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
34880         Update.
34881         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
34882         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
34883         (gl_sublist_list_implementation): Update.
34884
34885 2008-02-10  Bruno Haible  <bruno@clisp.org>
34886
34887         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
34888         Needed when ELEMENT is #defined to 'some_type *'.
34889
34890 2008-02-10  Jim Meyering  <meyering@redhat.com>
34891
34892         New script and module: useless-if-before-free
34893         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
34894         * build-aux/useless-if-before-free: New file.
34895         * modules/useless-if-before-free: New file.
34896
34897         * build-aux/gitlog-to-changelog: Use committer date, not author date.
34898
34899         xstrtol_error: Fix typo.
34900         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
34901         s/exit_failure/exit_status/.
34902
34903 2008-02-09  Jim Meyering  <meyering@redhat.com>
34904
34905         New script and module: gitlog-to-changelog
34906         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
34907         * modules/gitlog-to-changelog: New file.
34908         * build-aux/gitlog-to-changelog: New file.
34909
34910 2008-02-08  Jim Meyering  <meyering@redhat.com>
34911
34912         Avoid two "parameter unused" warnings.
34913         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
34914         Mark "st" as used.
34915
34916         Use "git COMMAND", not "git-COMMAND".
34917         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
34918         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
34919         * build-aux/git-version-gen: Use "git status", not "git-status".
34920
34921 2008-02-07  Bruno Haible  <bruno@clisp.org>
34922
34923         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
34924         Avoids a crash on Windows Vista.
34925         Reported by Adam Strzelecki <ono@java.pl> via
34926         Simon Josefsson <simon@josefsson.org>.
34927
34928 2008-02-06  Bruno Haible  <bruno@clisp.org>
34929
34930         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
34931         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
34932         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
34933         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
34934         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34935         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34936         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
34937         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
34938         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34939         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34940         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34941         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34942         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34943         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34944         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34945         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
34946         left-adjust flag.
34947         * tests/test-snprintf-posix.h (test_function): Likewise.
34948         * tests/test-sprintf-posix.h (test_function): Likewise.
34949         * tests/test-vasprintf-posix.c (test_function): Likewise.
34950         * doc/posix-functions/fprintf.texi: Update.
34951         * doc/posix-functions/printf.texi: Update.
34952         * doc/posix-functions/snprintf.texi: Update.
34953         * doc/posix-functions/sprintf.texi: Update.
34954         * doc/posix-functions/vfprintf.texi: Update.
34955         * doc/posix-functions/vprintf.texi: Update.
34956         * doc/posix-functions/vsnprintf.texi: Update.
34957         * doc/posix-functions/vsprintf.texi: Update.
34958         Reported by Peter Fales <psfales@alcatel-lucent.com>.
34959
34960 2008-02-06  Bruno Haible  <bruno@clisp.org>
34961
34962         Fix bug introduced on 2008-01-26.
34963         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
34964
34965 2008-02-06  Bruno Haible  <bruno@clisp.org>
34966
34967         Fix bug introduced on 2007-06-10.
34968         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
34969         !NEED_PRINTF_FLAG_ZERO.
34970
34971 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
34972
34973         getloadavg: use libperfstat on AIX5
34974         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
34975
34976 2008-02-03  Bruno Haible  <bruno@clisp.org>
34977
34978         * lib/diffseq.h: Add comments about required #includes.
34979         Reported by Michael Biggs <gnulib@doubleplum.net>.
34980
34981 2008-02-01  Bruno Haible  <bruno@clisp.org>
34982
34983         * users.txt: Add gnuit.
34984
34985 2008-01-31  Bruno Haible  <bruno@clisp.org>
34986
34987         * lib/md4.c (set_uint32): Mark as inline.
34988         * lib/md5.c (set_uint32): Likewise.
34989         * lib/sha1.c (set_uint32): Likewise.
34990         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
34991         * m4/md5.m4 (gl_MD5): Likewise.
34992         * m4/sha1.m4 (gl_SHA1): Likewise.
34993
34994 2008-01-31  Jim Meyering  <meyering@redhat.com>
34995
34996         Use "sizeof VAR", rather than a literal "4".
34997         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
34998         * lib/md4.c (md4_read_ctx): Likewise.
34999         * lib/sha1.c (sha1_read_ctx): Likewise.
35000
35001 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35002
35003         * tests/test-sha1.c: New file, based on test-md5.c.
35004
35005         * modules/crypto/sha1-tests: New file.
35006
35007 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35008
35009         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
35010
35011 2008-01-31  Jim Meyering  <meyering@redhat.com>
35012
35013         Prefer "sizeof v" over the equivalent "4".
35014         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
35015         * lib/md5.c (set_uint32): Likewise.
35016         * lib/sha1.c (set_uint32): Likewise.
35017
35018 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35019
35020         * lib/sha1.c (set_uint32): Mark function as static.
35021
35022 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35023
35024         md2: clarify comments to say that alignment is not required.
35025         * lib/md2.h: Remove warning about alignment in comment.
35026         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
35027         never been required.
35028
35029 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35030
35031         md4: adapt alignment constraint fix from sha1.
35032         * lib/md4.c (set_uint32): New function, from sha1.c
35033         (md4_read_ctx): Use it.
35034         (md4_finish_ctx): Doc fix.
35035         * lib/md4.h: Doc fix.
35036
35037 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35038
35039         md5: adapt alignment constraint fix from sha1.
35040         * lib/md5.c (set_uint32): New function, from sha1.c
35041         (md5_read_ctx): Use it.
35042         (md5_finish_ctx): Doc fix.
35043         * lib/md5.h: Doc fix.
35044
35045 2008-01-30  Peter Palfrader  <weasel@debian.org>
35046
35047         sha1: remove the result buffer alignment constraint
35048         * lib/sha1.c (set_uint32): New function.
35049         (sha1_read_ctx): Rewrite to remove the result buffer alignment
35050         constraint.
35051         (sha1_finish_ctx): Remove comment warning about alignment constraint.
35052         * lib/sha1.h: Likewise.
35053
35054 2008-01-30  Andreas Schwab  <schwab@suse.de>
35055             Bruno Haible  <bruno@clisp.org>
35056
35057         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
35058         correct definition of LDBL_MIN_EXP.
35059
35060 2008-01-30  Karl Berry  <karl@gnu.org>
35061
35062         * config/srclist-update: try to preserve x bit on updates.
35063         * config/srclistvars.sh: update for karl.
35064
35065 2008-01-29  Jim Meyering  <meyering@redhat.com>
35066
35067         vasnprintf.c: Avoid warning about unused label
35068         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
35069         "overflow" label definition and associated code with the
35070         same cpp condition that guards the sole use of that label.
35071
35072 2008-01-26  Bruno Haible  <bruno@clisp.org>
35073
35074         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
35075         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
35076         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
35077         * lib/isnanl-nolibm.h (isnanl): Likewise.
35078         Reported by Paul Eggert <eggert@cs.ucla.edu>.
35079
35080 2008-01-26  Bruno Haible  <bruno@clisp.org>
35081
35082         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
35083         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
35084
35085 2008-01-26  Bruno Haible  <bruno@clisp.org>
35086
35087         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
35088         GCC >= 4.0 built-in.
35089         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
35090
35091 2008-01-26  Bruno Haible  <bruno@clisp.org>
35092
35093         Rename isnan, applicable to 'double' only, to isnand.
35094         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
35095         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
35096         (configure.ac): Update.
35097         (Include): Replace "isnan.h" with "isnand.h".
35098         * m4/isnand.m4: Renamed from m4/isnan.m4.
35099         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
35100         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
35101         instead of isnan.c.
35102         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
35103         instead of HAVE_ISNAN_IN_LIBC.
35104         (isnand): Renamed from isnan.
35105         * lib/isnand.c: New file.
35106         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
35107         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
35108         (Makefile.am): Update.
35109         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
35110         Include isnand.h instead of isnan.h.
35111         (main): Test isnand instead of isnan.
35112         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
35113         isnan-nolibm.
35114         * modules/frexp (Depends-on): Likewise.
35115         * modules/frexp-tests (Depends-on): Likewise.
35116         * modules/frexp-nolibm (Depends-on): Likewise.
35117         * modules/frexp-nolibm-tests (Depends-on): Likewise.
35118         * modules/isfinite (Depends-on): Likewise.
35119         * modules/round-tests (Depends-on): Likewise.
35120         * modules/signbit (Depends-on): Likewise.
35121         * modules/signbit-tests (Depends-on): Likewise.
35122         * modules/snprintf-posix (Depends-on): Likewise.
35123         * modules/sprintf-posix (Depends-on): Likewise.
35124         * modules/trunc-tests (Depends-on): Likewise.
35125         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35126         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35127         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35128         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35129         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35130         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35131         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35132         * modules/vasnprintf-posix (Depends-on): Likewise.
35133         * modules/vasprintf-posix (Depends-on): Likewise.
35134         * modules/vfprintf-posix (Depends-on): Likewise.
35135         * modules/vsnprintf-posix (Depends-on): Likewise.
35136         * modules/vsprintf-posix (Depends-on): Likewise.
35137         * lib/frexp.c: Include isnand.h instead of isnan.h.
35138         (ISNAN): Set to isnand instead of isnan.
35139         * lib/isfinite.c: Include isnand.h instead of isnan.h.
35140         (gl_isfinited): Use isnand instead of isnan.
35141         * lib/signbitd.c: Include isnand.h instead of isnan.h.
35142         (gl_signbitd): Use isnand instead of isnan.
35143         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
35144         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
35145         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
35146         (main): Use isnand instead of isnan.
35147         * tests/test-round1.c: Include isnand.h.
35148         (main): Use isnand instead of isnan.
35149         * tests/test-round2.c: Include isnand.h instead of isnan.h.
35150         (ISNAN): Set to isnand instead of isnan.
35151         * tests/test-trunc1.c: Include isnand.h.
35152         (main): Use isnand instead of isnan.
35153         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
35154         (equal): Use isnand instead of isnan.
35155         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
35156         isnand-nolibm.
35157         * NEWS: Mention the change.
35158
35159 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
35160             Bruno Haible  <bruno@clisp.org>
35161
35162         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
35163         the GCC builtins for signbits are present and set
35164         REPLACE_SIGNBIT_USING_GCC if so.
35165         * lib/math.in.h (signbit): Define using GCC builtins if
35166         REPLACE_SIGNBIT_USING_GCC is set.
35167         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
35168         REPLACE_SIGNBIT_USING_GCC.
35169         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
35170
35171 2008-01-25  Jim Meyering  <meyering@redhat.com>
35172
35173         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
35174         * lib/poll.c: Include <config.h>, not "config.h".
35175         * tests/test-getaddrinfo.c: Likewise.
35176
35177 2008-01-25  Simon Josefsson  <simon@josefsson.org>
35178
35179         * modules/sockets-tests: New file.
35180
35181 2008-01-24  Simon Josefsson  <simon@josefsson.org>
35182
35183         * modules/sockets: New module, can be used to call WSA_Startup and
35184         WSA_Cleanup when needed.
35185
35186         * lib/sockets.h, lib/sockets.c: New files.
35187
35188         * m4/sockets.m4: New file.
35189
35190         * tests/test-sockets.c: New file.
35191
35192 2008-01-19  Bruno Haible  <bruno@clisp.org>
35193
35194         * doc/posix-headers: Renamed from doc/headers.
35195         * doc/posix-functions: Renamed from doc/functions.
35196         * doc/gnulib.texi: Update.
35197
35198 2008-01-19  Bruno Haible  <bruno@clisp.org>
35199
35200         * doc/glibc-functions/strcasestr.texi: Include contents of
35201         doc/functions/strcasestr.texi, fixing the list of platforms.
35202         * doc/functions/strcasestr.texi: Remove file.
35203
35204 2008-01-19  Bruno Haible  <bruno@clisp.org>
35205
35206         * doc/glibc-functions/memmem.texi: Include contents of
35207         doc/functions/memmem.texi.
35208         * doc/functions/memmem.texi: Remove file.
35209
35210 2008-01-18  Bruno Haible  <bruno@clisp.org>
35211
35212         * doc/glibc-functions/*.texi: New files.
35213         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
35214         to use the new files.
35215
35216 2008-01-17  Bruno Haible  <bruno@clisp.org>
35217
35218         * tests/test-gethostname.c (main): Fix printf statement.
35219
35220 2008-01-17  Simon Josefsson  <simon@josefsson.org>
35221
35222         * modules/gethostname-tests: New file.
35223
35224         * tests/test-gethostname.c: New file.
35225
35226 2008-01-17  Simon Josefsson  <simon@josefsson.org>
35227
35228         * lib/gethostname.c: Include string.h unconditionally, strncpy is
35229         used by the UNAME case.  Reported by Bruno Haible
35230         <bruno@clisp.org>.
35231
35232 2008-01-17  Eric Blake  <ebb9@byu.net>
35233
35234         Convert c-strcasestr to be more efficient.
35235         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
35236         (Depends-on): Add c-strcase, remove malloca, strnlen.
35237         * tests/test-c-strcasestr.c (main): Enhance test.
35238         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
35239
35240 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
35241
35242         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
35243         Use it in creating po/Makevars.
35244
35245 2008-01-15  Simon Josefsson  <simon@josefsson.org>
35246
35247         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
35248         Applications that requires it should initialize libgcrypt
35249         manually.
35250
35251 2008-01-16  Simon Josefsson  <simon@josefsson.org>
35252
35253         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
35254
35255 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
35256
35257         Fix problem with getdate on mingw32 reported by Simon Josefsson
35258         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
35259         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
35260         tzname", when deciding whether to declare tzname.
35261         * lib/strftime.c (tzname): Likewise.
35262
35263 2008-01-15  Bruno Haible  <bruno@clisp.org>
35264
35265         Work around a MacOS X 10.5 bug in frexpl().
35266         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
35267         * doc/functions/frexpl.texi: Document the bug.
35268         Reported by Elias Pipping <pipping@gentoo.org>.
35269
35270 2008-01-14  Eric Blake  <ebb9@byu.net>
35271
35272         Touch up previous patch.
35273         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
35274         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
35275
35276         Convert strcasestr module to use Two-Way algorithm.
35277         * modules/strcasestr-simple: New module, based on the old
35278         strcasestr, but with Two-Way rather than KMP.
35279         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
35280         * lib/string.in.h (rpl_strcasestr): Declare.
35281         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
35282         performance.
35283         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
35284         * modules/string (Makefile.am): Support strcasestr.
35285         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35286         * modules/strcasestr-tests (Depends-on): Check for alarm.
35287         * tests/test-strcasestr.c: Augment test.
35288         * lib/str-two-way.h: Clean up stray macro.
35289         * NEWS: Document new module.
35290         * MODULES.html.sh (string handling): Likewise.
35291         * doc/functions/strcasestr.texi: New file.
35292         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
35293         here, since it is not a POSIX function.
35294
35295 2008-01-14  Colin Watson  <cjwatson@debian.org>
35296             Bruno Haible  <bruno@clisp.org>
35297
35298         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
35299         works fine; if not, set REPLACE_STRSIGNAL.
35300         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
35301         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35302         REPLACE_STRSIGNAL.
35303         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
35304         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
35305         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
35306
35307 2008-01-14  Bruno Haible  <bruno@clisp.org>
35308
35309         * modules/strsignal (Include): Change to <string.h>.
35310
35311 2008-01-14  Colin Watson  <cjwatson@debian.org>
35312
35313         * modules/argp (Notice): Add a notice recommending to change
35314         XGETTEXT_OPTIONS.
35315         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
35316
35317 2008-01-13  Colin Watson  <cjwatson@debian.org>
35318
35319         * modules/strsignal-tests: New file.
35320         * tests/test-strsignal.c: New file.
35321
35322         * lib/strsignal.c: New file, from glibc with modifications.
35323         * lib/siglist.h: New file, from glibc with modifications.
35324         * lib/string.in.h (strsignal): New declaration.
35325         * m4/strsignal.m4: New file.
35326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35327         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
35328         * modules/strsignal: New file.
35329         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
35330         HAVE_DECL_STRSIGNAL.
35331
35332 2008-01-13  Bruno Haible  <bruno@clisp.org>
35333
35334         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
35335         locale encoding is not ASCII. Needed for OpenBSD 4.0.
35336         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35337         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35338
35339 2008-01-13  Bruno Haible  <bruno@clisp.org>
35340
35341         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
35342         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
35343         * lib/argp.h (__attribute__): Likewise.
35344         * lib/c-stack.c (__attribute__): Likewise.
35345         * lib/error.h (__attribute__): Likewise.
35346         * lib/fts.c (__attribute__): Likewise.
35347         * lib/openat.h (__attribute__): Likewise.
35348         * lib/stdio.in.h (__attribute__): Likewise.
35349         * lib/string.in.h (__attribute__): Likewise.
35350         * lib/utimens.c (__attribute__): Likewise.
35351         * lib/vasnprintf.h (__attribute__): Likewise.
35352         * lib/xalloc.h (__attribute__): Likewise.
35353         * lib/xprintf.h (__attribute__): Likewise.
35354         * lib/xstrtol.h (__attribute__): Likewise.
35355         * lib/xvasprintf.h (__attribute__): Likewise.
35356
35357 2008-01-12  Bruno Haible  <bruno@clisp.org>
35358
35359         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
35360         * doc/glibc-headers/a.out.texi: New file.
35361         * doc/glibc-headers/aliases.texi: New file.
35362         * doc/glibc-headers/alloca.texi: New file.
35363         * doc/glibc-headers/ar.texi: New file.
35364         * doc/glibc-headers/argp.texi: New file.
35365         * doc/glibc-headers/argz.texi: New file.
35366         * doc/glibc-headers/byteswap.texi: New file.
35367         * doc/glibc-headers/crypt.texi: New file.
35368         * doc/glibc-headers/endian.texi: New file.
35369         * doc/glibc-headers/envz.texi: New file.
35370         * doc/glibc-headers/err.texi: New file.
35371         * doc/glibc-headers/error.texi: New file.
35372         * doc/glibc-headers/execinfo.texi: New file.
35373         * doc/glibc-headers/fpu_control.texi: New file.
35374         * doc/glibc-headers/fstab.texi: New file.
35375         * doc/glibc-headers/fts.texi: New file.
35376         * doc/glibc-headers/getopt.texi: New file.
35377         * doc/glibc-headers/ieee754.texi: New file.
35378         * doc/glibc-headers/ifaddrs.texi: New file.
35379         * doc/glibc-headers/libintl.texi: New file.
35380         * doc/glibc-headers/mcheck.texi: New file.
35381         * doc/glibc-headers/mntent.texi: New file.
35382         * doc/glibc-headers/obstack.texi: New file.
35383         * doc/glibc-headers/paths.texi: New file.
35384         * doc/glibc-headers/printf.texi: New file.
35385         * doc/glibc-headers/pty.texi: New file.
35386         * doc/glibc-headers/resolv.texi: New file.
35387         * doc/glibc-headers/shadow.texi: New file.
35388         * doc/glibc-headers/sysexits.texi: New file.
35389         * doc/glibc-headers/ttyent.texi: New file.
35390
35391 2008-01-12  Jim Meyering  <meyering@redhat.com>
35392
35393         announce-gen: emit Gnulib's git-based version string.
35394         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
35395         New option --gnulib-version=V, where V is expected to be
35396         the output of running git describe in the gnulib directory.
35397         (get_tool_versions): Request feedback on xdelta.  I suspect it's
35398         not useful, and plan to stop publishing an xdelta file with each
35399         coreutils release.
35400
35401         * build-aux/announce-gen: Also check for lzma-compressed files.
35402
35403 2008-01-11  Bruno Haible  <bruno@clisp.org>
35404
35405         * tests/test-memmem.c (main): Increase maximum allowed time.
35406         * tests/test-strstr.c (main): Likewise.
35407
35408 2008-01-11  Bruno Haible  <bruno@clisp.org>
35409
35410         * doc/functions/memmem.texi: Add more precisions about platforms.
35411         * doc/functions/strstr.texi: Likewise.
35412
35413 2008-01-10  Eric Blake  <ebb9@byu.net>
35414
35415         * m4/strstr.m4: Delete cruft from copy-n-paste.
35416         Reported by Bruno Haible.
35417
35418 2008-01-10  Bruno Haible  <bruno@clisp.org>
35419
35420         Make c-strstr rely on strstr.
35421         * lib/c-strstr.c: Don't include str-kmp.h.
35422         (c_strstr): Define in terms of strstr.
35423         * modules/c-strstr (Files): Remove lib/str-kmp.h.
35424         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
35425
35426 2008-01-10  Bruno Haible  <bruno@clisp.org>
35427
35428         * doc/gnulib.texi (String Functions in C Locale): New section.
35429         * doc/c-ctype.texi: New file.
35430         * doc/c-strcase.texi: New file.
35431         * doc/c-strcaseeq.texi: New file.
35432         * doc/c-strcasestr.texi: New file.
35433         * doc/c-strstr.texi: New file.
35434         * doc/c-strtod.texi: New file.
35435         * doc/c-strtold.texi: New file.
35436
35437 2008-01-10  Eric Blake  <ebb9@byu.net>
35438
35439         * lib/relocatable.h: Fix a comment.
35440
35441 2008-01-10  Eric Blake  <ebb9@byu.net>
35442
35443         Share two-way algorithm.
35444         * lib/str-two-way.h: New file, merged from...
35445         * lib/memmem.c: ...here...
35446         * lib/strstr.c: ...and here.
35447         * modules/memmem (Files): Use it.
35448         * modules/strstr (Files): Likewise.
35449
35450         Avoid quadratic strstr implementations.
35451         * lib/strstr.c: New file.
35452         * m4/strstr.m4: Likewise.
35453         * modules/strstr: Likewise.
35454         * modules/strstr-tests: Likewise.
35455         * tests/test-strstr.c: Likewise.
35456         * lib/string.in.h (rpl_strstr): Declare.
35457         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
35458         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
35459         * modules/string (Makefile.am): Likewise.
35460         * MODULES.html.sh (string handling): Mention new module.
35461         * doc/functions/strstr.texi (strstr): Document the bug.
35462
35463 2008-01-10  Bruno Haible  <bruno@clisp.org>
35464
35465         * lib/relocatable.h (relocate): State whether result is freshly
35466         allocated or not.
35467         * lib/relocatable.c (relocate): Return a freshly allocated string
35468         instead of a pointer to a privately held string.
35469         Reported by Sylvain Beucler <beuc@gnu.org>.
35470
35471 2008-01-10  Colin Watson  <cjwatson@debian.org>
35472
35473         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
35474         s/S_ISNLK/S_ISLNK/.
35475
35476 2008-01-09  Bruno Haible  <bruno@clisp.org>
35477
35478         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
35479         and other files.
35480         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
35481         if it's only a guess.
35482         * modules/memmem: Simplify by depending on memmem-simple.
35483
35484 2008-01-09  Bruno Haible  <bruno@clisp.org>
35485
35486         Work around OpenBSD 4.0 tdelete() bug.
35487         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
35488         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
35489         macros and don't redefine the enum values.
35490         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
35491         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
35492         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
35493
35494 2008-01-09  Bruno Haible  <bruno@clisp.org>
35495
35496         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
35497         (main): Don't perform the tests if setlocale did not install a UTF-8
35498         locale. Needed on OpenBSD 4.0.
35499         * modules/wcwidth-tests (Depends-on): Add localcharset.
35500
35501 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35502
35503         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
35504         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
35505         * NEWS: announce this.
35506         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
35507
35508 2008-01-09  Simon Josefsson  <simon@josefsson.org>
35509         and Eric Blake  <ebb9@byu.net>
35510
35511         Add memmem-simple module.
35512         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
35513         (gl_FUNC_MEMMEM): Separate performance from presence checks.
35514         * modules/memmem-simple: New file.
35515         * modules/memmem (Description): Tweak.
35516         * MODULES.html.sh (string handling): Mention new module.
35517         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
35518         addressed by memmem-simple.
35519         * NEWS: Document the difference.
35520
35521 2008-01-09  Eric Blake  <ebb9@byu.net>
35522
35523         Give gcc some memmem optimization hints.
35524         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
35525         (strcasestr): Declare as pure.
35526         * modules/memmem (Maintainer): Claim my implementation.
35527
35528 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35529
35530         Support AIX 6.1 and higher.
35531         * build-aux/config.libpath: Likewise.
35532         * build-aux/config.rpath: Likewise.
35533
35534 2008-01-08  Jim Meyering  <meyering@redhat.com>
35535             Bruno Haible  <bruno@clisp.org>
35536
35537         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
35538         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
35539         Reported by Peter Fales in
35540         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
35541
35542 2008-01-08  Bruno Haible  <bruno@clisp.org>
35543
35544         * modules/unictype/category-of (Depends-on): Add
35545         unictype/category-none.
35546         * modules/unictype/category-and-tests (Depends-on): Add
35547         unictype/category-{L,N,Lu,Nd}.
35548         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
35549         * modules/unictype/category-or-tests (Depends-on): Add
35550         unictype/category-{L,N}.
35551         * modules/unictype/category-name-tests (Depends-on): Add
35552         unictype/category-{Z,Nl}.
35553         Reported by Simon Josefsson.
35554
35555 2008-01-08  Bruno Haible  <bruno@clisp.org>
35556
35557         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
35558         convention better.
35559         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
35560         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
35561         Reported by Peter Miller <millerp@canb.auug.org.au>.
35562
35563 2008-01-08  Eric Blake  <ebb9@byu.net>
35564
35565         Rewrite memmem to guarantee linear complexity without malloc.
35566         * lib/memmem.c (memmem): Use Two-Way rather than
35567         Knuth-Morris-Pratt, to allow O(1) space usage.
35568         (critical_factorization, two_way_short_needle)
35569         (two_way_long_needle): New functions.
35570         (knuth_morris_pratt): Delete.
35571         * modules/memmem (Depends-on): No longer need malloca or stdbool.
35572         Add stdint.
35573         * tests/test-memmem.c (main): Add tests for periodic needle and
35574         sublinear performance.
35575         * doc/functions/memmem.texi (memmem): Document other deficiencies
35576         in cygwin and older glibc.
35577
35578 2008-01-08  Bruno Haible  <bruno@clisp.org>
35579
35580         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
35581         augmentation.
35582
35583 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
35584
35585         Add a configure time option: --disable-acl.
35586         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
35587         AC_ARG_ENABLE(acl).
35588
35589 2008-01-06  Simon Josefsson  <simon@josefsson.org>
35590
35591         * tests/test-localename.c: Don't include obsolete "setenv.h".
35592
35593         * modules/localename-tests (Depends-on): Need unsetenv.
35594
35595 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35596
35597         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
35598
35599 2008-01-06  Colin Watson  <cjwatson@debian.org>
35600
35601         * users.txt: Add man-db.
35602
35603 2008-01-07  Bruno Haible  <bruno@clisp.org>
35604
35605         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
35606         previous section name.
35607
35608 2008-01-07  Bruno Haible  <bruno@clisp.org>
35609
35610         * lib/progname.c (set_program_name): Don't strip off a leading
35611         "lt-" prefix outside a .libs directory.
35612         Suggested by Paul Eggert.
35613
35614 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
35615             Bruno Haible  <bruno@clisp.org>
35616
35617         Improve memory cleanup in 'relocatable' module.
35618         * lib/relocatable.h (compute_curr_prefix): Change return type to
35619         'char *'.
35620         * lib/relocatable.c (compute_curr_prefix): Change return type to
35621         'char *'. Free curr_installdir after use.
35622         (relocate): Free curr_prefix_better after use.
35623         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
35624
35625 2008-01-01  Bruno Haible  <bruno@clisp.org>
35626
35627         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
35628         failure on older glibc systems.
35629         Reported by Peter Fales <psfales@alcatel-lucent.com>.
35630
35631 2008-01-05  Eric Blake  <ebb9@byu.net>
35632
35633         Avoid quadratic system memmem.
35634         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
35635         Reported by Ralf Wildenhues.
35636
35637         Fix memmem test for mingw.
35638         * modules/memmem-tests (configure.ac): Check for alarm.
35639         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
35640         it.
35641         * doc/functions/memmem.texi: New file.
35642         * doc/gnulib.texi (Function Substitutes): Add memmem.
35643         Reported by Bruno Haible.
35644
35645 2008-01-04  Bruno Haible  <bruno@clisp.org>
35646
35647         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
35648         Require gl_HEADER_STRINGS_H_DEFAULTS, not
35649         gl_HEADER_STRING_H_DEFAULTS.
35650
35651 2008-01-04  Eric Blake  <ebb9@byu.net>
35652
35653         Shorten duration of memmem test.
35654         * tests/test-memmem.c (main): Use alarm to declare failure if test
35655         is taking too long.
35656         Reported by Ralf Wildenhues.
35657
35658 2007-12-21  Simon Josefsson  <simon@josefsson.org>
35659
35660         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
35661         string, needed by strerror.
35662
35663 2008-01-03  Colin Watson  <cjwatson@debian.org>
35664             Bruno Haible  <bruno@clisp.org>
35665
35666         * doc/gnulib-tool.texi (Localization): New section.
35667
35668 2008-01-02  Bruno Haible  <bruno@clisp.org>
35669
35670         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
35671         variables to 'unsigned char *' type.
35672         Reported by Paul Eggert.
35673
35674 2008-01-02  Jim Meyering  <jim@meyering.net>
35675
35676         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
35677
35678 2007-12-31  Jim Meyering  <jim@meyering.net>
35679
35680         Avoid use of private FTS type name.
35681         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
35682
35683 2007-12-30  Karl Berry  <karl@gnu.org>
35684
35685         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
35686         work around defect in Texinfo and/or the standalone Info browser.
35687
35688 2007-12-30  Bruno Haible  <bruno@clisp.org>
35689
35690         Unify 5 copies of the KMP code.
35691         * lib/str-kmp.h: New file.
35692         * lib/c-strcasestr.c: Include str-kmp.h.
35693         (knuth_morris_pratt): Remove function.
35694         (c_strcasestr): Update.
35695         * lib/c-strstr.c: Include str-kmp.h.
35696         (knuth_morris_pratt): Remove function.
35697         (c_strcasestr): Update.
35698         * lib/mbscasestr.c: Include str-kmp.h.
35699         (knuth_morris_pratt_unibyte): Remove function.
35700         * lib/mbsstr.c: Include str-kmp.h.
35701         (knuth_morris_pratt_unibyte): Remove function.
35702         * lib/strcasestr.c: Include str-kmp.h.
35703         (knuth_morris_pratt): Remove function.
35704         (strcasestr): Update.
35705         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
35706         * modules/c-strstr (Files): Likewise.
35707         * modules/mbscasestr (Files): Likewise.
35708         * modules/mbsstr (Files): Likewise.
35709         * modules/strcasestr (Files): Likewise.
35710         Suggested by Paul Eggert.
35711
35712 2007-12-30  Bruno Haible  <bruno@clisp.org>
35713
35714         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
35715         defined.
35716
35717 2007-12-30  Bruno Haible  <bruno@clisp.org>
35718
35719         * lib/xmalloca.h: Include xalloc.h.
35720         (xnmalloca): New macro.
35721
35722 2007-12-30  Bruno Haible  <bruno@clisp.org>
35723
35724         * lib/malloca.h (nmalloca): New macro.
35725         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
35726         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
35727         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
35728         knuth_morris_pratt_multibyte): Likewise.
35729         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
35730         knuth_morris_pratt_multibyte): Likewise.
35731         * lib/memmem.c (knuth_morris_pratt): Likewise.
35732         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
35733
35734 2007-12-25  Bruno Haible  <bruno@clisp.org>
35735
35736         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
35737         * lib/glob.c: Don't include openat.h.
35738         (link_exists2_p): Add back the code that deals with the
35739         !GLOB_ALTDIRFUNC case.
35740         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
35741         let it do the filename concatenation.
35742         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
35743         * modules/glob (Depends-on): Remove openat.
35744
35745 2007-12-31  Bruno Haible  <bruno@clisp.org>
35746
35747         * modules/dirfd (License): Change to LGPLv2+.
35748         Approved by Jim Meyering.
35749
35750 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
35751
35752         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
35753         when multiplying M by sizeof (size_t).
35754
35755 2007-12-10  Martin Lambers  <marlam@marlam.de>
35756
35757         Override getpagesize on mingw.
35758         * lib/getpagesize.c: New file.
35759         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
35760         * modules/getpagesize (Files): Add lib/getpagesize.c.
35761         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
35762         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35763         REPLACE_GETPAGESIZE.
35764         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
35765
35766 2007-12-25  Bruno Haible  <bruno@clisp.org>
35767
35768         * modules/localcharset (Notice): New field.
35769         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
35770         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
35771
35772 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
35773             Bruno Haible  <bruno@clisp.org>
35774
35775         Avoid using the syntax symbol() in formatted documentation.
35776         * MODULES.html.sh (func_module): When replacing symbol() with a
35777         hyperlink, remove the parentheses. Show an error if some remain.
35778         Recognize and render the '...' syntax.
35779         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
35780         Rework. Add paragraph about GCC's inlining.
35781         * doc/alloca.texi: Likewise.
35782         * doc/error.texi: Remove parentheses from symbol reference.
35783         * doc/gnulib-intro.texi: Likewise.
35784         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
35785         * modules/fnmatch (Description): Reword to say "the ... function".
35786         * modules/full-read (Description): Likewise.
35787         * modules/full-write (Description): Likewise.
35788         * modules/safe-read (Description): Likewise.
35789         * modules/safe-write (Description): Likewise.
35790         * modules/strchrnul (Description): Likewise.
35791         * modules/trim (Description): Likewise.
35792         * modules/error (Description): Remove parentheses from symbol
35793         references.
35794         * modules/verror (Description): Likewise.
35795         Reported by Karl Berry.
35796
35797 2007-12-25  Bruno Haible  <bruno@clisp.org>
35798
35799         Fixup after 2007-10-16 commit.
35800         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
35801
35802 2007-12-24  Bruno Haible  <bruno@clisp.org>
35803
35804         Make --enable-relocatable work with DESTDIR.
35805         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
35806         to compute installdir from destprog.
35807         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
35808         also set the RELOC_DESTDIR variable.
35809         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
35810
35811 2007-12-24  Bruno Haible  <bruno@clisp.org>
35812
35813         Fix link error due to xalloc_die().
35814         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
35815         of xreadlink.
35816         * lib/relocwrapper.c: Update comments.
35817         * build-aux/install-reloc: Remove xreadlink.c from file list.
35818         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
35819         xreadlink.c.
35820         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
35821
35822 2007-12-24  Bruno Haible  <bruno@clisp.org>
35823
35824         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
35825         * lib/setenv.h: Remove file.
35826         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
35827         lib/setenv.h.
35828         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
35829         (Depends-on): Add stdlib.
35830         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
35831         gl_FUNC_UNSETENV.
35832         (Include): Replace setenv.h with <stdlib.h>.
35833         * modules/unsetenv: New file.
35834         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
35835         * lib/unsetenv.c: Include <stdlib.h> first.
35836         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
35837         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
35838         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
35839         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
35840         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
35841         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
35842         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
35843         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
35844         * doc/functions/unsetenv.texi: Update.
35845         * modules/xsetenv (Depends-on): Add unsetenv.
35846         * modules/getdate (Depends-on): Likewise.
35847         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
35848         * lib/xsetenv.c: Don't include setenv.h.
35849         * lib/getdate.y: Likewise.
35850         * lib/relocwrapper.c: Likewise.
35851         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
35852         (Depends-on): Add stdlib.
35853         * NEWS: Mention the changes.
35854         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
35855
35856 2007-12-23  Bruno Haible  <bruno@clisp.org>
35857
35858         * lib/memmem.c (memmem): Use lowercase variable names. Tab
35859         indentation.
35860
35861 2007-12-23  Bruno Haible  <bruno@clisp.org>
35862
35863         * lib/c-strcasestr.c: Add more comments.
35864         * lib/c-strstr.c: Likewise.
35865         * lib/mbscasestr.c: Likewise.
35866         * lib/mbsstr.c: Likewise.
35867         * lib/strcasestr.c: Likewise.
35868         * lib/memmem.c: Likewise.
35869
35870 2007-12-23  Bruno Haible  <bruno@clisp.org>
35871
35872         * tests/test-memmem.c: Include <string.h> first.
35873
35874 2007-12-22  Bruno Haible  <bruno@clisp.org>
35875
35876         * gnulib-tool (func_create_testdir): Change $auxdir while generating
35877         the contents of $testsbase.
35878         Reported by Ralf Wildenhues.
35879
35880 2007-12-22  Bruno Haible  <bruno@clisp.org>
35881
35882         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
35883         two variables local_ldadd_before, local_ldadd_last.
35884
35885 2007-12-20  Eric Blake  <ebb9@byu.net>
35886
35887         Work around circular library issue when cross-compiling.
35888         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
35889         that progname.o does not need to pull in rpl_memcmp.
35890
35891 2007-12-19  Eric Blake  <ebb9@byu.net>
35892
35893         Fix memmem to avoid O(n^2) worst-case complexity.
35894         * lib/memmem.c (knuth_morris_pratt): New function.
35895         (memmem): Use it if first few naive iterations fail.
35896         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
35897         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
35898         * modules/memchr (License): Likewise.
35899         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
35900         malloca.
35901         * tests/test-memmem.c: Rewrite, borrowing ideas from
35902         test-mbsstr1.c; the old version wouldn't even compile!
35903         * modules/memmem-tests: New file.
35904         * lib/string.in.h (rpl_memmem): Add declaration.
35905         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
35906         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
35907         REPLACE_MEMMEM.
35908
35909 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
35910
35911         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
35912         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
35913         before any system include files, and undef after them all.  This
35914         should fix a problem on VMS reported by John E. Malmberg in
35915         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
35916
35917 2007-12-17  Eric Blake  <ebb9@byu.net>
35918
35919         Revert addition of verify, for BSD/OS.
35920         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
35921         can't handle large files, for the sake of obsolete platforms.
35922         * modules/fseeko (Depends-on): Remove verify.
35923         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
35924         * doc/functions/ftello.texi (ftello): Likewise.
35925         * doc/functions/fgetpos.texi (fgetpos): Likewise.
35926         Reported by Larry Jones.
35927
35928 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
35929
35930         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
35931         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
35932
35933 2007-12-17  Jim Meyering  <meyering@redhat.com>
35934
35935         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
35936         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
35937         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
35938         * modules/getcwd (Depends-on): Add openat.
35939         Reported by Petr Salinger.
35940
35941 2007-12-17  Bruno Haible  <bruno@clisp.org>
35942
35943         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
35944         avoid a segmentation fault of the configure test on x86_64 systems.
35945
35946 2007-12-15  Jim Meyering  <meyering@redhat.com>
35947
35948         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
35949
35950 2007-12-13  Eric Blake  <ebb9@byu.net>
35951
35952         Another fseek test.
35953         * tests/test-fseek.c (main): Also test ungetc handling.
35954         * tests/test-fseeko.c (main): Likewise.
35955         * modules/fseeko (Depends-on): Add verify.
35956         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
35957         large.
35958         Reported by Larry Jones.
35959
35960         Fix fseeko on mingw.
35961         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
35962         seek.
35963
35964         Beef up fseek tests.
35965         * tests/test-fseek.c (main): Also test eof handling.
35966         * tests/test-fseeko.c (main): Likewise.
35967         Reported by Larry Jones.
35968
35969 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
35970
35971         Fix fseeko on BSD-based platforms.
35972         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
35973         successful seek.
35974
35975 2007-12-12  Eric Blake  <ebb9@byu.net>
35976
35977         Allow circular dependency of separate libtests.a
35978         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
35979         when use_libtests.
35980
35981 2007-12-11  Eric Blake  <ebb9@byu.net>
35982
35983         Fix bug with -0.0L in previous patch.
35984         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
35985         * tests/test-isnan.c (main): Also test on zeroes.
35986         * tests/test-isnanf.c (main): Likewise.
35987         * tests/test-isnanl.h (main): Likewise.
35988
35989         Detect pseudo-denormals on x86 even when cross-compiling.
35990         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
35991         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
35992         invalid bit patterns that happen to satisfy ==.
35993
35994         Avoid link failures with separate libtests.a.
35995         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
35996         last, to satisfy circular dependencies.
35997
35998 2007-12-11  Eric Blake  <ebb9@byu.net>
35999         and Bruno Haible  <bruno@clisp.org>
36000
36001         Fix OpenBSD 4.0 <float.h> handling of long double.
36002         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
36003         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
36004         * doc/headers/float.texi (float.h): Document OpenBSD bug.
36005
36006 2007-12-11  Jim Meyering  <meyering@redhat.com>
36007
36008         * users.txt: Add libvirt.
36009
36010         Support versions of autoconf prior to 2.59c.
36011         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
36012         if it is not already defined.
36013
36014 2007-12-09  Bruno Haible  <bruno@clisp.org>
36015
36016         Let 'gnulib-tool --import' collect sources needed for the tests in
36017         tests/ rather than in lib/.
36018         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
36019         argument. If true, add rules to generate libtests.a, and put libtests.a
36020         into $(LDADD). Consider source files in subdirectories and set
36021         uses_subdirs.
36022         (func_emit_initmacro_start, func_emit_initmacro_end,
36023         func_emit_initmacro_done): Pass all arguments explicitly.
36024         (func_import): Determine two module lists main_modules,
36025         testsrelated_modules. Determine use_libtests. Determine two variables
36026         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
36027         instead of just sed_transform_lib_file. Determine two variables
36028         main_files and testsrelated_files. Compute 'files' as the union of
36029         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
36030         func_add_or_update. In the generated gnulib-comp.m4, collect the
36031         object files for tests/ in different variables than those for lib/.
36032         Substitute LIBTESTS_LIBDEPS.
36033         (func_create_testdir): Combine the uses_subdirs results from
36034         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
36035
36036 2007-12-09  Bruno Haible  <bruno@clisp.org>
36037
36038         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
36039         the build-aux directory.
36040
36041 2007-12-09  Bruno Haible  <bruno@clisp.org>
36042
36043         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
36044         introduced on 2006-09-09.
36045
36046 2007-12-07  Jim Meyering  <meyering@redhat.com>
36047
36048         Let these macros work also with autoconf-2.59.
36049         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
36050         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
36051         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
36052
36053 2007-12-06  Jim Meyering  <meyering@redhat.com>
36054
36055         Avoid a configure-time syntax error in gl_FUNC_ACL.
36056         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
36057         function in each branch, before testing the cache variable.
36058
36059 2007-12-04  Eric Blake  <ebb9@byu.net>
36060
36061         Make scripts executable.
36062         * build-aux/config.guess: Add execute permissions.
36063         * build-aux/config.sub: Likewise.
36064         * build-aux/gendocs.sh: Likewise.
36065
36066         Fix frexp on mingw.
36067         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
36068         cross-compiling.
36069         * doc/functions/frexp.texi (frexp): Document the bug.
36070
36071         Make cygwin fseeko check more reliable.
36072         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
36073         version numbers, rather than unrelated feature check.
36074         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
36075         * doc/functions/ftello.texi (ftello): Likewise.
36076         Reported by Bruno Haible.
36077
36078         * m4/strerror.m4: Bump version number.
36079
36080 2007-12-03  Bruno Haible  <bruno@clisp.org>
36081
36082         * doc/functions/mprotect.texi: Mention the mingw problem.
36083
36084 2007-12-03  Eric Blake  <ebb9@byu.net>
36085
36086         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
36087         REPLACE_STRERROR is initialized before this macro.
36088
36089 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
36090
36091         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
36092         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
36093         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
36094         put -lsec in even for programs other than 'ls'.  This fixes a problem
36095         for gettext reported by Bruno Haible in
36096         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
36097         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
36098         Add support for Solaris 10.  This isn't efficient, but should get the
36099         job done for now.
36100
36101 2007-12-03  James Youngman  <jay@gnu.org>
36102
36103         * doc/regexprops-generic.texi: change "an close-group" to "a
36104         close-group" and "illegal" to "not allowed".
36105
36106 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36107
36108         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
36109         pr_byname.h. Needed for the rare case when the maintainer has done
36110         "make maintainer-clean" in the source directory and then attempts a
36111         build outside the source directory.
36112         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
36113         scripts_byname.h.
36114
36115 2007-12-02  Martin Lambers <marlam@marlam.de>
36116             Bruno Haible  <bruno@clisp.org>
36117
36118         * lib/getpagesize.h: Remove file.
36119         * lib/unistd.in.h: Include declaration of getpagesize here.
36120         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
36121         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
36122         HAVE_SYS_PARAM_H.
36123         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
36124         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
36125         * modules/getpagesize (Files): Remove lib/getpagesize.h.
36126         (Depends-on): Add unistd.
36127         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36128         (Include): Use <unistd.h> instead of getpagesize.h.
36129         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
36130         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
36131         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
36132         gl_GETPAGESIZE invocation, already handled by module dependency.
36133         * lib/pagealign_alloc.c: Don't include getpagesize.h.
36134
36135 2007-12-02  Bruno Haible  <bruno@clisp.org>
36136
36137         * modules/strings-tests: New file.
36138         * tests/test-strings.c: New file.
36139
36140         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
36141         * lib/strings.in.h: New file.
36142         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
36143         * m4/strings_h.m4: New file.
36144         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
36145         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
36146         * modules/strings: New file.
36147         * modules/string (Makefile.am): Update.
36148         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
36149         Reported by Karl Berry.
36150
36151 2007-12-01  Eric Blake  <ebb9@byu.net>
36152
36153         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
36154         accomodate fix in cygwin 1.5.25.
36155
36156 2007-12-01  Jim Meyering  <meyering@redhat.com>
36157
36158         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
36159         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
36160         that would inhibit utf8-optimization of a regexp containing line-
36161         or buffer-anchors, e.g., `^', `$'.
36162
36163 2007-11-30  Bruno Haible  <bruno@clisp.org>
36164
36165         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
36166         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
36167         glthread_recursive_lock_init.
36168         * lib/lock.c (glthread_recursive_lock_init)
36169         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
36170         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36171
36172 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
36173
36174         New function qset_acl, like set_acl but with syscall semantics.
36175         * lib/acl.h (qset_acl): New decl.
36176         * lib/acl.c (qset_acl): New function.
36177         (set_acl): Use new function.  Use more-consistent diagnostics.
36178
36179 2007-11-28  Jim Meyering  <meyering@redhat.com>
36180
36181         * modules/physmem (License): Change from GPL to LGPLv2+.
36182
36183 2007-11-26  Bruno Haible  <bruno@clisp.org>
36184
36185         * lib/vasnprintf.c (decode_long_double): Don't abort if the
36186         'long double' type has excess precision.
36187         Reported by Jim Meyering in
36188         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
36189
36190 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36191
36192         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
36193         Sync from <http://gnu.org/licenses>.
36194         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
36195         with license text from same location.
36196         * doc/maintain.texi, doc/standards.texi:  Sync from
36197         <http://savannah.gnu.org/projects/gnustandards>.
36198
36199 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
36200         and Jim Meyering  <meyering@redhat.com>
36201
36202         Adjust getdate' grammar to accept a slightly more regular language.
36203         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
36204         Before, the former was rejected.
36205         * lib/getdate.y (digits_to_date_time): New function, factored
36206         out of ...
36207         (number): ...here.  Just call digits_to_date_time.
36208         (hybrid): New non-terminal to handle an <unsigned number,
36209         signed relative offset> sequence consistently.
36210
36211 2007-11-18  Jim Meyering  <meyering@redhat.com>
36212
36213         Pull my changes from coreutils:
36214         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
36215         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
36216         use of $gnulib_tool_option_extras, so that it's separated from the
36217         preceding argument.
36218
36219         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
36220         * build-aux/bootstrap (cp_mark_as_generated): Create any required
36221         parent destination directories before copying a file into place.
36222
36223 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
36224
36225         bootstrap: work also with 4-argument variant of AC_INIT
36226         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
36227
36228 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
36229
36230         Port test-getaddrinfo to Solaris.
36231         Problem reported by Bruno Haible in
36232         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
36233         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
36234         explanation of setting 'hints'.
36235         Don't reject an implementation merely because it returns EAI_SERVICE.
36236         (EAI_SERVICE): Define to 0 if not defined.
36237
36238 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
36239
36240         The license of gnu-make and posix-shell is now "GPLed build tool".
36241         * modules/gnu-make (License): Likewise.
36242         * modules/posix-shell (License): Likewise.
36243
36244         New module posix-shell, for determining a POSIX shell
36245         or perhaps something that is close enough to a POSIX shell.
36246         * m4/posix-shell.m4: New file.
36247         * modules/posix-shell: New file.
36248
36249         * MODULES.html.sh: Mention new module.
36250
36251         New module gnu-make, for determining whether we're using GNU Make.
36252         * m4/gnu-make.m4: New file.
36253         * modules/gnu-make: New file.
36254         * MODULES.html.sh: Mention new module.
36255
36256 2007-11-14  Jim Meyering  <meyering@redhat.com>
36257
36258         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
36259         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
36260         use this macro to create a function _definition_.
36261         Remove useless "#undef ARGMATCH_DIE".
36262
36263 2007-11-14  Bruno Haible  <bruno@clisp.org>
36264
36265         * lib/config.charset: Update for OpenBSD 4.1.
36266         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
36267
36268 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
36269
36270         Document 64-bit #if problems in stdint.texi.
36271         * doc/headers/stdint.texi (stdint.h): Mention problems with
36272         64-bit-#if, and how to work around them.
36273
36274         Don't insist on 'long long int' support in the preprocessor.  It
36275         breaks too many things.  For example, PRIdMAX still uses a 'long
36276         long int' format with the latest Sun compiler, even though
36277         HAVE_LONG_LONG_INT isn't defined due to that compiler's
36278         preprocessor problem.  This causes the latest coreutils to dump
36279         core on Solaris 10 sparc with the Sun C compiler.
36280         Instead, fix the 2007-10-16 problem in a different way, by evaluating
36281         the troublesome expressions at configure-time, not at #if-time.
36282         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
36283         preprocessor.
36284         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
36285         compile-time C checks, done at 'configure'-time.
36286         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
36287         * modules/inttypes (Makefile): Substitute the new symbols that
36288         gl_INTTYPES_H now generates.
36289         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
36290
36291 2007-11-12  Bruno Haible  <bruno@clisp.org>
36292
36293         Tests for Unicode character classification functions.
36294
36295         * modules/unictype/bidicategory-byname-tests: New file.
36296         * modules/unictype/bidicategory-name-tests: New file.
36297         * modules/unictype/bidicategory-of-tests: New file.
36298         * modules/unictype/bidicategory-test-tests: New file.
36299         * modules/unictype/block-list-tests: New file.
36300         * modules/unictype/block-of-tests: New file.
36301         * modules/unictype/block-test-tests: New file.
36302         * modules/unictype/category-C-tests: New file.
36303         * modules/unictype/category-Cc-tests: New file.
36304         * modules/unictype/category-Cf-tests: New file.
36305         * modules/unictype/category-Cn-tests: New file.
36306         * modules/unictype/category-Co-tests: New file.
36307         * modules/unictype/category-Cs-tests: New file.
36308         * modules/unictype/category-L-tests: New file.
36309         * modules/unictype/category-Ll-tests: New file.
36310         * modules/unictype/category-Lm-tests: New file.
36311         * modules/unictype/category-Lo-tests: New file.
36312         * modules/unictype/category-Lt-tests: New file.
36313         * modules/unictype/category-Lu-tests: New file.
36314         * modules/unictype/category-M-tests: New file.
36315         * modules/unictype/category-Mc-tests: New file.
36316         * modules/unictype/category-Me-tests: New file.
36317         * modules/unictype/category-Mn-tests: New file.
36318         * modules/unictype/category-N-tests: New file.
36319         * modules/unictype/category-Nd-tests: New file.
36320         * modules/unictype/category-Nl-tests: New file.
36321         * modules/unictype/category-No-tests: New file.
36322         * modules/unictype/category-P-tests: New file.
36323         * modules/unictype/category-Pc-tests: New file.
36324         * modules/unictype/category-Pd-tests: New file.
36325         * modules/unictype/category-Pe-tests: New file.
36326         * modules/unictype/category-Pf-tests: New file.
36327         * modules/unictype/category-Pi-tests: New file.
36328         * modules/unictype/category-Po-tests: New file.
36329         * modules/unictype/category-Ps-tests: New file.
36330         * modules/unictype/category-S-tests: New file.
36331         * modules/unictype/category-Sc-tests: New file.
36332         * modules/unictype/category-Sk-tests: New file.
36333         * modules/unictype/category-Sm-tests: New file.
36334         * modules/unictype/category-So-tests: New file.
36335         * modules/unictype/category-Z-tests: New file.
36336         * modules/unictype/category-Zl-tests: New file.
36337         * modules/unictype/category-Zp-tests: New file.
36338         * modules/unictype/category-Zs-tests: New file.
36339         * modules/unictype/category-and-not-tests: New file.
36340         * modules/unictype/category-and-tests: New file.
36341         * modules/unictype/category-byname-tests: New file.
36342         * modules/unictype/category-name-tests: New file.
36343         * modules/unictype/category-none-tests: New file.
36344         * modules/unictype/category-of-tests: New file.
36345         * modules/unictype/category-or-tests: New file.
36346         * modules/unictype/category-test-withtable-tests: New file.
36347         * modules/unictype/combining-class-tests: New file.
36348         * modules/unictype/ctype-alnum-tests: New file.
36349         * modules/unictype/ctype-alpha-tests: New file.
36350         * modules/unictype/ctype-blank-tests: New file.
36351         * modules/unictype/ctype-cntrl-tests: New file.
36352         * modules/unictype/ctype-digit-tests: New file.
36353         * modules/unictype/ctype-graph-tests: New file.
36354         * modules/unictype/ctype-lower-tests: New file.
36355         * modules/unictype/ctype-print-tests: New file.
36356         * modules/unictype/ctype-punct-tests: New file.
36357         * modules/unictype/ctype-space-tests: New file.
36358         * modules/unictype/ctype-upper-tests: New file.
36359         * modules/unictype/ctype-xdigit-tests: New file.
36360         * modules/unictype/decimal-digit-tests: New file.
36361         * modules/unictype/digit-tests: New file.
36362         * modules/unictype/mirror-tests: New file.
36363         * modules/unictype/numeric-tests: New file.
36364         * modules/unictype/property-alphabetic-tests: New file.
36365         * modules/unictype/property-ascii-hex-digit-tests: New file.
36366         * modules/unictype/property-bidi-arabic-digit-tests: New file.
36367         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
36368         * modules/unictype/property-bidi-block-separator-tests: New file.
36369         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
36370         * modules/unictype/property-bidi-common-separator-tests: New file.
36371         * modules/unictype/property-bidi-control-tests: New file.
36372         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
36373         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
36374         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
36375         * modules/unictype/property-bidi-european-digit-tests: New file.
36376         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
36377         * modules/unictype/property-bidi-left-to-right-tests: New file.
36378         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
36379         * modules/unictype/property-bidi-other-neutral-tests: New file.
36380         * modules/unictype/property-bidi-pdf-tests: New file.
36381         * modules/unictype/property-bidi-segment-separator-tests: New file.
36382         * modules/unictype/property-bidi-whitespace-tests: New file.
36383         * modules/unictype/property-byname-tests: New file.
36384         * modules/unictype/property-combining-tests: New file.
36385         * modules/unictype/property-composite-tests: New file.
36386         * modules/unictype/property-currency-symbol-tests: New file.
36387         * modules/unictype/property-dash-tests: New file.
36388         * modules/unictype/property-decimal-digit-tests: New file.
36389         * modules/unictype/property-default-ignorable-code-point-tests: New file.
36390         * modules/unictype/property-deprecated-tests: New file.
36391         * modules/unictype/property-diacritic-tests: New file.
36392         * modules/unictype/property-extender-tests: New file.
36393         * modules/unictype/property-format-control-tests: New file.
36394         * modules/unictype/property-grapheme-base-tests: New file.
36395         * modules/unictype/property-grapheme-extend-tests: New file.
36396         * modules/unictype/property-grapheme-link-tests: New file.
36397         * modules/unictype/property-hex-digit-tests: New file.
36398         * modules/unictype/property-hyphen-tests: New file.
36399         * modules/unictype/property-id-continue-tests: New file.
36400         * modules/unictype/property-id-start-tests: New file.
36401         * modules/unictype/property-ideographic-tests: New file.
36402         * modules/unictype/property-ids-binary-operator-tests: New file.
36403         * modules/unictype/property-ids-trinary-operator-tests: New file.
36404         * modules/unictype/property-ignorable-control-tests: New file.
36405         * modules/unictype/property-iso-control-tests: New file.
36406         * modules/unictype/property-join-control-tests: New file.
36407         * modules/unictype/property-left-of-pair-tests: New file.
36408         * modules/unictype/property-line-separator-tests: New file.
36409         * modules/unictype/property-logical-order-exception-tests: New file.
36410         * modules/unictype/property-lowercase-tests: New file.
36411         * modules/unictype/property-math-tests: New file.
36412         * modules/unictype/property-non-break-tests: New file.
36413         * modules/unictype/property-not-a-character-tests: New file.
36414         * modules/unictype/property-numeric-tests: New file.
36415         * modules/unictype/property-other-alphabetic-tests: New file.
36416         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
36417         * modules/unictype/property-other-grapheme-extend-tests: New file.
36418         * modules/unictype/property-other-id-continue-tests: New file.
36419         * modules/unictype/property-other-id-start-tests: New file.
36420         * modules/unictype/property-other-lowercase-tests: New file.
36421         * modules/unictype/property-other-math-tests: New file.
36422         * modules/unictype/property-other-uppercase-tests: New file.
36423         * modules/unictype/property-paired-punctuation-tests: New file.
36424         * modules/unictype/property-paragraph-separator-tests: New file.
36425         * modules/unictype/property-pattern-syntax-tests: New file.
36426         * modules/unictype/property-pattern-white-space-tests: New file.
36427         * modules/unictype/property-private-use-tests: New file.
36428         * modules/unictype/property-punctuation-tests: New file.
36429         * modules/unictype/property-quotation-mark-tests: New file.
36430         * modules/unictype/property-radical-tests: New file.
36431         * modules/unictype/property-sentence-terminal-tests: New file.
36432         * modules/unictype/property-soft-dotted-tests: New file.
36433         * modules/unictype/property-space-tests: New file.
36434         * modules/unictype/property-terminal-punctuation-tests: New file.
36435         * modules/unictype/property-test-tests: New file.
36436         * modules/unictype/property-titlecase-tests: New file.
36437         * modules/unictype/property-unassigned-code-value-tests: New file.
36438         * modules/unictype/property-unified-ideograph-tests: New file.
36439         * modules/unictype/property-uppercase-tests: New file.
36440         * modules/unictype/property-variation-selector-tests: New file.
36441         * modules/unictype/property-white-space-tests: New file.
36442         * modules/unictype/property-xid-continue-tests: New file.
36443         * modules/unictype/property-xid-start-tests: New file.
36444         * modules/unictype/property-zero-width-tests: New file.
36445         * modules/unictype/scripts-tests: New file.
36446         * modules/unictype/syntax-c-ident-tests: New file.
36447         * modules/unictype/syntax-c-whitespace-tests: New file.
36448         * modules/unictype/syntax-java-ident-tests: New file.
36449         * modules/unictype/syntax-java-whitespace-tests: New file.
36450         * tests/unictype/test-bidi_byname.c: New file.
36451         * tests/unictype/test-bidi_name.c: New file.
36452         * tests/unictype/test-bidi_of.c: New file.
36453         * tests/unictype/test-bidi_test.c: New file.
36454         * tests/unictype/test-block_list.c: New file.
36455         * tests/unictype/test-block_of.c: New file.
36456         * tests/unictype/test-block_test.c: New file.
36457         * tests/unictype/test-categ_and.c: New file.
36458         * tests/unictype/test-categ_and_not.c: New file.
36459         * tests/unictype/test-categ_byname.c: New file.
36460         * tests/unictype/test-categ_name.c: New file.
36461         * tests/unictype/test-categ_none.c: New file.
36462         * tests/unictype/test-categ_of.c: New file.
36463         * tests/unictype/test-categ_or.c: New file.
36464         * tests/unictype/test-categ_test_withtable.c: New file.
36465         * tests/unictype/test-combining.c: New file.
36466         * tests/unictype/test-decdigit.c: New file.
36467         * tests/unictype/test-digit.c: New file.
36468         * tests/unictype/test-mirror.c: New file.
36469         * tests/unictype/test-numeric.c: New file.
36470         * tests/unictype/test-pr_byname.c: New file.
36471         * tests/unictype/test-pr_test.c: New file.
36472         * tests/unictype/test-predicate-part1.h: New file.
36473         * tests/unictype/test-predicate-part2.h: New file.
36474         * tests/unictype/test-scripts.c: New file.
36475         * tests/unictype/test-sy_c_ident.c: New file.
36476         * tests/unictype/test-sy_java_ident.c: New file.
36477
36478         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
36479         for Unicode 5.0.0.
36480         * tests/unictype/test-categ_Cc.c: Likewise.
36481         * tests/unictype/test-categ_Cf.c: Likewise.
36482         * tests/unictype/test-categ_Cn.c: Likewise.
36483         * tests/unictype/test-categ_Co.c: Likewise.
36484         * tests/unictype/test-categ_Cs.c: Likewise.
36485         * tests/unictype/test-categ_L.c: Likewise.
36486         * tests/unictype/test-categ_Ll.c: Likewise.
36487         * tests/unictype/test-categ_Lm.c: Likewise.
36488         * tests/unictype/test-categ_Lo.c: Likewise.
36489         * tests/unictype/test-categ_Lt.c: Likewise.
36490         * tests/unictype/test-categ_Lu.c: Likewise.
36491         * tests/unictype/test-categ_M.c: Likewise.
36492         * tests/unictype/test-categ_Mc.c: Likewise.
36493         * tests/unictype/test-categ_Me.c: Likewise.
36494         * tests/unictype/test-categ_Mn.c: Likewise.
36495         * tests/unictype/test-categ_N.c: Likewise.
36496         * tests/unictype/test-categ_Nd.c: Likewise.
36497         * tests/unictype/test-categ_Nl.c: Likewise.
36498         * tests/unictype/test-categ_No.c: Likewise.
36499         * tests/unictype/test-categ_P.c: Likewise.
36500         * tests/unictype/test-categ_Pc.c: Likewise.
36501         * tests/unictype/test-categ_Pd.c: Likewise.
36502         * tests/unictype/test-categ_Pe.c: Likewise.
36503         * tests/unictype/test-categ_Pf.c: Likewise.
36504         * tests/unictype/test-categ_Pi.c: Likewise.
36505         * tests/unictype/test-categ_Po.c: Likewise.
36506         * tests/unictype/test-categ_Ps.c: Likewise.
36507         * tests/unictype/test-categ_S.c: Likewise.
36508         * tests/unictype/test-categ_Sc.c: Likewise.
36509         * tests/unictype/test-categ_Sk.c: Likewise.
36510         * tests/unictype/test-categ_Sm.c: Likewise.
36511         * tests/unictype/test-categ_So.c: Likewise.
36512         * tests/unictype/test-categ_Z.c: Likewise.
36513         * tests/unictype/test-categ_Zl.c: Likewise.
36514         * tests/unictype/test-categ_Zp.c: Likewise.
36515         * tests/unictype/test-categ_Zs.c: Likewise.
36516         * tests/unictype/test-ctype_alnum.c: Likewise.
36517         * tests/unictype/test-ctype_alpha.c: Likewise.
36518         * tests/unictype/test-ctype_blank.c: Likewise.
36519         * tests/unictype/test-ctype_cntrl.c: Likewise.
36520         * tests/unictype/test-ctype_digit.c: Likewise.
36521         * tests/unictype/test-ctype_graph.c: Likewise.
36522         * tests/unictype/test-ctype_lower.c: Likewise.
36523         * tests/unictype/test-ctype_print.c: Likewise.
36524         * tests/unictype/test-ctype_punct.c: Likewise.
36525         * tests/unictype/test-ctype_space.c: Likewise.
36526         * tests/unictype/test-ctype_upper.c: Likewise.
36527         * tests/unictype/test-ctype_xdigit.c: Likewise.
36528         * tests/unictype/test-decdigit.h: Likewise.
36529         * tests/unictype/test-digit.h: Likewise.
36530         * tests/unictype/test-numeric.h: Likewise.
36531         * tests/unictype/test-pr_alphabetic.c: Likewise.
36532         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
36533         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
36534         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
36535         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
36536         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
36537         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
36538         * tests/unictype/test-pr_bidi_control.c: Likewise.
36539         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
36540         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
36541         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
36542         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
36543         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
36544         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
36545         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
36546         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
36547         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
36548         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
36549         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
36550         * tests/unictype/test-pr_combining.c: Likewise.
36551         * tests/unictype/test-pr_composite.c: Likewise.
36552         * tests/unictype/test-pr_currency_symbol.c: Likewise.
36553         * tests/unictype/test-pr_dash.c: Likewise.
36554         * tests/unictype/test-pr_decimal_digit.c: Likewise.
36555         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
36556         * tests/unictype/test-pr_deprecated.c: Likewise.
36557         * tests/unictype/test-pr_diacritic.c: Likewise.
36558         * tests/unictype/test-pr_extender.c: Likewise.
36559         * tests/unictype/test-pr_format_control.c: Likewise.
36560         * tests/unictype/test-pr_grapheme_base.c: Likewise.
36561         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
36562         * tests/unictype/test-pr_grapheme_link.c: Likewise.
36563         * tests/unictype/test-pr_hex_digit.c: Likewise.
36564         * tests/unictype/test-pr_hyphen.c: Likewise.
36565         * tests/unictype/test-pr_id_continue.c: Likewise.
36566         * tests/unictype/test-pr_id_start.c: Likewise.
36567         * tests/unictype/test-pr_ideographic.c: Likewise.
36568         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
36569         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
36570         * tests/unictype/test-pr_ignorable_control.c: Likewise.
36571         * tests/unictype/test-pr_iso_control.c: Likewise.
36572         * tests/unictype/test-pr_join_control.c: Likewise.
36573         * tests/unictype/test-pr_left_of_pair.c: Likewise.
36574         * tests/unictype/test-pr_line_separator.c: Likewise.
36575         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
36576         * tests/unictype/test-pr_lowercase.c: Likewise.
36577         * tests/unictype/test-pr_math.c: Likewise.
36578         * tests/unictype/test-pr_non_break.c: Likewise.
36579         * tests/unictype/test-pr_not_a_character.c: Likewise.
36580         * tests/unictype/test-pr_numeric.c: Likewise.
36581         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
36582         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
36583         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
36584         * tests/unictype/test-pr_other_id_continue.c: Likewise.
36585         * tests/unictype/test-pr_other_id_start.c: Likewise.
36586         * tests/unictype/test-pr_other_lowercase.c: Likewise.
36587         * tests/unictype/test-pr_other_math.c: Likewise.
36588         * tests/unictype/test-pr_other_uppercase.c: Likewise.
36589         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
36590         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
36591         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
36592         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
36593         * tests/unictype/test-pr_private_use.c: Likewise.
36594         * tests/unictype/test-pr_punctuation.c: Likewise.
36595         * tests/unictype/test-pr_quotation_mark.c: Likewise.
36596         * tests/unictype/test-pr_radical.c: Likewise.
36597         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
36598         * tests/unictype/test-pr_soft_dotted.c: Likewise.
36599         * tests/unictype/test-pr_space.c: Likewise.
36600         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
36601         * tests/unictype/test-pr_titlecase.c: Likewise.
36602         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
36603         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
36604         * tests/unictype/test-pr_uppercase.c: Likewise.
36605         * tests/unictype/test-pr_variation_selector.c: Likewise.
36606         * tests/unictype/test-pr_white_space.c: Likewise.
36607         * tests/unictype/test-pr_xid_continue.c: Likewise.
36608         * tests/unictype/test-pr_xid_start.c: Likewise.
36609         * tests/unictype/test-pr_zero_width.c: Likewise.
36610         * tests/unictype/test-sy_c_whitespace.c: Likewise.
36611         * tests/unictype/test-sy_java_whitespace.c: Likewise.
36612
36613 2007-11-12  Bruno Haible  <bruno@clisp.org>
36614
36615         Unicode character classification functions.
36616         * lib/unictype.h: New file.
36617         * modules/unictype/base: New file.
36618         * modules/unictype/category-L: New file.
36619         * modules/unictype/category-Lu: New file.
36620         * modules/unictype/category-Ll: New file.
36621         * modules/unictype/category-Lt: New file.
36622         * modules/unictype/category-Lm: New file.
36623         * modules/unictype/category-Lo: New file.
36624         * modules/unictype/category-M: New file.
36625         * modules/unictype/category-Mn: New file.
36626         * modules/unictype/category-Mc: New file.
36627         * modules/unictype/category-Me: New file.
36628         * modules/unictype/category-N: New file.
36629         * modules/unictype/category-Nd: New file.
36630         * modules/unictype/category-Nl: New file.
36631         * modules/unictype/category-No: New file.
36632         * modules/unictype/category-P: New file.
36633         * modules/unictype/category-Pc: New file.
36634         * modules/unictype/category-Pd: New file.
36635         * modules/unictype/category-Ps: New file.
36636         * modules/unictype/category-Pe: New file.
36637         * modules/unictype/category-Pi: New file.
36638         * modules/unictype/category-Pf: New file.
36639         * modules/unictype/category-Po: New file.
36640         * modules/unictype/category-S: New file.
36641         * modules/unictype/category-Sm: New file.
36642         * modules/unictype/category-Sc: New file.
36643         * modules/unictype/category-Sk: New file.
36644         * modules/unictype/category-So: New file.
36645         * modules/unictype/category-Z: New file.
36646         * modules/unictype/category-Zs: New file.
36647         * modules/unictype/category-Zl: New file.
36648         * modules/unictype/category-Zp: New file.
36649         * modules/unictype/category-C: New file.
36650         * modules/unictype/category-Cc: New file.
36651         * modules/unictype/category-Cf: New file.
36652         * modules/unictype/category-Cs: New file.
36653         * modules/unictype/category-Co: New file.
36654         * modules/unictype/category-Cn: New file.
36655         * modules/unictype/category-or: New file.
36656         * modules/unictype/category-of: New file.
36657         * modules/unictype/category-test: New file.
36658         * modules/unictype/category-test-withtable: New file.
36659         * modules/unictype/category-byname: New file.
36660         * modules/unictype/category-none: New file.
36661         * modules/unictype/category-and: New file.
36662         * modules/unictype/category-and-not: New file.
36663         * modules/unictype/category-name: New file.
36664         * modules/unictype/combining-class: New file.
36665         * modules/unictype/category-all: New file.
36666         * modules/unictype/bidicategory-all: New file.
36667         * modules/unictype/bidicategory-byname: New file.
36668         * modules/unictype/bidicategory-name: New file.
36669         * modules/unictype/bidicategory-of: New file.
36670         * modules/unictype/bidicategory-test: New file.
36671         * modules/unictype/decimal-digit: New file.
36672         * modules/unictype/digit: New file.
36673         * modules/unictype/numeric: New file.
36674         * modules/unictype/mirror: New file.
36675         * modules/unictype/property-white-space: New file.
36676         * modules/unictype/property-alphabetic: New file.
36677         * modules/unictype/property-other-alphabetic: New file.
36678         * modules/unictype/property-not-a-character: New file.
36679         * modules/unictype/property-default-ignorable-code-point: New file.
36680         * modules/unictype/property-other-default-ignorable-code-point: New
36681         file.
36682         * modules/unictype/property-deprecated: New file.
36683         * modules/unictype/property-logical-order-exception: New file.
36684         * modules/unictype/property-variation-selector: New file.
36685         * modules/unictype/property-private-use: New file.
36686         * modules/unictype/property-unassigned-code-value: New file.
36687         * modules/unictype/property-uppercase: New file.
36688         * modules/unictype/property-other-uppercase: New file.
36689         * modules/unictype/property-lowercase: New file.
36690         * modules/unictype/property-other-lowercase: New file.
36691         * modules/unictype/property-titlecase: New file.
36692         * modules/unictype/property-soft-dotted: New file.
36693         * modules/unictype/property-id-start: New file.
36694         * modules/unictype/property-other-id-start: New file.
36695         * modules/unictype/property-id-continue: New file.
36696         * modules/unictype/property-other-id-continue: New file.
36697         * modules/unictype/property-xid-start: New file.
36698         * modules/unictype/property-xid-continue: New file.
36699         * modules/unictype/property-pattern-white-space: New file.
36700         * modules/unictype/property-pattern-syntax: New file.
36701         * modules/unictype/property-join-control: New file.
36702         * modules/unictype/property-grapheme-base: New file.
36703         * modules/unictype/property-grapheme-extend: New file.
36704         * modules/unictype/property-other-grapheme-extend: New file.
36705         * modules/unictype/property-grapheme-link: New file.
36706         * modules/unictype/property-bidi-control: New file.
36707         * modules/unictype/property-bidi-left-to-right: New file.
36708         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
36709         * modules/unictype/property-bidi-arabic-right-to-left: New file.
36710         * modules/unictype/property-bidi-european-digit: New file.
36711         * modules/unictype/property-bidi-eur-num-separator: New file.
36712         * modules/unictype/property-bidi-eur-num-terminator: New file.
36713         * modules/unictype/property-bidi-arabic-digit: New file.
36714         * modules/unictype/property-bidi-common-separator: New file.
36715         * modules/unictype/property-bidi-block-separator: New file.
36716         * modules/unictype/property-bidi-segment-separator: New file.
36717         * modules/unictype/property-bidi-whitespace: New file.
36718         * modules/unictype/property-bidi-non-spacing-mark: New file.
36719         * modules/unictype/property-bidi-boundary-neutral: New file.
36720         * modules/unictype/property-bidi-pdf: New file.
36721         * modules/unictype/property-bidi-embedding-or-override: New file.
36722         * modules/unictype/property-bidi-other-neutral: New file.
36723         * modules/unictype/property-hex-digit: New file.
36724         * modules/unictype/property-ascii-hex-digit: New file.
36725         * modules/unictype/property-ideographic: New file.
36726         * modules/unictype/property-unified-ideograph: New file.
36727         * modules/unictype/property-radical: New file.
36728         * modules/unictype/property-ids-binary-operator: New file.
36729         * modules/unictype/property-ids-trinary-operator: New file.
36730         * modules/unictype/property-zero-width: New file.
36731         * modules/unictype/property-space: New file.
36732         * modules/unictype/property-non-break: New file.
36733         * modules/unictype/property-iso-control: New file.
36734         * modules/unictype/property-format-control: New file.
36735         * modules/unictype/property-dash: New file.
36736         * modules/unictype/property-hyphen: New file.
36737         * modules/unictype/property-punctuation: New file.
36738         * modules/unictype/property-line-separator: New file.
36739         * modules/unictype/property-paragraph-separator: New file.
36740         * modules/unictype/property-quotation-mark: New file.
36741         * modules/unictype/property-sentence-terminal: New file.
36742         * modules/unictype/property-terminal-punctuation: New file.
36743         * modules/unictype/property-currency-symbol: New file.
36744         * modules/unictype/property-math: New file.
36745         * modules/unictype/property-other-math: New file.
36746         * modules/unictype/property-paired-punctuation: New file.
36747         * modules/unictype/property-left-of-pair: New file.
36748         * modules/unictype/property-combining: New file.
36749         * modules/unictype/property-composite: New file.
36750         * modules/unictype/property-decimal-digit: New file.
36751         * modules/unictype/property-numeric: New file.
36752         * modules/unictype/property-diacritic: New file.
36753         * modules/unictype/property-extender: New file.
36754         * modules/unictype/property-ignorable-control: New file.
36755         * modules/unictype/property-test: New file.
36756         * modules/unictype/property-byname: New file.
36757         * modules/unictype/property-all: New file.
36758         * modules/unictype/scripts: New file.
36759         * modules/unictype/scripts-all: New file.
36760         * modules/unictype/block-of: New file.
36761         * modules/unictype/block-test: New file.
36762         * modules/unictype/block-list: New file.
36763         * modules/unictype/block-all: New file.
36764         * modules/unictype/syntax-c-whitespace: New file.
36765         * modules/unictype/syntax-java-whitespace: New file.
36766         * modules/unictype/syntax-c-ident: New file.
36767         * modules/unictype/syntax-java-ident: New file.
36768         * modules/unictype/ctype-alnum: New file.
36769         * modules/unictype/ctype-alpha: New file.
36770         * modules/unictype/ctype-cntrl: New file.
36771         * modules/unictype/ctype-digit: New file.
36772         * modules/unictype/ctype-graph: New file.
36773         * modules/unictype/ctype-lower: New file.
36774         * modules/unictype/ctype-print: New file.
36775         * modules/unictype/ctype-punct: New file.
36776         * modules/unictype/ctype-space: New file.
36777         * modules/unictype/ctype-upper: New file.
36778         * modules/unictype/ctype-xdigit: New file.
36779         * modules/unictype/ctype-blank: New file.
36780         * lib/unictype/bidi_byname.c: New file.
36781         * lib/unictype/bidi_name.c: New file.
36782         * lib/unictype/bidi_of.c: New file.
36783         * lib/unictype/bidi_test.c: New file.
36784         * lib/unictype/bitmap.h: New file.
36785         * lib/unictype/block_test.c: New file.
36786         * lib/unictype/blocks.c: New file.
36787         * lib/unictype/categ_C.c: New file.
36788         * lib/unictype/categ_Cc.c: New file.
36789         * lib/unictype/categ_Cf.c: New file.
36790         * lib/unictype/categ_Cn.c: New file.
36791         * lib/unictype/categ_Co.c: New file.
36792         * lib/unictype/categ_Cs.c: New file.
36793         * lib/unictype/categ_L.c: New file.
36794         * lib/unictype/categ_Ll.c: New file.
36795         * lib/unictype/categ_Lm.c: New file.
36796         * lib/unictype/categ_Lo.c: New file.
36797         * lib/unictype/categ_Lt.c: New file.
36798         * lib/unictype/categ_Lu.c: New file.
36799         * lib/unictype/categ_M.c: New file.
36800         * lib/unictype/categ_Mc.c: New file.
36801         * lib/unictype/categ_Me.c: New file.
36802         * lib/unictype/categ_Mn.c: New file.
36803         * lib/unictype/categ_N.c: New file.
36804         * lib/unictype/categ_Nd.c: New file.
36805         * lib/unictype/categ_Nl.c: New file.
36806         * lib/unictype/categ_No.c: New file.
36807         * lib/unictype/categ_P.c: New file.
36808         * lib/unictype/categ_Pc.c: New file.
36809         * lib/unictype/categ_Pd.c: New file.
36810         * lib/unictype/categ_Pe.c: New file.
36811         * lib/unictype/categ_Pf.c: New file.
36812         * lib/unictype/categ_Pi.c: New file.
36813         * lib/unictype/categ_Po.c: New file.
36814         * lib/unictype/categ_Ps.c: New file.
36815         * lib/unictype/categ_S.c: New file.
36816         * lib/unictype/categ_Sc.c: New file.
36817         * lib/unictype/categ_Sk.c: New file.
36818         * lib/unictype/categ_Sm.c: New file.
36819         * lib/unictype/categ_So.c: New file.
36820         * lib/unictype/categ_Z.c: New file.
36821         * lib/unictype/categ_Zl.c: New file.
36822         * lib/unictype/categ_Zp.c: New file.
36823         * lib/unictype/categ_Zs.c: New file.
36824         * lib/unictype/categ_and.c: New file.
36825         * lib/unictype/categ_and_not.c: New file.
36826         * lib/unictype/categ_byname.c: New file.
36827         * lib/unictype/categ_name.c: New file.
36828         * lib/unictype/categ_none.c: New file.
36829         * lib/unictype/categ_of.c: New file.
36830         * lib/unictype/categ_or.c: New file.
36831         * lib/unictype/categ_test.c: New file.
36832         * lib/unictype/combining.c: New file.
36833         * lib/unictype/ctype_alnum.c: New file.
36834         * lib/unictype/ctype_alpha.c: New file.
36835         * lib/unictype/ctype_blank.c: New file.
36836         * lib/unictype/ctype_cntrl.c: New file.
36837         * lib/unictype/ctype_digit.c: New file.
36838         * lib/unictype/ctype_graph.c: New file.
36839         * lib/unictype/ctype_lower.c: New file.
36840         * lib/unictype/ctype_print.c: New file.
36841         * lib/unictype/ctype_punct.c: New file.
36842         * lib/unictype/ctype_space.c: New file.
36843         * lib/unictype/ctype_upper.c: New file.
36844         * lib/unictype/ctype_xdigit.c: New file.
36845         * lib/unictype/decdigit.c: New file.
36846         * lib/unictype/digit.c: New file.
36847         * lib/unictype/identsyntaxmap.h: New file.
36848         * lib/unictype/mirror.c: New file.
36849         * lib/unictype/numeric.c: New file.
36850         * lib/unictype/pr_alphabetic.c: New file.
36851         * lib/unictype/pr_ascii_hex_digit.c: New file.
36852         * lib/unictype/pr_bidi_arabic_digit.c: New file.
36853         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
36854         * lib/unictype/pr_bidi_block_separator.c: New file.
36855         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
36856         * lib/unictype/pr_bidi_common_separator.c: New file.
36857         * lib/unictype/pr_bidi_control.c: New file.
36858         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
36859         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
36860         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
36861         * lib/unictype/pr_bidi_european_digit.c: New file.
36862         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
36863         * lib/unictype/pr_bidi_left_to_right.c: New file.
36864         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
36865         * lib/unictype/pr_bidi_other_neutral.c: New file.
36866         * lib/unictype/pr_bidi_pdf.c: New file.
36867         * lib/unictype/pr_bidi_segment_separator.c: New file.
36868         * lib/unictype/pr_bidi_whitespace.c: New file.
36869         * lib/unictype/pr_byname.c: New file.
36870         * lib/unictype/pr_byname.gperf: New file.
36871         * lib/unictype/pr_combining.c: New file.
36872         * lib/unictype/pr_composite.c: New file.
36873         * lib/unictype/pr_currency_symbol.c: New file.
36874         * lib/unictype/pr_dash.c: New file.
36875         * lib/unictype/pr_decimal_digit.c: New file.
36876         * lib/unictype/pr_default_ignorable_code_point.c: New file.
36877         * lib/unictype/pr_deprecated.c: New file.
36878         * lib/unictype/pr_diacritic.c: New file.
36879         * lib/unictype/pr_extender.c: New file.
36880         * lib/unictype/pr_format_control.c: New file.
36881         * lib/unictype/pr_grapheme_base.c: New file.
36882         * lib/unictype/pr_grapheme_extend.c: New file.
36883         * lib/unictype/pr_grapheme_link.c: New file.
36884         * lib/unictype/pr_hex_digit.c: New file.
36885         * lib/unictype/pr_hyphen.c: New file.
36886         * lib/unictype/pr_id_continue.c: New file.
36887         * lib/unictype/pr_id_start.c: New file.
36888         * lib/unictype/pr_ideographic.c: New file.
36889         * lib/unictype/pr_ids_binary_operator.c: New file.
36890         * lib/unictype/pr_ids_trinary_operator.c: New file.
36891         * lib/unictype/pr_ignorable_control.c: New file.
36892         * lib/unictype/pr_iso_control.c: New file.
36893         * lib/unictype/pr_join_control.c: New file.
36894         * lib/unictype/pr_left_of_pair.c: New file.
36895         * lib/unictype/pr_line_separator.c: New file.
36896         * lib/unictype/pr_logical_order_exception.c: New file.
36897         * lib/unictype/pr_lowercase.c: New file.
36898         * lib/unictype/pr_math.c: New file.
36899         * lib/unictype/pr_non_break.c: New file.
36900         * lib/unictype/pr_not_a_character.c: New file.
36901         * lib/unictype/pr_numeric.c: New file.
36902         * lib/unictype/pr_other_alphabetic.c: New file.
36903         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
36904         * lib/unictype/pr_other_grapheme_extend.c: New file.
36905         * lib/unictype/pr_other_id_continue.c: New file.
36906         * lib/unictype/pr_other_id_start.c: New file.
36907         * lib/unictype/pr_other_lowercase.c: New file.
36908         * lib/unictype/pr_other_math.c: New file.
36909         * lib/unictype/pr_other_uppercase.c: New file.
36910         * lib/unictype/pr_paired_punctuation.c: New file.
36911         * lib/unictype/pr_paragraph_separator.c: New file.
36912         * lib/unictype/pr_pattern_syntax.c: New file.
36913         * lib/unictype/pr_pattern_white_space.c: New file.
36914         * lib/unictype/pr_private_use.c: New file.
36915         * lib/unictype/pr_punctuation.c: New file.
36916         * lib/unictype/pr_quotation_mark.c: New file.
36917         * lib/unictype/pr_radical.c: New file.
36918         * lib/unictype/pr_sentence_terminal.c: New file.
36919         * lib/unictype/pr_soft_dotted.c: New file.
36920         * lib/unictype/pr_space.c: New file.
36921         * lib/unictype/pr_terminal_punctuation.c: New file.
36922         * lib/unictype/pr_test.c: New file.
36923         * lib/unictype/pr_titlecase.c: New file.
36924         * lib/unictype/pr_unassigned_code_value.c: New file.
36925         * lib/unictype/pr_unified_ideograph.c: New file.
36926         * lib/unictype/pr_uppercase.c: New file.
36927         * lib/unictype/pr_variation_selector.c: New file.
36928         * lib/unictype/pr_white_space.c: New file.
36929         * lib/unictype/pr_xid_continue.c: New file.
36930         * lib/unictype/pr_xid_start.c: New file.
36931         * lib/unictype/pr_zero_width.c: New file.
36932         * lib/unictype/scripts.c: New file.
36933         * lib/unictype/sy_c_ident.c: New file.
36934         * lib/unictype/sy_c_whitespace.c: New file.
36935         * lib/unictype/sy_java_ident.c: New file.
36936         * lib/unictype/sy_java_whitespace.c: New file.
36937
36938         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
36939         Unicode 5.0.0.
36940         * lib/unictype/blocks.h: Likewise.
36941         * lib/unictype/categ_C.h: Likewise.
36942         * lib/unictype/categ_Cc.h: Likewise.
36943         * lib/unictype/categ_Cf.h: Likewise.
36944         * lib/unictype/categ_Cn.h: Likewise.
36945         * lib/unictype/categ_Co.h: Likewise.
36946         * lib/unictype/categ_Cs.h: Likewise.
36947         * lib/unictype/categ_L.h: Likewise.
36948         * lib/unictype/categ_Ll.h: Likewise.
36949         * lib/unictype/categ_Lm.h: Likewise.
36950         * lib/unictype/categ_Lo.h: Likewise.
36951         * lib/unictype/categ_Lt.h: Likewise.
36952         * lib/unictype/categ_Lu.h: Likewise.
36953         * lib/unictype/categ_M.h: Likewise.
36954         * lib/unictype/categ_Mc.h: Likewise.
36955         * lib/unictype/categ_Me.h: Likewise.
36956         * lib/unictype/categ_Mn.h: Likewise.
36957         * lib/unictype/categ_N.h: Likewise.
36958         * lib/unictype/categ_Nd.h: Likewise.
36959         * lib/unictype/categ_Nl.h: Likewise.
36960         * lib/unictype/categ_No.h: Likewise.
36961         * lib/unictype/categ_P.h: Likewise.
36962         * lib/unictype/categ_Pc.h: Likewise.
36963         * lib/unictype/categ_Pd.h: Likewise.
36964         * lib/unictype/categ_Pe.h: Likewise.
36965         * lib/unictype/categ_Pf.h: Likewise.
36966         * lib/unictype/categ_Pi.h: Likewise.
36967         * lib/unictype/categ_Po.h: Likewise.
36968         * lib/unictype/categ_Ps.h: Likewise.
36969         * lib/unictype/categ_S.h: Likewise.
36970         * lib/unictype/categ_Sc.h: Likewise.
36971         * lib/unictype/categ_Sk.h: Likewise.
36972         * lib/unictype/categ_Sm.h: Likewise.
36973         * lib/unictype/categ_So.h: Likewise.
36974         * lib/unictype/categ_Z.h: Likewise.
36975         * lib/unictype/categ_Zl.h: Likewise.
36976         * lib/unictype/categ_Zp.h: Likewise.
36977         * lib/unictype/categ_Zs.h: Likewise.
36978         * lib/unictype/categ_of.h: Likewise.
36979         * lib/unictype/combining.h: Likewise.
36980         * lib/unictype/ctype_alnum.h: Likewise.
36981         * lib/unictype/ctype_alpha.h: Likewise.
36982         * lib/unictype/ctype_blank.h: Likewise.
36983         * lib/unictype/ctype_cntrl.h: Likewise.
36984         * lib/unictype/ctype_digit.h: Likewise.
36985         * lib/unictype/ctype_graph.h: Likewise.
36986         * lib/unictype/ctype_lower.h: Likewise.
36987         * lib/unictype/ctype_print.h: Likewise.
36988         * lib/unictype/ctype_punct.h: Likewise.
36989         * lib/unictype/ctype_space.h: Likewise.
36990         * lib/unictype/ctype_upper.h: Likewise.
36991         * lib/unictype/ctype_xdigit.h: Likewise.
36992         * lib/unictype/decdigit.h: Likewise.
36993         * lib/unictype/digit.h: Likewise.
36994         * lib/unictype/mirror.h: Likewise.
36995         * lib/unictype/numeric.h: Likewise.
36996         * lib/unictype/pr_alphabetic.h: Likewise.
36997         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
36998         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
36999         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
37000         * lib/unictype/pr_bidi_block_separator.h: Likewise.
37001         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
37002         * lib/unictype/pr_bidi_common_separator.h: Likewise.
37003         * lib/unictype/pr_bidi_control.h: Likewise.
37004         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
37005         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
37006         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
37007         * lib/unictype/pr_bidi_european_digit.h: Likewise.
37008         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
37009         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
37010         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
37011         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
37012         * lib/unictype/pr_bidi_pdf.h: Likewise.
37013         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
37014         * lib/unictype/pr_bidi_whitespace.h: Likewise.
37015         * lib/unictype/pr_combining.h: Likewise.
37016         * lib/unictype/pr_composite.h: Likewise.
37017         * lib/unictype/pr_currency_symbol.h: Likewise.
37018         * lib/unictype/pr_dash.h: Likewise.
37019         * lib/unictype/pr_decimal_digit.h: Likewise.
37020         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
37021         * lib/unictype/pr_deprecated.h: Likewise.
37022         * lib/unictype/pr_diacritic.h: Likewise.
37023         * lib/unictype/pr_extender.h: Likewise.
37024         * lib/unictype/pr_format_control.h: Likewise.
37025         * lib/unictype/pr_grapheme_base.h: Likewise.
37026         * lib/unictype/pr_grapheme_extend.h: Likewise.
37027         * lib/unictype/pr_grapheme_link.h: Likewise.
37028         * lib/unictype/pr_hex_digit.h: Likewise.
37029         * lib/unictype/pr_hyphen.h: Likewise.
37030         * lib/unictype/pr_id_continue.h: Likewise.
37031         * lib/unictype/pr_id_start.h: Likewise.
37032         * lib/unictype/pr_ideographic.h: Likewise.
37033         * lib/unictype/pr_ids_binary_operator.h: Likewise.
37034         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
37035         * lib/unictype/pr_ignorable_control.h: Likewise.
37036         * lib/unictype/pr_iso_control.h: Likewise.
37037         * lib/unictype/pr_join_control.h: Likewise.
37038         * lib/unictype/pr_left_of_pair.h: Likewise.
37039         * lib/unictype/pr_line_separator.h: Likewise.
37040         * lib/unictype/pr_logical_order_exception.h: Likewise.
37041         * lib/unictype/pr_lowercase.h: Likewise.
37042         * lib/unictype/pr_math.h: Likewise.
37043         * lib/unictype/pr_non_break.h: Likewise.
37044         * lib/unictype/pr_not_a_character.h: Likewise.
37045         * lib/unictype/pr_numeric.h: Likewise.
37046         * lib/unictype/pr_other_alphabetic.h: Likewise.
37047         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
37048         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
37049         * lib/unictype/pr_other_id_continue.h: Likewise.
37050         * lib/unictype/pr_other_id_start.h: Likewise.
37051         * lib/unictype/pr_other_lowercase.h: Likewise.
37052         * lib/unictype/pr_other_math.h: Likewise.
37053         * lib/unictype/pr_other_uppercase.h: Likewise.
37054         * lib/unictype/pr_paired_punctuation.h: Likewise.
37055         * lib/unictype/pr_paragraph_separator.h: Likewise.
37056         * lib/unictype/pr_pattern_syntax.h: Likewise.
37057         * lib/unictype/pr_pattern_white_space.h: Likewise.
37058         * lib/unictype/pr_private_use.h: Likewise.
37059         * lib/unictype/pr_punctuation.h: Likewise.
37060         * lib/unictype/pr_quotation_mark.h: Likewise.
37061         * lib/unictype/pr_radical.h: Likewise.
37062         * lib/unictype/pr_sentence_terminal.h: Likewise.
37063         * lib/unictype/pr_soft_dotted.h: Likewise.
37064         * lib/unictype/pr_space.h: Likewise.
37065         * lib/unictype/pr_terminal_punctuation.h: Likewise.
37066         * lib/unictype/pr_titlecase.h: Likewise.
37067         * lib/unictype/pr_unassigned_code_value.h: Likewise.
37068         * lib/unictype/pr_unified_ideograph.h: Likewise.
37069         * lib/unictype/pr_uppercase.h: Likewise.
37070         * lib/unictype/pr_variation_selector.h: Likewise.
37071         * lib/unictype/pr_white_space.h: Likewise.
37072         * lib/unictype/pr_xid_continue.h: Likewise.
37073         * lib/unictype/pr_xid_start.h: Likewise.
37074         * lib/unictype/pr_zero_width.h: Likewise.
37075         * lib/unictype/scripts.h: Likewise.
37076         * lib/unictype/scripts_byname.gperf: Likewise.
37077         * lib/unictype/sy_c_ident.h: Likewise.
37078         * lib/unictype/sy_c_whitespace.h: Likewise.
37079         * lib/unictype/sy_java_ident.h: Likewise.
37080         * lib/unictype/sy_java_whitespace.h: Likewise.
37081
37082         * lib/unictype/Makefile: New file.
37083         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
37084         glibc.
37085         * lib/unictype/3level.h: New file, copied from glibc.
37086         * lib/unictype/3levelbit.h: New file.
37087
37088 2007-11-11  Bruno Haible  <bruno@clisp.org>
37089
37090         * modules/gperf: New file.
37091         * modules/iconv_open (Depends-on): Add it.
37092         (Makefile.am): Remove the GPERF definition.
37093
37094 2007-11-11  Bruno Haible  <bruno@clisp.org>
37095
37096         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
37097         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
37098
37099 2007-11-11  Bruno Haible  <bruno@clisp.org>
37100
37101         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
37102         (usage): Remove function.
37103
37104 2007-11-11  Bruno Haible  <bruno@clisp.org>
37105
37106         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
37107         gl_FUNC_CEILF_LIBS.
37108         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
37109         gl_FUNC_CEIL_LIBS.
37110         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
37111         gl_FUNC_CEILL_LIBS.
37112         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
37113         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
37114         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
37115
37116 2007-11-11  Bruno Haible  <bruno@clisp.org>
37117
37118         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
37119         roundf were declared but do not exist on functions.
37120         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
37121         roundl were declared but do not exist on functions.
37122         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
37123         HAVE_FLOORL_AND_CEILL, respectively.
37124         Needed for Sun C on Solaris 10.
37125
37126 2007-11-11  Bruno Haible  <bruno@clisp.org>
37127
37128         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
37129         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
37130         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
37131         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
37132         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
37133         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
37134         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
37135         HAVE_DECL_ROUNDF.
37136         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
37137         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
37138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
37139         of HAVE_DECL_ROUND*.
37140         * modules/math (Makefile.am): Update.
37141
37142 2007-11-10  Bruno Haible  <bruno@clisp.org>
37143
37144         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
37145         ptrdiff_t as m4/intl.m4.
37146
37147 2007-11-10  Jim Meyering  <meyering@redhat.com>
37148
37149         Avoid link failure for the argmatch test.
37150         * tests/test-argmatch.c (usage): Define function to avoid a link
37151         failure: argmatch_die requires a usage function.
37152
37153 2007-11-09  Bruno Haible  <bruno@clisp.org>
37154
37155         * doc/functions/snprintf.texi: Mention BeOS deficiency.
37156         * doc/functions/vsnprintf.texi: Likewise.
37157         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
37158         with a size argument < 2.
37159
37160 2007-11-09  Bruno Haible  <bruno@clisp.org>
37161
37162         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
37163         buffer. Fixes an inefficiency introduced on 2007-11-03.
37164
37165 2007-11-09  Bruno Haible  <bruno@clisp.org>
37166
37167         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
37168         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
37169
37170 2007-11-08  Jim Meyering  <meyering@redhat.com>
37171
37172         Change cache variable name prefix "jm_" to "gl_" everywhere.
37173         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
37174         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
37175         * m4/uptime.m4: s/gl_/jm_/
37176
37177 2007-11-07  Bruno Haible  <bruno@clisp.org>
37178
37179         Update to GNU gettext 0.17.
37180         * m4/intl.m4: Update to GNU gettext 0.17.
37181         * m4/po.m4: Likewise.
37182         * modules/gettext (Files): Remove m4/ulonglong.m4.
37183         (configure.ac): Require gettext infrastructure from version 0.17.
37184
37185 2007-11-06  Bruno Haible  <bruno@clisp.org>
37186
37187         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
37188         symbolic values are not defined in a public header.
37189         * lib/freadable.c (freadable) [QNX]: Likewise.
37190         * lib/freadahead.c (freadahead) [QNX]: Likewise.
37191         * lib/freading.c (freading) [QNX]: Likewise.
37192         * lib/fseterr.c (fseterr) [QNX]: Likewise.
37193         * lib/fwritable.c (fwritable) [QNX]: Likewise.
37194         * lib/fwriting.c (fwriting) [QNX]: Likewise.
37195         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
37196         Reported by Alain Magloire.
37197
37198         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
37199
37200 2007-11-05  Bruno Haible  <bruno@clisp.org>
37201
37202         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
37203         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
37204         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
37205         Reported by Eric Blake.
37206
37207 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37208             Bruno Haible  <bruno@clisp.org>
37209
37210         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
37211         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
37212         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
37213         (malloc): Undefine also before including <stdlib.h>.
37214         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
37215         Needed on OSF/1 4.0.
37216
37217 2007-11-05  Jim Meyering  <meyering@redhat.com>
37218
37219         git-version-gen: sync from coreutils.
37220         * build-aux/git-version-gen: Add comments.
37221         Change the first '-' to '.' in the snapshot version string,
37222         e.g., 6.9-377-08144 -> 6.9.377-08144
37223         Remove first parameter.
37224         Don't declare a version "-dirty" merely because a time
37225         stamp has changed.
37226
37227 2007-11-04  Bruno Haible  <bruno@clisp.org>
37228
37229         * lib/lock.h: Protect all macro definitions containing an 'if'
37230         statement through a "do { ... } while (0)".
37231         * lib/tls.h: Likewise.
37232
37233 2007-11-04  Bruno Haible  <bruno@clisp.org>
37234
37235         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
37236
37237 2007-11-04  Bruno Haible  <bruno@clisp.org>
37238
37239         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
37240         * modules/fprintf-posix (Depends-on): Add nocrash.
37241         * modules/snprintf-posix (Depends-on): Likewise.
37242         * modules/sprintf-posix (Depends-on): Likewise.
37243         * modules/vasnprintf-posix (Depends-on): Likewise.
37244         * modules/vasprintf-posix (Depends-on): Likewise.
37245         * modules/vfprintf-posix (Depends-on): Likewise.
37246         * modules/vsnprintf-posix (Depends-on): Likewise.
37247         * modules/vsprintf-posix (Depends-on): Likewise.
37248         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37249         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37250         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37251         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37252         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37253         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37254         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37255
37256 2007-11-04  Bruno Haible  <bruno@clisp.org>
37257
37258         * modules/nocrash: New file.
37259         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
37260         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
37261
37262 2007-11-04  Bruno Haible  <bruno@clisp.org>
37263
37264         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
37265         precision handling.
37266         * tests/test-vasprintf-posix.c (test_function): Likewise.
37267         * tests/test-snprintf-posix.h (test_function): Likewise.
37268         * tests/test-sprintf-posix.h (test_function): Likewise.
37269
37270         Fix *printf behaviour for large precisions on mingw and BeOS.
37271         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
37272         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
37273         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
37274         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37275         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37276         gl_PRINTF_PRECISION and test its result. Invoke
37277         gl_PREREQ_VASNPRINTF_PRECISION.
37278         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37279         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37280         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37281         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37282         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37283         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37284         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37285         * doc/functions/fprintf.texi: Update.
37286         * doc/functions/printf.texi: Update.
37287         * doc/functions/snprintf.texi: Update.
37288         * doc/functions/sprintf.texi: Update.
37289         * doc/functions/vfprintf.texi: Update.
37290         * doc/functions/vprintf.texi: Update.
37291         * doc/functions/vsnprintf.texi: Update.
37292         * doc/functions/vsprintf.texi: Update.
37293
37294 2007-11-04  Bruno Haible  <bruno@clisp.org>
37295
37296         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
37297
37298 2007-11-04  Bruno Haible  <bruno@clisp.org>
37299
37300         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
37301         Reported by Sylvain Beucler <beuc@gnu.org>.
37302
37303 2007-11-03  Bruno Haible  <bruno@clisp.org>
37304
37305         * tests/test-fprintf-posix2.sh: New file.
37306         * tests/test-fprintf-posix2.c: New file.
37307         * modules/fprintf-posix-tests (Files): Add them.
37308         (TESTS): Add test-fprintf-posix2.sh.
37309         (configure.ac): Check for getrlimit and setrlimit.
37310         (check_PROGRAMS): Add test-fprintf-posix2.
37311
37312         * tests/test-printf-posix2.sh: New file.
37313         * tests/test-printf-posix2.c: New file.
37314         * modules/printf-posix-tests (Files): Add them.
37315         (TESTS): Add test-printf-posix2.sh.
37316         (configure.ac): Check for getrlimit and setrlimit.
37317         (check_PROGRAMS): Add test-printf-posix2.
37318
37319         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
37320         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
37321         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
37322         (decode_double): New function, copied from decode_long_double.
37323         (scale10_round_decimal_decoded): New function, extracted from
37324         scale10_round_decimal_long_double.
37325         (scale10_round_decimal_long_double): Use it.
37326         (scale10_round_decimal_double): New function.
37327         (floorlog10): New function.
37328         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
37329         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
37330         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37331         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37332         gl_PRINTF_ENOMEM and test its result. Invoke
37333         gl_PREREQ_VASNPRINTF_ENOMEM.
37334         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37335         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37336         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37337         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37338         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37339         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37340         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37341         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
37342         * modules/snprintf-posix (Depends-on): Likewise.
37343         * modules/sprintf-posix (Depends-on): Likewise.
37344         * modules/vasnprintf-posix (Depends-on): Likewise.
37345         * modules/vasprintf-posix (Depends-on): Likewise.
37346         * modules/vfprintf-posix (Depends-on): Likewise.
37347         * modules/vsnprintf-posix (Depends-on): Likewise.
37348         * modules/vsprintf-posix (Depends-on): Likewise.
37349         * doc/functions/fprintf.texi: Update.
37350         * doc/functions/printf.texi: Update.
37351         * doc/functions/snprintf.texi: Update.
37352         * doc/functions/sprintf.texi: Update.
37353         * doc/functions/vfprintf.texi: Update.
37354         * doc/functions/vprintf.texi: Update.
37355         * doc/functions/vsnprintf.texi: Update.
37356         * doc/functions/vsprintf.texi: Update.
37357
37358 2007-11-03  Bruno Haible  <bruno@clisp.org>
37359
37360         * modules/frexp-nolibm-tests: New file.
37361
37362         * modules/frexp-nolibm: New file.
37363         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
37364
37365 2007-11-03  Bruno Haible  <bruno@clisp.org>
37366
37367         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
37368         value is C99 compliant.
37369         Needed for OSF/1 5.1.
37370
37371 2007-11-03  Bruno Haible  <bruno@clisp.org>
37372
37373         Fix out-of-memory handling of vasnprintf.
37374         * lib/printf-parse.c: Include <errno.h>.
37375         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
37376         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
37377         is already set.
37378
37379 2007-11-02  Eric Blake  <ebb9@byu.net>
37380
37381         Fix tests on cygwin.
37382         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
37383
37384 2007-11-01  Bruno Haible  <bruno@clisp.org>
37385
37386         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
37387         warning.
37388         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
37389         needed for POSIX compatibility.
37390
37391 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
37392
37393         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
37394         for compatibility with GNU.
37395
37396 2007-11-01  Bruno Haible  <bruno@clisp.org>
37397
37398         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
37399         (putenv): Renamed from rpl_putenv. Change argument type from
37400         'const char *' to 'char *'.
37401         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
37402         of defining putenv in config.h, just set REPLACE_PUTENV.
37403         * modules/putenv (Depends-on): Add stdlib.
37404         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37405         (Include): Use <stdlib.h>.
37406         * lib/stdlib.in.h (putenv): New declaration.
37407         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
37408         REPLACE_PUTENV.
37409         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
37410         REPLACE_PUTENV.
37411         Needed for MacOS X 10.5.0.
37412         Reported by Peter O'Gorman <peter@pogma.com>.
37413
37414 2007-11-01  Jim Meyering  <meyering@redhat.com>
37415
37416         Treat an empty date string exactly like "0".
37417         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
37418         if the remaining date string (to be parsed) is empty, use "0".
37419         Reported by Mischa Molhoek and discussed in this thread:
37420         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
37421
37422 2007-10-31  Bruno Haible  <bruno@clisp.org>
37423
37424         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
37425         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
37426         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
37427         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
37428         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
37429         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
37430
37431 2007-10-31  Bruno Haible  <bruno@clisp.org>
37432
37433         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
37434         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
37435         (AC_TYPE_LONG_LONG_INT): Use it.
37436         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
37437         it as well.
37438         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
37439         to m4/longlong.m4.
37440         * modules/stdint (Files): Remove m4/ulonglong.m4.
37441         * modules/strtoull (Files): Use m4/longlong.m4 instead of
37442         m4/ulonglong.m4.
37443         * modules/strtoumax (Files): Likewise.
37444
37445 2007-10-30  Bruno Haible  <bruno@clisp.org>
37446
37447         * modules/xvasprintf-posix: New file.
37448         Suggested by Eric Blake.
37449
37450 2007-10-30  Bruno Haible  <bruno@clisp.org>
37451
37452         * modules/xprintf-posix-tests: New file.
37453         * tests/test-xprintf-posix.sh: New file.
37454         * tests/test-xprintf-posix.c: New file.
37455         * tests/test-xfprintf-posix.c: New file.
37456
37457         * modules/xprintf-posix: New file.
37458
37459 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37460
37461         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
37462         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
37463         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
37464
37465 2007-10-29  Bruno Haible  <bruno@clisp.org>
37466
37467         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
37468         contain the special marker '_cv_'.
37469         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37470         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37471         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37472         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
37473         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37474         Reported by Ralf Wildenhues.
37475
37476 2007-10-29  Bruno Haible  <bruno@clisp.org>
37477
37478         * gnulib-tool (func_import): When --lgpl is not specified, set
37479         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
37480         GPLv3.
37481         Reported by Simon Josefsson.
37482
37483 2007-10-28  Bruno Haible  <bruno@clisp.org>
37484
37485         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
37486         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
37487         HAVE_DECL_ISFINITE.
37488         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
37489         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
37490         HAVE_DECL_ISFINITE.
37491
37492 2007-10-28  Bruno Haible  <bruno@clisp.org>
37493
37494         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
37495         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
37496
37497 2007-10-28  Bruno Haible  <bruno@clisp.org>
37498
37499         Fix link errors with Sun C 5.0 on Solaris 10.
37500         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
37501         function is declared but not present in the compiler's libm.
37502         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
37503         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
37504         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
37505         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
37506         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
37507         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
37508         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
37509         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
37510         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
37511         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
37512         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
37513         HAVE_DECL_FLOORL.
37514
37515 2007-10-28  Bruno Haible  <bruno@clisp.org>
37516
37517         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
37518         gl_FUNC_FLOORL. Cache the result.
37519         (gl_FUNC_FLOORL): Use it.
37520         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
37521         gl_FUNC_CEILL. Cache the result.
37522         (gl_FUNC_CEILL): Use it.
37523
37524         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
37525         gl_FUNC_FLOOR. Cache the result.
37526         (gl_FUNC_FLOOR): Use it.
37527         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
37528         gl_FUNC_CEIL. Cache the result.
37529         (gl_FUNC_CEIL): Use it.
37530
37531         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
37532         gl_FUNC_FLOORF. Cache the result.
37533         (gl_FUNC_FLOORF): Use it.
37534         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
37535         gl_FUNC_CEILF. Cache the result.
37536         (gl_FUNC_CEILF): Use it.
37537
37538 2007-10-28  Bruno Haible  <bruno@clisp.org>
37539
37540         * gnulib-tool: Allow specifying the LGPL version number through
37541         --lgpl=2 or --lgpl=3.
37542         (func_usage): Document --lgpl with argument.
37543         Handle --lgpl=... arguments.
37544         (func_import): Recognize also gl_LGPL calls with an argument. When
37545         --lgpl=2 is used and the module's license is just LGPL, report an
37546         error. Set sed_transform_lib_file according to the lgpl variable. In
37547         the generated files, use --lgpl or gl_LGPL invocations with argument,
37548         if necessary.
37549         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
37550         an LGPv2+ license.
37551         * doc/gnulib-tool.texi (Modified imports): Update explanation of
37552         gl_LGPL macro.
37553
37554 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37555             Bruno Haible  <bruno@clisp.org>
37556
37557         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
37558         (u16_uctomb_aux): Likewise.
37559         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
37560         !HAVE_INLINE.
37561         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
37562
37563 2007-10-28  Bruno Haible  <bruno@clisp.org>
37564
37565         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
37566         Invoke AM_GETTEXT_OPTION if it exists.
37567         * modules/vasprintf: Likewise.
37568         * modules/verror: Likewise.
37569         * modules/xprintf: Likewise.
37570         * modules/xvasprintf: Likewise.
37571
37572 2007-10-27  Ben Pfaff  <blp@gnu.org>
37573
37574         * lib/math.in.h: Define isfinite macro and prototypes for
37575         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
37576         implementations.
37577         * m4/math_h.m4: New substitutions for isfinite module.
37578         * lib/isfinite.c: New file.
37579         * m4/isfinite.m4: New file.
37580         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
37581         * modules/isfinite: New file.
37582         * modules/isfinite-tests: New file.
37583         * tests/tests-isfinite.c: New file.
37584         * doc/functions/isfinite.texi: Mention isfinite module.
37585         * MODULES.html.sh: Mention new module.
37586
37587 2007-10-27  Ben Pfaff  <blp@gnu.org>
37588
37589         Ralf Wildenhues reported that Tru64 4.0D declares the round
37590         functions but does not have definitions.
37591         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
37592         cannot be found in any library, set the output variable to
37593         "missing" instead of "".
37594         * m4/round.m4: Also use our substitute if we cannot find round in
37595         any library, even if it is declared.
37596         * m4/roundf.m4: Likewise for roundf.
37597         * m4/roundl.m4: Likewise for roundl.
37598         * lib/math.in.h: Undefine roundf, round, roundl before defining
37599         their replacements, to allow for hypothetical systems where these
37600         may be defined as macros but not available in libraries.
37601
37602 2007-10-27  Bruno Haible  <bruno@clisp.org>
37603
37604         * doc/gnulib.texi: Invoke @firstparagraphindent.
37605         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
37606         changes in gnulib.
37607         (Source changes): New section.
37608
37609 2007-10-26  Bruno Haible  <bruno@clisp.org>
37610
37611         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
37612         borrowed from autoconf.
37613
37614 2007-10-26  Bruno Haible  <bruno@clisp.org>
37615
37616         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
37617         strerror returned the empty string. Needed on HP-UX 11.00.
37618
37619 2007-10-24  Micah Cowan  <micah@cowan.name>
37620
37621         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
37622         * build-aux/bootstrap: Remove support for now-unnecessary option,
37623         --cvs-user, and envvars CVS_USER, CVS_RSH.
37624
37625 2007-10-24  Jim Meyering  <meyering@redhat.com>
37626
37627         Avoid diagnostics from sha1sum when there is no cached checksum.
37628         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
37629         if the po.s1 file hasn't been created yet.
37630
37631         * build-aux/bootstrap: Sync from coreutils:
37632         2007-10-24  Jim Meyering  <meyering@redhat.com>
37633         Get gnulib from the git repository, not from an obsolete cvs one.
37634         * build-aux/bootstrap: Suggestion from Micah Cowan.
37635         2007-10-04  Jim Meyering  <jim@meyering.net>
37636         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
37637         (update_po_files): Work also when there are no .po files in po/.
37638
37639 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
37640
37641         * README: Append ".git" to git and cg examples.
37642         Problem reported by Benoit Sigoure.
37643
37644 2007-10-23  Micah Cowan  <micah@cowan.name>
37645
37646         * users.txt: Add wget.
37647
37648 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37649
37650         Fix linking of some unistdio tests on FreeBSD.
37651         * modules/unistdio/u16-vsnprintf-tests
37652         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
37653         * modules/unistdio/u16-vsprintf-tests
37654         (test_u16_vsnprintf1_LDADD): Likewise.
37655         * modules/unistdio/u32-vsnprintf-tests
37656         (test_u32_vsnprintf1_LDADD): Likewise.
37657         * modules/unistdio/u32-vsprintf-tests
37658         (test_u32_vsprintf1_LDADD): Likewise.
37659         * modules/unistdio/u8-vsnprintf-tests
37660         (test_u8_vsnprintf1_LDADD): Likewise.
37661         * modules/unistdio/u8-vsprintf-tests
37662         (test_u8_vsprintf1_LDADD): Likewise.
37663         * modules/unistdio/ulc-vsnprintf-tests
37664         (test_ulc_vsnprintf1_LDADD): Likewise.
37665         * modules/unistdio/ulc-vsprintf-tests
37666         (test_ulc_vsprintf1_LDADD): Likewise.
37667
37668         Fix linking of some uniconv tests on FreeBSD.
37669         * modules/uniconv/u16-conv-from-enc-tests
37670         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
37671         * modules/uniconv/u16-conv-to-enc-tests
37672         (test_u16_conv_to_enc_LDADD): Likewise.
37673         * modules/uniconv/u16-strconv-from-enc-tests
37674         (test_u16_strconv_from_enc_LDADD): Likewise.
37675         * modules/uniconv/u16-strconv-to-enc-tests
37676         (test_u16_strconv_to_enc_LDADD): Likewise.
37677         * modules/uniconv/u32-conv-from-enc-tests
37678         (test_u32_conv_from_enc_LDADD): Likewise.
37679         * modules/uniconv/u32-conv-to-enc-tests
37680         (test_u32_conv_to_enc_LDADD): Likewise.
37681         * modules/uniconv/u32-strconv-from-enc-tests
37682         (test_u32_strconv_from_enc_LDADD): Likewise.
37683         * modules/uniconv/u32-strconv-to-enc-tests
37684         (test_u32_strconv_to_enc_LDADD): Likewise.
37685         * modules/uniconv/u8-conv-from-enc-tests
37686         (test_u8_conv_from_enc_LDADD): Likewise.
37687         * modules/uniconv/u8-conv-to-enc-tests
37688         (test_u8_conv_to_enc_LDADD): Likewise.
37689         * modules/uniconv/u8-strconv-from-enc-tests
37690         (test_u8_strconv_from_enc_LDADD): Likewise.
37691         * modules/uniconv/u8-strconv-to-enc-tests
37692         (test_u8_strconv_to_enc_LDADD): Likewise.
37693
37694 2007-10-22  Bruno Haible  <bruno@clisp.org>
37695
37696         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
37697         size.
37698
37699 2007-10-22  Eric Blake  <ebb9@byu.net>
37700
37701         Tweak x*printf documentation.
37702         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
37703         variable name and comments.
37704         Suggested by Bruno Haible.
37705
37706 2007-10-22  Bruno Haible  <bruno@clisp.org>
37707
37708         * lib/acl.c (copy_acl): Fix file name in comment.
37709
37710 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
37711
37712         Fix Tru64 problem with stdbool.h.
37713         * lib/stdbool.in.h (false, true):
37714         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
37715         Don't declare as an enum in this situation; it runs afoul of Tru64.
37716         Problem reported by Steven M. Schweda in
37717         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
37718
37719 2007-10-22  Eric Blake  <ebb9@byu.net>
37720
37721         Also wrap vf?printf.
37722         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
37723         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
37724         (xvprintf, xvfprintf): New functions.
37725
37726 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37727
37728         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
37729         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
37730
37731         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
37732         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
37733
37734 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
37735
37736         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
37737         by Bruno Haible.
37738
37739 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37740
37741         * lib/getloadavg.c
37742         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
37743         Undef `sys' after including sys/table.h, for Tru64 4.0D.
37744
37745         * tests/test-i-ring.c: Work for C89.
37746
37747 2007-10-22  Bruno Haible  <bruno@clisp.org>
37748
37749         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
37750         -1u, in preprocessor expression, so that we don't test for the bug
37751         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
37752         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
37753
37754 2007-10-22  Eric Blake  <ebb9@byu.net>
37755
37756         * tests/test-yesno.sh: Silence stderr during test.
37757
37758 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37759
37760         * modules/crypto/gc-camellia: New file.
37761
37762         * m4/gc-camellia.m4: New file.
37763
37764         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
37765
37766         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
37767
37768 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37769
37770         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
37771         --help to stdout.  Reported by sms@antinode.org (Steven
37772         M. Schweda).
37773
37774 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37775
37776         * users.txt: Fix link to libksba.
37777
37778 2007-10-21  Ben Pfaff  <blp@gnu.org>
37779
37780         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
37781         round.c roundf implementation that depends on floorf and ceilf to
37782         be tested unconditionally.
37783
37784 2007-10-21  Ben Pfaff  <blp@gnu.org>
37785
37786         * m4/check-libm-func.m4: Removed.
37787         * m4/check-math-lib.m4: New file.
37788         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
37789         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
37790         definition and lack of AC_LIBOBJ([roundf]).
37791         * m4/roundl.m4: Ditto, and similarly for roundl.
37792         * modules/round: Reference new m4 file.
37793         * modules/roundf: Ditto.
37794         * modules/roundl: Ditto.
37795         * tests/test-round2.c (main): Use ROUND instead of round.
37796         Bug report from Bruno Haible.
37797
37798 2007-10-21  Bruno Haible  <bruno@clisp.org>
37799
37800         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
37801         context.
37802
37803 2007-10-21  Bruno Haible  <bruno@clisp.org>
37804
37805         * tests/test-wcwidth.c (main): Allow negative result for some control
37806         characters.
37807
37808         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
37809         Needed on OSF/1 5.1.
37810
37811 2007-10-21  Bruno Haible  <bruno@clisp.org>
37812
37813         * tests/test-floorf1.c: Include isnanf.h.
37814         (main): Use isnanf() instead of isnan().
37815         * tests/test-ceilf1.c: Include isnanf.h.
37816         (main): Use isnanf() instead of isnan().
37817         * tests/test-truncf1.c: Include isnanf.h.
37818         (main): Use isnanf() instead of isnan().
37819         * tests/test-roundf1.c: Include isnanf.h.
37820         (main): Use isnanf() instead of isnan().
37821
37822 2007-10-21  Eric Blake  <ebb9@byu.net>
37823
37824         * users.txt: Update URL for m4.
37825
37826 2007-10-21  Bruno Haible  <bruno@clisp.org>
37827
37828         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
37829
37830 2007-10-21  Bruno Haible  <bruno@clisp.org>
37831
37832         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
37833         Git's management files if the CVS files are not present.
37834
37835 2007-10-20  Bruno Haible  <bruno@clisp.org>
37836
37837         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
37838         gcc-3.4.x.
37839
37840 2007-10-20  Ben Pfaff  <blp@gnu.org>
37841
37842         * lib/math.in.h: Declare round, roundf, roundl if we are providing
37843         implementations.
37844         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
37845         * lib/round.c: New file.
37846         * lib/roundf.c: New file.
37847         * lib/roundl.c: New file.
37848         * m4/round.m4: New file.
37849         * m4/roundf.m4: New file.
37850         * m4/roundl.m4: New file.
37851         * m4/check-libm-func-m4: New file.
37852         * modules/math: Replace round, roundf, roundl related @VARS@ in
37853         math.in.h.
37854         * modules/round: New file.
37855         * modules/round-tests: New file.
37856         * modules/roundf: New file.
37857         * modules/roundf-tests: New file.
37858         * modules/roundl: New file.
37859         * modules/roundl-tests: New file.
37860         * tests/test-round1.c: New file.
37861         * tests/test-round2.c: New file.
37862         * tests/test-roundf1.c: New file.
37863         * tests/test-roundf2.c: New file.
37864         * tests/test-roundl.c: New file.
37865         * doc/functions/round.texi: Mention round module.
37866         * doc/functions/roundf.texi: Mention roundf module.
37867         * doc/functions/roundl.texi: Mention roundl module.
37868         * MODULES.html.sh: Mention new modules.
37869         Thanks to Bruno Haible for suggestions.
37870
37871 2007-10-20  Jim Meyering  <meyering@redhat.com>
37872
37873         * lib/xprintf.c: Include <config.h> unconditionally.
37874
37875         Change xprintf's license to GPL.
37876         * modules/xprintf (License): s/LGPL/GPL/, since this module
37877         depends on modules (exit and exitfail) which are GPL.
37878         Suggestion from Bruno Haible.
37879
37880         xprintf fixes.
37881         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
37882         Use a clearer diagnostic.
37883         Patch from Bruno Haible.
37884
37885 2007-10-20  Bruno Haible  <bruno@clisp.org>
37886
37887         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
37888         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
37889         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37890
37891 2007-10-20  Bruno Haible  <bruno@clisp.org>
37892
37893         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
37894         precision in the comparison result > x - 1 or similar.
37895         * tests/test-ceilf2.c (correct_result_p): Likewise.
37896         * tests/test-truncf2.c (correct_result_p): Likewise.
37897         * tests/test-trunc2.c (correct_result_p): Likewise.
37898         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37899
37900 2007-10-20  Bruno Haible  <bruno@clisp.org>
37901
37902         * modules/ceil: New file.
37903         * m4/ceil.m4: New file.
37904         * doc/functions/ceil.texi: Mention the 'ceil' module.
37905
37906 2007-10-20  Bruno Haible  <bruno@clisp.org>
37907
37908         * modules/floor: New file.
37909         * m4/floor.m4: New file.
37910         * doc/functions/floor.texi: Mention the 'floor' module.
37911
37912 2007-10-20  Bruno Haible  <bruno@clisp.org>
37913
37914         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
37915         of %a.
37916         * modules/floorf-tests (Depends-on): Likewise.
37917         * modules/truncf-tests (Depends-on): Likewise.
37918         * modules/trunc-tests (Depends-on): Likewise.
37919         Reported by Ben Pfaff.
37920
37921 2007-10-19  Jim Meyering  <meyering@redhat.com>
37922
37923         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
37924         Don't bother testing specific errno values.  Just test ferror.
37925
37926         New module: xprintf
37927         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
37928
37929 2007-10-19  Bruno Haible  <bruno@clisp.org>
37930
37931         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
37932         syntax.
37933         * modules/javaexec (Makefile.am): Likewise.
37934         * modules/relocatable-prog (Makefile.am): Likewise.
37935         Suggested by Jim Meyering.
37936
37937 2007-10-18  Bruno Haible  <bruno@clisp.org>
37938
37939         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
37940         Reported by Jim Meyering.
37941
37942 2007-10-18  Eric Blake  <ebb9@byu.net>
37943
37944         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
37945
37946 2007-10-18  Bruno Haible  <bruno@clisp.org>
37947
37948         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
37949         the format string into writable memory. Needed in Fortify conditions.
37950
37951 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
37952             Bruno Haible  <bruno@clisp.org>
37953
37954         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
37955         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
37956         * modules/trim (Depends-on): Add mbchar.
37957         (configure.ac): Add gl_FUNC_MBRTOWC.
37958         (Makefile.am): Augment lib_SOURCES.
37959
37960 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
37961
37962         Modify glob.c to use fstatat and dirfd, to simplify it.
37963         Suggested by Eric Blake.
37964         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
37965         Don't include <stdbool.h>; not used.
37966         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
37967         (link_exists_p): Simplify implementation, since we can now assume
37968         dirfd and fstatat.
37969         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
37970
37971 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37972
37973         * gnulib-tool (func_get_dependencies): Fix sed script to
37974         match only tests.
37975
37976 2007-10-17  Bruno Haible  <bruno@clisp.org>
37977
37978         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
37979         allow locale names without encoding suffix.
37980         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
37981         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
37982
37983 2007-10-16  Bruno Haible  <bruno@clisp.org>
37984
37985         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
37986         * lib/getgroups.c (getgroups): Likewise.
37987         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
37988
37989 2007-10-16  Bruno Haible  <bruno@clisp.org>
37990
37991         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
37992         * modules/malloc-posix (License): Likewise.
37993         * modules/realloc-posix (License): Likewise.
37994         * modules/calloc-posix (License): Likewise.
37995         * modules/intprops (License): Change from GPL to LGPL, with
37996         Paul Eggert's approval.
37997
37998 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37999
38000         Merge glibc changes into lib/glob.c.
38001
38002         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
38003         2007-10-15 04:59:03 UTC.  Here are the changes:
38004
38005         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
38006
38007         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
38008
38009         * lib/glob.c: Add some branch prediction throughout.
38010
38011         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
38012
38013         [BZ #5103]
38014         * lib/glob.c (glob): Recognize patterns starting \/.
38015
38016         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
38017
38018         [BZ #3996]
38019         * lib/glob.c (attribute_hidden): Define if not defined.
38020         (glob): Unescape dirname, filename or username when needed and not
38021         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
38022         is NULL.  Handle unescaped [ in pattern without closing ].
38023         Don't pass GLOB_CHECK down to recursive glob for directories.
38024         (__glob_pattern_type): New function.
38025         (__glob_pattern_p): Implement using __glob_pattern_type.
38026         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
38027         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
38028         Remove unreachable code.
38029
38030         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
38031
38032         * lib/glob.c (glob_in_dir): Add some comments and asserts to
38033         explain why there are no leaks.
38034
38035         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
38036
38037         [BZ #3253]
38038         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
38039         time, rather allocate increasingly bigger arrays of pointers, if
38040         possible with alloca, if too large with malloc.
38041
38042 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38043
38044         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
38045         Problem reported by H.Merijn Brand in
38046         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
38047         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
38048         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
38049
38050 2007-10-15  Bruno Haible  <bruno@clisp.org>
38051
38052         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
38053         with explicit rpl_ prefix.
38054         * lib/fopen.c (fopen): Likewise.
38055         * lib/freopen.c (freopen): Likewise.
38056         * lib/iconv.c (iconv): Likewise.
38057         * lib/iconv_close.c (iconv_close): Likewise.
38058
38059 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38060
38061         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
38062
38063 2007-10-15  Bruno Haible  <bruno@clisp.org>
38064
38065         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
38066         <stddef.h> instead of <stdlib.h> since we only need NULL.
38067         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38068
38069 2007-10-15  Bruno Haible  <bruno@clisp.org>
38070
38071         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
38072         Replace paragraph talking about LIBOBJS.
38073         Reported by Colin Watson <cjwatson@debian.org>.
38074
38075 2007-10-15  Bruno Haible  <bruno@clisp.org>
38076
38077         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
38078         <stdlib.h> before using NULL.
38079
38080 2007-10-15  Simon Josefsson  <simon@josefsson.org>
38081
38082         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
38083         Reported by Albert Chin <china@thewrittenword.com>.
38084
38085 2007-10-14  Bruno Haible  <bruno@clisp.org>
38086
38087         * modules/iconv_open-utf-tests: New file.
38088         * tests/test-iconv-utf.c: New file.
38089
38090         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
38091         * modules/iconv_open-utf: New file.
38092         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
38093         (iconv, iconv_close): New declarations.
38094         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
38095         be defined.
38096         (iconv_open): Add special handling of conversion between UTF-8 and
38097         UTF-{16,32}{BE,LE}.
38098         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
38099         * lib/iconv_close.c: New file.
38100         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
38101         gl_FUNC_ICONV_OPEN.
38102         (gl_FUNC_ICONV_OPEN): Use it.
38103         (gl_FUNC_ICONV_OPEN_UTF): New macro.
38104         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
38105         and REPLACE_ICONV_UTF.
38106         * modules/iconv_open (Depends-on): Add c-strcase.
38107         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
38108         ICONV_CONST.
38109         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
38110
38111 2007-10-13  Albert Chin  <china@thewrittenword.com>
38112             Bruno Haible  <bruno@clisp.org>
38113
38114         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
38115         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
38116
38117 2007-10-13  Bruno Haible  <bruno@clisp.org>
38118
38119         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
38120         defined, use the ISO C99 inline semantics.
38121         * lib/argp.h (ARGP_EI): Likewise.
38122
38123 2007-10-13  Bruno Haible  <bruno@clisp.org>
38124
38125         Handle 'inline' change in gcc 4.3.0.
38126         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
38127         argp_fmtstream_write, argp_fmtstream_set_lmargin,
38128         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
38129         argp_fmtstream_point): Disable 'extern' declaration if the function
38130         definition is going to be provided inline.
38131         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
38132         semantics, not the ISO C99 inline semantics.
38133         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
38134         'extern' declaration if the function definition is going to be provided
38135         inline.
38136         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
38137         the GNU C inline semantics, not the ISO C99 inline semantics. With
38138         GCC 4.2, avoid a warning.
38139
38140 2007-10-13  Bruno Haible  <bruno@clisp.org>
38141
38142         * lib/freading.h (freading): Enable the use of __freading for
38143         glibc >= 2.7.
38144         * lib/freading.c (freading): Likewise.
38145
38146 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38147
38148         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
38149         "warning: C99 inline functions are not supported; using GNU89".
38150
38151 2007-10-12  Bruno Haible  <bruno@clisp.org>
38152
38153         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
38154         of 2.
38155         * tests/test-ceilf2.c: New file.
38156         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
38157
38158         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
38159         * modules/ceilf-tests: Update.
38160
38161 2007-10-12  Bruno Haible  <bruno@clisp.org>
38162
38163         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
38164         of 2.
38165         * tests/test-floorf2.c: New file.
38166         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
38167
38168         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
38169         * modules/floorf-tests: Update.
38170
38171 2007-10-12  Bruno Haible  <bruno@clisp.org>
38172
38173         * tests/test-trunc2.c: New file.
38174         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
38175
38176         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
38177         * modules/trunc-tests: Update.
38178
38179 2007-10-12  Bruno Haible  <bruno@clisp.org>
38180
38181         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
38182         of 2.
38183         * tests/test-truncf2.c: New file.
38184         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
38185
38186         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
38187         * modules/truncf-tests: Update.
38188
38189 2007-10-11  Eric Blake  <ebb9@byu.net>
38190
38191         Don't claim strerror is broken on Interix.
38192         * doc/functions/strerror.texi (strerror): Known broken systems are
38193         now Solaris 8, and not Interix.
38194         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
38195         Interix on cross-compile.
38196         Reported by Martin Koeppe in
38197         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
38198
38199 2007-10-11  Bruno Haible  <bruno@clisp.org>
38200
38201         * modules/i-ring-tests: New file.
38202         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
38203         instead of assert.
38204
38205 2007-10-11  Bruno Haible  <bruno@clisp.org>
38206
38207         * modules/filenamecat-tests: New file.
38208         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
38209         * lib/filenamecat.c: Remove test code.
38210
38211 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
38212
38213         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
38214
38215         * lib/strerror.c: Include <string.h> always, to test interface,
38216         and to remove the need for the dummy.
38217         Include intprops.h to compute width instead of doing it ourselves
38218         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
38219         (strerror): Define it to return NULL if there's no system strerror.
38220         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
38221         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
38222         ancient pre-strerror Unix systems well any more.  Saying "unknown
38223         system error" is enough.
38224         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
38225         simpler strerror.c implementation.
38226         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
38227         Simplify the tests to reflect the simpler strerror implementation.
38228         * modules/strerror (Depends-on): Add intprops.
38229
38230 2007-10-09  Eric Blake  <ebb9@byu.net>
38231
38232         Silence test-fpending.
38233         * modules/fpending-tests (Files): Add wrapper script.
38234         * tests/test-fpending.sh: New file.
38235
38236 2007-10-09  Bruno Haible  <bruno@clisp.org>
38237
38238         * MODULES.html.sh (func_module): Don't create a hyperlink for
38239         function names like 'printf_frexp'.
38240         (Misc): Add crc, memxor.
38241         (Characteristics of floating types): New section.
38242         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
38243         isnanf-nolibm, signbit, trunc, truncf, truncl.
38244         (Enhancements for ISO C 99 functions): New subsection Input/output.
38245         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
38246         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
38247         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
38248         (Compatibility checks for POSIX:2001 functions): Add clock-time.
38249         (Enhancements for POSIX:2001 functions): Add chdir-long.
38250         (File system functions): Add areadlink, chdir-safer, read-file.
38251         Remove cycle-check.
38252         (File system as inode set): New section.
38253         (Date and time): Add gethrxtime.
38254         (Multithreading): Add openmp.
38255         (Internationalization functions): Add localename.
38256         (Unicode string functions): Add unistr/u*-mbsnlen.
38257         (Support for maintaining and releasing projects): Add git-version-gen.
38258         (Lone files): Remove directories.
38259
38260 2007-10-08  Ben Pfaff  <blp@gnu.org>
38261
38262         * lib/xmalloca.h: Fix typo in comment.
38263
38264 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38265
38266         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
38267         when avoiding problems with integer overflow.  Use a portable test
38268         instead.
38269
38270 2007-10-08  Simon Josefsson  <simon@josefsson.org>
38271
38272         * modules/dummy (License): Change to LGPLv2+.
38273         * modules/float (License): Likewise
38274         * modules/realloc (License): Likewise
38275         * modules/stdlib (License): Likewise
38276
38277 2007-10-07  Bruno Haible  <bruno@clisp.org>
38278
38279         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
38280         * floor.c (TWO_MANT_DIG): Likewise.
38281         * ceil.c (TWO_MANT_DIG): Likewise.
38282         Reported by Ben Pfaff.
38283
38284 2007-10-07  Bruno Haible  <bruno@clisp.org>
38285
38286         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
38287         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
38288         * lib/frexp.c (FUNC): Likewise.
38289         * lib/printf-frexp.h (printf_frexp): Likewise.
38290         * lib/printf-frexpl.h (printf_frexpl): Likewise.
38291         * lib/printf-frexp.c (FUNC): Likewise.
38292         Suggested by Jim Meyering.
38293
38294 2007-10-07  Jim Meyering  <meyering@redhat.com>
38295
38296         Make xnanosleep's integer overflow test more robust.
38297         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
38298         so that gcc-4.3.0 doesn't optimize away this test for overflow.
38299
38300 2007-10-07  Bruno Haible  <bruno@clisp.org>
38301
38302         * NEWS: Mention the license change.
38303
38304         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
38305         abbreviations in the modules files.
38306
38307         Change copyright notice from GPLv2+ to GPLv3+.
38308         * README: Change copyright notice.
38309         * MODULES.html.sh: Likewise.
38310         * build-aux/bootstrap.conf: Likewise.
38311         * build-aux/config.libpath: Likewise.
38312         * build-aux/csharpcomp.sh.in: Likewise.
38313         * build-aux/csharpexec.sh.in: Likewise.
38314         * build-aux/install-reloc: Likewise.
38315         * build-aux/javacomp.sh.in: Likewise.
38316         * build-aux/javaexec.sh.in: Likewise.
38317         * build-aux/ldd.sh.in: Likewise.
38318         * build-aux/reloc-ldflags: Likewise.
38319         * build-aux/relocatable.sh.in: Likewise.
38320         * build-aux/x-to-1.in: Likewise.
38321         * check-module: Likewise.
38322         * config/srclistvars.sh: Likewise.
38323         * gnulib-tool: Likewise.
38324         * lib/acl-internal.h: Likewise.
38325         * lib/acl.c: Likewise.
38326         * lib/acl.h: Likewise.
38327         * lib/acl_entries.c: Likewise.
38328         * lib/areadlink-with-size.c: Likewise.
38329         * lib/areadlink.c: Likewise.
38330         * lib/areadlink.h: Likewise.
38331         * lib/argmatch.c: Likewise.
38332         * lib/argmatch.h: Likewise.
38333         * lib/argp-ba.c: Likewise.
38334         * lib/argp-eexst.c: Likewise.
38335         * lib/argp-fmtstream.c: Likewise.
38336         * lib/argp-fmtstream.h: Likewise.
38337         * lib/argp-fs-xinl.c: Likewise.
38338         * lib/argp-help.c: Likewise.
38339         * lib/argp-namefrob.h: Likewise.
38340         * lib/argp-parse.c: Likewise.
38341         * lib/argp-pin.c: Likewise.
38342         * lib/argp-pv.c: Likewise.
38343         * lib/argp-pvh.c: Likewise.
38344         * lib/argp-xinl.c: Likewise.
38345         * lib/argp.h: Likewise.
38346         * lib/at-func.c: Likewise.
38347         * lib/atanl.c: Likewise.
38348         * lib/backupfile.c: Likewise.
38349         * lib/backupfile.h: Likewise.
38350         * lib/basename.c: Likewise.
38351         * lib/binary-io.h: Likewise.
38352         * lib/byteswap.in.h: Likewise.
38353         * lib/c-stack.c: Likewise.
38354         * lib/c-stack.h: Likewise.
38355         * lib/c-strcasestr.c: Likewise.
38356         * lib/c-strcasestr.h: Likewise.
38357         * lib/c-strstr.c: Likewise.
38358         * lib/c-strstr.h: Likewise.
38359         * lib/c-strtod.c: Likewise.
38360         * lib/calloc.c: Likewise.
38361         * lib/canon-host.c: Likewise.
38362         * lib/canon-host.h: Likewise.
38363         * lib/canonicalize-lgpl.c: Likewise.
38364         * lib/canonicalize.c: Likewise.
38365         * lib/canonicalize.h: Likewise.
38366         * lib/ceil.c: Likewise.
38367         * lib/ceilf.c: Likewise.
38368         * lib/ceill.c: Likewise.
38369         * lib/chdir-long.c: Likewise.
38370         * lib/chdir-long.h: Likewise.
38371         * lib/chdir-safer.c: Likewise.
38372         * lib/chdir-safer.h: Likewise.
38373         * lib/chown.c: Likewise.
38374         * lib/classpath.c: Likewise.
38375         * lib/classpath.h: Likewise.
38376         * lib/clean-temp.c: Likewise.
38377         * lib/clean-temp.h: Likewise.
38378         * lib/cloexec.c: Likewise.
38379         * lib/close-stream.c: Likewise.
38380         * lib/closein.c: Likewise.
38381         * lib/closein.h: Likewise.
38382         * lib/closeout.c: Likewise.
38383         * lib/closeout.h: Likewise.
38384         * lib/concat-filename.c: Likewise.
38385         * lib/copy-file.c: Likewise.
38386         * lib/copy-file.h: Likewise.
38387         * lib/count-one-bits.h: Likewise.
38388         * lib/crc.c: Likewise.
38389         * lib/crc.h: Likewise.
38390         * lib/creat-safer.c: Likewise.
38391         * lib/csharpcomp.c: Likewise.
38392         * lib/csharpcomp.h: Likewise.
38393         * lib/csharpexec.c: Likewise.
38394         * lib/csharpexec.h: Likewise.
38395         * lib/cycle-check.c: Likewise.
38396         * lib/cycle-check.h: Likewise.
38397         * lib/diacrit.c: Likewise.
38398         * lib/diacrit.h: Likewise.
38399         * lib/diffseq.h: Likewise.
38400         * lib/dirchownmod.c: Likewise.
38401         * lib/dirent.in.h: Likewise.
38402         * lib/dirfd.c: Likewise.
38403         * lib/dirfd.h: Likewise.
38404         * lib/dirname.c: Likewise.
38405         * lib/dirname.h: Likewise.
38406         * lib/dummy.c: Likewise.
38407         * lib/dup-safer.c: Likewise.
38408         * lib/dup2.c: Likewise.
38409         * lib/eealloc.h: Likewise.
38410         * lib/error.c: Likewise.
38411         * lib/error.h: Likewise.
38412         * lib/euidaccess.c: Likewise.
38413         * lib/exclude.c: Likewise.
38414         * lib/exclude.h: Likewise.
38415         * lib/execute.c: Likewise.
38416         * lib/execute.h: Likewise.
38417         * lib/exitfail.c: Likewise.
38418         * lib/exitfail.h: Likewise.
38419         * lib/expl.c: Likewise.
38420         * lib/fatal-signal.c: Likewise.
38421         * lib/fatal-signal.h: Likewise.
38422         * lib/fbufmode.c: Likewise.
38423         * lib/fbufmode.h: Likewise.
38424         * lib/fchdir.c: Likewise.
38425         * lib/fchmodat.c: Likewise.
38426         * lib/fchownat.c: Likewise.
38427         * lib/fcntl--.h: Likewise.
38428         * lib/fcntl-safer.h: Likewise.
38429         * lib/fcntl.in.h: Likewise.
38430         * lib/fd-safer.c: Likewise.
38431         * lib/fflush.c: Likewise.
38432         * lib/file-has-acl.c: Likewise.
38433         * lib/file-set.c: Likewise.
38434         * lib/file-type.c: Likewise.
38435         * lib/file-type.h: Likewise.
38436         * lib/fileblocks.c: Likewise.
38437         * lib/filemode.c: Likewise.
38438         * lib/filemode.h: Likewise.
38439         * lib/filename.h: Likewise.
38440         * lib/filenamecat.c: Likewise.
38441         * lib/filenamecat.h: Likewise.
38442         * lib/findprog.c: Likewise.
38443         * lib/findprog.h: Likewise.
38444         * lib/float.in.h: Likewise.
38445         * lib/floor.c: Likewise.
38446         * lib/floorf.c: Likewise.
38447         * lib/floorl.c: Likewise.
38448         * lib/fopen-safer.c: Likewise.
38449         * lib/fopen.c: Likewise.
38450         * lib/fpending.c: Likewise.
38451         * lib/fpending.h: Likewise.
38452         * lib/fprintf.c: Likewise.
38453         * lib/fprintftime.h: Likewise.
38454         * lib/fpucw.h: Likewise.
38455         * lib/fpurge.c: Likewise.
38456         * lib/fpurge.h: Likewise.
38457         * lib/freadable.c: Likewise.
38458         * lib/freadable.h: Likewise.
38459         * lib/freadahead.c: Likewise.
38460         * lib/freadahead.h: Likewise.
38461         * lib/freading.c: Likewise.
38462         * lib/freading.h: Likewise.
38463         * lib/free.c: Likewise.
38464         * lib/freopen.c: Likewise.
38465         * lib/frexp.c: Likewise.
38466         * lib/frexpl.c: Likewise.
38467         * lib/fseek.c: Likewise.
38468         * lib/fseterr.c: Likewise.
38469         * lib/fseterr.h: Likewise.
38470         * lib/fstatat.c: Likewise.
38471         * lib/fstrcmp.c: Likewise.
38472         * lib/fstrcmp.h: Likewise.
38473         * lib/fsusage.c: Likewise.
38474         * lib/fsusage.h: Likewise.
38475         * lib/ftell.c: Likewise.
38476         * lib/ftello.c: Likewise.
38477         * lib/fts-cycle.c: Likewise.
38478         * lib/fts.c: Likewise.
38479         * lib/fts_.h: Likewise.
38480         * lib/full-read.c: Likewise.
38481         * lib/full-read.h: Likewise.
38482         * lib/full-write.c: Likewise.
38483         * lib/full-write.h: Likewise.
38484         * lib/fwritable.c: Likewise.
38485         * lib/fwritable.h: Likewise.
38486         * lib/fwriteerror.c: Likewise.
38487         * lib/fwriteerror.h: Likewise.
38488         * lib/fwriting.c: Likewise.
38489         * lib/fwriting.h: Likewise.
38490         * lib/gcd.c: Likewise.
38491         * lib/gcd.h: Likewise.
38492         * lib/getcwd.c: Likewise.
38493         * lib/getdate.h: Likewise.
38494         * lib/getdate.y: Likewise.
38495         * lib/getdomainname.c: Likewise.
38496         * lib/getdomainname.h: Likewise.
38497         * lib/getgroups.c: Likewise.
38498         * lib/gethostname.c: Likewise.
38499         * lib/gethrxtime.c: Likewise.
38500         * lib/gethrxtime.h: Likewise.
38501         * lib/getloadavg.c: Likewise.
38502         * lib/getndelim2.c: Likewise.
38503         * lib/getndelim2.h: Likewise.
38504         * lib/getnline.c: Likewise.
38505         * lib/getnline.h: Likewise.
38506         * lib/getopt.c: Likewise.
38507         * lib/getopt.in.h: Likewise.
38508         * lib/getopt1.c: Likewise.
38509         * lib/getopt_int.h: Likewise.
38510         * lib/getpagesize.h: Likewise.
38511         * lib/getsubopt.c: Likewise.
38512         * lib/gettime.c: Likewise.
38513         * lib/getugroups.c: Likewise.
38514         * lib/getugroups.h: Likewise.
38515         * lib/getusershell.c: Likewise.
38516         * lib/gl_anyavltree_list1.h: Likewise.
38517         * lib/gl_anyavltree_list2.h: Likewise.
38518         * lib/gl_anyhash_list1.h: Likewise.
38519         * lib/gl_anyhash_list2.h: Likewise.
38520         * lib/gl_anylinked_list1.h: Likewise.
38521         * lib/gl_anylinked_list2.h: Likewise.
38522         * lib/gl_anyrbtree_list1.h: Likewise.
38523         * lib/gl_anyrbtree_list2.h: Likewise.
38524         * lib/gl_anytree_list1.h: Likewise.
38525         * lib/gl_anytree_list2.h: Likewise.
38526         * lib/gl_anytree_oset.h: Likewise.
38527         * lib/gl_anytreehash_list1.h: Likewise.
38528         * lib/gl_anytreehash_list2.h: Likewise.
38529         * lib/gl_array_list.c: Likewise.
38530         * lib/gl_array_list.h: Likewise.
38531         * lib/gl_array_oset.c: Likewise.
38532         * lib/gl_array_oset.h: Likewise.
38533         * lib/gl_avltree_list.c: Likewise.
38534         * lib/gl_avltree_list.h: Likewise.
38535         * lib/gl_avltree_oset.c: Likewise.
38536         * lib/gl_avltree_oset.h: Likewise.
38537         * lib/gl_avltreehash_list.c: Likewise.
38538         * lib/gl_avltreehash_list.h: Likewise.
38539         * lib/gl_carray_list.c: Likewise.
38540         * lib/gl_carray_list.h: Likewise.
38541         * lib/gl_linked_list.c: Likewise.
38542         * lib/gl_linked_list.h: Likewise.
38543         * lib/gl_linkedhash_list.c: Likewise.
38544         * lib/gl_linkedhash_list.h: Likewise.
38545         * lib/gl_list.c: Likewise.
38546         * lib/gl_list.h: Likewise.
38547         * lib/gl_oset.c: Likewise.
38548         * lib/gl_oset.h: Likewise.
38549         * lib/gl_rbtree_list.c: Likewise.
38550         * lib/gl_rbtree_list.h: Likewise.
38551         * lib/gl_rbtree_oset.c: Likewise.
38552         * lib/gl_rbtree_oset.h: Likewise.
38553         * lib/gl_rbtreehash_list.c: Likewise.
38554         * lib/gl_rbtreehash_list.h: Likewise.
38555         * lib/gl_sublist.c: Likewise.
38556         * lib/gl_sublist.h: Likewise.
38557         * lib/group-member.c: Likewise.
38558         * lib/group-member.h: Likewise.
38559         * lib/hard-locale.c: Likewise.
38560         * lib/hard-locale.h: Likewise.
38561         * lib/hash-pjw.c: Likewise.
38562         * lib/hash-pjw.h: Likewise.
38563         * lib/hash-triple.c: Likewise.
38564         * lib/hash.c: Likewise.
38565         * lib/hash.h: Likewise.
38566         * lib/human.c: Likewise.
38567         * lib/human.h: Likewise.
38568         * lib/i-ring.c: Likewise.
38569         * lib/i-ring.h: Likewise.
38570         * lib/idcache.c: Likewise.
38571         * lib/imaxabs.c: Likewise.
38572         * lib/imaxdiv.c: Likewise.
38573         * lib/inet_pton.c: Likewise.
38574         * lib/inet_pton.h: Likewise.
38575         * lib/intprops.h: Likewise.
38576         * lib/inttostr.c: Likewise.
38577         * lib/inttostr.h: Likewise.
38578         * lib/inttypes.in.h: Likewise.
38579         * lib/isapipe.c: Likewise.
38580         * lib/isdir.c: Likewise.
38581         * lib/isnan.c: Likewise.
38582         * lib/isnan.h: Likewise.
38583         * lib/isnanf.c: Likewise.
38584         * lib/isnanf.h: Likewise.
38585         * lib/isnanl-nolibm.h: Likewise.
38586         * lib/isnanl.c: Likewise.
38587         * lib/isnanl.h: Likewise.
38588         * lib/javacomp.c: Likewise.
38589         * lib/javacomp.h: Likewise.
38590         * lib/javaexec.c: Likewise.
38591         * lib/javaexec.h: Likewise.
38592         * lib/javaversion.c: Likewise.
38593         * lib/javaversion.h: Likewise.
38594         * lib/javaversion.java: Likewise.
38595         * lib/lbrkprop.h: Likewise.
38596         * lib/lchmod.h: Likewise.
38597         * lib/lchown.c: Likewise.
38598         * lib/ldexpl.c: Likewise.
38599         * lib/linebreak.c: Likewise.
38600         * lib/linebreak.h: Likewise.
38601         * lib/linebuffer.c: Likewise.
38602         * lib/linebuffer.h: Likewise.
38603         * lib/locale.in.h: Likewise.
38604         * lib/logl.c: Likewise.
38605         * lib/long-options.c: Likewise.
38606         * lib/long-options.h: Likewise.
38607         * lib/lstat.c: Likewise.
38608         * lib/lstat.h: Likewise.
38609         * lib/math.in.h: Likewise.
38610         * lib/mbchar.c: Likewise.
38611         * lib/mbchar.h: Likewise.
38612         * lib/mbfile.h: Likewise.
38613         * lib/mbiter.h: Likewise.
38614         * lib/mbscasecmp.c: Likewise.
38615         * lib/mbscasestr.c: Likewise.
38616         * lib/mbschr.c: Likewise.
38617         * lib/mbscspn.c: Likewise.
38618         * lib/mbslen.c: Likewise.
38619         * lib/mbsncasecmp.c: Likewise.
38620         * lib/mbsnlen.c: Likewise.
38621         * lib/mbspbrk.c: Likewise.
38622         * lib/mbspcasecmp.c: Likewise.
38623         * lib/mbsrchr.c: Likewise.
38624         * lib/mbssep.c: Likewise.
38625         * lib/mbsspn.c: Likewise.
38626         * lib/mbsstr.c: Likewise.
38627         * lib/mbstok_r.c: Likewise.
38628         * lib/mbswidth.c: Likewise.
38629         * lib/mbswidth.h: Likewise.
38630         * lib/mbuiter.h: Likewise.
38631         * lib/memcasecmp.c: Likewise.
38632         * lib/memcasecmp.h: Likewise.
38633         * lib/memchr.c: Likewise.
38634         * lib/memcmp.c: Likewise.
38635         * lib/memcoll.c: Likewise.
38636         * lib/memcoll.h: Likewise.
38637         * lib/memcpy.c: Likewise.
38638         * lib/memrchr.c: Likewise.
38639         * lib/mkancesdirs.c: Likewise.
38640         * lib/mkdir-p.c: Likewise.
38641         * lib/mkdir-p.h: Likewise.
38642         * lib/mkdir.c: Likewise.
38643         * lib/mkdirat.c: Likewise.
38644         * lib/mkdtemp.c: Likewise.
38645         * lib/mkstemp-safer.c: Likewise.
38646         * lib/mkstemp.c: Likewise.
38647         * lib/modechange.c: Likewise.
38648         * lib/modechange.h: Likewise.
38649         * lib/mountlist.c: Likewise.
38650         * lib/mountlist.h: Likewise.
38651         * lib/mpsort.c: Likewise.
38652         * lib/nanosleep.c: Likewise.
38653         * lib/obstack.c: Likewise.
38654         * lib/obstack.h: Likewise.
38655         * lib/open-safer.c: Likewise.
38656         * lib/open.c: Likewise.
38657         * lib/openat-die.c: Likewise.
38658         * lib/openat-priv.h: Likewise.
38659         * lib/openat-proc.c: Likewise.
38660         * lib/openat.c: Likewise.
38661         * lib/openat.h: Likewise.
38662         * lib/pagealign_alloc.c: Likewise.
38663         * lib/pagealign_alloc.h: Likewise.
38664         * lib/physmem.c: Likewise.
38665         * lib/physmem.h: Likewise.
38666         * lib/pipe-safer.c: Likewise.
38667         * lib/pipe.c: Likewise.
38668         * lib/pipe.h: Likewise.
38669         * lib/posixtm.c: Likewise.
38670         * lib/posixtm.h: Likewise.
38671         * lib/posixver.c: Likewise.
38672         * lib/printf-frexp.c: Likewise.
38673         * lib/printf-frexp.h: Likewise.
38674         * lib/printf-frexpl.c: Likewise.
38675         * lib/printf-frexpl.h: Likewise.
38676         * lib/printf.c: Likewise.
38677         * lib/progname.c: Likewise.
38678         * lib/progname.h: Likewise.
38679         * lib/progreloc.c: Likewise.
38680         * lib/putenv.c: Likewise.
38681         * lib/quote.c: Likewise.
38682         * lib/quote.h: Likewise.
38683         * lib/quotearg.c: Likewise.
38684         * lib/quotearg.h: Likewise.
38685         * lib/raise.c: Likewise.
38686         * lib/readline.c: Likewise.
38687         * lib/readline.h: Likewise.
38688         * lib/readlink.c: Likewise.
38689         * lib/readtokens.c: Likewise.
38690         * lib/readtokens.h: Likewise.
38691         * lib/readtokens0.c: Likewise.
38692         * lib/readtokens0.h: Likewise.
38693         * lib/readutmp.c: Likewise.
38694         * lib/readutmp.h: Likewise.
38695         * lib/realloc.c: Likewise.
38696         * lib/relocwrapper.c: Likewise.
38697         * lib/rename-dest-slash.c: Likewise.
38698         * lib/rename.c: Likewise.
38699         * lib/rmdir.c: Likewise.
38700         * lib/rpmatch.c: Likewise.
38701         * lib/safe-read.c: Likewise.
38702         * lib/safe-read.h: Likewise.
38703         * lib/safe-write.c: Likewise.
38704         * lib/safe-write.h: Likewise.
38705         * lib/same-inode.h: Likewise.
38706         * lib/same.c: Likewise.
38707         * lib/same.h: Likewise.
38708         * lib/save-cwd.c: Likewise.
38709         * lib/save-cwd.h: Likewise.
38710         * lib/savedir.c: Likewise.
38711         * lib/savedir.h: Likewise.
38712         * lib/savewd.c: Likewise.
38713         * lib/savewd.h: Likewise.
38714         * lib/search.in.h: Likewise.
38715         * lib/setenv.c: Likewise.
38716         * lib/setenv.h: Likewise.
38717         * lib/settime.c: Likewise.
38718         * lib/sh-quote.c: Likewise.
38719         * lib/sh-quote.h: Likewise.
38720         * lib/sig2str.c: Likewise.
38721         * lib/sig2str.h: Likewise.
38722         * lib/signal.in.h: Likewise.
38723         * lib/signbitd.c: Likewise.
38724         * lib/signbitf.c: Likewise.
38725         * lib/signbitl.c: Likewise.
38726         * lib/sigprocmask.c: Likewise.
38727         * lib/sincosl.c: Likewise.
38728         * lib/sleep.c: Likewise.
38729         * lib/sprintf.c: Likewise.
38730         * lib/sqrtl.c: Likewise.
38731         * lib/stat-time.h: Likewise.
38732         * lib/stdio--.h: Likewise.
38733         * lib/stdio-safer.h: Likewise.
38734         * lib/stdlib--.h: Likewise.
38735         * lib/stdlib-safer.h: Likewise.
38736         * lib/stdlib.in.h: Likewise.
38737         * lib/stpcpy.c: Likewise.
38738         * lib/stpncpy.c: Likewise.
38739         * lib/strchrnul.c: Likewise.
38740         * lib/strcspn.c: Likewise.
38741         * lib/strerror.c: Likewise.
38742         * lib/strftime.c: Likewise.
38743         * lib/strftime.h: Likewise.
38744         * lib/striconveh.c: Likewise.
38745         * lib/striconveh.h: Likewise.
38746         * lib/striconveha.c: Likewise.
38747         * lib/striconveha.h: Likewise.
38748         * lib/stripslash.c: Likewise.
38749         * lib/strnlen1.c: Likewise.
38750         * lib/strnlen1.h: Likewise.
38751         * lib/strtod.c: Likewise.
38752         * lib/strtoimax.c: Likewise.
38753         * lib/strtok_r.c: Likewise.
38754         * lib/strtol.c: Likewise.
38755         * lib/strtoll.c: Likewise.
38756         * lib/strtoul.c: Likewise.
38757         * lib/strtoull.c: Likewise.
38758         * lib/sysexits.in.h: Likewise.
38759         * lib/tempname.c: Likewise.
38760         * lib/tempname.h: Likewise.
38761         * lib/timespec.h: Likewise.
38762         * lib/tls.c: Likewise.
38763         * lib/tls.h: Likewise.
38764         * lib/tmpdir.c: Likewise.
38765         * lib/tmpdir.h: Likewise.
38766         * lib/tmpfile-safer.c: Likewise.
38767         * lib/tmpfile.c: Likewise.
38768         * lib/trigl.c: Likewise.
38769         * lib/trigl.h: Likewise.
38770         * lib/trim.c: Likewise.
38771         * lib/trim.h: Likewise.
38772         * lib/trunc.c: Likewise.
38773         * lib/truncf.c: Likewise.
38774         * lib/truncl.c: Likewise.
38775         * lib/tsearch.c: Likewise.
38776         * lib/unicodeio.c: Likewise.
38777         * lib/unicodeio.h: Likewise.
38778         * lib/unistd--.h: Likewise.
38779         * lib/unistd-safer.h: Likewise.
38780         * lib/unistdio/ulc-fprintf.c: Likewise.
38781         * lib/unistdio/ulc-vfprintf.c: Likewise.
38782         * lib/unlinkdir.c: Likewise.
38783         * lib/unlinkdir.h: Likewise.
38784         * lib/unlocked-io.h: Likewise.
38785         * lib/unsetenv.c: Likewise.
38786         * lib/userspec.c: Likewise.
38787         * lib/utime.c: Likewise.
38788         * lib/utimecmp.c: Likewise.
38789         * lib/utimecmp.h: Likewise.
38790         * lib/utimens.c: Likewise.
38791         * lib/verify.h: Likewise.
38792         * lib/verror.c: Likewise.
38793         * lib/verror.h: Likewise.
38794         * lib/version-etc-fsf.c: Likewise.
38795         * lib/version-etc.c: Likewise.
38796         * lib/version-etc.h: Likewise.
38797         * lib/vfprintf.c: Likewise.
38798         * lib/vprintf.c: Likewise.
38799         * lib/vsprintf.c: Likewise.
38800         * lib/w32spawn.h: Likewise.
38801         * lib/wait-process.c: Likewise.
38802         * lib/wait-process.h: Likewise.
38803         * lib/wcwidth.c: Likewise.
38804         * lib/write-any-file.c: Likewise.
38805         * lib/xalloc-die.c: Likewise.
38806         * lib/xalloc.h: Likewise.
38807         * lib/xasprintf.c: Likewise.
38808         * lib/xgetcwd.c: Likewise.
38809         * lib/xgetcwd.h: Likewise.
38810         * lib/xgetdomainname.c: Likewise.
38811         * lib/xgetdomainname.h: Likewise.
38812         * lib/xgethostname.c: Likewise.
38813         * lib/xmalloc.c: Likewise.
38814         * lib/xmalloca.c: Likewise.
38815         * lib/xmalloca.h: Likewise.
38816         * lib/xmemcoll.c: Likewise.
38817         * lib/xnanosleep.c: Likewise.
38818         * lib/xreadlink.c: Likewise.
38819         * lib/xreadlink.h: Likewise.
38820         * lib/xsetenv.c: Likewise.
38821         * lib/xsetenv.h: Likewise.
38822         * lib/xstriconv.c: Likewise.
38823         * lib/xstriconv.h: Likewise.
38824         * lib/xstrndup.c: Likewise.
38825         * lib/xstrndup.h: Likewise.
38826         * lib/xstrtod.c: Likewise.
38827         * lib/xstrtod.h: Likewise.
38828         * lib/xstrtol-error.c: Likewise.
38829         * lib/xstrtol.c: Likewise.
38830         * lib/xstrtol.h: Likewise.
38831         * lib/xtime.h: Likewise.
38832         * lib/xvasprintf.c: Likewise.
38833         * lib/xvasprintf.h: Likewise.
38834         * lib/yesno.c: Likewise.
38835         * lib/yesno.h: Likewise.
38836         * posix-modules: Likewise.
38837         * tests/test-alloca-opt.c: Likewise.
38838         * tests/test-arcfour.c: Likewise.
38839         * tests/test-arctwo.c: Likewise.
38840         * tests/test-argmatch.c: Likewise.
38841         * tests/test-argp-2.sh: Likewise.
38842         * tests/test-argp.c: Likewise.
38843         * tests/test-arpa_inet.c: Likewise.
38844         * tests/test-array_list.c: Likewise.
38845         * tests/test-array_oset.c: Likewise.
38846         * tests/test-atexit.c: Likewise.
38847         * tests/test-avltree_list.c: Likewise.
38848         * tests/test-avltree_oset.c: Likewise.
38849         * tests/test-avltreehash_list.c: Likewise.
38850         * tests/test-base64.c: Likewise.
38851         * tests/test-binary-io.c: Likewise.
38852         * tests/test-byteswap.c: Likewise.
38853         * tests/test-c-ctype.c: Likewise.
38854         * tests/test-c-strcasecmp.c: Likewise.
38855         * tests/test-c-strcasestr.c: Likewise.
38856         * tests/test-c-strncasecmp.c: Likewise.
38857         * tests/test-c-strstr.c: Likewise.
38858         * tests/test-canonicalize-lgpl.c: Likewise.
38859         * tests/test-canonicalize.c: Likewise.
38860         * tests/test-carray_list.c: Likewise.
38861         * tests/test-ceilf.c: Likewise.
38862         * tests/test-ceill.c: Likewise.
38863         * tests/test-count-one-bits.c: Likewise.
38864         * tests/test-crc.c: Likewise.
38865         * tests/test-dirname.c: Likewise.
38866         * tests/test-fbufmode.c: Likewise.
38867         * tests/test-fcntl.c: Likewise.
38868         * tests/test-fflush.c: Likewise.
38869         * tests/test-floorf.c: Likewise.
38870         * tests/test-floorl.c: Likewise.
38871         * tests/test-fopen.c: Likewise.
38872         * tests/test-fprintf-posix.c: Likewise.
38873         * tests/test-fprintf-posix.h: Likewise.
38874         * tests/test-fpurge.c: Likewise.
38875         * tests/test-freadable.c: Likewise.
38876         * tests/test-freadahead.c: Likewise.
38877         * tests/test-freading.c: Likewise.
38878         * tests/test-freopen.c: Likewise.
38879         * tests/test-frexp.c: Likewise.
38880         * tests/test-frexpl.c: Likewise.
38881         * tests/test-fseek.c: Likewise.
38882         * tests/test-fseeko.c: Likewise.
38883         * tests/test-fseterr.c: Likewise.
38884         * tests/test-fstrcmp.c: Likewise.
38885         * tests/test-ftell.c: Likewise.
38886         * tests/test-ftello.c: Likewise.
38887         * tests/test-fwritable.c: Likewise.
38888         * tests/test-fwriting.c: Likewise.
38889         * tests/test-getaddrinfo.c: Likewise.
38890         * tests/test-getpass.c: Likewise.
38891         * tests/test-gettimeofday.c: Likewise.
38892         * tests/test-hmac-md5.c: Likewise.
38893         * tests/test-hmac-sha1.c: Likewise.
38894         * tests/test-iconv.c: Likewise.
38895         * tests/test-iconvme.c: Likewise.
38896         * tests/test-inttypes.c: Likewise.
38897         * tests/test-isnan.c: Likewise.
38898         * tests/test-isnanf.c: Likewise.
38899         * tests/test-isnanl-nolibm.c: Likewise.
38900         * tests/test-isnanl.c: Likewise.
38901         * tests/test-isnanl.h: Likewise.
38902         * tests/test-ldexpl.c: Likewise.
38903         * tests/test-linked_list.c: Likewise.
38904         * tests/test-linkedhash_list.c: Likewise.
38905         * tests/test-locale.c: Likewise.
38906         * tests/test-localename.c: Likewise.
38907         * tests/test-lock.c: Likewise.
38908         * tests/test-lseek.c: Likewise.
38909         * tests/test-malloca.c: Likewise.
38910         * tests/test-math.c: Likewise.
38911         * tests/test-mbscasecmp.c: Likewise.
38912         * tests/test-mbscasestr1.c: Likewise.
38913         * tests/test-mbscasestr2.c: Likewise.
38914         * tests/test-mbscasestr3.c: Likewise.
38915         * tests/test-mbscasestr4.c: Likewise.
38916         * tests/test-mbschr.c: Likewise.
38917         * tests/test-mbscspn.c: Likewise.
38918         * tests/test-mbsncasecmp.c: Likewise.
38919         * tests/test-mbspbrk.c: Likewise.
38920         * tests/test-mbspcasecmp.c: Likewise.
38921         * tests/test-mbsrchr.c: Likewise.
38922         * tests/test-mbsspn.c: Likewise.
38923         * tests/test-mbsstr1.c: Likewise.
38924         * tests/test-mbsstr2.c: Likewise.
38925         * tests/test-mbsstr3.c: Likewise.
38926         * tests/test-md5.c: Likewise.
38927         * tests/test-memmem.c: Likewise.
38928         * tests/test-netinet_in.c: Likewise.
38929         * tests/test-open.c: Likewise.
38930         * tests/test-printf-frexp.c: Likewise.
38931         * tests/test-printf-frexpl.c: Likewise.
38932         * tests/test-printf-posix.c: Likewise.
38933         * tests/test-printf-posix.h: Likewise.
38934         * tests/test-rbtree_list.c: Likewise.
38935         * tests/test-rbtree_oset.c: Likewise.
38936         * tests/test-rbtreehash_list.c: Likewise.
38937         * tests/test-read-file.c: Likewise.
38938         * tests/test-rijndael.c: Likewise.
38939         * tests/test-search.c: Likewise.
38940         * tests/test-signbit.c: Likewise.
38941         * tests/test-sleep.c: Likewise.
38942         * tests/test-snprintf-posix.c: Likewise.
38943         * tests/test-snprintf-posix.h: Likewise.
38944         * tests/test-snprintf.c: Likewise.
38945         * tests/test-sprintf-posix.c: Likewise.
38946         * tests/test-sprintf-posix.h: Likewise.
38947         * tests/test-stat-time.c: Likewise.
38948         * tests/test-stdbool.c: Likewise.
38949         * tests/test-stdint.c: Likewise.
38950         * tests/test-stdio.c: Likewise.
38951         * tests/test-stdlib.c: Likewise.
38952         * tests/test-stpncpy.c: Likewise.
38953         * tests/test-strcasestr.c: Likewise.
38954         * tests/test-striconv.c: Likewise.
38955         * tests/test-striconveh.c: Likewise.
38956         * tests/test-striconveha.c: Likewise.
38957         * tests/test-string.c: Likewise.
38958         * tests/test-sys_select.c: Likewise.
38959         * tests/test-sys_socket.c: Likewise.
38960         * tests/test-sys_stat.c: Likewise.
38961         * tests/test-sys_time.c: Likewise.
38962         * tests/test-sysexits.c: Likewise.
38963         * tests/test-time.c: Likewise.
38964         * tests/test-tls.c: Likewise.
38965         * tests/test-trunc.c: Likewise.
38966         * tests/test-truncf.c: Likewise.
38967         * tests/test-truncl.c: Likewise.
38968         * tests/test-unistd.c: Likewise.
38969         * tests/test-vasnprintf-posix.c: Likewise.
38970         * tests/test-vasnprintf-posix2.c: Likewise.
38971         * tests/test-vasnprintf.c: Likewise.
38972         * tests/test-vasprintf-posix.c: Likewise.
38973         * tests/test-vasprintf.c: Likewise.
38974         * tests/test-verify.c: Likewise.
38975         * tests/test-vfprintf-posix.c: Likewise.
38976         * tests/test-vprintf-posix.c: Likewise.
38977         * tests/test-vsnprintf-posix.c: Likewise.
38978         * tests/test-vsnprintf.c: Likewise.
38979         * tests/test-vsprintf-posix.c: Likewise.
38980         * tests/test-wchar.c: Likewise.
38981         * tests/test-wctype.c: Likewise.
38982         * tests/test-wcwidth.c: Likewise.
38983         * tests/test-xstrtol.c: Likewise.
38984         * tests/test-xvasprintf.c: Likewise.
38985         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38986         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38987         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38988         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38989         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38990         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38991         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38992         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38993         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38994         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38995         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38996         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38997         * tests/uniname/test-uninames.c: Likewise.
38998         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38999         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
39000         * tests/unistdio/test-u16-printf1.h: Likewise.
39001         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39002         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39003         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39004         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39005         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39006         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39007         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39008         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
39009         * tests/unistdio/test-u32-printf1.h: Likewise.
39010         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39011         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39012         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39013         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39014         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39015         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39016         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39017         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
39018         * tests/unistdio/test-u8-printf1.h: Likewise.
39019         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39020         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39021         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39022         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39023         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39024         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39025         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39026         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
39027         * tests/unistdio/test-ulc-printf1.h: Likewise.
39028         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39029         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39030         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39031         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39032         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39033         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39034         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39035         * tests/uniwidth/test-u16-width.c: Likewise.
39036         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39037         * tests/uniwidth/test-u32-width.c: Likewise.
39038         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39039         * tests/uniwidth/test-u8-width.c: Likewise.
39040         * tests/uniwidth/test-uc_width.c: Likewise.
39041         * config/srclist-update: Likewise.
39042         (fixlicense): Update to GPLv3+.
39043
39044         Change copyright notice from LGPLv2.1+ to LGPLv3+.
39045         * tests/test-tsearch.c: Change copyright notice.
39046
39047         Change copyright notice from LGPLv2.0+ to LGPLv3+.
39048         * lib/c-strcaseeq.h: Change copyright notice.
39049         * lib/streq.h: Likewise.
39050         * lib/uniconv.h: Likewise.
39051         * lib/uniconv/u-conv-from-enc.h: Likewise.
39052         * lib/uniconv/u-conv-to-enc.h: Likewise.
39053         * lib/uniconv/u-strconv-from-enc.h: Likewise.
39054         * lib/uniconv/u-strconv-to-enc.h: Likewise.
39055         * lib/uniconv/u16-conv-from-enc.c: Likewise.
39056         * lib/uniconv/u16-conv-to-enc.c: Likewise.
39057         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
39058         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
39059         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
39060         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
39061         * lib/uniconv/u32-conv-from-enc.c: Likewise.
39062         * lib/uniconv/u32-conv-to-enc.c: Likewise.
39063         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
39064         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
39065         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
39066         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
39067         * lib/uniconv/u8-conv-from-enc.c: Likewise.
39068         * lib/uniconv/u8-conv-to-enc.c: Likewise.
39069         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
39070         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
39071         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
39072         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
39073         * lib/uniname.h: Likewise.
39074         * lib/uniname/uniname.c: Likewise.
39075         * lib/unistdio.h: Likewise.
39076         * lib/unistdio/u-asnprintf.h: Likewise.
39077         * lib/unistdio/u-asprintf.h: Likewise.
39078         * lib/unistdio/u-printf-args.c: Likewise.
39079         * lib/unistdio/u-printf-args.h: Likewise.
39080         * lib/unistdio/u-printf-parse.h: Likewise.
39081         * lib/unistdio/u-snprintf.h: Likewise.
39082         * lib/unistdio/u-sprintf.h: Likewise.
39083         * lib/unistdio/u-vasprintf.h: Likewise.
39084         * lib/unistdio/u-vsnprintf.h: Likewise.
39085         * lib/unistdio/u-vsprintf.h: Likewise.
39086         * lib/unistdio/u16-asnprintf.c: Likewise.
39087         * lib/unistdio/u16-asprintf.c: Likewise.
39088         * lib/unistdio/u16-printf-parse.c: Likewise.
39089         * lib/unistdio/u16-snprintf.c: Likewise.
39090         * lib/unistdio/u16-sprintf.c: Likewise.
39091         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
39092         * lib/unistdio/u16-u16-asprintf.c: Likewise.
39093         * lib/unistdio/u16-u16-snprintf.c: Likewise.
39094         * lib/unistdio/u16-u16-sprintf.c: Likewise.
39095         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
39096         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
39097         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
39098         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
39099         * lib/unistdio/u16-vasnprintf.c: Likewise.
39100         * lib/unistdio/u16-vasprintf.c: Likewise.
39101         * lib/unistdio/u16-vsnprintf.c: Likewise.
39102         * lib/unistdio/u16-vsprintf.c: Likewise.
39103         * lib/unistdio/u32-asnprintf.c: Likewise.
39104         * lib/unistdio/u32-asprintf.c: Likewise.
39105         * lib/unistdio/u32-printf-parse.c: Likewise.
39106         * lib/unistdio/u32-snprintf.c: Likewise.
39107         * lib/unistdio/u32-sprintf.c: Likewise.
39108         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
39109         * lib/unistdio/u32-u32-asprintf.c: Likewise.
39110         * lib/unistdio/u32-u32-snprintf.c: Likewise.
39111         * lib/unistdio/u32-u32-sprintf.c: Likewise.
39112         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
39113         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
39114         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
39115         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
39116         * lib/unistdio/u32-vasnprintf.c: Likewise.
39117         * lib/unistdio/u32-vasprintf.c: Likewise.
39118         * lib/unistdio/u32-vsnprintf.c: Likewise.
39119         * lib/unistdio/u32-vsprintf.c: Likewise.
39120         * lib/unistdio/u8-asnprintf.c: Likewise.
39121         * lib/unistdio/u8-asprintf.c: Likewise.
39122         * lib/unistdio/u8-printf-parse.c: Likewise.
39123         * lib/unistdio/u8-snprintf.c: Likewise.
39124         * lib/unistdio/u8-sprintf.c: Likewise.
39125         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
39126         * lib/unistdio/u8-u8-asprintf.c: Likewise.
39127         * lib/unistdio/u8-u8-snprintf.c: Likewise.
39128         * lib/unistdio/u8-u8-sprintf.c: Likewise.
39129         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
39130         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
39131         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
39132         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
39133         * lib/unistdio/u8-vasnprintf.c: Likewise.
39134         * lib/unistdio/u8-vasprintf.c: Likewise.
39135         * lib/unistdio/u8-vsnprintf.c: Likewise.
39136         * lib/unistdio/u8-vsprintf.c: Likewise.
39137         * lib/unistdio/ulc-asnprintf.c: Likewise.
39138         * lib/unistdio/ulc-asprintf.c: Likewise.
39139         * lib/unistdio/ulc-printf-parse.c: Likewise.
39140         * lib/unistdio/ulc-snprintf.c: Likewise.
39141         * lib/unistdio/ulc-sprintf.c: Likewise.
39142         * lib/unistdio/ulc-vasnprintf.c: Likewise.
39143         * lib/unistdio/ulc-vasprintf.c: Likewise.
39144         * lib/unistdio/ulc-vsnprintf.c: Likewise.
39145         * lib/unistdio/ulc-vsprintf.c: Likewise.
39146         * lib/unistr.h: Likewise.
39147         * lib/unistr/u-cpy-alloc.h: Likewise.
39148         * lib/unistr/u-cpy.h: Likewise.
39149         * lib/unistr/u-endswith.h: Likewise.
39150         * lib/unistr/u-move.h: Likewise.
39151         * lib/unistr/u-set.h: Likewise.
39152         * lib/unistr/u-startswith.h: Likewise.
39153         * lib/unistr/u-stpcpy.h: Likewise.
39154         * lib/unistr/u-stpncpy.h: Likewise.
39155         * lib/unistr/u-strcat.h: Likewise.
39156         * lib/unistr/u-strcpy.h: Likewise.
39157         * lib/unistr/u-strcspn.h: Likewise.
39158         * lib/unistr/u-strdup.h: Likewise.
39159         * lib/unistr/u-strlen.h: Likewise.
39160         * lib/unistr/u-strncat.h: Likewise.
39161         * lib/unistr/u-strncpy.h: Likewise.
39162         * lib/unistr/u-strnlen.h: Likewise.
39163         * lib/unistr/u-strpbrk.h: Likewise.
39164         * lib/unistr/u-strspn.h: Likewise.
39165         * lib/unistr/u-strstr.h: Likewise.
39166         * lib/unistr/u-strtok.h: Likewise.
39167         * lib/unistr/u16-check.c: Likewise.
39168         * lib/unistr/u16-chr.c: Likewise.
39169         * lib/unistr/u16-cmp.c: Likewise.
39170         * lib/unistr/u16-cpy-alloc.c: Likewise.
39171         * lib/unistr/u16-cpy.c: Likewise.
39172         * lib/unistr/u16-endswith.c: Likewise.
39173         * lib/unistr/u16-mblen.c: Likewise.
39174         * lib/unistr/u16-mbsnlen.c: Likewise.
39175         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39176         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39177         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39178         * lib/unistr/u16-mbtouc.c: Likewise.
39179         * lib/unistr/u16-mbtoucr.c: Likewise.
39180         * lib/unistr/u16-move.c: Likewise.
39181         * lib/unistr/u16-next.c: Likewise.
39182         * lib/unistr/u16-prev.c: Likewise.
39183         * lib/unistr/u16-set.c: Likewise.
39184         * lib/unistr/u16-startswith.c: Likewise.
39185         * lib/unistr/u16-stpcpy.c: Likewise.
39186         * lib/unistr/u16-stpncpy.c: Likewise.
39187         * lib/unistr/u16-strcat.c: Likewise.
39188         * lib/unistr/u16-strchr.c: Likewise.
39189         * lib/unistr/u16-strcmp.c: Likewise.
39190         * lib/unistr/u16-strcpy.c: Likewise.
39191         * lib/unistr/u16-strcspn.c: Likewise.
39192         * lib/unistr/u16-strdup.c: Likewise.
39193         * lib/unistr/u16-strlen.c: Likewise.
39194         * lib/unistr/u16-strmblen.c: Likewise.
39195         * lib/unistr/u16-strmbtouc.c: Likewise.
39196         * lib/unistr/u16-strncat.c: Likewise.
39197         * lib/unistr/u16-strncmp.c: Likewise.
39198         * lib/unistr/u16-strncpy.c: Likewise.
39199         * lib/unistr/u16-strnlen.c: Likewise.
39200         * lib/unistr/u16-strpbrk.c: Likewise.
39201         * lib/unistr/u16-strrchr.c: Likewise.
39202         * lib/unistr/u16-strspn.c: Likewise.
39203         * lib/unistr/u16-strstr.c: Likewise.
39204         * lib/unistr/u16-strtok.c: Likewise.
39205         * lib/unistr/u16-to-u32.c: Likewise.
39206         * lib/unistr/u16-to-u8.c: Likewise.
39207         * lib/unistr/u16-uctomb-aux.c: Likewise.
39208         * lib/unistr/u16-uctomb.c: Likewise.
39209         * lib/unistr/u32-check.c: Likewise.
39210         * lib/unistr/u32-chr.c: Likewise.
39211         * lib/unistr/u32-cmp.c: Likewise.
39212         * lib/unistr/u32-cpy-alloc.c: Likewise.
39213         * lib/unistr/u32-cpy.c: Likewise.
39214         * lib/unistr/u32-endswith.c: Likewise.
39215         * lib/unistr/u32-mblen.c: Likewise.
39216         * lib/unistr/u32-mbsnlen.c: Likewise.
39217         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39218         * lib/unistr/u32-mbtouc.c: Likewise.
39219         * lib/unistr/u32-mbtoucr.c: Likewise.
39220         * lib/unistr/u32-move.c: Likewise.
39221         * lib/unistr/u32-next.c: Likewise.
39222         * lib/unistr/u32-prev.c: Likewise.
39223         * lib/unistr/u32-set.c: Likewise.
39224         * lib/unistr/u32-startswith.c: Likewise.
39225         * lib/unistr/u32-stpcpy.c: Likewise.
39226         * lib/unistr/u32-stpncpy.c: Likewise.
39227         * lib/unistr/u32-strcat.c: Likewise.
39228         * lib/unistr/u32-strchr.c: Likewise.
39229         * lib/unistr/u32-strcmp.c: Likewise.
39230         * lib/unistr/u32-strcpy.c: Likewise.
39231         * lib/unistr/u32-strcspn.c: Likewise.
39232         * lib/unistr/u32-strdup.c: Likewise.
39233         * lib/unistr/u32-strlen.c: Likewise.
39234         * lib/unistr/u32-strmblen.c: Likewise.
39235         * lib/unistr/u32-strmbtouc.c: Likewise.
39236         * lib/unistr/u32-strncat.c: Likewise.
39237         * lib/unistr/u32-strncmp.c: Likewise.
39238         * lib/unistr/u32-strncpy.c: Likewise.
39239         * lib/unistr/u32-strnlen.c: Likewise.
39240         * lib/unistr/u32-strpbrk.c: Likewise.
39241         * lib/unistr/u32-strrchr.c: Likewise.
39242         * lib/unistr/u32-strspn.c: Likewise.
39243         * lib/unistr/u32-strstr.c: Likewise.
39244         * lib/unistr/u32-strtok.c: Likewise.
39245         * lib/unistr/u32-to-u16.c: Likewise.
39246         * lib/unistr/u32-to-u8.c: Likewise.
39247         * lib/unistr/u32-uctomb.c: Likewise.
39248         * lib/unistr/u8-check.c: Likewise.
39249         * lib/unistr/u8-chr.c: Likewise.
39250         * lib/unistr/u8-cmp.c: Likewise.
39251         * lib/unistr/u8-cpy-alloc.c: Likewise.
39252         * lib/unistr/u8-cpy.c: Likewise.
39253         * lib/unistr/u8-endswith.c: Likewise.
39254         * lib/unistr/u8-mblen.c: Likewise.
39255         * lib/unistr/u8-mbsnlen.c: Likewise.
39256         * lib/unistr/u8-mbtouc-aux.c: Likewise.
39257         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39258         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39259         * lib/unistr/u8-mbtouc.c: Likewise.
39260         * lib/unistr/u8-mbtoucr.c: Likewise.
39261         * lib/unistr/u8-move.c: Likewise.
39262         * lib/unistr/u8-next.c: Likewise.
39263         * lib/unistr/u8-prev.c: Likewise.
39264         * lib/unistr/u8-set.c: Likewise.
39265         * lib/unistr/u8-startswith.c: Likewise.
39266         * lib/unistr/u8-stpcpy.c: Likewise.
39267         * lib/unistr/u8-stpncpy.c: Likewise.
39268         * lib/unistr/u8-strcat.c: Likewise.
39269         * lib/unistr/u8-strchr.c: Likewise.
39270         * lib/unistr/u8-strcmp.c: Likewise.
39271         * lib/unistr/u8-strcpy.c: Likewise.
39272         * lib/unistr/u8-strcspn.c: Likewise.
39273         * lib/unistr/u8-strdup.c: Likewise.
39274         * lib/unistr/u8-strlen.c: Likewise.
39275         * lib/unistr/u8-strmblen.c: Likewise.
39276         * lib/unistr/u8-strmbtouc.c: Likewise.
39277         * lib/unistr/u8-strncat.c: Likewise.
39278         * lib/unistr/u8-strncmp.c: Likewise.
39279         * lib/unistr/u8-strncpy.c: Likewise.
39280         * lib/unistr/u8-strnlen.c: Likewise.
39281         * lib/unistr/u8-strpbrk.c: Likewise.
39282         * lib/unistr/u8-strrchr.c: Likewise.
39283         * lib/unistr/u8-strspn.c: Likewise.
39284         * lib/unistr/u8-strstr.c: Likewise.
39285         * lib/unistr/u8-strtok.c: Likewise.
39286         * lib/unistr/u8-to-u16.c: Likewise.
39287         * lib/unistr/u8-to-u32.c: Likewise.
39288         * lib/unistr/u8-uctomb-aux.c: Likewise.
39289         * lib/unistr/u8-uctomb.c: Likewise.
39290         * lib/unitypes.h: Likewise.
39291         * lib/uniwidth.h: Likewise.
39292         * lib/uniwidth/cjk.h: Likewise.
39293         * lib/uniwidth/u16-strwidth.c: Likewise.
39294         * lib/uniwidth/u16-width.c: Likewise.
39295         * lib/uniwidth/u32-strwidth.c: Likewise.
39296         * lib/uniwidth/u32-width.c: Likewise.
39297         * lib/uniwidth/u8-strwidth.c: Likewise.
39298         * lib/uniwidth/u8-width.c: Likewise.
39299         * lib/uniwidth/width.c: Likewise.
39300
39301 2007-10-07  Bruno Haible  <bruno@clisp.org>
39302
39303         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
39304         The file is still under LGPL (see modules/inttypes).
39305
39306 2007-10-06  Bruno Haible  <bruno@clisp.org>
39307
39308         * modules/trunc (Dependencies): Add 'extensions'.
39309         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
39310         Reported by Ben Pfaff <blp@gnu.org>.
39311
39312 2007-10-06  Bruno Haible  <bruno@clisp.org>
39313
39314         * modules/freopen-tests: New file.
39315         * tests/test-freopen.c: New file.
39316
39317         * modules/fopen-tests: New file.
39318         * tests/test-fopen.c: New file.
39319
39320         * modules/fopen: New file.
39321         * lib/fopen.c: New file.
39322         * m4/fopen.m4: New file.
39323         * modules/freopen: New file.
39324         * lib/freopen.c: New file.
39325         * m4/freopen.m4: New file.
39326         * lib/stdio.in.h (fopen, freopen): New declarations.
39327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
39328         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
39329         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
39330         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
39331         * doc/functions/fopen.texi: Mention the 'fopen' module.
39332         * doc/functions/freopen.texi: Mention the 'freopen' module.
39333
39334 2007-10-06  Bruno Haible  <bruno@clisp.org>
39335
39336         * modules/open-tests: New file.
39337         * tests/test-open.c: New file.
39338
39339         * modules/open: New file.
39340         * lib/open.c: New file.
39341         * m4/open.m4: New file.
39342         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
39343         lib/open.c does.
39344         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
39345         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
39346         macros.
39347         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
39348         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
39349         REPLACE_OPEN.
39350         * doc/functions/open.texi: Mention the 'open' module.
39351
39352 2007-10-04  Bruno Haible  <bruno@clisp.org>
39353
39354         * modules/ceill-tests: New file.
39355         * tests/test-ceill.c: New file.
39356
39357         * modules/ceill: New file.
39358         * lib/ceill.c: Replace entire file.
39359         * m4/ceill.m4: New file.
39360         * lib/math.in.h (ceill): Replace declaration.
39361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
39362         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
39363         * doc/functions/ceill.texi: Mention the 'ceill' module.
39364         * modules/mathl (Files): Remove lib/ceill.c.
39365         (Depends-on): Add ceill.
39366
39367 2007-10-04  Bruno Haible  <bruno@clisp.org>
39368
39369         * modules/ceilf-tests: New file.
39370         * tests/test-ceilf.c: New file.
39371
39372         * modules/ceilf: New file.
39373         * lib/ceil.c: New file.
39374         * lib/ceilf.c: New file.
39375         * m4/ceilf.m4: New file.
39376         * lib/math.in.h (ceilf): New declaration.
39377         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
39378         HAVE_DECL_CEILF.
39379         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
39380         HAVE_DECL_CEILF.
39381         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
39382
39383 2007-10-04  Bruno Haible  <bruno@clisp.org>
39384
39385         * modules/floorl-tests: New file.
39386         * tests/test-floorl.c: New file.
39387
39388         * modules/floorl: New file.
39389         * lib/floorl.c: Replace entire file.
39390         * m4/floorl.m4: New file.
39391         * lib/math.in.h (floorl): Replace declaration.
39392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
39393         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
39394         * doc/functions/floorl.texi: Mention the 'floorl' module.
39395         * modules/mathl (Files): Remove lib/floorl.c.
39396         (Depends-on): Add floorl.
39397
39398 2007-10-04  Bruno Haible  <bruno@clisp.org>
39399
39400         * modules/floorf-tests: New file.
39401         * tests/test-floorf.c: New file.
39402
39403         * modules/floorf: New file.
39404         * lib/floor.c: New file.
39405         * lib/floorf.c: New file.
39406         * m4/floorf.m4: New file.
39407         * lib/math.in.h (floorf): New declaration.
39408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
39409         HAVE_DECL_FLOORF.
39410         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
39411         HAVE_DECL_FLOORF.
39412         * doc/functions/floorf.texi: Mention the 'floorf' module.
39413
39414 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
39415             Bruno Haible  <bruno@clisp.org>
39416
39417         Advertise for the Git server instead of the CVS server.
39418         * doc/gnulib-intro.texi (Steady Development): Mention the Git
39419         repository instead of the CVS one.
39420         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
39421         about all VCS systems generically.
39422         * doc/gnulib.texi (Introduction): Capitalize `Git'.
39423
39424 2007-10-04  Bruno Haible  <bruno@clisp.org>
39425
39426         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
39427         means.
39428         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
39429
39430 2007-10-04  Bruno Haible  <bruno@clisp.org>
39431
39432         * modules/truncl-tests: New file.
39433         * tests/test-truncl.c: New file.
39434
39435         * modules/truncl: New file.
39436         * lib/truncl.c: New file.
39437         * m4/truncl.m4: New file.
39438         * lib/math.in.h (truncl): New declaration.
39439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
39440         HAVE_DECL_TRUNCL.
39441         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
39442         HAVE_DECL_TRUNCL.
39443         * doc/functions/truncl.texi: Mention the 'truncl' module.
39444
39445 2007-10-04  Bruno Haible  <bruno@clisp.org>
39446
39447         * modules/truncf-tests: New file.
39448         * tests/test-truncf.c: New file.
39449
39450         * modules/truncf: New file.
39451         * lib/trunc.c: Make paramerizable through USE_* macros.
39452         * lib/truncf.c: New file.
39453         * m4/truncf.m4: New file.
39454         * lib/math.in.h (truncf): New declaration.
39455         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
39456         HAVE_DECL_TRUNCF.
39457         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
39458         HAVE_DECL_TRUNCF.
39459         * doc/functions/truncf.texi: Mention the 'truncf' module.
39460
39461 2007-10-03  Bruno Haible  <bruno@clisp.org>
39462
39463         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
39464         augmentation also for tests modules.
39465         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
39466         * modules/atexit-tests (Makefile.am): Likewise.
39467         * modules/binary-io-tests (Makefile.am): Likewise.
39468         * modules/c-strcase-tests (Makefile.am): Likewise.
39469         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
39470         * modules/canonicalize-tests (Makefile.am): Likewise.
39471         * modules/closein-tests (Makefile.am): Likewise.
39472         * modules/fprintf-posix-tests (Makefile.am): Likewise.
39473         * modules/freadahead-tests (Makefile.am): Likewise.
39474         * modules/fseek-tests (Makefile.am): Likewise.
39475         * modules/fseeko-tests (Makefile.am): Likewise.
39476         * modules/ftell-tests (Makefile.am): Likewise.
39477         * modules/ftello-tests (Makefile.am): Likewise.
39478         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
39479         * modules/isnanl-tests (Makefile.am): Likewise.
39480         * modules/lseek-tests (Makefile.am): Likewise.
39481         * modules/mbscasecmp-tests (Makefile.am): Likewise.
39482         * modules/mbscasestr-tests (Makefile.am): Likewise.
39483         * modules/mbschr-tests (Makefile.am): Likewise.
39484         * modules/mbscspn-tests (Makefile.am): Likewise.
39485         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
39486         * modules/mbspbrk-tests (Makefile.am): Likewise.
39487         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
39488         * modules/mbsrchr-tests (Makefile.am): Likewise.
39489         * modules/mbsspn-tests (Makefile.am): Likewise.
39490         * modules/mbsstr-tests (Makefile.am): Likewise.
39491         * modules/printf-posix-tests (Makefile.am): Likewise.
39492         * modules/snprintf-posix-tests (Makefile.am): Likewise.
39493         * modules/sprintf-posix-tests (Makefile.am): Likewise.
39494         * modules/tsearch-tests (Makefile.am): Likewise.
39495         * modules/uniname/uniname-tests (Makefile.am): Likewise.
39496         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
39497         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
39498         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
39499         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
39500         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
39501         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
39502         * modules/vprintf-posix-tests (Makefile.am): Likewise.
39503         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
39504         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
39505         * modules/xstrtoimax-tests (Makefile.am): Likewise.
39506         * modules/xstrtol-tests (Makefile.am): Likewise.
39507         * modules/xstrtoumax-tests (Makefile.am): Likewise.
39508         * modules/yesno-tests (Makefile.am): Likewise.
39509
39510 2007-10-03  Bruno Haible  <bruno@clisp.org>
39511
39512         * modules/trunc-tests: New file.
39513         * tests/test-trunc.c: New file.
39514
39515         * modules/trunc: New file.
39516         * lib/trunc.c: New file.
39517         * m4/trunc.m4: New file.
39518         * lib/math.in.h (trunc): New declaration.
39519         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
39520         HAVE_DECL_TRUNC.
39521         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
39522         HAVE_DECL_TRUNC.
39523         * doc/functions/trunc.texi: Mention the 'trunc' module.
39524
39525 2007-10-03  Bruno Haible  <bruno@clisp.org>
39526
39527         * tests/test-fpending.c: New file, mostly copied
39528         from coreutils/lib/t-fpending.c.
39529         * modules/fpending-tests: New file.
39530
39531 2007-10-03  Bruno Haible  <bruno@clisp.org>
39532
39533         Port the stdio extensions to QNX (untested).
39534         * lib/fseterr.c (fseterr): Add support for QNX.
39535         * lib/fbufmode.c (fbufmode): Likewise.
39536         * lib/freadable.c (freadable): Likewise.
39537         * lib/fwritable.c (fwritable): Likewise.
39538         * lib/freading.c (freading): Likewise.
39539         * lib/fwriting.c (fwriting): Likewise.
39540         * lib/freadahead.c (freadahed): Likewise.
39541         * lib/fpurge.c (fpurge): Likewise.
39542         * lib/fseeko.c (rpl_fseeko): Likewise.
39543
39544 2007-10-03  Bruno Haible  <bruno@clisp.org>
39545             Jim Meyering  <jim@meyering.net>
39546             Eric Blake  <ebb9@byu.net>
39547
39548         * doc/relocatable.texi: Use @command instead of @program.
39549
39550 2007-10-02  Jim Meyering  <jim@meyering.net>
39551
39552         Perform one more "_.h" -> ".in.h" substitution.
39553         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
39554         instead of unistd_.h here, too.
39555
39556 2007-10-01  Bruno Haible  <bruno@clisp.org>
39557
39558         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
39559         Needed for the alloca-opt module.
39560
39561 2007-09-30  Bruno Haible  <bruno@clisp.org>
39562
39563         * lib/alloca.in.h: Renamed from lib/alloca_.h.
39564         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
39565         alloca_.h.
39566         * lib/argz.in.h: Renamed from lib/argz_.h.
39567         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
39568         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
39569         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
39570         byteswap_.h.
39571         * lib/dirent.in.h: Renamed from lib/dirent_.h.
39572         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
39573         dirent_.h.
39574         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
39575         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
39576         fcntl_.h.
39577         * lib/float.in.h: Renamed from lib/float_.h.
39578         * modules/float (Files, Makefile.am): Use float.in.h instead of
39579         float_.h.
39580         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
39581         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
39582         fnmatch_.h.
39583         * lib/getopt.in.h: Renamed from lib/getopt_.h.
39584         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
39585         getopt_.h.
39586         * lib/glob.in.h: Renamed from lib/glob_.h.
39587         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
39588         * lib/iconv.in.h: Renamed from lib/iconv_.h.
39589         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
39590         iconv_.h.
39591         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
39592         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
39593         inttypes_.h.
39594         * lib/locale.in.h: Renamed from lib/locale_.h.
39595         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
39596         locale_.h.
39597         * lib/math.in.h: Renamed from lib/math_.h.
39598         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
39599         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
39600         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
39601         of netinet_in_.h. Add dependency.
39602         * lib/poll.in.h: Renamed from lib/poll_.h.
39603         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
39604         * lib/search.in.h: Renamed from lib/search_.h.
39605         * modules/search (Files, Makefile.am): Use search.in.h instead of
39606         search_.h.
39607         * lib/signal.in.h: Renamed from lib/signal_.h.
39608         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
39609         _signal.h.
39610         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
39611         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
39612         stdbool_.h.
39613         * lib/stdint.in.h: Renamed from lib/stdint_.h.
39614         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
39615         stdint_.h.
39616         * lib/stdio.in.h: Renamed from lib/stdio_.h.
39617         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
39618         stdio_.h.
39619         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
39620         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
39621         stdlib_.h.
39622         * lib/string.in.h: Renamed from lib/string_.h.
39623         * modules/string (Files, Makefile.am): Use string.in.h instead of
39624         string_.h.
39625         * doc/gnulib-tool.texi (Initial import): Update.
39626         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
39627         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
39628         of sys_select_.h. Add dependency.
39629         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
39630         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
39631         of sys_socket_.h.
39632         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
39633         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
39634         sys_stat_.h.
39635         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
39636         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
39637         sys_time_.h.
39638         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
39639         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
39640         sysexits_.h.
39641         * lib/time.in.h: Renamed from lib/time_.h.
39642         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
39643         * lib/unistd.in.h: Renamed from lib/unistd_.h.
39644         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
39645         unistd_.h.
39646         * lib/wchar.in.h: Renamed from lib/wchar_.h.
39647         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
39648         wchar_.h.
39649         * lib/wctype.in.h: Renamed from lib/wctype_.h.
39650         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
39651         wctype_.h.
39652         * build-aux/bootstrap (slurp): Update.
39653         * lib/.cppi-disable: Update.
39654
39655 2007-09-30  Bruno Haible  <bruno@clisp.org>
39656
39657         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
39658         Needed on BeOS.
39659
39660 2007-09-30  Bruno Haible  <bruno@clisp.org>
39661
39662         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
39663
39664 2007-09-29  Bruno Haible  <bruno@clisp.org>
39665
39666         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
39667
39668 2007-09-29  Bruno Haible  <bruno@clisp.org>
39669
39670         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
39671         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
39672         * build-aux/install-reloc: Compile also areadlink.c.
39673         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
39674
39675 2007-09-29  Bruno Haible  <bruno@clisp.org>
39676
39677         * gnulib-tool (func_emit_initmacro_done): Indentation.
39678
39679 2007-09-29  Bruno Haible  <bruno@clisp.org>
39680
39681         * README: Add CVS checkout update instructions.
39682         Info from Bob Proulx <bob@proulx.com>.
39683
39684 2007-09-28  Eric Blake  <ebb9@byu.net>
39685
39686         Provide move-if-change.
39687         * build-aux/move-if-change: New file, based on best practice
39688         rather than any canonical upstream location.
39689
39690 2007-09-28  Jim Meyering  <jim@meyering.net>
39691
39692         Fix canonicalize loop-detection corner case.
39693         Do not attempt to stat the symlink values stored via seen_triple.
39694         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
39695         on linux-2.6.18, (but not 2.6.22).
39696         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
39697         triple_compare.  The former compares dev,ino,filename, while the latter
39698         would actually stat dirname(filename) when dev and ino were equal.
39699         * lib/hash-triple.c: Install <string.h>.
39700         (STREQ): Define.
39701         (triple_compare_ino_str): New function.
39702         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
39703
39704 2007-09-28  Eric Blake  <ebb9@byu.net>
39705
39706         Enforce that AC_REPLACE_FUNCS files exist.
39707         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
39708         override check for typos.
39709
39710         Fix test-closein on Solaris 10.
39711         * tests/test-closein.c (main): Don't assume stdin can be inherited
39712         closed on all systems.
39713         * tests/test-closein.sh: Likewise.
39714         Reported by Piotr Tarnowski.
39715
39716 2007-09-28  Jim Meyering  <jim@meyering.net>
39717
39718         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
39719
39720 2007-09-27  Jim Meyering  <jim@meyering.net>
39721
39722         canonicalize: Avoid a false-positive cycle failure.
39723         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
39724         Sort.  Remove cycle-check.
39725         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
39726         not cycle-check.h.
39727         (seen_triple): New function.
39728         (canonicalize_filename_mode): Use it instead of cycle-check.
39729         * tests/test-canonicalize.c: Add a test for this bug.
39730         * tests/test-canonicalize.sh: Set up and run the test.
39731
39732         New module, file-set, from coreutils.
39733         * modules/file-set: Define it.
39734         * lib/file-set.c, lib/file-set.h: Implement.
39735
39736         New module, hash-triple, from coreutils.
39737         * modules/hash-triple: Define it.
39738         * lib/hash-triple.c, lib/hash-triple.h: Implement.
39739
39740 2007-09-25  Eric Blake  <ebb9@byu.net>
39741
39742         Fix strerror on Interix.
39743         * lib/string_.h (strerror): Declare replacement.
39744         * doc/functions/strerror.texi (strerror): Document the Interix
39745         shortcoming.
39746         * modules/string (Makefile.am): Support new hooks.
39747         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
39748         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
39749         gl_FUNC_STRERROR_SEPARATE.
39750         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
39751         * lib/strerror.c (rpl_strerror): Provide replacement.
39752         * modules/strerror (Depends-on): Add string.
39753         (configure.ac): Detect use of module.
39754         * tests/test-strerror.c: New file.
39755         * modules/strerror-tests: New test module.
39756         * modules/argp (Depends-on): Add strerror.
39757         * modules/error (Depends-on): Likewise.
39758         Reported by Martin Koeppe.
39759
39760 2007-09-24  Bruno Haible  <bruno@clisp.org>
39761
39762         * README: Update git instructions.
39763
39764 2007-09-24  Eric Blake  <ebb9@byu.net>
39765
39766         Revert fpending breakage from 2007-09-08.
39767         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
39768         __fpending.c.
39769
39770 2007-09-24  Jim Meyering  <jim@meyering.net>
39771
39772         filenamecat.c: Add a test.
39773         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
39774         showing how the function works when DIR is the empty string.
39775
39776 2007-09-21  Simon Josefsson  <simon@josefsson.org>
39777
39778         * tests/test-canonicalize.sh: Turn on executable bit.
39779
39780 2007-09-19  Eric Blake  <ebb9@byu.net>
39781
39782         * README: Update CVS instructions.
39783
39784 2007-09-18  Bruno Haible  <bruno@clisp.org>
39785
39786         * modules/areadlink: New file.
39787         * lib/areadlink.h (areadlink): New declaration.
39788         * lib/areadlink.c: New file, based on lib/xreadlink.c.
39789
39790 2007-09-17  Jim Meyering  <jim@meyering.net>
39791
39792         * lib/savewd.c (ESTALE) [!defined]: Define.
39793         Reported to be required on Interix by Martin Koeppe.
39794
39795 2007-09-17  Bruno Haible  <bruno@clisp.org>
39796
39797         * gnulib-tool (func_version): Use $version.
39798
39799 2007-09-16  Bruno Haible  <bruno@clisp.org>
39800
39801         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
39802         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
39803         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
39804         Reported by Greg Schafer <gschafer@zip.com.au>.
39805
39806 2007-09-15  Bruno Haible  <bruno@clisp.org>
39807
39808         * gnulib-tool (sed): Try a little harder to make bash understand the
39809         alias.
39810         Reported by Bruce Korb <bruce.korb@gmail.com>.
39811
39812 2007-09-13  Eric Blake  <ebb9@byu.net>
39813
39814         * ChangeLog: Remove conflict markers.
39815
39816 2007-09-13  Simon Josefsson  <simon@josefsson.org>
39817
39818         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
39819         Reported by Bruno Haible <bruno@clisp.org>.
39820
39821 2007-09-12  Bruno Haible  <bruno@clisp.org>
39822
39823         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
39824         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
39825         is not defined.
39826
39827 2007-09-12  Eric Blake  <ebb9@byu.net>
39828
39829         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
39830         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
39831         Autoconf definition.
39832         * modules/euidaccess (Depends-on): Add extensions, for
39833         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
39834         * modules/fnmatch (Depends-on): Likewise.
39835         * modules/getaddrinfo (Depends-on): Likewise.
39836         * modules/getdelim (Depends-on): Likewise.
39837         * modules/getline (Depends-on): Likewise.
39838         * modules/getsubopt (Depends-on): Likewise.
39839         * modules/gettext (Depends-on): Likewise.
39840         * modules/group-member (Depends-on): Likewise.
39841         * modules/mbchar (Depends-on): Likewise.
39842         * modules/memmem (Depends-on): Likewise.
39843         * modules/mempcpy (Depends-on): Likewise.
39844         * modules/memrchr (Depends-on): Likewise.
39845         * modules/pagealign_alloc (Depends-on): Likewise.
39846         * modules/readutmp (Depends-on): Likewise.
39847         * modules/stpcpy (Depends-on): Likewise.
39848         * modules/stpncpy (Depends-on): Likewise.
39849         * modules/strchrnul (Depends-on): Likewise.
39850         * modules/strndup (Depends-on): Likewise.
39851         * modules/strsep (Depends-on): Likewise.
39852         * modules/strverscmp (Depends-on): Likewise.
39853         * modules/vasprintf (Depends-on): Likewise.
39854         * modules/wcwidth (Depends-on): Likewise.
39855         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
39856         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
39857         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
39858         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
39859         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
39860         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39861         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
39862         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
39863         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
39864         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39865         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39866         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39867         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39868         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
39869         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
39870         * m4/readutmp.m4 (gl_READUTMP): Likewise.
39871         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39872         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39873         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39874         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39875         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39876         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39877         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39878         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
39879         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
39880         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39881         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
39882         so that lock.m4 can be used in gettext without extensions module.
39883
39884 2007-09-11  Bruno Haible  <bruno@clisp.org>
39885
39886         * m4/isc-posix.m4: Remove file.
39887         Suggested by Eric Blake.
39888
39889 2007-09-11  Eric Blake  <ebb9@byu.net>
39890
39891         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
39892
39893 2007-09-10  Bruno Haible  <bruno@clisp.org>
39894
39895         * posix-modules: Fix typo in error message.
39896         Reported by Matt <mkraai@beckman.com>.
39897
39898 2007-09-09  Bruno Haible  <bruno@clisp.org>
39899
39900         * doc/functions/getdelim.texi: Update list of platforms lacking the
39901         function.
39902         * doc/functions/getline.texi: Likewise.
39903
39904 2007-09-09  Jim Meyering  <jim@meyering.net>
39905
39906         * lib/hash.c (hash_initialize): Detect calloc failure.
39907         Reported by Bruno Haible.
39908
39909 2007-09-09  Bruno Haible  <bruno@clisp.org>
39910
39911         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
39912         malloc or realloc fails.
39913
39914 2007-09-09  Bruno Haible  <bruno@clisp.org>
39915
39916         * modules/getcwd (Depends-on): Add malloc-posix.
39917         * modules/glob (Depends-on): Likewise.
39918         * modules/putenv (Depends-on): Likewise.
39919         * modules/strdup (Depends-on): Likewise.
39920         * modules/getdelim (Depends-on): Add realloc-posix.
39921         * modules/read-file (Depends-on): Likewise.
39922
39923 2007-09-09  Bruno Haible  <bruno@clisp.org>
39924
39925         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
39926         (gl_FUNC_MALLOC_POSIX): Require it.
39927         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
39928         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
39929         * modules/realloc (Files): Add m4/malloc.m4.
39930         * modules/calloc (Files): Likewise.
39931
39932 2007-09-09  Bruno Haible  <bruno@clisp.org>
39933
39934         * modules/malloc-posix: New file.
39935         * modules/malloc (Depends-on): Add malloc-posix.
39936         * lib/malloc.c: Include errno.h.
39937         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
39938         and a POSIX-compatible malloc into a single function. Set ENOMEM
39939         when returning NULL.
39940         * m4/malloc.m4: New file.
39941         * doc/functions/malloc.texi: Mention the malloc-posix module.
39942         * lib/stdlib_.h (malloc): New declaration.
39943         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39944         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
39945         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
39946         and HAVE_MALLOC_POSIX.
39947
39948 2007-09-09  Bruno Haible  <bruno@clisp.org>
39949
39950         * modules/realloc-posix: New file.
39951         * modules/realloc (Depends-on): Add realloc-posix.
39952         * lib/realloc.c: Include errno.h.
39953         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
39954         and a POSIX-compatible realloc into a single function. Set ENOMEM
39955         when returning NULL.
39956         * m4/realloc.m4: New file.
39957         * doc/functions/realloc.texi: Mention the realloc-posix module.
39958         * lib/stdlib_.h (realloc): New declaration.
39959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39960         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
39961         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
39962         and HAVE_REALLOC_POSIX.
39963
39964 2007-09-09  Bruno Haible  <bruno@clisp.org>
39965
39966         * modules/calloc-posix: New file.
39967         * modules/calloc (Depends-on): Add calloc-posix.
39968         * lib/calloc.c: Include errno.h.
39969         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
39970         and a POSIX-compatible calloc into a single function. Set ENOMEM
39971         when returning NULL.
39972         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
39973         * doc/functions/calloc.texi: Mention the calloc-posix module.
39974         * lib/stdlib_.h (calloc): New declaration.
39975         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39976         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
39977         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
39978         and HAVE_CALLOC_POSIX.
39979
39980 2007-09-09  Bruno Haible  <bruno@clisp.org>
39981
39982         Allow for modules to show an arbitrary notice.
39983         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
39984         * gnulib-tool: New option --extract-notice.
39985         (func_usage): Document it.
39986         (sed_extract_prog): Update.
39987         (func_get_notice): New function.
39988         (func_modules_notice): New function.
39989         (func_import, func_create_testdir): Invoke it.
39990         Suggested by Jim Meyering.
39991
39992 2007-09-09  Bruno Haible  <bruno@clisp.org>
39993
39994         * gnulib-tool: New options --verbose, --quiet.
39995         (func_usage): Document them.
39996         (verbose): New variable.
39997         (func_execute_command): New function.
39998         (func_import): Don't show the module list and the file list if
39999         $verbose < 0.
40000         (func_create_testdir): Likewise. Use func_execute_command.
40001         (func_create_megatestdir): Use func_execute_command.
40002
40003 2007-09-08  Bruno Haible  <bruno@clisp.org>
40004
40005         * gnulib-tool (func_import): Prefer rsync over wget when available,
40006         for fetching the PO files.
40007
40008 2007-09-08  Bruno Haible  <bruno@clisp.org>
40009
40010         * posix-modules: New file. Portions copied from gnulib-tool.
40011         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
40012
40013 2007-09-08  Jim Meyering  <jim@meyering.net>
40014
40015         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
40016         * lib/fpending.h: Rename from __fpending.h.
40017         * lib/fpending.c: Rename from __fpending.c.
40018         Include "fpending.h", not "__fpending.h".
40019         * lib/__fpending.h, lib/__fpending.c: Remove files.
40020         * modules/fpending (Files): Reflect new file names.
40021         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
40022
40023 2007-09-08  Bruno Haible  <bruno@clisp.org>
40024
40025         * m4/inttypes-h.m4: Remove stub file.
40026
40027 2007-09-07  Simon Josefsson  <simon@josefsson.org>
40028
40029         * doc/headers/stdint.texi: Discuss #include_next issue.
40030
40031 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
40032
40033         * build-aux/bootstrap: Remove obsolete comment about wget --help.
40034
40035 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40036
40037         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
40038         in variable name.
40039
40040 2007-09-03  Jim Meyering  <jim@meyering.net>
40041
40042         New module: git-version-gen.
40043         * modules/git-version-gen: New file.
40044
40045         Import changes from coreutils for bootstrap script.
40046
40047         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
40048
40049         bootstrap: uses rsync to download the .po files
40050         * build-aux/bootstrap (po_download_command_format): New global.
40051         (download_po_files): Use rsync.
40052         (update_po_files): Don't remove .po files after download,
40053         so future rsync runs can take advantage of the copies.
40054
40055         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
40056
40057         Solve the unnecessary-.po-file-regeneration problem once and for all.
40058         * build-aux/bootstrap (download_po_files): New function, renamed from
40059         get_translations.  Now, downloads, but doesn't update LINGUAS.
40060         (update_po_files): New function.
40061
40062         bootstrap: Ignore more.
40063         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
40064         uniwidth to e.g., lib/.gitignore.
40065         (slurp): Handle the sys_stat_.h -> sys mapping, too.
40066
40067         * build-aux/bootstrap: New setting: vc_ignore.
40068         (insert_sorted_if_absent): Create $file if absent.
40069         Adapt to new, possibly empty, list: $vc_ignore.
40070
40071         bootstrap: generate more ignorable names
40072         * build-aux/bootstrap (slurp): When generating ignorable names,
40073         also map .sin to .sed, .gperf to .c, and .y to .c.
40074
40075 2007-09-03  Jim Meyering  <jim@meyering.net>
40076
40077         * build-aux/git-version-gen: New file, from coreutils.  For details, see
40078         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
40079
40080 2007-09-02  Bruno Haible  <bruno@clisp.org>
40081
40082         Fix mis-recognition of 'mcs' on QNX 6.
40083         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
40084         output contains the string "Mono".
40085         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
40086         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
40087
40088 2007-09-01  Bruno Haible  <bruno@clisp.org>
40089
40090         Fix collision between uniwidth/* and linebreak modules.
40091         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
40092         u32_width): Remove declarations.
40093         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
40094         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
40095         streq3, streq2, streq1, streq0): Remove functions.
40096         (STREQ): Remove macro.
40097         (is_cjk_encoding): Remove function.
40098         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
40099         (uc_width, u8_width, u16_width, u32_width): Remove functions.
40100         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
40101         * NEWS: Document the change.
40102
40103 2007-09-01  Bruno Haible  <bruno@clisp.org>
40104
40105         * lib/streq.h: Add double-inclusion guard.
40106
40107 2007-09-01  Karl Berry  <karl@gnu.org>
40108
40109         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
40110
40111 2007-08-28  Jim Meyering  <jim@meyering.net>
40112
40113         Rename mreadlink_with_size to areadlink_with_size.
40114         * NEWS: Document the change.
40115         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
40116         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
40117         * lib/mreadlink.h: Rename this to...
40118         * lib/areadlink.h: ...this.
40119         * modules/mreadlink-with-size: Rename this to...
40120         * modules/areadlink-with-size: ...this.
40121         * lib/canonicalize.c: Reflect the renaming.
40122         * modules/canonicalize: Likewise.
40123
40124 2007-08-26  Bruno Haible  <bruno@clisp.org>
40125
40126         * gnulib-tool (func_import): When deciding which files to remove,
40127         consider also dangling symbolic links.
40128         Reported by Eric Blake.
40129
40130 2007-08-26  Bruno Haible  <bruno@clisp.org>
40131
40132         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
40133
40134 2007-08-23  Simon Josefsson  <simon@josefsson.org>
40135
40136         * lib/readline.c: Don't include getline.h, the prototype is now
40137         found in stdio.h.
40138
40139 2007-08-23  Jim Meyering  <jim@meyering.net>
40140
40141         Getdelim touchup.
40142         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
40143         around the funlockfile call, since funlockfile never sets errno.
40144         Don't set errno upon failed realloc.
40145
40146 2007-08-22  Eric Blake  <ebb9@byu.net>
40147
40148         Getline touchups.
40149         * lib/getdelim.c (getdelim): Revert regression that required *n to
40150         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
40151         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
40152         getdelim, rather than whether implementation is missing.
40153         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
40154         * lib/stdio_.h (getline): Also declare if replacement is
40155         required.
40156         * doc/functions/getdelim.texi: New file.
40157         * doc/functions/getline.texi: Likewise.
40158         * doc/gnulib.texi (Function Substitutes): Add new files.
40159         Reported by Bruno Haible.
40160
40161 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
40162
40163         * users.txt: Add Guile.
40164
40165 2007-08-22  Eric Blake  <ebb9@byu.net>
40166
40167         * tests/test-getdelim.c (main): Use remove, not unlink.
40168         * tests/test-getline.c (main): Likewise.
40169
40170         Move getline and getdelim into stdio.h, per POSIX 200x.
40171         * modules/getline (Files): Remove getline.h.
40172         (Depends-on): Add stdio.
40173         (configure.ac): Add module indicator.
40174         * modules/getdelim (Files): Remove getdelim.h.
40175         (Depends-on): Add stdio.
40176         (configure.ac): Add module indicator.
40177         * modules/stdio (Makefile.am): Work with new indicators.
40178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40179         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
40180         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40181         * lib/getdelim.h: Delete.
40182         * lib/getline.h: Delete.
40183         * lib/stdio_.h (getdelim, getline): Declare.
40184         * modules/getdelim-tests: New module.
40185         * modules/getline-tests: Likewise.
40186         * tests/test-getdelim.c: New file.
40187         * tests/test-getline.c: Likewise.
40188         * NEWS: Document the change.
40189         * lib/getline.c: Update choice of header.
40190         * lib/csharpcomp.c: Likewise.
40191         * lib/getpass.c: Likewise.
40192         * lib/javacomp.c: Likewise.
40193         * lib/javaversion.c: Likewise.
40194         * lib/yesno.c: Likewise.
40195         * lib/getdelim.c: Likewise.
40196         (getdelim): Set errno on failure, and avoid memory leak.
40197
40198 2007-08-19  Bruno Haible  <bruno@clisp.org>
40199
40200         * modules/closein (Depends-on): Add freadahead.
40201         * lib/closein.c: Include freadahead.h.
40202         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
40203         is zero.
40204
40205 2007-08-19  Bruno Haible  <bruno@clisp.org>
40206
40207         * modules/freadahead-tests: New file.
40208         * tests/test-freadahead.sh: New file.
40209         * tests/test-freadahead.c: New file.
40210
40211         * modules/freadahead: New file.
40212         * lib/freadahead.h: New file.
40213         * lib/freadahead.c: New file.
40214         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
40215         fbufmode, fpurge, freadable, fwritable.
40216
40217 2007-08-19  Eric Blake  <ebb9@byu.net>
40218
40219         Test yesno in combination with closein.
40220         * lib/yesno.c (yesno): Document use of stdin.
40221         * modules/yesno-tests (Files): New module.
40222         * tests/test-yesno.c (main): New file.
40223         * tests/test-yesno.sh: Likewise.
40224
40225 2007-08-19  Bruno Haible  <bruno@clisp.org>
40226
40227         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
40228         * lib/fseeko.c (rpl_fseeko): Likewise.
40229         * lib/fseterr.c (fseterr): Likewise.
40230
40231 2007-08-19  Bruno Haible  <bruno@clisp.org>
40232
40233         * tests/test-lseek.c (main): Disable a test for BeOS.
40234         * doc/functions/lseek.texi: Document the BeOS bug.
40235
40236 2007-08-19  Bruno Haible  <bruno@clisp.org>
40237             Eric Blake  <ebb9@byu.net>
40238
40239         * lib/lseek.c: Include <sys/stat.h>.
40240         (rpl_lseek): Add workaround code also for Unix platforms.
40241         Needed for BeOS.
40242         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
40243         * doc/functions/lseek.texi: Document BeOS definiency.
40244
40245 2007-08-18  Bruno Haible  <bruno@clisp.org>
40246
40247         * modules/fstrcmp-tests: New file.
40248         * tests/test-fstrcmp.c: New file.
40249
40250 2007-08-18  Bruno Haible  <bruno@clisp.org>
40251
40252         * modules/fstrcmp: New file, from GNU gettext with modifications.
40253         * lib/fstrcmp.h: New file, from GNU gettext.
40254         * lib/fstrcmp.c: New file, from GNU gettext.
40255         * MODULES.html.sh (String handling): Add fstrcmp.
40256
40257 2007-08-18  Bruno Haible  <bruno@clisp.org>
40258
40259         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
40260         'bool'.
40261         (diag, compareseq): Remove const from the ctxt argument.
40262         (USE_HEURISTIC): Undefine at the end.
40263
40264 2007-08-18  Jim Meyering  <jim@meyering.net>
40265
40266         New file: lib/idcache.h
40267         * NEWS: Mention the addition.
40268         * modules/idcache (Files): Add lib/idcache.h
40269         * lib/idcache.c: Include "idcache.h".
40270         Don't include <sys/types.h>.
40271         Add a FIXME comment.
40272         Move file-scoped "static" declarations to the top.
40273         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
40274
40275 2007-08-17  Bruno Haible  <bruno@clisp.org>
40276         and Paul Eggert  <eggert@cs.ucla.edu>
40277
40278         * MODULES.html.sh: Add diffseq.
40279         * modules/diffseq: New file.
40280         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
40281         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
40282
40283 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40284
40285         Import changes from coreutils for bootstrap script.
40286
40287         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
40288
40289         * build-aux/bootstrap (slurp): Work even in environments where
40290         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
40291         current code does not slurp files whose names start with ".", and
40292         this looks like it might be a troublesome area.
40293
40294         2007-07-11  Jim Meyering  <jim@meyering.net>
40295
40296         If there's a GPL vN copyright comment, require that N == 3.
40297
40298         2007-07-08  Jim Meyering  <jim@meyering.net>
40299
40300         Run the coreutils-specific code only if tests/Makefile.am.in exists.
40301         * build-aux/bootstrap (mam_template): Move definition out of loop.
40302
40303         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
40304
40305         * build-aux/bootstrap (symlink_to_dir): Rename function from
40306         symlink_to_gnulib.  Add a directory parameter.  Update all
40307         callers.
40308         (cp_mark_as_generated): Also check for -- and link to -- files in
40309         gl/.
40310
40311         2007-07-08  Jim Meyering  <jim@meyering.net>
40312
40313         Adapt to deeper hierarchy in gnulib.
40314         * build-aux/bootstrap (symlink_to_dir): If the destination
40315         directory doesn't exist, create it. This is required at least for
40316         "lib/uniwidth/cjk.h".
40317
40318         2007-05-15  Jim Meyering  <jim@meyering.net>
40319
40320         * build-aux/bootstrap: Now that generated Makefile.am files
40321         are no longer under version control, they must be created at
40322         bootstrap time.
40323
40324 2007-08-14  Ben Pfaff  <blp@gnu.org>
40325
40326         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
40327
40328 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
40329
40330         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
40331         given the changes below.
40332         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
40333         even on hosts that have padding bits beyond the supported 64.
40334
40335 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
40336
40337         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
40338         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
40339         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
40340         depends on it.
40341         (xstrtol_error): Remove.
40342         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
40343         but with a different signature.
40344         (ATTRIBUTE_NORETURN, __attribute__): New macros.
40345         * lib/xstrtol-error.c: Include exitfail.h.
40346         (xstrtol_fatal): New function, with a different signature from the
40347         old xstrtol_error, so that the caller need not worry about passing
40348         in an exit status, or about storage management of the option argument.
40349         (xstrtol_error): Now a static function.  Redo signature to
40350         implement xstrtol_fatal.  Output the correct number of hyphens in
40351         front of the option so that the caller need not worry about
40352         storage management.
40353         (N_): New macro.
40354         (_): Remove; not used now.
40355         * modules/xstrtol: Depend on getopt.
40356         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
40357         of old STRTOL_FATAL_ERROR macro.
40358         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
40359         of test program.
40360         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
40361         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
40362
40363 2007-08-08  Eric Blake  <ebb9@byu.net>
40364
40365         * lib/xstrtol-error.c: Add missing include.
40366
40367         Move xstrtol messages into gnulib domain, when --pobase is used.
40368         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
40369         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
40370         * modules/xstrtol (Files): Distribute new file.
40371         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
40372         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
40373         * tests/test-xstrtol.c: ...into new file.
40374         * tests/test-xstrtoul.c: Also test xstrtoul.
40375         * tests/test-xstrtoimax.c: Also test xstrtoimax.
40376         * tests/test-xstrtoumax.c: Also test xstrtoumax.
40377         * tests/test-xstrtol.sh: Drive the tests.
40378         * tests/test-xstrtoimax.sh: Likewise.
40379         * tests/test-xstrtoumax.sh: Likewise.
40380         * modules/xstrtol-tests: New module.
40381         * modules/xstrtoimax-tests: Likewise.
40382         * modules/xstrtoumax-tests: Likewise.
40383
40384 2007-08-08  Jim Meyering  <jim@meyering.net>
40385
40386         New function: mfile_name_concat.
40387         * lib/filenamecat.c (mfile_name_concat): New function, just like
40388         file_name_concat, but return NULL upon failure rather than exiting
40389         with a diagnostic.
40390         * lib/filenamecat.h: Declare it.
40391
40392 2007-08-07  Bruno Haible  <bruno@clisp.org>
40393
40394         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
40395         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
40396         warning from gcc.
40397         Reported by Eric Blake.
40398
40399 2007-08-07  Simon Josefsson  <simon@josefsson.org>
40400
40401         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
40402         * modules/crypto/arcfour (License): Likewise.
40403         * modules/crypto/des-tests (License): Likewise.
40404         * modules/crypto/gc-arctwo-tests (License): Likewise.
40405         * modules/crypto/gc-des-tests (License): Likewise.
40406         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
40407         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
40408         * modules/crypto/gc-md2-tests (License): Likewise.
40409         * modules/crypto/gc-md4-tests (License): Likewise.
40410         * modules/crypto/gc-md5-tests (License): Likewise.
40411         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
40412         * modules/crypto/gc-rijndael-tests (License): Likewise.
40413         * modules/crypto/gc-sha1-tests (License): Likewise.
40414         * modules/crypto/gc-tests (License): Likewise.
40415         * modules/crypto/hmac-md5 (License): Likewise.
40416         * modules/crypto/hmac-sha1 (License): Likewise.
40417         * modules/crypto/md2-tests (License): Likewise.
40418         * modules/crypto/md4-tests (License): Likewise.
40419         * modules/crypto/md5 (License): Likewise.
40420         * modules/crypto/rijndael (License): Likewise.
40421         * modules/crypto/sha1 (License): Likewise.
40422         * modules/memxor (License): Likewise.
40423
40424 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40425         and Bruno Haible  <bruno@clisp.org>
40426
40427         * NEWS: Describe interface changes to human, xstrtol.
40428         * lib/human.h: Include <xstrtol.h>.
40429         (human_options): Return enum strtol_error, not int.  Remove
40430         bool arg; take int * instead.
40431         * lib/human.c: Don't include "gettext.h".
40432         (_): Remove; no longer used.
40433         Don't include <xstrtol.h>, since human.h does it.
40434         (human_options): Adjust to abovementioned interface changes.
40435         Do not report error to stderr; that's now the caller's
40436         responsibility.
40437         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
40438         interface change.
40439         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
40440         Str, Argument_type_string.  All uses changed.  Put " argument"
40441         in diagnostics to make them clearer.  Change wording of suffix
40442         message for clarity.
40443         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
40444         Argument_type_string.
40445         (STRTOL_FATAL_WARN): Remove; no longer used.
40446         * modules/human (Depends-on): Remove gettext-h.
40447
40448 2007-08-06  Simon Josefsson  <simon@josefsson.org>
40449
40450         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
40451
40452 2007-07-31  Bruno Haible  <bruno@clisp.org>
40453
40454         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
40455         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
40456         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
40457
40458 2007-07-31  Bruno Haible  <bruno@clisp.org>
40459
40460         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
40461         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
40462
40463 2007-07-30  Bruno Haible  <bruno@clisp.org>
40464
40465         * modules/base64 (License): Use the synonymous term "LGPLv2+".
40466         * modules/c-ctype (License): Likewise.
40467         * modules/c-strcase (License): Likewise.
40468         * modules/check-version (License): Likewise.
40469         * modules/iconv (License): Likewise.
40470         * modules/iconv_open (License): Likewise.
40471         * modules/read-file (License): Likewise.
40472         * modules/striconv (License): Likewise.
40473         * modules/strverscmp (License): Likewise.
40474         * modules/vasprintf (License): Likewise.
40475         * modules/crypto/des (License): Likewise.
40476         * modules/crypto/gc (License): Likewise.
40477         * modules/crypto/gc-arcfour (License): Likewise.
40478         * modules/crypto/gc-arctwo (License): Likewise.
40479         * modules/crypto/gc-des (License): Likewise.
40480         * modules/crypto/gc-hmac-md5 (License): Likewise.
40481         * modules/crypto/gc-hmac-sha1 (License): Likewise.
40482         * modules/crypto/gc-md2 (License): Likewise.
40483         * modules/crypto/gc-md4 (License): Likewise.
40484         * modules/crypto/gc-md5 (License): Likewise.
40485         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
40486         * modules/crypto/gc-random (License): Likewise.
40487         * modules/crypto/gc-rijndael (License): Likewise.
40488         * modules/crypto/gc-sha1 (License): Likewise.
40489         * modules/crypto/md2 (License): Likewise.
40490         * modules/crypto/md4 (License): Likewise.
40491
40492 2007-07-30  Jim Meyering  <jim@meyering.net>
40493
40494         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
40495         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
40496         it has valid stat data.  This bug would cause du not to count the
40497         sizes of inaccessible directories.
40498         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
40499         in <http://bugzilla.redhat.com/250077>.
40500
40501 2007-07-25  Peter O'Gorman  <peter@pogma.com>
40502             Bruno Haible  <bruno@clisp.org>
40503
40504         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
40505         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
40506         #include_next, gives a diagnostic about it, but reports no error in
40507         the exit code.
40508         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40509
40510 2007-07-24  Ben Pfaff  <blp@gnu.org>
40511
40512         Improve name: "count-one-bits" is better than "popcount".
40513         * MODULES.html.sh: Update name.
40514         * lib/popcount.h: Renamed lib/count-one-bits.h.
40515         (popcount): Renamed count_one_bits.
40516         (popcountl): Renamed count_one_bits_l.
40517         (popcountll): Renamed count_one_bits_ll.
40518         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
40519         * modules/popcount: Renamed module/count-one-bits.
40520         * modules/popcount-tests: Renamed module/count-one-bits-tests.
40521         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
40522
40523 2007-07-23  Ben Pfaff  <blp@gnu.org>
40524
40525         * lib/popcount.h (popcount32): Reduce size of constants, to allow
40526         better code generation, and add U to large constants to avoid
40527         warnings, in non-GCC case.
40528         Suggested by Bruno Haible.
40529
40530 2007-07-23  Ben Pfaff  <blp@gnu.org>
40531
40532         * lib/popcount.h: Use verify_true instead of if...abort.
40533         * modules/popcount: Depend on verify module.
40534         Suggested by Jim Meyering.
40535
40536 2007-07-23  Bruno Haible  <bruno@clisp.org>
40537
40538         * gnulib-tool (func_import): Create a .cvsignore file also when the
40539         directory is not yet in CVS but the toplevel directory is. When
40540         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
40541         Reported by Karl Berry.
40542
40543 2007-07-22  Ben Pfaff  <blp@gnu.org>
40544
40545         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
40546         case.
40547         Suggested by Eric Blake.
40548
40549 2007-07-22  Ben Pfaff  <blp@gnu.org>
40550
40551         New module: popcount.
40552         * MODULES.html.sh: Add popcount.
40553         * modules/popcount: New file.
40554         * modules/popcount-tests: New file.
40555         * tests/test-popcount.c: New file.
40556         * lib/popcount.h: New file.
40557         * m4/popcount.m4: New file.
40558
40559 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
40560
40561         * build-aux/announce-gen: Update to GPLv3.
40562
40563         * build-aux/config.guess: Update from config.
40564
40565 2007-07-21  Bruno Haible  <bruno@clisp.org>
40566
40567         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
40568         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
40569
40570 2007-07-20  Jim Meyering  <jim@meyering.net>
40571
40572         * check-module: Diagnose a self-dependency.
40573
40574 2007-07-19  Bruno Haible  <bruno@clisp.org>
40575
40576         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
40577         empty.
40578         Reported by Eric Blake.
40579
40580 2007-07-18  Bruno Haible  <bruno@clisp.org>
40581
40582         * gnulib-tool: New options --po-base, --po-domain.
40583         (func_usage): Document them.
40584         (pobase, po_domain): New variables.
40585         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
40586         DEFAULT_TEXT_DOMAIN.
40587         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
40588         (func_import): Consider pobase and po_domain. Create a po/ directory.
40589         (func_create_testdir): Set pobase and po_domain to empty.
40590         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
40591         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
40592
40593 2007-07-18  Bruno Haible  <bruno@clisp.org>
40594
40595         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40596         EXTRA_DIST augmentation for files in build-aux/.
40597
40598 2007-07-16  Bruno Haible  <bruno@clisp.org>
40599
40600         * modules/lseek (License): Use the synonymous term "LGPLv2+".
40601         * modules/getdelim (License): Likewise.
40602
40603 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40604
40605         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
40606         * modules/d-type (License): Likewise.
40607         * modules/extensions (License): Likewise.
40608         * modules/fnmatch (License): Likewise.
40609         * modules/fseeko (License): Likewise.
40610         * modules/getaddrinfo (License): Likewise.
40611         * modules/getline (License): Likewise.
40612         * modules/getlogin_r (License): Likewise.
40613         * modules/getpass (License): Likewise.
40614         * modules/gettimeofday (License): Likewise.
40615         * modules/glob (License): Likewise.
40616         * modules/inet_ntop (License): Likewise.
40617         * modules/malloc (License): Likewise.
40618         * modules/malloca (License): Likewise.
40619         * modules/memmem (License): Likewise.
40620         * modules/mempcpy (License): Likewise.
40621         * modules/memset (License): Likewise.
40622         * modules/minmax (License): Likewise.
40623         * modules/mktime (License): Likewise.
40624         * modules/netinet_in (License): Likewise.
40625         * modules/pathmax (License): Likewise.
40626         * modules/poll (License): Likewise.
40627         * modules/regex (License): Likewise.
40628         * modules/snprintf (License): Likewise.
40629         * modules/stdbool (License): Likewise.
40630         * modules/stdint (License): Likewise.
40631         * modules/stdio (License): Likewise.
40632         * modules/strcase (License): Likewise.
40633         * modules/strcasestr (License): Likewise.
40634         * modules/strdup (License): Likewise.
40635         * modules/string (License): Likewise.
40636         * modules/strndup (License): Likewise.
40637         * modules/strnlen (License): Likewise.
40638         * modules/strpbrk (License): Likewise.
40639         * modules/strptime (License): Likewise.
40640         * modules/strsep (License): Likewise.
40641         * modules/sys_select (License): Likewise.
40642         * modules/sys_socket (License): Likewise.
40643         * modules/sys_stat (License): Likewise.
40644         * modules/sys_time (License): Likewise.
40645         * modules/time (License): Likewise.
40646         * modules/time_r (License): Likewise.
40647         * modules/timegm (License): Likewise.
40648         * modules/unistd (License): Likewise.
40649         * modules/vsnprintf (License): Likewise.
40650         * modules/wctype (License): Likewise.
40651
40652 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40653
40654         * modules/argz (License): LGPLv2+.
40655
40656 2007-07-15  Karl Berry  <karl@gnu.org>
40657
40658         * doc/gnulib.texi: revise node structure per new fdl.texi.
40659
40660 2007-07-14  Bruno Haible  <bruno@clisp.org>
40661
40662         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
40663         the output file.
40664         * lib/uniname/uninames.h: Regenerated.
40665
40666 2007-07-14  Karl Berry  <karl@gnu.org>
40667
40668         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
40669         omitting sectioning and index commands.
40670
40671 2007-07-13  Bruno Haible  <bruno@clisp.org>
40672
40673         New gnulib-tool option --more-symlinks.
40674         * gnulib-tool (func_usage): Document --more-symlinks.
40675         (do_copyrights): New variable.
40676         Recognize option --more-symlinks.
40677         (func_import): Don't add a copyright notice transform to
40678         sed_transform_lib_file if do_copyrights is empty.
40679
40680 2007-07-13  Bruno Haible  <bruno@clisp.org>
40681
40682         * lib/vasnprintf.c (decimal_point_char): Define also if
40683         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
40684         && !NEED_PRINTF_DIRECTIVE_A.
40685         Reported by Clemens Koller <clemens.koller@anagramm.de> via
40686         Gary V. Vaughan <gary@gnu.org>.
40687
40688 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
40689
40690         * lib/inttypes_.h: Undo previous change, since it was fixed
40691         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
40692
40693 2007-07-13  Bruno Haible  <bruno@clisp.org>
40694
40695         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
40696         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
40697
40698 2007-07-13  Jim Meyering  <jim@meyering.net>
40699
40700         df: Don't fail for Tru64's "file-on-file mount".
40701         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
40702         so we fall through and use statfs instead.  Details here:
40703         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
40704         Reported by Albert Chin.
40705
40706 2007-07-13  Bruno Haible  <bruno@clisp.org>
40707
40708         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
40709         * modules/configmake (License): Likewise.
40710         * modules/gettext (License): Likewise.
40711         * modules/gettext-h (License): Likewise.
40712         * modules/include_next (License): Likewise.
40713         * modules/link-warning (License): Likewise.
40714         * modules/localcharset (License): Likewise.
40715         * modules/localename (License): Likewise.
40716         * modules/lock (License): Likewise.
40717         * modules/relocatable-lib-lgpl (License): Likewise.
40718         * modules/size_max (License): Likewise.
40719         * modules/vasnprintf (License): Likewise.
40720         * modules/wchar (License): Likewise.
40721         * modules/xsize (License): Likewise.
40722
40723 2007-07-13  Bruno Haible  <bruno@clisp.org>
40724
40725         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
40726         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
40727
40728 2007-07-12  Bruno Haible  <bruno@clisp.org>
40729
40730         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
40731         in the modules files.
40732
40733 2007-07-11  Karl Berry  <karl@gnu.org>
40734
40735         * MODULES.html.sh (func_module): use
40736          sed -e '\|^'"${includefile}"'$|d'
40737          instead of /.../d, to avoid errors on $includefile's containing /.
40738
40739 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
40740
40741         * gnulib-tool (func_import): Avoid duplication of --avoid
40742         statements
40743         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
40744         names to `_' in variable names.
40745
40746 2007-07-10  Eric Blake  <ebb9@byu.net>
40747
40748         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
40749         * NEWS: Document this change.
40750
40751 2007-07-08  Bruno Haible  <bruno@clisp.org>
40752
40753         Update to Unicode 5.0.
40754         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
40755         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
40756         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
40757         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
40758         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
40759         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
40760         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
40761         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
40762         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
40763         U+10A3F, U+1D242..U+1D244.
40764         (nonspacing_table_ind): Update.
40765         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
40766         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
40767
40768 2007-07-08  Bruno Haible  <bruno@clisp.org>
40769
40770         Update to Unicode 5.0.
40771         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
40772         code transform. Extend the name index field of unicode_name_to_code and
40773         unicode_code_to_name from 16 to 24 bits.
40774         * lib/uniname/uniname.c (unicode_character_name,
40775         unicode_name_character): Add the range 0x12xxx to the code transform.
40776         * lib/uniname/uninames.h: Regenerated.
40777         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
40778
40779 2007-07-07  Bruno Haible  <bruno@clisp.org>
40780
40781         * modules/wcwidth-tests: New file.
40782         * tests/test-wcwidth.c: New file.
40783
40784         Work around MacOS X wcwidth() bug.
40785         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
40786         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
40787         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
40788         original wcwidth in non-UTF-8 locales.
40789         * modules/wcwidth (Depends-on): Add localcharset, streq,
40790         uniwidth/width.
40791         * doc/functions/wcwidth.texi: Update.
40792
40793 2007-07-07  Bruno Haible  <bruno@clisp.org>
40794
40795         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
40796         (wcwidth): New declaration.
40797         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
40798         macros.
40799         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
40800         here. Prepare for creating <wchar.h> unconditionally.
40801         * modules/wchar (Depends-on): Add link-warning.
40802         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
40803         REPLACE_WCWIDTH, and GL_LINK_WARNING.
40804         * lib/wcwidth.h: Remove file.
40805         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
40806         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
40807         * modules/wcwidth (Files): Remove lib/wcwidth.h.
40808         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
40809         (Include): Replace wcwidth.h with <wchar.h>.
40810         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
40811         * lib/mbchar.h: Don't include wcwidth.h.
40812         * lib/mbswidth.c: Likewise.
40813         * NEWS: Mention the change.
40814
40815 2007-07-07  Bruno Haible  <bruno@clisp.org>
40816
40817         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
40818         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
40819         definition with an external declaration.
40820         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
40821         defined as a function. Remove AC_C_INLINE requirement.
40822         * modules/wcwidth (Files): Add lib/wcwidth.c.
40823         (Makefile.am): Remove redundant statement.
40824
40825 2007-07-07  Bruno Haible  <bruno@clisp.org>
40826
40827         * MODULES.html.sh (Unicode string functions): Add the new modules.
40828
40829         * tests/uniwidth/test-u32-strwidth.c: New file.
40830         * modules/uniwidth/u32-strwidth-tests: New file.
40831
40832         * lib/uniwidth/u32-strwidth.c: New file.
40833         * modules/uniwidth/u32-strwidth: New file.
40834
40835         * tests/uniwidth/test-u16-strwidth.c: New file.
40836         * modules/uniwidth/u16-strwidth-tests: New file.
40837
40838         * lib/uniwidth/u16-strwidth.c: New file.
40839         * modules/uniwidth/u16-strwidth: New file.
40840
40841         * tests/uniwidth/test-u8-strwidth.c: New file.
40842         * modules/uniwidth/u8-strwidth-tests: New file.
40843
40844         * lib/uniwidth/u8-strwidth.c: New file.
40845         * modules/uniwidth/u8-strwidth: New file.
40846
40847         * tests/uniwidth/test-u32-width.c: New file.
40848         * modules/uniwidth/u32-width-tests: New file.
40849
40850         * lib/uniwidth/u32-width.c: New file.
40851         * modules/uniwidth/u32-width: New file.
40852
40853         * tests/uniwidth/test-u16-width.c: New file.
40854         * modules/uniwidth/u16-width-tests: New file.
40855
40856         * lib/uniwidth/u16-width.c: New file.
40857         * modules/uniwidth/u16-width: New file.
40858
40859         * tests/uniwidth/test-u8-width.c: New file.
40860         * modules/uniwidth/u8-width-tests: New file.
40861
40862         * lib/uniwidth/u8-width.c: New file.
40863         * modules/uniwidth/u8-width: New file.
40864
40865         * tests/uniwidth/test-uc_width.c: New file.
40866         * modules/uniwidth/width-tests: New file.
40867
40868         * lib/uniwidth/width.c: New file, from GNU libiconv.
40869         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
40870         * modules/uniwidth/width: New file.
40871
40872         * lib/uniwidth.h: New file, from GNU libiconv.
40873         * modules/uniwidth/base: New file.
40874
40875 2007-07-07  Bruno Haible  <bruno@clisp.org>
40876
40877         * lib/uniname.h: New file, from GNU gettext.
40878         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
40879         * lib/uniname/uninames.h: New file, from GNU gettext.
40880         * lib/uniname/uniname.c: New file, from GNU gettext.
40881         * tests/uniname/test-uninames.sh: New file.
40882         * tests/uniname/test-uninames.c: New file, from GNU gettext.
40883         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
40884         * modules/uniname/base: New file.
40885         * modules/uniname/uniname: New file.
40886         * modules/uniname/uniname-tests: New file.
40887         * MODULES.html.sh (Unicode string functions): Add the new modules.
40888
40889 2007-07-06  Bruno Haible  <bruno@clisp.org>
40890
40891         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
40892
40893 2007-07-06  Bruno Haible  <bruno@clisp.org>
40894
40895         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
40896         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
40897         includes <cygwin/sys_time.h> which includes <sys/select.h> which
40898         include <sys/time.h>.
40899         Reported by Eric Blake.
40900
40901 2007-07-06  Eric Blake  <ebb9@byu.net>
40902
40903         Fix testing canonicalize on cygwin.
40904         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
40905         Revert patch from 2007-06-19.
40906         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
40907         canonicalize module is also in use.
40908         * tests/test-canonicalize.c: New file.
40909         * tests/test-canonicalize.sh: Likewise.
40910         * modules/canonicalize-tests: Likewise.
40911
40912 2007-07-06  Jim Meyering  <jim@meyering.net>
40913
40914         * lib/getugroups.c (getugroups): Detect getgrent failure.
40915         Adjust comment to reflect reality: this function may return -1.
40916
40917 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
40918
40919         * build-aux/bootstrap (TP_URL,get_translations): Update to use
40920         the new TP address.
40921         (usage): Fix typo
40922         (gnulib_mk): New variable.
40923
40924 2007-07-05  Jim Meyering  <jim@meyering.net>
40925
40926         Don't let endgrent clobber errno, no matter how improbable.
40927         * lib/getugroups.c (getugroups): Save and restore errno around
40928         endgrent call.
40929
40930         Close the group DB even when failing with 2^31 or more members.
40931         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
40932
40933 2007-07-04  Jim Meyering  <jim@meyering.net>
40934
40935         * lib/getugroups.h: New file.
40936         * lib/getugroups.c: Include "getugroups.h".
40937         Remove uses of "register" keyword.
40938         Move local variable, "cp", down into scope where used.
40939         Give "username" parameter the "const" attribute.
40940         * modules/getugroups (Files): Add lib/getugroups.h
40941
40942 2007-07-04  Karl Berry  <karl@gnu.org>
40943
40944         * MODULES.html.sh (func_all_modules): Complete rename of
40945         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
40946
40947 2007-07-02  Bruno Haible  <bruno@clisp.org>
40948
40949         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
40950         mode, when inttypes.h comes from gnulib.
40951         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40952
40953 2007-07-02  Simon Josefsson  <simon@josefsson.org>
40954
40955         * NEWS: Mention lgpl module name change.
40956
40957         * modules/lgpl-2.1: Renamed from lgpl.
40958
40959         * NEWS: Mention gpl module name change.
40960
40961         * modules/gpl-3.0: New file, based on gpl-2.0.
40962
40963         * modules/gpl-2.0: Renamed from gpl.
40964
40965         * modules/gpl: Fix filename, doc/gpl.texi is now found at
40966         doc/gpl-2.0.texi.
40967
40968 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
40969
40970         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
40971         #define __STDC_LIMIT_MACROS temporarily while including
40972         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
40973         Problem reported by Joel E. Denny in
40974         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
40975
40976 2007-07-01  Bruno Haible  <bruno@clisp.org>
40977
40978         * lib/unistdio.h: New file.
40979         * lib/unistdio/u-asnprintf.h: New file.
40980         * lib/unistdio/u-asprintf.h: New file.
40981         * lib/unistdio/u-printf-args.c: New file.
40982         * lib/unistdio/u-printf-args.h: New file.
40983         * lib/unistdio/u-printf-parse.h: New file.
40984         * lib/unistdio/u-snprintf.h: New file.
40985         * lib/unistdio/u-sprintf.h: New file.
40986         * lib/unistdio/u-vasprintf.h: New file.
40987         * lib/unistdio/u-vsnprintf.h: New file.
40988         * lib/unistdio/u-vsprintf.h: New file.
40989         * lib/unistdio/ulc-asnprintf.c: New file.
40990         * lib/unistdio/ulc-asprintf.c: New file.
40991         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
40992         * lib/unistdio/ulc-printf-parse.c: New file.
40993         * lib/unistdio/ulc-snprintf.c: New file.
40994         * lib/unistdio/ulc-sprintf.c: New file.
40995         * lib/unistdio/ulc-vasnprintf.c: New file.
40996         * lib/unistdio/ulc-vasprintf.c: New file.
40997         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
40998         * lib/unistdio/ulc-vsnprintf.c: New file.
40999         * lib/unistdio/ulc-vsprintf.c: New file.
41000         * lib/unistdio/u8-asnprintf.c: New file.
41001         * lib/unistdio/u8-asprintf.c: New file.
41002         * lib/unistdio/u8-printf-parse.c: New file.
41003         * lib/unistdio/u8-snprintf.c: New file.
41004         * lib/unistdio/u8-sprintf.c: New file.
41005         * lib/unistdio/u8-vasnprintf.c: New file.
41006         * lib/unistdio/u8-vasprintf.c: New file.
41007         * lib/unistdio/u8-vsnprintf.c: New file.
41008         * lib/unistdio/u8-vsprintf.c: New file.
41009         * lib/unistdio/u8-u8-asnprintf.c: New file.
41010         * lib/unistdio/u8-u8-asprintf.c: New file.
41011         * lib/unistdio/u8-u8-snprintf.c: New file.
41012         * lib/unistdio/u8-u8-sprintf.c: New file.
41013         * lib/unistdio/u8-u8-vasnprintf.c: New file.
41014         * lib/unistdio/u8-u8-vasprintf.c: New file.
41015         * lib/unistdio/u8-u8-vsnprintf.c: New file.
41016         * lib/unistdio/u8-u8-vsprintf.c: New file.
41017         * lib/unistdio/u16-asnprintf.c: New file.
41018         * lib/unistdio/u16-asprintf.c: New file.
41019         * lib/unistdio/u16-printf-parse.c: New file.
41020         * lib/unistdio/u16-snprintf.c: New file.
41021         * lib/unistdio/u16-sprintf.c: New file.
41022         * lib/unistdio/u16-vasnprintf.c: New file.
41023         * lib/unistdio/u16-vasprintf.c: New file.
41024         * lib/unistdio/u16-vsnprintf.c: New file.
41025         * lib/unistdio/u16-vsprintf.c: New file.
41026         * lib/unistdio/u16-u16-asnprintf.c: New file.
41027         * lib/unistdio/u16-u16-asprintf.c: New file.
41028         * lib/unistdio/u16-u16-snprintf.c: New file.
41029         * lib/unistdio/u16-u16-sprintf.c: New file.
41030         * lib/unistdio/u16-u16-vasnprintf.c: New file.
41031         * lib/unistdio/u16-u16-vasprintf.c: New file.
41032         * lib/unistdio/u16-u16-vsnprintf.c: New file.
41033         * lib/unistdio/u16-u16-vsprintf.c: New file.
41034         * lib/unistdio/u32-asnprintf.c: New file.
41035         * lib/unistdio/u32-asprintf.c: New file.
41036         * lib/unistdio/u32-printf-parse.c: New file.
41037         * lib/unistdio/u32-snprintf.c: New file.
41038         * lib/unistdio/u32-sprintf.c: New file.
41039         * lib/unistdio/u32-vasnprintf.c: New file.
41040         * lib/unistdio/u32-vasprintf.c: New file.
41041         * lib/unistdio/u32-vsnprintf.c: New file.
41042         * lib/unistdio/u32-vsprintf.c: New file.
41043         * lib/unistdio/u32-u32-asnprintf.c: New file.
41044         * lib/unistdio/u32-u32-asprintf.c: New file.
41045         * lib/unistdio/u32-u32-snprintf.c: New file.
41046         * lib/unistdio/u32-u32-sprintf.c: New file.
41047         * lib/unistdio/u32-u32-vasnprintf.c: New file.
41048         * lib/unistdio/u32-u32-vasprintf.c: New file.
41049         * lib/unistdio/u32-u32-vsnprintf.c: New file.
41050         * lib/unistdio/u32-u32-vsprintf.c: New file.
41051         * tests/unistdio/test-ulc-asnprintf1.c: New file.
41052         * tests/unistdio/test-ulc-asnprintf1.h: New file.
41053         * tests/unistdio/test-ulc-printf1.h: New file.
41054         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
41055         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
41056         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
41057         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
41058         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
41059         * tests/unistdio/test-ulc-vasprintf1.c: New file.
41060         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
41061         * tests/unistdio/test-ulc-vsprintf1.c: New file.
41062         * tests/unistdio/test-u8-asnprintf1.c: New file.
41063         * tests/unistdio/test-u8-asnprintf1.h: New file.
41064         * tests/unistdio/test-u8-printf1.h: New file.
41065         * tests/unistdio/test-u8-vasnprintf1.c: New file.
41066         * tests/unistdio/test-u8-vasnprintf2.c: New file.
41067         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
41068         * tests/unistdio/test-u8-vasnprintf3.c: New file.
41069         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
41070         * tests/unistdio/test-u8-vasprintf1.c: New file.
41071         * tests/unistdio/test-u8-vsnprintf1.c: New file.
41072         * tests/unistdio/test-u8-vsprintf1.c: New file.
41073         * tests/unistdio/test-u16-asnprintf1.c: New file.
41074         * tests/unistdio/test-u16-asnprintf1.h: New file.
41075         * tests/unistdio/test-u16-printf1.h: New file.
41076         * tests/unistdio/test-u16-vasnprintf1.c: New file.
41077         * tests/unistdio/test-u16-vasnprintf2.c: New file.
41078         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
41079         * tests/unistdio/test-u16-vasnprintf3.c: New file.
41080         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
41081         * tests/unistdio/test-u16-vasprintf1.c: New file.
41082         * tests/unistdio/test-u16-vsnprintf1.c: New file.
41083         * tests/unistdio/test-u16-vsprintf1.c: New file.
41084         * tests/unistdio/test-u32-asnprintf1.c: New file.
41085         * tests/unistdio/test-u32-asnprintf1.h: New file.
41086         * tests/unistdio/test-u32-printf1.h: New file.
41087         * tests/unistdio/test-u32-vasnprintf1.c: New file.
41088         * tests/unistdio/test-u32-vasnprintf2.c: New file.
41089         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
41090         * tests/unistdio/test-u32-vasnprintf3.c: New file.
41091         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
41092         * tests/unistdio/test-u32-vasprintf1.c: New file.
41093         * tests/unistdio/test-u32-vsnprintf1.c: New file.
41094         * tests/unistdio/test-u32-vsprintf1.c: New file.
41095         * modules/unistdio/base: New file.
41096         * modules/unistdio/u-printf-args: New file.
41097         * modules/unistdio/ulc-asnprintf: New file.
41098         * modules/unistdio/ulc-asprintf: New file.
41099         * modules/unistdio/ulc-fprintf: New file.
41100         * modules/unistdio/ulc-printf-parse: New file.
41101         * modules/unistdio/ulc-snprintf: New file.
41102         * modules/unistdio/ulc-sprintf: New file.
41103         * modules/unistdio/ulc-vasnprintf: New file.
41104         * modules/unistdio/ulc-vasprintf: New file.
41105         * modules/unistdio/ulc-vfprintf: New file.
41106         * modules/unistdio/ulc-vsnprintf: New file.
41107         * modules/unistdio/ulc-vsprintf: New file.
41108         * modules/unistdio/u8-asnprintf: New file.
41109         * modules/unistdio/u8-asprintf: New file.
41110         * modules/unistdio/u8-printf-parse: New file.
41111         * modules/unistdio/u8-snprintf: New file.
41112         * modules/unistdio/u8-sprintf: New file.
41113         * modules/unistdio/u8-vasnprintf: New file.
41114         * modules/unistdio/u8-vasprintf: New file.
41115         * modules/unistdio/u8-vsnprintf: New file.
41116         * modules/unistdio/u8-vsprintf: New file.
41117         * modules/unistdio/u8-u8-asnprintf: New file.
41118         * modules/unistdio/u8-u8-asprintf: New file.
41119         * modules/unistdio/u8-u8-snprintf: New file.
41120         * modules/unistdio/u8-u8-sprintf: New file.
41121         * modules/unistdio/u8-u8-vasnprintf: New file.
41122         * modules/unistdio/u8-u8-vasprintf: New file.
41123         * modules/unistdio/u8-u8-vsnprintf: New file.
41124         * modules/unistdio/u8-u8-vsprintf: New file.
41125         * modules/unistdio/u16-asnprintf: New file.
41126         * modules/unistdio/u16-asprintf: New file.
41127         * modules/unistdio/u16-printf-parse: New file.
41128         * modules/unistdio/u16-snprintf: New file.
41129         * modules/unistdio/u16-sprintf: New file.
41130         * modules/unistdio/u16-vasnprintf: New file.
41131         * modules/unistdio/u16-vasprintf: New file.
41132         * modules/unistdio/u16-vsnprintf: New file.
41133         * modules/unistdio/u16-vsprintf: New file.
41134         * modules/unistdio/u16-u16-asnprintf: New file.
41135         * modules/unistdio/u16-u16-asprintf: New file.
41136         * modules/unistdio/u16-u16-snprintf: New file.
41137         * modules/unistdio/u16-u16-sprintf: New file.
41138         * modules/unistdio/u16-u16-vasnprintf: New file.
41139         * modules/unistdio/u16-u16-vasprintf: New file.
41140         * modules/unistdio/u16-u16-vsnprintf: New file.
41141         * modules/unistdio/u16-u16-vsprintf: New file.
41142         * modules/unistdio/u32-asnprintf: New file.
41143         * modules/unistdio/u32-asprintf: New file.
41144         * modules/unistdio/u32-printf-parse: New file.
41145         * modules/unistdio/u32-snprintf: New file.
41146         * modules/unistdio/u32-sprintf: New file.
41147         * modules/unistdio/u32-vasnprintf: New file.
41148         * modules/unistdio/u32-vasprintf: New file.
41149         * modules/unistdio/u32-vsnprintf: New file.
41150         * modules/unistdio/u32-vsprintf: New file.
41151         * modules/unistdio/u32-u32-asnprintf: New file.
41152         * modules/unistdio/u32-u32-asprintf: New file.
41153         * modules/unistdio/u32-u32-snprintf: New file.
41154         * modules/unistdio/u32-u32-sprintf: New file.
41155         * modules/unistdio/u32-u32-vasnprintf: New file.
41156         * modules/unistdio/u32-u32-vasprintf: New file.
41157         * modules/unistdio/u32-u32-vsnprintf: New file.
41158         * modules/unistdio/u32-u32-vsprintf: New file.
41159         * modules/unistdio/ulc-asnprintf-tests: New file.
41160         * modules/unistdio/ulc-vasnprintf-tests: New file.
41161         * modules/unistdio/ulc-vasprintf-tests: New file.
41162         * modules/unistdio/ulc-vsnprintf-tests: New file.
41163         * modules/unistdio/ulc-vsprintf-tests: New file.
41164         * modules/unistdio/u8-asnprintf-tests: New file.
41165         * modules/unistdio/u8-vasnprintf-tests: New file.
41166         * modules/unistdio/u8-vasprintf-tests: New file.
41167         * modules/unistdio/u8-vsnprintf-tests: New file.
41168         * modules/unistdio/u8-vsprintf-tests: New file.
41169         * modules/unistdio/u16-asnprintf-tests: New file.
41170         * modules/unistdio/u16-vasnprintf-tests: New file.
41171         * modules/unistdio/u16-vasprintf-tests: New file.
41172         * modules/unistdio/u16-vsnprintf-tests: New file.
41173         * modules/unistdio/u16-vsprintf-tests: New file.
41174         * modules/unistdio/u32-asnprintf-tests: New file.
41175         * modules/unistdio/u32-vasnprintf-tests: New file.
41176         * modules/unistdio/u32-vasprintf-tests: New file.
41177         * modules/unistdio/u32-vsnprintf-tests: New file.
41178         * modules/unistdio/u32-vsprintf-tests: New file.
41179         * MODULES.html.sh (Unicode string functions): Add the new modules.
41180
41181 2007-07-01  Bruno Haible  <bruno@clisp.org>
41182
41183         * lib/sprintf.c (sprintf): Limit the available length estimation,
41184         to avoid address wraparound.
41185         * lib/vsprintf.c (vsprintf): Likewise.
41186         * modules/sprintf-posix (Dependencies): Add stdint.
41187         * modules/vsprintf-posix (Dependencies): Likewise.
41188
41189 2007-07-01  Bruno Haible  <bruno@clisp.org>
41190
41191         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
41192         Windows PATH as well. Conservative double-quoting. Comments.
41193
41194 2007-07-01  Bruno Haible  <bruno@clisp.org>
41195             Eric Blake  <ebb9@byu.net>
41196             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41197
41198         * gnulib-tool (self_abspathname): Fix algorithm to cope with
41199         empty components in $PATH, denoting '.'.
41200
41201 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41202
41203         * gnulib-tool: Fix indentation.
41204         (func_create_megatestdir): Likewise.
41205         Report by Bruno Haible.
41206
41207 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41208
41209         Sync from Automake.
41210         * build-aux/gnupload: Fix shell portability issues with for loops.
41211         Report by Karl Berry.
41212
41213 2007-06-29  Simon Josefsson  <simon@josefsson.org>
41214
41215         * build-aux/maint.mk (POURL): Use translationproject.org.
41216
41217 2007-06-27  Simon Josefsson  <simon@josefsson.org>
41218             Bruno Haible  <bruno@clisp.org>
41219
41220         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
41221         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
41222         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
41223         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
41224         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
41225
41226 2007-06-27  Bruno Haible  <bruno@clisp.org>
41227
41228         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
41229         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
41230
41231 2007-06-26  Karl Berry  <karl@gnu.org>
41232
41233         * MODULES.html.sh: remove xreadlink-with-size.
41234
41235 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41236
41237         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
41238         method that I hope also handles the double-include problem noted
41239         by Bruno Haible in
41240         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
41241
41242 2007-06-23  Bruno Haible  <bruno@clisp.org>
41243
41244         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41245         Don't let the 'mostlyclean' target fail if the last subdirectory could
41246         not be removed.
41247         Reported by Karl Berry.
41248
41249 2007-06-23  Bruno Haible  <bruno@clisp.org>
41250
41251         * gnulib-tool (echo): Add a speedier workaround for ksh.
41252         * tests/test-echo.sh: Likewise.
41253
41254 2007-06-23  Bruno Haible  <bruno@clisp.org>
41255
41256         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
41257         * tests/test-echo.sh: Likewise.
41258
41259 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41260
41261         * gnulib-tool (IFS): Initialize early, so we don't set it to
41262         empty later.
41263         (self_abspathname): Rewrite algorithm to set it, reindent.
41264         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
41265         (func_create_megatestdir): Merge some sed scripts.
41266
41267 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41268
41269         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
41270         exposed by Sun Studio 11 cc on Solaris 8.
41271
41272 2007-06-22  Bruno Haible  <bruno@clisp.org>
41273
41274         * gnulib-tool (echo): Ensure the echo primitive does not interpret
41275         backslashes.
41276         * tests/test-echo.sh: New file.
41277
41278 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41279
41280         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
41281         simplify `sed_replace_build_aux' scripts, they are portable but
41282         echoing them with `echo' is not.
41283         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
41284
41285 2007-06-21  Karl Berry  <karl@gnu.org>
41286
41287         * config/srclist.txt: guess we can't handle the licenses via
41288         srclist at the moment.
41289
41290 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
41291
41292         * MODULES.html.sh: Add include_next.
41293         * modules/include_next: New file.
41294
41295 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
41296
41297         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
41298         INCLUDE_NEXT.
41299         (gl_CHECK_NEXT_HEADERS): New macro.
41300         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
41301         the obsolescent gl_ABSOLUTE_HEADER.
41302         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
41303         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
41304         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41305         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41306         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
41307         * m4/math_h.m4 (gl_MATH_H): Likewise.
41308         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41309         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
41310         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
41311         * m4/stdint.m4 (gl_STDINT_H): Likewise.
41312         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
41313         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
41314         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
41315         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41316         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41317         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
41318         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
41319         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41320         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
41321         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
41322         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41323         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41324         * m4/inttypes.m4 (gl_INTTYPES_H): Define
41325         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
41326         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
41327         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
41328         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
41329         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
41330         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
41331         * lib/float_.h: Likewise.
41332         * lib/inttypes_.h: Likewise.
41333         * lib/math_.h: Likewise.
41334         * lib/search_.h: Likewise.
41335         * lib/signal_.h: Likewise.
41336         * lib/stdint_.h: Likewise.
41337         * lib/stdio_.h: Likewise.
41338         * lib/stdlib_.h: Likewise.
41339         * lib/string_.h: Likewise.
41340         * lib/sys_stat_.h: Likewise.
41341         * lib/sys_time_.h: Likewise.
41342         * lib/time_.h: Likewise.
41343         * lib/unistd_.h: Likewise.
41344         * lib/wchar_.h: Likewise.
41345         * lib/wctype_.h: Likewise.
41346         * lib/dirent_.h: Likewise.
41347         * lib/iconv_.h: Likewise.
41348         * lib/locale_.h: Likewise.
41349         * lib/netinet_in_.h: Likewise.
41350         * lib/sys_select_.h: Likewise.
41351         * lib/sys_socket_.h: Likewise.
41352         * lib/sysexits_.h: Likewise.
41353         * modules/fcntl (Depends-on): Depend on include_next, not
41354         absolute_header.
41355         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
41356         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
41357         * modules/fchdir: Likewise.
41358         * modules/float: Likewise.
41359         * modules/iconv_open: Likewise.
41360         * modules/inttypes: Likewise.
41361         * modules/locale: Likewise.
41362         * modules/math: Likewise.
41363         * modules/netinet_in: Likewise.
41364         * modules/search: Likewise.
41365         * modules/signal: Likewise.
41366         * modules/stdint: Likewise.
41367         * modules/stdio: Likewise.
41368         * modules/stdlib: Likewise.
41369         * modules/string: Likewise.
41370         * modules/sys_select: Likewise.
41371         * modules/sys_socket: Likewise.
41372         * modules/sys_stat: Likewise.
41373         * modules/sys_time: Likewise.
41374         * modules/sysexits: Likewise.
41375         * modules/time: Likewise.
41376         * modules/unistd: Likewise.
41377         * modules/wchar: Likewise.
41378         * modules/wctype: Likewise.
41379         * modules/sys_stat: Change maintainer to "all".
41380         * modules/unistd: Likewise.
41381
41382 2007-06-20  Karl Berry  <karl@gnu.org>
41383
41384         * config/srclist.txt: track www changes in license files.
41385
41386 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
41387
41388         * build-aux/bootstrap: Remove stray dot.
41389         Make sure build_aux settings are honored when linking
41390         gnulib_extra_files.
41391
41392 2007-06-19  Eric Blake  <ebb9@byu.net>
41393
41394         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
41395         Allow compilation on cygwin.
41396
41397 2007-06-19  Jim Meyering  <jim@meyering.net>
41398
41399         xreadlink-with-size: Remove module.  No longer used.
41400         Ex-callers now use xreadlink or mreadlink-with-size.
41401         * modules/xreadlink-with-size: Remove module.
41402         * lib/xreadlink-with-size.c: Remove file.
41403         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
41404         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
41405         just before the function definition *is* accurate.
41406
41407         Eliminate one way canonicalize_filename_mode could exit.
41408         * lib/canonicalize.c (canonicalize_filename_mode):
41409         Use mreadlink_with_size, not xreadlink_with_size.
41410
41411 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
41412
41413         Detect porting problems to FreeBSD/arm, which has time_t wider than
41414         long int.  Original problem reported for GNU diff by Xin Li in
41415         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
41416         * modules/getdate (Depends-on): Add intprops, verify.
41417         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
41418         is an integer type no wider than long int.
41419
41420 2007-06-18  Jim Meyering  <jim@meyering.net>
41421
41422         New module: mreadlink-with-size.
41423         * MODULES.html.sh: Add mreadlink-with-size.
41424         * modules/mreadlink-with-size: New module
41425         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
41426         not xreadlink-with-size.
41427         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
41428
41429 2007-06-16  Bruno Haible  <bruno@clisp.org>
41430
41431         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
41432         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
41433         Reported by Gary V. Vaughan <gary@gnu.org>.
41434
41435 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
41436
41437         Revamp lchown so that it lives in unistd.h where it belongs.
41438         * lib/lchown.h: Remove.
41439         * lib/dirchownmod.c: Don't include lib/lchown.h.
41440         * lib/fchownat.c: Likewise.
41441         * lib/openat.c: Likewise.
41442         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
41443         does not follow symlinks.
41444         (EOPNOTSUPP): Define if not defined.
41445         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
41446         is defined to 0.
41447         (lchown): New decl.
41448         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
41449         Do not check for lchown decl.
41450         Set REPLACE_LCHOWN.
41451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
41452         REPLACE_LCHOWN.
41453         * modules/chown: Make it clear it follows symlinks.
41454         * modules/lchown: Make it clear it doesn't follow symlinks.
41455         (Files): Remove lib/lchown.h
41456         (Depends-on): Add unistd.
41457         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
41458         (Include): Include <unistd.h>, not "lchown.h".
41459         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
41460         REPLACE_LCHOWN.
41461
41462 2007-06-15  Jim Meyering  <jim@meyering.net>
41463
41464         Change license (GPL to LGPL) of fsusage and dependents.
41465         * modules/fsusage (License): Change to LGPL.
41466         * modules/full-read (License): Likewise.
41467         * modules/full-write (License): Likewise.
41468         * modules/safe-read (License): Likewise.
41469         * modules/safe-write (License): Likewise.
41470
41471 2007-06-14  Ben Pfaff  <blp@gnu.org>
41472
41473         Missing part of allocsa -> malloca transition.
41474         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
41475         gl_MALLOCA.
41476
41477 2007-06-12  Bruno Haible  <bruno@clisp.org>
41478
41479         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
41480         to ia64, x86_64, i386.
41481         Reported by Eric Blake.
41482
41483 2007-06-12  Bruno Haible  <bruno@clisp.org>
41484
41485         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
41486         cross-compiling to x86_64.
41487
41488 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
41489
41490         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
41491         glitch reported by Ralf Wildenhues in
41492         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
41493
41494         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
41495         Vin Shelton.
41496
41497 2007-06-11  Bruno Haible  <bruno@clisp.org>
41498
41499         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
41500         replacement string.
41501         Reported by Eric Blake.
41502
41503 2007-06-10  Bruno Haible  <bruno@clisp.org>
41504
41505         Prepare vasnprintf code for use with Unicode strings.
41506         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
41507         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
41508         TYPE_U32_STRING.
41509         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
41510         a_u32_string variants.
41511         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
41512         * lib/printf-args.c: Don't include config.h and the specification
41513         header if PRINTF_FETCHARGS is already defined.
41514         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
41515         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
41516         TYPE_U16_STRING, TYPE_U32_STRING.
41517         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
41518         u16_directive, u16_directives, u32_directive, u32_directives): New
41519         types.
41520         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
41521         New declarations.
41522         * lib/printf-parse.c: Don't include config.h and the specification
41523         header if PRINTF_PARSE is already defined. Eliminate the set of
41524         parameters for WIDE_CHAR_VERSION; the user of this file must provide
41525         them now. Include c-ctype.h.
41526         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
41527         directive and CHAR_T_ONLY_ASCII.
41528         * lib/vasnprintf.c: Don't include config.h and the specification header
41529         if VASNPRINTF is already defined.
41530         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
41531         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
41532         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
41533         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
41534         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
41535         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
41536         code accordingly.
41537         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
41538         pad_ourselves also in this case, with the 'c' and 's' directives, and
41539         with a different notion of "width".
41540         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
41541
41542 2007-06-10  Bruno Haible  <bruno@clisp.org>
41543
41544         * modules/unistr/u32-mbsnlen: New file.
41545         * lib/unistr/u32-mbsnlen.c: New file.
41546
41547         * modules/unistr/u16-mbsnlen: New file.
41548         * lib/unistr/u16-mbsnlen.c: New file.
41549
41550         * modules/unistr/u8-mbsnlen: New file.
41551         * lib/unistr/u8-mbsnlen.c: New file.
41552
41553         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
41554         declarations.
41555
41556 2007-06-10  Bruno Haible  <bruno@clisp.org>
41557
41558         * lib/string_.h (mbsnlen): New declaration.
41559         * lib/mbsnlen.c: New file.
41560         * m4/mbsnlen.m4: New file.
41561         * modules/mbsnlen: New file.
41562         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
41563         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
41564         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
41565
41566 2007-06-10  Bruno Haible  <bruno@clisp.org>
41567
41568         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
41569
41570 2007-06-10  Bruno Haible  <bruno@clisp.org>
41571
41572         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
41573         * lib/mbuiter.h: Likewise.
41574
41575 2007-06-10  Bruno Haible  <bruno@clisp.org>
41576
41577         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
41578         declaration.
41579
41580 2007-06-10  Karl Berry  <karl@gnu.org>
41581
41582         * config/srclist.txt: remove gettext entries, Bruno prefers
41583         to update individually.
41584
41585 2007-06-10  Bruno Haible  <bruno@clisp.org>
41586
41587         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
41588         'maxlen'. Ensure only length + width bytes are allocated, not
41589         length + 1 + width.
41590
41591 2007-06-09  Bruno Haible  <bruno@clisp.org>
41592
41593         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
41594         (CHAR_T): Remove macro.
41595         (VASNPRINTF): Update.
41596
41597 2007-06-09  Bruno Haible  <bruno@clisp.org>
41598
41599         * MODULES.html.sh (Unicode string functions): Add the new modules.
41600
41601         * modules/uniconv/u32-conv-to-enc: New file.
41602         * lib/uniconv/u32-conv-to-enc.c: New file.
41603         * modules/uniconv/u32-conv-to-enc-tests: New file.
41604         * tests/uniconv/test-u32-conv-to-enc.c: New file.
41605
41606         * modules/uniconv/u16-conv-to-enc: New file.
41607         * lib/uniconv/u16-conv-to-enc.c: New file.
41608         * lib/uniconv/u-conv-to-enc.h: New file.
41609         * modules/uniconv/u16-conv-to-enc-tests: New file.
41610         * tests/uniconv/test-u16-conv-to-enc.c: New file.
41611
41612         * modules/uniconv/u8-conv-to-enc: New file.
41613         * lib/uniconv/u8-conv-to-enc.c: New file.
41614         * modules/uniconv/u8-conv-to-enc-tests: New file.
41615         * tests/uniconv/test-u8-conv-to-enc.c: New file.
41616
41617         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41618         u32_conv_to_encoding): New declarations.
41619
41620 2007-06-09  Bruno Haible  <bruno@clisp.org>
41621
41622         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
41623
41624 2007-06-09  Bruno Haible  <bruno@clisp.org>
41625
41626         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
41627         * modules/malloca: Renamed from modules/allocsa, updated.
41628         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
41629         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
41630         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
41631         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
41632         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
41633         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
41634         * modules/xmalloca: Renamed from modules/xallocsa, updated.
41635         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
41636         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
41637         * modules/c-strcasestr (Depends-on): Update.
41638         * lib/c-strcasestr.c: Update.
41639         * modules/c-strstr (Depends-on): Update.
41640         * lib/c-strstr.c: Update.
41641         * modules/canonicalize-lgpl (Depends-on): Update.
41642         * lib/canonicalize-lgpl.c: Update.
41643         * modules/clean-temp (Depends-on): Update.
41644         * lib/clean-temp.c: Update.
41645         * modules/csharpcomp (Depends-on): Update.
41646         * lib/csharpcomp.c: Update.
41647         * modules/csharpexec (Depends-on): Update.
41648         * lib/csharpexec.c: Update.
41649         * modules/javacomp (Depends-on): Update.
41650         * lib/javacomp.c: Update.
41651         * modules/javaexec (Depends-on): Update.
41652         * lib/javaexec.c: Update.
41653         * modules/mbscasestr (Depends-on): Update.
41654         * lib/mbscasestr.c: Update.
41655         * modules/mbsstr (Depends-on): Update.
41656         * lib/mbsstr.c: Update.
41657         * modules/setenv (Depends-on): Update.
41658         * lib/setenv.c: Update.
41659         * modules/strcasestr (Depends-on): Update.
41660         * lib/strcasestr.c: Update.
41661         * modules/striconveha (Depends-on): Update.
41662         * lib/striconveha.c: Update.
41663         * modules/relocatable-prog-wrapper (Files): Update.
41664         * lib/relocwrapper.c: Update.
41665         * build-aux/install-reloc: Update.
41666         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
41667
41668 2007-06-08  Bruno Haible  <bruno@clisp.org>
41669
41670         Port to uClibc.
41671         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
41672         * lib/fpurge.c (fpurge): Likewise.
41673         * lib/freading.c (freading): Likewise.
41674         * lib/fseeko.c (rpl_fseeko): Likewise.
41675         * lib/fseterr.c (fseterr): Likewise.
41676         * lib/fwriting.c (fwriting): Likewise.
41677         * tests/test-fflush.c (main): Avoid a failure on uClibc.
41678
41679 2007-06-08  Bruno Haible  <bruno@clisp.org>
41680
41681         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
41682         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
41683         * modules/gettext (Files): Add m4/intlmacosx.m4.
41684
41685 2007-06-07  Bruno Haible  <bruno@clisp.org>
41686
41687         * modules/localename-tests: New file.
41688         * tests/test-localename.c: New file.
41689
41690         New module 'localename'.
41691         * lib/localename.h: New file.
41692         * lib/localename.c: New file, from GNU gettext.
41693         * m4/localename.m4: New file.
41694         * modules/localename: New file.
41695
41696 2007-06-07  Bruno Haible  <bruno@clisp.org>
41697
41698         Work around the lack of <wchar.h> on some builds of uClibc.
41699         * doc/headers/wchar.texi: Update.
41700         * lib/wchar_.h: Include <wchar.h> only if it exists.
41701         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
41702         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
41703         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
41704         doesn't exist.
41705         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
41706         * modules/mbfile (Depends-on): Add wchar.
41707         * modules/mbiter (Depends-on): Likewise.
41708         * modules/mbuiter (Depends-on): Likewise.
41709         Reported by Simon Josefsson.
41710
41711 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
41712
41713         Work around problem reported by Steven M. Schweda in
41714         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
41715         Tru64 5.1B with the Compaq compiler environment installed declares
41716         an 'isblank' function but does not define it in the C library.
41717         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
41718         * lib/regex_internal.h (isblank): Likewise.
41719         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
41720         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41721
41722 2007-06-05  Bruno Haible  <bruno@clisp.org>
41723
41724         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
41725         ia64.
41726         * modules/printf-safe: New file.
41727         * modules/fprintf-posix (Depends-on): Add printf-safe.
41728         * modules/printf-posix (Depends-on): Likewise.
41729         * modules/snprintf-posix (Depends-on): Likewise.
41730         * modules/sprintf-posix (Depends-on): Likewise.
41731         * modules/vasnprintf-posix (Depends-on): Likewise.
41732         * modules/vasprintf-posix (Depends-on): Likewise.
41733         * modules/vfprintf-posix (Depends-on): Likewise.
41734         * modules/vprintf-posix (Depends-on): Likewise.
41735         * modules/vsnprintf-posix (Depends-on): Likewise.
41736         * modules/vsprintf-posix (Depends-on): Likewise.
41737         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
41738         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
41739         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
41740         "no" on i386, x86_64, ia64.
41741         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
41742         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41743         on i386, x86_64, ia64.
41744         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
41745         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41746         on i386, x86_64, ia64.
41747         * tests/test-vasnprintf-posix.c: Include float.h.
41748         (LDBL80_WORDS): New macro.
41749         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41750         on i386, x86_64, ia64.
41751         * tests/test-vasprintf-posix.c: Include float.h.
41752         (LDBL80_WORDS): New macro.
41753         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41754         on i386, x86_64, ia64.
41755         * tests/test-snprintf-posix.c: Include float.h.
41756         * tests/test-sprintf-posix.c: Likewise.
41757         * tests/test-vsnprintf-posix.c: Likewise.
41758         * tests/test-vsprintf-posix.c: Likewise.
41759
41760 2007-06-05  Bruno Haible  <bruno@clisp.org>
41761
41762         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
41763         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
41764         non-IEEE numbers on i386, x86_64, ia64.
41765         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
41766         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
41767         * tests/test-isnanl.h: Include float.h.
41768         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
41769
41770 2007-06-05  Bruno Haible  <bruno@clisp.org>
41771
41772         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
41773         also the %a / %A. Handle the %a / %A code before this extra handling.
41774
41775 2007-06-05  Bruno Haible  <bruno@clisp.org>
41776
41777         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
41778         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
41779
41780 2007-06-05  Bruno Haible  <bruno@clisp.org>
41781
41782         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
41783         typo in variable name.
41784
41785 2007-06-05  Eric Blake  <ebb9@byu.net>
41786
41787         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
41788         Reported by Simon Josefsson.
41789
41790 2007-06-04  Bruno Haible  <bruno@clisp.org>
41791
41792         Avoid test failures on some PowerPC platforms.
41793         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
41794         Define differently for PowerPC.
41795         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
41796         Reported by Gary V. Vaughan <gary@gnu.org>.
41797
41798 2007-06-02  Bruno Haible  <bruno@clisp.org>
41799
41800         Fix test-stdint failure on FreeBSD/ia64.
41801         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
41802         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
41803         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
41804         * doc/headers/stdint.texi: Update.
41805
41806 2007-06-01  Bruno Haible  <bruno@clisp.org>
41807
41808         * tests/test-binary-io.c (main): Pass a third argument to open().
41809         Reported by Gary V. Vaughan <gary@gnu.org>.
41810
41811 2007-06-01  Bruno Haible  <bruno@clisp.org>
41812
41813         * doc/functions/frexpl.texi: Update for mingw.
41814
41815 2007-06-01  Bruno Haible  <bruno@clisp.org>
41816
41817         * tests/test-lseek.c (main): Disable test of errno for invalid third
41818         argument.
41819         * doc/functions/lseek.texi: Update.
41820         Reported by Gary V. Vaughan <gary@gnu.org>.
41821
41822 2007-05-28  Bruno Haible  <bruno@clisp.org>
41823
41824         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
41825
41826 2007-05-31  Eric Blake  <ebb9@byu.net>
41827
41828         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
41829         cross compiling.
41830
41831 2007-05-30  Eric Blake  <ebb9@byu.net>
41832         and Bruno Haible  <bruno@clisp.org>
41833
41834         Work around mingw test failures exposed by m4-1.4.9b.
41835         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
41836         * tests/test-unistd.c: Disable uid_t and git_t tests for the
41837         moment.
41838
41839 2007-05-30  Bruno Haible  <bruno@clisp.org>
41840
41841         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
41842         assuming that they are closed. Needed on HP-UX 11.
41843
41844 2007-05-29  Bruno Haible  <bruno@clisp.org>
41845
41846         Fix a problem with #include_next.
41847         * lib/dirent_.h: Split the double-inclusion guard.
41848         * lib/fcntl_.h: Likewise.
41849         * lib/float_.h: Likewise.
41850         * lib/iconv_.h: Likewise.
41851         * lib/inttypes_.h: Likewise.
41852         * lib/locale_.h: Likewise.
41853         * lib/math_.h: Likewise.
41854         * lib/netinet_in_.h: Likewise.
41855         * lib/search_.h: Likewise.
41856         * lib/signal_.h: Likewise.
41857         * lib/stdint_.h: Likewise.
41858         * lib/stdio_.h: Likewise.
41859         * lib/stdlib_.h: Likewise.
41860         * lib/string_.h: Likewise.
41861         * lib/sys_select_.h: Likewise.
41862         * lib/sys_socket_.h: Likewise.
41863         * lib/sys_stat_.h: Likewise.
41864         * lib/sys_time_.h: Likewise.
41865         * lib/sysexits_.h: Likewise.
41866         * lib/time_.h: Likewise.
41867         * lib/unistd_.h: Likewise.
41868         * lib/wchar_.h: Likewise.
41869         * lib/wctype_.h: Likewise.
41870
41871 2007-05-29  Bruno Haible  <bruno@clisp.org>
41872
41873         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
41874         for the moment.
41875
41876 2007-05-29  Bruno Haible  <bruno@clisp.org>
41877
41878         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
41879         invocation.
41880         Reported by Eric Blake.
41881
41882 2007-05-29  Bruno Haible  <bruno@clisp.org>
41883
41884         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
41885         compiling case.
41886
41887 2007-05-29  Eric Blake  <ebb9@byu.net>
41888             Bruno Haible  <bruno@clisp.org>
41889
41890         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
41891         cross compiles.
41892
41893 2007-05-28  Eric Blake  <ebb9@byu.net>
41894
41895         * modules/closein-tests (test_closein_LDADD): Support test on
41896         cygwin with libtool.
41897
41898 2007-05-28  Bruno Haible  <bruno@clisp.org>
41899
41900         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
41901         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41902         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41903         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41904         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41905         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41906         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41907         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41908         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41909
41910 2007-05-28  Eric Blake  <ebb9@byu.net>
41911
41912         Unconditionally include <config.h> in unit tests.
41913         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
41914         * tests/test-allocsa.c, tests/test-arcfour.c,
41915         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
41916         tests/test-array_list.c, tests/test-array_oset.c,
41917         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
41918         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
41919         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
41920         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
41921         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
41922         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
41923         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
41924         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
41925         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
41926         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
41927         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
41928         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
41929         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
41930         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
41931         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
41932         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
41933         test-md5.c, test-memmem.c, test-printf-posix.c,
41934         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
41935         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
41936         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
41937         test-strcasestr.c, test-striconv.c, test-striconveh.c,
41938         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
41939         test-vasnprintf-posix2.c, test-vasnprintf.c,
41940         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
41941         test-vfprintf-posix.c, test-vprintf-posix.c,
41942         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
41943         test-xvasprintf.c: Likewise.
41944
41945 2007-05-28  Bruno Haible  <bruno@clisp.org>
41946
41947         * gnulib-tool (func_import): Remember the --with-tests command-line
41948         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
41949         Reported by Eric Blake.
41950
41951 2007-05-28  Bruno Haible  <bruno@clisp.org>
41952
41953         * modules/ftell-tests: New file.
41954         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
41955         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
41956
41957         * lib/ftell.c: New file.
41958         * modules/ftell: New file.
41959         * m4/ftell.m4: New file.
41960         * doc/functions/ftell.texi: Update.
41961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
41962         REPLACE_FTELL.
41963         * lib/stdio_.h (rpl_ftell): New declaration.
41964         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
41965         REPLACE_FTELL.
41966
41967 2007-05-28  Eric Blake  <ebb9@byu.net>
41968
41969         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
41970
41971 2007-05-28  Bruno Haible  <bruno@clisp.org>
41972
41973         * modules/fseek-tests: New file.
41974         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
41975         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
41976
41977         * lib/fseek.c: New file.
41978         * modules/fseek: New file.
41979         * m4/fseek.m4: New file.
41980         * doc/functions/fseek.texi: Update.
41981         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
41982         REPLACE_FSEEK.
41983         * lib/stdio_.h (rpl_fseek): New declaration.
41984         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
41985         REPLACE_FSEEK.
41986
41987 2007-05-28  Bruno Haible  <bruno@clisp.org>
41988
41989         * lib/stdio_.h (fflush): More comments.
41990
41991 2007-05-28  Bruno Haible  <bruno@clisp.org>
41992
41993         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
41994         runtime test.
41995
41996 2007-05-28  Eric Blake  <ebb9@byu.net>
41997
41998         Improve lseek module.
41999         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
42000         * lib/unistd_.h (lseek): Scale back link warning message.
42001         * tests/test-lseek.c: Beef up test.
42002         * tests/test-lseek.sh: Exercise more facets of lseek.
42003         Reported by Bruno Haible.
42004
42005 2007-05-28  Bruno Haible  <bruno@clisp.org>
42006
42007         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
42008         to define.
42009
42010 2007-05-27  Bruno Haible  <bruno@clisp.org>
42011
42012         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
42013
42014 2007-05-27  Bruno Haible  <bruno@clisp.org>
42015
42016         * modules/openmp: New file.
42017         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
42018         Noah Misch.
42019
42020 2007-05-26  Bruno Haible  <bruno@clisp.org>
42021
42022         * modules/chdir-long (Depends-on): Add fchdir.
42023         * modules/chdir-safer (Depends-on): Likewise.
42024         * modules/fts (Depends-on): Likewise.
42025         * modules/fts-lgpl (Depends-on): Likewise.
42026         * modules/openat (Depends-on): Likewise.
42027         * modules/savewd (Depends-on): Likewise.
42028
42029 2007-05-24  Eric Blake  <ebb9@byu.net>
42030
42031         Fix lseek on mingw.
42032         * modules/lseek: New module.
42033         * m4/lseek.m4: New file.
42034         * lib/lseek.c: New file.
42035         * modules/lseek-tests: New file.
42036         * tests/test-lseek.c: New file.
42037         * tests/test-lseek.sh: New file.
42038         * MODULES.html.sh: Document lseek module.
42039         * modules/fflush (Depends-on): Add lseek, fseeko.
42040         * modules/fseeko (Depends-on): Likewise.
42041         * modules/ftello (Depends-on): Likewise.
42042         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
42043         broken.
42044         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
42045         broken.
42046         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
42047         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
42048         * lib/ftello.c (rpl_ftello): Likewise.
42049         * tests/test-fseeko.c (main): Test this.
42050         * tests/test-fseeko.sh: Likewise.
42051         * tests/test-ftello.c (main): Likewise.
42052         * tests/test-ftello.sh: Likewise.
42053         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
42054         implies replacing fseek.
42055         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
42056         HAVE_FTELLO.
42057         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
42058         * modules/unistd (Makefile.am): Likewise.
42059         * lib/unistd_.h (lseek): Declare a replacement.
42060         * doc/functions/lseek.texi (lseek): Document this fix.
42061         * doc/functions/fseek.texi (fseek): Likewise.
42062         * doc/functions/ftell.texi (ftell): Likewise.
42063
42064 2007-05-24  Bruno Haible  <bruno@clisp.org>
42065
42066         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
42067         in the printed representation of a NaN.
42068         * tests/test-vasprintf-posix.c (test_function): Likewise.
42069         * tests/test-snprintf-posix.h (test_function): Likewise.
42070         * tests/test-sprintf-posix.h (test_function): Likewise.
42071         Reported by Eric Blake.
42072
42073 2007-05-23  Eric Blake  <ebb9@byu.net>
42074
42075         Fix fseeko/ftello on cygwin 1.5.24.
42076         * doc/functions/fseeko.texi (fseeko): Document the fix.
42077         * doc/functions/ftello.texi (ftello): Document the fix.
42078         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
42079         * doc/functions/stdout.text (stdout): New file.
42080         * doc/functions/stderr.text (stderr): New file.
42081         * doc/gnulib.texi (Function Substitutes): Use new files.
42082         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
42083         prior to 1.7.0.
42084         * tests/test-ftello.c (main): Likewise for ftello.
42085         * tests/test-fseeko.sh: New file.
42086         * tests/test-ftello.sh: New file.
42087         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
42088         with seekable stdin.
42089         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
42090         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
42091         (gl_REPLACE_FSEEKO): New macro.
42092         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
42093         * modules/fseeko (Files): Distribute fseeko.c.
42094         * modules/ftello (Files): Distribute ftello.c.
42095         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
42096         mode.
42097         * lib/ftello.c (rpl_ftello): New file.
42098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
42099         fseeko, ftello.
42100         (gl_STDIN_LARGE_OFFSET): New macro.
42101         * modules/stdio (Makefile.am): Perform the replacement.
42102         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
42103
42104 2007-05-23  Bruno Haible  <bruno@clisp.org>
42105
42106         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
42107         GNULIB_POSIXCHECK is defined.
42108
42109 2007-05-21  Bruno Haible  <bruno@clisp.org>
42110
42111         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
42112         Check also the output for NaN arguments. When cross-compiling, guess
42113         no on IRIX.
42114         * lib/vasnprintf.c: Update comments.
42115         * tests/test-vasnprintf-posix.c (strisnan): New function.
42116         (test_function): Use it.
42117         * tests/test-vasprintf-posix.c (strisnan): New function.
42118         (test_function): Use it.
42119         * tests/test-snprintf-posix.h (strisnan): New function.
42120         (test_function): Use it.
42121         * tests/test-sprintf-posix.h (strisnan): New function.
42122         (test_function): Use it.
42123         Reported by Eric Blake.
42124
42125 2007-05-20  Bruno Haible  <bruno@clisp.org>
42126
42127         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
42128         numbers that fails on BeOS.
42129         * doc/functions/frexpl.texi: Update.
42130
42131 2007-05-20  Jim Meyering  <jim@meyering.net>
42132
42133         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
42134         forced upon us by glibc-2.6.
42135
42136 2007-05-20  Bruno Haible  <bruno@clisp.org>
42137
42138         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
42139         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
42140         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
42141         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
42142         NEED_PRINTF_INFINITE.
42143         (is_infinitel): New function.
42144         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
42145         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
42146         gl_PREREQ_VASNPRINTF_INFINITE.
42147         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
42148         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42149         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
42150         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
42151         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
42152         gl_PREREQ_VASNPRINTF_INFINITE.
42153         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42154         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42155         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42156         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42157         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42158         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42159         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42160         * doc/functions/fprintf.texi: Update.
42161         * doc/functions/printf.texi: Update.
42162         * doc/functions/snprintf.texi: Update.
42163         * doc/functions/sprintf.texi: Update.
42164         * doc/functions/vfprintf.texi: Update.
42165         * doc/functions/vprintf.texi: Update.
42166         * doc/functions/vsnprintf.texi: Update.
42167         * doc/functions/vsprintf.texi: Update.
42168
42169 2007-05-20  Bruno Haible  <bruno@clisp.org>
42170
42171         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
42172         was not found in libc.
42173         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
42174
42175 2007-05-20  Bruno Haible  <bruno@clisp.org>
42176
42177         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
42178         printed as "-nan" instead of "nan".
42179         * tests/test-vasprintf-posix.c (test_function): Likewise.
42180         * tests/test-snprintf-posix.h (test_function): Likewise.
42181         * tests/test-sprintf-posix.h (test_function): Likewise.
42182         Needed for HP-UX 11.
42183
42184 2007-05-20  Jim Meyering  <jim@meyering.net>
42185
42186         Fix buggy test for the fchownat-deref bug.
42187         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
42188         symlink required for the run-test.  Without it, this test would
42189         always declare that fchownat doesn't work, and client code would
42190         unnecessarily use the replacement function with fixed libc.
42191         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
42192         Reported by Greg Schafer.
42193
42194 2007-05-19  Bruno Haible  <bruno@clisp.org>
42195
42196         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
42197         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
42198         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
42199         Needed for IRIX 6.5 and Solaris 2.5.1.
42200
42201 2007-05-19  Bruno Haible  <bruno@clisp.org>
42202
42203         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
42204         (test_function): Skip tests involving -0.0 on platforms where
42205         -0.0 = 0.0.
42206         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
42207         (test_function): Skip tests involving -0.0 on platforms where
42208         -0.0 = 0.0.
42209         * tests/test-snprintf-posix.h (have_minus_zero): New function.
42210         (test_function): Skip tests involving -0.0 on platforms where
42211         -0.0 = 0.0.
42212         * tests/test-sprintf-posix.h (have_minus_zero): New function.
42213         (test_function): Skip tests involving -0.0 on platforms where
42214         -0.0 = 0.0.
42215         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
42216         tests.
42217         * tests/test-printf-posix.h (test_function): Likewise.
42218         * tests/test-printf-posix.output: Remove all -0.0 related results.
42219         Needed for IRIX 6.5.
42220
42221 2007-05-19  Bruno Haible  <bruno@clisp.org>
42222
42223         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
42224         printed as "nan0x7fffffff" instead of "nan".
42225         * tests/test-vasprintf-posix.c (test_function): Likewise.
42226         * tests/test-snprintf-posix.h (test_function): Likewise.
42227         * tests/test-sprintf-posix.h (test_function): Likewise.
42228         * tests/test-fprintf-posix.h (NaN): Remove macro.
42229         (test_function): Remove all NaN related tests.
42230         * tests/test-printf-posix.h (NaN): Remove macro.
42231         (test_function): Remove all NaN related tests.
42232         * tests/test-printf-posix.output: Remove all NaN related results.
42233         Needed for IRIX 6.5.
42234
42235 2007-05-19  Bruno Haible  <bruno@clisp.org>
42236
42237         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
42238         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
42239
42240 2007-05-19  Bruno Haible  <bruno@clisp.org>
42241
42242         * lib/float_.h: New file.
42243         * m4/float_h.m4: New file.
42244         * modules/float: New file.
42245         * modules/isnanl (Dependencies): Add float.
42246         * modules/isnanl-nolibm (Dependencies): Likewise.
42247         * modules/mathl (Dependencies): Likewise.
42248         * modules/printf-frexpl (Dependencies): Likewise.
42249         * modules/signbit (Dependencies): Likewise.
42250         * modules/vasnprintf (Dependencies): Likewise.
42251         * doc/headers/float.texi: Update.
42252
42253 2007-05-19  Jim Meyering  <jim@meyering.net>
42254
42255         * lib/utimens.c (gl_futimens): Rename from futimens,
42256         now that glibc-2.6 declares futimens.
42257         * lib/utimens.h: Likewise.
42258
42259 2007-05-19  Bruno Haible  <bruno@clisp.org>
42260
42261         Avoid test failures on mingw.
42262         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
42263         * tests/test-printf-posix.sh: Likewise.
42264         * tests/test-vfprintf-posix.sh: Likewise.
42265         * tests/test-vprintf-posix.sh: Likewise.
42266
42267 2007-05-19  Bruno Haible  <bruno@clisp.org>
42268
42269         Fix *printf result for NaN, Inf, -0.0 on mingw.
42270         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
42271         * lib/vasnprintf.c: Include math.h and isnan.h.
42272         (is_infinite_or_zero): New function.
42273         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
42274         values in the %f, %F, %e, %E, %g, %G directives.
42275         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
42276         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42277         gl_PRINTF_INFINITE and test its result. Invoke
42278         gl_PREREQ_VASNPRINTF_INFINITE.
42279         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42280         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42281         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42282         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42283         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42284         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42285         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42286         * doc/functions/fprintf.texi: Update.
42287         * doc/functions/printf.texi: Update.
42288         * doc/functions/snprintf.texi: Update.
42289         * doc/functions/sprintf.texi: Update.
42290         * doc/functions/vfprintf.texi: Update.
42291         * doc/functions/vprintf.texi: Update.
42292         * doc/functions/vsnprintf.texi: Update.
42293         * doc/functions/vsprintf.texi: Update.
42294
42295 2007-05-19  Bruno Haible  <bruno@clisp.org>
42296
42297         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
42298         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
42299         Instead of multiplying with 10^k, set extra_zeroes to k.
42300         (scale10_round_long_double): Remove function.
42301
42302 2007-05-18  Bruno Haible  <bruno@clisp.org>
42303
42304         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
42305         introduced on 2007-05-06.
42306
42307 2007-05-18  Bruno Haible  <bruno@clisp.org>
42308
42309         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
42310         %g directives.
42311         * tests/test-vasprintf-posix.c (test_function): Likewise.
42312         * tests/test-snprintf-posix.h (test_function): Likewise.
42313         * tests/test-sprintf-posix.h (test_function): Likewise.
42314
42315 2007-05-18  Bruno Haible  <bruno@clisp.org>
42316
42317         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
42318         (strmatch): New function.
42319         (test_function): Test the %f directive on numbers of various exponents.
42320         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
42321         (strmatch): New function.
42322         (test_function): Test the %f directive on numbers of various exponents.
42323         * tests/test-snprintf-posix.h (strmatch): New function.
42324         (test_function): Test the %f directive on numbers of various exponents.
42325         * tests/test-sprintf-posix.h (strmatch): New function.
42326         (test_function): Test the %f directive on numbers of various exponents.
42327         * tests/test-snprintf-posix.c (SIZEOF): New macro.
42328         * tests/test-sprintf-posix.c (SIZEOF): New macro.
42329         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
42330         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
42331
42332 2007-05-18  Bruno Haible  <bruno@clisp.org>
42333
42334         Add support for 'long double' number output.
42335         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
42336         * lib/vasnprintf.c: Include math.h and float+.h.
42337         (mp_limb_t): New type.
42338         (GMP_LIMB_BITS): New macro.
42339         (mp_twolimb_t): New type.
42340         (GMP_TWOLIMB_BITS): New macro.
42341         (mpn_t): New type.
42342         (multiply, divide, convert_to_decimal, decode_long_double,
42343         scale10_round_long_double, scale10_round_decimal_long_double,
42344         floorlog10l): New functions.
42345         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
42346         for the %f, %F, %e, %E, %g, %G directives.
42347         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
42348         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42349         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
42350         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
42351         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42352         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42353         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42354         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42355         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42356         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42357         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42358         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
42359         * modules/snprintf-posix (Depends-on): Likewise.
42360         * modules/sprintf-posix (Depends-on): Likewise.
42361         * modules/vasnprintf-posix (Depends-on): Likewise.
42362         * modules/vasprintf-posix (Depends-on): Likewise.
42363         * modules/vfprintf-posix (Depends-on): Likewise.
42364         * modules/vsnprintf-posix (Depends-on): Likewise.
42365         * modules/vsprintf-posix (Depends-on): Likewise.
42366         * modules/vasnprintf (Files): Add lib/float+.h.
42367         * doc/functions/fprintf.texi: Update.
42368         * doc/functions/printf.texi: Update.
42369         * doc/functions/snprintf.texi: Update.
42370         * doc/functions/sprintf.texi: Update.
42371         * doc/functions/vfprintf.texi: Update.
42372         * doc/functions/vprintf.texi: Update.
42373         * doc/functions/vsnprintf.texi: Update.
42374         * doc/functions/vsprintf.texi: Update.
42375
42376 2007-05-18  Bruno Haible  <bruno@clisp.org>
42377
42378         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
42379
42380 2007-05-18  Bruno Haible  <bruno@clisp.org>
42381
42382         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
42383         for printing 64-bit integers. Needed for mingw.
42384
42385 2007-05-18  Bruno Haible  <bruno@clisp.org>
42386
42387         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
42388         gl_FUNC_FREXPL_WORKS.
42389         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
42390
42391 2007-05-18  Bruno Haible  <bruno@clisp.org>
42392
42393         * modules/frexpl-nolibm-tests: New file.
42394
42395         * modules/frexpl-nolibm: New file.
42396         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
42397
42398 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
42399
42400         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
42401         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
42402         GCC 4.2, which otherwise issues a lot of warnings.
42403         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
42404         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
42405         Likewise.
42406         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
42407         * modules/iconv_open (iconv.h): Likewise.
42408         * modules/locale (locale.h): Likewise.
42409         * modules/netinet_in (netinet/in.h): Likewise.
42410         * modules/sys_select (sys_select.h): Likewise.
42411         * modules/sys_socket (sys/socket.h): Likewise.
42412         * modules/sys_stat (sys/stat.h): Likewise.
42413         * modules/sysexits (sysexits.h): Likewise.
42414         * modules/unistd (unistd.h): Likewise.
42415
42416 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42417
42418         * modules/closein-tests (Makefile.am): Distribute
42419         `test-closein.sh'.
42420
42421 2007-05-17  Bruno Haible  <bruno@clisp.org>
42422
42423         * tests/test-printf-posix.output: Renamed from
42424         tests/test-fprintf-posix.out.
42425         * modules/fprintf-posix-tests: Update.
42426         * modules/printf-posix-tests: Update.
42427         * modules/vfprintf-posix-tests: Update.
42428         * modules/vprintf-posix-tests: Update.
42429         * tests/test-fprintf-posix.sh: Update.
42430         * tests/test-printf-posix.sh: Update.
42431         * tests/test-vfprintf-posix.sh: Update.
42432         * tests/test-vprintf-posix.sh: Update.
42433         Reported by Ralf Wildenhues.
42434
42435 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
42436
42437         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
42438         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
42439         GCC 4.2, which otherwise issues a lot of warnings.
42440         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
42441         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
42442         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
42443         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
42444         it should no longer be needed.
42445         * lib/string_.h: Likewise.
42446         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
42447         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
42448         * modules/inttypes (inttypes.h): Likewise.
42449         * modules/math (math.h): Likewise.
42450         * modules/search (search.h): Likewise.
42451         * modules/signal (signal.h): Likewise.
42452         * modules/stdint (stdint.h): Likewise.
42453         * modules/stdio (stdio.h): Likewise.
42454         * modules/stdlib (stdlib.h): Likewise.
42455         * modules/string (string.h): Likewise.
42456         * modules/sys_time (sys/time.h): Likewise.
42457         * modules/time (time.h): Likewise.
42458         * modules/wchar (wchar.h): Likewise.
42459         * modules/wctype (wtype.h): Likewise.
42460
42461 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42462
42463         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
42464
42465 2007-05-13  Bruno Haible  <bruno@clisp.org>
42466
42467         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
42468         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42469         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
42470         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42471         (gl_PREREQ_STRTOK_R): Don't require it here.
42472
42473 2007-05-13  Bruno Haible  <bruno@clisp.org>
42474
42475         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
42476         when used in C++ mode.
42477
42478 2007-05-12  Bruno Haible  <bruno@clisp.org>
42479
42480         * lib/linebuffer.h: Tweak doc.
42481         * lib/linebuffer.c: Likewise.
42482
42483 2007-05-12  James Youngman  <jay@gnu.org>
42484
42485         * lib/linebuffer.c (readlinebuffer_delim): New function,
42486         like readlinebuffer, but use a caller-specified delimiter.
42487         (readlinebuffer): Just call readlinebuffer_delim with '\n'
42488         as the delimiter.
42489         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
42490
42491 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42492
42493         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
42494         * modules/openat (Files): Remove openat-die.c.
42495         (Depends-on): Add openat-die.
42496         * modules/openat-die: New module.
42497
42498 2007-05-06  Bruno Haible  <bruno@clisp.org>
42499
42500         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
42501         Update with info about Cygwin.
42502         * doc/functions/fprintf.texi: Update.
42503         * doc/functions/printf.texi: Update.
42504         * doc/functions/snprintf.texi: Update.
42505         * doc/functions/sprintf.texi: Update.
42506         * doc/functions/vfprintf.texi: Update.
42507         * doc/functions/vprintf.texi: Update.
42508         * doc/functions/vsnprintf.texi: Update.
42509         * doc/functions/vsprintf.texi: Update.
42510         Reported by Eric Blake.
42511
42512 2007-05-06  Bruno Haible  <bruno@clisp.org>
42513
42514         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
42515         padding ourselves for the floating-point directives.
42516         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
42517         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
42518         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42519         gl_PRINTF_FLAG_ZERO and test its result. Invoke
42520         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
42521         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42522         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
42523         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42524         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42525         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42526         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42527         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42528         * tests/test-snprintf-posix.h (test_function): Also check the width
42529         and some flags in the %f directive.
42530         * tests/test-sprintf-posix.h (test_function): Likewise.
42531         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42532         * tests/test-vasprintf-posix.c (test_function): Likewise.
42533         * doc/functions/fprintf.texi: Update.
42534         * doc/functions/printf.texi: Update.
42535         * doc/functions/snprintf.texi: Update.
42536         * doc/functions/sprintf.texi: Update.
42537         * doc/functions/vfprintf.texi: Update.
42538         * doc/functions/vprintf.texi: Update.
42539         * doc/functions/vsnprintf.texi: Update.
42540         * doc/functions/vsprintf.texi: Update.
42541
42542 2007-05-06  Bruno Haible  <bruno@clisp.org>
42543
42544         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
42545         pass the ' flag character to sprintf or snprintf.
42546         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
42547         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
42548         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42549         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
42550         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
42551         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42552         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
42553         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42554         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42555         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42556         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42557         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42558         * tests/test-snprintf-posix.h (test_function): Also check the grouping
42559         flag.
42560         * tests/test-sprintf-posix.h (test_function): Likewise.
42561         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42562         * tests/test-vasprintf-posix.c (test_function): Likewise.
42563         * doc/functions/fprintf.texi: Update.
42564         * doc/functions/printf.texi: Update.
42565         * doc/functions/snprintf.texi: Update.
42566         * doc/functions/sprintf.texi: Update.
42567         * doc/functions/vfprintf.texi: Update.
42568         * doc/functions/vprintf.texi: Update.
42569         * doc/functions/vsnprintf.texi: Update.
42570         * doc/functions/vsprintf.texi: Update.
42571
42572 2007-05-01  Bruno Haible  <bruno@clisp.org>
42573
42574         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
42575
42576 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
42577
42578         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
42579         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
42580
42581 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
42582
42583         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
42584         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
42585         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
42586
42587 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
42588
42589         * lib/argp-help.c (struct hol_entry): New member `ord'.
42590         (HOL_ENTRY_PTRCMP): Use ord for comparison
42591         (hol_sort): Initialize ord.
42592
42593 2007-05-01  Bruno Haible  <bruno@clisp.org>
42594
42595         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
42596         Reported by Eric Blake.
42597         * doc/gnulib.texi (Function Substitutes): Update.
42598
42599 2007-05-01  Bruno Haible  <bruno@clisp.org>
42600
42601         * doc/functions.texi: Remove file, now redundant through
42602         doc/functions/*.texi.
42603
42604 2007-05-01  Bruno Haible  <bruno@clisp.org>
42605
42606         * modules/argp (Depends-on): Add sleep.
42607
42608 2007-05-01  Bruno Haible  <bruno@clisp.org>
42609
42610         * modules/sleep-tests: New file.
42611         * tests/test-sleep.c: New file.
42612
42613         * modules/sleep: New file.
42614         * lib/sleep.c: New file.
42615         * m4/sleep.m4: New file.
42616         * lib/unistd_.h (sleep): New declaration.
42617         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
42618         HAVE_SLEEP.
42619         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
42620         * doc/functions/sleep.texi: Document the sleep module.
42621
42622 2007-05-01  Bruno Haible  <bruno@clisp.org>
42623
42624         * lib/sigprocmask.h: Remove file.
42625         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
42626         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
42627         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
42628         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
42629         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
42630         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
42631         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
42632         HAVE_SIGSET_T as a shell variable.
42633         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
42634         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
42635         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
42636         (Depends-on): Add signal. Remove verify.
42637         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
42638         (Include): Mention <signal.h> instead of sigprocmask.h.
42639         * NEWS: Mention the change.
42640         * lib/fatal-signal.c: Don't include sigprocmask.h.
42641
42642 2007-05-01  Bruno Haible  <bruno@clisp.org>
42643
42644         * modules/signal: New file.
42645         * lib/signal_.h: New file.
42646         * m4/signal_h.m4: New file.
42647
42648 2007-05-01  Bruno Haible  <bruno@clisp.org>
42649
42650         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
42651         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
42652         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
42653         HAVE_WCTYPE_CTMP_BUG into wctype.h.
42654
42655 2007-05-01  Bruno Haible  <bruno@clisp.org>
42656
42657         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
42658         configure time.
42659         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
42660         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
42661         * modules/sys_stat (Makefile.am): Substitute their values into
42662         sys/stat.h.
42663
42664 2007-05-01  Bruno Haible  <bruno@clisp.org>
42665
42666         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
42667         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
42668         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
42669
42670 2007-05-01  Bruno Haible  <bruno@clisp.org>
42671
42672         * doc/header/assert.texi: Undo last change: don't mention the gnulib
42673         'assert' module here.
42674
42675 2007-05-01  Bruno Haible  <bruno@clisp.org>
42676
42677         * doc/functions/*.texi: New files.
42678         * doc/functions/google-ranking.txt: New file.
42679         * doc/gnulib.texi (Function Substitutes): New chapter.
42680         (ctime, inet_ntoa): Remove sections.
42681         * doc/ctime.texi: Remove file.
42682         * doc/inet_ntoa.texi: Remove file.
42683         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
42684         dependencies.
42685         (%.info): New rule, specifying a --reference-limit.
42686
42687 2007-05-01  Bruno Haible  <bruno@clisp.org>
42688
42689         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
42690
42691 2007-05-01  Bruno Haible  <bruno@clisp.org>
42692
42693         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
42694         the portability of 'mkdir' to mingw systems.
42695
42696 2007-05-01  Bruno Haible  <bruno@clisp.org>
42697
42698         * doc/headers/google-ranking.txt: New file.
42699
42700 2007-04-30  Eric Blake  <ebb9@byu.net>
42701
42702         Prefer fseeko to fseek.
42703         * modules/getpass (Depends-on): Add fseeko.
42704         * lib/getpass.c (getpass): Use fseeko, not fseek.
42705
42706 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
42707
42708         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
42709         assumes the sorting is stable, while most qsort implementations
42710         are not.  Use argument addresses to ensure they never compare as
42711         equal.
42712
42713         * tests/test-argp-2.sh (usage-indent test): Fix output
42714         (func_compare): Restore diff options
42715         * tests/test-argp.c: Restore #include "progname.h"
42716
42717 2007-04-29  Bruno Haible  <bruno@clisp.org>
42718
42719         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
42720         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42721         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
42722         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42723         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
42724         (configure.ac): Define CHECK_SNPRINTF_POSIX.
42725         (TESTS, check_PROGRAMS): Add test-snprintf.
42726         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
42727         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
42728         (TESTS, check_PROGRAMS): Add test-vsnprintf.
42729         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
42730         assertions that fail on HP-UX, OSF/1, or IRIX.
42731         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
42732
42733 2007-04-29  Bruno Haible  <bruno@clisp.org>
42734
42735         * MODULES.html.sh (posix_functions): Remove 'contents'.
42736
42737 2007-04-29  Karl Berry  <karl@gnu.org>
42738
42739         * config/srclist.txt (gendocs_template_min): new entry.
42740
42741 2007-04-29  Bruno Haible  <bruno@clisp.org>
42742
42743         Work around fpurge bug on BSD systems.
42744         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
42745         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
42746         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
42747         fpurge to rpl_fpurge if the system already has this function.
42748         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
42749         the case where the system already has this function. Correct invariants
42750         on BSD systems.
42751         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
42752         BSD systems.
42753
42754 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42755
42756         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
42757         proposed by Sven Verdoolaege.
42758
42759         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
42760         options.
42761         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
42762         (usage and help tests): Update
42763
42764 2007-04-29  Bruno Haible  <bruno@clisp.org>
42765
42766         * tests/test-fflush.c (main): Use a file of size 17, not 10.
42767         Print more information in case of failure. Disable a test on BeOS.
42768
42769 2007-04-29  Bruno Haible  <bruno@clisp.org>
42770
42771         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
42772         This helps debugging on systems on which no gdb is available.
42773
42774 2007-04-29  Bruno Haible  <bruno@clisp.org>
42775
42776         * lib/freading.h: Improve comments.
42777         * lib/fwriting.h: Likewise.
42778         * tests/test-freading.c (main): Don't check freading immediately after
42779         repositioning. Needed for glibc.
42780
42781 2007-04-29  Bruno Haible  <bruno@clisp.org>
42782
42783         * lib/freading.c (freading): Trivial simplification.
42784
42785 2007-04-28  Bruno Haible  <bruno@clisp.org>
42786
42787         * tests/test-fwriting.c (main): Also test the interaction between
42788         fflush and fwriting.
42789         * modules/fwriting-tests (Depends-on): Add fflush.
42790
42791         * tests/test-freading.c (main): Also test the interaction between
42792         fflush and freading.
42793         * modules/freading-tests (Depends-on): Add fflush.
42794
42795 2007-04-28  Bruno Haible  <bruno@clisp.org>
42796
42797         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
42798         fseeko and ftello.
42799         Suggested by Eric Blake.
42800
42801 2007-04-28  Jim Meyering  <jim@meyering.net>
42802
42803         Avoid false-negative in gl_STDINT_H's C99 conformance test.
42804         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
42805         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
42806
42807 2007-04-27  Eric Blake  <ebb9@byu.net>
42808
42809         * doc/headers/assert.texi (assert.h): Document assert module use.
42810
42811 2007-04-27  Bruno Haible  <bruno@clisp.org>
42812
42813         * doc/headers/*.texi: New files.
42814         * doc/gnulib.texi (Header File Substitutes): New chapter.
42815         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
42816         dependencies.
42817         (standards.info ,standards.html, standards.dvi): Update dependencies.
42818         (mostlyclean, clean): New targets.
42819
42820 2007-04-27  Bruno Haible  <bruno@clisp.org>
42821
42822         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
42823         * modules/sysexits (Files, Makefile.am): Update.
42824
42825         * lib/sys_socket_.h: Renamed from lib/socket_.h.
42826         * modules/sys_socket (Files, Makefile.am): Update.
42827
42828         * lib/sys_stat_.h: Renamed from lib/stat_.h.
42829         * modules/sys_stat (Files, Makefile.am): Update.
42830
42831 2007-04-27  Eric Blake  <ebb9@byu.net>
42832
42833         * lib/freading.h: Improve comments.
42834         * lib/fwriting.h: Likewise.
42835         * lib/fflush.c: Likewise.
42836
42837         Fix closein for mingw.
42838         * modules/closein-tests: Add tests for closein.
42839         * tests/test-closein.c: New file.
42840         * tests/test-closein.sh: Likewise.
42841         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
42842         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
42843
42844 2007-04-27  Bruno Haible  <bruno@clisp.org>
42845
42846         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
42847         version is < 6.
42848         * lib/math_.h [__DECC]: Likewise.
42849         * lib/stdio_.h [__DECC]: Likewise.
42850         * lib/stdlib_.h [__DECC]: Likewise.
42851         * lib/string_.h [__DECC]: Likewise.
42852         * lib/time_.h [__DECC]: Likewise.
42853         * lib/wchar_.h [__DECC]: Likewise.
42854         * lib/wctype_.h [__DECC]: Likewise.
42855
42856 2007-04-27  Bruno Haible  <bruno@clisp.org>
42857
42858         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
42859
42860 2007-04-27  Bruno Haible  <bruno@clisp.org>
42861
42862         * lib/fflush.c: Add comments.
42863         * modules/fpurge-tests (Depends-on): Add fflush.
42864         * modules/freadable-tests (Depends-on): Likewise.
42865         * modules/fwritable-tests (Depends-on): Likewise.
42866
42867 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
42868
42869         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
42870         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
42871         Report by Bruno Haible <bruno@clisp.org>.
42872
42873 2007-04-26  Eric Blake  <ebb9@byu.net>
42874
42875         Fix fflush on mingw.
42876         * modules/fflush (Depends-on): Add freading.
42877         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
42878         but unread data.
42879
42880 2007-04-26  Eric Blake  <ebb9@byu.net>
42881         and Bruno Haible  <bruno@clisp.org>
42882
42883         Implement freading and fwriting.
42884         * lib/freading.c: New file.
42885         * lib/freading.h: Likewise.
42886         * m4/freading.m4: Likewise.
42887         * modules/freading: Likewise.
42888         * modules/freading-tests: Likewise.
42889         * tests/test-freading.c: Likewise.
42890         * lib/fwriting.c: New file.
42891         * lib/fwriting.h: Likewise.
42892         * m4/fwriting.m4: Likewise.
42893         * modules/fwriting: Likewise.
42894         * modules/fwriting-tests: Likewise.
42895         * tests/test-fwriting.c: Likewise.
42896         * MODULES.html.sh (File stream based Input/Output): Mention them.
42897
42898 2007-04-26  Bruno Haible  <bruno@clisp.org>
42899
42900         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
42901         'long' when we assume it.
42902         Suggested by Eric Blake.
42903
42904 2007-04-26  Bruno Haible  <bruno@clisp.org>
42905
42906         Ensure fseeko, ftello are declared on glibc systems.
42907         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
42908         * modules/fseeko (configure.ac-early): Likewise.
42909         * modules/ftello (configure.ac-early): Likewise.
42910         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
42911         AC_FUNC_FSEEKO for this.
42912         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
42913         (gl_CHECK_FSEEKO): Remove macro.
42914
42915 2007-04-26  Bruno Haible  <bruno@clisp.org>
42916
42917         * tests/test-fflush.c (main): Also check the ftell result after
42918         fflush and fseek/fseeko.
42919         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
42920         file descriptor position cache in the stream.
42921         * lib/fseeko.c (rpl_fseeko): Likewise.
42922
42923 2007-04-26  Bruno Haible  <bruno@clisp.org>
42924
42925         * modules/fflush-tests (Depends-on): Add fseeko.
42926
42927 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
42928             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42929
42930         * lib/argz_.h: ensure error_t definition is obtained in same
42931         mechanism system argz.h would have.
42932         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
42933         argz facilities are known bad.  Err on the side of caution if
42934         cross-compiling.
42935
42936 2007-04-25  Eric Blake  <ebb9@byu.net>
42937
42938         * lib/fpurge.c (includes): Use stdlib.h for free.
42939         * tests/test-fflush.c (main): Also test fflush-fseeko.
42940
42941 2007-04-25  Bruno Haible  <bruno@clisp.org>
42942
42943         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
42944         * lib/fseeko.c: New file.
42945         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
42946         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
42947         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
42948         gl_FUNC_FSEEKO.
42949         (gl_FUNC_FSEEKO): Invoke it.
42950         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
42951         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
42952         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
42953
42954 2007-04-25  Bruno Haible  <bruno@clisp.org>
42955
42956         * modules/fflush (Depends-on): Add ftello.
42957
42958 2007-04-25  Bruno Haible  <bruno@clisp.org>
42959
42960         * modules/ftello-tests: New file.
42961         * tests/test-ftello.c: New file.
42962
42963         * modules/ftello: New file.
42964         * m4/ftello.m4: New file.
42965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
42966         HAVE_FTELLO.
42967         * lib/stdio_.h (ftello): New declaration.
42968         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
42969         HAVE_FTELLO.
42970
42971 2007-04-25  Bruno Haible  <bruno@clisp.org>
42972
42973         * modules/fseeko-tests: New file.
42974         * tests/test-fseeko.c: New file.
42975
42976         * modules/fseeko: New file.
42977         * m4/fseeko.m4: New file.
42978         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
42979         HAVE_FSEEKO.
42980         * lib/stdio_.h (fseeko): New declaration.
42981         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
42982         HAVE_FSEEKO.
42983
42984 2007-04-25  Bruno Haible  <bruno@clisp.org>
42985
42986         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
42987
42988 2007-04-25  Bruno Haible  <bruno@clisp.org>
42989
42990         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
42991         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
42992         * tests/test-unistd.c: Likewise.
42993         * tests/test-fcntl.c: Likewise.
42994
42995 2007-04-23  Eric Blake  <ebb9@byu.net>
42996
42997         * lib/fflush.c: Fix missing include.
42998         Reported by Bruno Haible.
42999
43000 2007-04-23  Bruno Haible  <bruno@clisp.org>
43001
43002         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
43003         Reported by Eric Blake.
43004
43005 2007-04-23  Bruno Haible  <bruno@clisp.org>
43006
43007         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
43008
43009 2007-04-23  Bruno Haible  <bruno@clisp.org>
43010
43011         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
43012
43013 2007-04-23  Bruno Haible  <bruno@clisp.org>
43014
43015         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
43016         Needed on HP-UX 11.
43017
43018 2007-04-16  Eric Blake  <ebb9@byu.net>
43019
43020         Make fflush rely on fpurge.
43021         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
43022         open coding all variants.
43023         * modules/fflush (Depends-on): Add fpurge and unistd.
43024         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
43025         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
43026
43027         Fix --with-tests compilation on cygwin.
43028         * modules/argmatch-tests (Makefile.am): List gnulib library first
43029         in LDADD.
43030         * modules/argp-tests (Makefile.am): Likewise.
43031         * modules/array-list-tests (Makefile.am): Likewise.
43032         * modules/array-oset-tests (Makefile.am): Likewise.
43033         * modules/avltree-list-tests (Makefile.am): Likewise.
43034         * modules/avltree-oset-tests (Makefile.am): Likewise.
43035         * modules/avltreehash-list-tests (Makefile.am): Likewise.
43036         * modules/carray-list-tests (Makefile.am): Likewise.
43037         * modules/dirname-tests (Makefile.am): Likewise.
43038         * modules/frexp-tests (Makefile.am): Likewise.
43039         * modules/isnanl-tests (Makefile.am): Likewise.
43040         * modules/linked-list-tests (Makefile.am): Likewise.
43041         * modules/linkedhash-list-tests (Makefile.am): Likewise.
43042         * modules/lock-tests (Makefile.am): Likewise.
43043         * modules/rbtree-list-tests (Makefile.am): Likewise.
43044         * modules/rbtree-oset-tests (Makefile.am): Likewise.
43045         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
43046         * modules/tls-tests (Makefile.am): Likewise.
43047         * modules/tsearch-tests (Makefile.am): Likewise.
43048         * modules/xvasprintf-tests (Makefile.am): Likewise.
43049
43050         Fix fpurge for cygwin.
43051         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
43052         value.
43053         * modules/fpurge-tests (Depends-on): Clean up trash.
43054
43055 2007-04-16  Simon Josefsson  <simon@josefsson.org>
43056
43057         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
43058
43059         * m4/autobuild.m4: Re-indent.
43060
43061 2007-04-13  Bruno Haible  <bruno@clisp.org>
43062
43063         * modules/fpurge-tests: New file.
43064         * tests/test-fpurge.c: New file.
43065
43066         * modules/fpurge: New file.
43067         * lib/fpurge.h: New file.
43068         * lib/fpurge.c: New file.
43069         * m4/fpurge.m4: New file.
43070
43071 2007-04-13  Bruno Haible  <bruno@clisp.org>
43072
43073         * modules/fbufmode-tests: New file.
43074         * tests/test-fbufmode.c: New file.
43075
43076         * modules/fbufmode: New file.
43077         * lib/fbufmode.h: New file.
43078         * lib/fbufmode.c: New file.
43079         * m4/fbufmode.m4: New file.
43080
43081 2007-04-13  Bruno Haible  <bruno@clisp.org>
43082
43083         * modules/fwritable-tests: New file.
43084         * tests/test-fwritable.c: New file.
43085
43086         * modules/fwritable: New file.
43087         * lib/fwritable.h: New file.
43088         * lib/fwritable.c: New file.
43089         * m4/fwritable.m4: New file.
43090
43091 2007-04-13  Bruno Haible  <bruno@clisp.org>
43092
43093         * modules/freadable-tests: New file.
43094         * tests/test-freadable.c: New file.
43095
43096         * modules/freadable: New file.
43097         * lib/freadable.h: New file.
43098         * lib/freadable.c: New file.
43099         * m4/freadable.m4: New file.
43100
43101 2007-04-13  Bruno Haible  <bruno@clisp.org>
43102
43103         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
43104         MOSTLYCLEANFILES.
43105
43106 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
43107
43108         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
43109         gzip bootstrap.conf to avoid dragging in i18n machinery.
43110         (gnulib_tool_option): Use it.
43111
43112 2007-04-13  Bruno Haible  <bruno@clisp.org>
43113
43114         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
43115         %F directives.
43116         * tests/test-vasprintf-posix.c (test_function): Likewise.
43117         * tests/test-snprintf-posix.h (test_function): Likewise.
43118         * tests/test-sprintf-posix.h (test_function): Likewise.
43119         * tests/test-fprintf-posix.h (test_function): Likewise.
43120         * tests/test-printf-posix.h (test_function): Likewise.
43121         * tests/test-fprintf-posix.out: Likewise.
43122
43123 2007-04-13  Bruno Haible  <bruno@clisp.org>
43124
43125         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
43126         * modules/tls-tests (configure.ac): Likewise.
43127         Reported by Arto C. Nirkko <anirkko@insel.ch>.
43128
43129 2007-04-13  Bruno Haible  <bruno@clisp.org>
43130
43131         * lib/tls.c (glthread_tls_get): Fix return type.
43132         Patch by Arto C. Nirkko <anirkko@insel.ch>.
43133
43134 2007-04-12  Eric Blake  <ebb9@byu.net>
43135
43136         * modules/gettime (Depends-on): Remove gettime.
43137         Reported by Dmitry V. Levin.
43138
43139 2007-04-12  Bruno Haible  <bruno@clisp.org>
43140
43141         * modules/fflush (Include): Mention <stdio.h>.
43142         * modules/strtoimax (Include): Mention <inttypes.h>.
43143         * modules/strtoumax (Include): Likewise.
43144
43145 2007-04-12  Eric Blake  <ebb9@byu.net>
43146
43147         * .cvsignore: New file.
43148         * .gitignore: Likewise.
43149
43150 2007-04-12  Bruno Haible  <bruno@clisp.org>
43151
43152         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
43153         not before, since $(LDADD) often contains libgnu.a.
43154         * modules/striconv-tests (test_striconv_LDADD): Likewise.
43155         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
43156         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
43157         Needed on Cygwin.
43158
43159 2007-04-12  Eric Blake  <ebb9@byu.net>
43160
43161         Work around glibc's failure to flush stdin on fclose.
43162         * lib/closein.c (close_stdin): Flush stdin before closing.
43163
43164         Work around glibc's failure to reset seekable stdin on exit.
43165         * modules/closein: New module.
43166         * lib/closein.c: New file.
43167         * lib/closein.h: Likewise.
43168         * m4/closein.m4: Likewise.
43169         * MODULES.html.sh (File stream based Input/Output): Document it.
43170
43171 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43172
43173         * gnulib-tool: Rename generated 'autobuild' script to
43174         'do-autobuild' in --create-megatestdir output.
43175
43176         * doc/gnulib.texi (Build robot for gnulib): Fix.
43177
43178 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43179
43180         * modules/sysexits (Depends-on): Add absolute-header.
43181
43182 2007-04-12  Eric Blake  <ebb9@byu.net>
43183
43184         No need to preserve errno on success.
43185         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
43186         Reported by Bruno Haible.
43187
43188 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43189
43190         * MODULES.html.sh (Support for maintaining and releasing
43191         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
43192
43193 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43194
43195         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
43196
43197 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43198
43199         * modules/autobuild: New module.
43200
43201         * m4/autobuild.m4: New file.
43202
43203 2007-04-11  Bruno Haible  <bruno@clisp.org>
43204
43205         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
43206         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
43207         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
43208         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
43209         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43210         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43211         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43212         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43213         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43214         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43215         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
43216         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43217         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43218         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
43219         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43220         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43221         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
43222         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43223         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43224         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
43225         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43226         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43227         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
43228         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43229         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43230         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
43231         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43232         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43233         Reported by Eric Blake.
43234
43235 2007-04-11  Bruno Haible  <bruno@clisp.org>
43236
43237         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
43238
43239 2007-04-10  Bruno Haible  <bruno@clisp.org>
43240
43241         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
43242         for NaN and Infinity. Needed on FreeBSD 6.1.
43243         * tests/test-vasnprintf-posix.c (test_function): Undo last change
43244         regarding results for "%010a" of Infinity and NaN.
43245         * tests/test-vasprintf-posix.c (test_function): Likewise.
43246         * tests/test-snprintf-posix.h (test_function): Likewise.
43247         * tests/test-sprintf-posix.h (test_function): Likewise.
43248         * tests/test-fprintf-posix.h (test_function): Likewise.
43249         * tests/test-printf-posix.h (test_function): Likewise.
43250         * tests/test-fprintf-posix.out: Likewise.
43251
43252 2007-04-10  Bruno Haible  <bruno@clisp.org>
43253
43254         * modules/locale-tests: New file.
43255         * tests/test-locale.c: New file.
43256
43257         * modules/locale: New file.
43258         * lib/locale_.h: New file.
43259         * m4/locale_h.m4: New file.
43260
43261 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
43262             Bruno Haible  <bruno@clisp.org>
43263
43264         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
43265         be determined, test for availability of the copysignf, copysign,
43266         copysignl functions.
43267         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
43268         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
43269         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
43270
43271 2007-04-09  Eric Blake  <ebb9@byu.net>
43272
43273         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
43274         * modules/stdio (Makefile.am): Support fflush.
43275         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43276         * modules/fflush: New file.
43277         * lib/fflush.c: Likewise.
43278         * m4/fflush.m4: Likewise.
43279         * modules/fflush-tests: New test.
43280         * tests/test-fflush.c: Likewise.
43281         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
43282
43283 2007-04-06  Bruno Haible  <bruno@clisp.org>
43284
43285         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
43286         (VASNPRINTF): Use signbit for faster determination whether to print a
43287         minus sign.
43288         * modules/vasnprintf (Files): Remove lib/float+.h.
43289         * modules/fprintf-posix (Depends-on): Add signbit.
43290         * modules/snprintf-posix (Depends-on): Likewise.
43291         * modules/sprintf-posix (Depends-on): Likewise.
43292         * modules/vasnprintf-posix (Depends-on): Likewise.
43293         * modules/vasprintf-posix (Depends-on): Likewise.
43294         * modules/vfprintf-posix (Depends-on): Likewise.
43295         * modules/vsnprintf-posix (Depends-on): Likewise.
43296         * modules/vsprintf-posix (Depends-on): Likewise.
43297
43298 2007-04-06  Bruno Haible  <bruno@clisp.org>
43299
43300         * tests/test-frexp.c (main): Test also the sign bit of zero results.
43301         * tests/test-frexpl.c (main): Likewise.
43302         * tests/test-ldexpl.c (main): Likewise.
43303         * modules/frexp-tests (Depends-on): Add signbit.
43304         * modules/frexpl-tests (Depdends-on): Likewise.
43305         * modules/ldexpl-tests (Depdends-on): Likewise.
43306
43307 2007-04-06  Bruno Haible  <bruno@clisp.org>
43308
43309         * modules/signbit-tests: New file.
43310         * tests/test-signbit.c: New file.
43311
43312         * modules/signbit: New file.
43313         * lib/signbitf.c: New file.
43314         * lib/signbitd.c: New file.
43315         * lib/signbitl.c: New file.
43316         * m4/signbit.m4: New file.
43317         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
43318         (signbit): New macro.
43319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
43320         REPLACE_SIGNBIT.
43321         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
43322         REPLACE_FREXPL into math.h.
43323
43324 2007-04-06  Bruno Haible  <bruno@clisp.org>
43325
43326         * modules/isnanf-nolibm-tests: New file.
43327         * tests/test-isnanf.c: New file.
43328
43329         * modules/isnanf-nolibm: New file.
43330         * lib/isnanf.h: New file.
43331         * lib/isnanf.c: New file.
43332         * lib/isnan.c: Consider the USE_FLOAT macro.
43333         * m4/isnanf.m4: New file.
43334
43335 2007-04-06  Bruno Haible  <bruno@clisp.org>
43336
43337         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
43338         (Link): New section.
43339
43340         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
43341
43342 2007-04-06  Bruno Haible  <bruno@clisp.org>
43343
43344         Assume the 'long double' type.
43345         * m4/longdouble.m4: Remove file.
43346         * config/srclist.txt: Don't mention longdouble.m4.
43347         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
43348         * lib/float+.h: Likewise.
43349         * lib/frexp.c: Likewise.
43350         * lib/printf-args.h: Likewise.
43351         * lib/printf-args.c: Likewise.
43352         * lib/printf-frexp.c: Likewise.
43353         * lib/printf-parse.c: Likewise.
43354         * lib/vasnprintf.c: Likewise.
43355         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
43356         * m4/intl.m4: Likewise.
43357         * m4/isnanl.m4: Likewise.
43358         * m4/printf.m4: Likewise.
43359         * m4/printf-frexpl.m4: Likewise.
43360         * m4/vasnprintf.m4: Likewise.
43361         * modules/allocsa (Files): Remove m4/longdouble.m4.
43362         * modules/gettext (Files): Likewise.
43363         * modules/relocatable-prog-wrapper (Files): Likewise.
43364         * modules/vasnprintf (Files): Likewise.
43365         * modules/isnanl (Files): Likewise.
43366         (Include): Simplify.
43367         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
43368         (Include): Simplify.
43369         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
43370         (Include): Simplify.
43371         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
43372         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43373         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
43374         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43375         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
43376         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43377         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
43378         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43379         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
43380         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43381         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
43382         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43383         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
43384         * tests/test-isnanl.c: Likewise.
43385         * tests/test-snprintf-posix.h: Likewise.
43386         * tests/test-sprintf-posix.h: Likewise.
43387         * tests/test-vasnprintf-posix.c: Likewise.
43388         * tests/test-vasnprintf-posix2.c: Likewise.
43389         * tests/test-vasprintf-posix.c: Likewise.
43390
43391 2007-04-06  Bruno Haible  <bruno@clisp.org>
43392
43393         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
43394         * lib/math_.h [__DECC]: Include the overridden include file through
43395         #include_next, outside the double-inclusion guard.
43396         * lib/stdio_.h [__DECC]: Likewise.
43397         * lib/stdlib_.h [__DECC]: Likewise.
43398         * lib/string_.h [__DECC]: Likewise.
43399         * lib/time_.h [__DECC]: Likewise.
43400         * lib/wchar_.h [__DECC]: Likewise.
43401         * lib/wctype_.h [__DECC]: Likewise.
43402         * lib/inttypes_.h [__DECC]: Likewise.
43403         Reported by Albert Chin <china@thewrittenword.com> in
43404         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
43405
43406 2007-04-04  Eric Blake  <ebb9@byu.net>
43407
43408         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
43409         1.5.x.
43410
43411 2007-04-04  Bruno Haible  <bruno@clisp.org>
43412
43413         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
43414         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
43415
43416 2007-04-04  Bruno Haible  <bruno@clisp.org>
43417
43418         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
43419         results for "%010a" of Infinity and NaN.
43420         * tests/test-vasprintf-posix.c (test_function): Likewise.
43421         * tests/test-snprintf-posix.h (test_function): Likewise.
43422         * tests/test-sprintf-posix.h (test_function): Likewise.
43423         * tests/test-fprintf-posix.h (test_function): Remove these tests.
43424         * tests/test-printf-posix.h (test_function): Likewise.
43425         * tests/test-fprintf-posix.out: Update.
43426         Needed for FreeBSD 6.1.
43427
43428 2007-04-04  Bruno Haible  <bruno@clisp.org>
43429
43430         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
43431         directly used by the gnulib modules nor by gnulib-tool.
43432
43433 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
43434
43435         * DEPENDENCIES: Give overall description of version dependency
43436         desirability.  Use more-typical names for apps.
43437         Add shell, coreutils, diffutils, grep, tar, gzip.
43438
43439 2007-04-04  Simon Josefsson  <simon@josefsson.org>
43440
43441         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
43442
43443 2007-04-04  Karl Berry  <karl@gnu.org>
43444
43445         * MODULES.html.sh (func_module): missing '.
43446
43447 2007-04-03  Bruno Haible  <bruno@clisp.org>
43448
43449         * modules/argmatch-tests (Makefile.am): New variable
43450         test_argmatch_LDADD.
43451         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
43452         * modules/array-list-tests (Makefile.am): New variable
43453         test_array_list_LDADD.
43454         * modules/array-oset-tests (Makefile.am): New variable
43455         test_array_oset_LDADD.
43456         * modules/avltree-list-tests (Makefile.am): New variable
43457         test_avltree_list_LDADD.
43458         * modules/avltree-oset-tests (Makefile.am): New variable
43459         test_avltree_oset_LDADD.
43460         * modules/avltreehash-list-tests (Makefile.am): New variable
43461         test_avltreehash_list_LDADD.
43462         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
43463         test_canonicalize_lgpl_LDADD.
43464         * modules/carray-list-tests (Makefile.am): New variable
43465         test_carray_list_LDADD.
43466         * modules/dirname-tests (Makefile.am): New variable
43467         test_dirname_LDADD.
43468         * modules/linked-list-tests (Makefile.am): New variable
43469         test_linked_list_LDADD.
43470         * modules/linkedhash-list-tests (Makefile.am): New variable
43471         test_linkedhash_list_LDADD.
43472         * modules/rbtree-list-tests (Makefile.am): New variable
43473         test_rbtree_list_LDADD.
43474         * modules/rbtree-oset-tests (Makefile.am): New variable
43475         test_rbtree_oset_LDADD.
43476         * modules/rbtreehash-list-tests (Makefile.am): New variable
43477         test_rbtreehash_list_LDADD.
43478         * modules/xvasprintf-tests (Makefile.am): New variable
43479         test_xvasprintf_LDADD.
43480         Reported by Eric Blake.
43481
43482 2007-04-03  Eric Blake  <ebb9@byu.net>
43483
43484         * DEPENDENCIES: Weaken m4 requirements.
43485
43486 2007-04-03  Bruno Haible  <bruno@clisp.org>
43487
43488         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
43489         * modules/isnanl-tests (configure.ac): Likewise.
43490
43491 2007-04-03  Ben Pfaff  <blp@gnu.org>
43492
43493         * modules/iconv_open: Add $(srcdir)/ to source directory
43494         references in Makefile fragments that call gperf, to fix VPATH
43495         builds.
43496
43497 2007-04-03  Bruno Haible  <bruno@clisp.org>
43498
43499         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
43500         * lib/ldexpl.c: Undo last change.
43501
43502 2007-04-03  Bruno Haible  <bruno@clisp.org>
43503
43504         * modules/printf-frexpl (Depends-on): Undo last change.
43505         (Files): Add m4/ldexpl.m4.
43506
43507 2007-04-03  Bruno Haible  <bruno@clisp.org>
43508
43509         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
43510         * modules/isnanl (Link): New section.
43511
43512         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
43513         * modules/frexp (Link): New section.
43514
43515         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
43516         * modules/frexpl (Link): New section.
43517
43518         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
43519         * modules/ldexpl (Link): New section.
43520
43521 2007-04-03  Bruno Haible  <bruno@clisp.org>
43522
43523         * modules/TEMPLATE-EXTENDED: New file.
43524         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
43525
43526 2007-04-03  Bruno Haible  <bruno@clisp.org>
43527
43528         * DEPENDENCIES: New file.
43529         Suggested by Simon Josefsson.
43530
43531 2007-04-03  Bruno Haible  <bruno@clisp.org>
43532
43533         * doc/gnulib.texi: Escape @.
43534
43535 2007-04-03  James Youngman  <jay@gnu.org>
43536         and Paul Eggert  <eggert@cs.ucla.edu>
43537
43538         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
43539         birthtime on all systems that have birthtime, not just those which
43540         use st_birthtimensec rather than st_birthtim.  Putting zero in
43541         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
43542         that the birth time is not available for files on an NFS mount.
43543
43544 2007-04-03  Simon Josefsson  <simon@josefsson.org>
43545
43546         * modules/memxor: Move back from crypto/, suggested by Bruno.
43547         * modules/crypto/hmac-sha1: Fix memxor dependency.
43548
43549         * modules/crypto/gc: Moved from ../.
43550
43551 2007-04-02  Eric Blake  <ebb9@byu.net>
43552
43553         * lib/ldexpl.c (includes): Avoid libm.
43554
43555         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
43556
43557 2007-04-02  Bruno Haible  <bruno@clisp.org>
43558
43559         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
43560         on IRIX.
43561
43562 2007-04-02  Bruno Haible  <bruno@clisp.org>
43563
43564         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
43565         x86 or x86_64 platforms running MacOS X.
43566         Reported by Ryan Schmidt <@ryandesign.com>.
43567
43568 2007-04-02  Bruno Haible  <bruno@clisp.org>
43569
43570         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
43571         i386.
43572
43573 2007-04-01  Simon Josefsson  <simon@josefsson.org>
43574
43575         * modules/crypto/arcfour: Moved from ../.
43576         * modules/crypto/arcfour-tests: Moved from ../.
43577         * modules/crypto/arctwo: Moved from ../.
43578         * modules/crypto/arctwo-tests: Moved from ../.
43579         * modules/crypto/des: Moved from ../.
43580         * modules/crypto/des-tests: Moved from ../.
43581         * modules/crypto/gc-arcfour: Moved from ../.
43582         * modules/crypto/gc-arcfour-tests: Moved from ../.
43583         * modules/crypto/gc-arctwo: Moved from ../.
43584         * modules/crypto/gc-arctwo-tests: Moved from ../.
43585         * modules/crypto/gc-des: Moved from ../.
43586         * modules/crypto/gc-des-tests: Moved from ../.
43587         * modules/crypto/gc-hmac-md5: Moved from ../.
43588         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
43589         * modules/crypto/gc-hmac-sha1: Moved from ../.
43590         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
43591         * modules/crypto/gc-md2: Moved from ../.
43592         * modules/crypto/gc-md2-tests: Moved from ../.
43593         * modules/crypto/gc-md4: Moved from ../.
43594         * modules/crypto/gc-md4-tests: Moved from ../.
43595         * modules/crypto/gc-md5: Moved from ../.
43596         * modules/crypto/gc-md5-tests: Moved from ../.
43597         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
43598         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
43599         * modules/crypto/gc-random: Moved from ../.
43600         * modules/crypto/gc-rijndael: Moved from ../.
43601         * modules/crypto/gc-rijndael-tests: Moved from ../.
43602         * modules/crypto/gc-sha1: Moved from ../.
43603         * modules/crypto/gc-sha1-tests: Moved from ../.
43604         * modules/crypto/gc-tests: Moved from ../.
43605         * modules/crypto/hmac-md5: Moved from ../.
43606         * modules/crypto/hmac-md5-tests: Moved from ../.
43607         * modules/crypto/hmac-sha1: Moved from ../.
43608         * modules/crypto/hmac-sha1-tests: Moved from ../.
43609         * modules/crypto/md2: Moved from ../.
43610         * modules/crypto/md2-tests: Moved from ../.
43611         * modules/crypto/md4: Moved from ../.
43612         * modules/crypto/md4-tests: Moved from ../.
43613         * modules/crypto/md5: Moved from ../.
43614         * modules/crypto/md5-tests: Moved from ../.
43615         * modules/crypto/memxor: Moved from ../.
43616         * modules/crypto/rijndael: Moved from ../.
43617         * modules/crypto/rijndael-tests: Moved from ../.
43618         * modules/crypto/sha1: Moved from ../.
43619
43620 2007-03-30  James Youngman  <jay@gnu.org>
43621
43622         * tests/test-stat-time.c (prepare_test): use chmod() rather than
43623         rename() to change the ctime of a file (because ctime is unaffected
43624         by rename on jfs2 on AIX 5.1).
43625         (main): Start by doing cleanup, in case a previous run failed leaving
43626         test files behind.
43627
43628 2007-03-31  Bruno Haible  <bruno@clisp.org>
43629
43630         Support old proprietary implementations of iconv.
43631         * modules/iconv_open: New file.
43632         * lib/iconv_.h: New file.
43633         * m4/iconv_h.m4: New file.
43634         * lib/iconv_open.c: New file.
43635         * lib/iconv_open-aix.gperf: New file.
43636         * lib/iconv_open-hpux.gperf: New file.
43637         * lib/iconv_open-irix.gperf: New file.
43638         * lib/iconv_open-osf.gperf: New file.
43639         * m4/iconv_open.m4: New file.
43640         * modules/linebreak (Depends-on): Add iconv_open.
43641         * modules/striconv (Depends-on): Likewise.
43642         * modules/striconveh (Depends-on): Likewise.
43643         * modules/unicodeio (Depends-on): Likewise.
43644         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
43645         (iconv_t)(-1).
43646         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
43647         conversion if cd is (iconv_t)(-1).
43648         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
43649         is not possible.
43650
43651 2007-03-31  Bruno Haible  <bruno@clisp.org>
43652
43653         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
43654         work on Solaris either. Protect also second use of "autodetect_jp".
43655
43656 2007-03-31  Bruno Haible  <bruno@clisp.org>
43657
43658         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
43659         the function is not present.
43660
43661 2007-03-31  Bruno Haible  <bruno@clisp.org>
43662
43663         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
43664         the function is not present.
43665
43666 2007-03-31  Bruno Haible  <bruno@clisp.org>
43667
43668         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
43669         a bug in HP-UX iconv_open().
43670
43671 2007-03-31  Bruno Haible  <bruno@clisp.org>
43672
43673         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
43674         (Mathematics <math.h>): New section, add fpieee.
43675         (Input/output <stdio.h>): Add fseterr.
43676         (Mathematics <math.h>): New section, add printf-frexp.
43677         (Container data structures): Add sublist.
43678         (Core language properties): Add fpucw, inline.
43679         (Functions for greatest-width integer types <inttypes.h>): Add
43680         imaxabs, imaxdiv, inttypes.
43681         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
43682         isnanl-nolibm, ldexp.
43683         (Mathematics <math.h>): New section, add printf-frexpl.
43684         (Support for systems lacking POSIX:2001): Add fprintf-posix,
43685         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
43686         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
43687         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
43688         (Unicode string functions): Add unistr/u*-mbtoucr.
43689         (Java): Add javacomp-script, javaexec-script.
43690         (C#): Add csharpcomp-script, csharpexec-script.
43691         (Support for building libraries and executables): Add havelib,
43692         relocatable-*.
43693         (Support for maintaining and releasing projects): Renamed from
43694         'Support for maintaining and release projects'. Add announce-gen.
43695
43696 2007-03-31  Bruno Haible  <bruno@clisp.org>
43697
43698         * README: Talk primarily about git.
43699         (git and CVS): Renamed from CVS.
43700         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
43701         gnulib is available through git.
43702         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
43703
43704 2007-03-30  Bruno Haible  <bruno@clisp.org>
43705
43706         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
43707         * lib/poll_.h: Likewise.
43708         * lib/stat_.h: Likewise.
43709         * lib/sys_time_.h: Likewise.
43710         * lib/sysexit_.h: Likewise.
43711         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
43712         * lib/stdbool_.h: Likewise.
43713         * lib/byteswap_.h: Add double-inclusion guard.
43714
43715 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
43716
43717         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
43718
43719 2007-03-30  Karl Berry  <karl@gnu.org>
43720
43721         * config/srclist-update: double space after USA in the license
43722         substitution, since that's how it's usually (?) written.
43723
43724 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43725
43726         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
43727         reported by Bruno Haible.
43728
43729 2007-03-29  Bruno Haible  <bruno@clisp.org>
43730
43731         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
43732         a bug in AIX iconv().
43733
43734 2007-03-29  Bruno Haible  <bruno@clisp.org>
43735
43736         * modules/ldexpl-tests: New file.
43737         * tests/test-ldexpl.c: New file.
43738
43739 2007-03-29  Bruno Haible  <bruno@clisp.org>
43740
43741         * lib/ldexpl.c: Include fpucw.h.
43742         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
43743         multiplication.
43744         * modules/ldexpl (Depends-on): Add fpucw.
43745
43746 2007-03-29  Bruno Haible  <bruno@clisp.org>
43747
43748         * modules/ldexpl: New file.
43749         * m4/ldexpl.m4: New file.
43750         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
43751         set.
43752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
43753         REPLACE_LDEXPL.
43754         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
43755         REPLACE_LDEXPL.
43756         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
43757         gl_FUNC_LDEXPL_WORKS.
43758         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
43759         * modules/mathl (Files): Remove lib/ldexpl.c.
43760         (Depends-on): Add ldexpl.
43761
43762 2007-03-29  Bruno Haible  <bruno@clisp.org>
43763
43764         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
43765
43766 2007-03-29  Bruno Haible  <bruno@clisp.org>
43767
43768         * tests/test-striconveh.c (main): Don't assume that a direct conversion
43769         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
43770         and possibly also HP-UX.
43771         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
43772         work on AIX, IRIX, HP-UX, OSF/1.
43773         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43774         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43775         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43776         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43777         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
43778         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43779
43780 2007-03-29  Bruno Haible  <bruno@clisp.org>
43781
43782         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
43783
43784 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
43785
43786         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
43787         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
43788
43789 2007-03-29  Eric Blake  <ebb9@byu.net>
43790
43791         * lib/acl-internal.h: Remove redundant include.
43792         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
43793         Cygwin when a file is locked.
43794
43795 2007-03-29  Bruno Haible  <bruno@clisp.org>
43796
43797         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
43798         file.
43799         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
43800
43801 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
43802
43803         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
43804         try to remove a parent directory if the child couldn't be removed
43805         (except for the first rmdir, which could fail because the child
43806         doesn't exist).  Problem reported by Jeff Blaine in
43807         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
43808
43809 2007-03-28  Bruno Haible  <bruno@clisp.org>
43810
43811         * lib/striconveh.c (utf8conv_carefully): New function.
43812         (mem_cd_iconveh_internal): Invoke it.
43813
43814 2007-03-28  Bruno Haible  <bruno@clisp.org>
43815
43816         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
43817         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
43818         input.
43819         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
43820         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
43821         unistr/u8-uctomb.
43822
43823 2007-03-28  Bruno Haible  <bruno@clisp.org>
43824
43825         * modules/unistr/u8-mbtoucr: New file.
43826         * lib/unistr/u8-mbtoucr.c: New file.
43827         * modules/unistr/u16-mbtoucr: New file.
43828         * lib/unistr/u16-mbtoucr.c: New file.
43829         * modules/unistr/u16-mbtoucr: New file.
43830         * lib/unistr/u16-mbtoucr.c: New file.
43831         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
43832
43833 2007-03-27  Simon Josefsson  <simon@josefsson.org>
43834             Bruno Haible  <bruno@clisp.org>
43835
43836         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
43837         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
43838         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
43839
43840         * m4/stdio_h.m4: Add stubs for vasprintf too.
43841
43842         * modules/stdio: Support vasprintf in sed command.
43843
43844         * modules/vasprintf: Depend on stdio for prototypes.  Remove
43845         vasprintf.h.  Add stdio module indicator.
43846
43847         * lib/stdio_.h: Declare asprintf and vasprintf, based on
43848         vasprintf.h.
43849
43850         * lib/vasprintf.h: File removed.
43851
43852         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
43853         * lib/vasprintf.c: Ditto.
43854         * lib/xvasprintf.c: Ditto.
43855         * tests/test-vasprintf-posix.c: Ditto.
43856         * tests/test-vasprintf.c: Ditto.
43857
43858 2007-03-27  Bruno Haible  <bruno@clisp.org>
43859
43860         Make vasnprintf multithread-safe.
43861         * lib/vasnprintf.c (decimal_point_char): New function.
43862         (VASNPRINTF): Use it.
43863         Suggested by Simon Josefsson.
43864
43865 2007-03-27  Eric Blake  <ebb9@byu.net>
43866
43867         Support sub-second birthtime on cygwin.
43868         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
43869         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
43870         (get_stat_birthtime): Also work with st_birthtim.
43871
43872 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
43873
43874         * lib/stat-time.h (USE_BIRTHTIME): Remove.
43875         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
43876         (get_stat_birthtime_ns): Do not try to use "spare" fields.
43877         (get_stat_birthtime_ns): Simplify compile-time tests.
43878         (get_stat_birthtime): Change the API to look like
43879         get_stat_mtime etc., except return a negative tv_nsec on error.
43880         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
43881         Don't check for "spare" fields.
43882         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
43883         or for struct stat.st_birthtime, as these tests aren't used.
43884         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
43885
43886 2007-03-27  Bruno Haible  <bruno@clisp.org>
43887
43888         * lib/stat-time.h: Include <sys/stat.h>.
43889
43890 2007-03-27  James Youngman  <jay@gnu.org>
43891
43892         * lib/stat-time.h (get_stat_birthtime): New function for
43893           retrieving st_birthtime as provided by UFS2 (hence *BSD).
43894         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
43895           and its variants.
43896         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
43897         * modules/stat-time-test: New file.
43898         * tests/test-stat-time.c: New test, devised by Bruno Haible.
43899
43900 2007-03-26  Bruno Haible  <bruno@clisp.org>
43901
43902         Better support of signalling NaNs.
43903         * lib/atanl.c: Include isnanl.h.
43904         (atanl): Perform test for NaN at the beginning of the function and
43905         through a call to isnanl.
43906         * lib/cosl.c: Include isnanl.h.
43907         (cosl): Perform test for NaN at the beginning of the function and
43908         through a call to isnanl.
43909         * lib/ldexpl.c: Include isnanl.h.
43910         (ldexpl): Perform test for NaN through a call to isnanl.
43911         * lib/logl.c: Include isnanl.h.
43912         (logl): Perform test for NaN at the beginning of the function and
43913         through a call to isnanl.
43914         * lib/sinl.c: Include isnanl.h.
43915         (sinl): Perform test for NaN at the beginning of the function and
43916         through a call to isnanl.
43917         * lib/sqrtl.c: Include isnanl.h.
43918         (sqrtl): Perform test for NaN at the beginning of the function and
43919         through a call to isnanl.
43920         * lib/tanl.c: Include isnanl.h.
43921         (tanl): Perform test for NaN at the beginning of the function and
43922         through a call to isnanl.
43923         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
43924         * modules/mathl (Depends-on): Add isnanl.
43925
43926 2007-03-26  Eric Blake  <ebb9@byu.net>
43927
43928         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
43929         regression in logic sense of previous patch.
43930
43931 2007-03-26  Bruno Haible  <bruno@clisp.org>
43932
43933         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
43934         unportable shell command "if ! ...".
43935         Reported by Ralf Wildenhues.
43936
43937 2007-03-25  Bruno Haible  <bruno@clisp.org>
43938
43939         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
43940         <sysexits.h> file, and only add EX_CONFIG.
43941         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
43942         absolute file name and whether it is sufficient. Substitute also
43943         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
43944         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
43945         ABSOLUTE_SYSEXITS_H into sysexits.h.
43946
43947 2007-03-25  Bruno Haible  <bruno@clisp.org>
43948
43949         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
43950         hints is NULL.
43951
43952 2007-03-25  Bruno Haible  <bruno@clisp.org>
43953
43954         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
43955         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
43956
43957 2007-03-25  Bruno Haible  <bruno@clisp.org>
43958
43959         * lib/vasnprintf.c: Include langinfo.h.
43960         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
43961         multithread-safe.
43962         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
43963         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
43964         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43965         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
43966         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
43967         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
43968         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
43969         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
43970         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
43971         Reported by Simon Josefsson.
43972
43973 2007-03-25  Bruno Haible  <bruno@clisp.org>
43974
43975         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
43976         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
43977         * modules/vasnprintf (Depends-on): Add stdint.
43978
43979 2007-03-25  Bruno Haible  <bruno@clisp.org>
43980
43981         * modules/fpieee: New file.
43982         * m4/fpieee.m4: New file.
43983         * modules/isnan-nolibm (Depends-on): Add fpieee.
43984         * modules/isnanl-nolibm (Depends-on): Add fpieee.
43985         * modules/isnanl (Depends-on): Add fpieee.
43986
43987 2007-03-25  Bruno Haible  <bruno@clisp.org>
43988
43989         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
43990
43991 2007-03-25  Bruno Haible  <bruno@clisp.org>
43992
43993         Avoid test failures on IRIX 6.5.
43994         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
43995         (main): Use it.
43996         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
43997         macros.
43998         (main): Use them.
43999
44000 2007-03-25  Bruno Haible  <bruno@clisp.org>
44001
44002         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
44003         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
44004         exists but doesn't work.
44005         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
44006         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
44007         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
44008         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
44009
44010 2007-03-25  Bruno Haible  <bruno@clisp.org>
44011
44012         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
44013         returns inf. Needed on IRIX 6.5.
44014
44015 2007-03-25  Bruno Haible  <bruno@clisp.org>
44016
44017         * tests/test-frexpl.c: Include isnanl-nolibm.h.
44018         (main): Use isnanl instead of x != x idiom.
44019         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
44020
44021         * tests/test-frexp.c: Include isnan.h.
44022         (main): Use isnan instead of x != x idiom.
44023         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
44024
44025 2007-03-25  Bruno Haible  <bruno@clisp.org>
44026
44027         * tests/test-frexp.c (NaN): New function/macro.
44028         (main): Use it instead of 0.0 / 0.0.
44029         * tests/test-isnan.c (NaN): New function/macro.
44030         (main): Use it instead of 0.0 / 0.0.
44031         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
44032         (test_function): Use it instead of 0.0 / 0.0.
44033         * tests/test-vasprintf-posix.c (NaN): New function/macro.
44034         (test_function): Use it instead of 0.0 / 0.0.
44035         * tests/test-snprintf-posix.h (NaN): New function/macro.
44036         (test_function): Use it instead of 0.0 / 0.0.
44037         * tests/test-sprintf-posix.h (NaN): New function/macro.
44038         (test_function): Use it instead of 0.0 / 0.0.
44039         * tests/test-fprintf-posix.h (NaN): New function/macro.
44040         (test_function): Use it instead of 0.0 / 0.0.
44041         * tests/test-printf-posix.h (NaN): New function/macro.
44042         (test_function): Use it instead of 0.0 / 0.0.
44043
44044         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
44045
44046 2007-03-25  Bruno Haible  <bruno@clisp.org>
44047
44048         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
44049
44050 2007-03-25  Bruno Haible  <bruno@clisp.org>
44051
44052         * lib/regexec.c (merge_state_with_log): Make static.
44053
44054 2007-03-25  Bruno Haible  <bruno@clisp.org>
44055
44056         * lib/trigl.c (kernel_rem_pio2): Make static.
44057
44058 2007-03-25  Bruno Haible  <bruno@clisp.org>
44059
44060         * lib/sincosl.c (sincosl_table): Make static.
44061
44062 2007-03-25  Bruno Haible  <bruno@clisp.org>
44063
44064         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
44065         if the compiler does not support C99.
44066
44067 2007-03-25  Bruno Haible  <bruno@clisp.org>
44068
44069         * modules/time (Makefile.am): Ensure all rule action lines start with a
44070         tab.
44071
44072 2007-03-24  Bruno Haible  <bruno@clisp.org>
44073
44074         * modules/tsearch-tests: New file.
44075         * tests/test-tsearch.sh: New file.
44076         * tests/test-tsearch.c: New file, mostly copied from glibc.
44077
44078         * modules/search-tests: New file.
44079         * tests/test-search.c: New file.
44080
44081         * modules/search: New file.
44082         * lib/search_.h: New file, incorporating lib/tsearch.h.
44083         * m4/search_h.m4: New file.
44084         * lib/tsearch.h: Remove file.
44085         * lib/tsearch.c: Include search.h instead of tsearch.h.
44086         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
44087         HAVE_TSEARCH.
44088         * modules/tsearch (Files): Remove lib/tsearch.h.
44089         (Depends-on): Add search.
44090         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
44091         (Include): Change tsearch.h into search.h.
44092
44093 2007-03-24  Bruno Haible  <bruno@clisp.org>
44094
44095         * modules/fpucw: New file.
44096         * lib/fpucw.h: New file.
44097         * lib/frexp.c: Include fpucw.h.
44098         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
44099         (FUNC): Use them.
44100         * lib/printf-frexp.c: Include fpucw.h.
44101         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
44102         (FUNC): Use them.
44103         * lib/vasnprintf.c: Include fpucw.h.
44104         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
44105         'long double' calculations.
44106         * tests/test-frexpl.c: Include fpucw.h.
44107         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
44108         * tests/test-printf-frexpl.c: Include fpucw.h.
44109         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
44110         * modules/frexpl (Depends-on): Add fpucw.
44111         * modules/printf-frexpl (Depends-on): Likewise.
44112         * modules/fprintf-posix (Depends-on): Likewise.
44113         * modules/snprintf-posix (Depends-on): Likewise.
44114         * modules/sprintf-posix (Depends-on): Likewise.
44115         * modules/vasnprintf-posix (Depends-on): Likewise.
44116         * modules/vasprintf-posix (Depends-on): Likewise.
44117         * modules/vfprintf-posix (Depends-on): Likewise.
44118         * modules/vsnprintf-posix (Depends-on): Likewise.
44119         * modules/vsprintf-posix (Depends-on): Likewise.
44120         * modules/frexpl-tests (Depends-on): Likewise.
44121         * modules/printf-frexpl-tests (Depends-on): Likewise.
44122
44123 2007-03-24  Bruno Haible  <bruno@clisp.org>
44124
44125         * lib/float+.h: New file.
44126         * lib/isnan.c: Include float+.h.
44127         (SIZE): New macro.
44128         (FUNC): Compare only SIZE bytes of the value.
44129         * lib/vasnprintf.c: Include float+.h.
44130         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
44131         SIZEOF_LDBL or SIZEOF_DBL bytes.
44132         * modules/isnan-nolibm (Files): Add lib/float+.h.
44133         * modules/isnanl-nolibm (Files): Add lib/float+.h.
44134         * modules/isnanl (Files): Add lib/float+.h.
44135         * modules/vasnprintf (Files): Add lib/float+.h.
44136
44137 2007-03-24  Bruno Haible  <bruno@clisp.org>
44138
44139         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
44140         include isnanl-nolibm.h.
44141
44142 2007-03-24  Bruno Haible  <bruno@clisp.org>
44143
44144         * tests/test-read-file.c (main): Don't produce spurious output for
44145         expected situations. Make the test fail if it encountered unexpected
44146         results.
44147
44148 2007-03-24  Bruno Haible  <bruno@clisp.org>
44149
44150         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
44151         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
44152
44153 2007-03-24  Bruno Haible  <bruno@clisp.org>
44154
44155         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
44156
44157 2007-03-24  Bruno Haible  <bruno@clisp.org>
44158
44159         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
44160         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
44161
44162         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
44163         * modules/utf8-ucs4: Turn into a symbolic link to module
44164         unistr/u8-mbtouc.
44165
44166         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
44167         utf8-ucs4-unsafe.
44168         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
44169         unistr/u8-mbtouc-unsafe.
44170
44171         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
44172         * modules/utf16-ucs4: Turn into a symbolic link to module
44173         unistr/u16-mbtouc.
44174
44175         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
44176         utf16-ucs4-unsafe.
44177         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
44178         unistr/u16-mbtouc-unsafe.
44179
44180         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
44181         * modules/ucs4-utf8: Turn into a symbolic link to module
44182         unistr/u8-ubtomb.
44183
44184         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
44185         * modules/ucs4-utf16: Turn into a symbolic link to module
44186         unistr/u16-ubtomb.
44187
44188 2007-03-24  Bruno Haible  <bruno@clisp.org>
44189
44190         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
44191         Enable the function only if HAVE_INLINE.
44192         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
44193         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
44194         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
44195         Enable the function only if HAVE_INLINE.
44196         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
44197         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
44198         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
44199         Enable the function only if HAVE_INLINE.
44200         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
44201         Enable the function only if HAVE_INLINE.
44202         * modules/utf8-ucs4: Update.
44203         * modules/utf8-ucs4-unsafe: Update.
44204         * modules/utf16-ucs4: Update.
44205         * modules/utf16-ucs4-unsafe: Update.
44206         * modules/ucs4-utf8: Update.
44207         * modules/ucs4-utf16: Update.
44208
44209 2007-03-24  Bruno Haible  <bruno@clisp.org>
44210
44211         * lib/utf8-ucs4.h: Remove file.
44212         * lib/utf8-ucs4-unsafe.h: Remove file.
44213         * lib/utf16-ucs4.h: Remove file.
44214         * lib/utf16-ucs4-unsafe.h: Remove file.
44215         * lib/ucs4-utf8.h: Remove file.
44216         * lib/ucs4-utf16.h: Remove file.
44217         * lib/unistr.h: Include their previous contents.
44218         * m4/utf-ucs4.m4: Remove file.
44219         * m4/ucs4-utf.m4: Remove file.
44220         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
44221         (Depends-on): Add unistr/base.
44222         (configure.ac): Remove gl_UTF_UCS4.
44223         (Makefile.am): Update.
44224         (Include): Change to unistr.h.
44225         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
44226         (Depends-on): Add unistr/base.
44227         (configure.ac): Remove gl_UTF_UCS4.
44228         (Makefile.am): Update.
44229         (Include): Change to unistr.h.
44230         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
44231         (Depends-on): Add unistr/base.
44232         (configure.ac): Remove gl_UTF_UCS4.
44233         (Makefile.am): Update.
44234         (Include): Change to unistr.h.
44235         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
44236         (Depends-on): Add unistr/base.
44237         (configure.ac): Remove gl_UTF_UCS4.
44238         (Makefile.am): Update.
44239         (Include): Change to unistr.h.
44240         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
44241         (Depends-on): Add unistr/base.
44242         (configure.ac): Remove gl_UCS4_UTF.
44243         (Makefile.am): Update.
44244         (Include): Change to unistr.h.
44245         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
44246         (Depends-on): Add unistr/base.
44247         (configure.ac): Remove gl_UCS4_UTF.
44248         (Makefile.am): Update.
44249         (Include): Change to unistr.h.
44250         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
44251         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
44252         utf8-ucs4-unsafe.h.
44253         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
44254         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
44255         utf16-ucs4-unsafe.h.
44256         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
44257         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
44258         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
44259         * lib/unistr/u8-strchr.c: Likewise.
44260         * lib/unistr/u8-strrchr.c: Likewise.
44261         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
44262         * lib/unistr/u16-strchr.c: Likewise.
44263         * lib/unistr/u16-strrchr.c: Likewise.
44264         * lib/striconveh.c: Update.
44265         * lib/linebreak.c: Update.
44266
44267 2007-03-24  Bruno Haible  <bruno@clisp.org>
44268
44269         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
44270         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
44271
44272 2007-03-22  Bruno Haible  <bruno@clisp.org>
44273
44274         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
44275
44276 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
44277
44278         * MODULES.html.sh (File system functions): New module write-any-file.
44279         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
44280         * m4/write-any-file.m4: New files.
44281
44282 2007-03-23  Eric Blake  <ebb9@byu.net>
44283
44284         * gnulib-tool: Rearrange space-tab sequences, since some editors
44285         like to eat them.
44286
44287 2007-03-23  Eric Blake  <ebb9@byu.net>
44288
44289         * lib/version-etc.c (version_etc_va): Update license wording to
44290         be more concise.  Recommended by Richard Stallman.
44291
44292 2007-03-22  Bruno Haible  <bruno@clisp.org>
44293
44294         * lib/poll.c (MSG_PEEK): New fallback definition.
44295
44296 2007-03-22  Bruno Haible  <bruno@clisp.org>
44297
44298         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
44299         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
44300         (main): Update.
44301         Fixes a compilation error on BeOS.
44302
44303 2007-03-22  Bruno Haible  <bruno@clisp.org>
44304
44305         * modules/frexpl-tests: New file.
44306         * tests/test-frexpl.c: New file.
44307
44308         * modules/frexpl: New file.
44309         * m4/frexpl.m4: New file.
44310         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
44311         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
44312         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
44313         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
44314         (Depends-on): Add frexpl. Remove isnanl-nolibm.
44315         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
44316
44317 2007-03-22  Bruno Haible  <bruno@clisp.org>
44318
44319         * lib/frexpl.c: Share code with lib/frexp.c.
44320         * modules/mathl (Files): Add lib/frexp.c.
44321         (Depends-on): Add isnanl-nolibm.
44322
44323 2007-03-22  Bruno Haible  <bruno@clisp.org>
44324
44325         * modules/printf-frexp (Files): Add m4/frexp.m4.
44326         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
44327         only if the found frexp function actually works.
44328
44329 2007-03-22  Bruno Haible  <bruno@clisp.org>
44330
44331         * lib/frexp.c: Remove older implementation that uses divisions.
44332
44333 2007-03-21  Bruno Haible  <bruno@clisp.org>
44334
44335         * modules/frexp-tests: New file.
44336         * tests/test-frexp.c: New file.
44337
44338         * modules/frexp: New file.
44339         * lib/frexp.c: New file.
44340         * m4/frexp.m4: New file.
44341         * lib/math_.h (frexp): New declaration.
44342         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
44343         REPLACE_FREXP.
44344         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
44345
44346 2007-03-21  Bruno Haible  <bruno@clisp.org>
44347
44348         * modules/isnanl-tests: New file.
44349         * tests/test-isnanl.c: New file.
44350
44351         * modules/isnanl: New file.
44352         * lib/isnanl.h: New file.
44353         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
44354         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
44355         gl_FUNC_ISNANL_WORKS.
44356         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
44357         New macros.
44358
44359 2007-03-21  Bruno Haible  <bruno@clisp.org>
44360
44361         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
44362         lib/isnanl.h.
44363         (Include): Update.
44364         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
44365         * lib/vasnprintf.c: Update.
44366         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
44367         tests/test-isnanl.h, remove tests/test-isnanl.c.
44368         (Makefile.am): Update.
44369         * tests/test-isnanl-nolibm.c: New file.
44370         * tests/test-isnanl.h: New file.
44371         * tests/test-isnanl.c: Remove file.
44372
44373 2007-03-21  Jim Meyering  <jim@meyering.net>
44374
44375         When trying to open ".", treat ESTALE like EACCES.
44376         * lib/savewd.c (savewd_save): Resort to forking not just upon
44377         failure with EACCES, but also when errno is ESTALE.
44378
44379 2007-03-20  Bruno Haible  <bruno@clisp.org>
44380
44381         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
44382         Needed on AIX 5.1. Reported by Matthew Woehlke.
44383
44384 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44385
44386         Suggestions by Bruno Haible:
44387         * lib/acl-internal.h: Include "gettext.h" rather than rolling
44388         our own.
44389         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
44390         * modules/acl (Depends-on): Add gettext.
44391
44392 2007-03-19  Bruno Haible  <bruno@clisp.org>
44393
44394         * modules/iconvme: Remove file.
44395         * lib/iconvme.h: Remove file.
44396         * lib/iconvme.c: Remove file.
44397         * m4/iconvme.m4: Remove file.
44398
44399 2007-03-19  Bruno Haible  <bruno@clisp.org>
44400
44401         * doc/relocatable-maint.texi: Break long shell script line.
44402         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
44403
44404 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44405
44406         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
44407         handle file_has_acl.
44408         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
44409         * lib/acl.c: Move header inclusions and related macro defns into
44410         lib/acl-internal.h.
44411         (S_ISLNK): Remove defn, since that's now done for us.
44412         (file_has_acl): Move to lib/file-has-acl.c.
44413         Call acl_trivial if available.  This is the crucial part of the fix.
44414         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
44415         shared within the library.  Rewrite a bit, partly to make it compatible
44416         with the GNU coding style.
44417         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
44418         Remove unnecessary double-quotes.
44419         Don't test for acl_to_text; the build will catch that.
44420         Replace acl_entries if it doesn't exist and it is needed.
44421         Check for -lsec and acl_trivial (as used on Solaris 10).
44422         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
44423         lib/file-has-acl.c.
44424         (Depends-on): Add sys_stat, for S_ISLNK.
44425
44426 2007-03-19  Ben Pfaff  <blp@gnu.org>
44427
44428         * doc/gnulib.texi: Fix typos.
44429         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
44430
44431 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44432
44433         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
44434         If size is zero here, buf must be zero.
44435
44436 2007-03-19  Simon Josefsson  <simon@josefsson.org>
44437
44438         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
44439         <bruno@clisp.org>.
44440
44441 2007-03-18  Bruno Haible  <bruno@clisp.org>
44442
44443         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
44444         Suggested by Eric Blake.
44445
44446 2007-03-18  Ben Pfaff  <blp@gnu.org>
44447
44448         * doc/relocatable.texi: Recommend using as prefix a directory
44449         that does not exist and will never be created.  Based on
44450         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
44451         and others.
44452
44453 2007-03-17  Bruno Haible  <bruno@clisp.org>
44454
44455         * lib/fchownat.c: Include lchown.h.
44456
44457 2007-03-17  Bruno Haible  <bruno@clisp.org>
44458
44459         Fix endless loop when the given allocated size was > INT_MAX.
44460         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
44461         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
44462         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
44463         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
44464         * lib/sprintf.c (sprintf): Likewise.
44465
44466 2007-03-17  Bruno Haible  <bruno@clisp.org>
44467
44468         * tests/test-argp-2.sh (func_compare): Output a context diff.
44469
44470 2007-03-17  Bruno Haible  <bruno@clisp.org>
44471
44472         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
44473         locale's decimal-point character.
44474
44475 2007-03-17  Bruno Haible  <bruno@clisp.org>
44476
44477         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
44478         before comparing it. Needed because on some platforms (e.g. x86) a
44479         'long double' occupies less bytes than sizeof (long double).
44480
44481 2007-03-17  Bruno Haible  <bruno@clisp.org>
44482
44483         * tests/test-crc.c (main): Make printf statements 64-bit clean.
44484         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
44485         * tests/test-getaddrinfo.c (simple): Likewise.
44486         * tests/test-read-file.c (main): Likewise.
44487
44488 2007-03-17  Bruno Haible  <bruno@clisp.org>
44489
44490         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
44491
44492 2007-03-17  Bruno Haible  <bruno@clisp.org>
44493
44494         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
44495         unused variable.
44496
44497 2007-03-17  Bruno Haible  <bruno@clisp.org>
44498
44499         * tests/test-c-strcasecmp.c: Include c-strcase.h.
44500         * tests/test-c-strncasecmp.c: Likewise.
44501
44502 2007-03-17  Bruno Haible  <bruno@clisp.org>
44503
44504         * modules/stdlib (Depends-on): Add unistd.
44505         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
44506         Needed for MacOS X 10.3.
44507
44508 2007-03-17  Bruno Haible  <bruno@clisp.org>
44509
44510         * lib/unistr/u-strdup.h: Include <stdlib.h>.
44511
44512 2007-03-17  Bruno Haible  <bruno@clisp.org>
44513
44514         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
44515
44516 2007-03-17  Bruno Haible  <bruno@clisp.org>
44517
44518         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
44519         to reflect files copied from gnulib (with or without modifications).
44520         Suggested by Jim Meyering.
44521
44522 2007-03-17  Eric Blake  <ebb9@byu.net>
44523
44524         * NEWS: Document stdlib change from 2007-02-18.
44525
44526 2007-03-17  Jim Meyering  <jim@meyering.net>
44527
44528         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
44529         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
44530         someone uses a name containing shell meta-characters.
44531         Reported by Alfred M. Szmidt.
44532
44533         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
44534
44535 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
44536
44537         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
44538         and copy gettext configuration files only if configure.ac contains
44539         a use of AM_GNU_GETTEXT_VERSION.
44540
44541 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
44542
44543         * build-aux/bootstrap (gnulib_name): New variable.
44544         (gnulib_tool_options): Use it.
44545
44546 2007-03-13  Simon Josefsson  <simon@josefsson.org>
44547
44548         * tests/test-des.c: Use new namespace.
44549
44550 2007-03-15  Bruno Haible  <bruno@clisp.org>
44551
44552         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
44553         Reported by James Youngman <jay@gnu.org>.
44554
44555 2007-03-15  Bruno Haible  <bruno@clisp.org>
44556
44557         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
44558         declared prototype. Needed with cc on OSF/1 5.1.
44559
44560 2007-03-15  Bruno Haible  <bruno@clisp.org>
44561
44562         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
44563         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
44564         (struct gl_list_implementation): Add dispose_fn argument to the
44565         'create_empty', 'create' methods.
44566         (struct gl_list_impl_base): Add field 'dispose_fn'.
44567         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
44568         argument.
44569         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
44570         dispose_fn argument.
44571         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
44572         dispose_fn on the dropped values.
44573         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
44574         dispose_fn argument.
44575         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
44576         dropped values.
44577         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
44578         (gl_tree_remove_node): Call dispose_fn on the dropped value.
44579         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
44580         (gl_tree_remove_node): Call dispose_fn on the dropped value.
44581         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
44582         argument.
44583         (gl_tree_list_free): Call dispose_fn on the dropped values.
44584         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
44585         the dropped values.
44586         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
44587         Add dispose_fn argument.
44588         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
44589         Call dispose_fn on the dropped values.
44590         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
44591         Add dispose_fn argument.
44592         (gl_sublist_create): Initialize the 'dispose_fn' field.
44593         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
44594         * tests/test-array_list.c (main): Update.
44595         * tests/test-carray_list.c (main): Update.
44596         * tests/test-avltree_list.c (main): Update.
44597         * tests/test-rbtree_list.c (main): Update.
44598         * tests/test-avltreehash_list.c (main): Update.
44599         * tests/test-rbtreehash_list.c (main): Update.
44600         * tests/test-linked_list.c (main): Update.
44601         * tests/test-linkedhash_list.c (main): Update.
44602         * tests/test-array_oset.c (main): Update.
44603
44604 2007-03-15  Bruno Haible  <bruno@clisp.org>
44605
44606         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
44607         (gl_oset_create_empty): Add dispose_fn argument.
44608         (struct gl_oset_implementation): Add dispose_fn argument to
44609         'create_empty' method.
44610         (struct gl_oset_impl_base): Add dispose_fn field.
44611         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
44612         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
44613         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
44614         values.
44615         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
44616         (gl_tree_oset_free): Call dispose_fn on the dropped values.
44617         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
44618         dropped value.
44619         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
44620         dropped value.
44621         * tests/test-array_oset.c (main): Update.
44622         * tests/test-avltree_oset.c (main): Update.
44623         * tests/test-rbtree_oset.c (main): Update.
44624         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
44625
44626 2007-03-13  Bruno Haible  <bruno@clisp.org>
44627
44628         * tests/test-stdbool.c (i): Update after last patch.
44629
44630 2007-03-12  Bruno Haible  <bruno@clisp.org>
44631
44632         * lib/quotearg.c: Include <wctype.h> early, before the definition of
44633         the iswprint macro. Needed on Solaris 2.5.1.
44634
44635 2007-03-12  Bruno Haible  <bruno@clisp.org>
44636
44637         * tests/test-printf-frexp.c (main): Declare x as volatile.
44638
44639 2007-03-12  Simon Josefsson  <simon@josefsson.org>
44640
44641         * doc/gnulib.texi (Build robot for gnulib): New section.
44642
44643 2007-03-12  Jim Meyering  <jim@meyering.net>
44644
44645         * build-aux/bootstrap: New file.
44646         * build-aux/bootstrap.conf: New file, from coreutils.
44647
44648 2007-03-11  Bruno Haible  <bruno@clisp.org>
44649
44650         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
44651
44652 2007-03-12  Simon Josefsson  <simon@josefsson.org>
44653
44654         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
44655         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
44656         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
44657
44658 2007-03-11  Bruno Haible  <bruno@clisp.org>
44659
44660         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
44661         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
44662
44663 2007-03-11  Bruno Haible  <bruno@clisp.org>
44664
44665         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
44666         formula. Needed for SunPRO C 5.0.
44667
44668 2007-03-11  Bruno Haible  <bruno@clisp.org>
44669
44670         * modules/long-options (Depends-on): Add getopt.
44671
44672 2007-03-11  Bruno Haible  <bruno@clisp.org>
44673
44674         * modules/modechange (Depends-on): Add stdbool.
44675
44676 2007-03-11  Bruno Haible  <bruno@clisp.org>
44677
44678         * modules/i-ring (Depends-on): Add stdbool.
44679
44680 2007-03-11  Bruno Haible  <bruno@clisp.org>
44681
44682         * modules/gc-des (Depends-on): Add stdbool.
44683
44684 2007-03-11  Bruno Haible  <bruno@clisp.org>
44685
44686         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
44687
44688 2007-03-11  Bruno Haible  <bruno@clisp.org>
44689
44690         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
44691
44692 2007-03-11  Bruno Haible  <bruno@clisp.org>
44693
44694         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
44695
44696 2007-03-11  Bruno Haible  <bruno@clisp.org>
44697
44698         * lib/vasnprintf.c (sprintf): Undefine.
44699
44700 2007-03-11  Bruno Haible  <bruno@clisp.org>
44701
44702         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
44703         initializers in SunPRO C and Compaq C compilers.
44704
44705 2007-03-11  Bruno Haible  <bruno@clisp.org>
44706
44707         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
44708         decrementing code ANSI C compliant.
44709
44710 2007-03-11  Bruno Haible  <bruno@clisp.org>
44711
44712         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
44713         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
44714
44715 2007-03-11  Bruno Haible  <bruno@clisp.org>
44716
44717         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
44718         <stdbool.h> substitute doesn't pass.
44719
44720 2007-03-11  Bruno Haible  <bruno@clisp.org>
44721
44722         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
44723
44724 2007-03-11  Bruno Haible  <bruno@clisp.org>
44725
44726         * gnulib-tool (func_create_megatestdir): Create also an autobuild
44727         script, for submission to autobuild.josefsson.org.
44728
44729 2007-03-10  Bruno Haible  <bruno@clisp.org>
44730
44731         * modules/canonicalize-lgpl-tests: New file.
44732         * tests/test-canonicalize-lgpl.sh: New file.
44733         * tests/test-canonicalize-lgpl.c: New file.
44734
44735         * modules/c-strcase-tests: New file.
44736         * tests/test-c-strcase.sh: New file.
44737         * tests/test-c-strcasecmp.c: New file.
44738         * tests/test-c-strncasecmp.c: New file.
44739
44740         * modules/atexit-tests: New file.
44741         * tests/test-atexit.sh: New file.
44742         * tests/test-atexit.c: New file.
44743
44744 2007-03-10  Bruno Haible  <bruno@clisp.org>
44745
44746         * tests/test-binary-io.sh: Use temporary filenames that are not so
44747         likely to clash with those of other tests (in a parallel make).
44748         * tests/test-binary-io.c: Likewise.
44749
44750 2007-03-10  Bruno Haible  <bruno@clisp.org>
44751
44752         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
44753         fallback; use #error instead.
44754         Suggested by Simon Josefsson.
44755
44756 2007-03-10  Bruno Haible  <bruno@clisp.org>
44757
44758         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
44759         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
44760         first and the last.
44761
44762 2007-03-10  Bruno Haible  <bruno@clisp.org>
44763
44764         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
44765
44766 2007-03-10  Bruno Haible  <bruno@clisp.org>
44767
44768         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
44769         "make distcheck".
44770         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
44771         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
44772         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
44773
44774 2007-03-10  Bruno Haible  <bruno@clisp.org>
44775
44776         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
44777         variable.
44778         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
44779         variable.
44780
44781 2007-03-09  Eric Blake  <ebb9@byu.net>
44782         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
44783
44784         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
44785         types are not being provided by gnulib.
44786         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
44787         types are supported.
44788
44789 2007-03-10  Bruno Haible  <bruno@clisp.org>
44790
44791         * lib/stdio_.h (__attribute__): New macro.
44792         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
44793         vsprintf): Specify __attribute__ __format__ for GCC.
44794         Suggested by Eric Blake.
44795
44796 2007-03-09  Bruno Haible  <bruno@clisp.org>
44797
44798         * modules/printf-posix-tests: New file.
44799         * tests/test-printf-posix.sh: New file.
44800         * tests/test-printf-posix.c: New file.
44801
44802         * modules/printf-posix: New file.
44803         * lib/printf.c: New file.
44804         * m4/printf-posix-rpl.m4: New file.
44805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
44806         REPLACE_PRINTF.
44807         * lib/stdio_.h (printf): New declaration.
44808         (format, __format__, ____printf____, ____scanf____, ____strftime____,
44809         ____strfmon____): New macros.
44810         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
44811         REPLACE_PRINTF.
44812
44813 2007-03-09  Bruno Haible  <bruno@clisp.org>
44814
44815         * tests/test-vasnprintf-posix2.sh: New file.
44816         * tests/test-vasnprintf-posix2.c: New file.
44817         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
44818         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
44819         (Makefile.am): Activate test-vasnprintf-posix2.sh.
44820
44821         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
44822         a locale dependent decimal point, rather than always '.'.
44823
44824 2007-03-09  Eric Blake  <ebb9@byu.net>
44825
44826         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
44827         spite of platforms like Tandem/NSK that define it to -1.
44828
44829 2007-03-08  Bruno Haible  <bruno@clisp.org>
44830
44831         * modules/vprintf-posix-tests: New file.
44832         * tests/test-vprintf-posix.sh: New file.
44833         * tests/test-vprintf-posix.c: New file.
44834         * tests/test-printf-posix.h: New file.
44835
44836         * modules/vprintf-posix: New file.
44837         * lib/vprintf.c: New file.
44838         * m4/vprintf-posix.m4: New file.
44839         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
44840         REPLACE_VPRINTF.
44841         * lib/stdio_.h (vprintf): New declaration.
44842         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
44843         REPLACE_VPRINTF.
44844
44845 2007-03-08  Bruno Haible  <bruno@clisp.org>
44846
44847         * modules/fprintf-posix-tests: New file.
44848         * tests/test-fprintf-posix.sh: New file.
44849         * tests/test-fprintf-posix.c: New file.
44850
44851         * modules/fprintf-posix: New file.
44852         * lib/fprintf.c: New file.
44853         * m4/fprintf-posix.m4: New file.
44854         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
44855         REPLACE_FPRINTF.
44856         * lib/stdio_.h (fprintf): New declaration.
44857         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
44858         REPLACE_FPRINTF.
44859
44860 2007-03-08  Bruno Haible  <bruno@clisp.org>
44861
44862         * modules/vfprintf-posix-tests: New file.
44863         * tests/test-vfprintf-posix.sh: New file.
44864         * tests/test-vfprintf-posix.c: New file.
44865         * tests/test-fprintf-posix.h: New file.
44866         * tests/test-fprintf-posix.out: New file.
44867
44868         * modules/vfprintf-posix: New file.
44869         * lib/vfprintf.c: New file.
44870         * m4/vfprintf-posix.m4: New file.
44871         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
44872         REPLACE_VFPRINTF.
44873         * lib/stdio_.h (vfprintf): New declaration.
44874         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
44875         REPLACE_VFPRINTF.
44876
44877 2007-03-08  Bruno Haible  <bruno@clisp.org>
44878
44879         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
44880
44881 2007-03-08  Bruno Haible  <bruno@clisp.org>
44882
44883         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
44884         instead of 'expr' invocations.
44885         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44886         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44887         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44888         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44889         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44890         Suggested by Paul Eggert.
44891
44892 2007-03-08  Bruno Haible  <bruno@clisp.org>
44893
44894         * modules/fseterr-tests: New file.
44895         * tests/test-fseterr.c: New file.
44896
44897         * modules/fseterr: New file.
44898         * lib/fseterr.h: New file.
44899         * lib/fseterr.c: New file.
44900
44901 2007-03-08  Bruno Haible  <bruno@clisp.org>
44902
44903         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
44904         * lib/getopt_.h: Likewise.
44905         * lib/mbswidth.h: Likewise.
44906         * lib/setenv.h: Likewise.
44907         * lib/vasnprintf.h: Likewise.
44908         * lib/vasprintf.h: Likewise.
44909         * lib/verror.h: Likewise.
44910         * lib/xsetenv.h: Likewise.
44911         * lib/xvasprintf.h: Likewise.
44912
44913 2007-03-08  Jim Meyering  <jim@meyering.net>
44914
44915         * users.txt: Add parted.
44916
44917         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
44918
44919 2007-03-07  Bruno Haible  <bruno@clisp.org>
44920
44921         * m4/printf.m4: Make the shell script snippets copy&pastable.
44922
44923 2007-03-02  Bruno Haible  <bruno@clisp.org>
44924
44925         * lib/netinet_in_.h: New file.
44926         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
44927         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
44928         * modules/netinet_in (Files): Add lib/netinet_in_.h.
44929         (Depends-on): Add absolute-header.
44930         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
44931         into netinet/in.h.
44932
44933 2007-03-03  Bruno Haible  <bruno@clisp.org>
44934
44935         * lib/sys_select_.h: New file.
44936         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
44937         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
44938         * modules/sys_select (Files): Add lib/sys_select_.h.
44939         (Depends-on): Add absolute-header.
44940         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
44941         into sys/select.h.
44942
44943 2007-03-02  Bruno Haible  <bruno@clisp.org>
44944
44945         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
44946         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
44947         values.
44948         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
44949         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
44950         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
44951         * modules/sys_socket (Depends-on): Add absolute-header.
44952         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
44953         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
44954         (Include): Remove requirement of inclusion of <sys/types.h>.
44955
44956 2007-03-02  Bruno Haible  <bruno@clisp.org>
44957
44958         * lib/byteswap_.h (bswap_32): Fix formula.
44959
44960 2007-03-06  Bruno Haible  <bruno@clisp.org>
44961
44962         * modules/sprintf-posix-tests: New file.
44963         * tests/test-sprintf-posix.c: New file.
44964
44965         * modules/sprintf-posix: New file.
44966         * lib/sprintf.c: New file.
44967         * m4/sprintf-posix.m4: New file.
44968         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
44969         REPLACE_SPRINTF.
44970         * lib/stdio_.h (sprintf): New declaration.
44971         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
44972         REPLACE_SPRINTF.
44973
44974 2007-03-06  Bruno Haible  <bruno@clisp.org>
44975
44976         * modules/vsprintf-posix-tests: New file.
44977         * tests/test-vsprintf-posix.c: New file.
44978         * tests/test-sprintf-posix.h: New file.
44979
44980         * modules/vsprintf-posix: New file.
44981         * lib/vsprintf.c: New file.
44982         * m4/vsprintf-posix.m4: New file.
44983         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
44984         REPLACE_VSPRINTF.
44985         * lib/stdio_.h (vsprintf): New declaration.
44986         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
44987         REPLACE_VSPRINTF.
44988
44989 2007-03-06  Bruno Haible  <bruno@clisp.org>
44990
44991         * modules/vsnprintf (Depend-on): Remove minmax.
44992
44993 2007-03-06  Bruno Haible  <bruno@clisp.org>
44994
44995         * modules/snprintf-posix-tests: New file.
44996         * tests/test-snprintf-posix.c: New file.
44997
44998         * modules/snprintf-posix: New file.
44999         * m4/snprintf-posix.m4: New file.
45000         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
45001         gl_FUNC_SNPRINTF.
45002         (gl_FUNC_SNPRINTF): Invoke it.
45003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
45004         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
45005         is set.
45006         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
45007
45008 2007-03-06  Bruno Haible  <bruno@clisp.org>
45009
45010         * modules/vsnprintf-posix-tests: New file.
45011         * tests/test-vsnprintf-posix.c: New file.
45012         * tests/test-snprintf-posix.h: New file.
45013
45014         * modules/vsnprintf-posix: New file.
45015         * m4/vsnprintf-posix.m4: New file.
45016         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
45017         gl_FUNC_VSNPRINTF.
45018         (gl_FUNC_VSNPRINTF): Invoke it.
45019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
45020         * lib/stdio_.h (vsnprintf): Define as a replacement if
45021         REPLACE_VSNPRINTF is set.
45022         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
45023
45024 2007-03-06  Bruno Haible  <bruno@clisp.org>
45025
45026         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
45027         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
45028
45029 2007-03-06  Bruno Haible  <bruno@clisp.org>
45030
45031         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
45032         (asinl): Declare also if HAVE_DECL_ASINL is set.
45033         (atanl): Declare also if HAVE_DECL_ATANL is set.
45034         (ceill): Declare also if HAVE_DECL_CEILL is set.
45035         (cosl): Declare also if HAVE_DECL_COSL is set.
45036         (expl): Declare also if HAVE_DECL_EXPL is set.
45037         (floorl): Declare also if HAVE_DECL_FLOORL is set.
45038         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
45039         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
45040         (logl): Declare also if HAVE_DECL_LOGL is set.
45041         (sinl): Declare also if HAVE_DECL_SINL is set.
45042         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
45043         (tanl): Declare also if HAVE_DECL_TANL is set.
45044         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
45045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
45046         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
45047         declaration of frexpl, ldexpl.
45048         * modules/printf-frexpl (Depends-on): Add math.
45049         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
45050
45051 2007-03-05  Bruno Haible  <bruno@clisp.org>
45052
45053         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
45054         frexpl and ldexpl are declared.
45055         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
45056
45057 2007-03-05  Bruno Haible  <bruno@clisp.org>
45058
45059         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
45060         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
45061
45062 2007-03-05  Bruno Haible  <bruno@clisp.org>
45063
45064         * lib/stdio_.h: Include <stddef.h>.
45065
45066 2007-03-05  Bruno Haible  <bruno@clisp.org>
45067
45068         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
45069
45070 2007-03-05  Bruno Haible  <bruno@clisp.org>
45071
45072         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
45073         NetBSD 4, from Ralf Wildenhues.
45074
45075 2007-03-04  Bruno Haible  <bruno@clisp.org>
45076
45077         * lib/vasprintf.h: Update #if logic for the case when the functions
45078         exist but are overridden.
45079
45080 2007-03-04  Bruno Haible  <bruno@clisp.org>
45081
45082         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
45083         implementations: glibc-2.4 and MacOS X 10.3.
45084         * tests/test-vasnprintf-posix.c (test_function): Test also the case
45085         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
45086         * tests/test-vasprintf-posix.c (test_function): Likewise.
45087
45088 2007-03-04  Bruno Haible  <bruno@clisp.org>
45089
45090         * modules/vasprintf-posix-tests: New file.
45091         * tests/test-vasprintf-posix.c: New file.
45092
45093         * modules/vasprintf-posix: New file.
45094         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
45095         defined.
45096         * m4/vasprintf-posix.m4: New file.
45097         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
45098         gl_FUNC_VASPRINTF.
45099         (gl_FUNC_VASPRINTF): Invoke it.
45100         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
45101         here.
45102         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
45103
45104 2007-03-04  Bruno Haible  <bruno@clisp.org>
45105
45106         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
45107         REPLACE_GETTIMEOFDAY.
45108         * modules/sys_time (Makefile.am): Likewise.
45109         * m4/sys_time_h.m4: Likewise.
45110         * m4/gettimeofday.m4: Likewise.
45111
45112 2007-03-04  Bruno Haible  <bruno@clisp.org>
45113
45114         * modules/vasnprintf-posix-tests: New file.
45115         * tests/test-vasnprintf-posix.c: New file.
45116
45117         * modules/vasnprintf-posix: New file.
45118         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
45119         printf-frexpl.h.
45120         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
45121         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
45122         REPLACE_VASNPRINTF is defined.
45123         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
45124         gl_FUNC_VASNPRINTF.
45125         (gl_FUNC_VASNPRINTF): Invoke it.
45126         * m4/vasnprintf-posix.m4: New file.
45127         * m4/printf.m4: New file.
45128
45129 2007-03-04  Bruno Haible  <bruno@clisp.org>
45130
45131         Compile progreloc.c only if --enable-relocatable is specified.
45132         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
45133         if --enable-relocatable was specified.
45134         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
45135         lib_SOURCES.
45136
45137 2007-03-04  Jim Meyering  <jim@meyering.net>
45138
45139         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
45140         Use it consistently, rather than enumerating errno constants.
45141
45142 2007-03-04  Bruno Haible  <bruno@clisp.org>
45143
45144         * modules/xvasprintf-tests: New file.
45145         * tests/test-xvasprintf.c: New file.
45146
45147         * modules/vasprintf-tests: New file.
45148         * tests/test-vasprintf.c: New file.
45149
45150         * modules/vasnprintf-tests: New file.
45151         * tests/test-vasnprintf.c: New file.
45152
45153         * modules/vsnprintf-tests: New file.
45154         * tests/test-vsnprintf.c: New file.
45155
45156         * modules/snprintf-tests: New file.
45157         * tests/test-snprintf.c: New file.
45158
45159 2007-03-04  Bruno Haible  <bruno@clisp.org>
45160
45161         Compile relocatable.c only if --enable-relocatable is specified.
45162         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
45163         gl_RELOCATABLE_LIBRARY.
45164         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
45165         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
45166         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
45167         gl_RELOCATABLE_LIBRARY.
45168         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
45169         (Makefile.am): Remove lib_SOURCES.
45170         * modules/relocatable-lib-lgpl (configure.ac): Invoke
45171         gl_RELOCATABLE_LIBRARY.
45172         (Makefile.am): Remove lib_SOURCES.
45173         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
45174         always.
45175         * modules/relocatable-prog-wrapper (configure.ac): Invoke
45176         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
45177
45178 2007-03-04  Bruno Haible  <bruno@clisp.org>
45179
45180         * modules/argmatch-tests: New file.
45181         * tests/test-argmatch.c: New file.
45182
45183         * tests/test-allocsa.c (main): Halve the number of loop runs.
45184
45185         * modules/alloca-opt-tests: New file.
45186         * tests/test-alloca-opt.c: New file.
45187
45188 2007-03-04  Jim Meyering  <jim@meyering.net>
45189
45190         Work around difference between Linux ACLs and Solaris 10 ZFS.
45191         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
45192         for EINVAL.
45193
45194 2007-03-03  Bruno Haible  <bruno@clisp.org>
45195
45196         * modules/relocatable-prog (Depends-on): Add back progreloc's
45197         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
45198
45199 2007-03-03  Bruno Haible  <bruno@clisp.org>
45200
45201         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
45202         * modules/relocatable-lib: New file.
45203
45204 2007-03-03  Bruno Haible  <bruno@clisp.org>
45205
45206         * modules/relocatable-prog: Renamed from modules/relocatable.
45207         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
45208
45209 2007-03-03  Bruno Haible  <bruno@clisp.org>
45210
45211         * modules/relocatable-script (Files): Add doc/relocatable.texi,
45212         m4/relocatable-lib.m4.
45213         (Depends-on): Remove 'relocatable'.
45214         (configure.ac): Add gl_RELOCATABLE_NOP.
45215
45216 2007-03-03  Bruno Haible  <bruno@clisp.org>
45217
45218         * modules/relocatable-prog-wrapper: New file.
45219         * modules/relocatable (Depends-on): Add it. Remove all other
45220         dependencies except progname.
45221         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
45222
45223         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
45224         (gl_FUNC_STRERROR): Nop.
45225         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
45226
45227         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
45228         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
45229
45230         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
45231         (gl_FUNC_READLINK): Update.
45232
45233         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
45234
45235 2007-03-03  Bruno Haible  <bruno@clisp.org>
45236
45237         * lib/xreadlink.c: Include <unistd.h> unconditionally.
45238         * modules/xreadlink (Depends-on): Add unistd.
45239         * modules/xreadlink-with-size (Depends-on): Likewise.
45240
45241 2007-03-03  Bruno Haible  <bruno@clisp.org>
45242
45243         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
45244         extracted from gt_FUNC_SETENV.
45245         (gt_FUNC_SETENV): Remove macro.
45246         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
45247         remove gt_FUNC_SETENV.
45248
45249 2007-03-03  Bruno Haible  <bruno@clisp.org>
45250
45251         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
45252         ENABLE_RELOCATABLE here.
45253         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
45254
45255 2007-03-03  Bruno Haible  <bruno@clisp.org>
45256
45257         * modules/rbtreehash-list-tests (Depends-on): Add progname.
45258         * tests/test-rbtreehash_list.c: Include progname.h.
45259         (main): Call set_program_name.
45260
45261         * modules/rbtree-oset-tests (Depends-on): Add progname.
45262         * tests/test-rbtree_oset.c: Include progname.h.
45263         (main): Call set_program_name.
45264
45265         * modules/rbtree-list-tests (Depends-on): Add progname.
45266         * tests/test-rbtree_list.c: Include progname.h.
45267         (main): Call set_program_name.
45268
45269         * modules/linked-list-tests (Depends-on): Add progname.
45270         * tests/test-linked_list.c: Include progname.h.
45271         (main): Call set_program_name.
45272
45273 2007-03-03  Bruno Haible  <bruno@clisp.org>
45274
45275         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
45276         All uses of __restrict changed to _Restrict_.
45277         * lib/glob_.h (__restrict): Remove macro.
45278
45279 2007-03-02  Bruno Haible  <bruno@clisp.org>
45280
45281         * modules/gettext (configure.ac): Require gettext infrastructure
45282         from version 0.16.1.
45283
45284 2007-03-02  Bruno Haible  <bruno@clisp.org>
45285
45286         * modules/linkedhash-list-tests (Depends-on): Add progname.
45287         * tests/test-linkedhash_list.c: Include progname.h.
45288         (main): Call set_program_name.
45289
45290         * modules/carray-list-tests (Depends-on): Add progname.
45291         * tests/test-carray_list.c: Include progname.h.
45292         (main): Call set_program_name.
45293
45294         * modules/avltreehash-list-tests (Depends-on): Add progname.
45295         * tests/test-avltreehash_list.c: Include progname.h.
45296         (main): Call set_program_name.
45297
45298         * modules/avltree-oset-tests (Depends-on): Add progname.
45299         * tests/test-avltree_oset.c: Include progname.h.
45300         (main): Call set_program_name.
45301
45302         * modules/avltree-list-tests (Depends-on): Add progname.
45303         * tests/test-avltree_list.c: Include progname.h.
45304         (main): Call set_program_name.
45305
45306         * modules/array-oset-tests (Depends-on): Add progname.
45307         * tests/test-array_oset.c: Include progname.h.
45308         (main): Call set_program_name.
45309
45310         * modules/array-list-tests (Depends-on): Add progname.
45311         * tests/test-array_list.c: Include progname.h.
45312         (main): Call set_program_name.
45313
45314         * modules/argp-tests (Depends-on): Add progname.
45315         * tests/test-argp.c: Include argp.h first. Include progname.h.
45316         (main): Call set_program_name.
45317
45318 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
45319
45320         * doc/gnulib-tool.texi (Initial import): Reword description of
45321         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
45322         limited effect even if defined after the first system include.
45323
45324 2007-03-01  Bruno Haible  <bruno@clisp.org>
45325
45326         * build-aux/config.libpath: Update to libtool-1.5.22.
45327         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45328
45329 2007-03-01  Bruno Haible  <bruno@clisp.org>
45330
45331         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
45332         foo_CFLAGS.
45333         Reported by Ralf Wildenhues.
45334
45335 2007-03-01  Bruno Haible  <bruno@clisp.org>
45336
45337         * build-aux/install-reloc: Remove object files left over by some
45338         compilers.
45339         Reported by Ralf Wildenhues.
45340
45341 2007-03-01  Bruno Haible  <bruno@clisp.org>
45342
45343         * build-aux/install-reloc: Break long lines.
45344
45345 2007-03-01  Bruno Haible  <bruno@clisp.org>
45346
45347         * doc/relocatable.texi: Document that it may not work on OpenBSD.
45348         Reported by Ralf Wildenhues.
45349
45350 2007-03-01  Bruno Haible  <bruno@clisp.org>
45351
45352         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
45353         include ordering constraints.
45354
45355 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45356
45357         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
45358         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
45359         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
45360         as another example.
45361         * lib/time_.h: Fix misspelling.
45362         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
45363         Require gl_HEADER_TIME_H_DEFAULTS.
45364         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
45365         * m4/time_r.m4 (gl_TIME_R): Likewise.
45366         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
45367
45368 2007-03-01  Bruno Haible  <bruno@clisp.org>
45369
45370         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
45371         * m4/utimens.m4 (gl_UTIMENS): Likewise.
45372
45373 2007-03-01  Jim Meyering  <jim@meyering.net>
45374
45375         * modules/xreadlink (Maintainer): Add my name.
45376         * modules/xreadlink-with-size (Depends-on): Alphabetize.
45377
45378 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
45379             Bruno Haible  <bruno@clisp.org>
45380
45381         * build-aux/install-reloc: Compile also c-ctype.c.
45382         * build-aux/relocatable.sh.in: New file.
45383         * doc/relocatable.texi: New file.
45384         * doc/relocatable-maint.texi: New file.
45385         * doc/gnulib.texi: Include relocatable-maint.texi.
45386         * lib/progreloc.c: Include unistd.h unconditionally.
45387         * lib/relocwrapper.c: Include unistd.h unconditionally.
45388         Include c-ctype.h.
45389         (add_dotbin): Use c_tolower.
45390         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
45391         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
45392         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
45393         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
45394         to m4/relocatable-lib.m4.
45395         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
45396         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
45397         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
45398         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
45399         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
45400         * modules/relocatable: New file.
45401         * modules/relocatable-lib: New file.
45402         * modules/relocatable-script: New file.
45403
45404 2007-02-28  Bruno Haible  <bruno@clisp.org>
45405
45406         Import --enable-relocatable infrastructure.
45407         * build-aux/config.libpath: New file, from GNU gettext.
45408         * build-aux/install-reloc: New file, from GNU gettext.
45409         * build-aux/reloc-ldflags: New file, from GNU gettext.
45410         * lib/relocatable.h: New file, from GNU gettext.
45411         * lib/relocatable.c: New file, from GNU gettext.
45412         * lib/relocwrapper.c: New file, from GNU gettext.
45413         * m4/relocatable.m4: New file, from GNU gettext.
45414
45415 2007-02-28  Bruno Haible  <bruno@clisp.org>
45416
45417         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
45418
45419         * modules/xreadlink: New file, from GNU gettext with modifications.
45420         * lib/xreadlink.c: New file, from GNU gettext.
45421         * lib/xreadlink.h: Add comments.
45422         (xreadlink): New declaration.
45423
45424         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
45425         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
45426         lib/xreadlink-with-size.c.
45427         (configure.ac): Remove gl_XREADLINK invocation.
45428         (Makefile.am): Augment lib_SOURCES.
45429         * m4/xreadlink.m4: Remove file.
45430         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
45431         (xreadlink_with_size): Renamed from xreadink.
45432         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
45433         * modules/canonicalize (Depends-on): Replace xreadlink with
45434         xreadlink-with-size.
45435         * lib/canonicalize.c (canonicalize_filename_mode): Update.
45436
45437 2007-02-25  Jim Meyering  <jim@meyering.net>
45438
45439         * build-aux/announce-gen: When complaining about excess arguments,
45440         list them.
45441
45442 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
45443
45444         * README: Document signed integer overflow situation more
45445         accurately.
45446
45447 2007-02-25  Bruno Haible  <bruno@clisp.org>
45448
45449         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
45450         'a' or 'A' conversion.
45451
45452 2007-02-25  Bruno Haible  <bruno@clisp.org>
45453
45454         * modules/filename: Renamed from modules/pathname.
45455         (Files): Replace lib/pathname.h with lib/filename.h. Replace
45456         lib/concatpath.c with lib/concat-filename.c.
45457         (Makefile.am): Update.
45458         (Include): Replace pathname.h with filename.h.
45459         * lib/filename.h: Renamed from lib/pathname.h.
45460         (concatenated_filename): Renamed from concatenated_pathname.
45461         * lib/concat-filename.c: Renamed from lib/concatpath.c.
45462         (concatenated_filename): Renamed from concatenated_pathname.
45463         * lib/findprog.c: Include filename.h instead of pathname.h.
45464         (find_in_path): Update.
45465         * lib/javacomp.c: Include filename.h instead of pathname.h.
45466         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
45467         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
45468         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
45469         is_oldgcj_14_13_usable, is_javac_usable): Update.
45470         * lib/javaexec.c: Include filename.h instead of pathname.h.
45471         (execute_java_class): Update.
45472         * modules/findprog: Update.
45473         * modules/javacomp: Update.
45474         * modules/javaexec: Update.
45475         * MODULES.html.sh (File system functions): Add 'filename', remove
45476         'pathname'.
45477
45478 2007-02-25  Bruno Haible  <bruno@clisp.org>
45479
45480         * modules/printf-frexpl-tests: New file.
45481         * tests/test-printf-frexpl.c: New file.
45482
45483         * modules/printf-frexpl: New file.
45484         * lib/printf-frexpl.h: New file.
45485         * lib/printf-frexpl.c: New file.
45486         * m4/printf-frexpl.m4: New file.
45487
45488 2007-02-25  Bruno Haible  <bruno@clisp.org>
45489
45490         * modules/printf-frexp-tests: New file.
45491         * tests/test-printf-frexp.c: New file.
45492
45493         * modules/printf-frexp: New file.
45494         * lib/printf-frexp.h: New file.
45495         * lib/printf-frexp.c: New file.
45496         * m4/printf-frexp.m4: New file.
45497
45498 2007-02-25  Bruno Haible  <bruno@clisp.org>
45499
45500         Assume automake >= 1.10 for the tests.
45501         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
45502         * modules/arctwo-tests: Likewise.
45503         * modules/argp-tests: Likewise.
45504         * modules/avltree-list-tests: Likewise.
45505         * modules/avltree-oset-tests: Likewise.
45506         * modules/avltreehash-list-tests: Likewise.
45507         * modules/carray-list-tests: Likewise.
45508         * modules/crc-tests: Likewise.
45509         * modules/des-tests: Likewise.
45510         * modules/gc-arcfour-tests: Likewise.
45511         * modules/gc-arctwo-tests: Likewise.
45512         * modules/gc-des-tests: Likewise.
45513         * modules/gc-hmac-md5-tests: Likewise.
45514         * modules/gc-hmac-sha1-tests: Likewise.
45515         * modules/gc-md2-tests: Likewise.
45516         * modules/gc-md4-tests: Likewise.
45517         * modules/gc-md5-tests: Likewise.
45518         * modules/gc-pbkdf2-sha1-tests: Likewise.
45519         * modules/gc-rijndael-tests: Likewise.
45520         * modules/gc-sha1-tests: Likewise.
45521         * modules/gc-tests: Likewise.
45522         * modules/getaddrinfo-tests: Likewise.
45523         * modules/hmac-md5-tests: Likewise.
45524         * modules/hmac-sha1-tests: Likewise.
45525         * modules/linked-list-tests: Likewise.
45526         * modules/linkedhash-list-tests: Likewise.
45527         * modules/lock-tests: Likewise.
45528         * modules/md2-tests: Likewise.
45529         * modules/md4-tests: Likewise.
45530         * modules/md5-tests: Likewise.
45531         * modules/rbtree-list-tests: Likewise.
45532         * modules/rbtree-oset-tests: Likewise.
45533         * modules/rbtreehash-list-tests: Likewise.
45534         * modules/read-file-tests: Likewise.
45535         * modules/rijndael-tests: Likewise.
45536         * modules/stdint-tests: Likewise.
45537         * modules/tls-tests: Likewise.
45538
45539 2007-02-24  Bruno Haible  <bruno@clisp.org>
45540
45541         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
45542         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
45543         function; instead check whether isnan with a double argument links.
45544         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
45545         function; instead check whether isnan with a 'long double' argument
45546         links.
45547         Reported by Eric Blake <ebb9@byu.net>.
45548
45549 2007-02-24  Bruno Haible  <bruno@clisp.org>
45550
45551         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
45552         defined.
45553         * lib/isnanl.c: Remove all code. Just include isnan.c.
45554         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
45555
45556 2007-02-25  Jim Meyering  <jim@meyering.net>
45557
45558         Avoid conflicting types for 'unsetenv' on FreeBSD.
45559         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
45560         conflicting with FreeBSD's (5.0 and 6.1) function declaration
45561         in stdlib.h.
45562
45563 2007-02-24  Bruno Haible  <bruno@clisp.org>
45564
45565         * modules/isnanl-nolibm-tests: New file.
45566         * tests/test-isnanl.c: New file.
45567
45568         * modules/isnanl-nolibm: New file.
45569         * lib/isnanl.h: New file.
45570         * lib/isnanl.c: New file.
45571         * m4/isnanl.m4: New file.
45572
45573 2007-02-24  Bruno Haible  <bruno@clisp.org>
45574
45575         * modules/isnan-nolibm-tests: New file.
45576         * tests/test-isnan.c: New file.
45577
45578         * modules/isnan-nolibm: New file.
45579         * lib/isnan.h: New file.
45580         * lib/isnan.c: New file.
45581         * m4/isnan.m4: New file.
45582
45583 2007-02-24  Bruno Haible  <bruno@clisp.org>
45584
45585         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
45586         assume that an exponent fits in 20 bits.
45587
45588 2007-02-24  Jim Meyering  <jim@meyering.net>
45589
45590         * m4/regex.m4: Update the description of the configure-time option,
45591         --without-included-regex, to state accurately what the defaults are,
45592         and perhaps to give people an idea why using this option is risky.
45593
45594 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
45595
45596         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
45597         loops on small arguments.  This attempts to avoid the problem
45598         Bruno Haible reported for AIX 4.3.2 in
45599         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
45600
45601 2007-02-23  Bruno Haible  <bruno@clisp.org>
45602
45603         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
45604         Needed for help2man.
45605
45606 2007-02-23  Karl Berry  <karl@gnu.org>
45607
45608         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
45609         exists, foo.h should be cvs-ignored, not committed.
45610
45611 2007-02-23  Eric Blake  <ebb9@byu.net>
45612
45613         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
45614         * lib/stat-time.h (includes): Likewise.
45615         * lib/utimecmp.c (includes): Likewise.
45616         * lib/utimens.h (includes): Likewise.
45617         * lib/getdate.y (includes): Also include "timespec.h" for use
45618         internal to the module.
45619         * modules/utimens (Depends-on): Revert yesterday's patch.
45620         * modules/nanosleep (Depends-on): Add missing dependency.
45621
45622 2007-02-22  Bruno Haible  <bruno@clisp.org>
45623
45624         * lib/glob.c: Don't include getlogin_r.h.
45625
45626 2007-02-22  Jim Meyering  <jim@meyering.net>
45627
45628         * modules/utimens (Depends-on): Add timespec, required for
45629         utimens.h's inclusion of timespec.h.
45630
45631 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
45632
45633         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
45634         long unreadable paths in GNU/Linux.  Problem reported by Andreas
45635         Schwab in
45636         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
45637         I'll try to think of a better way to fix the Solaris problem.
45638
45639         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
45640         like glibc; on Solaris 10, it fails with errno == EINVAL.
45641         POSIX says the behavior is unspecified if the first argument is NULL,
45642         so play it safe and never pass NULL to the system getcwd.
45643
45644 2007-02-21  Jim Meyering  <jim@meyering.net>
45645
45646         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
45647         of gettimeofday.  It would conflict with the one now always
45648         provided via sys_time_.h.  Reported by Matthew Woehlke, as
45649         an IRIX 6.5 build failure.
45650
45651 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
45652
45653         Minor fixups to port to Solaris 10 with Sun C 5.8.
45654         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
45655         * modules/getcwd (Depends-on): Add dirfd.
45656         * lib/putenv.c (putenv): #undef it.
45657         (rpl_putenv): New decl.
45658         (malloc, free): Include <stdlib.h> rather than prototyping separately.
45659
45660 2007-02-20  Bruno Haible  <bruno@clisp.org>
45661
45662         * modules/stdio-tests: New file.
45663         * tests/test-stdio.c: New file.
45664
45665         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
45666         (Depends-on): Add stdio.
45667         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45668         (Include): Use <stdio.h> instead of vsnprintf.h.
45669         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45670         HAVE_DECL_VSNPRINTF.
45671         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
45672
45673         * modules/snprintf (Files): Remove lib/snprintf.h.
45674         (Depends-on): Add stdio.
45675         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45676         (Include): Use <stdio.h> instead of snprintf.h.
45677         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45678         HAVE_DECL_SNPRINTF.
45679         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
45680         * lib/getaddrinfo.c: Likewise.
45681
45682         * modules/stdio: New file.
45683         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
45684         * lib/snprintf.h: Remove file.
45685         * lib/vsnprintf.h: Remove file.
45686         * lib/.cppi-disable: Remove snprintf.h.
45687         * m4/stdio_h.m4: New file.
45688         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
45689
45690 2007-02-20  Jim Meyering  <jim@meyering.net>
45691
45692         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
45693         used by e.g., mingw.  From Bruno Haible.
45694
45695 2007-02-19  Bruno Haible  <bruno@clisp.org>
45696
45697         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
45698         warnings.
45699         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45700
45701 2007-02-19  Bruno Haible  <bruno@clisp.org>
45702
45703         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
45704         from mingw users.
45705
45706 2007-02-19  Bruno Haible  <bruno@clisp.org>
45707
45708         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
45709         warnings.
45710         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
45711
45712 2007-02-19  Jim Meyering  <jim@meyering.net>
45713
45714         Don't use FD after a successful "fdopendir (fd)".
45715         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
45716         Reset it by calling dirfd on the just-obtained DIR*.
45717
45718         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
45719         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
45720
45721 2007-02-18  Bruno Haible  <bruno@clisp.org>
45722
45723         * lib/readlink.c: Include <unistd.h>.
45724         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
45725         HAVE_READLINK.
45726         * modules/readlink (Depends-on): Add unistd.
45727         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45728         (Include): Add <unistd.h>.
45729
45730         * lib/getlogin_r.h: Remove file.
45731         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
45732         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
45733         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
45734         HAVE_DECL_GETLOGIN_R.
45735         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
45736         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45737         (Include): Use <unistd.h> instead of getlogin_r.h.
45738
45739         * lib/getcwd.h: Remove file.
45740         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
45741         * lib/xgetcwd.c: Likewise.
45742         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
45743         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
45744         * modules/getcwd (Files): Remove lib/getcwd.h.
45745         (Depends-on): Add unistd.
45746         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45747         (Include): Use <unistd.h> instad of getcwd.h.
45748
45749         * lib/ftruncate.c: Include <unistd.h> first.
45750         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
45751         Set HAVE_FTRUNCATE.
45752         * modules/ftruncate (Depends-on): Add unistd.
45753         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45754
45755         * lib/fchdir.c: Include <unistd.h> first.
45756         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
45757         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
45758         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
45759         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45760         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
45761
45762         * lib/dup2.c: Include <unistd.h> first.
45763         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
45764         HAVE_DUP2.
45765         * modules/dup2 (Depends-on): Add unistd.
45766         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45767
45768         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
45769         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
45770         REPLACE_CHOWN. Don't define chown as a macro here.
45771         * modules/chown (Depends-on): Add unistd.
45772         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45773
45774         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
45775         Add definition for GL_LINK_WARNING.
45776         (chown, dup2): New declarations.
45777         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
45778         link warning.
45779         (ftruncate): New declaration.
45780         (getcwd): New declaration, taken from old getcwd.h.
45781         (getlogin_r): New declaration, taken from old getlogin_r.h.
45782         (readlink): New declaration.
45783         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
45784         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
45785         (gl_PREREQ_UNISTD): Remove macro.
45786         (gl_UNISTD_MODULE_INDICATOR): New macro.
45787         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
45788         many new variables. Don't set UNISTD_H.
45789         * modules/unistd (Description): Change.
45790         (Depends-on): Add link-warning.
45791         (configure.ac): Update.
45792         (Makefile.am): Create unistd.h always. Substitute many new variables
45793         into it.
45794
45795 2007-02-18  Bruno Haible  <bruno@clisp.org>
45796
45797         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
45798         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
45799         HAVE_GETSUBOPT.
45800         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
45801         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
45802         * lib/getsubopt.h: Remove file.
45803         * modules/getsubopt (Files): Remove lib/getsubopt.h.
45804         (Depends-on): Add stdlib.
45805         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45806         (Includes): Use <stdlib.h> instead of getsubopt.h.
45807         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
45808         Set HAVE_GETSUBOPT.
45809         * lib/getsubopt.c: Don't include getsubopt.h.
45810
45811 2007-02-18  Bruno Haible  <bruno@clisp.org>
45812
45813         * modules/fchdir (Depends-on): Add dup2.
45814
45815 2007-02-18  Bruno Haible  <bruno@clisp.org>
45816
45817         * lib/stdlib_.h: Handle glibc's special invocation convention
45818         specially.
45819
45820 2007-02-18  Bruno Haible  <bruno@clisp.org>
45821
45822         * modules/stdlib-tests: New file.
45823         * tests/test-stdlib.c: New file.
45824
45825         * modules/mkstemp (Files): Remove lib/mkstemp.h.
45826         (Depends-on): Add stdlib.
45827         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45828         (Includes): Use <stdlib.h> instead of mkstemp.h.
45829         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
45830         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
45831         * lib/mkstemp.c: Don't include mkstemp.h.
45832         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
45833         * lib/stdlib--.h: Don't include mkstemp.h.
45834
45835         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
45836         (Depends-on): Add stdlib.
45837         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45838         (Includes): Use <stdlib.h> instead of mkdtemp.h.
45839         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
45840         HAVE_MKDTEMP.
45841         * lib/mkdtemp.c: Don't include mkdtemp.h.
45842         * lib/clean-temp.c: Don't include mkdtemp.h.
45843
45844         * modules/exit (Files): Remove lib/exit.h.
45845         (Depends-on): Add stdlib.
45846         (Makefile.am): Remove lib_SOURCES.
45847         (Include): Use <stdlib.h> instead of exit.h.
45848         * lib/argmatch.c: Don't include exit.h.
45849         * lib/execute.c: Likewise.
45850         * lib/pagealign_alloc.c: Likewise.
45851         * lib/pipe.c: Likewise.
45852         * lib/wait-process.c: Likewise.
45853         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
45854         * lib/exitfail.c: Likewise.
45855         * lib/savewd.c: Likewise.
45856         * lib/xsetenv.c: Likewise.
45857
45858         * modules/stdlib: New file.
45859         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
45860         and extra comments about mkstemp().
45861         * lib/exit.h: Remove file.
45862         * lib/mkdtemp.h: Remove file.
45863         * lib/mkstemp.h: Remove file.
45864         * m4/stdlib_h.m4: New file.
45865         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
45866
45867 2007-02-18  Bruno Haible  <bruno@clisp.org>
45868
45869         * modules/math-tests: New file.
45870         * tests/test-math.c: New file.
45871
45872         * modules/math: New file.
45873         * modules/mathl (Files): Remove lib/mathl.h.
45874         (Depends-on): Add math.
45875         (Makefile.am): Don't mention mathl.h.
45876         (Include): Use <math.h> instead of mathl.h.
45877         * lib/math_.h: New file.
45878         * lib/mathl.h: Remove file.
45879         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
45880         mathl.h.
45881         * lib/asinl.c: Likewise.
45882         * lib/atanl.c: Likewise.
45883         * lib/ceill.c: Likewise.
45884         * lib/cosl.c: Likewise.
45885         * lib/expl.c: Likewise.
45886         * lib/floorl.c: Likewise.
45887         * lib/frexpl.c: Likewise.
45888         * lib/ldexpl.c: Likewise.
45889         * lib/logl.c: Likewise.
45890         * lib/sincosl.c: Likewise.
45891         * lib/sinl.c: Likewise.
45892         * lib/sqrtl.c: Likewise.
45893         * lib/tanl.c: Likewise.
45894         * lib/trigl.c: Likewise.
45895         * m4/math_h.m4: New file.
45896         * MODULES.html.sh (Mathematics): Add math.
45897
45898 2007-02-17  Bruno Haible  <bruno@clisp.org>
45899
45900         * modules/wctype-tests: New file.
45901         * tests/test-wctype.c: New file.
45902
45903         * modules/wchar-tests: New file.
45904         * tests/test-wchar.c: New file.
45905
45906         * modules/unistd-tests: New file.
45907         * tests/test-unistd.c: New file.
45908
45909         * modules/time-tests: New file.
45910         * tests/test-time.c: New file.
45911
45912         * modules/sysexits-tests: New file.
45913         * tests/test-sysexits.c: New file.
45914
45915         * modules/sys_time-tests: New file.
45916         * tests/test-sys_time.c: New file.
45917
45918         * modules/sys_stat-tests: New file.
45919         * tests/test-sys_stat.c: New file.
45920
45921         * modules/sys_socket-tests: New file.
45922         * tests/test-sys_socket.c: New file.
45923
45924         * modules/sys_select-tests: New file.
45925         * tests/test-sys_select.c: New file.
45926
45927         * modules/string-tests: New file.
45928         * tests/test-string.c: New file.
45929
45930         * modules/stdbool-tests: New file.
45931         * tests/test-stdbool.c: New file.
45932
45933         * modules/netinet_in-tests: New file.
45934         * tests/test-netinet_in.c: New file.
45935
45936         * modules/inttypes-tests: New file.
45937         * tests/test-inttypes.c: New file.
45938
45939         * modules/fcntl-tests: New file.
45940         * tests/test-fcntl.c: New file.
45941
45942         * modules/byteswap-tests: New file.
45943         * tests/test-byteswap.c: New file.
45944
45945         * modules/arpa_inet-tests: New file.
45946         * tests/test-arpa_inet.c: New file.
45947
45948 2007-02-17  Bruno Haible  <bruno@clisp.org>
45949
45950         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
45951         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
45952         if the corresponding module is not enabled. Emit link warnings if
45953         the function is used nevertheless.
45954         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
45955         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
45956         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
45957         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
45958         * modules/inttypes (Depends-on): Add link-warning.
45959         (Makefile.am): Copy the contents of build-aux/link-warning.h into
45960         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
45961         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
45962         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
45963         * modules/imaxdiv (configure.ac): Likewise.
45964         * modules/strtoimax (configure.ac): Likewise.
45965         * modules/strtoumax (configure.ac): Likewise.
45966
45967 2007-02-17  Bruno Haible  <bruno@clisp.org>
45968
45969         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
45970         gl_STRING_MODULE_INDICATOR_DEFAULTS.
45971         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
45972         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
45973
45974 2007-02-17  Bruno Haible  <bruno@clisp.org>
45975
45976         * modules/link-warning: New file.
45977         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
45978         * lib/string_.h (GL_LINK_WARNING): Remove definition.
45979         * modules/string (Depends-on): Add link-warning.
45980         (Makefile.am): Copy the contents of build-aux/link-warning.h into
45981         string.h.
45982         * MODULES.html.sh (Support for building libraries and executables): Add
45983         link-warning.
45984
45985 2007-02-17  Bruno Haible  <bruno@clisp.org>
45986
45987         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
45988         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
45989         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
45990         long lines.
45991
45992 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
45993             Bruno Haible  <bruno@clisp.org>
45994
45995         * modules/tmpfile: New file.
45996         * lib/tmpfile.c: New file.
45997         * m4/tmpfile.m4: New file.
45998         * MODULES.html.sh (func_all_modules): New section "Input/output".
45999
46000 2007-02-15  Bruno Haible  <bruno@clisp.org>
46001
46002         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
46003         (supports_delete_on_close): New function.
46004         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
46005
46006 2007-02-14  Bruno Haible  <bruno@clisp.org>
46007
46008         * modules/mbspcasecmp-tests: New file.
46009         * tests/test-mbspcasecmp.sh: New file.
46010         * tests/test-mbspcasecmp.c: New file.
46011
46012         New module mbspcasecmp.
46013         * modules/mbspcasecmp: New file.
46014         * lib/mbspcasecmp.c: New file.
46015         * lib/string_.h (strncasecmp): Change warning message.
46016         (mbspcasecmp): New declaration.
46017         * m4/mbspcasecmp.m4: New file.
46018         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46019         GNULIB_MBSPCASECMP.
46020         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
46021         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
46022
46023 2007-02-14  Bruno Haible  <bruno@clisp.org>
46024
46025         * modules/mbsncasecmp-tests: New file.
46026         * tests/test-mbsncasecmp.sh: New file.
46027         * tests/test-mbsncasecmp.c: New file.
46028
46029         New module mbsncasecmp.
46030         * modules/mbsncasecmp: New file.
46031         * lib/mbsncasecmp.c: New file.
46032         * lib/string_.h (mbsncasecmp): New declaration.
46033         * m4/mbsncasecmp.m4: New file.
46034         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46035         GNULIB_MBSNCASECMP.
46036         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
46037         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
46038
46039 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
46040
46041         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
46042         Verify that it doesn't overlap with our flags.
46043         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
46044         do not have the desired effect in multibyte locales; instead, use
46045         mbscasecmp.
46046         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
46047         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
46048         we don't require GNU fnmatch ourselves (if our users require it, they
46049         should do so explicitly).
46050
46051         Fix regex code so it doesn't rely on strcasecmp.
46052         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
46053         Otherwise, include gnulib's langinfo.h.
46054         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
46055         undesirable behavior in non-C locales.  Instead, rely on localecharset.
46056         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
46057         * modules/regex (FILES): Remove m4/codeset.m4.
46058         (Depends-on): Add localcharset.  Remove strcase.
46059
46060 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46061
46062         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
46063         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
46064
46065 2007-02-13  Bruno Haible  <bruno@clisp.org>
46066
46067         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
46068         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46069
46070 2007-02-12  Bruno Haible  <bruno@clisp.org>
46071
46072         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
46073         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
46074         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
46075         time warning rather than a link error.
46076
46077 2007-02-12  Bruno Haible  <bruno@clisp.org>
46078
46079         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
46080         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46081         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46082
46083 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
46084
46085         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
46086         args, not 2.
46087
46088 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
46089
46090         New module 'time', so that apps can include <time.h> as per
46091         POSIX and GNU instead of separate include files like time_r.h
46092         and timegm.h.  This implementation tries out a simpler approach
46093         for replacing decls in standard include files (as compared to
46094         the string module), somewhat as an experiment.
46095
46096         * config/srclist.txt: Comment out mktime.c for now.
46097         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
46098         since it doesn't apply any more.  Use generic wording instead.
46099         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
46100         'time'.
46101         * lib/time_.h, m4/time_h.m4, modules/time: New files.
46102         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
46103         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
46104         Don't include <sys/types.h>; no longer needed since we assume C89.
46105         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
46106         * lib/strftime.c: Likewise.
46107         * lib/time_r.c: Likewise.
46108         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
46109         * lib/nanosleep.c: Include <time.h> first, to check interface.
46110         * lib/strptime.c: Likewise.
46111         * lib/time_r.c: Likewise.
46112         * lib/timegm.c: Likewise.
46113         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
46114         needed.
46115         * lib/timegm.c: Don't include timegm.h; no longer needed.
46116         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
46117         time.h now handles any problems in that area.
46118         (struct timespec, nanosleep): Remove; time.h now arranges for these.
46119         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
46120         that time.h defines struct timespec.
46121         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
46122         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
46123         handles that.
46124         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
46125         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
46126         needed.  Set REPLACE_LOCALTIME.
46127         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
46128         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
46129         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
46130         nanosleep; time_h.m4 now does that.  Don't require
46131         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
46132         module handles this now.
46133         * modules/getdate (Depends-on): Remove timespec.  Add time.
46134         * modules/nanosleep (Depends-on): Likewise.
46135         * modules/stat-time (Depends-on): Likewise.
46136         * modules/nanosleep (Include): Include time.h, not timespec.h.
46137         * modules/strptime (Files): Remove lib/strptime.h.
46138         (Depends-on): Add extensions, time.
46139         (Include): Include time.h, not strptime.h.
46140         * modules/time_r (Files): Remove lib/time_r.h.
46141         (Depends-on): Add time.
46142         (Include): Include time.h, not time_r.h.
46143         * modules/timegm: Likewise.
46144         * modules/timespec (Description): Now does timespec-related decls
46145         of our own, instead of struct timespec itself.
46146         (Depends-on): Add time; remove extensions.
46147         (Maintainer): Add self.
46148         * modules/utimecmp (Depends-on): Add time; remove timespec.
46149         * modules/utimens (Depends-on): Likewise.
46150         * modules/xnanosleep (Depends-on): Likewise.
46151
46152 2007-02-11  Bruno Haible  <bruno@clisp.org>
46153
46154         * lib/c-strstr.c: Include allocsa.h.
46155         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46156         * lib/c-strcasestr.c: Include allocsa.h.
46157         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46158         * lib/strcasestr.c: Include allocsa.h.
46159         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46160         * lib/mbsstr.c: Include allocsa.h.
46161         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
46162         allocsa/freesa instead of malloc/free.
46163         * lib/mbscasestr.c: Include allocsa.h.
46164         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
46165         allocsa/freesa instead of malloc/free.
46166         * modules/c-strstr (Depends-on): Add allocsa.
46167         * modules/c-strcasestr (Depends-on): Likewise.
46168         * modules/strcasestr (Depends-on): Likewise.
46169         * modules/mbsstr (Depends-on): Likewise.
46170         * modules/mbscasestr (Depends-on): Likewise.
46171
46172 2007-02-11  Bruno Haible  <bruno@clisp.org>
46173
46174         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
46175
46176         * modules/mbsspn-tests: New file.
46177         * tests/test-mbsspn.sh: New file.
46178         * tests/test-mbsspn.c: New file.
46179
46180 2007-02-11  Bruno Haible  <bruno@clisp.org>
46181
46182         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
46183
46184         * modules/mbspbrk-tests: New file.
46185         * tests/test-mbspbrk.sh: New file.
46186         * tests/test-mbspbrk.c: New file.
46187
46188 2007-02-11  Bruno Haible  <bruno@clisp.org>
46189
46190         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
46191         unneeded cast.
46192
46193         * modules/mbscspn-tests: New file.
46194         * tests/test-mbscspn.sh: New file.
46195         * tests/test-mbscspn.c: New file.
46196
46197 2007-02-11  Bruno Haible  <bruno@clisp.org>
46198
46199         * modules/mbscasecmp-tests: New file.
46200         * tests/test-mbscasecmp.sh: New file.
46201         * tests/test-mbscasecmp.c: New file.
46202
46203 2007-02-11  Bruno Haible  <bruno@clisp.org>
46204
46205         Ensure O(n) worst-case complexity of mbscasestr.
46206         * lib/mbscasestr.c: Include stdbool.h.
46207         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
46208         functions.
46209         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
46210         the bookkeeping indicates that it's worth it.
46211         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
46212
46213         * modules/mbscasestr-tests: New file.
46214         * tests/test-mbscasestr1.c: New file.
46215         * tests/test-mbscasestr2.sh: New file.
46216         * tests/test-mbscasestr2.c: New file.
46217         * tests/test-mbscasestr3.sh: New file.
46218         * tests/test-mbscasestr3.c: New file.
46219         * tests/test-mbscasestr4.sh: New file.
46220         * tests/test-mbscasestr4.c: New file.
46221         * m4/locale-tr.m4: New file.
46222
46223 2007-02-11  Bruno Haible  <bruno@clisp.org>
46224
46225         Ensure O(n) worst-case complexity of mbsstr.
46226         * lib/mbsstr.c: Include stdbool.h.
46227         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
46228         functions.
46229         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
46230         bookkeeping indicates that it's worth it.
46231         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
46232
46233         * modules/mbsstr-tests: New file.
46234         * tests/test-mbsstr1.c: New file.
46235         * tests/test-mbsstr2.sh: New file.
46236         * tests/test-mbsstr2.c: New file.
46237         * tests/test-mbsstr3.sh: New file.
46238         * tests/test-mbsstr3.c: New file.
46239         * m4/locale-fr.m4: New file.
46240
46241 2007-02-11  Bruno Haible  <bruno@clisp.org>
46242
46243         * lib/mbsrchr.c (mbsrchr): Fix bug.
46244
46245         * modules/mbsrchr-tests: New file.
46246         * tests/test-mbsrchr.sh: New file.
46247         * tests/test-mbsrchr.c: New file.
46248
46249 2007-02-11  Bruno Haible  <bruno@clisp.org>
46250
46251         * lib/mbschr.c (mbschr): Fix bug.
46252
46253         * modules/mbschr-tests: New file.
46254         * tests/test-mbschr.sh: New file.
46255         * tests/test-mbschr.c: New file.
46256         * m4/locale-zh.m4: New file.
46257
46258 2007-02-11  Bruno Haible  <bruno@clisp.org>
46259
46260         Support for copying multibyte string iterators.
46261         * lib/mbiter.h: Include <string.h>.
46262         (mbiter_multi_copy): New function.
46263         (mbi_copy): New macro.
46264         * lib/mbuiter.h: Include <string.h>.
46265         (mbuiter_multi_copy): New function.
46266         (mbui_copy): New macro.
46267
46268 2007-02-11  Bruno Haible  <bruno@clisp.org>
46269
46270         New module mbslen.
46271         * modules/mbslen: New file.
46272         * lib/mbslen.c: New file.
46273         * lib/string_.h (mbslen): New declaration.
46274         * m4/mbslen.m4: New file.
46275         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46276         GNULIB_MBSLEN.
46277         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
46278         * MODULES.html.sh (Internationalization functions): Add mbslen.
46279
46280 2007-02-11  Bruno Haible  <bruno@clisp.org>
46281
46282         Ensure O(n) worst-case complexity of strcasestr substitute.
46283         * lib/strcasestr.c: Include stdbool.h.
46284         (knuth_morris_pratt): New function.
46285         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
46286         bookkeeping indicates that it's worth it.
46287         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
46288
46289         * modules/strcasestr-tests: New file.
46290         * tests/test-strcasestr.c: New file.
46291
46292 2007-02-11  Bruno Haible  <bruno@clisp.org>
46293
46294         Ensure O(n) worst-case complexity of c_strcasestr.
46295         * lib/c-strcasestr.c: Include stdbool.h, string.h.
46296         (knuth_morris_pratt): New function.
46297         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
46298         the bookkeeping indicates that it's worth it.
46299         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
46300
46301         * modules/c-strcasestr-tests: New file.
46302         * tests/test-c-strcasestr.c: New file.
46303
46304 2007-02-11  Bruno Haible  <bruno@clisp.org>
46305
46306         Ensure O(n) worst-case complexity of c_strstr.
46307         * lib/c-strstr.c: Include stdbool.h, string.h.
46308         (knuth_morris_pratt): New function.
46309         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
46310         bookkeeping indicates that it's worth it.
46311         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
46312
46313         * lib/c-strstr.c: Complete rewrite for maintainability.
46314
46315         * modules/c-strstr-tests: New file.
46316         * tests/test-c-strstr.c: New file.
46317
46318 2007-02-11  Bruno Haible  <bruno@clisp.org>
46319
46320         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
46321         5.2.1 and earlier, whereby \055 was treated just like the range
46322         delimiter '-'.
46323         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46324
46325 2007-02-08  Bruno Haible  <bruno@clisp.org>
46326
46327         * modules/regex (Depends-on): Add stdbool.
46328         Reported by Dalibor Topic <robilad@kaffe.org>.
46329
46330 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
46331
46332         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
46333         Prefer returning from main to exiting from it.
46334         Remove unnecessary parens after sizeof.
46335
46336 2007-02-05  Bruno Haible  <bruno@clisp.org>
46337
46338         New module mbssep.
46339         * modules/mbssep: New file.
46340         * lib/mbssep.c: New file.
46341         * lib/string_.h (strsep): Add a conditional link warning.
46342         (mbssep): New declaration.
46343         * m4/mbssep.m4: New file.
46344         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46345         GNULIB_MBSSEP.
46346         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
46347         * MODULES.html.sh (Internationalization functions): Add mbssep.
46348
46349 2007-02-05  Bruno Haible  <bruno@clisp.org>
46350
46351         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
46352         Optimize search in case of 1 delimiter.
46353
46354 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
46355
46356         * lib/acl.h: Include sys/types.h before sys/acl.h.
46357
46358 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
46359
46360         Merge upstream fix for glibc bugzilla #3957:
46361
46362         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
46363
46364         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
46365         bit for RE_HAT_LISTS_NOT_NEWLINE.
46366         (build_charclass_op): Remove bogus comment.
46367
46368 2007-02-05  Simon Josefsson  <simon@josefsson.org>
46369
46370         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
46371
46372 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
46373
46374         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
46375         * lib/memmem.c [!defined _LIBC]: Include config.h.
46376
46377 2007-02-04  Bruno Haible  <bruno@clisp.org>
46378
46379         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
46380         warning message.
46381
46382 2007-02-04  Bruno Haible  <bruno@clisp.org>
46383
46384         New module mbstok_r.
46385         * modules/mbstok_r: New file.
46386         * lib/mbstok_r.c: New file.
46387         * lib/string_.h (strtok_r): Change argument names to match the
46388         comments. Add a conditional link warning.
46389         (mbstok_r): New declaration.
46390         * m4/mbstok_r.m4: New file.
46391         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46392         GNULIB_MBSTOK_R.
46393         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
46394         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
46395
46396 2007-02-04  Bruno Haible  <bruno@clisp.org>
46397
46398         New module mbsspn.
46399         * modules/mbsspn: New file.
46400         * lib/mbsspn.c: New file.
46401         * lib/string_.h (strspn): Add a conditional link warning.
46402         (mbsspn): New declaration.
46403         * m4/mbsspn.m4: New file.
46404         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46405         GNULIB_MBSSPN.
46406         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
46407         * MODULES.html.sh (Internationalization functions): Add mbsspn.
46408
46409 2007-02-04  Bruno Haible  <bruno@clisp.org>
46410
46411         New module mbspbrk.
46412         * modules/mbspbrk: New file.
46413         * lib/mbspbrk.c: New file.
46414         * lib/string_.h (strpbrk): Add a conditional link warning.
46415         (mbspbrk): New declaration.
46416         * m4/mbspbrk.m4: New file.
46417         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46418         GNULIB_MBSPBRK.
46419         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
46420         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
46421
46422 2007-02-04  Bruno Haible  <bruno@clisp.org>
46423
46424         New module mbscspn.
46425         * modules/mbscspn: New file.
46426         * lib/mbscspn.c: New file.
46427         * lib/string_.h (strcspn): Add a conditional link warning.
46428         (mbscspn): New declaration.
46429         * m4/mbscspn.m4: New file.
46430         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46431         GNULIB_MBSCSPN.
46432         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
46433         * MODULES.html.sh (Internationalization functions): Add mbscspn.
46434
46435 2007-02-04  Bruno Haible  <bruno@clisp.org>
46436
46437         New module mbscasestr, reduced goal of strcasestr.
46438         * modules/mbscasestr: New file.
46439         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
46440         (mbscasestr): Renamed from strcasestr.
46441         * lib/strcasestr.c: Don't include mbuiter.h.
46442         (strcasestr): Remove support for multibyte locales.
46443         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
46444         Change the conditional link warning.
46445         (mbscasestr): New declaration.
46446         * m4/mbscasestr.m4: New file.
46447         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
46448         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
46449         REPLACE_STRCASESTR.
46450         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
46451         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46452         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
46453         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
46454         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
46455         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
46456         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
46457         (Depends-on): Remove mbuiter.
46458         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
46459
46460 2007-02-04  Bruno Haible  <bruno@clisp.org>
46461
46462         Simplify handling of strncasecmp.
46463         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
46464         the conditional link warning.
46465         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46466         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
46467         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
46468         * modules/strcase (configure.ac): Don't invoke
46469         gl_STRING_MODULE_INDICATOR.
46470         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
46471
46472 2007-02-04  Bruno Haible  <bruno@clisp.org>
46473
46474         New module mbscasecmp, reduced goal of strcasecmp.
46475         * modules/mbscasecmp: New file.
46476         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
46477         (mbscasecmp): Renamed from strcasecmp.
46478         * lib/strcasecmp.c: Don't include mbuiter.h.
46479         (strcasecmp): Remove support for multibyte locales.
46480         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
46481         Change the conditional link warning.
46482         (mbscasecmp): New declaration.
46483         * m4/mbscasecmp.m4: New file.
46484         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
46485         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
46486         REPLACE_STRCASECMP.
46487         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
46488         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46489         GNULIB_MBSCASECMP.
46490         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
46491         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
46492         * modules/strcase (Files): Remove m4/mbrtowc.m4.
46493         (Depends-on): Remove mbuiter.
46494         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
46495
46496 2007-02-04  Bruno Haible  <bruno@clisp.org>
46497
46498         New module mbsstr. Remove module strstr.
46499         * modules/mbsstr: New file.
46500         * modules/strstr: Remove file.
46501         * lib/mbsstr.c: Renamed from lib/strstr.c.
46502         (mbsstr): Renamed from strstr.
46503         * lib/string_.h (strstr): Remove declaration. Change the conditional
46504         link warning.
46505         (mbsstr): New declaration.
46506         * m4/mbsstr.m4: New file.
46507         * m4/strstr.m4: Remove file.
46508         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
46509         REPLACE_STRSTR.
46510         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
46511         Don't initialize GNULIB_STRSTR.
46512         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
46513         substitute GNULIB_STRSTR and REPLACE_STRSTR.
46514         * MODULES.html.sh (Internationalization functions): Add mbsstr.
46515         (Support for systems lacking ANSI C 89): Remove strstr.
46516
46517 2007-02-04  Bruno Haible  <bruno@clisp.org>
46518
46519         New module mbsrchr.
46520         * modules/mbsrchr: New file.
46521         * lib/mbsrchr.c: New file.
46522         * lib/string_.h (strrchr): Add a conditional link warning.
46523         (mbsrchr): New declaration.
46524         * m4/mbsrchr.m4: New file.
46525         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46526         GNULIB_MBSRCHR.
46527         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
46528         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
46529
46530 2007-02-04  Bruno Haible  <bruno@clisp.org>
46531
46532         New module mbschr.
46533         * modules/mbschr: New file.
46534         * lib/mbschr.c: New file.
46535         * lib/string_.h (strchr): Add a conditional link warning.
46536         (mbschr): New declaration.
46537         * m4/mbschr.m4: New file.
46538         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46539         GNULIB_MBSCHR.
46540         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
46541         * MODULES.html.sh (Internationalization functions): Add mbschr.
46542
46543 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
46544
46545         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
46546
46547         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
46548
46549 2007-02-04  Bruno Haible  <bruno@clisp.org>
46550
46551         New module description section 'configure.ac-early'.
46552         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
46553         (func_get_autoconf_early_snippet): New function.
46554         (func_import, func_create_testdir): Use it. Remove special cases for
46555         modules 'extensions' and 'lock'.
46556         * modules/extensions (configure.ac-early): Require
46557         gl_USE_SYSTEM_EXTENSIONS.
46558         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
46559
46560 2007-02-04  Bruno Haible  <bruno@clisp.org>
46561
46562         Make use of gcj-4.3's -fsource and -ftarget option.
46563         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
46564         and if so try the options -fsource and -ftarget.
46565         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
46566         source_version, ftarget_option, target_version arguments.
46567         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
46568         (is_envjavac_oldgcj_14_14_usable): Renamed from
46569         is_envjavac_gcj_14_14_usable.
46570         (is_envjavac_oldgcj_14_13_usable): Renamed from
46571         is_envjavac_gcj_14_13_usable.
46572         (is_gcj_present): Update.
46573         (is_gcj_43, is_gcj43_usable): New functions.
46574         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
46575         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
46576         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
46577         try the options -fsource and -ftarget.
46578
46579 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
46580
46581         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
46582         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
46583         larger value.
46584
46585 2007-02-03  Jim Meyering  <jim@meyering.net>
46586
46587         Give tools a better chance to allocate space for very large buffers.
46588         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
46589
46590         Make pwd and readlink work also when run with an unreadable parent dir
46591         on systems with openat support.
46592         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
46593         provided getcwd function, even when we have openat support.
46594         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
46595
46596 2007-02-02  Bruno Haible  <bruno@clisp.org>
46597
46598         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
46599         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
46600         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
46601         portability problems if one of these functions is only used on specific
46602         platforms.
46603         Reported by Paul Eggert.
46604
46605 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
46606
46607         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
46608         is causing more trouble than it's curing.
46609         * lib/regex_internal.h (__mempcpy): Remove.
46610         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
46611         (and make the code a tad smaller to boot).
46612         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
46613
46614 2007-02-02  Jim Meyering  <jim@meyering.net>
46615
46616         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
46617         section, not in the Makefile.am: one.
46618
46619 2007-02-02  Eric Blake  <ebb9@byu.net>
46620
46621         * lib/strchrnul.c: Always include config.h first.
46622
46623         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
46624         gnulib strstr is not necessary here.
46625
46626 2007-02-02  Simon Josefsson  <simon@josefsson.org>
46627
46628         * m4/socklen.m4: Fix typo.
46629
46630 2007-02-02  Eric Blake  <ebb9@byu.net>
46631
46632         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
46633         * modules/netinet_in (Makefile.am): Likewise.
46634
46635 2007-02-01  Bruno Haible  <bruno@clisp.org>
46636
46637         * lib/string_.h (GL_LINK_WARNING): New macro.
46638         (strcasecmp, strstr, strcasestr): If provided by the system,
46639         conditionally define as a macro that leads to a warning instead of to
46640         an error.
46641         (strncasecmp): Conditionally define as a macro that leads to a warning.
46642
46643 2007-02-01  Karl Berry  <karl@gnu.org>
46644
46645         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
46646
46647 2007-02-01  Bruno Haible  <bruno@clisp.org>
46648
46649         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
46650         renamings.
46651
46652 2007-02-01  Eric Blake  <ebb9@byu.net>
46653
46654         * modules/regex (Depends-on): Revert dependence on mempcpy.
46655         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
46656         module's definition of mempcpy.
46657         Reported by Paul Eggert.
46658
46659 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
46660
46661         * lib/string_.h: If the gnulib module XYZ is not present, undefine
46662         the symbol XYZ before redefining it.  This fixes a problem with
46663         programs that don't use XYZ, when compiled on systems that define
46664         XYZ to something else.
46665
46666 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
46667
46668         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
46669         occurs when "mkdir -m foo" creates a setgid directory that is (1)
46670         writeable to group or other and (2) is intended to have a special
46671         mode bit that is set or cleared.  In such a case, the directory
46672         should be neither group- nor other-writeable until the special
46673         mode bits are right.
46674
46675 2007-01-31  Eric Blake  <ebb9@byu.net>
46676
46677         * modules/mountlist (Depends-on): Add strstr.
46678
46679         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
46680         bug.
46681         * modules/string (Makefile.am): Remove redundant replacement.
46682         * modules/regex (Depends-on): Add mempcpy.
46683
46684 2007-01-31  Bruno Haible  <bruno@clisp.org>
46685
46686         New module description field 'Link'.
46687         * gnulib-tool (func_usage): Document --extract-link-directive.
46688         (sed_extract_prog): Recognize 'Link' directive.
46689         (func_get_link_directive): New function.
46690         (func_import): Show summary of link directives.
46691         Handle --extract-link-directive option.
46692         * modules/acl (Link): New section.
46693         * modules/clock-time (Link): New section.
46694         * modules/euidaccess (Link): New section.
46695         * modules/gettext (Link): New section.
46696         * modules/iconv (Link): New section.
46697         * modules/lock (Link): New section.
46698         * modules/nanosleep (Link): New section.
46699         * modules/readline (Link): New section.
46700
46701 2007-01-27  Bruno Haible  <bruno@clisp.org>
46702
46703         Enforce the use of gnulib modules for unportable <string.h> functions.
46704         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
46705         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
46706         (gl_HEADER_STRING_H_BODY): Require it.
46707         * lib/string_.h: If the gnulib module XYZ is not present, redefine
46708         the symbol XYZ to one that gives a link error.
46709         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
46710         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
46711         * modules/mempcpy (configure.ac): Likewise.
46712         * modules/memrchr (configure.ac): Likewise.
46713         * modules/stpcpy (configure.ac): Likewise.
46714         * modules/stpncpy (configure.ac): Likewise.
46715         * modules/strcase (configure.ac): Likewise.
46716         * modules/strcasestr (configure.ac): Likewise.
46717         * modules/strchrnul (configure.ac): Likewise.
46718         * modules/strdup (configure.ac): Likewise.
46719         * modules/strndup (configure.ac): Likewise.
46720         * modules/strnlen (configure.ac): Likewise.
46721         * modules/strpbrk (configure.ac): Likewise.
46722         * modules/strsep (configure.ac): Likewise.
46723         * modules/strstr (configure.ac): Likewise.
46724         * modules/strtok_r (configure.ac): Likewise.
46725
46726 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
46727
46728         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
46729
46730 2007-01-30  Jim Meyering  <jim@meyering.net>
46731
46732         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
46733
46734 2007-01-29  Bruno Haible  <bruno@clisp.org>
46735
46736         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
46737         * lib/execute.c: Likewise.
46738         * lib/pipe.c: Likewise.
46739         * lib/printf-args.h: Likewise.
46740         * lib/printf-args.c: Likewise.
46741         * lib/printf-parse.c: Likewise.
46742         * lib/vasnprintf.c: Likewise.
46743
46744 2007-01-29  Eric Blake  <ebb9@byu.net>
46745
46746         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
46747         declaration.
46748
46749 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
46750
46751         * lib/strptime.h (strptime): Use 'restrict' for args where
46752         POSIX requires this.
46753         * lib/strptime.c (strptime): Likewise.
46754         Change license notice from LGPL to GPL, since gnulib-tool will
46755         change this as needed.
46756         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
46757         defined.
46758         Include "strptime.h" first, to check interface.
46759         Do not #undef _LIBC and _NL_CURRENT.
46760         Do not include <stdlib.h>; no longer needed.
46761         Include "time_r.h" and declare ptime_locale_status
46762         only if _LIBC is not defined.
46763         (__P): Remove unused macro.
46764         (match_string): Bring back glibc version, but use it only if _LIBC
46765         is defined.
46766         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
46767         Remove unnecessary assertion and abort() call.
46768         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
46769         * m4/strptime.m4: Fix serial number comment.
46770         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
46771         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
46772         (Depends-on): Add time_r.
46773
46774 2007-01-29  Bruno Haible  <bruno@clisp.org>
46775
46776         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46777         strptime.
46778         * modules/strptime (Depends-on): Add stdbool.
46779         * lib/strptime.h: Include <time.h> always. Add comments.
46780
46781 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46782
46783         * modules/strptime: New file.
46784         * lib/strptime.h: New file.
46785         * lib/strptime.c: New file.
46786         * m4/strptime.m4: New file.
46787
46788 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
46789
46790         * MODULES.html.sh: New module mpsort.
46791         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
46792
46793         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
46794         a circularity problem with HP-UX ia64 reported by Bob Proulx in
46795         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
46796         All uses changed.
46797         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
46798         All uses changed.
46799         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
46800         to _Restrict_.
46801         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
46802         the parameter matches the prototype.
46803
46804 2007-01-28  Jim Meyering  <jim@meyering.net>
46805
46806         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
46807         sys/time.h here, reverting that part of the previous patch:
46808         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
46809
46810 2007-01-28  Bruno Haible  <bruno@clisp.org>
46811
46812         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
46813         value of $(SYS_TIME_H).
46814         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
46815         remove it conditionally, too. [added by Jim Meyering]
46816         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
46817         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
46818         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
46819         GETTIMEOFDAY_REPLACEMENT to 1.
46820
46821 2007-01-28  Bruno Haible  <bruno@clisp.org>
46822
46823         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
46824         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
46825         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
46826         Set UNISTD_H instead of UNISTD_H2.
46827         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
46828
46829 2007-01-28  Bruno Haible  <bruno@clisp.org>
46830
46831         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
46832         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
46833
46834 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46835
46836         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
46837         (func_create_testdir): Ensure C locale for `grep' and `tr'
46838         character ranges.
46839         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
46840         ACLOCAL_AMFLAGS parsing state machine.
46841
46842 2007-01-27  Bruno Haible  <bruno@clisp.org>
46843
46844         * modules/unistr/base: Update.
46845
46846 2007-01-27  Bruno Haible  <bruno@clisp.org>
46847
46848         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
46849         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
46850         * modules/unistr/u32-mbtouc-unsafe: Renamed from
46851         modules/unistr/u32-mbtouc.
46852         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
46853         * lib/unistr.h: Update.
46854         * lib/linebreak.c: Update.
46855         * modules/unistr/u32-mbtouc: Renamed from
46856         modules/unistr/u32-mbtouc-safe.
46857         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
46858         * lib/unistr.h: Update.
46859         * lib/unistr/u32-to-u8.c: Update.
46860         * lib/unistr/u32-to-u16.c: Update.
46861
46862 2007-01-27  Bruno Haible  <bruno@clisp.org>
46863
46864         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
46865         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
46866         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
46867         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
46868         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
46869         * modules/unistr/u16-mbtouc-unsafe: Renamed from
46870         modules/unistr/u16-mbtouc.
46871         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
46872         * lib/unistr.h: Update.
46873         * lib/linebreak.c: Update.
46874         * modules/linebreak: Update.
46875         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
46876         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
46877         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
46878         * modules/unistr/u16-mbtouc: Renamed from
46879         modules/unistr/u16-mbtouc-safe.
46880         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
46881         * lib/unistr.h: Update.
46882         * lib/unistr/u16-to-u8.c: Update.
46883         * modules/unistr/u16-to-u8: Update.
46884         * lib/unistr/u16-to-u32.c: Update.
46885         * modules/unistr/u16-to-u32: Update.
46886
46887 2007-01-27  Bruno Haible  <bruno@clisp.org>
46888
46889         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
46890         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
46891         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
46892         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
46893         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
46894         * modules/unistr/u8-mbtouc-unsafe: Renamed from
46895         modules/unistr/u8-mbtouc.
46896         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
46897         * lib/unistr.h: Update.
46898         * lib/striconveh.c: Update.
46899         * modules/striconveh: Update.
46900         * lib/linebreak.c: Update.
46901         * modules/linebreak: Update.
46902         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
46903         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
46904         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
46905         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
46906         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
46907         * lib/unistr.h: Update.
46908         * lib/striconveh.c: Update.
46909         * modules/striconveh: Update.
46910         * lib/unistr/u8-to-u16.c: Update.
46911         * modules/unistr/u8-to-u16: Update.
46912         * lib/unistr/u8-to-u32.c: Update.
46913         * modules/unistr/u8-to-u32: Update.
46914
46915 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46916
46917         Sync from Libtool.
46918         * lib/argz.c: Do not include strings.h nor memory.h, include
46919         string.h unconditionally.  Patch by Simon Josefsson.
46920
46921 2007-01-27  Bruno Haible  <bruno@clisp.org>
46922
46923         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
46924         from gl_HEADER_STRING_H_BODY.
46925         (gl_HEADER_STRING_H_BODY): Require it.
46926         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
46927         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46928         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46929         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46930         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46931         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
46932         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46933         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46934         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
46935         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46936         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46937         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
46938         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46939         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46940         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
46941
46942 2007-01-27  Bruno Haible  <bruno@clisp.org>
46943
46944         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
46945         check_PROGRAMS into noinst_PROGRAMS.
46946         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
46947         check_PROGRAMS in this case.
46948         (func_import): Set for_test to false.
46949         (func_create_testdir): Set for_test to true.
46950
46951 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46952             Bruno Haible  <bruno@clisp.org>
46953
46954         * modules/strcasestr (Files): Remove lib/strcasestr.h.
46955         (Depends-on): Add string.
46956         (Includes): Use <string.h> instead of strcasestr.h.
46957         * modules/string (Makefile.am): Also substitute the value of
46958         REPLACE_STRCASESTR.
46959         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
46960         assume strcasestr is declared in <string.h> not <strings.h>. Also
46961         set REPLACE_STRCASESTR.
46962         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
46963         REPLACE_STRCASESTR.
46964         * lib/strcasestr.h: Remove file.
46965         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
46966         * lib/string_.h (strcasestr): New declaration.
46967
46968 2007-01-27  Bruno Haible  <bruno@clisp.org>
46969
46970         * lib/string_.h: Use 'extern'.
46971
46972 2007-01-27  Jim Meyering  <jim@meyering.net>
46973
46974         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
46975         of set-but-not-used local, "q".
46976
46977         * lib/mempcpy.c: Include <config.h> before <string.h>.
46978         This fixes a compilation error on HP-UX, due to the system's
46979         "restrict"-using mempcpy prototype.
46980
46981 2007-01-26  Bruno Haible  <bruno@clisp.org>
46982
46983         Small optimization.
46984         * lib/javacomp.c: Include c-strstr.h.
46985          (is_envjavac_gcj): Use c_strstr instead of strstr.
46986         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
46987
46988 2007-01-26  Bruno Haible  <bruno@clisp.org>
46989
46990         * MODULES.html.sh (Unicode string functions): Add the new modules.
46991
46992         * modules/uniconv/u32-strconv-to-locale: New file.
46993         * lib/uniconv/u32-strconv-to-locale.c: New file.
46994
46995         * modules/uniconv/u16-strconv-to-locale: New file.
46996         * lib/uniconv/u16-strconv-to-locale.c: New file.
46997
46998         * modules/uniconv/u8-strconv-to-locale: New file.
46999         * lib/uniconv/u8-strconv-to-locale.c: New file.
47000
47001         * modules/uniconv/u32-strconv-from-locale: New file.
47002         * lib/uniconv/u32-strconv-from-locale.c: New file.
47003
47004         * modules/uniconv/u16-strconv-from-locale: New file.
47005         * lib/uniconv/u16-strconv-from-locale.c: New file.
47006
47007         * modules/uniconv/u8-strconv-from-locale: New file.
47008         * lib/uniconv/u8-strconv-from-locale.c: New file.
47009
47010         * modules/uniconv/u32-strconv-to-enc: New file.
47011         * lib/uniconv/u32-strconv-to-enc.c: New file.
47012         * modules/uniconv/u32-strconv-to-enc-tests: New file.
47013         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
47014
47015         * modules/uniconv/u16-strconv-to-enc: New file.
47016         * lib/uniconv/u16-strconv-to-enc.c: New file.
47017         * lib/uniconv/u-strconv-to-enc.h: New file.
47018         * modules/uniconv/u16-strconv-to-enc-tests: New file.
47019         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
47020
47021         * modules/uniconv/u8-strconv-to-enc: New file.
47022         * lib/uniconv/u8-strconv-to-enc.c: New file.
47023         * modules/uniconv/u8-strconv-to-enc-tests: New file.
47024         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
47025
47026         * modules/uniconv/u32-strconv-from-enc: New file.
47027         * lib/uniconv/u32-strconv-from-enc.c: New file.
47028         * modules/uniconv/u32-strconv-from-enc-tests: New file.
47029         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
47030
47031         * modules/uniconv/u16-strconv-from-enc: New file.
47032         * lib/uniconv/u16-strconv-from-enc.c: New file.
47033         * modules/uniconv/u16-strconv-from-enc-tests: New file.
47034         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
47035
47036         * modules/uniconv/u8-strconv-from-enc: New file.
47037         * lib/uniconv/u8-strconv-from-enc.c: New file.
47038         * lib/uniconv/u-strconv-from-enc.h: New file.
47039         * modules/uniconv/u8-strconv-from-enc-tests: New file.
47040         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
47041
47042         * modules/uniconv/u32-conv-from-enc: New file.
47043         * lib/uniconv/u32-conv-from-enc.c: New file.
47044         * modules/uniconv/u32-conv-from-enc-tests: New file.
47045         * tests/uniconv/test-u32-conv-from-enc.c: New file.
47046
47047         * modules/uniconv/u16-conv-from-enc: New file.
47048         * lib/uniconv/u16-conv-from-enc.c: New file.
47049         * lib/uniconv/u-conv-from-enc.h: New file.
47050         * modules/uniconv/u16-conv-from-enc-tests: New file.
47051         * tests/uniconv/test-u16-conv-from-enc.c: New file.
47052
47053         * modules/uniconv/u8-conv-from-enc: New file.
47054         * lib/uniconv/u8-conv-from-enc.c: New file.
47055         * modules/uniconv/u8-conv-from-enc-tests: New file.
47056         * tests/uniconv/test-u8-conv-from-enc.c: New file.
47057
47058         * modules/uniconv/base: New file.
47059         * lib/uniconv.h: New file.
47060
47061 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47062
47063         * doc/gnulib-tool.texi (Initial import): Update to match current
47064         behavior with strdup module.
47065         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
47066         * lib/memmem.h: Remove; all uses removed.  This is now done
47067         by <string.h>.
47068         * lib/mempcpy.h: Likewise.
47069         * lib/memrchr.h: Likewise.
47070         * lib/stpcpy.h: Likewise.
47071         * lib/stpncpy.h: Likewise.
47072         * lib/strcase.h: Likewise.
47073         * lib/strchrnul.h: Likewise.
47074         * lib/strdup.h: Likewise.
47075         * lib/strndup.h: Likewise.
47076         * lib/strnlen.h: Likewise.
47077         * lib/strpbrk.h: Likewise.
47078         * lib/strsep.h: Likewise.
47079         * lib/strstr.h: Likewise.
47080         * lib/strtok_r.h: Likewise.
47081         * lib/string_.h: New file.
47082         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
47083         Rely on <string.h> instead.
47084         * lib/canon-host.c: Likewise.
47085         * lib/chdir-long.c: Likewise.
47086         * lib/concatpath.c: Likewise.
47087         * lib/exclude.c: Likewise.
47088         * lib/fchdir.c: Likewise.
47089         * lib/getaddrinfo.c: Likewise.
47090         * lib/getcwd.c: Likewise.
47091         * lib/getsubopt.c: Likewise.
47092         * lib/glob.c: Likewise.
47093         * lib/hard-locale.c: Likewise.
47094         * lib/iconvme.c: Likewise.
47095         * lib/javacomp.c: Likewise.
47096         * lib/mempcpy.c: Likewise.
47097         * lib/memrchr.c: Likewise.
47098         * lib/regex_internal.h: Likewise.
47099         * lib/stpncpy.c: Likewise.
47100         * lib/strcasecmp.c: Likewise.
47101         * lib/strchrnul.c: Likewise.
47102         * lib/strdup.c: Likewise.
47103         * lib/striconv.c: Likewise.
47104         * lib/striconveh.c: Likewise.
47105         * lib/striconveha.c: Likewise.
47106         * lib/strncasecmp.c: Likewise.
47107         * lib/strndup.c: Likewise.
47108         * lib/strnlen.c: Likewise.
47109         * lib/strsep.c: Likewise.
47110         * lib/strstr.c: Likewise.
47111         * lib/strtok_r.c: Likewise.
47112         * lib/userspec.c: Likewise.
47113         * lib/w32spawn.h: Likewise.
47114         * lib/xstrndup.c: Likewise.
47115         * lib/mountlist.c (strstr): Remove decl.
47116         * m4/string_h.m4: New file.
47117         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
47118         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
47119         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
47120         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
47121         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
47122         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
47123         Set REPLACE_STRCASECMP if necessary.
47124         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
47125         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
47126         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
47127         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
47128         HAVE_DECL_STRDUP if necessary.
47129         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
47130         since gl_FUNC_STRNDUP does that now.
47131         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
47132         Check for decl here...
47133         (gl_PREREQ_STRNLEN): ... not here.
47134         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
47135         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
47136         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
47137         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
47138         necessary.
47139         * modules/string: New file.
47140         * modules/memmem (Files): Remove special-purpose include file.
47141         (Depends-on): Add string.
47142         (Include): Include <string.h>, not the removed file.
47143         * modules/mempcpy: Likewise.
47144         * modules/memrchr: Likewise.
47145         * modules/stpcpy: Likewise.
47146         * modules/stpncpy: Likewise.
47147         * modules/strcase: Likewise.
47148         * modules/strchrnul: Likewise.
47149         * modules/strdup: Likewise.
47150         * modules/strndup: Likewise.
47151         * modules/strnlen: Likewise.
47152         * modules/strpbrk: Likewise.
47153         * modules/strsep: Likewise.
47154         * modules/strstr: Likewise.
47155         * modules/strtok_r: Likewise.
47156         * tests/test-dirname.c: Don't include "strdup.h", since
47157         <string.h> now suffices.
47158         * tests/test-memmem.c: Don't include "memmem.h", since
47159         <string.h> now suffices.
47160
47161 2007-01-25  Bruno Haible  <bruno@clisp.org>
47162
47163         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
47164         *resultp is 0.
47165
47166         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
47167         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
47168         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
47169         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
47170
47171         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
47172         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
47173         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
47174         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
47175         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
47176         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
47177
47178 2007-01-24  Bruno Haible  <bruno@clisp.org>
47179
47180         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
47181         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
47182         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
47183         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
47184         gl_FUNC_FTS_CORE.
47185         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
47186         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
47187         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47188         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
47189         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
47190         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
47191         gl_FUNC_FCHOWNAT.
47192         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
47193         gl_FUNC_STRFTIME.
47194         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
47195         Reported by Ralf Wildenhues.
47196
47197 2007-01-24  Bruno Haible  <bruno@clisp.org>
47198
47199         Drop AC_REQUIRE calls that are redundant with the module dependencies.
47200         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
47201         gl_GETADDRINFO.
47202         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
47203         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
47204         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
47205
47206 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
47207
47208         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
47209         Don't use 'exit'; just return from 'main'.
47210         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
47211
47212         * lib/fnmatch_.h: Readjust white space and comments to match
47213         glibc, to avoid spurious diffs.
47214
47215 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47216
47217         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
47218         2004-12-01 change by Jakub Jelinek, since this code won't compile
47219         if !LIBC.  Problem reported by Bob Proulx.
47220
47221 2007-01-23  Bruno Haible  <bruno@clisp.org>
47222
47223         * lib/striconveh.c: Include c-strcaseeq.h.
47224         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
47225         * modules/striconveh (Depends-on): Add c-strcaseeq.
47226
47227 2007-01-23  Bruno Haible  <bruno@clisp.org>
47228
47229         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
47230
47231         * modules/c-strcaseeq: New file.
47232         * lib/c-strcaseeq.h: New file.
47233
47234         * modules/streq: New file.
47235         * lib/streq.h: New file.
47236
47237 2007-01-23  Bruno Haible  <bruno@clisp.org>
47238
47239         * modules/striconveha-tests: New file.
47240         * tests/test-striconveha.c: New file.
47241
47242         * lib/striconveha.h: Include <stdbool.h>.
47243         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
47244         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
47245         (mem_iconveha_notranslit): Renamed from mem_iconveha.
47246         (mem_iconveha): New function.
47247         (str_iconveha_notranslit): Renamed from str_iconveha.
47248         (str_iconveha): New function.
47249         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
47250         c-strcase.
47251
47252 2007-01-23  Bruno Haible  <bruno@clisp.org>
47253
47254         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
47255         encodings without forgiving before trying any encoding with handler.
47256         (str_iconveha): Try all encodings without forgiving before trying any
47257         encoding with handler.
47258
47259 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47260
47261         Import the following changes from libc.
47262
47263         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47264
47265         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
47266
47267         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
47268
47269         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
47270         normal_bracket label.
47271
47272         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
47273
47274         [BZ #361]
47275         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
47276         to normal_bracket after fetching the next character.
47277
47278 2007-01-22  Bruno Haible  <bruno@clisp.org>
47279
47280         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
47281         argument.
47282         * lib/striconveh.c (iconv_carefully_1): New function.
47283         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
47284         argument.
47285         (str_cd_iconveh): Update.
47286         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
47287         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
47288         * tests/test-striconveh.c (MAGIC): New macro.
47289         (new_offsets): New function.
47290         (main): Test call with and without offsets.
47291
47292 2007-01-22  Bruno Haible  <bruno@clisp.org>
47293
47294         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
47295         * modules/sys_select (Makefile.am): Likewise.
47296         * modules/sys_socket (Makefile.am): Likewise.
47297         * modules/sys_time (Makefile.am): Likewise.
47298
47299 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47300
47301         * modules/gettimeofday (License): Change from GPL to LGPL, since
47302         gettimeofday is a library function.
47303
47304 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47305
47306         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
47307
47308 2007-01-21  Bruno Haible  <bruno@clisp.org>
47309
47310         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
47311
47312 2007-01-21  Bruno Haible  <bruno@clisp.org>
47313
47314         * modules/striconveha: New file.
47315         * lib/striconveha.h: New file.
47316         * lib/striconveha.c: New file.
47317         * MODULES.html.sh (Internationalization functions): Add striconveha.
47318         * lib/striconv.c (str_iconv): Optimize the case of an empty input
47319         string.
47320         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
47321
47322 2007-01-21  Bruno Haible  <bruno@clisp.org>
47323
47324         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
47325         * lib/striconveh.c (str_iconveh): Likewise.
47326
47327 2007-01-21  Bruno Haible  <bruno@clisp.org>
47328
47329         * lib/striconveh.h (mem_iconveh): New declaration.
47330         * lib/striconveh.c (mem_iconveh): New function.
47331         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
47332
47333 2007-01-21  Bruno Haible  <bruno@clisp.org>
47334
47335         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
47336
47337         * lib/striconveh.h (mem_cd_iconveh): Change specification.
47338         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
47339         original result buffer.
47340         (str_cd_iconveh): Update.
47341         * tests/test-striconveh.c (main): Update.
47342
47343         * lib/striconv.h (mem_cd_iconv): Change specification.
47344         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
47345         result buffer.
47346         (str_cd_iconv): Update.
47347         * tests/test-striconv.c (main): Update.
47348
47349 2007-01-21  Bruno Haible  <bruno@clisp.org>
47350
47351         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
47352
47353 2007-01-20  Jim Meyering  <jim@meyering.net>
47354
47355         * lib/userspec.c (parse_with_separator): If a user or group string
47356         starts with "+", skip the corresponding name-to-ID look-up, since
47357         such a look-up must fail: user and group names may not include "+".
47358
47359 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
47360
47361         * lib/poll.c: Include sys/time.h and time.h unconditionally,
47362         since we now assume the sys_time module.
47363         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
47364         check for sys/time.h; no longer needed.
47365         * modules/poll (Depends-on): Depend on sys_time.
47366
47367 2007-01-18  Bruno Haible  <bruno@clisp.org>
47368
47369         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
47370         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
47371
47372         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
47373         gettimeofday.
47374
47375         * tests/test-gettimeofday.c: Include <time.h>.
47376         (dummy): Remove variable.
47377
47378         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
47379         gl_HEADER_SYS_TIME_H.
47380         (gl_HEADER_SYS_TIME_H): New macro.
47381
47382         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
47383         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47384         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
47385         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
47386         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47387         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
47388         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
47389         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47390         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
47391         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
47392         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47393
47394         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
47395         last change; it caused a compilation error when cross-compiling to
47396         Cygwin.
47397
47398 2007-01-18  Jim Meyering  <jim@meyering.net>
47399
47400         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
47401         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
47402         than the race-prone "test -d sys || mkdir sys".
47403         (configure.ac): Use AC_PROG_MKDIR_P.
47404         * modules/sys_select: Likewise.
47405         * modules/sys_socket: Likewise.
47406         * modules/sys_time: Likewise.
47407
47408 2007-01-18  Eric Blake  <ebb9@byu.net>
47409
47410         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
47411         replace gettimeofday.
47412         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
47413         name, to avoid infinite recursion.
47414
47415 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
47416
47417         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
47418         module sys_time.
47419         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
47420         assume timespec.h defines struct timeval.
47421         * lib/settime.c: Likewise.
47422         * lib/utimens.c: Likewise.
47423         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
47424         since we now assume the gettimeofday module.
47425         * lib/tempname.c (__gen_tempname): Likewise.
47426         * lib/gettimeofday.h: Remove.
47427         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
47428         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
47429         Include <time.h>, for 'time()'.
47430         (localtime_buffer_addr): Also use this workaround if
47431         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
47432         to simplify the uses.  All uses changed.
47433         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
47434         that #undef is inside {}, and 'const' follows type name consistently.
47435         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
47436         (gettimeofday): Do not use the maximum possible value for
47437         tv->tv_usec, since that might break usages other than ls.c.
47438         Instead, we'll leave ls.c alone.  This undoes today's patch
47439         by Bruno.  Add a compile-time warning for 1s-clock resolution;
47440         we've never observed the problem but might as well keep the
47441         canary.
47442         * lib/nanosleep.c: Include timespec.h first, for interface check.
47443         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
47444         now assume the sys_time module.
47445         * lib/tempname.c: Likewise.
47446         * lib/timespec.h: Likewise.
47447         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
47448         needed.
47449         * lib/strftime.c: Likewise.
47450         * lib/timespec.h: Likewise.
47451         * lib/posixtm.c: Include posixtm.h first, for interface check.
47452         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
47453         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
47454         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
47455         * lib/sys_time_.h: New file.
47456         * lib/timespec.h (struct timespec): Use long int, not long.
47457         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
47458         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
47459         Remove obsolescent call to AC_HEADER_TIME.
47460         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
47461         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47462         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
47463         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
47464         Likewise.
47465         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
47466         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
47467         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
47468         into the sys_time module.  Check for gettimeofday just once.
47469         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
47470         for gettimeofday signature to just check the signature.  Merely
47471         compile it, since linking doesn't test signature.  Improve test for
47472         whether gettimeofday.o is actually needed.
47473         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
47474         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
47475         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
47476         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47477         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
47478         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
47479         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
47480         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
47481         than worrying about sys/time.h.
47482         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47483         Don't bother worrying about TIME_WITH_SYS_TIME.
47484         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
47485         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
47486         * m4/sys_time_h.m4: New file.
47487         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
47488         Don't include sys/time.h.  Return from main rather than exiting.
47489         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
47490         all uses changed.
47491         * modules/gethrxtime (Depends-on): Add sys_time.
47492         * modules/gettime (Depends-on): Likewise.
47493         * modules/gettimeofday (Depends-on): Likewise.
47494         * modules/nanosleep (Depends-on): Likewise.
47495         * modules/settime (Depends-on): Likewise.
47496         * modules/tempname (Depends-on): Likewise.
47497         * modules/utimens (Depends-on): Likewise.
47498         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
47499         (Include:) Change back to <sys/time.h>.
47500         (Maintainer:) Add self.
47501         * modules/sys_time: New file.
47502         * modules/tempname (Depends-on): Add gettimeofday.
47503         * tests/test-gettimeofday.c: Include <sys/time.h>
47504         rather than gettimeofday.h.
47505
47506 2007-01-17  Bruno Haible  <bruno@clisp.org>
47507
47508         * gnulib-tool (func_get_license): Revert last patch. Instead, let
47509         the license default to GPL.
47510         (func_create_testdir): Don't complain if a module is LGPL and its
47511         tests module depends on GPLed modules.
47512
47513 2007-01-17  Bruno Haible  <bruno@clisp.org>
47514
47515         * lib/gettimeofday.c (gettimeofday): Add code for the case
47516         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
47517         maximum possible value for tv->tv_usec, rather than the minimum one.
47518
47519 2005-10-08  Martin Lambers  <marlam@marlam.de>
47520 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47521 2007-01-16  Bruno Haible  <bruno@clisp.org>
47522
47523         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
47524         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
47525         gl_FUNC_GETTIMEOFDAY.
47526         (Include): Add gettimeofday.h.
47527         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
47528         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
47529         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
47530         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
47531         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
47532         * lib/gettimeofday.h: New file.
47533         * lib/gettimeofday.c: Include <sys/timeb.h>.
47534         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
47535         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47536         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
47537         fall back on time().
47538
47539         * tests/test-gettimeofday.c: New file.
47540         * modules/gettimeofday-tests: New file.
47541
47542 2007-01-16  Eric Blake  <ebb9@byu.net>
47543
47544         * modules/fnmatch (Depends-on): Depend on wchar.
47545         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
47546         * m4/fnmatch.m4: Likewise.
47547         * modules/mbchar (Makefile.am): Assume <wchar.h>.
47548         * m4/mbchar.m4: Likewise.
47549         * modules/mbswidth (Depends-on): Depend on wchar.
47550         * lib/mbswidth.c: Assume <wchar.h>.
47551         * m4/mbswidth.m4: Likewise.
47552         * modules/quotearg (Depends-on): Depend on wchar.
47553         * lib/quotearg.c: Assume <wchar.h>.
47554         * m4/quotearg.m4: Likewise.
47555         * modules/regex (Depends-on): Depend on wchar.
47556         * lib/regex_internal.h: Assume <wchar.h>.
47557         * m4/regex.m4: Likewise.
47558         * modules/stdint (Depends-on): Depend on wchar.
47559         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
47560         * m4/stdint.m4: Likewise.
47561         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
47562         * modules/strftime (Depends-on): Depend on wchar.
47563         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
47564         * modules/strtol (Depends-on): Depend on wchar.
47565         * lib/strtol.c: Assume <wchar.h>.
47566         * modules/wcwidth (Depends-on): Depend on wchar.
47567         * lib/wcwidth.h: Assume <wchar.h>.
47568         * m4/wcwidth.m4: Likewise.
47569
47570 2007-01-16  Bruno Haible  <bruno@clisp.org>
47571
47572         * modules/csharpexec-script: New, created from...
47573         * modules/csharpexec: ... this.
47574
47575 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
47576
47577         * modules/javaexec-script: New, created from...
47578         * modules/javaexec: ... this.
47579
47580 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47581
47582         * modules/poll (Dependencies): Add sys_select.
47583
47584 2007-01-15  Jim Meyering  <jim@meyering.net>
47585
47586         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
47587         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
47588         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
47589         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
47590
47591 2007-01-15  Bruno Haible  <bruno@clisp.org>
47592
47593         * modules/striconveh: New file.
47594         * lib/striconveh.h: New file.
47595         * lib/striconveh.c: New file.
47596         * MODULES.html.sh (Internationalization functions): Add striconveh.
47597
47598         * modules/striconveh-tests: New file.
47599         * tests/test-striconveh.c: New file.
47600
47601 2007-01-15  Bruno Haible  <bruno@clisp.org>
47602
47603         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
47604         not from GNU libiconv or GNU libc.
47605
47606 2007-01-15  Bruno Haible  <bruno@clisp.org>
47607
47608         * doc/gnulib-intro.texi (Copyright): Explain the different license
47609         terms for module descriptions, autoconf macros, tests, documentation.
47610
47611 2007-01-14  Bruno Haible  <bruno@clisp.org>
47612
47613         * modules/striconv-tests: New file.
47614         * tests/test-striconv.c: New file.
47615
47616 2007-01-14  Bruno Haible  <bruno@clisp.org>
47617
47618         * modules/iconv-tests: New file.
47619         * tests/test-iconv.c: New file.
47620
47621 2007-01-14  Bruno Haible  <bruno@clisp.org>
47622
47623         * gnulib-tool (func_get_license): For test modules, use the license of
47624         the main module.
47625
47626 2007-01-14  Bruno Haible  <bruno@clisp.org>
47627
47628         * modules/iconv (Include): Clarify that <iconv.h> can only be included
47629         if iconv is found to exist.
47630
47631 2007-01-14  Bruno Haible  <bruno@clisp.org>
47632
47633         * modules/c-ctype-tests: New file.
47634         * tests/test-c-ctype.c: New file.
47635
47636 2007-01-14  Bruno Haible  <bruno@clisp.org>
47637
47638         * modules/binary-io-tests: New file.
47639         * tests/test-binary-io.sh: New file.
47640         * tests/test-binary-io.c: New file.
47641
47642 2007-01-14  Bruno Haible  <bruno@clisp.org>
47643
47644         * modules/array-oset-tests: New file.
47645         * tests/test-array_oset.c: New file.
47646
47647 2007-01-14  Bruno Haible  <bruno@clisp.org>
47648
47649         * modules/array-list-tests: New file.
47650         * tests/test-array_list.c: New file.
47651
47652 2007-01-14  Bruno Haible  <bruno@clisp.org>
47653
47654         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
47655         and make.
47656         Reported by Simon Josefsson in
47657         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
47658
47659 2007-01-14  Bruno Haible  <bruno@clisp.org>
47660
47661         * modules/allocsa-tests: New file.
47662         * tests/test-allocsa.c: New file.
47663
47664 2007-01-14  Bruno Haible  <bruno@clisp.org>
47665
47666         * modules/fchdir (Depends-on): Add absolute-header.
47667         * modules/unistd (Depends-on): Likewise.
47668
47669 2006-12-30  Bruno Haible  <bruno@clisp.org>
47670
47671         * modules/fchdir: New file.
47672         * modules/unistd (Files): Add lib/unistd_.h.
47673         (Makefile.am): Generate unistd.h from unistd_.h.
47674         * lib/fchdir.c: New file.
47675         * lib/dirent_.h: New file.
47676         * lib/unistd_.h: New file.
47677         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
47678         * m4/fchdir.m4: New file.
47679         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
47680         (gl_HEADER_UNISTD): Invoke it.
47681         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
47682         function.
47683         * lib/backupfile.c (opendir, closedir): Undefine.
47684         * lib/chown.c (open, close): Undefine.
47685         * lib/clean-temp.c (open, close): Undefine.
47686         * lib/copy-file.c (open, close): Undefine.
47687         * lib/execute.c (open, close): Undefine.
47688         * lib/fsusage.c (open, close): Undefine.
47689         * lib/gc-gnulib.c (open, close): Undefine.
47690         * lib/getcwd.c (opendir, closedir): Undefine.
47691         * lib/glob.c (opendir, closedir): Undefine.
47692         * lib/javacomp.c (open, close): Undefine.
47693         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
47694         * lib/openat-proc.c (open, close): Undefine.
47695         * lib/pagealign_alloc.c (open, close): Undefine.
47696         * lib/pipe.c (open, close): Undefine.
47697         * lib/progreloc.c (open, close): Undefine.
47698         * lib/savedir.c (opendir, closedir): Undefine.
47699         * lib/utime.c (open, close): Undefine.
47700         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
47701
47702 2007-01-10  Bruno Haible  <bruno@clisp.org>
47703
47704         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
47705
47706 2007-01-12  Eric Blake  <ebb9@byu.net>
47707
47708         Provide a robust <wchar.h>.  Further simplifications are now
47709         possible in other modules, but not included here.
47710         * modules/wchar: New module.
47711         * m4/wchar.m4: New file.
47712         * lib/wchar_.h: Likewise.
47713         * modules/mbchar (Depends-on): Depend on wchar, as the first use
47714         of the new module.
47715         * MODULES.html.sh (Extended multibyte and wide character utilities):
47716         New section.
47717
47718 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
47719
47720         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
47721         to a reasonable default for memory allocation.
47722         (xreadlink): Don't allocate a huge buffer, to work around a buggy
47723         file system that reports garbage st_size values for symlinks.
47724         Problem reported by Liyang Hu.
47725
47726 2007-01-11  Simon Josefsson  <simon@josefsson.org>
47727
47728         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
47729         Emacs .#* auto-save files).
47730
47731 2007-01-11  Bruno Haible  <bruno@clisp.org>
47732
47733         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
47734         directory.
47735
47736 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47737
47738         Use @...@ consistently in lib/wctype_.h.
47739         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
47740         on it being set to 1 or 0.
47741         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
47742         go back to AC_SUBSTing it.
47743         * modules/wctype (Makefile.am): Undo previous change.
47744
47745 2007-01-10  Eric Blake  <ebb9@byu.net>
47746
47747         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
47748         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
47749         * modules/wctype (Makefile.am): Likewise.
47750         Reported by Chris McGuire.
47751
47752 2007-01-10  Jim Meyering  <jim@meyering.net>
47753
47754         fts.c: a small readability/maintainability improvement
47755         * lib/fts.c (fts_read): Make this code slightly more readable and
47756         maintainable by hoisting the "sp->fts_cur = p" assignments to
47757         immediately follow the statements that set P.  Derived from
47758         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
47759
47760 2007-01-10  Eric Blake  <ebb9@byu.net>
47761
47762         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
47763         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
47764         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47765         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47766         Reported by Chris McGuire.
47767
47768 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47769
47770         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
47771         in sed script.
47772
47773 2007-01-09  Bruno Haible  <bruno@clisp.org>
47774
47775         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
47776         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
47777         variables.
47778         (func_module): Use them.
47779
47780 2007-01-09  Bruno Haible  <bruno@clisp.org>
47781
47782         * modules/unistr/base: New file.
47783         * lib/unistr.h: New file.
47784
47785         * modules/unistr/u8-to-u16: New file.
47786         * lib/unistr/u8-to-u16.c: New file.
47787
47788         * modules/unistr/u8-to-u32: New file.
47789         * lib/unistr/u8-to-u32.c: New file.
47790
47791         * modules/unistr/u16-to-u8: New file.
47792         * lib/unistr/u16-to-u8.c: New file.
47793
47794         * modules/unistr/u16-to-u32: New file.
47795         * lib/unistr/u16-to-u32.c: New file.
47796
47797         * modules/unistr/u32-to-u8: New file.
47798         * lib/unistr/u32-to-u8.c: New file.
47799
47800         * modules/unistr/u32-to-u16: New file.
47801         * lib/unistr/u32-to-u16.c: New file.
47802
47803         * modules/unistr/u8-check: New file.
47804         * modules/unistr/u16-check: New file.
47805         * modules/unistr/u32-check: New file.
47806         * lib/unistr/u8-check.c: New file.
47807         * lib/unistr/u16-check.c: New file.
47808         * lib/unistr/u32-check.c: New file.
47809
47810         * modules/unistr/u8-chr: New file.
47811         * modules/unistr/u16-chr: New file.
47812         * modules/unistr/u32-chr: New file.
47813         * lib/unistr/u8-chr.c: New file.
47814         * lib/unistr/u16-chr.c: New file.
47815         * lib/unistr/u32-chr.c: New file.
47816
47817         * modules/unistr/u8-cmp: New file.
47818         * modules/unistr/u16-cmp: New file.
47819         * modules/unistr/u32-cmp: New file.
47820         * lib/unistr/u8-cmp.c: New file.
47821         * lib/unistr/u16-cmp.c: New file.
47822         * lib/unistr/u32-cmp.c: New file.
47823
47824         * modules/unistr/u8-cpy: New file.
47825         * modules/unistr/u16-cpy: New file.
47826         * modules/unistr/u32-cpy: New file.
47827         * lib/unistr/u8-cpy.c: New file.
47828         * lib/unistr/u16-cpy.c: New file.
47829         * lib/unistr/u32-cpy.c: New file.
47830         * lib/unistr/u-cpy.h: New file.
47831
47832         * modules/unistr/u8-cpy-alloc: New file.
47833         * modules/unistr/u16-cpy-alloc: New file.
47834         * modules/unistr/u32-cpy-alloc: New file.
47835         * lib/unistr/u8-cpy-alloc.c: New file.
47836         * lib/unistr/u16-cpy-alloc.c: New file.
47837         * lib/unistr/u32-cpy-alloc.c: New file.
47838         * lib/unistr/u-cpy-alloc.h: New file.
47839
47840         * modules/unistr/u8-endswith: New file.
47841         * modules/unistr/u16-endswith: New file.
47842         * modules/unistr/u32-endswith: New file.
47843         * lib/unistr/u8-endswith.c: New file.
47844         * lib/unistr/u16-endswith.c: New file.
47845         * lib/unistr/u32-endswith.c: New file.
47846         * lib/unistr/u-endswith.h: New file.
47847
47848         * modules/unistr/u8-mblen: New file.
47849         * modules/unistr/u16-mblen: New file.
47850         * modules/unistr/u32-mblen: New file.
47851         * lib/unistr/u8-mblen.c: New file.
47852         * lib/unistr/u16-mblen.c: New file.
47853         * lib/unistr/u32-mblen.c: New file.
47854
47855         * modules/unistr/u8-mbtouc: New file.
47856         * modules/unistr/u16-mbtouc: New file.
47857         * modules/unistr/u32-mbtouc: New file.
47858         * lib/unistr/u8-mbtouc.c: New file.
47859         * lib/unistr/u16-mbtouc.c: New file.
47860         * lib/unistr/u32-mbtouc.c: New file.
47861
47862         * modules/unistr/u8-mbtouc-safe: New file.
47863         * modules/unistr/u16-mbtouc-safe: New file.
47864         * modules/unistr/u32-mbtouc-safe: New file.
47865         * lib/unistr/u8-mbtouc-safe.c: New file.
47866         * lib/unistr/u16-mbtouc-safe.c: New file.
47867         * lib/unistr/u32-mbtouc-safe.c: New file.
47868
47869         * modules/unistr/u8-move: New file.
47870         * modules/unistr/u16-move: New file.
47871         * modules/unistr/u32-move: New file.
47872         * lib/unistr/u8-move.c: New file.
47873         * lib/unistr/u16-move.c: New file.
47874         * lib/unistr/u32-move.c: New file.
47875         * lib/unistr/u-move.h: New file.
47876
47877         * modules/unistr/u8-next: New file.
47878         * modules/unistr/u16-next: New file.
47879         * modules/unistr/u32-next: New file.
47880         * lib/unistr/u8-next.c: New file.
47881         * lib/unistr/u16-next.c: New file.
47882         * lib/unistr/u32-next.c: New file.
47883
47884         * modules/unistr/u8-prev: New file.
47885         * modules/unistr/u16-prev: New file.
47886         * modules/unistr/u32-prev: New file.
47887         * lib/unistr/u8-prev.c: New file.
47888         * lib/unistr/u16-prev.c: New file.
47889         * lib/unistr/u32-prev.c: New file.
47890
47891         * modules/unistr/u8-set: New file.
47892         * modules/unistr/u16-set: New file.
47893         * modules/unistr/u32-set: New file.
47894         * lib/unistr/u8-set.c: New file.
47895         * lib/unistr/u16-set.c: New file.
47896         * lib/unistr/u32-set.c: New file.
47897         * lib/unistr/u-set.h: New file.
47898
47899         * modules/unistr/u8-startswith: New file.
47900         * modules/unistr/u16-startswith: New file.
47901         * modules/unistr/u32-startswith: New file.
47902         * lib/unistr/u8-startswith.c: New file.
47903         * lib/unistr/u16-startswith.c: New file.
47904         * lib/unistr/u32-startswith.c: New file.
47905         * lib/unistr/u-startswith.h: New file.
47906
47907         * modules/unistr/u8-stpcpy: New file.
47908         * modules/unistr/u16-stpcpy: New file.
47909         * modules/unistr/u32-stpcpy: New file.
47910         * lib/unistr/u8-stpcpy.c: New file.
47911         * lib/unistr/u16-stpcpy.c: New file.
47912         * lib/unistr/u32-stpcpy.c: New file.
47913         * lib/unistr/u-stpcpy.h: New file.
47914
47915         * modules/unistr/u8-stpncpy: New file.
47916         * modules/unistr/u16-stpncpy: New file.
47917         * modules/unistr/u32-stpncpy: New file.
47918         * lib/unistr/u8-stpncpy.c: New file.
47919         * lib/unistr/u16-stpncpy.c: New file.
47920         * lib/unistr/u32-stpncpy.c: New file.
47921         * lib/unistr/u-stpncpy.h: New file.
47922
47923         * modules/unistr/u8-strcat: New file.
47924         * modules/unistr/u16-strcat: New file.
47925         * modules/unistr/u32-strcat: New file.
47926         * lib/unistr/u8-strcat.c: New file.
47927         * lib/unistr/u16-strcat.c: New file.
47928         * lib/unistr/u32-strcat.c: New file.
47929         * lib/unistr/u-strcat.h: New file.
47930
47931         * modules/unistr/u8-strchr: New file.
47932         * modules/unistr/u16-strchr: New file.
47933         * modules/unistr/u32-strchr: New file.
47934         * lib/unistr/u8-strchr.c: New file.
47935         * lib/unistr/u16-strchr.c: New file.
47936         * lib/unistr/u32-strchr.c: New file.
47937
47938         * modules/unistr/u8-strcmp: New file.
47939         * modules/unistr/u16-strcmp: New file.
47940         * modules/unistr/u32-strcmp: New file.
47941         * lib/unistr/u8-strcmp.c: New file.
47942         * lib/unistr/u16-strcmp.c: New file.
47943         * lib/unistr/u32-strcmp.c: New file.
47944
47945         * modules/unistr/u8-strcpy: New file.
47946         * modules/unistr/u16-strcpy: New file.
47947         * modules/unistr/u32-strcpy: New file.
47948         * lib/unistr/u8-strcpy.c: New file.
47949         * lib/unistr/u16-strcpy.c: New file.
47950         * lib/unistr/u32-strcpy.c: New file.
47951         * lib/unistr/u-strcpy.h: New file.
47952
47953         * modules/unistr/u8-strcspn: New file.
47954         * modules/unistr/u16-strcspn: New file.
47955         * modules/unistr/u32-strcspn: New file.
47956         * lib/unistr/u8-strcspn.c: New file.
47957         * lib/unistr/u16-strcspn.c: New file.
47958         * lib/unistr/u32-strcspn.c: New file.
47959         * lib/unistr/u-strcspn.h: New file.
47960
47961         * modules/unistr/u8-strdup: New file.
47962         * modules/unistr/u16-strdup: New file.
47963         * modules/unistr/u32-strdup: New file.
47964         * lib/unistr/u8-strdup.c: New file.
47965         * lib/unistr/u16-strdup.c: New file.
47966         * lib/unistr/u32-strdup.c: New file.
47967         * lib/unistr/u-strdup.h: New file.
47968
47969         * modules/unistr/u8-strlen: New file.
47970         * modules/unistr/u16-strlen: New file.
47971         * modules/unistr/u32-strlen: New file.
47972         * lib/unistr/u8-strlen.c: New file.
47973         * lib/unistr/u16-strlen.c: New file.
47974         * lib/unistr/u32-strlen.c: New file.
47975         * lib/unistr/u-strlen.h: New file.
47976
47977         * modules/unistr/u8-strmblen: New file.
47978         * modules/unistr/u16-strmblen: New file.
47979         * modules/unistr/u32-strmblen: New file.
47980         * lib/unistr/u8-strmblen.c: New file.
47981         * lib/unistr/u16-strmblen.c: New file.
47982         * lib/unistr/u32-strmblen.c: New file.
47983
47984         * modules/unistr/u8-strmbtouc: New file.
47985         * modules/unistr/u16-strmbtouc: New file.
47986         * modules/unistr/u32-strmbtouc: New file.
47987         * lib/unistr/u8-strmbtouc.c: New file.
47988         * lib/unistr/u16-strmbtouc.c: New file.
47989         * lib/unistr/u32-strmbtouc.c: New file.
47990
47991         * modules/unistr/u8-strncat: New file.
47992         * modules/unistr/u16-strncat: New file.
47993         * modules/unistr/u32-strncat: New file.
47994         * lib/unistr/u8-strncat.c: New file.
47995         * lib/unistr/u16-strncat.c: New file.
47996         * lib/unistr/u32-strncat.c: New file.
47997         * lib/unistr/u-strncat.h: New file.
47998
47999         * modules/unistr/u8-strncmp: New file.
48000         * modules/unistr/u16-strncmp: New file.
48001         * modules/unistr/u32-strncmp: New file.
48002         * lib/unistr/u8-strncmp.c: New file.
48003         * lib/unistr/u16-strncmp.c: New file.
48004         * lib/unistr/u32-strncmp.c: New file.
48005
48006         * modules/unistr/u8-strncpy: New file.
48007         * modules/unistr/u16-strncpy: New file.
48008         * modules/unistr/u32-strncpy: New file.
48009         * lib/unistr/u8-strncpy.c: New file.
48010         * lib/unistr/u16-strncpy.c: New file.
48011         * lib/unistr/u32-strncpy.c: New file.
48012         * lib/unistr/u-strncpy.h: New file.
48013
48014         * modules/unistr/u8-strnlen: New file.
48015         * modules/unistr/u16-strnlen: New file.
48016         * modules/unistr/u32-strnlen: New file.
48017         * lib/unistr/u8-strnlen.c: New file.
48018         * lib/unistr/u16-strnlen.c: New file.
48019         * lib/unistr/u32-strnlen.c: New file.
48020         * lib/unistr/u-strnlen.h: New file.
48021
48022         * modules/unistr/u8-strpbrk: New file.
48023         * modules/unistr/u16-strpbrk: New file.
48024         * modules/unistr/u32-strpbrk: New file.
48025         * lib/unistr/u8-strpbrk.c: New file.
48026         * lib/unistr/u16-strpbrk.c: New file.
48027         * lib/unistr/u32-strpbrk.c: New file.
48028         * lib/unistr/u-strpbrk.h: New file.
48029
48030         * modules/unistr/u8-strrchr: New file.
48031         * modules/unistr/u16-strrchr: New file.
48032         * modules/unistr/u32-strrchr: New file.
48033         * lib/unistr/u8-strrchr.c: New file.
48034         * lib/unistr/u16-strrchr.c: New file.
48035         * lib/unistr/u32-strrchr.c: New file.
48036
48037         * modules/unistr/u8-strspn: New file.
48038         * modules/unistr/u16-strspn: New file.
48039         * modules/unistr/u32-strspn: New file.
48040         * lib/unistr/u8-strspn.c: New file.
48041         * lib/unistr/u16-strspn.c: New file.
48042         * lib/unistr/u32-strspn.c: New file.
48043         * lib/unistr/u-strspn.h: New file.
48044
48045         * modules/unistr/u8-strstr: New file.
48046         * modules/unistr/u16-strstr: New file.
48047         * modules/unistr/u32-strstr: New file.
48048         * lib/unistr/u8-strstr.c: New file.
48049         * lib/unistr/u16-strstr.c: New file.
48050         * lib/unistr/u32-strstr.c: New file.
48051         * lib/unistr/u-strstr.h: New file.
48052
48053         * modules/unistr/u8-strtok: New file.
48054         * modules/unistr/u16-strtok: New file.
48055         * modules/unistr/u32-strtok: New file.
48056         * lib/unistr/u8-strtok.c: New file.
48057         * lib/unistr/u16-strtok.c: New file.
48058         * lib/unistr/u32-strtok.c: New file.
48059         * lib/unistr/u-strtok.h: New file.
48060
48061         * modules/unistr/u8-uctomb: New file.
48062         * modules/unistr/u16-uctomb: New file.
48063         * modules/unistr/u32-uctomb: New file.
48064         * lib/unistr/u8-uctomb.c: New file.
48065         * lib/unistr/u16-uctomb.c: New file.
48066         * lib/unistr/u32-uctomb.c: New file.
48067
48068         * MODULES.html.sh (Unicode string functions): Add the new modules.
48069
48070 2007-01-08  Bruno Haible  <bruno@clisp.org>
48071
48072         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
48073         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
48074         subdirectories.
48075
48076 2007-01-08  Karl Berry  <karl@gnu.org>
48077
48078         * doc/error.texi: mention that main() fns must set program_name
48079         when progname is used.
48080
48081 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
48082
48083         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
48084         WCTYPE_H is empty, for the benefit of builds from non-distclean
48085         directories.  Problem reported by Eric Blake in
48086         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
48087
48088 2007-01-08  Bruno Haible  <bruno@clisp.org>
48089
48090         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
48091         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
48092         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
48093         PROVIDE_CANONICALIZE_FILENAME_MODE.
48094         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
48095
48096 2007-01-08  Bruno Haible  <bruno@clisp.org>
48097
48098         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
48099         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
48100         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
48101         * lib/fts.c: Likewise.
48102         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
48103
48104 2006-12-25  Bruno Haible  <bruno@clisp.org>
48105
48106         * modules/utf8-ucs4-safe: New file.
48107         * lib/utf8-ucs4-safe.h: New file.
48108         * lib/unistr/utf8-ucs4-safe.c: New file.
48109
48110         * modules/utf16-ucs4-safe: New file.
48111         * lib/utf16-ucs4-safe.h: New file.
48112         * lib/unistr/utf16-ucs4-safe.c: New file.
48113
48114         * MODULES.html.sh (Unicode string functions): Add the new modules.
48115
48116 2007-01-08  Bruno Haible  <bruno@clisp.org>
48117
48118         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
48119         (Depends-on): Add unitypes.
48120         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
48121         (u8_mbtouc_aux): Move out to separate file.
48122         (u8_mbtouc): Use ucs4_t, uint8_t types.
48123         * lib/unistr/utf8-ucs4.c: New file.
48124
48125         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
48126         (Depends-on): Add unitypes.
48127         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
48128         (u16_mbtouc_aux): Move out to separate file.
48129         (u16_mbtouc): Use ucs4_t, uint16_t types.
48130         * lib/unistr/utf16-ucs4.c: New file.
48131
48132         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
48133         (Depends-on): Add unitypes.
48134         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
48135         (u8_uctomb_aux): Move out to separate file.
48136         (u8_uctomb): Use ucs4_t, uint8_t types.
48137         * lib/unistr/ucs4-utf8.c: New file.
48138
48139         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
48140         (Depends-on): Add unitypes.
48141         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
48142         (u16_uctomb_aux): Move out to separate file.
48143         (u16_uctomb): Use ucs4_t, uint16_t types.
48144         * lib/unistr/ucs4-utf16.c: New file.
48145
48146 2006-12-25  Bruno Haible  <bruno@clisp.org>
48147
48148         * modules/unitypes: New file.
48149         * lib/unitypes.h: New file.
48150         * MODULES.html.sh (func_all_modules): New section "Unicode string
48151         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
48152         this section. Add unitypes.
48153
48154 2007-01-08  Bruno Haible  <bruno@clisp.org>
48155
48156         Avoid variable names that conflict with those from libtool.
48157         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
48158         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
48159         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
48160         library_names_spec to acl_library_names_spec, hardcode_* to
48161         acl_hardcode_*.
48162         Reported by Ralf Wildenhues.
48163
48164 2007-01-08  Bruno Haible  <bruno@clisp.org>
48165
48166         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
48167         definition.
48168         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
48169         definition.
48170         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
48171         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
48172         definition.
48173         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
48174         definition.
48175         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
48176         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
48177         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
48178         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
48179         definition.
48180         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
48181         definition.
48182         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
48183         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
48184         GC_USE_<algorithm>.
48185         * lib/gc-libgcrypt.c: Likewise.
48186         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
48187         * modules/gc-arctwo (configure.ac): Likewise.
48188         * modules/gc-des (configure.ac): Likewise.
48189         * modules/gc-hmac-md5 (configure.ac): Likewise.
48190         * modules/gc-hmac-sha1 (configure.ac): Likewise.
48191         * modules/gc-md2 (configure.ac): Likewise.
48192         * modules/gc-md4 (configure.ac): Likewise.
48193         * modules/gc-md5 (configure.ac): Likewise.
48194         * modules/gc-random (configure.ac): Likewise.
48195         * modules/gc-rijndael (configure.ac): Likewise.
48196         * modules/gc-sha1 (configure.ac): Likewise.
48197
48198 2007-01-08  Bruno Haible  <bruno@clisp.org>
48199
48200         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
48201         macro definition.
48202         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
48203         definition.
48204         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
48205         definition.
48206         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
48207         * modules/fcntl-safer (configure.ac): Likewise.
48208         * modules/fopen-safer (configure.ac): Likewise.
48209         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
48210         GNULIB_FWRITEERROR macro definition.
48211
48212 2007-01-08  Bruno Haible  <bruno@clisp.org>
48213
48214         * m4/gnulib-common.m4: New file.
48215         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
48216         (func_get_filelist): Add m4/gnulib-common.m4.
48217
48218 2007-01-08  Bruno Haible  <bruno@clisp.org>
48219
48220         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
48221         command.
48222
48223 2007-01-08  Jim Meyering  <jim@meyering.net>
48224
48225         Use a more robust test for a "can't happen" condition.
48226         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
48227         narrowed the st_size value.  Presuming the "can't happen" condition
48228         is true, that narrowing could conceivably convert an invalid st_size
48229         value into a valid one.  Instead, use a change based on Matthew
48230         Woehlke's original patch.
48231
48232         Slight readability improvement: use an assert-like macro
48233         in place of literal "abort ()" uses.
48234         * lib/fts.c (fts_assert): Define.
48235         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
48236         Use this macro instead of a bare 'abort'.
48237
48238 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
48239
48240         Don't worry about using IRIX 5.3's wctype.h broken definitions;
48241         simply work around them.
48242         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
48243         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
48244         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
48245         declaring.
48246         Don't bother to define as macros, since the standard doesn't require it.
48247         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
48248         longer worry about IRIX 5.3.
48249         (HAVE_WCTYPE_CTMP_BUG): Remove.
48250
48251 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48252
48253         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
48254         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
48255         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48256         Problems reported by Georg Schwarz for IRIX 5.3.
48257
48258         * gnulib-tool (autoconf_minversion): Take the maximum version number
48259         found, not the minimum.  Problem reported by James Youngman.
48260
48261 2007-01-03  Karl Berry  <karl@gnu.org>
48262
48263         * doc/error.texi: new file, explaining interaction with progname.
48264         * doc/gnulib.texi: include it.  Update copyright.
48265
48266 2007-01-03  Simon Josefsson  <simon@josefsson.org>
48267
48268         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
48269         AC_CANONICAL_HOST, to improve autobuild outputs.
48270
48271 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
48272             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48273
48274         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
48275         sockets, server sockets, and other file descriptors.  Count errors
48276         to compute the return value.  Reorder the code a bit to be easier
48277         to follow.  Don't set event bits that were not requested (except
48278         POLLERR and POLLHUP).
48279
48280 2007-01-01  Bruno Haible  <bruno@clisp.org>
48281
48282         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
48283
48284 2007-01-03  Jim Meyering  <jim@meyering.net>
48285
48286         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
48287
48288 2007-01-02  Bruno Haible  <bruno@clisp.org>
48289
48290         * modules/settime (Include): Require timespec.h.
48291         * modules/nanosleep (Include): Likewise.
48292
48293 2007-01-01  Bruno Haible  <bruno@clisp.org>
48294
48295         * gnulib-tool (func_emit_copyright_notice): Bump year.
48296         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
48297
48298 2007-01-01  Bruno Haible  <bruno@clisp.org>
48299
48300         Improve support for OpenBSD.
48301         * build-aux/config.rpath (libname_spec): Export.
48302         (library_names_spec): New variable. Export.
48303         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
48304         library_names_spec from the config.rpath output. Locate shared library
48305         through the name pattern in library_names_spec.
48306
48307 2007-01-01  Eric Blake  <ebb9@byu.net>
48308
48309         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
48310
48311 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
48312
48313         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
48314         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
48315         assume the C locale, and avoid an "eval" that could cause trouble.
48316         Problem with SORT reported by Bob Proulx.
48317
48318         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
48319         Define.  Trivial patch from Henning Nielsen Lund, originally
48320         sent to bug-grep@gnu.org today.
48321
48322 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
48323
48324         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
48325         struct stat.  Problem reported by Henning Nielsen Lund.
48326         * lib/acl.c: Include acl.h first, to check interface.  Don't
48327         bother to include sys/types.h and sys/stat.h again.
48328
48329 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
48330
48331         Import the following change from libc; problem reported by
48332         Sven Verdoolaege.
48333
48334         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
48335
48336         [BZ #1373]
48337         * lib/argp.h: Remove __NTH for __argp_usage inline function.
48338
48339 2006-12-28  Jim Meyering  <jim@meyering.net>
48340
48341         * build-aux/announce-gen: Do not assume that the package
48342         builds any of tar.gz, tar.bz2, and .xdelta files.
48343         Suggestion from Simon Josefsson.
48344
48345 2006-12-28  Simon Josefsson  <simon@josefsson.org>
48346
48347         * modules/announce-gen: New file.
48348
48349 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
48350
48351         * lib/mbchar.h: Just include <wctype.h>; the wctype module
48352         handles its gotchas now.
48353         * lib/mbswidth.c: Likewise.
48354         * lib/wcwidth.h: Likewise.
48355         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
48356         and iswcntrl; the wctype module does this stuff now.
48357         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48358         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48359         * modules/mbchar (Depends-on): Add wctype.
48360         * modules/mbswidth (Depends-on): Likewise.
48361         * modules/wcwidth (Depends-on): Likewise.
48362
48363 2006-12-27  Eric Blake  <ebb9@byu.net>
48364
48365         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
48366         module uses more than what <wctype.h> is required to provide.
48367
48368 2006-12-26  Eric Blake  <ebb9@byu.net>
48369
48370         * gnulib-tool (sed_extract_prog): Avoid space-tab.
48371
48372 2006-12-26  Eric Blake  <ebb9@byu.net>
48373
48374         * modules/absolute-header: New module.
48375         * modules/fcntl (Depends-on): Depend on it.
48376         * modules/inttypes (Depends-on): Likewise.
48377         * modules/stdint (Depends-on): Likewise.
48378         * modules/sys_stat (Depends-on): Likewise.
48379         * modules/wctype (Depends-on): Likewise.
48380         * MODULES.html.sh (Support for building libraries and
48381         executables): Document it.
48382
48383 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
48384
48385         * gnulib-tool (SED): Remove, undoing previous change.
48386         The problem was that it broke coreutils on Solaris, because
48387         "sed --posix" leaked into a makefile.
48388         (sed): New alias, if 'alias' and GNU sed.
48389
48390 2006-12-24  Jim Meyering  <jim@meyering.net>
48391
48392         Work around an fchownat bug in glibc-2.4:
48393         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
48394         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
48395         in spite of the -P option.
48396         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
48397         New macros.
48398         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
48399         * modules/openat (Files): Add lib/fchownat.c.
48400         * lib/openat.c (fchownat): Don't define here.  Move to...
48401         * lib/fchownat.c: ...this new file.
48402
48403 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
48404
48405         Fix bug reported by Bruno Haible in
48406         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
48407         where quotearg.c didn't compile on Mac OS X 10.2 because it
48408         lacks <wchar.h> and wint_t.
48409         * lib/wctype_.h (__wctype_wint_t): New type.
48410         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
48411         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
48412         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
48413         Arg is now of type __wctype_wint_t, not wint_t.
48414         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
48415         substitute HAVE_WINT_T.
48416         * modules/wctype (Files): Add m4/wint_t.m4.
48417         (wctype.h): Substitute HAVE_WINT_T.
48418
48419 2006-12-23  Bruno Haible  <bruno@clisp.org>
48420
48421         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
48422
48423 2006-12-23  Bruno Haible  <bruno@clisp.org>
48424
48425         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
48426         S_ISLNK.
48427         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
48428         mingw.
48429
48430 2006-12-22  Bruno Haible  <bruno@clisp.org>
48431
48432         * lib/copy-file.c: Include acl.h.
48433         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
48434         Close the file descriptors only after being done with copy_acl.
48435         * modules/copy-file (Depends-on): Add acl.
48436
48437 2006-12-22  Bruno Haible  <bruno@clisp.org>
48438
48439         * gnulib-tool (SED): New variable.
48440         Use $SED instead of sed everywhere.
48441
48442 2006-12-22  Bruno Haible  <bruno@clisp.org>
48443
48444         * modules/no-c++: New file.
48445         * m4/no-c++.m4: New file.
48446         * MODULES.html.sh (Support for building libraries and executables):
48447         Add no-c++.
48448
48449 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
48450
48451         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48452         Include <limits.h>, and use its INT_MAX to rewrite the
48453         j loop so that it does not overflow 'int'.  Problem reported by
48454         Ralf Wildenhues in
48455         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
48456         Play it safe by shifting left by 1 rather than multiplying by 2,
48457         as GCC is less likely to optimize this away when the value
48458         is signed (when it assumes overflow leads to undefined behavior).
48459         Also, don't assume time_t uses two's complement.
48460
48461 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
48462
48463         * MODULES.html.sh: New module wctype.
48464         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
48465         * lib/fnmatch.c: Don't bother to include <wchar.h> before
48466         <wctype.h>, since the new wctype module should fix this.
48467         * lib/quotearg.c: Include <wctype.h> unconditionally, since
48468         the wctype module should arrange for it.
48469         * lib/regex_internal.h: Likewise.
48470         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
48471         since the wctype module should handle this now.
48472         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
48473         * modules/fnmatch (Depends-on): Add wctype.
48474         * modules/quotearg (Depends-on): Likewise.
48475         * modules/regex (Depends-on): Likewise.
48476
48477 2006-12-19  Bruno Haible  <bruno@clisp.org>
48478
48479         * lib/strdup.h [C++]: Wrap definitions in extern "C".
48480         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
48481
48482 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48483
48484         * modules/savewd (Depends-on): Fix dependency on fcntl.
48485
48486 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48487
48488         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
48489         conforms to C99, rather than relying on the user's environment
48490         setting of STDINT_H.
48491
48492 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48493         and Eric Blake  <ebb9@byu.net>
48494
48495         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
48496         This is more consistent with the other defines here.
48497         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
48498         Port to z/OS.  Problem reported by Paul Gilmartin.
48499         Change local vars to use gl_ prefix rather than ac_.
48500         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
48501         with other defines.
48502         * modules/double-slash-root: New module.
48503         * modules/dirname (Files): Remove m4/double-slash-root.m4.
48504         (Depends-on): Add double-slash-root.
48505         * MODULES.html.sh (File system functions): Mention new module.
48506
48507 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
48508
48509         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
48510         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
48511         This is for the benefit of gzip, which doesn't do i18n.
48512
48513 2006-12-12  Jim Meyering  <jim@meyering.net>
48514
48515         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
48516         Reported by Andreas Schwab <schwab@suse.de>.
48517
48518 2006-12-12  Bruno Haible  <bruno@clisp.org>
48519
48520         Merge these changes.
48521         2006-09-05  Bruno Haible  <bruno@clisp.org>
48522         * lib/iconvme.c (iconv_string): No need to save and restore errno when
48523         iconv_alloc succeeded.
48524         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
48525         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
48526         test for " && dest " at the end - dest is always != NULL there. Call
48527         iconv with 4xNULL arguments initially, to reset the state. Call iconv
48528         with 2xNULL arguments, also to flush the state storage. Handle the
48529         IRIX iconv behaviour. Realloc the final result, to throw away unused
48530         memory.
48531
48532 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
48533
48534         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
48535         and fchmodat unconditionally, since glibc 2.4 has them.
48536         Problem reported by Arkadiusz Miskiewicz.
48537
48538 2006-12-10  Bruno Haible  <bruno@clisp.org>
48539
48540         * gnulib-tool (func_import): Show the include files only for those
48541         modules that are copied and specified.
48542         Reported by Karl Berry.
48543
48544 2006-12-08  Jim Meyering  <jim@meyering.net>
48545
48546         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
48547         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
48548
48549         * build-aux/announce-gen: Add two new options, both optional:
48550         --bootstrap-tools=TOOL_LIST
48551               a comma-separated list of tools, e.g.,
48552               autoconf,automake,bison,gnulib
48553         --gnulib-snapshot-date=DATE
48554               if gnulib is in the bootstrap tool list,
48555               then report this as the snapshot date.
48556               If not specified, use the current date/time.
48557               If you specify a date here, be sure it's UTC.
48558
48559 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48560
48561         * tests/test-argp-2.sh: Fix test to match actual output.
48562         (func_compare): Fix sed script to be portable.
48563
48564 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
48565
48566         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
48567         workaround for this case.  It is not autoconfigured now; offhand
48568         it's hard to see how to autoconfigure it.
48569
48570 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
48571
48572         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
48573         a directory that is about to be chowned.  Such a directory's
48574         initial file permissions should permit the owner only and this
48575         should not be changed until after the chown, since the group and
48576         other bits would be incorrect if they granted permission before
48577         the chown.
48578
48579         Fix porting problem for iswctype reported by Georg Schwarz in:
48580         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
48581         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
48582         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
48583         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
48584         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48585
48586 2006-12-03  Jim Meyering  <jim@meyering.net>
48587
48588         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
48589         p->fts_statp may not yet be defined.
48590         (fts_read): Instead, set it in the caller, once p->fts_statp is
48591         sure to be defined, and corresponds to a top-level directory.
48592         This bug made du -x fail.  Here's the coreutils test case:
48593         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
48594         Reported by Mike Frysinger.
48595
48596 2006-12-01  Jim Meyering  <jim@meyering.net>
48597
48598         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
48599         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
48600         Reported by Simon Josefsson.
48601
48602 2006-11-30  Jim Meyering  <jim@meyering.net>
48603
48604         * m4/warning.m4: Use the all-permissive copyright notice
48605         recommended by RMS (rather than LGPL).
48606         * m4/vararrays.m4: Likewise.
48607         * m4/flexmember.m4: Likewise.
48608
48609 2006-11-29  Bruno Haible  <bruno@clisp.org>
48610
48611         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48612         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
48613         using +=.
48614         Reported by Simon Josefsson <simon@josefsson.org>.
48615
48616 2006-11-28  James Youngman <jay@gnu.org>
48617
48618         * README: Advise users that they might find the bug-gnulib@gnu.org
48619         and autotools-announce@gnu.org mailing lists useful.
48620
48621 2006-11-28  Bruno Haible  <bruno@clisp.org>
48622
48623         * m4/ptrdiff_max.m4: Remove file.
48624
48625 2006-11-21  Bruno Haible  <bruno@clisp.org>
48626
48627         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
48628         _AC_COMPUTE_INT.
48629         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48630         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
48631         _AC_COMPUTE_INT.
48632         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48633         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
48634         _AC_COMPUTE_INT.
48635         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48636
48637 2006-11-28  Jim Meyering  <jim@meyering.net>
48638
48639         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
48640         warning from "gcc -Wshadow" about shadowing the builtin.
48641
48642 2006-11-27  Bruno Haible  <bruno@clisp.org>
48643
48644         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
48645         _AC_COMPUTE_INT.
48646         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48647
48648 2006-11-27  Bruno Haible  <bruno@clisp.org>
48649             Paul Eggert  <eggert@cs.ucla.edu>
48650
48651         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
48652
48653 2006-11-26  Bruno Haible  <bruno@clisp.org>
48654
48655         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48656         noinst_LTLIBRARIES.
48657
48658 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
48659             Bruno Haible  <bruno@clisp.org>
48660
48661         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
48662         if compiling with "gcc -ansi".
48663
48664 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
48665
48666         Fix some incompatibilities with gcc -ansi -pedantic.
48667         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
48668         if compiling pedantically with GCC, unless it's C99 or later.
48669         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
48670         it mishandles gcc -ansi -pedantic as well.
48671         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
48672         if gcc -pedantic.
48673         * lib/regexec.c (check_node_accept_bytes): Don't use auto
48674         initializers for struct if -pedantic, unless it's C99 or later.
48675
48676 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
48677
48678         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
48679         Don't close an fd more than once. Identical atimes indicate
48680         success, not failure.
48681
48682 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
48683
48684         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
48685
48686 2006-11-23  Jim Meyering  <jim@meyering.net>
48687
48688         * build-aux/announce-gen: New file.  From coreutils.
48689
48690 2006-11-22  Jim Meyering  <jim@meyering.net>
48691
48692         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
48693         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
48694         (fts_read): Use a temporary to narrow the overused st_size member
48695         before using it in a switch statement.  Reported by Matthew Woehlke.
48696
48697         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
48698         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
48699
48700 2006-11-20  Bruno Haible  <bruno@clisp.org>
48701
48702         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
48703         changequote instead of pairs of brackets.
48704         Reported by Andreas Schwab <schwab@suse.de>.
48705
48706 2006-11-21  Jim Meyering  <jim@meyering.net>
48707
48708         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
48709         so as to remain compatible with older compilers.
48710         Patch from Michael Deutschmann.
48711
48712 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
48713
48714         * MODULES.html.sh (File system functions): Add openat.
48715
48716         * lib/openat.h (rpl_fstatat): New macro, if
48717         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
48718         (fstatat): Define to rpl_fstatat under the same conditions,
48719         unless COMPILING_FSTATAT.
48720         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
48721         seems to have the bug.
48722         * lib/fstatat.c: New file.
48723         * modules/openat (Files): Add it.
48724
48725 2006-11-20  Bruno Haible  <bruno@clisp.org>
48726
48727         * Makefile: New file.
48728
48729 2006-11-20  Jim Meyering  <jim@meyering.net>
48730
48731         The beginnings of syntax-related checks for gnulib.
48732         * lib/Makefile: New file.
48733         * lib/t-idcache: New script.  Ensure that the two halves of
48734         idcache.c stay in sync.
48735
48736         * lib/idcache.c: Adjust comments in user- and group- portions to
48737         be more accurate, and to be consistent with one another.
48738
48739 2006-11-20  Jim Meyering  <jim@meyering.net>
48740
48741         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
48742         continue using the flexible array member (thus, this module performs
48743         half as many malloc calls), with the addition that...
48744         (getgroup, getuser): Consistently record a non-match via an empty
48745         "name" string, and map an empty string match to a NULL return value.
48746         * modules/idcache (Depends-on): Re-add flexmember.
48747
48748         * lib/idcache.c (getuser): Remove all uses of the register keyword.
48749         (getuidbyname, getgroup, getgidbyname): Likewise.
48750
48751         Use cleaner syntax: NULL rather than 0.
48752         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
48753
48754 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
48755
48756         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
48757         It mishandled the case where the group was missing.
48758         Problem reported by Greg Schafer.
48759         * modules/idcache: Likewise.
48760
48761 2006-11-18  Jim Meyering  <jim@meyering.net>
48762
48763         * check-module (%exempt_header): Add exception for some
48764         conditionally-included headers.
48765
48766         * modules/i-ring (Depends-on): Add verify.
48767         (License): Change to LGPL.
48768
48769 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48770
48771         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
48772         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
48773         and inttostr.h.  Use snprintf rather than uinttostr, so that
48774         LGPLed code doesn't depend on GPLed.
48775
48776 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
48777
48778         * modules/inline (License): Change from GPL to LGPL.
48779
48780 2006-11-17  Jim Meyering  <jim@meyering.net>
48781
48782         * modules/d-type (License): Switch to LGPL.
48783
48784 2006-11-15  Bruno Haible  <bruno@clisp.org>
48785
48786         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
48787
48788 2006-11-15  Eric Blake  <ebb9@byu.net>
48789
48790         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
48791         the module dependency.
48792
48793 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48794             Bruno Haible  <bruno@clisp.org>
48795
48796         * gnulib-tool (func_create_testdir): Add license consistency check.
48797
48798 2006-11-15  Eric Blake  <ebb9@byu.net>
48799
48800         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
48801         random "(cached)" in configure output.
48802
48803 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48804
48805         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
48806         test for conforming inttypes.h is both announced and cached.
48807
48808         * MODULES.html.sh (seen_modules, seen_files): New variables.
48809         (func_module): Rewrite to use a few less gnulib-tool and sed
48810         invocations.  Avoid a couple of quadratic algorithms for ...
48811         (missed_modules, missed_files): ... these, with ...
48812         (func_append, func_tmpdir): ... these new functions, from
48813         gnulib-tool.  Analogously, install traps for cleanup.
48814
48815         * tests/test-gc.c (main): Remove unused variables.
48816         * tests/test-read-file.c: Include stdlib.h, for 'free'.
48817
48818 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
48819
48820         * modules/inttostr (License): Change to LGPL.
48821
48822 2006-11-14  Eric Blake  <ebb9@byu.net>
48823
48824         * modules/tempname (License): Change to LGPL.
48825
48826 2006-11-14  Eric Blake  <ebb9@byu.net>
48827
48828         * doc/functions.texi (Function Portability): *printf functions on
48829         Cygwin now understand all POSIX size specifiers.
48830
48831 2006-11-14  Bruno Haible  <bruno@clisp.org>
48832
48833         * modules/c-ctype (License): Change to LGPL.
48834
48835 2006-11-12  Bruno Haible  <bruno@clisp.org>
48836
48837         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48838         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
48839         for GNOME libraries, for which the include files are installed in
48840         subdirectories of $prefix/include.
48841
48842 2006-11-12  Bruno Haible  <bruno@clisp.org>
48843
48844         * m4/lib-link.m4: Require at least autoconf-2.54.
48845         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
48846         name to underscores for the --with option.
48847
48848 2006-11-13  Bruno Haible  <bruno@clisp.org>
48849
48850         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
48851         the tests directory.
48852         Reported by Ralf Wildenhues.
48853
48854 2006-11-13  Bruno Haible  <bruno@clisp.org>
48855
48856         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
48857         (func_emit_initmacro_end): Undo the override here.
48858         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
48859         Works around the famous automake error in coreutils.
48860
48861 2006-11-13  Eric Blake  <ebb9@byu.net>
48862
48863         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
48864         element, not its node.
48865
48866 2006-11-12  Bruno Haible  <bruno@clisp.org>
48867
48868         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
48869         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
48870
48871 2006-11-12  Bruno Haible  <bruno@clisp.org>
48872
48873         * gnulib-tool: New option --local-symlink.
48874         (func_usage): Document it.
48875         (lsymbolic): New variable.
48876         (func_import, func_create_testdir): If --symlink was not specified,
48877         test whether --local-symlink was specified and the file comes from
48878         the local_gnulib_dir.
48879
48880 2006-11-12  Bruno Haible  <bruno@clisp.org>
48881
48882         * gnulib-tool (func_ln): New function.
48883         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
48884
48885 2006-11-12  Bruno Haible  <bruno@clisp.org>
48886
48887         Finish support for source files in subdirectories.
48888         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
48889         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
48890         AUTOMAKE_OPTIONS.
48891         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
48892
48893 2006-11-12  Bruno Haible  <bruno@clisp.org>
48894
48895         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48896         EXTRA_lib_SOURCES augmentation.
48897         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
48898
48899 2006-11-12  Jim Meyering  <jim@meyering.net>
48900
48901         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
48902         file descriptors.  This also averts a failure on systems with
48903         native openat support when a traversed directory lacks "x" access.
48904         * lib/fts_.h: Include "i-ring.h"
48905         (struct FTS) [fts_fd_ring]: New member.
48906         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
48907         (FCHDIR): Add parentheses.
48908         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
48909         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
48910         When descending, rather than simply closing the previous
48911         fts_cwd_fd value, push that file descriptor onto the ring.
48912         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
48913         (fts_open): Initialize the new fd_ring member.
48914         (fts_close): Clear the ring.
48915         (fts_safe_changedir): When possible, use our new fd_ring to skip
48916         the diropen and fstat and dev/ino comparison that would normally
48917         accompany a virtual `chdir ("..")'.
48918
48919         * modules/fts (Depends-on): Add i-ring.
48920         * modules/i-ring: New module.
48921         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
48922         * m4/i-ring.m4: New file.
48923
48924 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48925
48926         * gnulib-tool (func_create_testdir): Fix replacement of
48927         `build-aux' in configure.ac.  Run autotools in gltests
48928         subdirectory.
48929         (func_create_testdir, func_create_megatestdir, test): There is
48930         no need for '--force' in most autotool invocations in a new
48931         tree.  Actually fail the whole test if any of the tools, or the
48932         configure or make stages fail.
48933
48934         Sync from Automake.
48935         * build-aux/gnupload: Revert last change.  Add pointer to upload
48936         instructions of the GNU Maintenance Instructions.
48937         Suggestion by Karl Berry.
48938
48939 2006-11-10  Jim Meyering  <jim@meyering.net>
48940
48941         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
48942
48943 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
48944
48945         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
48946         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
48947         (bind_textdomain_codeset) [! ENABLE_NLS]:
48948         Evaluate all the arguments.  That way, callers get compatible behavior
48949         if the arguments have side effects.  Also, it avoids some GCC
48950         diagnostics in some cases; Joel E. Denny reported problems when Bison
48951         was configured with --enable-gcc-warnigs.
48952
48953 2006-11-10  Jim Meyering  <jim@meyering.net>
48954
48955         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
48956         relevant options in CFLAGS (like -O, -fno-inline) are taken into
48957         account.
48958
48959 2006-11-10  Jim Meyering  <jim@meyering.net>
48960
48961         * modules/inline: New file/module.
48962         * modules/xalloc (Files): Remove m4/inline.m4.
48963         (Depends-on): Add inline, instead.
48964         * modules/oset: Likewise.
48965         * modules/list: Likewise.
48966
48967 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
48968
48969         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
48970         Problem reported by Matthew Woehlke.
48971
48972 2006-11-09  Bruno Haible  <bruno@clisp.org>
48973
48974         * lib/tempname.c (gen_tempname): Remove variant that invokes
48975         __gen_tempname.
48976         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
48977         __gen_tempname.
48978
48979 2006-11-08  Bruno Haible  <bruno@clisp.org>
48980
48981         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
48982         to 'yes' instead of 'cross-compiling'.
48983
48984 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
48985
48986         * lib/quotearg.h (quotearg_free): New decl.
48987         * lib/quotearg.c (quotearg_free): New function.
48988         (slot0, nslots, slotvec0, slotvec):
48989         Now file-scope so that quotearg_free can get at them.
48990
48991 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48992
48993         Sync from Automake.
48994         * build-aux/gnupload: Add missing 'gnu' to example URL.
48995         Report by Karl Berry.
48996
48997 2006-11-08  Bruno Haible  <bruno@clisp.org>
48998
48999         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
49000         Suggested by Paul Eggert.
49001
49002 2006-11-08  Jim Meyering  <jim@meyering.net>
49003
49004         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
49005         It's already included if !_LIBC.
49006         (fts_safe_changedir): Add a comment.
49007
49008 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
49009
49010         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
49011         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
49012         Matthew Woehlke.
49013
49014         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
49015         definitions up, to avoid colliding with change below.
49016         (static_inline) [HAVE_INLINE]: New macro.
49017         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
49018         Provide extern decls when !HAVE_INLINE.  Do not define unless
49019         static_inline is defined, either by us or by xmalloc.c.  Use
49020         static_inline rather than static inline.
49021         (XCALLOC): Optimize sizeof(T) = 1 case.
49022         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
49023
49024 2006-11-07  Bruno Haible  <bruno@clisp.org>
49025
49026         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
49027         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
49028         AC_C_INLINE.
49029         * modules/xalloc (Files): Add m4/inline.m4.
49030
49031 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49032
49033         * README: Fix typo.
49034         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
49035         (Miscellanous Notes): ...from this.
49036
49037 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
49038
49039         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
49040         Mention that offsetof should be used instead of sizeof.
49041         From Bruno Haible.
49042
49043 2006-11-07  Bruno Haible  <bruno@clisp.org>
49044
49045         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
49046
49047 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
49048
49049         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
49050         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
49051         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
49052         (gl_tree_add_before, gl_tree_add_after):
49053         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
49054         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
49055         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
49056         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
49057         (gl_linked_add_after, gl_linked_add_at): Likewise.
49058         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
49059         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
49060         (gl_tree_add_before, gl_tree_add_after): Likewise.
49061         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
49062         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
49063         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
49064
49065 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49066
49067         * lib/gl_oset.h: Use C comment style, not C++ comment style.
49068
49069 2006-11-06  Bruno Haible  <bruno@clisp.org>
49070
49071         * m4/inline.m4: New file.
49072         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
49073         * modules/list (Files): Add m4/inline.m4.
49074         * modules/oset (Files): Likewise.
49075
49076 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
49077
49078         * lib/idcache.c: Include <stddef.h>, for offsetof.
49079         (struct userid.name): Change from char * to a flexible array member.
49080         All uses changed.
49081         * modules/idcache (Depends-on): Add flexmember.
49082
49083         * MODULES.html.sh (Core language properties): New module flexmember.
49084         * modules/flexmember, m4/flexmember.m4: New files.
49085
49086         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
49087         inline functions that are identical with the old xnmalloc_inline,
49088         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
49089         that we can avoid some unnecessary integer multiplications and
49090         divisions in the common case where the element size is known at
49091         compile time.
49092         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
49093         needed.
49094         (xnboundedmalloc): Remove.
49095         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
49096         arguments, for consistency with rest of this header.
49097         (xcharalloc): Rewrite using XNMALLOC.
49098         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
49099         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
49100         versions have been moved to lib/xalloc.h and renamed to be the
49101         non-*_inline versions.
49102         (xmalloc, xrealloc): Implement without reference to the xnmalloc
49103         and xnrealloc functions, since those functions are now inline and
49104         now call us.
49105         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
49106         renaming described above.
49107         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
49108         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
49109         captures the dependency in AC_C_INLINE.
49110
49111         New module canonicalize-lgpl, proposed by Charles Wilson in
49112         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
49113         with a few small changes afterwards.
49114         * MODULES.html.sh (File system functions): New module
49115         canonicalize-lgpl.
49116         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
49117         and canonicalize_file_name.
49118         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
49119         * modules/canonicalize-lgpl: New files.
49120
49121 2006-11-05  Bruno Haible  <bruno@clisp.org>
49122
49123         * gnulib-tool (func_import, func_create_testdir): Create directories
49124         also for files in subdirectories of lib/.
49125
49126 2006-11-05  Bruno Haible  <bruno@clisp.org>
49127
49128         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
49129         ANSI C compliant.
49130
49131 2006-11-03  Bruno Haible  <bruno@clisp.org>
49132
49133         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
49134         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
49135         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
49136         (xnboundedmalloc): New inline function.
49137         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
49138         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
49139         xmalloc.
49140         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
49141         xmalloc.
49142         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
49143         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
49144         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
49145         xmalloc.
49146         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
49147         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
49148         xmalloc.
49149         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
49150         gl_tree_add_after): Use XMALLOC instead of xmalloc.
49151         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
49152         xmalloc.
49153         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
49154         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
49155         gl_tree_add_after): Use XMALLOC instead of xmalloc.
49156         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
49157         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
49158         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
49159         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
49160
49161 2006-11-03  Bruno Haible  <bruno@clisp.org>
49162
49163         * lib/c-ctype.h [C++]: Define functions without name mangling.
49164         * lib/fwriteerror.h [C++]: Likewise.
49165         * lib/gcd.h [C++]: Likewise.
49166         * lib/linebreak.h [C++]: Likewise.
49167
49168 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
49169
49170         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
49171         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
49172         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
49173         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49174         Check for functions and headers just once.
49175         Check for declaration of canonicalize_file_name.
49176         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
49177
49178 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49179
49180         * gnulib-tool (func_import): Fix typo in actioncmd.
49181
49182 2006-11-02  Bruno Haible  <bruno@clisp.org>
49183
49184         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
49185         newline sequence in the Makefile.am snippet as a space, like "make"
49186         does.
49187         Reported by Roger Persson <perrog@gmail.com>.
49188
49189 2006-11-01  Bruno Haible  <bruno@clisp.org>
49190
49191         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
49192         already declared in <string.h>.
49193         * lib/strcase.h (strncasecmp): Don't declare it if yes.
49194
49195 2006-11-01  Bruno Haible  <bruno@clisp.org>
49196
49197         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
49198         * lib/strcase.h: Include <string.h>.
49199         (strcasecmp): Define to rpl_strcasecmp here.
49200
49201 2006-11-01  Bruno Haible  <bruno@clisp.org>
49202
49203         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
49204
49205 2006-11-01  Eric Blake  <ebb9@byu.net>
49206
49207         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
49208
49209         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
49210
49211 2006-10-29  Bruno Haible  <bruno@clisp.org>
49212
49213         Make it compile in C++ mode.
49214         * lib/full-write.c (full_rw): Add a cast.
49215
49216 2006-11-01  Bruno Haible  <bruno@clisp.org>
49217
49218         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
49219         be POSIX compliant.
49220         Reported by Roger Persson <perrog@gmail.com>.
49221
49222 2006-11-01  Eric Blake  <ebb9@byu.net>
49223
49224         * lib/getopt_.h: Fix comments.
49225
49226 2006-10-31  Eric Blake  <ebb9@byu.net>
49227
49228         * modules/tmpdir (Depends-on): Add sys_stat.
49229         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
49230         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
49231         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
49232         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
49233         tempname.
49234
49235 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
49236
49237         Avoid some C++ diagnostics reported by Bruno Haible.
49238         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
49239         xmalloc.
49240         (quotearg_alloc): Use xcharalloc rather than xmalloc.
49241         (struct slotvec): Move to top level.
49242         (quotearg_n_options): Rewrite to avoid xmalloc.
49243         * lib/xalloc.h (xcharalloc): New function.
49244         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
49245         [defined __cplusplus]: Add function template that provides result
49246         type propagation.  This part of the change is from Bruno Haible.
49247
49248 2006-10-29  Bruno Haible  <bruno@clisp.org>
49249
49250         Make it compile in C++ mode.
49251         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
49252         * lib/strnlen1.c (strnlen1): Cast memchr result.
49253         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
49254         * lib/clean-temp.c (string_equals, string_hash): Add casts.
49255         (create_temp_dir): Rename local variable 'template'.
49256         (compile_csharp_using_sscli): Add cast.
49257         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
49258         * lib/findprog.c (find_in_path): Likewise.
49259         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
49260         * lib/wait-process.c (register_slave_subprocess): Likewise.
49261
49262 2006-10-22  Bruno Haible  <bruno@clisp.org>
49263
49264         * modules/tsearch: New file.
49265         * lib/tsearch.h: New file.
49266         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
49267         * m4/tsearch.m4: New file.
49268         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
49269
49270 2006-10-29  Eric Blake  <ebb9@byu.net>
49271
49272         * lib/arcfour.c: Assume config.h.
49273         * lib/arctwo.c: Likewise.
49274         * lib/base64.c: Likewise.
49275         * lib/check-version.c: Likewise.
49276         * lib/crc.c: Likewise.
49277         * lib/des.c: Likewise.
49278         * lib/gc-gnulib.c: Likewise.
49279         * lib/gc-libgcrypt.c: Likewise.
49280         * lib/gc-pbkdf2-sha1.c: Likewise.
49281         * lib/getaddrinfo.c: Likewise.
49282         * lib/getdelim.c: Likewise.
49283         * lib/getline.c: Likewise.
49284         * lib/hmac-md5.c: Likewise.
49285         * lib/hmac-sha1.c: Likewise.
49286         * lib/iconvme.c: Likewise.
49287         * lib/md2.c: Likewise.
49288         * lib/md4.c: Likewise.
49289         * lib/memxor.c: Likewise.
49290         * lib/read-file.c: Likewise.
49291         * lib/readline.c: Likewise.
49292         * lib/rijndael-alg-fst.c: Likewise.
49293         * lib/rijndael-api-fst.c: Likewise.
49294         * lib/xgetdomainname.c: Likewise.
49295
49296 2006-10-28  Eric Blake  <ebb9@byu.net>
49297
49298         * lib/xstrndup.c: Assume config.h.
49299
49300 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49301
49302         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
49303         stat-macros.h is now for our own macros, whereas stat_h is for
49304         macros in the <sys/stat.h> name space.
49305         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
49306         (STAT_MACROS_H): Remove.
49307         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
49308         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
49309         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
49310         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
49311         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
49312         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
49313         Move these macros to ...
49314         * lib/stat_.h: here.  Don't include stat-macros.h.
49315         * lib/canonicalize.c: Don't include stat-macros.h.
49316         * lib/chown.c: Likewise.
49317         * lib/euidaccess.c: Likewise.
49318         * lib/file-type.c: Likewise.
49319         * lib/filemode.c: Likewise.
49320         * lib/glob.c: Likewise.
49321         * lib/isapipe.c: Likewise.
49322         * lib/lchown.c: Likewise.
49323         * lib/lstat.c: Likewise.
49324         * lib/mkdir-p.c: Likewise.
49325         * lib/rmdir.c: Likewise.
49326         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
49327         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
49328         unless mkdir isn't declared, to speed up 'configure'.
49329         Always create sys/stat.h, since it's unlikely any real sys/stat.h
49330         would define all the S_* symbols.
49331         * modules/canonicalize (Depends-on):
49332         Depend on sys_stat, not stat-macros.
49333         * modules/chown: Likewise.
49334         * modules/euidaccess: Likewise.
49335         * modules/filemode: Likewise.
49336         * modules/file-type: Likewise.
49337         * modules/glob: Likewise.
49338         * modules/isapipe: Likewise.
49339         * modules/lchown: Likewise.
49340         * modules/lstat: Likewise.
49341         * modules/mkancesdirs: Likewise.
49342         * modules/rmdir: Likewise.
49343         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
49344         * modules/modechange: Likewise.
49345         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
49346         (configure.ac): Remove gl_STAT_MACROS.
49347         * modules/sys_stat (Depends-on): Remove stat-macros.
49348
49349 2006-10-27  Bruno Haible  <bruno@clisp.org>
49350
49351         * m4/signed.m4: Remove file.
49352         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
49353         invocation.
49354         * modules/vasnprintf (Files): Remove m4/signed.m4.
49355
49356 2006-10-27  Bruno Haible  <bruno@clisp.org>
49357
49358         Update to GNU gettext 0.16.
49359         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
49360         m4/inttypes-h.m4, m4/signed.m4.
49361         * m4/gettext.m4: Update to GNU gettext 0.16.
49362         * m4/intl.m4: New file, from GNU gettext.
49363         * m4/intldir.m4: New file, from GNU gettext.
49364         * config/srclist.txt: Update
49365
49366 2006-10-27  Eric Blake  <ebb9@byu.net>
49367
49368         * MODULES.html.sh: Document tempname.
49369         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
49370         dependencies.
49371         (Files): Move lib/tempname.c...
49372         * modules/tempname: ...to this new module.
49373         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
49374         (gl_PREREQ_TEMPNAME): Move...
49375         * m4/tempname.m4: ...to this new file.
49376         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
49377         * modules/sys_stat (Depends-on): Add stat-macros.
49378         * lib/stat_.h (includes): Pick up stat macros.
49379         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
49380         if stat macros are broken.
49381         * lib/tempname.c (includes): No need to include "stat-macros.h".
49382         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
49383         (direxists, __path_search) [!_LIBC]: Don't compile these in
49384         gnulib; the tmpdir module covers that.
49385         * lib/tempname.h: New file.
49386
49387 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
49388
49389         * COPYING: Explain how gnulib-tool converts licence headers.
49390         Almost all wording by Eric Blake.
49391
49392 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
49393
49394         * lib/mbchar.h (is_basic_table): Make read-only.
49395         * lib/mbchar.c (is_basic_table): Likewise.
49396         Reported by John Darrington.
49397
49398 2006-10-25  Bruno Haible  <bruno@clisp.org>
49399
49400         * lib/progname.h (set_program_name): Undefine before defining.
49401
49402 2006-10-25  Bruno Haible  <bruno@clisp.org>
49403
49404         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
49405         false for non-gcc C++ compilers.
49406         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49407
49408 2006-10-24  Bruno Haible  <bruno@clisp.org>
49409
49410         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
49411         iconv implementations like Irix iconv.
49412
49413 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49414
49415         * modules/vararrays: New file.
49416         * m4/vararrays.m4: New file, taken from diffutils.
49417         * MODULES.html.sh: New module vararrays.
49418
49419 2006-10-24  Karl Berry  <karl@gnu.org>
49420
49421         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
49422         Don't call GNU Unix.
49423
49424 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49425
49426         * users.txt: Add Libtool.
49427
49428         Sync from Libtool:
49429
49430         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49431
49432         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
49433         to gnulib's policy of including config.h unconditionally.
49434
49435 2006-10-24  Bruno Haible  <bruno@clisp.org>
49436
49437         * modules/wcwidth (Files): Add m4/wint_t.m4.
49438         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
49439         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
49440
49441 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49442
49443         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
49444         to pacify GCC with some -W flags enabled.  Problem reported by
49445         Bruno Haible.
49446
49447 2006-10-24  Jim Meyering  <jim@meyering.net>
49448
49449         * MODULES.html.sh: Remove uinttostr.  It's not a module.
49450         Reported by Karl Berry.
49451
49452 2006-10-23  Bruno Haible  <bruno@clisp.org>
49453
49454         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
49455
49456 2006-10-24  Bruno Haible  <bruno@clisp.org>
49457
49458         * lib/gl_list.h: Use C comment style, not C++ comment style.
49459
49460 2006-10-23  Eric Blake  <ebb9@byu.net>
49461
49462         * lib/getaddrinfo.c (includes): Add missing include.
49463
49464 2006-10-23  Bruno Haible  <bruno@clisp.org>
49465             Paul Eggert  <eggert@cs.ucla.edu>
49466
49467         Ability to rename obstack_free.
49468         * lib/obstack.h (__obstack_free): New macro. Declare instead of
49469         obstack_free.
49470         (obstack_free): Invoke the __obstack_free macro.
49471         * lib/obstack.c (obstack_free): Use __obstack_free macro.
49472
49473 2006-10-23  Bruno Haible  <bruno@clisp.org>
49474             Paul Eggert  <eggert@cs.ucla.edu>
49475
49476         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
49477         __argc, __argv from the declaration. (They are defined as macros on
49478         mingw.)
49479
49480 2006-10-22  Bruno Haible  <bruno@clisp.org>
49481
49482         * doc/gnulib-intro.texi: New file.
49483         * doc/gnulib.texi: Include it.
49484
49485 2006-10-21  Bruno Haible  <bruno@clisp.org>
49486
49487         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
49488         "Introduction", "Miscellanous Notes", "Particular Modules".
49489
49490 2006-10-21  Bruno Haible  <bruno@clisp.org>
49491
49492         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49493         Change mostlyclean-local rule to avoid sh syntax error from bash
49494         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
49495
49496 2006-10-23  Jim Meyering  <jim@meyering.net>
49497
49498         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
49499         in place of snprintf.
49500
49501         * modules/inttostr (Files): Add lib/uinttostr.c.
49502         * lib/uinttostr.c (inttostr): New file/function.
49503         * lib/inttostr.h (uinttostr): Declare.
49504         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
49505         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
49506         Add uinttostr.
49507         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
49508
49509 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
49510
49511         * lib/canonicalize.c (ELOOP): Define if not already defined.
49512         Problem reported by Bruno Haible in
49513         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
49514
49515 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
49516
49517         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
49518         Problem reported by Perry Smith and Ville Laurikari.
49519
49520         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
49521         uses.
49522
49523 2006-10-19  Bruno Haible  <bruno@clisp.org>
49524
49525         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
49526         for mingw.
49527
49528 2006-10-19  Bruno Haible  <bruno@clisp.org>
49529
49530         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
49531         Needed for mingw.
49532
49533 2006-10-19  Bruno Haible  <bruno@clisp.org>
49534
49535         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
49536
49537 2006-10-19  Bruno Haible  <bruno@clisp.org>
49538
49539         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
49540         it.
49541
49542 2006-10-19  Bruno Haible  <bruno@clisp.org>
49543
49544         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
49545         invocation.
49546
49547 2006-10-19  Bruno Haible  <bruno@clisp.org>
49548
49549         * gnulib-tool (func_create_testdir): Don't include ftruncate and
49550         mountlist by default.
49551
49552 2006-10-16  Bruno Haible  <bruno@clisp.org>
49553
49554         * lib/c-strstr.c: Include c-strstr.h.
49555
49556 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49557
49558         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
49559         in a slash.
49560
49561 2006-10-18  Bruno Haible  <bruno@clisp.org>
49562
49563         * lib/lock.h [C++]: Wrap definitions in extern "C".
49564
49565 2006-10-18  Bruno Haible  <bruno@clisp.org>
49566
49567         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
49568         gl_LIBOBJS list.
49569
49570 2006-10-18  Bruno Haible  <bruno@clisp.org>
49571
49572         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
49573
49574 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
49575
49576         * lib/xstrtol.h: Include gettext.h.
49577         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
49578         Problem reported by Eric Blake.
49579         * modules/xstrtol (Depends-on): Add gettext-h.
49580
49581 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
49582
49583         * lib/strftime.c (advance): New macro.
49584         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
49585         incomplete type, so you can't add 0 to it.  Problem and patch
49586         reported by Eelco Dolstra for dietlibc.
49587
49588 2006-10-18  Jim Meyering  <jim@meyering.net>
49589
49590         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
49591         type for a local, and rename it: s/up/user_proc/.
49592
49593 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49594
49595         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
49596         READ_UTMP_USER_PROCESS.
49597         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
49598
49599 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49600
49601         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
49602         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
49603
49604 2006-10-17  Eric Blake  <ebb9@byu.net>
49605
49606         * lib/sigprocmask.c (sigprocmask): Fix typo.
49607
49608         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
49609
49610         * modules/clean-temp (Makefile.am): Don't add to make output...
49611         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
49612         config.h.
49613
49614 2006-10-17  Bruno Haible  <bruno@clisp.org>
49615
49616         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
49617         differently if DEFAULT_TEXT_DOMAIN is set.
49618
49619 2006-10-16  Bruno Haible  <bruno@clisp.org>
49620
49621         * lib/clean-temp.c: Include fwriteerror.h.
49622
49623 2006-10-16  Bruno Haible  <bruno@clisp.org>
49624
49625         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
49626
49627 2006-10-16  Bruno Haible  <bruno@clisp.org>
49628
49629         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
49630         * lib/sigprocmask.h: Include <sys/types.h>.
49631         (sigset_t): Use the system's definition if present.
49632
49633 2006-10-17  Eric Blake  <ebb9@byu.net>
49634
49635         * lib/xvasprintf.c (includes): Assume config.h.
49636         * lib/xasprintf.c (includes): Likewise.
49637
49638 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49639
49640         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
49641         at least as wide as intmax_t.
49642
49643 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
49644
49645         (Imported from Automake.)
49646         * build-aux/gnupload: Update to version 1.1 of directive file.
49647
49648 2006-10-16  Eric Blake  <ebb9@byu.net>
49649
49650         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
49651         match Automake 1.10a.
49652
49653 2006-10-14  Bruno Haible  <bruno@clisp.org>
49654
49655         * modules/sigprocmask: New file.
49656         * lib/sigprocmask.h: New file.
49657         * lib/sigprocmask.c: New file.
49658         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
49659         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
49660         request sigprocmask.o.
49661         (gl_PREREQ_SIGPROCMASK): New macro.
49662         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
49663         (Depends-on): Add sigprocmask.
49664         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
49665         gt_SIGNALBLOCKING. Test for 'raise' only once.
49666         * lib/fatal-signal.c: Include sigprocmask.h.
49667         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
49668         unblock_fatal_signals): Define always.
49669         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49670         sigprocmask.
49671
49672 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49673
49674         Sync from Automake.
49675         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
49676         which incorrectly sets the mode of an existing destination
49677         directory.  In some cases the unpatched install-sh could do the
49678         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
49679         system.  We hope this is rare in practice, but it's clearly worth
49680         fixing.  Problem reported by Alex Unleashed in
49681         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
49682         Also, don't bother to check for -m bugs unless we're using -m;
49683         suggested by Stepan Kasal.
49684
49685 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49686
49687         Sync from Automake.
49688         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
49689         `-c' flag, so they appear at the same position as in %FASTDEP%
49690         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
49691         which ignores unknown options only after the first non-option.
49692         Bug report against M4 by Nelson H. F. Beebe.
49693
49694 2006-10-13  Jim Meyering  <jim@meyering.net>
49695
49696         Fix a bug in yesterday's change.
49697         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
49698         p->fts_statp->st_dev would be used uninitialized.
49699         Ensures that we always call fts_stat on the very first entry.
49700         Miklos Szeredi reported that find -xdev stopped working.
49701
49702 2006-10-12  Bruno Haible  <bruno@clisp.org>
49703
49704         * gnulib-tool (func_get_automake_snippet): Append an automatically
49705         computed EXTRA_DIST augmentation.
49706         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
49707         * modules/alloca-opt (Makefile.am): Likewise.
49708         * modules/allocsa (Makefile.am): Likewise.
49709         * modules/arcfour (Makefile.am): Likewise.
49710         * modules/arctwo (Makefile.am): Likewise.
49711         * modules/argmatch (Makefile.am): Likewise.
49712         * modules/argz (Makefile.am): Likewise.
49713         * modules/atexit (Makefile.am): Likewise.
49714         * modules/backupfile (Makefile.am): Likewise.
49715         * modules/byteswap (Makefile.am): Likewise.
49716         * modules/c-strtod (Makefile.am): Likewise.
49717         * modules/c-strtold (Makefile.am): Likewise.
49718         * modules/calloc (Makefile.am): Likewise.
49719         * modules/canon-host (Makefile.am): Likewise.
49720         * modules/canonicalize (Makefile.am): Likewise.
49721         * modules/chdir-long (Makefile.am): Likewise.
49722         * modules/chdir-safer (Makefile.am): Likewise.
49723         * modules/check-version (Makefile.am): Likewise.
49724         * modules/chown (Makefile.am): Likewise.
49725         * modules/cloexec (Makefile.am): Likewise.
49726         * modules/close-stream (Makefile.am): Likewise.
49727         * modules/closeout (Makefile.am): Likewise.
49728         * modules/crc (Makefile.am): Likewise.
49729         * modules/csharpexec (Makefile.am): Likewise.
49730         * modules/cycle-check (Makefile.am): Likewise.
49731         * modules/des (Makefile.am): Likewise.
49732         * modules/dev-ino (Makefile.am): Likewise.
49733         * modules/dirfd (Makefile.am): Likewise.
49734         * modules/dirname (Makefile.am): Likewise.
49735         * modules/dup2 (Makefile.am): Likewise.
49736         * modules/eealloc (Makefile.am): Likewise.
49737         * modules/error (Makefile.am): Likewise.
49738         * modules/euidaccess (Makefile.am): Likewise.
49739         * modules/exclude (Makefile.am): Likewise.
49740         * modules/exitfail (Makefile.am): Likewise.
49741         * modules/fcntl-safer (Makefile.am): Likewise.
49742         * modules/fcntl (Makefile.am): Likewise.
49743         * modules/file-type (Makefile.am): Likewise.
49744         * modules/fileblocks (Makefile.am): Likewise.
49745         * modules/filemode (Makefile.am): Likewise.
49746         * modules/filenamecat (Makefile.am): Likewise.
49747         * modules/fnmatch (Makefile.am): Likewise.
49748         * modules/fopen-safer (Makefile.am): Likewise.
49749         * modules/fpending (Makefile.am): Likewise.
49750         * modules/fprintftime (Makefile.am): Likewise.
49751         * modules/free (Makefile.am): Likewise.
49752         * modules/fsusage (Makefile.am): Likewise.
49753         * modules/ftruncate (Makefile.am): Likewise.
49754         * modules/fts (Makefile.am): Likewise.
49755         * modules/gc-arcfour (Makefile.am): Likewise.
49756         * modules/gc-des (Makefile.am): Likewise.
49757         * modules/gc-hmac-md5 (Makefile.am): Likewise.
49758         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
49759         * modules/gc-md4 (Makefile.am): Likewise.
49760         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
49761         * modules/gc-sha1 (Makefile.am): Likewise.
49762         * modules/gc (Makefile.am): Likewise.
49763         * modules/getaddrinfo (Makefile.am): Likewise.
49764         * modules/getcwd (Makefile.am): Likewise.
49765         * modules/getdelim (Makefile.am): Likewise.
49766         * modules/getdomainname (Makefile.am): Likewise.
49767         * modules/getgroups (Makefile.am): Likewise.
49768         * modules/gethostname (Makefile.am): Likewise.
49769         * modules/gethrxtime (Makefile.am): Likewise.
49770         * modules/getline (Makefile.am): Likewise.
49771         * modules/getloadavg (Makefile.am): Likewise.
49772         * modules/getlogin_r (Makefile.am): Likewise.
49773         * modules/getndelim2 (Makefile.am): Likewise.
49774         * modules/getopt (Makefile.am): Likewise.
49775         * modules/getpagesize (Makefile.am): Likewise.
49776         * modules/getpass-gnu (Makefile.am): Likewise.
49777         * modules/getpass (Makefile.am): Likewise.
49778         * modules/getsubopt (Makefile.am): Likewise.
49779         * modules/gettime (Makefile.am): Likewise.
49780         * modules/gettimeofday (Makefile.am): Likewise.
49781         * modules/getugroups (Makefile.am): Likewise.
49782         * modules/getusershell (Makefile.am): Likewise.
49783         * modules/glob (Makefile.am): Likewise.
49784         * modules/group-member (Makefile.am): Likewise.
49785         * modules/hard-locale (Makefile.am): Likewise.
49786         * modules/hash (Makefile.am): Likewise.
49787         * modules/hmac-md5 (Makefile.am): Likewise.
49788         * modules/hmac-sha1 (Makefile.am): Likewise.
49789         * modules/human (Makefile.am): Likewise.
49790         * modules/idcache (Makefile.am): Likewise.
49791         * modules/imaxabs (Makefile.am): Likewise.
49792         * modules/imaxdiv (Makefile.am): Likewise.
49793         * modules/inet_ntop (Makefile.am): Likewise.
49794         * modules/inet_pton (Makefile.am): Likewise.
49795         * modules/intprops (Makefile.am): Likewise.
49796         * modules/inttostr (Makefile.am): Likewise.
49797         * modules/inttypes (Makefile.am): Likewise.
49798         * modules/isapipe (Makefile.am): Likewise.
49799         * modules/javaversion (Makefile.am): Likewise.
49800         * modules/lchmod (Makefile.am): Likewise.
49801         * modules/lchown (Makefile.am): Likewise.
49802         * modules/localcharset (Makefile.am): Likewise.
49803         * modules/long-options (Makefile.am): Likewise.
49804         * modules/lstat (Makefile.am): Likewise.
49805         * modules/malloc (Makefile.am): Likewise.
49806         * modules/mathl (Makefile.am): Likewise.
49807         * modules/mbchar (Makefile.am): Likewise.
49808         * modules/md2 (Makefile.am): Likewise.
49809         * modules/md4 (Makefile.am): Likewise.
49810         * modules/md5 (Makefile.am): Likewise.
49811         * modules/memcasecmp (Makefile.am): Likewise.
49812         * modules/memchr (Makefile.am): Likewise.
49813         * modules/memcmp (Makefile.am): Likewise.
49814         * modules/memcoll (Makefile.am): Likewise.
49815         * modules/memcpy (Makefile.am): Likewise.
49816         * modules/memmem (Makefile.am): Likewise.
49817         * modules/memmove (Makefile.am): Likewise.
49818         * modules/mempcpy (Makefile.am): Likewise.
49819         * modules/memrchr (Makefile.am): Likewise.
49820         * modules/memset (Makefile.am): Likewise.
49821         * modules/memxor (Makefile.am): Likewise.
49822         * modules/mkancesdirs (Makefile.am): Likewise.
49823         * modules/mkdir-p (Makefile.am): Likewise.
49824         * modules/mkdir (Makefile.am): Likewise.
49825         * modules/mkdtemp (Makefile.am): Likewise.
49826         * modules/mkstemp (Makefile.am): Likewise.
49827         * modules/mktime (Makefile.am): Likewise.
49828         * modules/modechange (Makefile.am): Likewise.
49829         * modules/mountlist (Makefile.am): Likewise.
49830         * modules/nanosleep (Makefile.am): Likewise.
49831         * modules/obstack (Makefile.am): Likewise.
49832         * modules/openat (Makefile.am): Likewise.
49833         * modules/pagealign_alloc (Makefile.am): Likewise.
49834         * modules/pathmax (Makefile.am): Likewise.
49835         * modules/physmem (Makefile.am): Likewise.
49836         * modules/poll (Makefile.am): Likewise.
49837         * modules/posixtm (Makefile.am): Likewise.
49838         * modules/posixver (Makefile.am): Likewise.
49839         * modules/putenv (Makefile.am): Likewise.
49840         * modules/quote (Makefile.am): Likewise.
49841         * modules/quotearg (Makefile.am): Likewise.
49842         * modules/raise (Makefile.am): Likewise.
49843         * modules/read-file (Makefile.am): Likewise.
49844         * modules/readline (Makefile.am): Likewise.
49845         * modules/readlink (Makefile.am): Likewise.
49846         * modules/readtokens (Makefile.am): Likewise.
49847         * modules/readutmp (Makefile.am): Likewise.
49848         * modules/realloc (Makefile.am): Likewise.
49849         * modules/regex (Makefile.am): Likewise.
49850         * modules/rename-dest-slash (Makefile.am): Likewise.
49851         * modules/rename (Makefile.am): Likewise.
49852         * modules/rijndael (Makefile.am): Likewise.
49853         * modules/rmdir (Makefile.am): Likewise.
49854         * modules/rpmatch (Makefile.am): Likewise.
49855         * modules/safe-read (Makefile.am): Likewise.
49856         * modules/safe-write (Makefile.am): Likewise.
49857         * modules/same-inode (Makefile.am): Likewise.
49858         * modules/same (Makefile.am): Likewise.
49859         * modules/save-cwd (Makefile.am): Likewise.
49860         * modules/savedir (Makefile.am): Likewise.
49861         * modules/setenv (Makefile.am): Likewise.
49862         * modules/settime (Makefile.am): Likewise.
49863         * modules/sha1 (Makefile.am): Likewise.
49864         * modules/sig2str (Makefile.am): Likewise.
49865         * modules/snprintf (Makefile.am): Likewise.
49866         * modules/stat-macros (Makefile.am): Likewise.
49867         * modules/stat-time (Makefile.am): Likewise.
49868         * modules/stdbool (Makefile.am): Likewise.
49869         * modules/stdint (Makefile.am): Likewise.
49870         * modules/stdlib-safer (Makefile.am): Likewise.
49871         * modules/stpcpy (Makefile.am): Likewise.
49872         * modules/stpncpy (Makefile.am): Likewise.
49873         * modules/strcase (Makefile.am): Likewise.
49874         * modules/strcasestr (Makefile.am): Likewise.
49875         * modules/strchrnul (Makefile.am): Likewise.
49876         * modules/strcspn (Makefile.am): Likewise.
49877         * modules/strdup (Makefile.am): Likewise.
49878         * modules/strerror (Makefile.am): Likewise.
49879         * modules/strftime (Makefile.am): Likewise.
49880         * modules/strndup (Makefile.am): Likewise.
49881         * modules/strnlen (Makefile.am): Likewise.
49882         * modules/strpbrk (Makefile.am): Likewise.
49883         * modules/strsep (Makefile.am): Likewise.
49884         * modules/strstr (Makefile.am): Likewise.
49885         * modules/strtod (Makefile.am): Likewise.
49886         * modules/strtoimax (Makefile.am): Likewise.
49887         * modules/strtok_r (Makefile.am): Likewise.
49888         * modules/strtol (Makefile.am): Likewise.
49889         * modules/strtoll (Makefile.am): Likewise.
49890         * modules/strtoul (Makefile.am): Likewise.
49891         * modules/strtoull (Makefile.am): Likewise.
49892         * modules/strtoumax (Makefile.am): Likewise.
49893         * modules/strverscmp (Makefile.am): Likewise.
49894         * modules/sys_socket (Makefile.am): Likewise.
49895         * modules/sys_stat (Makefile.am): Likewise.
49896         * modules/sysexits (Makefile.am): Likewise.
49897         * modules/time_r (Makefile.am): Likewise.
49898         * modules/timegm (Makefile.am): Likewise.
49899         * modules/timespec (Makefile.am): Likewise.
49900         * modules/tmpfile-safer (Makefile.am): Likewise.
49901         * modules/trim (Makefile.am): Likewise.
49902         * modules/unistd-safer (Makefile.am): Likewise.
49903         * modules/unlinkdir (Makefile.am): Likewise.
49904         * modules/unlocked-io (Makefile.am): Likewise.
49905         * modules/userspec (Makefile.am): Likewise.
49906         * modules/utime (Makefile.am): Likewise.
49907         * modules/utimecmp (Makefile.am): Likewise.
49908         * modules/utimens (Makefile.am): Likewise.
49909         * modules/vasnprintf (Makefile.am): Likewise.
49910         * modules/vasprintf (Makefile.am): Likewise.
49911         * modules/vsnprintf (Makefile.am): Likewise.
49912         * modules/xalloc (Makefile.am): Likewise.
49913         * modules/xgetcwd (Makefile.am): Likewise.
49914         * modules/xnanosleep (Makefile.am): Likewise.
49915         * modules/xreadlink (Makefile.am): Likewise.
49916         * modules/xstrtod (Makefile.am): Likewise.
49917         * modules/xstrtol (Makefile.am): Likewise.
49918         * modules/xstrtold (Makefile.am): Likewise.
49919         * modules/yesno (Makefile.am): Likewise.
49920         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
49921
49922 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49923
49924         * modules/error (Makefile.am): Distribute files through
49925         EXTRA_DIST, not lib_SOURCES.
49926
49927 2006-10-12  Eric Blake  <ebb9@byu.net>
49928
49929         * modules/error (Makefile.am): Distribute files in /lib.
49930         * modules/obstack (Makefile.am): Likewise.
49931
49932 2006-10-12  Bruno Haible  <bruno@clisp.org>
49933
49934         * modules/acl (Makefile.am): Distribute all files in lib/ through
49935         EXTRA_DIST.
49936         * modules/arcfour (Makefile.am): Likewise.
49937         * modules/arctwo (Makefile.am): Likewise.
49938         * modules/argmatch (Makefile.am): Likewise.
49939         * modules/argz (Makefile.am): Likewise.
49940         * modules/atexit (Makefile.am): Likewise.
49941         * modules/backupfile (Makefile.am): Likewise.
49942         * modules/c-strtod (Makefile.am): Likewise.
49943         * modules/c-strtold (Makefile.am): Likewise.
49944         * modules/calloc (Makefile.am): Likewise.
49945         * modules/canon-host (Makefile.am): Likewise.
49946         * modules/canonicalize (Makefile.am): Likewise.
49947         * modules/chdir-long (Makefile.am): Likewise.
49948         * modules/chdir-safer (Makefile.am): Likewise.
49949         * modules/check-version (Makefile.am): Likewise.
49950         * modules/chown (Makefile.am): Likewise.
49951         * modules/cloexec (Makefile.am): Likewise.
49952         * modules/close-stream (Makefile.am): Likewise.
49953         * modules/closeout (Makefile.am): Likewise.
49954         * modules/crc (Makefile.am): Likewise.
49955         * modules/cycle-check (Makefile.am): Likewise.
49956         * modules/des (Makefile.am): Likewise.
49957         * modules/dirfd (Makefile.am): Likewise.
49958         * modules/dirname (Makefile.am): Likewise.
49959         * modules/dup2 (Makefile.am): Likewise.
49960         * modules/euidaccess (Makefile.am): Likewise.
49961         * modules/exclude (Makefile.am): Likewise.
49962         * modules/exitfail (Makefile.am): Likewise.
49963         * modules/fcntl-safer (Makefile.am): Likewise.
49964         * modules/file-type (Makefile.am): Likewise.
49965         * modules/fileblocks (Makefile.am): Likewise.
49966         * modules/filemode (Makefile.am): Likewise.
49967         * modules/filenamecat (Makefile.am): Likewise.
49968         * modules/fnmatch (Makefile.am): Likewise.
49969         * modules/fopen-safer (Makefile.am): Likewise.
49970         * modules/fpending (Makefile.am): Likewise.
49971         * modules/fprintftime (Makefile.am): Likewise.
49972         * modules/free (Makefile.am): Likewise.
49973         * modules/fsusage (Makefile.am): Likewise.
49974         * modules/ftruncate (Makefile.am): Likewise.
49975         * modules/fts (Makefile.am): Likewise.
49976         * modules/gc (Makefile.am): Likewise.
49977         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
49978         * modules/getaddrinfo (Makefile.am): Likewise.
49979         * modules/getcwd (Makefile.am): Likewise.
49980         * modules/getdelim (Makefile.am): Likewise.
49981         * modules/getdomainname (Makefile.am): Likewise.
49982         * modules/getgroups (Makefile.am): Likewise.
49983         * modules/gethostname (Makefile.am): Likewise.
49984         * modules/gethrxtime (Makefile.am): Likewise.
49985         * modules/getline (Makefile.am): Likewise.
49986         * modules/getloadavg (Makefile.am): Likewise.
49987         * modules/getlogin_r (Makefile.am): Likewise.
49988         * modules/getopt (Makefile.am): Likewise.
49989         * modules/getpass (Makefile.am): Likewise.
49990         * modules/getpass-gnu (Makefile.am): Likewise.
49991         * modules/getsubopt (Makefile.am): Likewise.
49992         * modules/gettime (Makefile.am): Likewise.
49993         * modules/gettimeofday (Makefile.am): Likewise.
49994         * modules/getugroups (Makefile.am): Likewise.
49995         * modules/getusershell (Makefile.am): Likewise.
49996         * modules/glob (Makefile.am): Likewise.
49997         * modules/group-member (Makefile.am): Likewise.
49998         * modules/hard-locale (Makefile.am): Likewise.
49999         * modules/hash (Makefile.am): Likewise.
50000         * modules/hmac-md5 (Makefile.am): Likewise.
50001         * modules/hmac-sha1 (Makefile.am): Likewise.
50002         * modules/human (Makefile.am): Likewise.
50003         * modules/idcache (Makefile.am): Likewise.
50004         * modules/imaxabs (Makefile.am): Likewise.
50005         * modules/imaxdiv (Makefile.am): Likewise.
50006         * modules/inet_ntop (Makefile.am): Likewise.
50007         * modules/inet_pton (Makefile.am): Likewise.
50008         * modules/inttostr (Makefile.am): Likewise.
50009         * modules/isapipe (Makefile.am): Likewise.
50010         * modules/lchown (Makefile.am): Likewise.
50011         * modules/long-options (Makefile.am): Likewise.
50012         * modules/lstat (Makefile.am): Likewise.
50013         * modules/malloc (Makefile.am): Likewise.
50014         * modules/mathl (Makefile.am): Likewise.
50015         * modules/mbchar (Makefile.am): Likewise.
50016         * modules/md2 (Makefile.am): Likewise.
50017         * modules/md4 (Makefile.am): Likewise.
50018         * modules/md5 (Makefile.am): Likewise.
50019         * modules/memcasecmp (Makefile.am): Likewise.
50020         * modules/memchr (Makefile.am): Likewise.
50021         * modules/memcmp (Makefile.am): Likewise.
50022         * modules/memcoll (Makefile.am): Likewise.
50023         * modules/memcpy (Makefile.am): Likewise.
50024         * modules/memmem (Makefile.am): Likewise.
50025         * modules/memmove (Makefile.am): Likewise.
50026         * modules/mempcpy (Makefile.am): Likewise.
50027         * modules/memrchr (Makefile.am): Likewise.
50028         * modules/memset (Makefile.am): Likewise.
50029         * modules/memxor (Makefile.am): Likewise.
50030         * modules/mkancesdirs (Makefile.am): Likewise.
50031         * modules/mkdir (Makefile.am): Likewise.
50032         * modules/mkdir-p (Makefile.am): Likewise.
50033         * modules/mkdtemp (Makefile.am): Likewise.
50034         * modules/mkstemp (Makefile.am): Likewise.
50035         * modules/mktime (Makefile.am): Likewise.
50036         * modules/modechange (Makefile.am): Likewise.
50037         * modules/mountlist (Makefile.am): Likewise.
50038         * modules/nanosleep (Makefile.am): Likewise.
50039         * modules/openat (Makefile.am): Likewise.
50040         * modules/pagealign_alloc (Makefile.am): Likewise.
50041         * modules/physmem (Makefile.am): Likewise.
50042         * modules/poll (Makefile.am): Likewise.
50043         * modules/posixtm (Makefile.am): Likewise.
50044         * modules/posixver (Makefile.am): Likewise.
50045         * modules/putenv (Makefile.am): Likewise.
50046         * modules/quote (Makefile.am): Likewise.
50047         * modules/quotearg (Makefile.am): Likewise.
50048         * modules/raise (Makefile.am): Likewise.
50049         * modules/read-file (Makefile.am): Likewise.
50050         * modules/readline (Makefile.am): Likewise.
50051         * modules/readlink (Makefile.am): Likewise.
50052         * modules/readtokens (Makefile.am): Likewise.
50053         * modules/readutmp (Makefile.am): Likewise.
50054         * modules/realloc (Makefile.am): Likewise.
50055         * modules/regex (Makefile.am): Likewise.
50056         * modules/rename (Makefile.am): Likewise.
50057         * modules/rename-dest-slash (Makefile.am): Likewise.
50058         * modules/rijndael (Makefile.am): Likewise.
50059         * modules/rmdir (Makefile.am): Likewise.
50060         * modules/rpmatch (Makefile.am): Likewise.
50061         * modules/safe-read (Makefile.am): Likewise.
50062         * modules/safe-write (Makefile.am): Likewise.
50063         * modules/same (Makefile.am): Likewise.
50064         * modules/save-cwd (Makefile.am): Likewise.
50065         * modules/savedir (Makefile.am): Likewise.
50066         * modules/setenv (Makefile.am): Likewise.
50067         * modules/settime (Makefile.am): Likewise.
50068         * modules/sha1 (Makefile.am): Likewise.
50069         * modules/sig2str (Makefile.am): Likewise.
50070         * modules/snprintf (Makefile.am): Likewise.
50071         * modules/stdlib-safer (Makefile.am): Likewise.
50072         * modules/stpcpy (Makefile.am): Likewise.
50073         * modules/stpncpy (Makefile.am): Likewise.
50074         * modules/strcase (Makefile.am): Likewise.
50075         * modules/strcasestr (Makefile.am): Likewise.
50076         * modules/strchrnul (Makefile.am): Likewise.
50077         * modules/strcspn (Makefile.am): Likewise.
50078         * modules/strdup (Makefile.am): Likewise.
50079         * modules/strerror (Makefile.am): Likewise.
50080         * modules/strftime (Makefile.am): Likewise.
50081         * modules/strndup (Makefile.am): Likewise.
50082         * modules/strnlen (Makefile.am): Likewise.
50083         * modules/strpbrk (Makefile.am): Likewise.
50084         * modules/strsep (Makefile.am): Likewise.
50085         * modules/strstr (Makefile.am): Likewise.
50086         * modules/strtod (Makefile.am): Likewise.
50087         * modules/strtoimax (Makefile.am): Likewise.
50088         * modules/strtok_r (Makefile.am): Likewise.
50089         * modules/strtol (Makefile.am): Likewise.
50090         * modules/strtoll (Makefile.am): Likewise.
50091         * modules/strtoul (Makefile.am): Likewise.
50092         * modules/strtoull (Makefile.am): Likewise.
50093         * modules/strtoumax (Makefile.am): Likewise.
50094         * modules/strverscmp (Makefile.am): Likewise.
50095         * modules/time_r (Makefile.am): Likewise.
50096         * modules/timegm (Makefile.am): Likewise.
50097         * modules/tmpfile-safer (Makefile.am): Likewise.
50098         * modules/unistd-safer (Makefile.am): Likewise.
50099         * modules/unlinkdir (Makefile.am): Likewise.
50100         * modules/userspec (Makefile.am): Likewise.
50101         * modules/utime (Makefile.am): Likewise.
50102         * modules/utimecmp (Makefile.am): Likewise.
50103         * modules/utimens (Makefile.am): Likewise.
50104         * modules/vasnprintf (Makefile.am): Likewise.
50105         * modules/vasprintf (Makefile.am): Likewise.
50106         * modules/vsnprintf (Makefile.am): Likewise.
50107         * modules/xalloc (Makefile.am): Likewise.
50108         * modules/xgetcwd (Makefile.am): Likewise.
50109         * modules/xnanosleep (Makefile.am): Likewise.
50110         * modules/xreadlink (Makefile.am): Likewise.
50111         * modules/xstrtod (Makefile.am): Likewise.
50112         * modules/xstrtol (Makefile.am): Likewise.
50113         * modules/xstrtold (Makefile.am): Likewise.
50114         * modules/yesno (Makefile.am): Likewise.
50115
50116 2006-10-12  Jim Meyering  <jim@meyering.net>
50117
50118         * m4/getloadavg.m4: Revert the change below.
50119
50120         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
50121         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
50122         fail with a symlink, which is what coreutils' ./bootstrap now
50123         creates by default.
50124
50125 2006-10-12  Bruno Haible  <bruno@clisp.org>
50126
50127         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
50128         mingw.
50129         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
50130         MSVC and mingw explicitly.
50131
50132 2006-10-11  Simon Josefsson  <jas@extundo.com>
50133             Bruno Haible  <bruno@clisp.org>
50134
50135         Add support for multiple gnulib-tool invocations in the scope of a
50136         single configure.ac file.
50137         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
50138         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
50139         with the same contents as the _LIBADD variable.
50140         (func_emit_initmacro_start, func_emit_initmacro_end,
50141         func_emit_initmacro_done): New functions.
50142         (func_import, func_create_testdir): Invoke them. Allow the identifiers
50143         gl_LIBOBJS and gl_LTLIBOBJS.
50144
50145 2006-10-11  Bruno Haible  <bruno@clisp.org>
50146
50147         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
50148         (func_create_testdir): Don't create po/Makefile.am, don't invoke
50149         autoreconf. Instead, invoke autopoint explicitly but move back the
50150         *.m4 files from gnulib.
50151
50152 2006-10-11  Bruno Haible  <bruno@clisp.org>
50153
50154         * gnulib-tool (func_usage): Make module names after --create-testdir
50155         optional.
50156         (func_create_testdir): If no module was specified, use nearly all
50157         modules.
50158
50159 2006-10-12  Jim Meyering  <jim@meyering.net>
50160
50161         Big performance improvement for fts-based tools that use FTS_NOSTAT.
50162         Avoid spurious inode-mismatch problems on non-POSIX file systems.
50163         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
50164         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
50165         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
50166         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
50167         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
50168         (fts_set_stat_required): New function.
50169         (fts_open): Defer the calls to fts_stat, if possible or requested.
50170         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
50171         into fts_stat itself.
50172         (fts_read): Perform any required (deferred) fts_stat call.
50173         (fts_build): Likewise, for the directory we're about to open and read.
50174         In the readdir loop, carefully decide whether each entry will require
50175         an eventual call to fts_stat, using dirent.d_type info if available.
50176         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
50177         a command line argument into this function.  Update all callers.
50178         Map a return value of FTS_DOT to FTS_D for a command line argument.
50179         * modules/fts (Depends-on): Add d-type.  Alphabetize.
50180         Thanks to Miklos Szeredi for his tenacity and for the initial
50181         bug report about "find" failing on a FUSE-based file system.
50182
50183         * lib/fts.c (fts_open): Use consistent indentation.
50184
50185 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
50186
50187         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
50188         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
50189         reported by Jim Meyering.  All uses of cache variables renamed
50190         to match Autoconf's.
50191         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
50192         the other one.
50193
50194         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
50195         Fix misspelling in diagnostic.
50196
50197 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50198
50199         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
50200         defined.  Problem reported by Matthew Woehlke.
50201
50202         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
50203         Add support for Tandem NonStop R series.
50204         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
50205         Use new macro.
50206
50207         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
50208         (has_trailing_slash): Omit size arg; all callers changed.
50209         Omit 'inline', since it doesn't help performance and we'd
50210         need to configure it.
50211         Don't count //, ///, etc. as having a trailing slash.
50212         As a side effect, this removes a C99ism reported by Matthew Woehlke.
50213         (rpl_rename_dest_slash): On failure, use rename's errno rather
50214         than (in some cases) an incorrect or junk errno.
50215         Simplify code by removing need to compute length; this does
50216         cause it to make two passes instead of one over the file name,
50217         but it's worth it.
50218
50219         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
50220         change, since Autoconf's version may no longer be appropriate now
50221         that we are using CVS Autoconf's version.  Add support for Tandem.
50222
50223 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50224             Bruno Haible  <bruno@clisp.org>
50225
50226         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
50227         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
50228         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
50229         gl_AC_TYPE_LONG_LONG.
50230
50231         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
50232         instead of HAVE_LONG_LONG.
50233         * lib/printf-args.c (printf_fetchargs): Likewise.
50234         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
50235         * lib/vasnprintf.c (VASNPRINTF): Likewise.
50236         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
50237         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
50238         gl_AC_TYPE_LONG_LONG.
50239
50240 2006-10-11  Bruno Haible  <bruno@clisp.org>
50241
50242         * m4/longlong.m4: Add comments.
50243         * m4/ulonglong.m4: Likewise.
50244
50245 2006-10-10  Bruno Haible  <bruno@clisp.org>
50246
50247         Make it possible to #define stpcpy, strdup to aliases.
50248         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
50249         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
50250
50251 2006-10-10  Bruno Haible  <bruno@clisp.org>
50252
50253         Make it possible to #define gcd to an alias.
50254         * lib/gcd.c: Include config.h.
50255
50256 2006-10-10  Bruno Haible  <bruno@clisp.org>
50257
50258         Make it possible to #define c_isascii to an alias.
50259         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
50260         defined. Undefine the macros before defining them, to avoid gcc
50261         warnings.
50262         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
50263         define NO_C_CTYPE_MACROS early.
50264
50265 2006-10-10  Bruno Haible  <bruno@clisp.org>
50266
50267         Make it possible to #define set_program_name to an alias.
50268         * lib/progname.c: Don't undefine set_program_name; instead, undefine
50269         ENABLE_RELOCATABLE early.
50270
50271 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
50272
50273         Port to Tandem NSK OSS, which has 64-bit signed int but at most
50274         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
50275         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
50276         More generally, don't assume that 64-bit signed int is available
50277         if unsigned int is, and vice versa.
50278         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
50279         unsigned symbols, not on their signed counterparts.
50280         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
50281         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
50282         (UINT64_C, UINTMAX_C):
50283         Likewise.
50284         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
50285         unsigned counterparts.
50286         (Have_long_long, Unsigned): New macros.
50287         (Int): Renamed from INT.
50288         (strtoimax): Use the new macros.
50289         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
50290         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
50291         * modules/inttypes (inttypes.h): Substitute
50292         HAVE_UNSIGNED_LONG_LONG_INT.
50293         * modules/stdint (stdint.h): Likewise.
50294         (Files): Add m4/ulonglong.m4.
50295
50296 2006-10-10  Bruno Haible  <bruno@clisp.org>
50297
50298         Fix a gcc -Wshadow warning.
50299         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
50300         to 'bucket'.
50301         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
50302         gl_linked_indexof_from_to): Likewise.
50303         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
50304         Likewise.
50305         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
50306         Likewise.
50307         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
50308         Reported by Eric Blake.
50309
50310 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
50311
50312         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
50313         for NetBSD.  Problem reported by Bruno Haible.
50314
50315 2006-10-09  Jim Meyering  <jim@meyering.net>
50316
50317         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
50318         Patch from Bruno Haible.
50319
50320 2006-10-09  Jim Meyering  <jim@meyering.net>
50321
50322         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
50323         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
50324         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
50325
50326 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50327
50328         Don't include <config.h> twice; this doesn't work in some cases,
50329         e.g., when config.h has "#define intmax_t long long int" and
50330         we include <config.h>, <inttypes.h>, <config.h> in that order.
50331         Problem reported by Matthew Woehlke in:
50332         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
50333         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
50334         * lib/fts-cycle.c: Don't include config.h.
50335         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
50336         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
50337         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
50338         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
50339         inttypes.h.
50340         * lib/xstrtoumax.c: Likewise.
50341         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
50342         __strtol and the like, so that this module is more like its siblings.
50343         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
50344         Remove; no longer needed now that we assume gnulib inttypes.h.
50345
50346 2006-10-08  Bruno Haible  <bruno@clisp.org>
50347
50348         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
50349         option.
50350
50351 2006-10-07  Jim Meyering  <jim@meyering.net>
50352
50353         * modules/inttypes (inttypes.h): Revert what seems to have been
50354         an inadvertent part of today's change: use "|", not "/" in the
50355         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
50356
50357 2006-10-07  Bruno Haible  <bruno@clisp.org>
50358
50359         * modules/sublist: New file.
50360
50361 2006-10-07  Bruno Haible  <bruno@clisp.org>
50362
50363         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
50364         * modules/argz (argz.h): Likewise.
50365         * modules/arpa_inet (arpa/inet.h): Likewise.
50366         * modules/byteswap (byteswap.h): Likewise.
50367         * modules/configmake (configmake.h): Likewise.
50368         * modules/fcntl (fcntl.h): Likewise.
50369         * modules/fnmatch (fnmatch.h): Likewise.
50370         * modules/getopt (getopt.h): Likewise.
50371         * modules/glob (glob.h): Likewise.
50372         * modules/inttypes (inttypes.h): Likewise.
50373         * modules/netinet_in (netinet/in.h): Likewise.
50374         * modules/poll (poll.h): Likewise.
50375         * modules/stdbool (stdbool.h): Likewise.
50376         * modules/stdint (stdint.h): Likewise.
50377         * modules/sys_select (sys/select.h): Likewise.
50378         * modules/sys_socket (sys/socket.h): Likewise.
50379         * modules/sys_stat (sys/stat.h): Likewise.
50380         * modules/sysexits (sysexits.h): Likewise.
50381         * modules/unistd (unistd.h): Likewise.
50382         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50383         Add a "DO NOT EDIT" comment to the generated file.
50384         (func_import): Likewise for gnulib-comp.m4.
50385
50386 2006-10-07  Bruno Haible  <bruno@clisp.org>
50387
50388         * lib/gl_sublist.h: New file.
50389         * lib/gl_sublist.c: New file.
50390
50391 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
50392
50393         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
50394         name (relative to the original working directory) and the file
50395         name component (relative to the temporary working directory).  All
50396         callers changed.
50397         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
50398         * lib/mkdir-p.c (make_dir_parents): Likewise.
50399         * lib/mkdir-p.h (make_dir_parents): Likewise.
50400
50401 2006-10-06  Eric Blake  <ebb9@byu.net>
50402
50403         Define several macros for use by the clean-temp module.
50404         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
50405         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
50406         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
50407
50408         * lib/clean-temp.h (close_stream_temp): New declaration.
50409         * lib/clean-temp.c (includes): Pull in headers according to what
50410         other modules are in use.
50411         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
50412
50413 2006-10-06  Bruno Haible  <bruno@clisp.org>
50414
50415         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
50416         instead of fopen, fwriteerror.
50417
50418 2006-10-06  Bruno Haible  <bruno@clisp.org>
50419
50420         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
50421         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
50422         int.
50423         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
50424         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
50425         Return an error indicator.
50426         Suggested by Eric Blake.
50427
50428 2006-10-06  Bruno Haible  <bruno@clisp.org>
50429
50430         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
50431         Reported by Eric Blake.
50432
50433 2006-10-06  Bruno Haible  <bruno@clisp.org>
50434
50435         * modules/closeout (Description): Mention stderr too.
50436
50437 2006-10-06  Bruno Haible  <bruno@clisp.org>
50438         and Paul Eggert  <eggert@cs.ucla.edu>
50439
50440         * lib/closeout.c (close_stdout): Also close stderr.
50441         * lib/closeout.h: Update comment.
50442
50443 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
50444
50445         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
50446         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
50447         * lib/dirchownmod.c: Include lchown.h.
50448         * lib/lchown.c: Don't include files that lchown.h now includes.
50449         Don't declare chown, since lchown.h now does that.
50450         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
50451         (lchown): Define to rpl_chown if lchown is declared but
50452         does not exist.  Declare using a prototype if lchown is not
50453         declared.  Add a copyright notice.
50454         * lib/mkstemp.h: Include <unistd.h>.
50455         * lib/openat.c: Include lchown.h.
50456
50457         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
50458         we now test for that separately.
50459         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
50460         rather than O_NOFOLLOW, when testing whether it's possible to
50461         avoid a race condition reliably.
50462         * lib/savewd.c (savewd_chdir): Likewise.
50463
50464         Remove macros that are no longer needed now that stdint.h is
50465         reliable.
50466         * lib/fsusage.c (UINTMAX_MAX): Remove.
50467         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
50468         * lib/utimecmp.c (SIZE_MAX): Remove.
50469
50470         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
50471
50472         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
50473         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
50474         O_NOATIME works.
50475
50476 2006-10-05  Bruno Haible  <bruno@clisp.org>
50477
50478         * lib/gl_list.h (gl_sortedlist_search_from_to,
50479         gl_sortedlist_indexof_from_to): New declarations.
50480         (gl_list_implementation): New fields sortedlist_search_from_to,
50481         sortedlist_indexof_from_to.
50482         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
50483         inline functions.
50484         * lib/gl_list.c (gl_sortedlist_search_from_to,
50485         gl_sortedlist_indexof_from_to): New functions.
50486         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
50487         function.
50488         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
50489         (gl_array_sortedlist_search_from_to): New function.
50490         (gl_array_list_implementation): Update.
50491         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
50492         function.
50493         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
50494         (gl_carray_sortedlist_search_from_to): New function.
50495         (gl_carray_list_implementation): Update.
50496         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
50497         gl_linked_sortedlist_indexof_from_to): New functions.
50498         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50499         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50500         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
50501         gl_tree_sortedlist_indexof_from_to): New functions.
50502         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50503         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50504         Update.
50505         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50506         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
50507         Update.
50508
50509 2006-10-05  Bruno Haible  <bruno@clisp.org>
50510
50511         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
50512         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
50513         (struct gl_list_implementation): Add fields search_from_to,
50514         indexof_from_to. Remove fields search, indexof.
50515         (gl_list_search): Use the search_from_to method.
50516         (gl_list_search_from, gl_list_search_from_to): New functions.
50517         (gl_list_indexof): Use the indexof_from_to method.
50518         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
50519         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
50520         (gl_list_search_from, gl_list_search_from_to): New functions.
50521         (gl_list_indexof): Use the indexof_from_to method.
50522         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
50523         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
50524         gl_array_indexof. Add start_index, end_index arguments.
50525         (gl_array_search_from_to): Renamed from gl_array_search. Add
50526         start_index, end_index arguments.
50527         (gl_array_remove, gl_array_list_implementation): Update.
50528         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
50529         gl_carray_indexof. Add start_index, end_index arguments.
50530         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
50531         start_index, end_index arguments.
50532         (gl_carray_remove, gl_carray_list_implementation): Update.
50533         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
50534         gl_linked_search. Add start_index, end_index arguments.
50535         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
50536         start_index, end_index arguments.
50537         (gl_linked_remove): Update.
50538         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50539         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50540         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
50541         field to 'size_t'.
50542         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
50543         gl_tree_search. Add start_index, end_index arguments.
50544         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
50545         start_index, end_index arguments.
50546         (gl_tree_remove): Update.
50547         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50548         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50549         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
50550         function.
50551         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
50552         gl_tree_search. Add start_index, end_index arguments.
50553         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
50554         start_index, end_index arguments.
50555         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50556         Update.
50557         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50558
50559 2006-10-05  Bruno Haible  <bruno@clisp.org>
50560
50561         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
50562
50563         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
50564         fwriteerror_temp): New declarations.
50565         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
50566         (descriptors): New variable.
50567         (cleanup): First, close the descriptors.
50568         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
50569         fclose_temp, fwriteerror_temp): New functions.
50570
50571 2006-10-04  Jim Meyering  <jim@meyering.net>
50572
50573         * lib/fts.c (fts_open): Tiny comment change.
50574
50575 2006-10-04  Bruno Haible  <bruno@clisp.org>
50576
50577         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
50578         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
50579         gl_LOCK_BODY.
50580         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
50581         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
50582         gl_LOCK_EARLY_BODY.
50583         (gl_LOCK): Require gl_LOCK_BODY.
50584
50585 2006-10-04  Bruno Haible  <bruno@clisp.org>
50586
50587         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
50588         (gl_oset_search_atleast): New declaration.
50589         (struct gl_oset_implementation): Add field 'search_atleast'.
50590         (gl_oset_search_atleast): New inline function.
50591         * lib/gl_oset.c (gl_oset_search_atleast): New function.
50592         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
50593         (gl_array_oset_implementation): Update.
50594         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
50595         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
50596         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
50597
50598 2006-10-04  Bruno Haible  <bruno@clisp.org>
50599
50600         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
50601
50602 2006-10-03  Bruno Haible  <bruno@clisp.org>
50603
50604         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
50605         from gl_avltreehash_list_implementation.
50606
50607 2006-10-03  Bruno Haible  <bruno@clisp.org>
50608
50609         * lib/gl_oset.c (gl_oset_add): Fix return type.
50610
50611 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
50612
50613         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
50614
50615 2006-10-02  Eric Blake  <ebb9@byu.net>
50616
50617         * modules/strnlen (Depends-on): Add extensions.
50618
50619 2006-10-02  Eric Blake  <ebb9@byu.net>
50620
50621         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
50622         definition in 2.60+.
50623
50624 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
50625
50626         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
50627         checks.
50628
50629 2006-10-02  Bruno Haible  <bruno@clisp.org>
50630
50631         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
50632         to the AUTOMAKE_OPTIONS.
50633         Reported by Jim Meyering.
50634
50635 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
50636
50637         Work around bug in Solaris 10 /proc file system:
50638         /proc/self/fd/NNN/.. isn't the parent directory of
50639         the directory whose file descriptor is NNN.  This needs to
50640         be worked around at run time, not compile time, since a
50641         program might be built on Solaris 8, where things work, and
50642         run on Solaris 10.
50643         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
50644         to use the following interface instead:
50645         (OPENAT_BUFFER_SIZE): New macro.
50646         (openat_proc_name): New function.
50647         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
50648         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
50649         Likewise.
50650         * lib/openat-proc.c: New file.
50651         * modules/openat (Files): Add lib/openat-proc.c.
50652         (Depends-on): Add same-inode, stdbool.
50653         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
50654
50655 2006-09-29  Bruno Haible  <bruno@clisp.org>
50656
50657         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
50658         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
50659         argument. Set stdout_closed before testing for ferror, not after.
50660         (fwriteerror, fwriteerror_no_ebadf): New functions.
50661
50662 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50663
50664         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
50665
50666 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
50667
50668         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
50669         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
50670
50671 2006-09-28  Jim Meyering  <jim@meyering.net>
50672
50673         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
50674         Include <unistd.h>.
50675
50676 2006-09-28  Bruno Haible  <bruno@clisp.org>
50677
50678         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
50679         * modules/linkedhash-list (Depends-on): Likewise.
50680         * modules/rbtreehash-list (Depends-on): Likewise.
50681
50682 2006-09-28  Bruno Haible  <bruno@clisp.org>
50683
50684         * lib/strndup.h: Simplify the redefinition of strndup.
50685         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
50686         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
50687
50688 2006-09-28  Bruno Haible  <bruno@clisp.org>
50689
50690         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
50691         * lib/gl_linkedhash_list.c: Likewise.
50692         * lib/gl_rbtreehash_list.c: Likewise.
50693
50694 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
50695
50696         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
50697         getaddrinfo.
50698
50699         * lib/__fpending.h: Don't include <stdio_ext.h> unless
50700         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
50701         it causes <stdio_ext.h> to cause a compile-time error.
50702         Problem reported by Nelson H. F. Beebe.
50703         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
50704         of HAVE_DECL___PENDING.
50705
50706         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
50707         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
50708         declaration.
50709
50710 2006-09-27  Jim Meyering  <jim@meyering.net>
50711
50712         This file could end up with a definition for a function
50713         named __strndup, rather than rpl_strndup on a system with
50714         incomplete weak_alias support.
50715         * lib/strndup.c (strndup): Rename from __strndup.
50716         Remove #defines that used to map __strndup to strndup.
50717         Don't use K&R prototypes.
50718         Remove LIBC-related code, since this file is not sync'd with glibc.
50719         * lib/strndup.h: Revamp, accordingly.
50720         * m4/strndup.m4: Modernize.
50721
50722 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
50723
50724         * modules/savewd (Depends-on): Add 'raise'.
50725         * lib/savewd.c: Include <signal.h>, for 'raise'.
50726
50727 2006-09-26  Jim Meyering  <jim@meyering.net>
50728
50729         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
50730         when we detect Darwin 8.7.0's acl_get_file bug.
50731         Rearrange to perform the new (below) run-test while $LIBS
50732         contains any acl-related library.  Set USE_ACL at the end.
50733         (gl_ACL_GET_FILE): New function.
50734
50735 2006-09-26  Eric Blake  <ebb9@byu.net>
50736
50737         * lib/verror.c: Include <config.h> unconditionally.
50738
50739 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
50740
50741         * modules/clock-time (Maintainer): Add self.
50742         * modules/getlogin_r (Depends-on): Add extensions.
50743
50744 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50745
50746         * modules/clock-time: New module.
50747         * modules/nanosleep (Depends-on): Add clock-time.
50748         * modules/gethrxtime (Depends-on): Likewise.
50749         * modules/gettime (Depends-on): Likewise.
50750         * modules/settime (Depends-on): Likewise.
50751
50752         * modules/fts-lgpl: Depend on openat.
50753         * modules/mkancesdirs: Depend on savewd.
50754         * modules/mkdir-p: Likewise.
50755
50756 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50757
50758         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
50759
50760         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
50761         `gl_have_arbitrary_file_name_length_limit' to
50762         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
50763         actually works between configure runs.
50764
50765 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50766             Bruno Haible  <bruno@clisp.org>
50767
50768         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
50769
50770 2006-09-25  Jim Meyering  <jim@meyering.net>
50771
50772         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
50773         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
50774
50775 2006-09-25  Eric Blake  <ebb9@byu.net>
50776
50777         * gnulib-tool (func_import, func_create_testdir): Fix typos in
50778         exec's in 2006-09-18 patch when shuffling fds.
50779
50780 2006-09-25  Bruno Haible  <bruno@clisp.org>
50781
50782         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
50783         Reported by Jim Meyering.
50784
50785 2006-09-24  Jim Meyering  <jim@meyering.net>
50786
50787         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
50788         compare a pointer against a literal "0".  That caused failures with
50789         at least HP-UX's hpcc.
50790
50791 2006-09-22  Simon Josefsson  <jas@extundo.com>
50792
50793         * modules/gc-sha1:
50794         * modules/gc-md4:
50795         * modules/gc-hmac-sha1:
50796         * modules/gc-hmac-md5:
50797         * modules/gc-des:
50798         * modules/gc-arcfour: Distribute more files.
50799
50800 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50801
50802         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
50803         (gl_linked_iterator_from_to): Initialize struct completely.
50804         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
50805         (gl_tree_iterator_from_to): Likewise
50806         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
50807         * lib/gl_array_list.c [lint] (gl_array_iterator)
50808         (gl_array_iterator_from_to): Likewise.
50809         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
50810         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
50811         (gl_carray_iterator_from_to): Likewise.
50812
50813         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
50814         * lib/md4.c (md4_process_block): Remove unused variable.
50815         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
50816         parentheses for clarity.
50817
50818 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50819
50820         * modules/bison-i18n (Depends-on): Add gettext.
50821
50822 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50823
50824         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
50825         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
50826         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
50827         also add missing comma that caused broken test.
50828         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
50829         stdlib.h, for `abort'.
50830         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
50831         variables.
50832         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
50833         include unistd.h if present, for `rmdir'.
50834         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
50835         variables.
50836         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
50837         in the process include standard headers for prototypes.
50838         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
50839         gets declared on GNU/Linux.
50840         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
50841         unistd.h, for `rmdir'.
50842         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
50843
50844         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
50845         always true.
50846         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
50847
50848         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
50849
50850 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50851
50852         * gnulib-tool (func_version): Create output all at once.  This
50853         may help avoid triggering unnecessary SIGPIPEs, and at any
50854         rate it doesn't hurt.
50855
50856 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50857             Bruno Haible  <bruno@clisp.org>
50858
50859         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
50860         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50861         * m4/signed.m4 (bh_C_SIGNED): Likewise.
50862
50863         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
50864         (gl_FUNC_VASPRINTF): Invoke it.
50865
50866 2006-09-22  Bruno Haible  <bruno@clisp.org>
50867
50868         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
50869         getloadavg.c as first argument.
50870
50871 2006-09-22  Bruno Haible  <bruno@clisp.org>
50872
50873         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
50874         at the beginning of the gl_INIT macro.
50875         * modules/getloadavg (configure.ac): Pass $gl_source_base to
50876         gl_GETLOADAVG.
50877
50878 2006-09-22  Bruno Haible  <bruno@clisp.org>
50879
50880         * gnulib-tool (func_create_megatestdir): Don't include the config-h
50881         module.
50882         Suggested by Ralf Wildenhues.
50883
50884 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
50885
50886         Import this patch from libc:
50887
50888         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
50889
50890         * lib/regex_internal.c (re_string_reconstruct): Handle
50891         offset < pstr->valid_raw_len && pstr->offsets_needed case.
50892         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
50893         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
50894         re_string_context_at.
50895
50896         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
50897         now requires it.
50898         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
50899         gl_REGEX now does it for us.
50900         (gl_REGEX): Add test taken from
50901         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
50902
50903         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
50904         Check that large offsets work.  Modernize Autoconf usages.
50905         Prefer "yes" to mean a good thing rather than a bad.
50906         Don't put "#define mkstemp" in config.h, as this might interfere
50907         with standard system headers that "#define mkstemp mkstemp64".
50908
50909         * modules/mkstemp (Depends-on): Add extensions, so that
50910         mkstemp is visible on some platforms.
50911         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
50912         (Include): Change to "mkstemp.h" from <stdlib.h>.
50913         (Files): Add mkstemp.h.
50914
50915         * lib/mkstemp.h: New file, since some standard headers
50916         #define mkstemp.
50917         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
50918         Include "mkstemp.h".
50919         Make the _LIBC code resemble glibc original more,
50920         e.g., use K&R style.
50921         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
50922         (mkstemp): Remove, since mkstemp.h does this for us.
50923         * lib/stdlib--.h: Include mkstemp.h.
50924
50925         Import this patch from libc:
50926
50927         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
50928
50929         * lib/tempname.c (__gen_tempname): Change attempts_min
50930         into a macro.  Use preprocessor to decide how to initialize
50931         attempts [Coverity CID 67].
50932
50933 2006-09-20  Bruno Haible  <bruno@clisp.org>
50934
50935         * lib/mkdtemp.c: Import from libc.
50936         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
50937                 * sysdeps/posix/tempname.c (__gen_tempname): Change
50938                 attempts_min into a macro.  Use preprocessor to decide how to
50939                 initialize attempts [Coverity CID 67].
50940         2001-11-27  Paul Eggert  <eggert@twinsun.com>
50941                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
50942                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
50943
50944 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50945
50946         * gnulib-tool (func_exit): New function, to allow to pass the
50947         exit status portably through the trap.  Use everywhere.
50948         (--help, --version): Signal a write error.
50949         (trap): catch SIGPIPE, for write errors.
50950         Exit at the end of the trap, with the correct exit status.
50951
50952 2006-09-19  Karl Berry  <karl@gnu.org>
50953
50954         * doc/gnulib.texi: note about the license texinfo files.
50955
50956 2006-09-19  Eric Blake  <ebb9@byu.net>
50957
50958         * gnulib-tool: Avoid space-tab.
50959
50960 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
50961
50962         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
50963         that prevented coreutils 6.1 from building.  Problem reported
50964         by Petter Reinholdtsen.
50965
50966 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
50967
50968         * gnulib-tool (avoidlist): Fix typo that broke options like
50969         --avoid=lock that are used by coreutils bootstrap.
50970
50971 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
50972
50973         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
50974         more systematically.
50975
50976 2006-09-18  Jim Meyering  <jim@meyering.net>
50977
50978         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
50979
50980 2006-09-18  Bruno Haible  <bruno@clisp.org>
50981
50982         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
50983
50984 2006-09-18  Bruno Haible  <bruno@clisp.org>
50985
50986         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
50987         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
50988         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
50989         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
50990         * m4/gettext.m4: Require autoconf >= 2.52.
50991         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
50992         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
50993         of gl_cv_header_inttypes_h.
50994
50995 2006-09-18  Bruno Haible  <bruno@clisp.org>
50996
50997         * lib/javaversion.c: Include configmake.h.
50998
50999 2006-09-18  Bruno Haible  <bruno@clisp.org>
51000
51001         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
51002         avoid that the while loops be executed in a subshell.
51003
51004 2006-09-18  Bruno Haible  <bruno@clisp.org>
51005
51006         * MODULES.html.sh (func_module): Break long lines.
51007         Suggested by Bruce Korb <bkorb@gnu.org>.
51008
51009 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51010
51011         Speed up by a factor of 1.12.
51012         * gnulib-tool (nl): New variable.
51013         (func_import): Rewrite include directive extraction to only read each
51014         directive once.
51015
51016 2006-09-17  Bruno Haible  <bruno@clisp.org>
51017
51018         * modules/javaversion (Makefile.am): Remove DEFS setting.
51019         (Depends-on): Add configmake, for PKGDATADIR definition.
51020
51021 2006-09-17  Bruno Haible  <bruno@clisp.org>
51022
51023         * gnulib-tool (func_create_testdir): Rewrite all files at once.
51024
51025 2006-09-17  Bruno Haible  <bruno@clisp.org>
51026
51027         * gnulib-tool (func_append): New function, stolen from libtool.m4.
51028         (func_modules_transitive_closure, func_modules_add_dummy,
51029         func_modules_to_filelist, func_import, func_create_testdir,
51030         func_create_megatestdir, ...): Use it wherever possible.
51031         Suggested by Ralf Wildenhues.
51032
51033 2006-09-16  Karl Berry  <karl@gnu.org>
51034
51035         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
51036         to avoid sectioning errors.
51037         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
51038         [ifinfo]: blank line after @center-ed titles.
51039         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
51040         Spell FSF address consistently with others.
51041         (These changes approved by rms.)
51042
51043 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51044
51045         Speed up by a factor of 1.61.
51046         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
51047         already checked module names again.
51048
51049 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51050
51051         Speed up by a factor of 1.13.
51052         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
51053         for new_files, and the input to func_add_or_update.
51054
51055 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51056
51057         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
51058         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
51059
51060 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51061
51062         * modules/mkancesdirs (Depends-on): Add fcntl.
51063         * modules/savewd: New file.
51064         * MODULES.html.sh (File system functions): Add savewd.
51065
51066         * modules/configmake (Makefile.am): Add support for the
51067         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
51068
51069 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51070
51071         * m4/savewd.m4: New file.
51072
51073 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51074
51075         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
51076         (dirchownmod): New arg FD.  All callers changed.
51077         Use FD rather than opening the directory ourself, as opening is
51078         now the caller's responsibility.
51079         * lib/dirchownmod.h: Likewise.
51080         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
51081         hosts that require <sys/types.h> before <sys/stat.h>.  Include
51082         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
51083         (test_dir): Remove.
51084         (mkancesdirs): Return length of prefix of FILE that has already
51085         been made, or -2 if there is a child doing the work.  Redo
51086         algorithm so that it is O(N) rather than O(N**2).  Optimize away
51087         ".", and treat ".." specially since it might stray back into
51088         already-created areas.  Use a subprocess if necessary.  New arg
51089         WD; all users changed.  MAKE_DIR function should now return 1
51090         if it creates a directory that is not readable.  Return -2 if
51091         a child process is spun off.
51092         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
51093         Adjust signature to match code.
51094         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
51095         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
51096         all users changed.
51097         * lib/savewd.c, lib/savewd.h: New files.
51098
51099 2006-09-15  Jim Meyering  <jim@meyering.net>
51100
51101         * modules/rename-dest-slash: New module.
51102         * MODULES.html.sh (posix_compat): Add it here.
51103
51104         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
51105
51106 2006-09-15  Jim Meyering  <jim@meyering.net>
51107
51108         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
51109         file.
51110
51111         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
51112
51113 2006-09-15  Jim Meyering  <jim@meyering.net>
51114
51115         * lib/rename-dest-slash.c (has_trailing_slash): Use
51116         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
51117         (rpl_rename_dest_slash): Perform the cheaper trailing slash
51118         test before testing whether SRC is a directory.
51119         Suggestions from Bruno Haible.
51120
51121         Avoid a warning about an unused variable.
51122         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
51123         into the #ifdef block where it's used.
51124
51125         * lib/rename-dest-slash.c: New file.
51126
51127 2006-09-14  Bruno Haible  <bruno@clisp.org>
51128
51129         * lib/allocsa.c: Include <config.h> unconditionally.
51130         * lib/asnprintf.c: Likewise.
51131         * lib/asprintf.c: Likewise.
51132         * lib/c-strcasecmp.c: Likewise.
51133         * lib/c-strcasestr.c: Likewise.
51134         * lib/c-strncasecmp.c: Likewise.
51135         * lib/c-strstr.c: Likewise.
51136         * lib/classpath.c: Likewise.
51137         * lib/clean-temp.c: Likewise.
51138         * lib/concatpath.c: Likewise.
51139         * lib/copy-file.c: Likewise.
51140         * lib/csharpcomp.c: Likewise.
51141         * lib/csharpexec.c: Likewise.
51142         * lib/execute.c: Likewise.
51143         * lib/fatal-signal.c: Likewise.
51144         * lib/findprog.c: Likewise.
51145         * lib/fwriteerror.c: Likewise.
51146         * lib/gl_array_list.c: Likewise.
51147         * lib/gl_array_oset.c: Likewise.
51148         * lib/gl_avltree_list.c: Likewise.
51149         * lib/gl_avltree_oset.c: Likewise.
51150         * lib/gl_avltreehash_list.c: Likewise.
51151         * lib/gl_carray_list.c: Likewise.
51152         * lib/gl_linked_list.c: Likewise.
51153         * lib/gl_linkedhash_list.c: Likewise.
51154         * lib/gl_list.c: Likewise.
51155         * lib/gl_oset.c: Likewise.
51156         * lib/gl_rbtree_list.c: Likewise.
51157         * lib/gl_rbtree_oset.c: Likewise.
51158         * lib/gl_rbtreehash_list.c: Likewise.
51159         * lib/imaxabs.c: Likewise.
51160         * lib/imaxdiv.c: Likewise.
51161         * lib/javacomp.c: Likewise.
51162         * lib/javaexec.c: Likewise.
51163         * lib/javaversion.c: Likewise.
51164         * lib/linebreak.c: Likewise.
51165         * lib/localcharset.c: Likewise.
51166         * lib/lock.c: Likewise.
51167         * lib/mbchar.c: Likewise.
51168         * lib/mbswidth.c: Likewise.
51169         * lib/mkdtemp.c: Likewise.
51170         * lib/pipe.c: Likewise.
51171         * lib/printf-args.c: Likewise.
51172         * lib/printf-parse.c: Likewise.
51173         * lib/progname.c: Likewise.
51174         * lib/progreloc.c: Likewise.
51175         * lib/readlink.c: Likewise.
51176         * lib/sh-quote.c: Likewise.
51177         * lib/stpcpy.c: Likewise.
51178         * lib/stpncpy.c: Likewise.
51179         * lib/strcasecmp.c: Likewise.
51180         * lib/strcasestr.c: Likewise.
51181         * lib/strcspn.c: Likewise.
51182         * lib/striconv.c: Likewise.
51183         * lib/strncasecmp.c: Likewise.
51184         * lib/strnlen1.c: Likewise.
51185         * lib/strstr.c: Likewise.
51186         * lib/strtok_r.c: Likewise.
51187         * lib/tls.c: Likewise.
51188         * lib/tmpdir.c: Likewise.
51189         * lib/unicodeio.c: Likewise.
51190         * lib/unsetenv.c: Likewise.
51191         * lib/vasnprintf.c: Likewise.
51192         * lib/vasprintf.c: Likewise.
51193         * lib/wait-process.c: Likewise.
51194         * lib/xallocsa.c: Likewise.
51195         * lib/xsetenv.c: Likewise.
51196         * lib/xstriconv.c: Likewise.
51197
51198 2006-09-13  Simon Josefsson  <jas@extundo.com>
51199
51200         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
51201         that internally, suggested by Ralf Wildenhues
51202         <Ralf.Wildenhues@gmx.de>.
51203
51204 2006-09-13  Simon Josefsson  <jas@extundo.com>
51205
51206         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
51207         @LIBOBJS@.
51208         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51209
51210 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
51211
51212         * lib/_fpending.c: Include <config.h> unconditionally, since we no
51213         longer worry about uses that don't define HAVE_CONFIG_H.
51214         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
51215         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
51216         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
51217         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
51218         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
51219         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
51220         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
51221         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
51222         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
51223         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
51224         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
51225         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
51226         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
51227         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
51228         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
51229         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
51230         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
51231         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
51232         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
51233         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
51234         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
51235         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
51236         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
51237         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
51238         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
51239         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
51240         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
51241         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
51242         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
51243         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
51244         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
51245         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
51246         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
51247         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
51248         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
51249         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
51250         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
51251         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
51252         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
51253         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
51254         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
51255         Likewise.
51256
51257 2006-09-13  Eric Blake  <ebb9@byu.net>
51258
51259         * lib/getopt.c: Fix typo in last commit.
51260
51261 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51262
51263         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
51264         dgettext.
51265
51266 2006-09-12  Jim Meyering  <jim@meyering.net>
51267
51268         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
51269         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
51270         Reported by Nelson H. F. Beebe.
51271
51272 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51273
51274         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
51275         program_invocation_name and program_invocation_short_name are
51276         initialized.
51277         * lib/argp-namefrob.h: Move declarations of program_invocation_name
51278         and program_invocation_short_name to argp.h, so they are visible
51279         to user programs.
51280         * lib/argp.h: Likewise
51281
51282 2006-09-10  Bruno Haible  <bruno@clisp.org>
51283
51284         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
51285         m4/inttypes_h.m4, m4/uintmax_t.m4.
51286
51287 2006-09-10  Bruno Haible  <bruno@clisp.org>
51288
51289         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
51290         gl_AC_TYPE_UINTMAX_T.
51291
51292 2006-09-10  Bruno Haible  <bruno@clisp.org>
51293
51294         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
51295
51296 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51297
51298         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
51299         convention.  Text proposed by Bruno Haible.
51300         (struct argp_option): Document the use of N_() wrappers.
51301
51302         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
51303         '\v', and translate the two parts separately, instead of feeding
51304         the whole string to gettext.  This allows to exclude
51305         '\v' from the strings visible to the translator by writing doc
51306         strings as N_("..") "\v" N_("..").
51307
51308 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
51309
51310         * config/srclist.txt: Undo latest change; the bug was fixed.
51311
51312 2006-09-09  Bruno Haible  <bruno@clisp.org>
51313
51314         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
51315         assignments if building a library without libtool.
51316         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
51317         in func_emit_lib_Makefile_am.
51318         (func_import): When building a static library libfoo.a, arrange to
51319         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
51320         (func_create_testdir): Likewise.
51321         * modules/gc (configure.ac, Makefile.am): If building statically,
51322         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
51323         * modules/iconvme (configure.ac, Makefile.am): Likewise.
51324         * modules/striconv (configure.ac, Makefile.am): Likewise.
51325         Based on a suggestion by Ralf Wildenhues.
51326
51327 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51328
51329         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
51330         Check for unistd.h too, since Autoconf doesn't assume POSIX.
51331         Also:
51332
51333         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51334         Add year_2050_test to catch glibc bug 2821
51335         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
51336
51337         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51338         Prefer #ifdef to #if.
51339
51340         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
51341         Return from 'main' instead of calling 'exit'.
51342
51343 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51344
51345         * lib/mktime.c (guess_time_tm): Fix bug where mktime
51346         returned the maximum time_t value rather than (time_t) -1.
51347         Problem originally reported by William Bardwell
51348         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
51349
51350         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
51351         Moved to here ...
51352         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
51353         ... from here.
51354
51355 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51356
51357         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
51358         2821 is fixed.
51359
51360 2006-09-08  Jim Meyering  <jim@meyering.net>
51361
51362         Don't make generated files read-only.  That would bother too many
51363         people.  However, do retain the ability to work when targets are
51364         read-only: remove the destination and temporary files before writing
51365         them (when generated via sed or echo), or by using the -f option for
51366         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
51367         * modules/alloca-opt, modules/argz, modules/arpa_inet:
51368         * modules/byteswap, modules/configmake, modules/fcntl:
51369         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
51370         * modules/localcharset, modules/netinet_in, modules/poll:
51371         * modules/stdbool, modules/stdint, modules/sys_select:
51372         * modules/sys_socket, modules/sys_stat, modules/sysexits:
51373
51374 2006-09-08  Jim Meyering  <jim@meyering.net>
51375
51376         Avoid new build failure on FreeBSD 6.0.
51377         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
51378         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
51379         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
51380
51381 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51382
51383         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
51384
51385 2006-09-07  Jim Meyering  <jim@meyering.net>
51386
51387         Fix global typo in last change: use chmod u-w, not chmod u-x.
51388         Spotted by Paul Eggert and Bruce Korb.
51389         * modules/alloca-opt, modules/argz, modules/arpa_inet:
51390         * modules/byteswap, modules/configmake, modules/fcntl:
51391         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
51392         * modules/localcharset, modules/netinet_in, modules/poll:
51393         * modules/stdbool, modules/stdint, modules/sys_select:
51394         * modules/sys_socket, modules/sys_stat, modules/sysexits:
51395
51396 2006-09-06  Jim Meyering  <jim@meyering.net>
51397
51398         Make generated files be read-only.
51399         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
51400         Ensure that each generated file is now read-only.
51401         * modules/argz: Likewise.
51402         * modules/arpa_inet: Likewise.
51403         * modules/byteswap: Likewise.
51404         * modules/configmake: Likewise.
51405         * modules/fcntl: Likewise.
51406         * modules/fnmatch: Likewise.
51407         * modules/getopt: Likewise.
51408         * modules/glob: Likewise.
51409         * modules/inttypes: Likewise.
51410         * modules/netinet_in: Likewise.
51411         * modules/poll: Likewise.
51412         * modules/stdbool: Likewise.
51413         * modules/stdint: Likewise.
51414         * modules/sys_select: Likewise.
51415         * modules/sys_socket: Likewise.
51416         * modules/sys_stat: Likewise.
51417         * modules/sysexits: Likewise.
51418         * modules/localcharset: Same as above, but continue using temporary
51419         file named "t-$@" (why different?) rather than the "$@-t" used
51420         everywhere else.
51421
51422         * modules/sysexits (Makefile.am): Replace literal occurrences
51423         of "sysexit.h" more readable, and more consistent, "$@".
51424
51425 2006-09-06  Bruno Haible  <bruno@clisp.org>
51426
51427         * modules/striconv: New file.
51428         * modules/xstriconv: New file.
51429         * MODULES.html.sh (Internationalization functions): Add striconv,
51430         xstriconv.
51431
51432 2006-09-06  Bruno Haible  <bruno@clisp.org>
51433
51434         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
51435         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
51436         not using libtool correctly.
51437
51438 2006-09-06  Bruno Haible  <bruno@clisp.org>
51439
51440         * lib/striconv.h: New file.
51441         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
51442         iconvstring.c.
51443         * lib/xstriconv.h: New file.
51444         * lib/xstriconv.c: New file.
51445
51446 2006-09-06  Bruno Haible  <bruno@clisp.org>
51447
51448         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51449         lib_..._LDFLAGS.
51450
51451 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51452
51453         * lib/argz_.h: Sync from Libtool.
51454
51455         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
51456                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
51457
51458         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
51459
51460 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
51461
51462         * modules/trim: New file.
51463
51464 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
51465
51466         * lib/trim.h: New file.
51467         * lib/trim.c: New file.
51468
51469 2006-09-05  Bruno Haible  <bruno@clisp.org>
51470
51471         * MODULES.html.sh (String handling): Add trim.
51472
51473 2006-09-04  Karl Berry  <karl@gnu.org>
51474
51475         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
51476         until next release.
51477
51478 2006-09-03  Bruno Haible  <bruno@clisp.org>
51479
51480         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
51481         correctly.
51482
51483 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51484
51485         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
51486         not gl_GETLOADAVG.  Omit unneeded semicolons.
51487         Problems reported by Ralf Wildenhues in
51488         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
51489         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
51490         at the end, which is the usual gnulib style.
51491
51492         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
51493         of doing all the work ourselves.
51494         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
51495         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
51496
51497 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51498
51499         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
51500         Problem reported by Ralf Wildenhues in
51501         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
51502
51503         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
51504         HAVE_STRUCT_STATFS_F_FSTYPENAME.
51505
51506 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51507
51508         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
51509         yesterday's patch by changing test -n to test -z.
51510
51511 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51512
51513         * modules/getloadavg (Files): Add m4/getloadavg.m4.
51514         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
51515         the former is now obsolescent.
51516
51517         * modules/chdir-long (Depends-on): Add fcntl.
51518
51519 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51520
51521         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
51522         obsolescent, and programs should use gnulib instead.
51523         * m4/getloadavg.m4: New file, with contents taken from Autoconf
51524         but with prefixes changed.
51525
51526 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51527
51528         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
51529         or stdbool.h, because they might not exist while configuring.
51530
51531         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
51532         Don't include unistd.h or limits.h; not needed, since chdir-long.h
51533         does that for us.
51534         (O_DIRECTORY): Remove.
51535
51536 2006-08-31  Eric Blake  <ebb9@byu.net>
51537
51538         * gnulib-tool: Don't let emacs change spaces to TAB.
51539
51540 2006-08-31  Bruno Haible  <bruno@clisp.org>
51541
51542         * gnulib-tool: When calling func_import more than once, do it in a
51543         subshell.
51544         Reported by Eric Blake <ebb9@byu.net>.
51545
51546 2006-08-31  Bruno Haible  <bruno@clisp.org>
51547
51548         * gnulib-tool (nl): Remove variable.
51549         (sed_transform_lib_file): Use more robust test for config-h module.
51550         (func_import): Fix typo in 2006-08-25 patch.
51551
51552 2006-08-31  Bruno Haible  <bruno@clisp.org>
51553
51554         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
51555         specified, augment Makefile.am variables instead of assigning them.
51556
51557 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51558
51559         Work around a bug in both the Linux and SunOS 64-bit kernels:
51560         nanosleep mishandles sleeps for longer than 2**31 seconds.
51561         Problem reported by Frank v Waveren in
51562         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
51563         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
51564         Check for nanosleep bug.
51565         (LIB_NANOSLEEP): Append clock_gettime library if needed.
51566
51567 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51568
51569         Work around a bug in both the Linux and SunOS 64-bit kernels:
51570         nanosleep mishandles sleeps for longer than 2**31 seconds.
51571         Problem reported by Frank v Waveren in
51572         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
51573         * lib/nanosleep.c (BILLION): New constant.
51574         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
51575         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
51576         implementation.
51577
51578 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51579
51580         * modules/nanosleep (Depends-on): Add gettime.
51581
51582 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51583         and Simon Josefsson  <jas@extundo.com>
51584         and Oskar Liljeblad  <oskar@osk.mine.nu>
51585
51586         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
51587         * gnulib-tool (func_import): New license type 'unmodifiable license
51588         text'.
51589         * modules/fdl: Use it.  Longer description.
51590         * module/gpl, module/lgpl: New files.
51591
51592 2006-08-30  Jim Meyering  <jim@meyering.net>
51593
51594         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
51595         shadowing the parameter.
51596
51597 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51598
51599         Sync from Libtool:
51600
51601         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51602
51603         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
51604         sharing with gnulib.  Report by Eric Blake.
51605
51606 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51607
51608         * modules/isapipe: New file.
51609         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
51610
51611 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51612
51613         * modules/configmake (Makefile.am): Add a comment, and omit
51614         the CONFIGMAKE_ prefix from generated macro names.  Suggested
51615         by Bruno Haible.
51616
51617 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51618
51619         * m4/isapipe.m4: New file.
51620
51621 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51622
51623         * lib/isapipe.c, lib/isapipe.h: New files.
51624
51625 2006-08-29  Jim Meyering  <jim@meyering.net>
51626
51627         * modules/configmake (Makefile.am): Make configmake.h depend on
51628         Makefile.  Otherwise, a stale configmake.h could hang around.
51629
51630 2006-08-29  Eric Blake  <ebb9@byu.net>
51631
51632         * lib/error.c (error_at_line, print_errno_message): Match libc, after
51633         resolution of upstream bug 3044.
51634
51635 2006-08-29  Bruno Haible  <bruno@clisp.org>
51636
51637         * modules/localcharset (Depends-on): Add configmake.
51638         (Makefile.am): Remove setting of LIBDIR through DEFS.
51639
51640 2006-08-29  Bruno Haible  <bruno@clisp.org>
51641
51642         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
51643         defined.
51644
51645 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51646
51647         * modules/fcntl: New file.
51648         * modules/chdir-safer (Depends-on): Add fcntl.
51649         * modules/fts: Likewise.
51650         * modules/mkdir-p: Likewise.
51651
51652         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
51653         This undoes the most recent change, since we're now addressing the
51654         problem in a different way.
51655
51656         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
51657         into output, since the output might be called Makefile.am even
51658         if $makefile_name is something different.
51659         (func_import): Use $makefile_am rather than
51660         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
51661         empty.
51662
51663         * modules/inttypes (Files): Add m4/inttypes-h.m4.
51664
51665 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51666
51667         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
51668         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
51669         recent change to stdint.m4, since we're now addressing the problem in a
51670         different way.
51671
51672 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51673
51674         * m4/fcntl_h.m4: New file.
51675
51676 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51677
51678         * lib/fcntl_.h: New file.
51679         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
51680         the fcntl module.
51681         * lib/dirchownmod.c: Likewise.
51682         * lib/fts.c: Likewise.
51683
51684         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
51685         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
51686         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
51687         just before including <inttypes.h>, to avoid circular inclusion.
51688
51689 2006-08-28  Jim Meyering  <jim@meyering.net>
51690
51691         * doc/visibility.texi: Actually read and correct the grammar of the
51692         sentence affected by yesterday's change.
51693
51694 2006-08-28  Eric Blake  <ebb9@byu.net>
51695
51696         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
51697         needs wrapper.
51698
51699 2006-08-28  Eric Blake  <ebb9@byu.net>
51700
51701         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
51702
51703 2006-08-28  Eric Blake  <ebb9@byu.net>
51704
51705         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
51706
51707 2006-08-28  Bruno Haible  <bruno@clisp.org>
51708
51709         * modules/c-strstr: New file, from GNU gettext.
51710         * MODULES.html.sh (String handling): Add c-strstr.
51711
51712 2006-08-28  Bruno Haible  <bruno@clisp.org>
51713
51714         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
51715         macros.
51716         Reported by Eric Blake.
51717
51718 2006-08-28  Bruno Haible  <bruno@clisp.org>
51719
51720         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
51721         (VASNPRINTF): Return a string of length > INT_MAX without failing.
51722         * lib/vasprintf.c: Include errno.h, limits.h.
51723         (EOVERFLOW): New fallback definition.
51724         (vasprintf): Test here whether the string length is > INT_MAX.
51725         * lib/vsnprintf.c: Include errno.h, limits.h.
51726         (EOVERFLOW): New fallback definition.
51727         (vsnprintf): Fix bug when generated string was too long for the buffer.
51728         Test here whether the string length is > INT_MAX.
51729
51730 2006-08-28  Bruno Haible  <bruno@clisp.org>
51731
51732         * lib/inttypes_.h (SCNX*): Remove definitions.
51733         Reported by Eric Blake.
51734
51735 2006-08-28  Bruno Haible  <bruno@clisp.org>
51736
51737         * lib/c-strstr.h: New file, from GNU gettext.
51738         * lib/c-strstr.c: New file, from GNU gettext.
51739
51740 2006-08-28  Bruno Haible  <bruno@clisp.org>
51741
51742         * gnulib-tool: Reorder some statements.
51743
51744 2006-08-28  Bruno Haible  <bruno@clisp.org>
51745
51746         * gnulib-tool: New option --makefile-name.
51747         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
51748         $makefile_name.
51749         (func_import): Write $makefile_name to the cache file, and read it from
51750         there unless explicitly specified. Use $makefile_name as file name
51751         instead of Makefile.am. Adjust the recommendations accordingly.
51752
51753 2006-08-28  Bruno Haible  <bruno@clisp.org>
51754
51755         * gnulib-tool (func_verify_module): Check against misapplying patch.
51756
51757 2006-08-28  Bruno Haible  <bruno@clisp.org>
51758
51759         * gnulib-tool (func_relativize, func_relconcat): New functions.
51760         Give an error if --local-dir is given with --update.
51761         Remove trailing slashes from $local_gnulib_dir.
51762         (func_import): Store the relativized $local_gnulib_dir in
51763         gnulib-cache.m4, and read it from there if not specified explicitly.
51764
51765 2006-08-28  Bruno Haible  <bruno@clisp.org>
51766
51767         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
51768         is the current directory. Respect also $local_gnulib_dir.
51769
51770 2006-08-28  Bruno Haible  <bruno@clisp.org>
51771             Simon Josefsson  <jas@extundo.com>
51772
51773         BeOS portability.
51774         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
51775
51776 2006-08-27  Jim Meyering  <jim@meyering.net>
51777
51778         * doc/visibility.texi: Remove duplicate word: "pointer".
51779
51780 2006-08-26  Bruno Haible  <bruno@clisp.org>
51781
51782         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
51783         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
51784         (Makefile.am): Create inttypes.h from inttypes_.h.
51785         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
51786
51787         * modules/imaxabs: New file.
51788
51789         * modules/imaxdiv: New file.
51790
51791 2006-08-26  Bruno Haible  <bruno@clisp.org>
51792
51793         * m4/inttypes.m4: New file.
51794         * m4/_inttypes_h.m4: Remove file.
51795         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
51796         PRI_MACROS_BROKEN.
51797         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
51798
51799         * m4/imaxabs.m4: New file.
51800
51801         * m4/imaxdiv.m4: New file.
51802
51803 2006-08-26  Bruno Haible  <bruno@clisp.org>
51804
51805         * lib/inttypes_.h: New file.
51806         * lib/inttypes.h: Remove file.
51807         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
51808
51809         * lib/imaxabs.c: New file.
51810
51811         * lib/imaxdiv.c: New file.
51812
51813 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51814
51815         New config-h module, so that "make" output needn't be cluttered
51816         by -DHAVE_CONFIG_H.
51817         * MODULES.html.sh (Support for building libraries and executables):
51818         Add config-h.
51819         * modules/config-h: New file.
51820         * gnulib-tool (nl, sed_transform_lib_file): New vars.
51821         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
51822         the config-h module is used.
51823
51824         New configmake module, so that "make" output needn't be cluttered
51825         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
51826         * MODULES.html.sh (Support for building libraries and executables):
51827         Add configmake.
51828         * modules/configmake: New file.
51829
51830 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51831
51832         * m4/config-h.m4: New file.
51833
51834 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51835
51836         * config/srclist.txt: Add elisp-comp.
51837
51838 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51839
51840         * MODULES.html.sh (Support for building libraries and executables):
51841         Add elisp-comp.
51842         * build-aux/elisp-comp: New file.
51843         * modules/elisp-comp: New file.
51844
51845 2006-08-24  Bruno Haible  <bruno@clisp.org>
51846
51847         * gnulib-tool (func_create_testdir): Use non-default values of
51848         sourcebase and m4base.
51849
51850 2006-08-24  Bruno Haible  <bruno@clisp.org>
51851
51852         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
51853         HTML structure.
51854
51855 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51856
51857         * modules/openat (Depends-on): Add lchown.
51858
51859 2006-08-23  Bruno Haible  <bruno@clisp.org>
51860
51861         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
51862         of gl_LOCK_EARLY instead of gl_LOCK.
51863
51864 2006-08-23  Bruno Haible  <bruno@clisp.org>
51865
51866         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
51867         on OSF/1 to no.
51868         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
51869
51870 2006-08-23  Bruno Haible  <bruno@clisp.org>
51871
51872         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
51873         as unusable.
51874
51875         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
51876         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
51877         (gl_LOCK): New macro.
51878
51879 2006-08-22  Simon Josefsson  <jas@extundo.com>
51880
51881         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
51882         to md5 module.
51883
51884 2006-08-22  Simon Josefsson  <jas@extundo.com>
51885
51886         * MODULES.html.sh: Add "Support for maintaining and release
51887         projects".
51888
51889         * build-aux/gnupload: New file, from coreutils.
51890
51891 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51892
51893         Avoid the need for AC_LIBSOURCES in m4 macros.
51894         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
51895         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
51896         * modules/check-version (EXTRA_DIST): Add check-version.h.
51897         * modules/crc (EXTRA_DIST): Add crc.h.
51898         * modules/des (EXTRA_DIST): Add des.h.
51899         * modules/gc (EXTRA_DIST): Add gc.h.
51900         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
51901         * modules/getline (EXTRA_DIST): Add getline.h.
51902         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
51903         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
51904         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
51905         * modules/md2 (EXTRA_DIST): Add md2.h.
51906         * modules/md4 (EXTRA_DIST): Add md4.h.
51907         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
51908         * modules/read-file (EXTRA_DIST): Add read-file.h.
51909         * modules/readline (EXTRA_DIST): Add readline.h.
51910         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
51911         rijndael-api-fst.h.
51912
51913 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51914
51915         * m4/rijndael.m4 (gl_ARCFOUR):
51916         * m4/arctwo.m4 (gl_ARCTWO):
51917         * m4/check-version.m4 (gl_CHECK_VERSION):
51918         * m4/crc.m4 (gl_CRC):
51919         * m4/des.m4 (gl_DES):
51920         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
51921         * m4/gc.m4 (gl_GC):
51922         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
51923         * m4/getline.m4 (gl_FUNC_GETLINE):
51924         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
51925         * m4/hmac-md5.m4 (gl_HMAC_MD5):
51926         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
51927         * m4/md2.m4 (gl_MD2):
51928         * m4/md4.m4 (gl_MD4):
51929         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
51930         * m4/read-file.m4 (gl_FUNC_READ_FILE):
51931         * m4/readline.m4 (gl_FUNC_READLINE):
51932         * m4/rijndael.m4 (gl_RIJNDAEL):
51933         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
51934         to get the necessary .h files and whatnot.
51935
51936 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51937
51938         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
51939         gnulib rather than the other way around.
51940         * config/srclistvars.sh (COREUTILS): Remove.
51941
51942 2006-08-22  Jim Meyering  <jim@meyering.net>
51943
51944         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
51945
51946         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
51947
51948 2006-08-22  Eric Blake  <ebb9@byu.net>
51949
51950         * modules/regexprops-generic: New file.
51951         * MODULES.html.sh (Support for building documentation): List it.
51952
51953 2006-08-22  Eric Blake  <ebb9@byu.net>
51954
51955         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
51956         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51957         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
51958         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
51959
51960 2006-08-22  Bruno Haible  <bruno@clisp.org>
51961
51962         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
51963         and lib_LTLIBRARIES like the other lib_* variables.
51964
51965 2006-08-22  Bruno Haible  <bruno@clisp.org>
51966
51967         * build-aux/x-to-1.in: New file, from GNU gettext.
51968
51969 2006-08-22  Bruno Haible  <bruno@clisp.org>
51970
51971         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
51972         <utmpx.h> exists.
51973
51974 2006-08-22  Bruno Haible  <bruno@clisp.org>
51975
51976         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
51977         <utmpx.h> exists.
51978
51979 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51980
51981         BeOS portability.
51982         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
51983         exist.
51984         Problem reported by Bruno Haible.
51985
51986 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
51987
51988         Avoid the need for AC_LIBSOURCES in m4 macros.
51989         * modules/acl (EXTRA_DIST): Add acl.h.
51990         * modules/argmatch (Files): Add m4/argmatch.m4.
51991         (configure.ac): Add gl_ARGMATCH.
51992         (EXTRA_DIST): Renamed from lib_SOURCES, for
51993         consistency with the other modules.  Remove argmatch.c.
51994         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
51995         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
51996         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
51997         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
51998         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
51999         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
52000         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
52001         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
52002         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
52003         * modules/closeout (EXTRA_DIST): Add closeout.h.
52004         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
52005         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
52006         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
52007         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
52008         dirname.h; remove basename.c and stripslash.c.
52009         * modules/exclude (EXTRA_DIST): Add exclude.h.
52010         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
52011         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
52012         * modules/file-type (EXTRA_DIST): Add file-type.h.
52013         * modules/filemode (EXTRA_DIST): Add filemode.h.
52014         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
52015         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
52016         * modules/fpending (EXTRA_DIST): Add __fpending.h.
52017         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
52018         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
52019         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
52020         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
52021         * modules/getdate (EXTRA_DIST): Add getdate.c.
52022         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
52023         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
52024         * modules/getpass (EXTRA_DIST): Add getpass.h.
52025         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
52026         * modules/group-member (EXTRA_DIST): Add group-member.h.
52027         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
52028         * modules/hash (EXTRA_DIST): Add hash.h.
52029         * modules/human (EXTRA_DIST): Add human.h.
52030         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
52031         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
52032         * modules/lchown (EXTRA_DIST): Add lchown.h.
52033         * modules/long-options (EXTRA_DIST): Add long-options.h.
52034         * modules/lstat (EXTRA_DIST): Add lstat.h.
52035         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
52036         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
52037         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
52038         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
52039         * modules/memxor (EXTRA_DIST): Add memxor.h.
52040         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
52041         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
52042         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
52043         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
52044         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
52045         * modules/physmem (EXTRA_DIST): Add physmem.h.
52046         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
52047         * modules/posixver (EXTRA_DIST): Add posixver.h.
52048         * modules/quote (EXTRA_DIST): Add quote.h.
52049         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
52050         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
52051         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
52052         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
52053         regex_internal.h regexec.c.
52054         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
52055         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
52056         * modules/same (EXTRA_DIST): Add same.h.
52057         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
52058         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
52059         * modules/savedir (EXTRA_DIST): Add savedir.h.
52060         * modules/sha1 (EXTRA_DIST): Add sha1.h.
52061         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
52062         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
52063         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
52064         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
52065         * modules/strdup (EXTRA_DIST): Add strdup.h.
52066         * modules/strftime (EXTRA_DIST): Add strftime.h.
52067         * modules/strndup (EXTRA_DIST): Add strndup.h.
52068         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
52069         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
52070         * modules/time_r (EXTRA_DIST): Add time_r.h.
52071         * modules/timespec (EXTRA_DIST): Add timespec.h.
52072         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
52073         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
52074         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
52075         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
52076         * modules/userspec (EXTRA_DIST): Add userspec.h.
52077         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
52078         * modules/utimens (EXTRA_DIST): Add utimens.h.
52079         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
52080         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
52081         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
52082         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
52083         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
52084         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
52085         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
52086         * modules/yesno (EXTRA_DIST): Add yesno.h.
52087
52088 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
52089
52090         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
52091
52092         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
52093         * m4/dev-ino.m4, same-inode.m4: Remove.
52094
52095         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
52096         * m4/acl.m4 (AC_FUNC_ACL):
52097         * m4/backupfile.m4 (gl_BACKUPFILE):
52098         * m4/c-strtod.m4 (gl_C99_STRTOLD):
52099         * m4/canon-host.m4 (gl_CANON_HOST):
52100         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
52101         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
52102         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
52103         * m4/cloexec.m4 (gl_CLOEXEC):
52104         * m4/close-stream.m4 (gl_CLOSE_STREAM):
52105         * m4/closeout.m4 (gl_CLOSEOUT):
52106         * m4/dirfd.m4 (gl_FUNC_DIRFD):
52107         * m4/dirname.m4 (gl_DIRNAME):
52108         * m4/exclude.m4 (gl_EXCLUDE):
52109         * m4/exitfail.m4 (gl_EXITFAIL):
52110         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
52111         * m4/file-type.m4 (gl_FILE_TYPE):
52112         * m4/filemode.m4 (gl_FILEMODE):
52113         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
52114         * m4/fpending.m4 (gl_FUNC_FPENDING):
52115         * m4/fprintftime.m4 (gl_FPRINTFTIME):
52116         * m4/fts.m4 (gl_FUNC_FTS):
52117         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
52118         * m4/getdate.m4 (gl_GETDATE):
52119         * m4/gethrxtime.m4 (gl_GETHRXTIME):
52120         * m4/getpagesize.m4 (gl_GETPAGESIZE):
52121         * m4/getpass.m4 (gl_FUNC_GETPASS):
52122         * m4/gettime.m4 (gl_GETTIME):
52123         * m4/getugroups.m4 (gl_GETUGROUPS):
52124         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
52125         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
52126         * m4/hard-locale.m4 (gl_HARD_LOCALE):
52127         * m4/hash.m4 (gl_HASH):
52128         * m4/idcache.m4 (gl_IDCACHE):
52129         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
52130         * m4/lchown.m4 (gl_FUNC_LCHOWN):
52131         * m4/long-options.m4 (gl_LONG_OPTIONS):
52132         * m4/lstat.m4 (gl_FUNC_LSTAT):
52133         * m4/md5.m4 (gl_MD5):
52134         * m4/memcasecmp.m4 (gl_MEMCASECMP):
52135         * m4/memcoll.m4 (gl_MEMCOLL):
52136         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
52137         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
52138         * m4/memxor.m4 (gl_MEMXOR):
52139         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
52140         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
52141         * m4/modechange.m4 (gl_MODECHANGE):
52142         * m4/mountlist.m4 (gl_MOUNTLIST):
52143         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52144         * m4/openat.m4 (gl_FUNC_OPENAT):
52145         * m4/pathmax.m4 (gl_PATHMAX):
52146         * m4/physmem.m4 (gl_PHYSMEM):
52147         * m4/posixtm.m4 (gl_POSIXTM):
52148         * m4/posixver.m4 (gl_POSIXVER):
52149         * m4/quote.m4 (gl_QUOTE):
52150         * m4/quotearg.m4 (gl_QUOTEARG):
52151         * m4/readtokens.m4 (gl_READTOKENS):
52152         * m4/readutmp.m4 (gl_READUTMP):
52153         * m4/regex.m4 (gl_REGEX):
52154         * m4/safe-read.m4 (gl_SAFE_READ):
52155         * m4/safe-write.m4 (gl_SAFE_WRITE):
52156         * m4/same.m4 (gl_SAME):
52157         * m4/save-cwd.m4 (gl_SAVE_CWD):
52158         * m4/savedir.m4 (gl_SAVEDIR):
52159         * m4/settime.m4 (gl_SETTIME):
52160         * m4/sha1.m4 (gl_SHA1):
52161         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
52162         * m4/stat-macros.m4 (gl_STAT_MACROS):
52163         * m4/stat-time.m4 (gl_STAT_TIME):
52164         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
52165         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
52166         * m4/strdup.m4 (gl_FUNC_STRDUP):
52167         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
52168         * m4/strndup.m4 (gl_FUNC_STRNDUP):
52169         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
52170         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
52171         * m4/time_r.m4 (gl_TIME_R):
52172         * m4/timespec.m4 (gl_TIMESPEC):
52173         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
52174         * m4/unlinkdir.m4 (gl_UNLINKDIR):
52175         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
52176         * m4/userspec.m4 (gl_USERSPEC):
52177         * m4/utimecmp.m4 (gl_UTIMECMP):
52178         * m4/utimens.m4 (gl_UTIMENS):
52179         * m4/xalloc.m4 (gl_XALLOC):
52180         * m4/xgetcwd.m4 (gl_XGETCWD):
52181         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
52182         * m4/xreadlink.m4 (gl_XREADLINK):
52183         * m4/xstrtod.m4 (gl_XSTRTOD):
52184         * m4/yesno.m4 (gl_YESNO):
52185         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
52186         to get the necessary .h files and whatnot.
52187
52188 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
52189             Bruno Haible  <bruno@clisp.org>
52190
52191         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
52192         /bin/sh understanding of '!' conditional negation.
52193
52194 2006-08-21  Jim Meyering  <jim@meyering.net>
52195
52196         * modules/openat (Depends-on): Really alphabetize.
52197
52198         * modules/acl (Depends-on): Add error and quote.
52199
52200         * check-module (find_included_lib_files): Add at-func.c to the
52201         ok-to-include-more-than-once white list.
52202
52203         * modules/openat (Depends-on): Add lstat.  Alphabetize.
52204
52205 2006-08-21  Bruno Haible  <bruno@clisp.org>
52206
52207         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52208         Emit a pkgdata_DATA variable only if some snippets add contents to it.
52209         Reported by Martin Lambers <marlam@marlam.de>.
52210
52211 2006-08-21  Bruno Haible  <bruno@clisp.org>
52212
52213         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
52214         specify an installation location, don't emit a noinst_LIBRARIES or
52215         noinst_LTLIBRARIES assignment.
52216
52217 2006-08-21  Bruno Haible  <bruno@clisp.org>
52218
52219         BeOS portability.
52220         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
52221         BeOS has mbrtowc() but no <wctype.h>.
52222
52223 2006-08-21  Bruno Haible  <bruno@clisp.org>
52224
52225         BeOS portability.
52226         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
52227         exist.
52228
52229 2006-08-21  Bruno Haible  <bruno@clisp.org>
52230
52231         BeOS portability.
52232         * lib/mbchar.h: Include <wctype.h> only if it exists.
52233
52234 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52235
52236         Remove files that are no longer needed by their respective modules.
52237         * m4/obstack.m4: Remove.
52238         * m4/strerror_r.m4: Remove.
52239         * m4/uint32_t.m4: Remove.
52240         * m4/uintptr_t.m4: Remove.
52241         * m4/ullong_max.m4: Remove.
52242         * m4/xstrtoimax.m4: Remove.
52243         * m4/xstrtoumax.m4: Remove.
52244
52245         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
52246         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
52247         dependencies now capture this.
52248
52249         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
52250         Do not use AC_LIBSOURCES, since gnulib modules now do this.
52251         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
52252         * m4/human.m4 (gl_HUMAN): Likewise.
52253         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
52254         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
52255
52256         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
52257
52258         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
52259         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
52260         stdint.
52261         * m4/human.m4 (gl_HUMAN): Likewise.
52262         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
52263         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
52264         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
52265         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
52266         * m4/xstrtol (gl_XSTRTOL): Likewise.
52267
52268         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
52269         AC_TYPE_LONG_LONG_INT.
52270         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
52271         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
52272         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
52273         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
52274
52275         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
52276         on stdbool.
52277
52278         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
52279         (gl_PREREQ_XSTRTOUL): Remove.
52280
52281         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
52282
52283         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
52284         mode.
52285
52286 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52287
52288         Add and change modules to make it easier for coreutils to use
52289         gnulib-tool.
52290         * modules/backupfile (Files): Remove m4/d-ino.m4.
52291         (Depends-on): Add d-ino.
52292         * modules/cycle-check (Depends-on): Add stdint.
52293         (lib_SOURCES): Add cycle-check.h.
52294         * modules/d-ino: New module.
52295         * modules/d-type: New module.
52296         * modules/error (Files): Remove m4/strerror_r.m4.
52297         * modules/filemode (Files): Add m4/st_dm_mode.m4.
52298         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
52299         m4/inttypes_h.m4, m4/uintmax_t.m4.
52300         (Depends-on): Add stdint.
52301         (lib_SOURCES): Add fsusage.h.
52302         * modules/getcwd (Files): Remove d-ino.m4.
52303         (Depends-on): Add d-ino.
52304         * modules/getndelim2 (Depends-on): Add stdint.
52305         * modules/glob (Files): Remove m4/d-type.m4.
52306         (Depends-on): Add d-type.
52307         * modules/host-os: New module.
52308         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
52309         m4/inttypes_h.m4, m4/uintmax_t.m4.
52310         * Depends-on: Add stdint.
52311         (lib_SOURCES): Add human.h.
52312         * modules/inttostr (Files): Remove m4/intmax_t.m4,
52313         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
52314         m4/uintmax_t.m4, m4/ulonglong.m4.
52315         (Depends-on): Add stdint.
52316         (EXTRA_DIST): Add inttostr.h.
52317         * modules/lchmod: New module.
52318         * modules/link-follow: New module.
52319         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
52320         (Depends-on): Add lchmod.
52321         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
52322         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
52323         (Depends-on): Add stdint.
52324         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
52325         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
52326         (Depends-on): Add stdint.
52327         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
52328         * modules/perl: New module.
52329         * modules/regex (Depends-on): Add stdint.
52330         * modules/rmdir-errno: New module.
52331         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
52332         m4/intmax_t.m4.
52333         (Depends-on): Add stdint.
52334         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
52335         m4/uintmax_t.m4.
52336         (Depends-on): Add stdint.
52337         * modules/unlink-busy: New module.
52338         * modules/utimecmp (Depends-on): Add stdint.
52339         * modules/uptime: New module.
52340         * modules/winsz-ioctl: New module.
52341         * modules/winsz-termios: New module.
52342         * modules/xnanosleep (Depends-on): Add nanosleep.
52343         * modules/ullong_max: Remove.
52344         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
52345         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
52346         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
52347         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
52348         (Depends-on): Add inttypes.
52349         (lib_SOURCES): Add xstrtol.h.
52350         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
52351         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
52352         * MODULES.html.sh: Move 'assert' into the assert section.
52353         Move 'dummy' into the linking section.
52354         Remove ullong_max.
52355         Add section for compatibility checks for POSIX:2001 functions,
52356         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
52357         winsz-ioctl, and winsz-termios into it.
52358         Add lchmod.
52359         Add top-level Misc section and put host-os, perl, and uptime
52360         into it.
52361
52362 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52363
52364         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
52365         now assume the stdint module.  Do not include inttypes.h.
52366         * lib/fsusage.h: Likewise.
52367         * lib/getndelim2.c: Likewise.
52368         * lib/human.h: Likewise.
52369         * lib/inttostr.h: Likewise.
52370         * lib/obstack.c: Likewise.
52371         * lib/regex_internal.h: Likewise.
52372         * lib/tempname.c: Likewise.
52373         * lib/utimecmp.c: Likewise.
52374         * lib/xstrtol.h: Likewise.
52375
52376         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
52377
52378         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
52379         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
52380         * lib/xtime.h: Likewise.
52381
52382 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52383
52384         * modules/openat (Files): Add lib/fchmodat.c.
52385         Fixes problem reported by Jay Youngman.
52386
52387 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52388
52389         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
52390         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
52391
52392 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
52393             Bruno Haible  <bruno@clisp.org>
52394
52395         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
52396         and is a script that invokes bison. Tighten the code. Add comments.
52397
52398 2006-08-18  Jim Meyering  <jim@meyering.net>
52399
52400         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
52401         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
52402         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
52403         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
52404
52405 2006-08-18  Bruno Haible  <bruno@clisp.org>
52406
52407         * modules/bison-i18n: New file.
52408         * MODULES.html.sh (Internationalization functions): Add it.
52409
52410 2006-08-18  Bruno Haible  <bruno@clisp.org>
52411
52412         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
52413         sys/statvfs.h. When getmntinfo was found, check its declaration and
52414         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
52415
52416 2006-08-18  Bruno Haible  <bruno@clisp.org>
52417
52418         * m4/bison-i18n.m4: New file, from bison.
52419
52420 2006-08-18  Bruno Haible  <bruno@clisp.org>
52421
52422         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
52423         (ME_DUMMY): Treat "kernfs" as a dummy.
52424         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
52425
52426 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52427
52428         Update from coreutils.
52429
52430         2006-08-15  Jim Meyering  <jim@meyering.net>
52431
52432         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
52433
52434         2006-01-17  Jim Meyering  <jim@meyering.net>
52435
52436         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
52437
52438         2006-01-11  Jim Meyering  <jim@meyering.net>
52439
52440         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
52441         Check for the lchmod function.
52442
52443 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52444
52445         Update from coreutils.
52446
52447         * lib/__fpending.h: Add copyright notice.
52448         * lib/fprintftime.h: Likewise.
52449         * lib/savedir.c: Use (C) in copyright notice.
52450         * lib/savedir.h: Likewise.
52451
52452         2006-08-15  Jim Meyering  <jim@meyering.net>
52453
52454         * lib/at-func.c: New file, with the logic of all emulated at-functions.
52455         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
52456         in support of the EXPECTED_ERRNO macro.
52457         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
52458         definitions.  Instead, define the appropriate symbols and include
52459         "at-func.c".
52460         * lib/mkdirat.c (mkdirat): Likewise.
52461         * lib/fchmodat.c (fchmodat): Likewise.
52462         (ENOSYS): Remove definition.
52463         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
52464         it.  Don't include "unistd--.h" -- it wasn't ever used.
52465
52466         2006-01-17  Jim Meyering  <jim@meyering.net>
52467
52468         Rewrite fts.c not to change the current working directory,
52469         by using openat, fstatat, fdopendir, etc..
52470
52471         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
52472         (HAVE_OPENAT_SUPPORT): Define.
52473         [_LIBC] (fchdir): Don't undef or define; no longer used.
52474         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
52475         Now, this `function' always succeeds, and consumes its file descriptor
52476         parameter -- so callers must not close such FDs.  Update callers.
52477         (diropen_fd, opendirat, cwd_advance_fd): New functions.
52478         (diropen): Add parameter, SP.  Adjust all callers.
52479         Implement using diropen_fd, rather than open.
52480         (fts_open): Initialize new member, fts_cwd_fd.
52481         Remove fts_rft-setting code.
52482         (fts_close): Close fts_cwd_fd, if necessary.
52483         (__opendir2): Define in terms of opendir or opendirat,
52484         depending on whether the FST_NOCHDIR flag is set.
52485         (fts_build): Since fts_safe_changedir consumes its FD, and since
52486         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
52487         and close the dup'd file descriptor upon failure.
52488         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
52489         (fts_safe_changedir): Tweak semantics to reflect that this function
52490         now calls cwd_advance_fd and hence consumes its FD argument.
52491         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
52492         [struct FTS] (fts_rft): Remove now-unused member.
52493         [struct FTS] (fts_cycle.state): Improve comment.
52494
52495         * lib/openat.c (openat_needs_fchdir): New function.
52496         * lib/openat.h (openat_needs_fchdir): Declare it.
52497
52498 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
52499
52500         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
52501         Problem and fix reported by Pádraig Brady in
52502         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
52503
52504 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52505
52506         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
52507
52508 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52509
52510         * lib/memcoll.c (memcoll): Optimize for the common case where the
52511         arguments are bytewise equal.
52512
52513 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52514
52515         * doc/regexprops-generic.texi: Add a copyright notice.
52516
52517 2006-08-15  Bruno Haible  <bruno@clisp.org>
52518
52519         * modules/tmpdir (License): Change to LGPL.
52520
52521 2006-08-15  Bruno Haible  <bruno@clisp.org>
52522
52523         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
52524         module.
52525
52526 2006-08-14  Simon Josefsson  <jas@extundo.com>
52527
52528         * config/srclist.txt: Add gnupload.
52529
52530 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52531
52532         Change copyright notice from LGPL 2 to GPL 2, since that's the
52533         standard form used in the gnulib repository.
52534         * tests/test-lock.c: Likewise.
52535         * tests/test-stdint.c: Likewise.
52536         * tests/test-tls.c: Likewise.
52537
52538         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
52539         prelude-manager.  User shorter URLs for GNU projects, without '?'.
52540         Add copyright notice.
52541
52542         * check-module: Add copyright notice.  Output a copyright
52543         notice if "--version" is specified.
52544         * modules/COPYING: New file.
52545         * tests/test-getaddrinfo.c: Add copyright notice.
52546         * tests/test-verify.c: Likewise.
52547
52548 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52549
52550         Change copyright notice from LGPL 2 to GPL 2, since that's the
52551         standard form used in the gnulib repository.
52552         * lib/lock.c: LGPL -> GPL.
52553         * lib/lock.h: Likewise.
52554         * lib/strnlen1.c: Likewise.
52555         * lib/strnlen1.h: Likewise.
52556         * lib/tls.c: Likewise.
52557         * lib/tls.h: Likewise.
52558         * lib/tmpdir.c: Likewise.
52559
52560         * lib/TODO: Remove; this belongs only in coreutils.
52561
52562 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52563
52564         Add copyright notices to long-enough files that lack them, since
52565         otherwise the files aren't clearly free.  Use the same notice that
52566         getdate.texi already uses.
52567         * doc/alloca-opt.texi: Add copyright notice.
52568         * doc/alloca.texi: Likewise.
52569         * doc/ctime.texi: Likewise.
52570         * doc/functions.texi: Likewise.
52571         * doc/gcd.texi: Likewise.
52572         * doc/gnulib-tool.texi: Likewise.
52573         * doc/inet_ntoa.texi: Likewise.
52574         * doc/visibility.texi: Likewise.
52575
52576         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
52577         * doc/quote.texi: Add copyright notice.
52578
52579         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
52580         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
52581         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
52582         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
52583         is now obsolete, and give a pointer to the Sun list.
52584         Add copyright notice.
52585
52586 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52587
52588         * config/srclistvars.sh: Add copyright notice.
52589
52590 2006-08-14  Eric Blake  <ebb9@byu.net>
52591
52592         Import the following change from libc:
52593
52594         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
52595
52596         Upstream bug 2997.
52597         * lib/misc/error.c: Add space between program name and message if file
52598         name is missing.
52599
52600 2006-08-12  Karl Berry  <karl@gnu.org>
52601
52602         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
52603         remove, these originate in gnulib now.
52604
52605 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52606
52607         * doc/Makefile (standards.info standards.html standards.dvi):
52608         Also depend on make-stds.texi.
52609
52610 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52611
52612         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
52613         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
52614
52615         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
52616         in wchar_t.  Problem reported by Eric Blake.
52617
52618         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
52619         LEN is smaller than SIZE.  Suggested by Bruno Haible.
52620         Also, help the compiler to keep LEN in a register.
52621
52622 2006-08-11  Eric Blake  <ebb9@byu.net>
52623
52624         * users.txt: Sort.  Add tar.
52625
52626 2006-08-11  Bruno Haible  <bruno@clisp.org>
52627
52628         * users.txt: New file.
52629
52630 2006-08-11  Bruno Haible  <bruno@clisp.org>
52631
52632         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
52633         before <wchar.h>. Needed for OSF/1 and BSD/OS.
52634
52635 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52636
52637         * modules/snprintf (Depends-on): Remove minmax.
52638         (Maintainer): Add self and Bruno.
52639
52640 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52641
52642         * lib/.cppi-disable: Add snprintf.h, socket_.h.
52643         * lib/snprintf.c: Include <errno.h> and <limits.h>.
52644         (EOVERFLOW): Define if the system does not.
52645         Do not include "minmax.h"; it wasn't used.
52646         (snprintf): Don't assume size_t promotes to an unsigned type.
52647         Fix bug when generated string was too long for the buffer: the
52648         buffer's contents are supposed to be the initial prefix of the
52649         output.  Don't assume vasnprintf returns EOVERFLOW if the size
52650         exceeds INT_MAX; do the check ourselves.
52651
52652         Import the following changes from libc:
52653
52654         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
52655
52656         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
52657         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
52658         set wc to the byte which couldn't be converted.
52659         (re_string_reconstruct): Don't clear valid_raw_len before calling
52660         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
52661         tip_context using re_string_context_at.
52662
52663         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
52664
52665         * lib/posix/regex.h: g++ still cannot handled [restrict].
52666
52667         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
52668
52669         * lib/posix/regex.h: Remove special handling for VMS.
52670
52671 2006-08-10  Jim Meyering  <jim@meyering.net>
52672
52673         * modules/same-inode: New module.
52674         * modules/dev-ino: New module.
52675         * modules/cycle-check: Depend on these modules, rather than simply
52676         including their .h files.
52677         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
52678         required via m4/cycle-check.m4.
52679         * modules/same: Depend on new same-inode module, rather than
52680         including same-inode.h.
52681         * modules/chdir-safer: New file.
52682
52683         * modules/chown (Depends-on): Add stat-macros.
52684
52685 2006-08-10  Jim Meyering  <jim@meyering.net>
52686
52687         * m4/cycle-check.m4: New file.
52688         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
52689         * m4/dev-ino.m4, m4/same-inode.m4: New files.
52690
52691 2006-08-10  Eric Blake  <ebb9@byu.net>
52692
52693         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
52694         in from original proposal.
52695
52696 2006-08-10  Eric Blake  <ebb9@byu.net>
52697         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
52698
52699         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
52700         namespace.
52701
52702 2006-08-10  Bruno Haible  <bruno@clisp.org>
52703
52704         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
52705         as well.
52706
52707 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52708
52709         Sync from coreutils.
52710
52711         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
52712
52713         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
52714         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
52715
52716 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52717
52718         * modules/restrict: Remove; no longer needed now that we assume
52719         Autoconf 2.59 or later.
52720         * MODULES.html.sh: Remove 'restrict'.
52721         * modules/argp (Depends-on): Remove 'restrict'.
52722         * modules/base64 (Depends-on): Likewise.
52723         * modules/gc (Depends-on): Likewise.
52724         * modules/getaddrinfo (Depends-on): Likewise.
52725         * modules/glob (Depends-on): Likewise.
52726         * modules/inet_ntop (Depends-on): Likewise.
52727         * modules/inet_pton (Depends-on): Likewise.
52728         * modules/memxor (Depends-on): Likewise.
52729         * modules/regex (Depends-on): Likewise.
52730         * modules/strtok_r (Depends-on): Likewise.
52731         * modules/time_r (Depends-on): Likewise.
52732
52733 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52734
52735         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
52736         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
52737         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52738         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
52739         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
52740         * m4/memxor.m4 (gl_MEMXOR): Likewise.
52741         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
52742         gl_C_RESTRICT replaced by AC_C_RESTRICT.
52743
52744         Merge from coreutils.
52745         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
52746         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
52747         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52748         * m4/time_r.m4 (gl_TIME_R): Likewise.
52749
52750 2006-08-09  Karl Berry  <karl@gnu.org>
52751
52752         * config/srclist.txt: no more gettext-tools, per Bruno.
52753
52754 2006-08-08  Eric Blake  <ebb9@byu.net>
52755
52756         * modules/verror: New module.
52757         * MODULES.html.sh: Document it.
52758
52759 2006-08-08  Eric Blake  <ebb9@byu.net>
52760
52761         * lib/verror.h, lib/verror.c: New files.
52762
52763 2006-08-08  Eric Blake  <ebb9@byu.net>
52764
52765         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
52766         verror_at_line output complies with GNU Coding Standards even when
52767         file is NULL.
52768
52769 2006-08-07  Bruno Haible  <bruno@clisp.org>
52770
52771         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
52772         versions of AIX.
52773         Reported by Ralf Wildenhues.
52774
52775 2006-08-07  Bruno Haible  <bruno@clisp.org>
52776
52777         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
52778         in an AC_DEFUN. Needed so that the autoconf snippets can use
52779         AC_REQUIRE.
52780
52781 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52782
52783         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52784         Initialize pkgdata_DATA.
52785         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
52786         overriding it.
52787
52788 2006-08-06  Eric Blake  <ebb9@byu.net>
52789
52790         * lib/error.h: Fold in some upstream changes from glibc.
52791         * lib/error.c: Likewise.
52792
52793 2006-08-04  Bruno Haible  <bruno@clisp.org>
52794
52795         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52796         Make the mostlyclean-local rule depend on mostlyclean-generic.
52797         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
52798
52799 2006-07-31  Bruno Haible  <bruno@clisp.org>
52800
52801         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
52802         <stdlib.h>, <string.h>.
52803
52804 2006-07-30  Bruno Haible  <bruno@clisp.org>
52805
52806         * modules/readlink (License): Change to LGPL.
52807
52808 2006-07-30  Bruno Haible  <bruno@clisp.org>
52809
52810         * modules/javaversion (Makefile.am): Distribute javaversion.java and
52811         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
52812         set PKGDATADIR to point to it.
52813
52814 2006-07-30  Bruno Haible  <bruno@clisp.org>
52815
52816         * modules/csharpexec (configure.ac): Comment out macro invocation.
52817         * modules/javaexec (configure.ac): Likewise.
52818         * modules/javacomp-script (configure.ac): Likewise.
52819
52820         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
52821
52822 2006-07-30  Bruno Haible  <bruno@clisp.org>
52823
52824         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
52825         linked-list.
52826
52827 2006-07-30  Bruno Haible  <bruno@clisp.org>
52828
52829         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
52830
52831 2006-07-30  Bruno Haible  <bruno@clisp.org>
52832
52833         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52834         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
52835         get removed.
52836
52837 2006-07-29  Bruno Haible  <bruno@clisp.org>
52838
52839         Make it possible for gnulib-tool to work with locally modified or
52840         augmented gnulib repositories.
52841         * gnulib-tool (func_usage): Document --local-dir option.
52842         (local_gnulib_dir): New variable.
52843         Handle --local-dir option.
52844         (func_lookup_file): New function.
52845         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
52846         (func_get_description, func_get_filelist, func_get_description,
52847         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
52848         func_get_automake_snippet, func_get_include_directive,
52849         func_get_license, func_get_maintainer): Use func_lookup_file.
52850         (func_import, func_create_testdir): Use func_lookup_file.
52851
52852 2006-07-29  Bruno Haible  <bruno@clisp.org>
52853
52854         * modules/setenv (Depends-on): Add unistd.
52855
52856 2006-07-29  Bruno Haible  <bruno@clisp.org>
52857
52858         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
52859
52860 2006-07-29  Bruno Haible  <bruno@clisp.org>
52861
52862         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
52863
52864 2006-07-29  Bruno Haible  <bruno@clisp.org>
52865
52866         * gnulib-tool (import, update): If there is no Makefile.am, look at
52867         aclocal.m4, instead of bailing out.
52868
52869 2006-07-29  Bruno Haible  <bruno@clisp.org>
52870
52871         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
52872         Categorize the options by when they are useful.
52873
52874 2006-07-29  Bruno Haible  <bruno@clisp.org>
52875
52876         * gnulib-tool (func_usage): Document option --no-libtool.
52877         Handle option --no-libtool.
52878         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
52879         for changed semantics of $libtool variable.
52880         (func_import): Likewise. If libtool is not used, show this through
52881         an option --no-libtool.
52882         (func_create_testdir): Update.
52883
52884 2006-07-29  Bruno Haible  <bruno@clisp.org>
52885
52886         * gnulib-tool (func_import): Extend error message about missing
52887         --doc-base.
52888
52889 2006-07-29  Bruno Haible  <bruno@clisp.org>
52890
52891         * gnulib-tool (func_import): Don't create the $docbase directory if
52892         there is no file to store there.
52893
52894 2006-07-29  Bruno Haible  <bruno@clisp.org>
52895
52896         * gnulib-tool (autoconf_minversion): If a --dir option is given and
52897         relevant, look for configure.ac there, not in the current directory.
52898         Also use a simple search for AC_PREREQ, not "autoconf --trace".
52899
52900 2006-07-29  Bruno Haible  <bruno@clisp.org>
52901
52902         * gnulib-tool (SORT): New variable.
52903         (func_usage): Undocument --assume-autoconf option.
52904         Remove --assume-autoconf option handling.
52905         (autoconf_minversion): Determine from the contents of configure.ac.
52906         (func_import): Remove autoconf_minversion handling.
52907         Suggested by Eric Blake.
52908
52909 2006-07-29  Bruno Haible  <bruno@clisp.org>
52910
52911         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
52912
52913 2006-07-29  Bruno Haible  <bruno@clisp.org>
52914
52915         * config/srclist.txt (*setenv.[ch]): Remove rules.
52916
52917 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52918
52919         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
52920
52921 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52922
52923         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
52924         arpa/inet.h.
52925
52926 2006-07-28  Simon Josefsson  <jas@extundo.com>
52927
52928         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
52929         * modules/inet_pton (Depends-on): Likewise.
52930
52931 2006-07-28  Simon Josefsson  <jas@extundo.com>
52932
52933         * m4/netinet_in_h.m4: New file.
52934
52935 2006-07-28  Simon Josefsson  <jas@extundo.com>
52936
52937         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
52938         #include's.
52939
52940 2006-07-28  Simon Josefsson  <jas@extundo.com>
52941
52942         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
52943         #include's.
52944
52945 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
52946
52947         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
52948         setgid on directories only if they set these bits.
52949         * lib/modechange.h: Remove obsolete comment about masks.
52950
52951 2006-07-28  Eric Blake  <ebb9@byu.net>
52952
52953         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
52954         macro expansion.
52955
52956 2006-07-28  Bruno Haible  <bruno@clisp.org>
52957
52958         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
52959
52960 2006-07-28  Bruno Haible  <bruno@clisp.org>
52961
52962         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
52963
52964 2006-07-28  Bruno Haible  <bruno@clisp.org>
52965
52966         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
52967         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
52968         Define fallbacks.
52969         Avoids link error on FreeBSD 4.x.
52970         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52971
52972         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
52973         encoding.
52974         * lib/mbswidth.c (iswcntrl): Likewise.
52975
52976 2006-07-27  Bruno Haible  <bruno@clisp.org>
52977
52978         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
52979         test.
52980
52981 2006-07-27  Bruno Haible  <bruno@clisp.org>
52982
52983         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
52984         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
52985         defined.
52986
52987 2006-07-26  Eric Blake  <ebb9@byu.net>
52988
52989         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
52990
52991 2006-07-26  Eric Blake  <ebb9@byu.net>
52992
52993         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
52994         like mingw that lack mkstemp.
52995         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
52996         avoid compilation warning on mingw.
52997
52998 2006-07-26  Bruno Haible  <bruno@clisp.org>
52999
53000         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
53001         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
53002         INT_FAST*_MIN, INTPTR_MIN.
53003
53004 2006-07-25  Bruno Haible  <bruno@clisp.org>
53005
53006         * modules/version-etc (Depends-on): Add stdarg.
53007
53008 2006-07-25  Bruno Haible  <bruno@clisp.org>
53009
53010         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
53011         complex commands.
53012
53013 2006-07-25  Bruno Haible  <bruno@clisp.org>
53014
53015         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
53016         defined in <stdarg.h> or config.h.
53017
53018 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
53019
53020         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
53021         (gl_STDIO_SAFER): Remove.
53022
53023 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
53024
53025         * MODULES.html.sh (File stream based Input/Output):
53026         Add fopen-safer, tmpfile-safer; remove stdio-safer.
53027         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
53028         * modules/fopen-safer, modules/tmpfile-safer: New files.
53029         * modules/stdio-safer: Remove.
53030
53031 2006-07-24  Bruno Haible  <bruno@clisp.org>
53032
53033         * modules/tmpdir: New file.
53034         * MODULES.html.sh (File system functions): Add it.
53035
53036 2006-07-24  Bruno Haible  <bruno@clisp.org>
53037
53038         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
53039         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
53040
53041 2006-07-24  Bruno Haible  <bruno@clisp.org>
53042
53043         * modules/clean-temp: New file.
53044
53045 2006-07-24  Bruno Haible  <bruno@clisp.org>
53046
53047         * m4/tmpdir.m4: New file, from GNU gettext.
53048
53049 2006-07-24  Bruno Haible  <bruno@clisp.org>
53050
53051         * lib/tmpdir.h: New file, from GNU gettext.
53052         * lib/tmpdir.c: New file, from GNU gettext.
53053
53054 2006-07-24  Bruno Haible  <bruno@clisp.org>
53055
53056         * lib/clean-temp.h: New file, from GNU gettext.
53057         * lib/clean-temp.c: New file, from GNU gettext.
53058
53059 2006-07-23  Eric Blake  <ebb9@byu.net>
53060
53061         * modules/stdio-safer (Files): Add tmpfile-safer.c.
53062         (Depends-on): Add binary-io.
53063
53064 2006-07-23  Eric Blake  <ebb9@byu.net>
53065
53066         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
53067
53068 2006-07-23  Eric Blake  <ebb9@byu.net>
53069
53070         * lib/tmpfile-safer.c: New file.
53071         * lib/stdio-safer.h (fopen_safer): Add prototype.
53072         * lib/stdio--.h (tmpfile): Make safer.
53073
53074 2006-07-23  Bruno Haible  <bruno@clisp.org>
53075
53076         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
53077         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
53078         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
53079         gl_linked_remove_at): Use it.
53080
53081 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53082         and Simon Josefsson <jas@extundo.com>
53083
53084         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
53085
53086         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
53087
53088 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53089
53090         * modules/close-stream: New file.
53091         * modules/closeout (Description): Make it clear that it exits
53092         with a diagnostic on error.
53093         (Depends-on): Add close-stream.  Remove fpending, stdbool.
53094         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
53095
53096 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53097
53098         * m4/close-stream.m4: New file.
53099
53100 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53101
53102         * lib/close-stream.c, lib/close-stream.h: New files.
53103
53104 2006-07-22  Bruno Haible  <bruno@clisp.org>
53105
53106         Merge from GNU gettext 0.15.
53107
53108         2006-05-01  Bruno Haible  <bruno@clisp.org>
53109
53110                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
53111
53112         2006-07-22  Bruno Haible  <bruno@clisp.org>
53113
53114                 * modules/javaversion: New file.
53115                 * MODULES.html.sh (Java): Add javaversion.
53116
53117         2006-03-12  Bruno Haible  <bruno@clisp.org>
53118
53119                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
53120
53121         2005-12-04  Bruno Haible  <bruno@clisp.org>
53122
53123                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
53124                 (untested).
53125
53126         2006-06-21  Bruno Haible  <bruno@clisp.org>
53127
53128                 Avoid warnings from recent versions of mcs.
53129                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
53130                 -o, -L, -r any more. Use options documented since mcs-1.0
53131                 instead. Similarly for -g.
53132
53133         2005-12-04  Bruno Haible  <bruno@clisp.org>
53134
53135                 * build-aux/csharpcomp.sh.in: Suffix for resources is
53136                 .resources, not .resource.
53137
53138         2005-07-09  Bruno Haible  <bruno@clisp.org>
53139
53140                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
53141                 add a .dll suffix.
53142                 Reported by Mark Junker <mjscod@gmx.de>.
53143
53144         2006-07-22  Bruno Haible  <bruno@clisp.org>
53145
53146                 * modules/gettext: Upgrade to gettext-0.15.
53147                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
53148                 m4/visibility.m4.
53149                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
53150
53151 2006-07-22  Bruno Haible  <bruno@clisp.org>
53152
53153         Merge from GNU gettext 0.15.
53154
53155         2006-03-25  Bruno Haible  <bruno@clisp.org>
53156
53157                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
53158
53159         2006-07-21  Bruno Haible  <bruno@clisp.org>
53160
53161                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
53162                 "1.1".
53163
53164         2006-05-09  Bruno Haible  <bruno@clisp.org>
53165
53166                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
53167                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
53168                 for the conftestver execution.
53169
53170         2006-05-01  Bruno Haible  <bruno@clisp.org>
53171
53172                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
53173                 optional target-version argument. Verify that the compiler
53174                 groks source of the specified source-version, or add -source
53175                 option as necessary. Verify that the compiler produces
53176                 bytecode in the specified target-version, or add -target and
53177                 -source options as necessary. Make the result of the test
53178                 available as variable CONF_JAVAC. Also log error output in
53179                 config.log.
53180
53181         2006-03-11  Bruno Haible  <bruno@clisp.org>
53182
53183                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
53184
53185         2006-05-09  Bruno Haible  <bruno@clisp.org>
53186
53187                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
53188                 CLASSPATH_SEPARATOR to a semicolon.
53189
53190         2006-03-12  Bruno Haible  <bruno@clisp.org>
53191
53192                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
53193                 available as variable CONF_JAVA, for subsequent autoconf
53194                 tests. Also log error output in config.log.
53195
53196         2006-07-19  Bruno Haible  <bruno@clisp.org>
53197
53198                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
53199                 that getline works on glibc2 systems. Needed to avoid trouble
53200                 in relocatable.c.
53201                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
53202
53203         2005-12-04  Bruno Haible  <bruno@clisp.org>
53204
53205                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
53206                 launcher (untested).
53207
53208         2005-12-04  Bruno Haible  <bruno@clisp.org>
53209
53210                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
53211
53212         2006-07-22  Bruno Haible  <bruno@clisp.org>
53213
53214                 * gettext.m4: Update from GNU gettext-0.15.
53215                 * nls.m4: Likewise.
53216                 * po.m4: Likewise.
53217                 * inttypes-pri.m4: Likewise.
53218                 * inttypes-h.m4: Renamed from inttypes.m4.
53219                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
53220
53221 2006-07-22  Bruno Haible  <bruno@clisp.org>
53222
53223         Merge from GNU gettext 0.15.
53224
53225         2005-07-05  Bruno Haible  <bruno@clisp.org>
53226
53227                 * printf-args.c (printf_fetchargs): Work around broken
53228                 definition of wint_t on mingw.
53229
53230         2005-02-12  Bruno Haible  <bruno@clisp.org>
53231
53232                 * xallocsa.h: Add extern "C" for C++.
53233
53234         2006-05-17  Bruno Haible  <bruno@clisp.org>
53235
53236                 Cygwin portability.
53237                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
53238
53239         2006-04-30  Bruno Haible  <bruno@clisp.org>
53240
53241                 * progreloc.c: Include <mach-o/dyld.h> if available.
53242                 (find_executable): Use _NSGetExecutablePath when possible.
53243
53244         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53245
53246                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
53247                 function.
53248
53249         2005-12-29  Bruno Haible  <bruno@clisp.org>
53250
53251                 * progreloc.c (set_program_name_and_installdir): Fix
53252                 compilation error.
53253
53254         2005-12-04  Bruno Haible  <bruno@clisp.org>
53255
53256                 Cygwin portability.
53257                 * progreloc.c: Include <windows.h> also on Cygwin.
53258                 (find_executable): Add support for Cygwin.
53259                 (set_program_name_and_installdir): Handle also platforms with
53260                 nonempty EXEEXT.
53261
53262         2006-07-11  Bruno Haible  <bruno@clisp.org>
53263
53264                 * javacomp.c: Fix a comment.
53265                 Reported by Jim Meyering.
53266
53267         2006-04-30  Bruno Haible  <bruno@clisp.org>
53268
53269                 * javacomp.h (compile_java_class): Add source_version,
53270                 target_version arguments.
53271                 * javacomp.c: Rewritten to choose only a compiler that
53272                 respects the specified source_version and target_version.
53273
53274         2006-06-27  Bruno Haible  <bruno@clisp.org>
53275
53276                 Assume correct S_ISDIR macro.
53277                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
53278
53279         2006-07-22  Bruno Haible  <bruno@clisp.org>
53280
53281                 * javaversion.h: New file, from GNU gettext.
53282                 * javaversion.c: New file, from GNU gettext.
53283                 * javaversion.java: New file, from GNU gettext.
53284                 * javaversion.class: New file, from GNU gettext.
53285
53286         2006-05-17  Bruno Haible  <bruno@clisp.org>
53287
53288                 Cygwin portability.
53289                 * javaexec.c (execute_java_class): Test for jview program
53290                 also on Cygwin.
53291
53292         2006-04-09  Bruno Haible  <bruno@clisp.org>
53293
53294                 * fatal-signal.c: Don't include string.h.
53295                 (at_fatal_signal): Use a copying loop instead of memcpy.
53296
53297         2005-12-04  Bruno Haible  <bruno@clisp.org>
53298
53299                 * csharpexec.c: Add support for 'clix' launcher (untested).
53300                 (execute_csharp_using_sscli): New function.
53301                 (execute_csharp_program): Call it.
53302
53303         2006-06-21  Bruno Haible  <bruno@clisp.org>
53304
53305                 Avoid warnings from recent versions of mcs.
53306                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
53307                 -o, -L, -r any more. Use options documented since mcs-1.0
53308                 instead. Similarly for -g.
53309
53310         2005-07-09  Bruno Haible  <bruno@clisp.org>
53311
53312                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
53313                 add a .dll suffix.
53314                 Reported by Mark Junker <mjscod@gmx.de>.
53315
53316         2006-06-17  Bruno Haible  <bruno@clisp.org>
53317
53318                 * config.charset: Update for NetBSD 3.0.
53319
53320         2006-05-17  Bruno Haible  <bruno@clisp.org>
53321
53322                 Cygwin portability.
53323                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
53324
53325         2006-05-16  Bruno Haible  <bruno@clisp.org>
53326
53327                 * localcharset.c [CYGWIN]: Include <windows.h>.
53328                 (get_charset_aliases): For Cygwin, return the same CPxxx
53329                 aliases list as under WIN32.
53330                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
53331                 the environment variables. Fall back to GetACP().
53332
53333         2006-04-05  Bruno Haible  <bruno@clisp.org>
53334
53335                 * config.charset: Update Juan Manuel Guerrero's address.
53336
53337         2005-02-12  Bruno Haible  <bruno@clisp.org>
53338
53339                 * allocsa.h: Add extern "C" for C++.
53340
53341         2005-02-10  Bruno Haible  <bruno@clisp.org>
53342
53343                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
53344                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
53345
53346         2006-07-22  Bruno Haible  <bruno@clisp.org>
53347
53348                 * gettext.h: Update to GNU gettext-0.15.
53349
53350 2006-07-22  Bruno Haible  <bruno@clisp.org>
53351
53352         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
53353         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
53354         lib-prefix.m4, longdouble.m4, ssize_t.m4.
53355
53356 2006-07-21  Eric Blake  <ebb9@byu.net>
53357
53358         * modules/stdlib-safer: New file.
53359         * MODULES.html.sh (File stream based Input/Output): Add
53360         stdlib-safer.
53361
53362 2006-07-21  Eric Blake  <ebb9@byu.net>
53363
53364         * lib/stdlib-safer.h: New file from coreutils, required by
53365         stdlib--.h.
53366
53367 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
53368
53369         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
53370
53371 2006-07-20  Bruno Haible  <bruno@clisp.org>
53372
53373         * gnulib-tool: Recognize new option --assume-autoconf.
53374         (autoconf_minversion): New variable.
53375         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
53376
53377 2006-07-20  Bruno Haible  <bruno@clisp.org>
53378
53379         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
53380
53381 2006-07-19  Derek R. Price  <derek@ximbiot.com>
53382
53383         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
53384         Reindent and repaginate.
53385
53386 2006-07-19  Derek Price  <derek@ximbiot.com>
53387
53388         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
53389         Correct grammar.
53390
53391 2006-07-17  Bruno Haible  <bruno@clisp.org>
53392
53393         * modules/list: New file.
53394         * modules/array-list: New file.
53395         * modules/carray-list, modules/carray-list-tests: New files.
53396         * modules/linked-list, modules/linked-list-tests: New files.
53397         * modules/avltree-list, modules/avltree-list-tests: New files.
53398         * modules/rbtree-list, modules/rbtree-list-tests: New files.
53399         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
53400         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
53401         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
53402         * modules/oset: New file.
53403         * modules/array-oset: New file.
53404         * modules/avltree-oset, modules/avltree-oset-tests: New files.
53405         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
53406         * tests/test-carray_list.c: New file.
53407         * tests/test-linked_list.c: New file.
53408         * tests/test-avltree_list.c: New file.
53409         * tests/test-rbtree_list.c: New file.
53410         * tests/test-linkedhash_list.c: New file.
53411         * tests/test-avltreehash_list.c: New file.
53412         * tests/test-rbtreehash_list.c: New file.
53413         * tests/test-avltree_oset.c: New file.
53414         * tests/test-rbtree_oset.c: New file.
53415         * MODULES.html.sh (Container data structures): New section.
53416
53417 2006-07-17  Bruno Haible  <bruno@clisp.org>
53418
53419         * m4/gl_list.m4: New file.
53420
53421 2006-07-17  Bruno Haible  <bruno@clisp.org>
53422
53423         * lib/gl_list.h: New file.
53424         * lib/gl_list.c: New file.
53425         * lib/gl_array_list.h: New file.
53426         * lib/gl_array_list.c: New file.
53427         * lib/gl_carray_list.h: New file.
53428         * lib/gl_carray_list.c: New file.
53429         * lib/gl_linked_list.h: New file.
53430         * lib/gl_linked_list.c: New file.
53431         * lib/gl_anylinked_list1.h: New file.
53432         * lib/gl_anylinked_list2.h: New file.
53433         * lib/gl_avltree_list.h: New file.
53434         * lib/gl_avltree_list.c: New file.
53435         * lib/gl_anyavltree_list1.h: New file.
53436         * lib/gl_anyavltree_list2.h: New file.
53437         * lib/gl_rbtree_list.h: New file.
53438         * lib/gl_rbtree_list.c: New file.
53439         * lib/gl_anyrbtree_list1.h: New file.
53440         * lib/gl_anyrbtree_list2.h: New file.
53441         * lib/gl_anytree_list1.h: New file.
53442         * lib/gl_anytree_list2.h: New file.
53443         * lib/gl_linkedhash_list.h: New file.
53444         * lib/gl_linkedhash_list.c: New file.
53445         * lib/gl_anyhash_list1.h: New file.
53446         * lib/gl_anyhash_list2.h: New file.
53447         * lib/gl_avltreehash_list.h: New file.
53448         * lib/gl_avltreehash_list.c: New file.
53449         * lib/gl_rbtreehash_list.h: New file.
53450         * lib/gl_rbtreehash_list.c: New file.
53451         * lib/gl_anytreehash_list1.h: New file.
53452         * lib/gl_anytreehash_list2.h: New file.
53453
53454         * lib/gl_oset.h: New file.
53455         * lib/gl_oset.c: New file.
53456         * lib/gl_array_oset.h: New file.
53457         * lib/gl_array_oset.c: New file.
53458         * lib/gl_avltree_oset.h: New file.
53459         * lib/gl_avltree_oset.c: New file.
53460         * lib/gl_rbtree_oset.h: New file.
53461         * lib/gl_rbtree_oset.c: New file.
53462         * lib/gl_anytree_oset.h: New file.
53463
53464 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53465
53466         * m4/mkancesdirs.m4: New file.
53467         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
53468         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
53469         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
53470         it.
53471
53472 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53473
53474         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
53475         * lib/mkancesdirs.h: New files.
53476         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
53477         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
53478         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
53479         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
53480         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
53481         callers changed.  Revamp internals significantly, by not
53482         attempting to create directories that are temporarily more
53483         permissive than the final results.  Do not attempt to use
53484         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
53485         This removes some race conditions, fixes some bugs, and simplifies
53486         things.  Use new dirchownmod function to do owner and mode changes.
53487         * lib/mkdir-p.h: Likewise.
53488         * lib/modechange.c (octal_to_mode): New function.
53489         (struct mode_change): New member mentioned.
53490         (make_node_op_equals): New arg mentioned.  All callers changed.
53491         (mode_compile): Keep track of which mode bits the user has explicitly
53492         mentioned.
53493         (mode_adjust): New arg DIR, so that we implement the X op correctly.
53494         New arg PMODE_BITS, to keep track of which mode bits the user
53495         mentioned; it treats S_ISUID and S_ISGID speciall.
53496         All callers changed.
53497         * lib/modechange.h: Likewise.
53498
53499 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53500
53501         * MODULES.html.sh: Add mkancestors.
53502         * modules/mkancesdirs: New module.
53503         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
53504         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
53505         The chdir-safer and afs files are now orphans; I'll remove them
53506         unless someone speaks up.
53507         Add lib/dirchownmod.c, lib/dirchownmod.h.
53508         (Depends-on): Remove alloca, chown, save-cwd, dirname.
53509         Add lchown, mkancesdirs.
53510         (Maintainer): Add self.
53511
53512 2006-07-15  Karl Berry  <karl@gnu.org>
53513
53514         * gnulib-tool: help message wording/arrangement.
53515
53516 2006-07-14  Simon Josefsson  <jas@extundo.com>
53517
53518         * doc/gnulib.texi (Libtool and Windows): New section.
53519
53520 2006-07-12  Simon Josefsson  <jas@extundo.com>
53521
53522         * modules/gendocs (License): Fix license, approved by Karl.
53523
53524 2006-07-12  Eric Blake  <ebb9@byu.net>
53525
53526         * MODULES.html.sh: Add gendocs.
53527
53528 2006-07-11  Eric Blake  <ebb9@byu.net>
53529
53530         * modules/fdl: New module, to install doc/fdl.texi.
53531         * MODULES.html.sh: Add new section for documentation modules.
53532         * gnulib-tool: Avoid space-tab.
53533         (--doc-base): New option, to manage files from doc.
53534
53535 2006-07-11  Eric Blake  <ebb9@byu.net>
53536
53537         * m4/absolute-header.m4: Fix comments to match recent change.
53538
53539 2006-07-11  Eric Blake  <ebb9@byu.net>
53540
53541         * gnulib-tool: List --doc-base before --tests-base.
53542
53543 2006-07-11  Derek R. Price  <derek@ximbiot.com>
53544
53545         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
53546
53547 2006-07-11  Bruno Haible  <bruno@clisp.org>
53548
53549         * README: Mention where to put documentation.
53550
53551 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53552
53553         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
53554
53555 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
53556
53557         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
53558         to stdint.m4.
53559
53560 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
53561
53562         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
53563         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
53564         "no/such/file/stdint.h" when there is no such file, so that
53565         the resulting C code can be parsed by dodgy compilers.
53566         Problems reported by Bob Proulx.
53567
53568 2006-07-10  Derek R. Price  <derek@ximbiot.com>
53569
53570         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
53571         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
53572         macros into the GNU _D_EXACT_NAMLEN.
53573         * lib/savedir.c:  Likewise.
53574         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
53575
53576 2006-07-10  Derek R. Price  <derek@ximbiot.com>
53577         and Paul Eggert  <eggert@cs.ucla.edu>
53578
53579         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
53580         * m4/savedir.m4:
53581         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
53582         macros into the GNU _D_EXACT_NAMLEN.
53583
53584 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53585
53586         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
53587         around the absolute name, to work around a problem with the HP-UX
53588         11.23 native C compiler, reported by Bob Proulx.
53589
53590 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53591
53592         * doc/maintain.texi, make-stds.texi: Sync from
53593         <http://savannah.gnu.org/projects/gnustandards>.
53594
53595 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53596
53597         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
53598
53599 2006-07-09  Jim Meyering  <jim@meyering.net>
53600
53601         * m4/glob.m4: Remove a doubled word in a comment.
53602
53603 2006-07-09  Jim Meyering  <jim@meyering.net>
53604
53605         * lib/argp-pv.c: Remove a doubled word in a comment.
53606         * lib/check-version.c (check_version): Likewise.
53607         * lib/javacomp.c (compile_java_class): Likewise.
53608
53609 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
53610
53611         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
53612         for the benefit of people using Autoconf 2.60.  If you want to
53613         support older Autoconf versions you can copy m4/onceonly_2_57.m4
53614         (or m4/onceonly.m4, if pre-2.57) manually.
53615
53616 2006-07-08  Jim Meyering  <jim@meyering.net>
53617
53618         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
53619         comment.
53620         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
53621         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
53622         comment.
53623
53624 2006-07-08  Jim Meyering  <jim@meyering.net>
53625
53626         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
53627
53628 2006-07-07  Simon Josefsson  <jas@extundo.com>
53629
53630         * tests/test-crc.c: Change expected crc value, the test vector
53631         were probably computed using the old broken crc.c?
53632
53633 2006-07-06  Simon Josefsson  <jas@extundo.com>
53634
53635         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
53636         now the canonical place for the M4 file).
53637
53638         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
53639         from the sys_socket dependency now.
53640
53641         * modules/inet_pton (Files): Ditto.
53642
53643         * modules/inet_ntop (Files): Ditto.
53644
53645 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53646
53647         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
53648         not gl_PREREQ_GETUSERSHELL.
53649
53650 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53651
53652         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
53653         with only one argument, for Autoconf 2.60.
53654         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
53655         expand to nothing, so add a shell command to avoid syntax error.
53656         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53657
53658 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53659
53660         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
53661
53662 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53663
53664         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
53665         no longer needed.  Check for isblank decl.
53666         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
53667         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
53668         of existence.
53669
53670 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53671
53672         * lib/getloadavg.c: Use __VMS, not VMS.
53673         * lib/getopt.c: Likewise.
53674         * lib/getpagesize.h: Likewise.
53675         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
53676         and probably does not work.
53677
53678 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53679
53680         * lib/.cppi-disable: Add wcwidth.
53681         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
53682         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
53683         (ISGRAPH): Remove.  All uses changed to isgraph.
53684         (FOLD) [!defined _LIBC]: Remove special case.
53685         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
53686         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
53687         HAVE_ISBLANK.
53688         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
53689         case.
53690
53691 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
53692
53693         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
53694         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
53695         brackets.  Other minor changes to suppress some compiler
53696         warnings.
53697
53698 2006-07-06  Derek R. Price  <derek@ximbiot.com>
53699         and Paul Eggert  <eggert@cs.ucla.edu>
53700
53701         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
53702         of invoking obsolescent AC_HEADER_DIRENT macro.
53703         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
53704         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
53705         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
53706         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
53707         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
53708         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53709         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
53710         * m4/readdir.m4: Remove; no longer needed.
53711
53712 2006-07-06  Derek R. Price  <derek@ximbiot.com>
53713         and Paul Eggert  <eggert@cs.ucla.edu>
53714
53715         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
53716         Don't worry about this obsolete case any more.
53717         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
53718         directories.
53719         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
53720         worry about this obsolete case any more.
53721         * lib/fts.c: Likewise.
53722         * lib/getcwd.c: Likewise.
53723         * lib/glob.h: Likewise.
53724         * lib/savedir.c: Likewise.
53725
53726 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
53727
53728         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
53729         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
53730         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
53731         needed.
53732         All uses removed.
53733         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53734         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
53735         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
53736         needed.
53737         * m4/getdate.m4 (gl_GETDATE): Likewise.
53738         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
53739         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
53740         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53741         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53742         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
53743         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53744         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
53745         needed.
53746
53747 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
53748
53749         * lib/memcasecmp.c: Include <limits.h>.
53750         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
53751         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
53752         Don't assume isdigit succeeds only on '0' through '9'.
53753
53754 2006-07-05  Eric Blake  <ebb9@byu.net>
53755
53756         * modules/getaddrinfo (Depends-on): Add snprintf.
53757
53758 2006-07-05  Eric Blake  <ebb9@byu.net>
53759
53760         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
53761         to avoid 'header present but could not be compiled' on cygwin.
53762
53763 2006-07-05  Eric Blake  <ebb9@byu.net>
53764
53765         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
53766         missing from netdb.h.
53767         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
53768
53769 2006-07-05  Derek R. Price  <derek@ximbiot.com>
53770
53771         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
53772         no longer needed.
53773         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
53774         * m4/getdate.m4 (gl_GETDATE): Likewise.
53775         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
53776         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
53777         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53778         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53779         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53780
53781 2006-07-05  Derek R. Price  <derek@ximbiot.com>
53782
53783         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
53784         All uses of is_space replaced by isspace.
53785         * lib/exit.h: Don't talk about STDC_HEADERS.
53786         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
53787         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
53788         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
53789         replaced by isprint etc.
53790         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
53791         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
53792         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
53793         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
53794         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
53795         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
53796
53797 2006-07-05  Bruno Haible  <bruno@clisp.org>
53798
53799         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
53800         the function exists, before testing against AIX.
53801         Reported by Martin Lambers <marlam@marlam.de>.
53802
53803 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
53804
53805         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
53806         From Mark D. Baushke.
53807
53808 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
53809
53810         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
53811         to the absolute name, not just one, to bypass Sun C 5.8's
53812         "warning: #include of /usr/include/... may be non-portable".
53813
53814 2006-07-04  Eric Blake  <ebb9@byu.net>
53815
53816         * modules/dirname-tests: New test module.
53817         * tests/test-dirname.c: New file, replacing dirname.c
53818         TEST_DIRNAME section that was recently deleted.
53819
53820 2006-07-04  Bruno Haible  <bruno@clisp.org>
53821
53822         Assume ANSI C header files and <ctype.h> functions.
53823         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
53824         (mbsnwidth): Use isprint, iscntrl instead.
53825
53826 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53827
53828         Merge from coreutils.
53829         * MODULES.html.sh: Add xstrtold.
53830         * modules/xstrtold: New file.
53831         * modules/cycle-check (Files): Add lib/same-inode.h.
53832         * modules/dirname (Files): Add m4/double-slash-root.m4.
53833         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
53834         * modules/mkdir-p (Files): Add lib/same-inode.h.
53835         * modules/same (Files): Add lib/same-inode.h.
53836
53837 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53838
53839         * m4/absolute-header.m4: Renamed from full-header-path.m4.
53840         This is to keep the terminology clean; POSIX talks about
53841         "absolute pathnames", not "full pathnames", but the GNU
53842         Coding Standards say to use "path" for something else;
53843         so use "absolute" to keep both sides happy.
53844         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
53845         Set gl_absolute_header, not gl_full_header_path.
53846         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
53847         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
53848         All uses changed.
53849
53850         Merge from coreutils.
53851
53852         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
53853
53854         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
53855         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
53856         want to require the building of c-strtod.o.
53857         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
53858         needs -lm directly.
53859         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
53860
53861         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
53862
53863         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
53864         --as-needed option if available.  Problem reported by Albert Chin in
53865         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
53866         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
53867         cc merely issues a bunch of annoying warnings for --as-needed
53868         (this problem was reported by Bob Proulx).  Also, try linking with
53869         -lm to detect a bug in binutils 2.16 (this problem was reported
53870         by Ralf Wildenhues).
53871
53872         2006-06-18  Jim Meyering  <jim@meyering.net>
53873
53874         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
53875         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
53876         macro.
53877         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
53878         also check for glibc-2.4's abort-inducing bug.
53879
53880         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
53881         Low-probability clean-up should be to use rmdir to get rid of
53882         the just-created directory, not unlink.
53883
53884         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
53885         configure fail, and request a bug report to inform us about it.
53886         Add a comment that, barring reports to the contrary, in 2007 we'll
53887         assume ftruncate is universally available.
53888
53889         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
53890
53891         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
53892
53893         2006-03-12  Jim Meyering  <jim@meyering.net>
53894
53895         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
53896         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
53897         * m4/same.m4 (gl_SAME): Likewise.
53898         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
53899
53900         2006-03-11  Eric Blake  <ebb9@byu.net>
53901
53902         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
53903         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
53904         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
53905         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
53906
53907 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53908
53909         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
53910         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
53911         reported by Mark D. Baushke, one in
53912         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
53913
53914         Merge from coreutils.
53915
53916         * lib/.cppi-disable: Add stdint_.h.
53917         * lib/.cvsignore: Add stdint.h.
53918
53919         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
53920
53921         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
53922         both double and long double versions.
53923         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
53924         * lib/xstrtold.c: New file.
53925         * lib/xstrtod.h (xstrtold): New decl.
53926
53927         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
53928
53929         * lib/filemode.c (setst): Remove.
53930         (strmode): Rewrite to avoid setst.  This makes the code shorter,
53931         (arguably) clearer, and the generated code is a bit smaller on my
53932         Debian GNU/Linux stable x86 host.
53933
53934         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
53935
53936         * lib/filemode.c: Include "filemode.h" first, to test the interface.
53937         Assume that filemode.h includes sys/types.h and sys/stat.h.
53938         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
53939         (ftypelet): Reorder to put common cases first, for efficiency.
53940         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
53941         to do 'M'.
53942         (strmode): Renamed from mode_string, and now stores 12 bytes instead
53943         of 10, for compatibility with FreeBSD.  All callers changed.
53944         (filemodestring): Now stores 12 bytes instead of 10, and sets file
53945         types that can't be deduced solely from st_mode.  First arg is now a
53946         const pointer.
53947         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
53948         (strmode): Renamed from mode_string.
53949         (filemodestring): New decl.
53950         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
53951         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
53952         needed.
53953         (S_ISPORT, S_ISWHT): New macros, if not already defined.
53954
53955         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53956
53957         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
53958         fsusage.h now does that.  Include fsusage.h first, to test interface.
53959         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
53960         at most one method (the old code could have generated decls that
53961         didn't conform to C89, not that this was ever exercised).
53962         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
53963
53964         2006-03-19  Jim Meyering  <jim@meyering.net>
53965
53966         Work even in a chroot where d_ino values for entries in "/"
53967         don't match the stat.st_ino values for the same names.
53968         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
53969         number, iterate through all entries again, using lstat instead.
53970         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
53971         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
53972
53973         * lib/getcwd.c (__getcwd): Clarify a comment.
53974         Use memcpy in place of a call to strcpy.
53975
53976         2006-03-12  Jim Meyering  <jim@meyering.net>
53977
53978         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
53979         matches that of the current directory (which we're about to chdir ".."
53980         out of), then save the dev-ino of the parent, instead.
53981
53982         * lib/same-inode.h (SAME_INODE): New file/macro.
53983         * lib/chdir-safer.c (SAME_INODE): Remove definition.
53984         Include "same-inode.h", instead.
53985         * lib/same.c: Likewise.
53986         * lib/cycle-check.h: Include "same-inode.h".
53987         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
53988         * lib/cycle-check.c (SAME_INODE): Remove definition.
53989         * lib/root-dev-ino.h: Include "same-inode.h".
53990
53991         2006-03-11  Eric Blake  <ebb9@byu.net>
53992
53993         * lib/same.c (same_name): s/base_name/last_component/
53994         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
53995         * lib/filenamecat.c (file_name_concat): Likewise.
53996
53997         2006-03-11  Eric Blake  <ebb9@byu.net>,
53998                     Paul Eggert  <eggert@cs.ucla.edu>
53999
54000         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
54001         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
54002         drive prefix.
54003         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
54004         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
54005         (last_component): New method.
54006         * lib/dirname.c (dir_len): Determine when drive letters need a
54007         subsequent slash.  Preserve // when it is special.
54008         (dir_name): Don't append dot when drive letter is absolute.
54009         [TEST_DIRNAME]: Move into a full-blown gnulib test.
54010         * lib/basename.c (base_name): New semantics - malloc the result.
54011         Preserve // when it is special.  Preserve relative files that look
54012         like drive letters.
54013         (base_len): Preserve // when it is special.
54014         (last_component): New method, similar to old base_name semantics.
54015         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
54016         base_name.  Strip redundant slashes from ///.
54017
54018 2006-07-03  Jim Meyering  <jim@meyering.net>
54019
54020         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
54021         macro is used before the first cycle_check call.
54022
54023 2006-07-03  Eric Blake  <ebb9@byu.net>
54024
54025         * modules/dirname (Depends-on): Add xstrndup.
54026
54027 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54028
54029         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
54030         test cases, so that config.log is a bit easier to follow.
54031
54032 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54033
54034         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
54035         both are 64 bits, since this seems to be the tradition, and this
54036         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
54037         we ever run into a host that prefers long long to long in this
54038         case, we'll need another configure-time test.  Problem reported by
54039         Jim Meyering.
54040
54041 2006-07-02  Eric Blake  <ebb9@byu.net>
54042
54043         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
54044
54045 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54046
54047         * modules/inttypes (Depends-on): No longer depends on stdint.
54048         * modules/stdint (Description): Say more about assumptions.
54049         Say that the fast types might differ.  Say macros are used.
54050         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
54051         (Makefile.am): Revise list of substituted symbols to match
54052         new stdint.m4.
54053         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
54054         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
54055         * tests/test-stdint.c (verify_same_types)
54056         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
54057         the code conforms to C99/C89.
54058         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
54059         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
54060
54061 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54062
54063         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
54064         but fix a bug, by requiring at least 64 bits.
54065         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54066         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
54067         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
54068         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
54069
54070         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
54071         changes.  Make 2.59 a prerequisite.  Check and substitute for
54072         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
54073         inttypes.h.  Do not use special include files; just use the
54074         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
54075         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
54076         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
54077         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
54078         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
54079         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
54080         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
54081         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
54082         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
54083         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
54084         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
54085         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
54086         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
54087         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
54088         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
54089         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
54090         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
54091         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
54092         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
54093         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
54094         WINT_MAX.  Check for C99 conformance more strictly, by detecting
54095         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
54096         not check for things that C99 does not require, e.g., int8_t.  If
54097         a test isn't needed unless <stdint.h> isn't working, and is
54098         unlikely to be needed for any other reason, then don't do it
54099         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
54100         size_t, since we assume C89 freestanding at least.  Do not check
54101         for sig_atomic_t, wchar_t, or wint_t, since the code now does
54102         the right thing even if the types are not defined.  Instead use:
54103         (gl_STDINT_TYPE_PROPERTIES): New macro.
54104         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
54105         testing whether <sys/types.h> clashes, as Autoconf does this for
54106         us now.  All uses removed.
54107         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
54108         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
54109         (gl_CHECK_TYPE_SAME):
54110         Remove; no longer needed.
54111         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
54112         exists, since we'll return 0 anyway in that case.
54113         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
54114
54115 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54116
54117         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
54118         possible collision with system files.
54119         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
54120         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
54121         WCHAR_MIN and WCHAR_MAX in this case.
54122         (<stddef.h>): Do not include; no longer needed.
54123         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
54124         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
54125         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
54126         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
54127         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
54128         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
54129         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
54130         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
54131         !defined(__c99))]: Include in this case too, since it's harmless
54132         now.
54133         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
54134         dangerous to do so.
54135         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
54136         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
54137         (_STDINT_MIN, _STDINT_MAX): New macros.
54138         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
54139         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
54140         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
54141         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
54142         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
54143         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
54144         macros, not typedefs; this simplifies things quite a bit.
54145         Use long int for all types narrower than int64_t.
54146         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
54147         Define in terms of long long int or int64_t or long int,
54148         not int64_t or int32_t.  This saves some compile-time testing.
54149         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
54150         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
54151         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
54152         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
54153         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
54154         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
54155         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
54156         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
54157         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
54158         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
54159         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
54160         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
54161         undef any previous version and define our own version, for
54162         simplicity and consistency with the new macros for types.
54163         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
54164         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
54165         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
54166         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
54167         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
54168         @WINT_T_SUFFIX@ to keep things simple here.
54169         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
54170         Simplify by assuming typical 8/16/32/64 host, since we're
54171         already doing that elsewhere anyway.
54172         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
54173         and assume long long int is 64 bits if available.  This
54174         speeds up 'configure'.
54175
54176 2006-07-01  Eric Blake  <ebb9@byu.net>
54177
54178         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
54179         Reported by Andreas Buening.
54180
54181 2006-07-01  Eric Blake  <ebb9@byu.net>
54182
54183         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
54184
54185 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
54186
54187         * lib/getaddrinfo.c: fixed typo
54188
54189 2006-06-29  Jim Meyering  <jim@meyering.net>
54190
54191         * modules/strftime (Maintainer): Add my name, since with the
54192         FPRINTFTIME changes strftime.c has forked from glibc.
54193
54194 2006-06-29  Eric Blake  <ebb9@byu.net>
54195
54196         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
54197
54198 2006-06-29  Eric Blake  <ebb9@byu.net>
54199
54200         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
54201
54202 2006-06-29  Eric Blake  <ebb9@byu.net>
54203
54204         * lib/stat_.h: New file.
54205
54206 2006-06-29  Eric Blake  <ebb9@byu.net>
54207
54208         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
54209         unused static function.
54210
54211 2006-06-29  Eric Blake  <ebb9@byu.net>
54212
54213         * doc/functions.texi (Function Portability): Document missing lstat
54214         on mingw.
54215
54216 2006-06-29  Eric Blake  <ebb9@byu.net>
54217
54218         * MODULES.html.sh: Add sys_stat.
54219         * modules/sys_stat: New module.
54220         * modules/mkstemp (Depends-on): Add sys_stat.
54221
54222 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54223
54224         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
54225
54226 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54227
54228         * m4/c-bs-a.m4: Removed.
54229
54230 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54231
54232         * lib/strftime.c: Assume strftime() exists.
54233
54234 2006-06-29  Derek Price  <derek@ximbiot.com>
54235
54236         * modules/c-bs-a: Removed - \a is C89.
54237         * MODULES.html.sh: Remove c-bs-a.
54238
54239 2006-06-29  Bruno Haible  <bruno@clisp.org>
54240
54241         * modules/wcwidth (License): Change to LGPL.
54242
54243 2006-06-28  Simon Josefsson  <jas@extundo.com>
54244
54245         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
54246         on _WIN32.
54247
54248         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
54249         getnameinfo.
54250
54251 2006-06-28  Simon Josefsson  <jas@extundo.com>
54252
54253         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
54254
54255 2006-06-28  Simon Josefsson  <jas@extundo.com>
54256
54257         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
54258         functions there.  It will succeed on Windows XP, but on Windows
54259         2000 and (presumably) earlier, it will fail, and use the internal
54260         re-implementation.
54261         (use_win32_p): New function.
54262         (getaddrinfo): Use strtoul on servname, to support numeric ports.
54263         Support AI_NUMERICSERV to disable getservbyname.
54264         (getnameinfo): New function, only supports
54265         NI_NUMERICHOST|NI_NUMERICSERV for now.
54266
54267         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
54268         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
54269         getnameinfo.
54270
54271 2006-06-28  Eric Blake  <ebb9@byu.net>
54272
54273         * modules/wcwidth: New file.
54274         * modules/mbchar (Depends-on): Add wcwidth.
54275         * modules/mbswidth (Depends-on): Add wcwidth.
54276         * MODULES.html.sh: Add wcwidth.
54277
54278 2006-06-28  Eric Blake  <ebb9@byu.net>
54279
54280         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
54281         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
54282
54283 2006-06-28  Eric Blake  <ebb9@byu.net>
54284
54285         * lib/xvasprintf.h: Fix comments.
54286
54287 2006-06-28  Eric Blake  <ebb9@byu.net>
54288
54289         * lib/mbchar.h (wcwidth): Include wcwidth.h.
54290         * lib/mbswidth.c (wcwidth): Move from here...
54291         * lib/wcwidth.h: ...to this new file.
54292
54293 2006-06-28  Derek R. Price  <derek@ximbiot.com>
54294
54295         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
54296
54297         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
54298         it's obsolete.
54299         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
54300
54301 2006-06-28  Derek R. Price  <derek@ximbiot.com>
54302
54303         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
54304         Autoconf 2.60 says this stuff was obsolete.
54305
54306 2006-06-28  Bruno Haible  <bruno@clisp.org>
54307
54308         * modules/wcwidth (Files): Add m4/wchar_t.m4.
54309
54310 2006-06-28  Bruno Haible  <bruno@clisp.org>
54311
54312         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
54313         gt_TYPE_WCHAR_T.
54314
54315 2006-06-28  Bruno Haible  <bruno@clisp.org>
54316
54317         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
54318         declaration for wcwidth.
54319         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
54320
54321 2006-06-28  Bruno Haible  <bruno@clisp.org>
54322
54323         * lib/mkdtemp.c [MINGW]: Include <io.h>.
54324         (mkdir): Define using _mkdir.
54325
54326 2006-06-28  Bruno Haible  <bruno@clisp.org>
54327
54328         * lib/getaddrinfo.h: Fix POSIX URL.
54329         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
54330         _WIN32.
54331         (use_win32_p): Make static.
54332         (getaddrinfo): Reject service name if it is empty or does not consist
54333         solely of decimal digits, or if its value is > 65535.
54334         (getnameinfo): Remove useless casts.
54335
54336 2006-06-27  Simon Josefsson  <jas@extundo.com>
54337
54338         * modules/sys_select: New file, suggested by Bruno Haible, Paul
54339         Eggert and Martin Lambers.
54340
54341 2006-06-27  Simon Josefsson  <jas@extundo.com>
54342
54343         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
54344         Eggert and Martin Lambers.
54345
54346 2006-06-27  Bruno Haible  <bruno@clisp.org>
54347
54348         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
54349         result to 0, not to empty.
54350         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
54351
54352 2006-06-27  Bruno Haible  <bruno@clisp.org>
54353
54354         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
54355
54356 2006-06-26  Simon Josefsson  <jas@extundo.com>
54357
54358         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
54359         present.
54360
54361 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
54362
54363         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
54364         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
54365         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
54366
54367 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
54368
54369         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
54370
54371 2006-06-26  Bruno Haible  <bruno@clisp.org>
54372
54373         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
54374
54375 2006-06-26  Bruno Haible  <bruno@clisp.org>
54376
54377         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
54378
54379 2006-06-26  Bruno Haible  <bruno@clisp.org>
54380
54381         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
54382         SGI C compiler in pre-C99 mode.
54383         Suggested by Mark D. Baushke and Larry Jones.
54384
54385 2006-06-26  Bruno Haible  <bruno@clisp.org>
54386
54387         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
54388         WCHAR_MAX.
54389         Reported by Mark D. Baushke and Larry Jones.
54390
54391 2006-06-26  Bruno Haible  <bruno@clisp.org>
54392
54393         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
54394         in pre-C99 mode.
54395         Suggested by Mark D. Baushke and Larry Jones.
54396
54397 2006-06-23  Simon Josefsson  <jas@extundo.com>
54398             Bruno Haible  <bruno@clisp.org>
54399
54400         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
54401         Emit mostlyclean-local rule.
54402         (func_emit_tests_Makefile_am): Likewise.
54403         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
54404
54405 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
54406
54407         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
54408
54409 2006-06-23  Bruno Haible  <bruno@clisp.org>
54410
54411         * tests/test-stdint.c: Update to match ISO C 99 Technical
54412         Corrigendum 1.
54413
54414 2006-06-23  Bruno Haible  <bruno@clisp.org>
54415
54416         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
54417
54418 2006-06-23  Bruno Haible  <bruno@clisp.org>
54419
54420         * lib/stdint_.h: Treat IRIX like OpenBSD.
54421
54422 2006-06-23  Bruno Haible  <bruno@clisp.org>
54423
54424         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
54425         ISO C 99 Technical Corrigendum 1.
54426
54427 2006-06-22  Simon Josefsson  <jas@extundo.com>
54428
54429         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
54430         MinGW.
54431
54432 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54433
54434         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
54435         needed.  Some compiler complained about some of them.  Problem reported
54436         by Larry Jones in
54437         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
54438
54439 2006-06-21  Simon Josefsson  <jas@extundo.com>
54440
54441         * tests/test-getaddrinfo.c: New file.
54442
54443         * modules/getaddrinfo-tests: New file.
54444
54445         * MODULES.html.sh: Add inet_pton.
54446
54447         * modules/inet_pton: New file.
54448
54449 2006-06-21  Simon Josefsson  <jas@extundo.com>
54450
54451         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
54452         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
54453         of using the (limited) gnulib implementation on Windows XP.
54454
54455         * m4/inet_pton.m4: New file.
54456
54457 2006-06-21  Simon Josefsson  <jas@extundo.com>
54458
54459         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
54460         variable.
54461
54462         * lib/socket_.h: Don't define WINVER.
54463
54464         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
54465         slightly modified to work in gnulib.
54466
54467 2006-06-21  Simon Josefsson  <jas@extundo.com>
54468
54469         * doc/gnulib.texi (Windows sockets): Add.
54470
54471 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54472
54473         * lib/read-file.c (fread_file): Start with buffer allocation of
54474         0 bytes rather than 1 byte; this simplifies the code.
54475         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
54476         code to free buffer and save/restore errno.
54477         (internal_read_file): Remove unused local.
54478
54479 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54480
54481         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
54482         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
54483         Problem reported by Denis Excoffier in
54484         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
54485
54486 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54487
54488         * modules/sys_socket, modules/socklen: Include sys/types since
54489         FreeBSD 4.x's sys/socket.h needs it.
54490
54491 2006-06-19  Simon Josefsson  <jas@extundo.com>
54492
54493         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
54494
54495 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
54496
54497         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
54498
54499 2006-06-19  Bruno Haible  <bruno@clisp.org>
54500
54501         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
54502         and FULL_PATH_INTTYPES_H in angle brackets.
54503         Reported by Mark D. Baushke <mdb@gnu.org>.
54504
54505 2006-06-17  Eric Blake  <ebb9@byu.net>
54506
54507         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
54508         errno.
54509
54510 2006-06-17  Bruno Haible  <bruno@clisp.org>
54511
54512         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
54513         <sys/inttypes.h>.
54514
54515 2006-06-17  Bruno Haible  <bruno@clisp.org>
54516
54517         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
54518         whether errno is declared. Assume <errno.h> declares errno.
54519
54520 2006-06-17  Bruno Haible  <bruno@clisp.org>
54521
54522         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
54523
54524 2006-06-17  Bruno Haible  <bruno@clisp.org>
54525
54526         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
54527         problem on Solaris 2.5.1.
54528
54529 2006-06-16  Eric Blake  <ebb9@byu.net>
54530
54531         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
54532         * lib/unicodeio.c [!defined errno]: Likewise.
54533         * lib/strtol.c [!defined errno]: Likewise.
54534         * lib/strtod.c [!defined errno]: Likewise.
54535
54536 2006-06-15  Eric Blake  <ebb9@byu.net>
54537
54538         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
54539
54540 2006-06-15  Eric Blake  <ebb9@byu.net>
54541
54542         * config/srclist.txt (ssize_t.m4): Lose sync.
54543
54544 2006-06-15  Bruno Haible  <bruno@clisp.org>
54545
54546         * modules/stdint (Files): Include m4/full-header-path.m4,
54547         m4/size_max.m4, m4/wchar_t.m4.
54548         (Makefile.am): Many more substitutions.
54549         * modules/stdint-tests: New file.
54550         * tests/test-stdint.c: New file.
54551
54552 2006-06-15  Bruno Haible  <bruno@clisp.org>
54553
54554         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
54555         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
54556         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
54557         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
54558         gl_CHECK_TYPE_SAME): New macros.
54559
54560 2006-06-15  Bruno Haible  <bruno@clisp.org>
54561
54562         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
54563
54564 2006-06-15  Bruno Haible  <bruno@clisp.org>
54565
54566         * lib/stdint_.h: Rewritten to be fully auto-configured.
54567         Fixes bug on HP-UX/IA64.
54568
54569 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
54570
54571         * lib/getdate.y (__attribute__): Don't define if already defined.
54572         Problem reported by Larry Jones.
54573         * lib/utimens.c (__attribute__): Likewise.
54574
54575 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
54576
54577         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
54578         reported by Andreas Schwab.
54579
54580 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54581             Bruno Haible  <bruno@clisp.org>
54582
54583         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
54584         check for the declaration of strnlen and a run test that exposes the
54585         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
54586         rpl_strndup.
54587
54588 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54589             Bruno Haible  <bruno@clisp.org>
54590
54591         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
54592
54593 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54594
54595         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
54596         compile test, for Tru64 4.0D.
54597
54598 2006-05-28  Karl Berry  <karl@gnu.org>
54599
54600         * config/srclist.txt (printf-args.c): lose sync.
54601
54602 2006-05-26  Martin Lambers  <marlam@marlam.de>
54603
54604         * lib/getpass.c: Updates the test for the native W32 API, and adds
54605         missing includes, thus fixing compilation warnings.
54606
54607 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54608
54609         * lib/exclude.c (exclude_fnmatch): New function.
54610         (excluded_file_name): Call exclude_fnmatch.
54611         * lib/exclude.h (excluded_file_name): New prototype
54612
54613 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
54614
54615         * lib/tempname.c (small_open, large_open): New macros.
54616         (__open, __open64) [!_LIBC]: Remove.
54617         (__gen_tempname): Use small_open and large_open instead of __open
54618         and __open64.  This fixes a portability bug on HP-UX 11.11i
54619         reported by Simon Wing-Tang in
54620         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
54621
54622 2006-05-24  Bruno Haible  <bruno@clisp.org>
54623
54624         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
54625         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
54626         Reported by Thorsten Maerz <torte@netztorte.de> via
54627         Aaron Stone <aaron@serendipity.cx>.
54628
54629 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54630
54631         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
54632         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
54633         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
54634         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
54635         not really conditional on the cache.
54636         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
54637
54638 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54639
54640         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
54641         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
54642         (my_usleep): Don't mishandle maximum value.
54643
54644 2006-05-19  Jim Meyering  <jim@meyering.net>
54645
54646         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
54647
54648 2006-05-17  Bruno Haible  <bruno@clisp.org>
54649
54650         Cygwin portability.
54651         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
54652
54653 2006-05-17  Bruno Haible  <bruno@clisp.org>
54654
54655         * lib/stdint_.h: Fix recognition of Cygwin.
54656
54657 2006-05-15  Bruno Haible  <bruno@clisp.org>
54658
54659         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
54660         on libtool patch by Ralf Wildenhues.
54661
54662 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
54663
54664         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
54665         test for C99 conformance; (bool) 0.5 is an integer constant
54666         expression, but (bool) -0.5 is not.  Problem reported by Fedor
54667         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
54668
54669 2006-05-11  Simon Josefsson  <jas@extundo.com>
54670
54671         * m4/xvasprintf.m4: Fix obvious typo.
54672
54673 2006-05-11  Jim Meyering  <jim@meyering.net>
54674
54675         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
54676         James Lemley.
54677
54678 2006-05-10  Simon Josefsson  <jas@extundo.com>
54679
54680         * lib/md4.c: Typo fix, update copyright years.
54681         (K1, K2): Don't use L because it turn computations into 64-bit on
54682         64-bit platforms.
54683
54684 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
54685
54686         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
54687         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
54688         unwanted sign propagation, e.g., on hosts with 64-bit int.
54689         There still are some problems with reeelly weird theoretical hosts
54690         (e.g., 33-bit int) but it's not worth worrying about now.
54691         * lib/sha1.c (rol): Likewise.
54692         (K1, K2, K3, K4): Remove unnecessary L suffix.
54693
54694 2006-05-10  Bruno Haible  <bruno@clisp.org>
54695
54696         * lib/des.c: Cast to avoid warnings.
54697
54698 2006-05-09  Bruno Haible  <bruno@clisp.org>
54699
54700         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
54701         (Depends-on): Depend also on xsize, stdarg.
54702         (configure.ac): Add gl_XVASPRINTF.
54703
54704 2006-05-09  Bruno Haible  <bruno@clisp.org>
54705
54706         * m4/xvasprintf.m4: New file.
54707
54708 2006-05-09  Bruno Haible  <bruno@clisp.org>
54709
54710         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
54711         (EOVERFLOW): Define fallback value.
54712         (xstrcat): New function.
54713         (xvasprintf): Recognize the special case of a string concatenation.
54714
54715 2006-05-08  Eric Blake  <ebb9@byu.net>
54716
54717         * gnulib-tool (func_version): Base copyright year on CVS date.
54718         (func_emit_copyright_notice): New function.
54719         (func_emit_lib_Makefile_am): Use it.
54720         (func_emit_tests_Makefile_am): Likewise.
54721         (func_import): Likewise.
54722
54723 2006-05-08  Bruno Haible  <bruno@clisp.org>
54724
54725         * modules/stdarg: New file.
54726         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
54727
54728 2006-05-08  Bruno Haible  <bruno@clisp.org>
54729
54730         * m4/stdarg.m4: New file, from GNU gettext.
54731
54732 2006-05-08  Bruno Haible  <bruno@clisp.org>
54733
54734         * config/srclist.txt (build-aux/config.rpath): different from latest
54735         release.
54736
54737 2006-05-08  Bruno Haible  <bruno@clisp.org>
54738
54739         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
54740
54741 2006-05-05  Jim Meyering  <jim@meyering.net>
54742
54743         * m4/warning.m4: New file, derived from bison's file by the same name.
54744
54745 2006-05-03  Bruno Haible  <bruno@clisp.org>
54746
54747         * lib/stdint_.h: Shorter URL.
54748         * lib/inttypes.h: Likewise.
54749
54750 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54751
54752         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
54753
54754 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54755
54756         * lib/verify.h: Document the internals better.  Most of this change
54757         was written by Bruno Haible.
54758
54759 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54760
54761         * doc/verify.texi: New file, partly based on a proposal by
54762         Bruno Haible.
54763
54764 2006-05-02  Bruno Haible  <bruno@clisp.org>
54765
54766         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
54767         test from here...
54768         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
54769
54770 2006-04-29  Bruno Haible  <bruno@clisp.org>
54771
54772         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
54773         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
54774
54775 2006-04-29  Bruno Haible  <bruno@clisp.org>
54776
54777         * gnulib-tool: Make --update option actually work.
54778
54779 2006-04-29  Bruno Haible  <bruno@clisp.org>
54780
54781         * doc/gcd.texi: New file.
54782         * doc/gnulib.texi: Include it.
54783
54784 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
54785
54786         * lib/getdate.y (get_date): When adding relative date, start with the
54787         initial time, not with the result of the first mktime call.
54788
54789 2006-04-25  Bruno Haible  <bruno@clisp.org>
54790
54791         * gnulib-tool (func_import): Output the include directives in three
54792         blocks, sorted separately.
54793         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54794
54795 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
54796
54797         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
54798         to define main with arguments, for C++.  Reported by Eric Blake.
54799         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
54800         Prefer 'int main ()' to 'int main (void)', for C++.
54801         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
54802         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
54803         for 'main', for C99 and C++.
54804
54805 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
54806
54807         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
54808         Don't assume that exit status -1 is valid.
54809         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54810         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
54811         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
54812         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
54813         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
54814         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
54815         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
54816         functions can be used without declaring them, or that you can
54817         exit with status -1.
54818         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
54819
54820 2006-04-24  Karl Berry  <karl@gnu.org>
54821
54822         * config/srclist.txt (longdouble.m4): sync lost.
54823
54824 2006-04-24  Eric Blake  <ebb9@byu.net>
54825
54826         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
54827
54828 2006-04-24  Bruno Haible  <bruno@clisp.org>
54829
54830         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
54831         poll() implementation in AIX.
54832         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54833
54834 2006-04-24  Bruno Haible  <bruno@clisp.org>
54835
54836         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
54837         assigned exactly once.
54838
54839 2006-04-23  Claudio Fontana  <claudio@gnu.org>
54840             Bruno Haible  <bruno@clisp.org>
54841
54842         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
54843         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
54844         for AM_CPPFLAGS.
54845
54846 2006-04-23  Bruno Haible  <bruno@clisp.org>
54847
54848         * modules/copy-file: Depend on unistd.
54849         * modules/execute: Likewise.
54850         * modules/fatal-signal: Likewise.
54851         * modules/findprog: Likewise.
54852         * modules/mkdtemp : Likewise.
54853         * modules/pipe: Likewise.
54854         * modules/wait-process: Likewise.
54855
54856 2006-04-23  Bruno Haible  <bruno@clisp.org>
54857
54858         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
54859         condition was already detected.
54860         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54861
54862 2006-04-23  Bruno Haible  <bruno@clisp.org>
54863
54864         * lib/copy-file.c: Include <unistd.h> unconditionally.
54865         * lib/execute.c: Likewise.
54866         * lib/fatal-signal.c: Likewise.
54867         * lib/findprog.c: Likewise.
54868         * lib/mkdtemp.c: Likewise.
54869         * lib/pipe.h: Likewise.
54870         * lib/pipe.c: Likewise.
54871         * lib/wait-process.h: Likewise.
54872
54873 2006-04-23  Bruno Haible  <bruno@clisp.org>
54874
54875         * gnulib-tool (func_usage): Fix --import description. Document
54876         --update.
54877         (func_import): Create temporary file in a temporary directory, if
54878         --dry-run is specified. Silence errors from 'grep' when there are no
54879         m4 files in $m4dir.
54880         (func_create_testdir): Silence errors from 'grep' when there are no
54881         m4 files in $m4dir.
54882         Reported by Karl Berry <karl@freefriends.org>.
54883
54884 2006-04-20  Bruno Haible  <bruno@clisp.org>
54885
54886         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
54887         one argument, so that the code will be portable to Autoconf 2.60.
54888         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
54889         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
54890         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
54891
54892 2006-04-19  Derek Price  <derek@ximbiot.com>
54893             Eric Blake  <ebb9@byu.net>
54894
54895         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
54896         rather than "/full/path.h".  Update comment to match.  Shorten &
54897         generalize m4_translit call via AS_TR_CPP.
54898
54899 2006-04-19  Derek Price  <derek@ximbiot.com>
54900             Eric Blake  <ebb9@byu.net>
54901
54902         * lib/inttypes.h: Correct grammar in comment.
54903
54904 2006-04-18  Derek Price  <derek@ximbiot.com>
54905             Paul Eggert  <eggert@cs.ucla.edu>
54906
54907         * modules/inttypes: New file.
54908         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
54909
54910 2006-04-18  Derek Price  <derek@ximbiot.com>
54911             Paul Eggert  <eggert@cs.ucla.edu>
54912
54913         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
54914         New files.
54915
54916 2006-04-18  Derek Price  <derek@ximbiot.com>
54917             Paul Eggert  <eggert@cs.ucla.edu>
54918
54919         * lib/inttypes.h: New file.
54920         * lib/strtoimax.c: Assume <inttypes.h>.
54921
54922 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
54923
54924         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
54925         isn't mounted.  Problem reported by Kir Kolyshkin.
54926
54927 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54928
54929         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
54930         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
54931         Derek R. Price.
54932         * lib/regex.h (RE_DUP_MAX): Update comment to match current
54933         implementation.
54934
54935 2006-04-12  Eric Blake  <ebb9@byu.net>
54936
54937         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
54938         is now done automatically by the corresponding Autoconf macro.
54939
54940 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
54941
54942         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
54943         time_r.h.
54944
54945 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54946
54947         Merge regex changes from libc, removing some of our
54948         POSIX-conformance changes that were rejected and redoing them in a
54949         less-intrusive way.
54950
54951         * lib/regcomp.c (re_compile_internal, init_dfa):
54952         Length arg is now size_t, not Idx.  All uses changed.
54953         (peek_token): Forward decl now says internal_function.
54954         (__re_error_msgid, __re_error_msgid_idx):
54955         Now static rather than extern with attribute_hidden.
54956         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
54957         For some reason libc prefers K&R style defns for external functions.
54958         (regerror) [!defined _LIBC]: Likewise.
54959         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
54960         (seek_collating_symbol_entry, lookup_collation_sequence_value):
54961         (build_range_exp, build_collating_symbol):
54962         Use K&R-style defn.
54963         (re_compile_fastmap): Use '\0' to memset, not 0.
54964         (utf8_sb_map): Make the calculations more obvious.
54965         (init_dfa, parse_bracket_exp, build_charclass_op):
54966         Call calloc and cast result, as glibc does.
54967         (init_word_char, fetch_token, peek_token, peek_token_bracket):
54968         (build_range_exp, build_collating_symbol):
54969         Now internal functions.
54970
54971         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
54972
54973         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
54974         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
54975         Don't depend on VMS; depend on __VMS instead, for POSIX
54976         namespace cleanness.
54977         (regoff_t): Define to ssize_t, not long int.
54978
54979         Remove the REG_ macros named below.  Instead, make the old names
54980         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
54981         __USE_GNU_REGEX.
54982         (REG_BACKSLASH_ESCAPE_IN_LISTS):
54983         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
54984         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
54985         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
54986         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
54987         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
54988         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
54989         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
54990         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
54991         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
54992         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
54993         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
54994         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
54995         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
54996         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
54997         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
54998         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
54999         (REG_NREGS):
55000         Remove.  All uses replaced by the old RE_* names.
55001         (RE_BACKSLASH_ESCAPE_IN_LISTS):
55002         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
55003         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
55004         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
55005         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
55006         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
55007         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
55008         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
55009         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
55010         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
55011         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
55012         Don't bother having these macros be independent of each others'
55013         values, since they no longer exist in the POSIX name space.
55014
55015         Rename the following member names back to their old names,
55016         unless !__USE_GNU_REGEX.  All uses changed back.
55017         (buffer): Renamed from re_buffer.
55018         (allocated): Renamed from re_allocated.
55019         (used): Renamed from re_used.
55020         (syntax): Renamed from re_syntax.
55021         (fastmap): Renamed from re_fastmap.
55022         (translate): Renamed from re_translate.
55023         (can_be_null): Renamed from re_can_be_null.
55024         (regs_allocated): Renamed from re_regs_allocated.
55025         (fastmap_accurate): Renamed from re_fastmap_accurate.
55026         (no_sub): Renamed from re_no_sub.
55027         (not_bol): Renamed from re_not_bol.
55028         (not_eol): Renamed from re_not_eol.
55029         (newline_anchor): Renamed from re_newline_anchor.
55030         (num_regs): Renamed from rm_num_regs.
55031         (start): Renamed from rm_start.
55032         (end): Renamed from rm_end.
55033
55034         (free_state): Move up a bit.
55035
55036         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
55037         #define to be empty.
55038         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
55039         when that is what is intended.
55040         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
55041         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
55042         (MAX): New macro.
55043         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
55044         All uses changed back to re_malloc, etc.  It's now the caller's
55045         responsibility to check for overflow; all callers changed.
55046         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
55047         (re_x2nrealloc): Remove.
55048         (free_state): Remove decl.
55049
55050         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
55051         (re_set_registers, re_exec):
55052         Use K&R-style defn.
55053
55054         2006-01-31  Roland McGrath  <roland@redhat.com>
55055
55056         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
55057         Reported by Mike Frysinger <vapier@gentoo.org>.
55058
55059         2006-01-15  Andreas Jaeger  <aj@suse.de>
55060
55061         [BZ #1950]
55062         * lib/regex_internal.c (re_string_reconstruct): Adjust for
55063         build_wcs_upper_buffer change.
55064         (build_wcs_upper_buffer): Change return type.
55065
55066         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
55067
55068         * lib/regex_internal.h: Include <stdint.h> if available.
55069
55070         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
55071
55072         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
55073
55074         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55075
55076         * lib/regcomp.c: Adjust for changed secondary hash function.
55077
55078         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
55079
55080         * lib/regex.h: Pretty printing.
55081         Clean up namespace a bit.
55082
55083         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
55084
55085         * lib/regexec.c (update_cur_sifted_state, check_arrival,
55086         check_arrival_add_next_nodes): Avoid using uninitialized variable.
55087
55088         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55089                     Ulrich Drepper  <drepper@redhat.com>
55090
55091         [BZ #1302]
55092         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
55093         changed.
55094         (bitset_word_t): Renamed from bitset_word.  All uses changed.
55095
55096         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
55097
55098         [BZ #281]
55099         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
55100         * lib/regcomp.c: Remove unnecessary uses of
55101         unsigned RE_TRANSLATE_TYPE.
55102         * lib/regex_internal.h: Likewise.
55103         * lib/regex_internal.c: Likewise.
55104         * lib/regexec.c: Likewise.
55105         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
55106
55107         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
55108
55109         * lib/regexec.c (find_recover_state): Remove unnecessary
55110         initialization.
55111         (transit_state_bkref): Make DFA a const pointer.
55112         (get_subexp): Likewise.
55113         (check_arrival): Likewise.
55114         (update_cur_sifted_state): Likewise.
55115         (re_search_internal): Likewise.
55116         (prune_impossible_nodes): Likewise.
55117         (acquire_init_state_context): Likewise.
55118         (proceed_next_node): Likewise.
55119         (set_regs): Likewise.
55120         (free_fail_stack_return): Likewise.
55121         (check_arrival_expand_ecl): Mark DFA parameter as const.
55122         (check_arrival_expand_ecl_sub): Likewise.
55123         (check_subexp_limits): Likewise.
55124         (sub_epsilon_src_nodes):  Likewise.
55125         (add_epsilon_src_nodes):  Likewise.
55126         (merge_state_array): Likewise.
55127         (update_regs): Likewise.
55128         (build_trtable): Likewise.
55129         (sift_states_backward): Mark MCTX parameter as const.
55130         (build_sifted_states): Likewise.
55131         (update_cur_sifted_state): Likewise.
55132         (sift_states_mkref): Likewise.
55133         (check_arrival_expand_ecl): Mark eclosure as const.
55134         (check_dst_limits_calc_pos_1): Likewise.
55135         * lib/regex_internal.h (re_match_context_t): Make dfa a const
55136         pointer.
55137
55138         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
55139
55140         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
55141         (transit_state_sb): Likewise.
55142         (transit_state_mb): Likewise.
55143         (sift_states_iter_mb): Likewise.
55144         (check_arrival_add_next_nodes): Likewise.
55145         (check_node_accept_bytes): Change first parameter to pointer-to-const.
55146         [_LIBC] (re_search_2_stub): Use mempcpy.
55147
55148         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
55149         mbrtowc for very simple UTF-8 case.
55150
55151         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
55152         a pointer-to-const.
55153         (re_acquire_state_context): Likewise.
55154         * lib/regex_internal.h: Adjust prototypes.
55155
55156         * lib/regex.c: Prevent using C++ compilers.
55157
55158         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
55159         (re_acquire_state_context): Likewise.
55160
55161 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55162
55163         * modules/regex (Depends-on): Add ssize_t.
55164
55165 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55166
55167         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
55168         translation table.
55169
55170 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55171
55172         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
55173
55174 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
55175             Bruno Haible  <bruno@clisp.org>
55176
55177         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
55178         <sys/types.h> and <inttypes.h>.
55179
55180 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55181
55182         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
55183         `__error_t_defined', so argp.h will not typedef the former.
55184
55185 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
55186
55187         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
55188         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
55189         glibc names.  Even if glibc is changed to conform to POSIX, the
55190         traditional names will be available anyway, since regex depends on
55191         the extensions module.  Also, fix a longstanding typo in the
55192         implementation of Spencer ERE test #75 from grep 2.3.  Problems
55193         reported by Emanuele Giaquinta.  Also, change sense of cached
55194         variable, so that the message makes sense.
55195
55196 2006-03-24  Simon Josefsson  <jas@extundo.com>
55197
55198         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
55199         including some doc fixes.
55200         (base64_encode_alloc): Fix +1 bug on allocation failures.
55201
55202 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55203
55204         * lib/base64.c (base64_encode): Do not read past end of array with
55205         unsanitized input on systems with CHAR_BIT > 8.
55206
55207 2006-03-24  Eric Blake  <ebb9@byu.net>
55208
55209         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
55210
55211 2006-03-22  Karl Berry  <karl@gnu.org>
55212
55213         * config/srclist.txt (*setenv.[ch]): get from coreutils.
55214         * config/srclistvars.sh (COREUTILS): new var.
55215
55216 2006-03-17  Jim Meyering  <jim@meyering.net>
55217
55218         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
55219         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
55220
55221 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
55222
55223         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
55224         no longer needs it.  Instead, check that regoff_t is as least
55225         as wide as ptrdiff_t.
55226
55227         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
55228         so that our regex.h stays compatible with the installed regex.
55229         This is helpful for installers who configure --without-included-regex.
55230         Problem reported by Emanuele Giaquinta.
55231
55232 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
55233
55234         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
55235         Typedef to long int, not to off_, as POSIX will likely change
55236         in that direction.
55237
55238 2006-03-15  Eric Blake  <ebb9@byu.net>
55239
55240         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
55241
55242 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
55243
55244         * lib/argp-help.c (validate_uparams): Fix typo
55245         * lib/argp-parse.c (argp_default_options): Consistently begin help
55246         messages with a lowercase letter.
55247
55248 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
55249
55250         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
55251         overrun buffers and shouldn't be used (much as gets shouldn't be
55252         used).
55253         * lib/time_r.c (asctime_r, ctime_r): Likewise.
55254
55255 2006-03-08  Simon Josefsson  <jas@extundo.com>
55256
55257         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
55258         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55259
55260 2006-03-08  Simon Josefsson  <jas@extundo.com>
55261
55262         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
55263         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55264
55265 2006-03-08  Simon Josefsson  <jas@extundo.com>
55266
55267         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
55268         signal that configure disabled the device.
55269
55270 2006-03-08  Simon Josefsson  <jas@extundo.com>
55271
55272         * build-aux/maint.mk: Fix refresh-po, to handle no translated
55273         languages.
55274
55275 2006-03-07  Simon Josefsson  <jas@extundo.com>
55276
55277         * modules/getopt (Depends-on): Add unistd.
55278
55279         * modules/unistd: New file.
55280
55281 2006-03-07  Simon Josefsson  <jas@extundo.com>
55282
55283         * modules/gc-random: New file.
55284
55285 2006-03-07  Simon Josefsson  <jas@extundo.com>
55286
55287         * m4/unistd_h.m4: New file.
55288
55289 2006-03-07  Simon Josefsson  <jas@extundo.com>
55290
55291         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
55292         test to be side-effect free by storing the result in the cache
55293         variable gl_cv_lib_readline, and moving the assignment of
55294         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
55295         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55296
55297 2006-03-07  Simon Josefsson  <jas@extundo.com>
55298
55299         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
55300         error on missing devices (the functions will return an error).
55301
55302         * m4/gc.m4: Move random stuff to gc-random.m4
55303
55304 2006-03-07  Simon Josefsson  <jas@extundo.com>
55305
55306         * lib/unistd_.h: New file.
55307
55308 2006-03-07  Simon Josefsson  <jas@extundo.com>
55309
55310         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
55311
55312 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55313
55314         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
55315         Problem reported by Juan Manuel Guerrero.
55316
55317 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55318
55319         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
55320         the unistd module.
55321         * lib/getlogin_r.c: Likewise.
55322         * lib/getlogin_r.h: Likewise.
55323         * lib/glob.c: Likewise.
55324         * lib/pagealign_alloc.c: Likewise.
55325         * lib/unistd_.h: Remove; no longer needed.
55326
55327 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55328
55329         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55330         Add unistd.
55331         * modules/c-stack (Depends-on): Add unistd.
55332         * modules/getlogin_r: Likewise.
55333         * modules/glob: Likewise.
55334         * modules/pagealign_alloc: Likewise.
55335         * modules/unistd (Files): Remove lib/unistd_.h.
55336         (EXTRA_DIST): Remove.
55337         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
55338         need unistd_.h.
55339         (MOSTLYCLEANFILES): Remove unistd.h-t.
55340
55341 2006-03-03  Simon Josefsson  <jas@extundo.com>
55342
55343         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
55344
55345 2006-03-03  Simon Josefsson  <jas@extundo.com>
55346
55347         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
55348         libidn and bison.
55349
55350 2006-03-03  Simon Josefsson  <jas@extundo.com>
55351
55352         * build-aux/maint.mk: Add indent target.
55353
55354 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
55355
55356         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
55357         our replacement poll.h in any case, to avoid a differing
55358         declaration from a system header.  Seen on AIX.
55359
55360 2006-03-01  Simon Josefsson  <jas@extundo.com>
55361
55362         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
55363         <kasal@ucw.cz>.
55364
55365 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55366
55367         * modules/gettime (Depends-on): Add extensions module.
55368         * modules/nanosleep (Depends-on): Likewise.
55369         * modules/settime (Depends-on): Likewise.
55370
55371 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55372
55373         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
55374         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
55375         pedantically.
55376         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55377         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
55378
55379         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
55380         not "==".  Reported by Ralf Wildenhues.
55381
55382 2006-03-01  Karl Berry  <karl@gnu.org>
55383
55384         * doc/Copyright/request-*: new files, synced from gnuorg.
55385
55386 2006-03-01  Karl Berry  <karl@gnu.org>
55387
55388         * config/srclist.txt (Copyright/*): new entries.
55389
55390 2006-02-28  Simon Josefsson  <jas@extundo.com>
55391
55392         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
55393
55394 2006-02-27  Simon Josefsson  <jas@extundo.com>
55395
55396         * lib/base64.h: Indent #define's.  From Jim Meyering
55397         <jim@meyering.net>.
55398
55399 2006-02-27  Jim Meyering  <jim@meyering.net>
55400
55401         Revert the change of 2006-02-24, so these files can continue
55402         to be sync'd from gettext.
55403         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
55404         of `config.h'.
55405
55406 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
55407
55408         * modules/intprops: New file.
55409         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55410         Add intprops.
55411         * modules/getloadavg (Files): Remove lib/intprops.h.
55412         (Depends-on): Add intprops.
55413         * modules/human: Likewise.
55414         * modules/inttostr: Likewise.
55415         * modules/openat: Likewise.
55416         * modules/sig2str: Likewise.
55417         * modules/userspec: Likewise.
55418         * modules/utimecmp: Likewise.
55419         * modules/xnanosleep: Likewise.
55420         * modules/xstrtol: Likewise.
55421
55422 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
55423
55424         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
55425         * modules/lock-tests (TESTS): Use $(EXEEXT).
55426         * modules/tls-tests: Likewise.
55427         * modules/argp-tests: Likewise.
55428         (check_PROGRAMS): New var, replacing...
55429         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
55430
55431 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55432
55433         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
55434         `config.h'.
55435
55436 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55437
55438         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
55439
55440 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55441
55442         Sync from coreutils.
55443         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
55444         gl_CHDIR_SAFER.
55445
55446 2006-02-22  Jim Meyering  <jim@meyering.net>
55447
55448         Sync from coreutils.
55449         * m4/chdir-safer.m4: New file.
55450
55451 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55452
55453         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
55454         AT_FDCWD exceeds INT_MAX.
55455         * lib/openat.h (AT_FDCWD): Likewise.
55456
55457 2006-02-17  Eric Blake  <address@hidden>
55458
55459         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
55460
55461 2006-02-16  Simon Josefsson  <jas@extundo.com>
55462
55463         * modules/getaddrinfo (Depends-on): Add sys_socket.
55464
55465 2006-02-15  Simon Josefsson  <jas@extundo.com>
55466
55467         * build-aux/maint.mk: Add dsyntax-check rule.
55468
55469 2006-02-15  Eric Blake  <ebb9@byu.net>
55470
55471         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
55472         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
55473         'present but cannot compile' warnings on cygwin.
55474         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
55475         use ws2tcpip.h if sys/socket.h works.
55476         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
55477         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
55478
55479 2006-02-14  Simon Josefsson  <jas@extundo.com>
55480
55481         * modules/maintainer-makefile (Files): Rename.
55482
55483         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
55484         and (the local) Makefile.cfg to maint-cfg.mk.
55485
55486         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
55487         to the latter.
55488
55489         * modules/maintainer-makefile: New module.
55490
55491         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
55492         severaly stripped to make it possible to build it up from scratch
55493         with reliable tests.
55494
55495         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
55496         fixes to permit overriding the default actions when configure and
55497         makefile are not available.
55498
55499 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55500
55501         Sync from coreutils.
55502         * modules/lstat (Depends-on): Don't depend on xalloc.
55503         (License): Change from GPL to LGPL, since this is now simply a
55504         replacement for a libc function.
55505
55506 2006-02-14  Jim Meyering  <jim@meyering.net>
55507
55508         Sync from coreutils.
55509
55510         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
55511         failure on deficient systems, and simplify gnulib lgpl dependencies.
55512         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
55513         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
55514
55515         * lib/xalloc-die.c: Remove unused definition of N_.
55516
55517 2006-02-14  Jim Meyering  <jim@meyering.net>
55518
55519         Sync from coreutils.
55520         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
55521         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
55522         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
55523         double-quote uses of that variable, to accommodate the rare case in
55524         which getmntent is available in none of the libraries checked.  This
55525         happens at least on FreeBSD 5.0.
55526
55527 2006-02-13  Simon Josefsson  <jas@extundo.com>
55528
55529         * gnulib-tool (Usage): Fix --import, from
55530         karl@freefriends.org (Karl Berry).
55531
55532 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
55533
55534         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
55535
55536 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
55537
55538         * lib/argp-namefrob.h: Restore changes accidentally lost during the
55539         "autoupdate" on 2005-12-12.
55540
55541 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
55542
55543         * modules/closeout (Depends-on): Remove atexit.
55544
55545 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
55546
55547         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
55548         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
55549
55550 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
55551
55552         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
55553         __EXTENSIONS__ if this causes compilation to fail.  Problem
55554         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
55555         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
55556
55557 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
55558
55559         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
55560         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
55561         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
55562         All uses changed.
55563
55564 2006-01-26  Simon Josefsson  <jas@extundo.com>
55565
55566         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
55567         prototype is visible on mingw32.
55568
55569         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
55570         for mingw32.
55571
55572         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
55573         mingw32).
55574
55575 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55576
55577         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
55578         attempt to open for write; this always fails, at least on POSIX
55579         hosts.  This reinstates the 2006-01-09 change, which was
55580         inadvertently removed.
55581
55582 2006-01-26  Bruno Haible  <bruno@clisp.org>
55583
55584         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
55585         Reported by Paul Eggert.
55586
55587 2006-01-26  Bruno Haible  <bruno@clisp.org>
55588             Paul Eggert  <eggert@cs.ucla.edu>
55589
55590         * lib/stdbool_.h (_Bool)
55591         [(! (defined __cplusplus || defined __BEOS__)
55592           && !defined __GNUC__
55593           && !(defined __HP_cc || defined __xlc__
55594                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
55595                || defined __sgi))]:
55596         #define to signed char in these cases too; this simplifies
55597         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
55598         etc., separately) and makes it more conservative.
55599
55600 2006-01-25  Simon Josefsson  <jas@extundo.com>
55601
55602         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
55603         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
55604         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
55605
55606 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
55607
55608         * lib/argp-namefrob.h: Bugfix. Remove stray #
55609
55610 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
55611
55612         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
55613         so that we test the test.
55614         Check for yet another HP-UX cc bug involving *bool |= bool.
55615
55616 2006-01-25  Karl Berry  <karl@gnu.org>
55617
55618         * config/srclist.txt (vasnprintf.c): sync lost.
55619
55620 2006-01-25  Jim Meyering  <jim@meyering.net>
55621
55622         Sync from the stable (b5) branch of coreutils:
55623
55624         * lib/fts.c (fts_children): Don't let close() clobber errno from
55625         failed fchdir().
55626
55627         * lib/fts.c (fts_stat): When following a symlink-to-directory,
55628         don't necessarily interpret stat-fails+lstat-succeeds as indicating
55629         a dangling symlink.  That can also happen at least for ELOOP.
55630         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
55631         FYI, this bug predates the inclusion of fts.c in coreutils.
55632
55633         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
55634         in their own block, so pre-c99 compilers don't object.
55635
55636         Avoid the double-free (first in fts_read, second in fts_close) that
55637         would occur when an `active' directory is made inaccessible (e.g.,
55638         via chmod a-x) during a traversal.
55639         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
55640         before returning.  Reproduce this failure by
55641         mkdir -p a/b; cd a; chmod a-x . b
55642         Reported by Stavros Passas.
55643
55644 2006-01-25  Jim Meyering  <jim@meyering.net>
55645
55646         * lib/fileblocks.c: Remove more useless parentheses.
55647         * lib/readutmp.h: Likewise.
55648
55649 2006-01-25  Bruno Haible  <bruno@clisp.org>
55650
55651         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
55652         warnings.
55653         Reported by Paul Eggert.
55654
55655 2006-01-25  Bruno Haible  <bruno@clisp.org>
55656
55657         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
55658         rid of a trap command. For Solaris sh.
55659         Reported by Mark D. Baushke <mdb@gnu.org>.
55660
55661 2006-01-24  Simon Josefsson  <jas@extundo.com>
55662
55663         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
55664         Bruno.
55665
55666 2006-01-24  Karl Berry  <karl@gnu.org>
55667
55668         * config/srclist.txt (argp-namefrob.h): sync lost.
55669
55670 2006-01-24  Jim Meyering  <jim@meyering.net>
55671
55672         * modules/openat (Files): Add lib/intprops.h.
55673         From Mark D. Baushke.
55674
55675 2006-01-24  Jim Meyering  <jim@meyering.net>
55676
55677         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
55678         Reported by Mark D. Baushke.
55679
55680 2006-01-24  Jim Meyering  <jim@meyering.net>
55681
55682         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
55683
55684 2006-01-24  Bruno Haible  <bruno@clisp.org>
55685
55686         * modules/strnlen (Maintainer): Change from glibc to all.
55687
55688 2006-01-24  Bruno Haible  <bruno@clisp.org>
55689
55690         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
55691         Patch by Paul Eggert.
55692
55693 2006-01-24  Bruno Haible  <bruno@clisp.org>
55694
55695         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
55696         already has it.
55697         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
55698         2005-11-26.
55699
55700         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
55701         'signed char' to avoid problems with the built-in _Bool type.
55702         Reported by Paul Eggert on 2005-11-26.
55703
55704 2006-01-24  Bruno Haible  <bruno@clisp.org>
55705
55706         * gnulib-tool (func_import): Avoid constructing complicated sed
55707         expressions inside backquote.
55708         Report and solution by Mark D. Baushke <mdb@gnu.org>.
55709
55710 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
55711
55712         These changes imported from libc.
55713         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
55714         test and two separate function calls.
55715         * lib/strndup.c (__strndup): Add libc_hidden_def.
55716
55717 2006-01-23  Simon Josefsson  <jas@extundo.com>
55718
55719         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
55720         Remove the test_*_SOURCES variable: automake infers it by default.
55721         * modules/tls-tests: Likewise.
55722
55723 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55724
55725         Work around porting bugs reported by Dieter in
55726         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
55727         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
55728         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
55729         Include "getopt.h" first, to check interface.
55730         (getenv): Declare only if defined HAVE_DECL_GETENV &&
55731         !HAVE_DECL_GETENV.
55732         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
55733         (__strndup): Revert to K&R-style function dfns, the glibc style.
55734         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
55735         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
55736         Include strnlen.h first, to get prototype properly.
55737         (strnlen): Renamed from __strnlen.
55738         Remove weak alias.
55739
55740 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55741
55742         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
55743
55744 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55745
55746         * config/srclist.txt: Adjust to reflect glibc reorganization.
55747         This affects only comments.
55748
55749 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55750
55751          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
55752          Reported by Bruce Korb <bkorb@gnu.org>.
55753
55754 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55755
55756         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
55757         to pacify gcc -Wswitch-default.
55758
55759 2006-01-22  Bruno Haible  <bruno@clisp.org>
55760
55761         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
55762         temporary buffer for sprintf, take into account the precision also
55763         for 'd', 'i', 'u', 'o', 'x', 'X'.
55764
55765 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
55766
55767         * modules/argp-tests: New module
55768         * tests/test-argp.c: New file
55769         * tests/test-argp-2.sh: New file
55770
55771 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
55772
55773         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
55774         (__argp_base_name): Removed
55775         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
55776         typo.
55777         (__argp_base_name): Provide macro definition or extern declaration
55778         depending on the configuration
55779
55780 2006-01-20  Simon Josefsson  <jas@extundo.com>
55781
55782         * modules/inet_ntop (Depends-on): Depend on sys_socket.
55783
55784 2006-01-20  Simon Josefsson  <jas@extundo.com>
55785
55786         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
55787
55788 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
55789
55790         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
55791         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
55792         Suggested by Bruno Haible.
55793
55794 2006-01-20  Karl Berry  <karl@gnu.org>
55795
55796         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
55797         until changes propagate, I guess.
55798
55799 2006-01-19  Simon Josefsson  <jas@extundo.com>
55800
55801         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
55802
55803 2006-01-19  Simon Josefsson  <jas@extundo.com>
55804
55805         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
55806
55807 2006-01-19  Simon Josefsson  <jas@extundo.com>
55808
55809         * gnulib-tool: Set check_PROGRAMS.
55810
55811         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
55812         modules/des-tests, modules/gc-arcfour-tests,
55813         modules/gc-arctwo-tests, modules/gc-des-tests,
55814         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
55815         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
55816         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
55817         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
55818         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
55819         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
55820         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
55821         test_*_SOURCES.
55822
55823 2006-01-18  Simon Josefsson  <jas@extundo.com>
55824
55825         * modules/socklen (Depends-on): Depend on sys_socket.
55826
55827 2006-01-18  Simon Josefsson  <jas@extundo.com>
55828
55829         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
55830         modules/des-tests, modules/gc-arcfour-tests,
55831         modules/gc-arctwo-tests, modules/gc-des-tests,
55832         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
55833         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
55834         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
55835         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
55836         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
55837         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
55838         $(EXEEXT) to automake TESTS variable, for mingw32.
55839
55840 2006-01-17  Simon Josefsson  <jas@extundo.com>
55841
55842         * modules/socklen (Include): Need sys/socket.h.
55843
55844 2006-01-17  Bruno Haible  <bruno@clisp.org>
55845
55846         * modules/ssize_t (Include): Add <sys/types.h>.
55847
55848 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
55849
55850         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
55851         it's not portable and it doesn't work with cross-compiles.
55852         Problem reported by Bruno Haible.  Fix missing-$ typo in
55853         'test "gl_cv_ignore_unused_libraries" ...' that prevented
55854         -zignore from being used with Sun's C compiler.
55855
55856 2006-01-12  Simon Josefsson  <jas@extundo.com>
55857
55858         * lib/base64.c: Fix warning, reported by Bruno Haible
55859         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
55860
55861 2006-01-12  Bruno Haible  <bruno@clisp.org>
55862
55863         * modules/ldd: New file.
55864         * build-aux/ldd.sh.in: New file.
55865         * MODULES.html.sh (Support for building libraries and executables): Add
55866         ldd.
55867
55868 2006-01-12  Bruno Haible  <bruno@clisp.org>
55869
55870         * m4/ldd.m4: New file.
55871
55872 2006-01-12  Bruno Haible  <bruno@clisp.org>
55873
55874         * gnulib-tool (func_import, func_create_testdir): Don't go into an
55875         endless loop while replacing $auxdir with build-aux.
55876
55877 2006-01-11  Simon Josefsson  <jas@extundo.com>
55878
55879         * lib/stdint_.h (SIZE_MAX): Add missing (.
55880
55881 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
55882
55883         Sync from coreutils.
55884         * lib/md5.c: Fix commentary typos.
55885         (alignof, UNALIGNED_P): No need for a GCC-specific version.
55886         * lib/md5.h (__attribute__): Remove; unused.
55887         * lib/sha1.c: Fix commentary to match md5 better.
55888         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
55889         so that we don't need to worry about alignment.  All uses changed.
55890         This merges the 2005-10-28 md5 change into sha1.
55891
55892 2006-01-11  Jim Meyering  <jim@meyering.net>
55893
55894         Sync from coreutils.
55895         * lib/md5.c (OP): Fix spacing.
55896
55897 2006-01-11  Bruno Haible  <bruno@clisp.org>
55898
55899         Ensure automatic ordering between gl_LOCK and gl_ARGP.
55900         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
55901         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
55902
55903 2006-01-11  Bruno Haible  <bruno@clisp.org>
55904
55905         Ensure automatic ordering between gl_LOCK and gl_ARGP.
55906         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
55907         the "early" section as well.
55908
55909 2006-01-11  Bruno Haible  <bruno@clisp.org>
55910
55911         Avoid "ar: no archive members specified" error on MacOS X.
55912         * gnulib-tool (func_modules_add_dummy): New function.
55913         (func_import, func_create_testdir): Invoke it.
55914
55915 2006-01-11  Bruno Haible  <bruno@clisp.org>
55916
55917         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
55918         with $auxdir in AC_CONFIG_FILES statements.
55919
55920 2006-01-11  Bruno Haible  <bruno@clisp.org>
55921
55922         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55923         Initialize also noinst_HEADERS to empty.
55924
55925 2006-01-11  Bruno Haible  <bruno@clisp.org>
55926
55927         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
55928         variables.
55929         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
55930         autoreconf.
55931
55932 2006-01-11  Bruno Haible  <bruno@clisp.org>
55933
55934         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
55935         overridable by the user.
55936         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55937
55938 2006-01-10  Simon Josefsson  <jas@extundo.com>
55939
55940         * modules/sys_socket: New file.
55941
55942 2006-01-10  Simon Josefsson  <jas@extundo.com>
55943
55944         * m4/sys_socket_h.m4: New file.
55945
55946 2006-01-10  Simon Josefsson  <jas@extundo.com>
55947
55948         * lib/socket_.h: New file.
55949
55950 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55951
55952         * modules/readutmp (Maintainer): Add myself.
55953
55954 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55955
55956         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
55957         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
55958         People who are still concerned with buggy memcmp implementations
55959         can invoke gl_FUNC_MEMCMP themselves.
55960
55961 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55962
55963         * lib/regex_internal.h (BITSET_WORD_BITS):
55964         Work around a bug in 64-bit PGC (before version 6.1-2), where the
55965         preprocessor mishandles large unsigned values as if they were signed.
55966         Problem reported by Claudio Fontana in
55967         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
55968
55969 2006-01-10  Jim Meyering  <jim@meyering.net>
55970
55971         Avoid the double-free (first in fts_read, second in fts_close) that
55972         would occur when an `active' directory is made inaccessible (e.g.,
55973         via chmod a-x) during a traversal.
55974         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
55975         before returning.  Reproduce this failure by
55976         mkdir -p a/b; cd a; chmod a-x . b
55977         Reported by Stavros Passas.
55978
55979         Sync from coreutils.
55980         * lib/sha1.c: Tweak grammar in a comment.
55981
55982 2006-01-10  Jim Meyering  <jim@meyering.net>
55983
55984         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
55985         Patch by Joerg Sonnenberger.
55986
55987 2006-01-10  Bruno Haible  <bruno@clisp.org>
55988
55989         * modules/readutmp: Depend on module free.
55990         * modules/strtok_r: Depend on module restrict.
55991
55992 2006-01-10  Bruno Haible  <bruno@clisp.org>
55993
55994         * modules/gettext (configure.ac): Add an invocation of
55995         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
55996
55997 2006-01-10  Bruno Haible  <bruno@clisp.org>
55998
55999         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
56000         Reported by Werner Lemberg <wl@gnu.org>.
56001
56002 2006-01-10  Bruno Haible  <bruno@clisp.org>
56003
56004         * lib/localcharset.c: Update from GNU gettext.
56005
56006 2006-01-10  Bruno Haible  <bruno@clisp.org>
56007
56008         * lib/argp.h (__const): Remove macro. Use const instead.
56009         * lib/argp-fmtstream.h (__const): Likewise.
56010         * lib/glob_.h (__const): Remove macro.
56011         * lib/glob-libc.h: Use const instead of __const.
56012
56013 2006-01-10  Bruno Haible  <bruno@clisp.org>
56014
56015         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
56016         variable.
56017         Needed to avoid an automake error regarding the 'gettext' module.
56018
56019 2006-01-09  Simon Josefsson  <jas@extundo.com>
56020
56021         * modules/inet_ntop (Depends-on): Add restrict.
56022
56023 2006-01-09  Simon Josefsson  <jas@extundo.com>
56024
56025         * modules/gc-rijndael-tests (License): Put under LGPL.
56026
56027         * modules/gc-des-tests (License): Likewise.
56028
56029         * modules/gc-arcfour-tests (License): Likewise.
56030
56031         * modules/gc-arctwo-tests (License): Likewise.
56032
56033         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
56034
56035         * modules/gc-hmac-sha1-tests (Files): Likewise.
56036
56037         * modules/gc-hmac-md5-tests (License): Likewise.
56038
56039         * modules/gc-sha1-tests (License): Likewise.
56040
56041         * modules/gc-md5-tests (License): Likewise.
56042
56043         * modules/gc-md4-tests (License): Likewise.
56044
56045         * modules/gc-md2-tests (License): Likewise.
56046
56047         * modules/gc-tests (License): Likewise.
56048
56049         * modules/des-tests (License): Likewise.
56050
56051         * modules/md4-tests (License): Likewise.
56052
56053         * modules/md2-tests (License): Likewise.
56054
56055 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56056
56057         Sync from coreutils:
56058
56059         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
56060         * modules/lib-ignore: New file.
56061         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
56062         chdir-safer.m4, lchmod.m4.
56063         * modules/openat: Add mkdirat.c, openat-priv.h.
56064
56065 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56066
56067         Sync from coreutils.
56068         * m4/lib-ignore.m4: New file.
56069         * m4/lchmod.m4: New file.
56070
56071 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56072
56073         Sync from coreutils.
56074         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
56075         for write access: POSIX says that must fail.
56076         * lib/fts.c (diropen): Likewise.
56077         * lib/save-cwd.c (save_cwd): Likewise.
56078         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
56079         well, for minor improvements on hosts that lack O_DIRECTORY.
56080         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
56081         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
56082         Fall back on chown if open failed with EACCES.
56083
56084         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
56085         Report an error at compile-time if only a 1-second nominal clock
56086         resolution is found.
56087
56088         * lib/lchmod.h: New file.
56089         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
56090         (make_dir_parents): Use lchown rather than chown, and
56091         lchmod rather than chmod.
56092
56093         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
56094         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
56095         "proc" reported by n0dalus.
56096
56097         * lib/mountlist.c: Include <limits.h>.
56098         (dev_from_mount_options)
56099         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
56100         New function.  It no longer assumes "dev=" has the System V meaning
56101         on Linux (since it doesn't).  It also parses "dev=" more carefully.
56102         (read_file_system_list)
56103         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
56104         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
56105         dev= in that case.
56106
56107         * lib/posixtm.h (PDS_PRE_2000): New macro.
56108         * lib/posixtm.c (year): Arg is now syntax_bits rather than
56109         allow_century.  All usages changed.  Reject dates outside the range
56110         1969-1999 if PDS_PRE_2000 is used.
56111
56112 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56113
56114         Sync from coreutils.
56115         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
56116         (Time of day items): Mention the possibility of leap seconds.
56117         Problem reported by Dr. David Alan Gilbert.
56118
56119 2006-01-09  Jim Meyering  <jim@meyering.net>
56120
56121         Sync from coreutils.
56122
56123         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
56124
56125         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
56126
56127         * lib/modechange.c (mode_compile): Reject an invalid mode string
56128         that starts with an octal digit.  From Andreas Gruenbacher.
56129
56130         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
56131         and dup to open_safer and dup_safer, respectively.
56132         (openat_permissive): Fix typo in comment.
56133
56134         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
56135         "gettext.h"; either no longer needed or are guaranteed by openat.h.
56136         (_): Remove; no longer needed.
56137         (openat): Renamed from rpl_openat; no need for rpl_openat
56138         since openat.h renames openat for us.
56139         Replace most of the body with a call to openat_permissive,
56140         to avoid duplicate code.
56141         Port to (probably hypothetical) environments were mode_t is
56142         wider than int.
56143         (openat_permissive): Require mode arg, so that we can check
56144         types better.  Put it just after flags.  Change cwd failure
56145         indicator from pointer-to-bool to pointer-to-errno-value.
56146         All callers changed.
56147         Invoke openat_save_fail and/or openat_restore_fail if
56148         cwd_errno is null, so that openat can call us.
56149         (openat_permissive, fdopendir, fstatat, unlinkat):
56150         Simplify errno handling to avoid some duplicate code,
56151         as it's OK to set errno on success.
56152         * lib/openat.h: Revamp code so that function macros depend on
56153         __OPENAT_PREFIX only, not also on AT_FDCWD.
56154         (openat_ro): Remove.  Caller changed to use openat_permissive.
56155         (openat_permissive): Now a macro, if not a function.
56156         (openat_restore_fail, openat_save_fail): Now always functions,
56157         since mkdirat needs them even if __OPENAT_PREFIX is defined.
56158
56159         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
56160         and openat.c.
56161         * lib/mkdirat.c: Include openat-priv.h.
56162         Remove definitions of macros defined therein.
56163         * lib/openat.c: Likewise.
56164
56165         * lib/mkdirat.c (mkdirat): New file and function.
56166         * lib/openat.h (mkdirat): Declare.
56167
56168         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
56169
56170         * lib/openat.h (openat_permissive): Declare.
56171         (openat_ro): Define.
56172
56173         * lib/openat.c (EXPECTED_ERRNO): New macro.
56174         (openat_permissive): New function -- used in remove.c rewrite.
56175         (all functions): Set errno just before returning, only if there
56176         was an actual failure.
56177         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
56178
56179         Emulate openat-family functions using Linux's procfs, if possible.
56180         Idea and some code based on Ulrich Drepper's glibc changes.
56181
56182         * lib/openat.c: (BUILD_PROC_NAME): New macro.
56183         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
56184         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
56185         before falling back on save_cwd and restore_cwd.
56186         (fdopendir, fstatat, unlinkat): Likewise.
56187
56188         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
56189         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
56190
56191         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
56192         as second argument to va_arg.  Otherwise, some versions of gcc
56193         warn that `if this code is reached, the program will abort'.
56194
56195 2006-01-09  Jim Meyering  <jim@meyering.net>
56196
56197         Sync from coreutils.
56198         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
56199         Require openat-priv.h.
56200
56201 2006-01-09  Bruno Haible  <bruno@clisp.org>
56202
56203         * modules/strnlen (Include): Use strnlen.h.
56204
56205 2006-01-09  Bruno Haible  <bruno@clisp.org>
56206
56207         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
56208
56209 2006-01-09  Bruno Haible  <bruno@clisp.org>
56210
56211         * lib/sysexit_.h (EX_OK): New macro.
56212         Suggested by Martin Lambers <marlam@marlam.de>.
56213
56214 2006-01-09  Bruno Haible  <bruno@clisp.org>
56215
56216         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
56217         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
56218
56219 2006-01-09  Bruno Haible  <bruno@clisp.org>
56220
56221         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
56222         numbers.
56223
56224 2006-01-09  Bruno Haible  <bruno@clisp.org>
56225
56226         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
56227         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
56228         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
56229         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
56230
56231 2006-01-09  Bruno Haible  <bruno@clisp.org>
56232
56233         * build-aux/javacomp.sh.in: New file, moved from lib/.
56234         * modules/javacomp-script (Files): Update.
56235         (configure.ac): Add AC_CONFIG_FILES invocation.
56236         (EXTRA_DIST): Remove variable.
56237
56238         * build-aux/javaexec.sh.in: New file, moved from lib/.
56239         * modules/javaexec (Files): Update.
56240         (configure.ac): Add AC_CONFIG_FILES invocation.
56241         (EXTRA_DIST): Remove javaexec.sh.in.
56242
56243         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
56244         * modules/csharpcomp-script (Files): Update.
56245         (configure.ac): Add AC_CONFIG_FILES invocation.
56246         (EXTRA_DIST): Remove variable.
56247
56248         * build-aux/csharpexec.sh.in: New file, moved from lib/.
56249         * modules/csharpexec (Files): Update.
56250         (configure.ac): Add AC_CONFIG_FILES invocation.
56251         (EXTRA_DIST): Remove csharpexec.sh.in.
56252
56253 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
56254
56255         Sync from coreutils.
56256
56257         Add POSIX ACL support
56258         * lib/acl.h (copy_acl, set_acl): Add declarations.
56259         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
56260         systems other than Linux.
56261         (chmod_or_fchmod): New function: use fchmod when possible,
56262         and chmod otherwise.
56263         (file_has_acl): Add a POSIX ACL implementation, with a
56264         Linux-specific subcase.
56265         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
56266         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
56267         acls are unsupported.
56268         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
56269         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
56270         are unsupported.
56271
56272 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
56273
56274         Sync from coreutils.
56275         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
56276
56277 2006-01-07  Bruno Haible  <bruno@clisp.org>
56278
56279         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
56280         gl_EARLY.
56281
56282 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56283
56284         * lib/strftime.c (tzname): Don't declare if it is already #defined.
56285         Problem reported for Mingw by Mark Junker.
56286
56287 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56288
56289         * README: Gnulib normally doesn't generate a tarball.
56290
56291 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
56292
56293         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
56294         long int, not int, for nanosecond counts, so that people who are
56295         used to POSIX struct timespec won't be surprised.  Reported by Jim
56296         Meyering.
56297
56298 2005-12-28  Bruno Haible  <bruno@clisp.org>
56299
56300         * build-aux/config.rpath: Update from GNU gettext.
56301
56302 2005-12-16  Jim Meyering  <jim@meyering.net>
56303
56304         * modules/fprintftime: New module.
56305         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
56306
56307 2005-12-16  Jim Meyering  <jim@meyering.net>
56308
56309         * m4/fprintftime.m4: New file.
56310
56311 2005-12-16  Jim Meyering  <jim@meyering.net>
56312
56313         * lib/fprintftime.c, lib/fprintftime.h: New files.
56314
56315 2005-12-15  Simon Josefsson  <jas@extundo.com>
56316
56317         * modules/socklen (configure.ac): Fix M4 macro name, to align with
56318         new m4/socklen.m4.
56319
56320 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56321
56322         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
56323         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
56324
56325 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56326
56327         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
56328         * lib/argp-help.c (fill_in_uparams): Check if the constructed
56329         struct uparams is valid. Fall back to the default values if it is
56330         not.
56331
56332 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56333
56334         * modules/argp (Files): Add argp-pin.c
56335         (Depends-on): dirname
56336         (lib_SOURCES): Add argp-pin.c
56337
56338 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56339
56340         * m4/argp.m4:  Check if program_invocation_name and
56341         program_invocation_short_name are declared and define appropriate
56342         macros if they are not.
56343
56344 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56345
56346         * lib/argp-help.c (__argp_base_name): New function
56347         (__argp_short_program_name): Rewrite using __argp_base_name
56348         * lib/argp-namefrob.h: Define program_invocation_name and
56349         program_invocation_short_name if requested
56350         (__argp_base_name): Add prototype
56351         * lib/argp-parse.c (argp_def): Use gettext wrappers
56352         (argp_default_parser): Use __argp_base_name
56353         * lib/argp-pin.c: New file. Defines program_invocation_name and
56354         program_invocation_short_name on systems that lack them.
56355
56356 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56357
56358         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
56359         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
56360         porting problem reported by Georg Schwarz in
56361         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
56362
56363 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56364
56365         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
56366         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
56367         porting problem reported by Georg Schwarz in
56368         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
56369
56370 2005-12-05  Bruno Haible  <bruno@clisp.org>
56371
56372         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
56373         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
56374         Reported by Mark Junker <mjscod@gmx.de>.
56375
56376 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
56377
56378         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
56379         Use implementation from Albert Chin, with some
56380         comments/corrections by Stepan Kasal and myself.
56381
56382 2005-12-02  Bruno Haible  <bruno@clisp.org>
56383
56384         * gnulib-tool (func_import): Accept GPLed build tool modules when
56385         --lgpl is given.
56386         * modules/csharpcomp-script: New file.
56387         * modules/csharpcomp: Depend on it.
56388         * modules/javacomp-script: New file.
56389         * modules/javacomp: Depend on it.
56390         Suggested by Simon Josefsson.
56391
56392 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
56393
56394         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
56395         statement, to work around an HP-UX 10.20 compiler bug reported by
56396         Peter O'Gorman.
56397
56398 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
56399
56400         * modules/savedir (Depends-on): Add openat.
56401
56402 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
56403
56404         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
56405         (uintmax_t) [defined uintmax_t]: Do not declare.
56406         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
56407         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
56408         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
56409         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
56410         sake of portability to weird hosts that C allows (though we don't
56411         know of any practical examples).
56412
56413         * lib/savedir.h (fdsavedir): New decl.
56414         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
56415         contains most of the former guts of savedir.
56416         (savedir): Use savedirstream.
56417         Include "openat.h".
56418
56419 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
56420
56421         * modules/obstack (Files): Add m4/ulonglong.m4.
56422         Problem reported by Davide Angelocola.
56423
56424 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
56425
56426         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
56427         coreutils no longer futzes with rounding modes.
56428
56429 2005-11-14  Jim Meyering  <jim@meyering.net>
56430
56431         * lib/mkstemp-safer.c: Include <config.h>, required for possible
56432         replacement of mkstemp.
56433
56434 2005-11-10  Simon Josefsson  <jas@extundo.com>
56435
56436         * lib/readline.c: Remove EOL.
56437
56438 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56439
56440         * modules/gethrxtime (Depends-on): Add gettime.
56441
56442 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56443
56444         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
56445         or gettimeofday; no longer needed.
56446
56447 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56448
56449         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
56450         time business.
56451         (gethrxtime) [! (HAVE_NANOUPTIME
56452         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
56453         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
56454         our own approximation.
56455
56456 2005-11-08  Eric Blake  <ebb9@byu.net>
56457
56458         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
56459
56460 2005-11-08  Eric Blake  <ebb9@byu.net>
56461
56462         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
56463
56464 2005-11-04  Bruno Haible  <bruno@clisp.org>
56465
56466         * gnulib-tool: Implement --update mode.
56467
56468 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56469
56470         Fix porting problem reported by Theodoros V. Kalamatianos.
56471         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
56472         Don't assume that futimes failing means we must fail.
56473
56474 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56475
56476         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
56477         variables to suggest the intended function of the PATH_MAX check.
56478
56479 2005-10-30  Kean Johnston  <jkj@sco.com>
56480
56481         Trivial changes to support SCO systems.
56482         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
56483         as PATH_MAX.
56484         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
56485         where __ptr is null when no I/O is pending.
56486
56487 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
56488
56489         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
56490         leave errno alone.  Problem reported by Dmitry V. Levin.
56491
56492 2005-10-28  Simon Josefsson  <jas@extundo.com>
56493
56494         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
56495         Test more.
56496
56497         * tests/test-gc-md2.c, tests/test-md2.c: New files.
56498
56499         * modules/md2, modules/md2-tests: New files.
56500
56501 2005-10-28  Simon Josefsson  <jas@extundo.com>
56502
56503         * m4/inet_ntop.m4: More tests.
56504
56505         * m4/gc-md2.m4, md2.m4: New file.
56506
56507 2005-10-28  Simon Josefsson  <jas@extundo.com>
56508
56509         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
56510         "restrict" keywords, as per POSIX.  Protect the function
56511         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
56512         Don't use K&R prototypes.  Check the sprintf return values.
56513         Re-define EAFNOSUPPORT if not present.  Indent.
56514
56515         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
56516         suggested by Bruno Haible <bruno@clisp.org>.
56517
56518         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
56519
56520         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
56521
56522         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
56523         libgcrypt).
56524
56525         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
56526
56527         * lib/md2.h, lib/md2.c: New files.
56528
56529 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
56530
56531         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
56532         errno alone.  Problem reported by Frederic Jolliton.
56533
56534 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56535
56536         * modules/verify (License): Change from GPL to LGPL.  This is a
56537         tiny module and there are apparently near-equivalents that are
56538         under the BSD license.
56539
56540 2005-10-24  Simon Josefsson  <jas@extundo.com>
56541
56542         * modules/sha1: Relicense to LGPL.
56543
56544 2005-10-24  Simon Josefsson  <jas@extundo.com>
56545
56546         * lib/md4.h: Shrink buffer size, now that we changed the type.
56547
56548 2005-10-23  Simon Josefsson  <jas@extundo.com>
56549
56550         * gnulib-tool (func_import): Fix --tests-base.
56551
56552 2005-10-22  Simon Josefsson  <jas@extundo.com>
56553
56554         * modules/arcfour (Depends-on): Need stdint.
56555
56556 2005-10-22  Simon Josefsson  <jas@extundo.com>
56557
56558         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
56559         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
56560
56561 2005-10-22  Simon Josefsson  <jas@extundo.com>
56562
56563         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
56564         suggested by Bruno Haible <bruno@clisp.org>.
56565
56566 2005-10-22  Simon Josefsson  <jas@extundo.com>
56567
56568         * lib/crc.h: Include stddef.h, for size_t.
56569
56570 2005-10-22  Simon Josefsson  <jas@extundo.com>
56571
56572         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
56573         arcfour_context struct (simplify test vector testing in GNU
56574         Shishi).
56575
56576 2005-10-21  Simon Josefsson  <jas@extundo.com>
56577
56578         * modules/des, modules/des-tests: New files.
56579
56580         * modules/gc-des, modules/gc-des-tests: New files.
56581
56582         * tests/test-des.c, tests/test-gc-des.c: New file.
56583
56584 2005-10-21  Simon Josefsson  <jas@extundo.com>
56585
56586         * modules/arctwo, modules/arctwo-tests: New files.
56587
56588         * tests/test-arctwo.c: New file.
56589
56590         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
56591
56592         * tests/test-gc-arctwo.c: New file.
56593
56594 2005-10-21  Simon Josefsson  <jas@extundo.com>
56595
56596         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
56597         Bruno Haible <bruno@clisp.org>.
56598
56599         * m4/gc-des.m4: New file.
56600
56601 2005-10-21  Simon Josefsson  <jas@extundo.com>
56602
56603         * m4/arctwo.m4: New file.
56604
56605         * m4/gc-arctwo.m4: New file.
56606
56607 2005-10-21  Simon Josefsson  <jas@extundo.com>
56608
56609         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
56610         block.
56611
56612 2005-10-21  Simon Josefsson  <jas@extundo.com>
56613
56614         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
56615         <bruno@clisp.org>.
56616
56617         * lib/hmac-sha1.c (hmac_sha1): Likewise.
56618
56619         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
56620         Bruno Haible <bruno@clisp.org>.
56621
56622         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
56623         <bruno@clisp.org>.
56624
56625 2005-10-21  Simon Josefsson  <jas@extundo.com>
56626
56627         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
56628
56629 2005-10-21  Simon Josefsson  <jas@extundo.com>
56630
56631         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
56632
56633 2005-10-21  Simon Josefsson  <jas@extundo.com>
56634
56635         * lib/des.h, lib/des.c: New files.
56636
56637         * lib/gc-gnulib.c: Support DES.c
56638
56639 2005-10-21  Simon Josefsson  <jas@extundo.com>
56640
56641         * lib/arctwo.h, lib/arctwo.c: New files.
56642
56643         * lib/gc-gnulib.c: Support ARCTWO.
56644
56645 2005-10-21  Simon Josefsson  <jas@extundo.com>
56646
56647         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
56648         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56649
56650 2005-10-21  Simon Josefsson  <jas@extundo.com>
56651
56652         * gnulib-tool (func_import, func_create_testdir): Define automake
56653         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
56654         Makefile.am snippet),
56655         suggested by Bruno Haible <bruno@clisp.org>.
56656
56657         * modules/gc (Makefile.am): Use it.
56658
56659 2005-10-21  Bruno Haible  <bruno@clisp.org>
56660
56661         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
56662         patch.
56663
56664 2005-10-19  Simon Josefsson  <jas@extundo.com>
56665
56666         * tests/test-gc-rijndael.c: New file.
56667
56668         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
56669
56670 2005-10-19  Simon Josefsson  <jas@extundo.com>
56671
56672         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
56673         interface too.
56674
56675 2005-10-19  Simon Josefsson  <jas@extundo.com>
56676
56677         * tests/test-gc-arcfour.c: New file.
56678
56679         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
56680
56681 2005-10-19  Simon Josefsson  <jas@extundo.com>
56682
56683         * modules/gc-md4, modules/gc-md4-tests: New file.
56684
56685         * tests/test-gc-md4.c: New file.
56686
56687 2005-10-19  Simon Josefsson  <jas@extundo.com>
56688
56689         * m4/gc-md4.m4: New file.
56690
56691 2005-10-19  Simon Josefsson  <jas@extundo.com>
56692
56693         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
56694         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
56695         <kasal@ucw.cz>.
56696
56697 2005-10-19  Simon Josefsson  <jas@extundo.com>
56698
56699         * m4/gc-arcfour.m4: New file.
56700
56701         * m4/gc-rijndael.m4: New file.
56702
56703 2005-10-19  Simon Josefsson  <jas@extundo.com>
56704
56705         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
56706
56707 2005-10-19  Simon Josefsson  <jas@extundo.com>
56708
56709         * lib/gc-gnulib.c: Support ARCFOUR.
56710
56711 2005-10-19  Simon Josefsson  <jas@extundo.com>
56712
56713         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
56714         support.
56715
56716         * lib/gc.h: Add ECB enum type.
56717
56718         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
56719
56720 2005-10-18  Simon Josefsson  <jas@extundo.com>
56721
56722         * tests/test-md5.c: New file.
56723
56724         * modules/md5-tests: New file.
56725
56726 2005-10-18  Simon Josefsson  <jas@extundo.com>
56727
56728         * tests/test-md4.c: New file.
56729
56730         * modules/md4, modules/md4-tests: New files.
56731
56732 2005-10-18  Simon Josefsson  <jas@extundo.com>
56733
56734         * m4/md4.m4: New file.
56735
56736 2005-10-18  Simon Josefsson  <jas@extundo.com>
56737
56738         * lib/md4.h, lib/md4.c: New files, based on md5.?.
56739
56740 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
56741
56742         * gnulib-tool (func_create_testdir): Omit the second check whether
56743         BUILT_SOURCES in nonempty.
56744
56745 2005-10-17  Simon Josefsson  <jas@extundo.com>
56746
56747         * tests/test-rijndael.c: New file.
56748
56749 2005-10-17  Simon Josefsson  <jas@extundo.com>
56750
56751         * modules/sha1: Depend on stdint instead of md5.
56752
56753         * modules/md5: Depend on stdint, remove uint32_t.
56754
56755 2005-10-17  Simon Josefsson  <jas@extundo.com>
56756
56757         * modules/gc-sha1-tests: New file.
56758
56759         * tests/test-gc-sha1.c: New file.
56760
56761 2005-10-17  Simon Josefsson  <jas@extundo.com>
56762
56763         * m4/md5.m4: Remove call to uint32_t.m4.
56764
56765 2005-10-17  Simon Josefsson  <jas@extundo.com>
56766
56767         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
56768
56769         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
56770         md5.h.
56771
56772         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
56773
56774         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
56775
56776 2005-10-17  Simon Josefsson  <jas@extundo.com>
56777
56778         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
56779
56780 2005-10-17  Simon Josefsson  <jas@extundo.com>
56781
56782         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
56783
56784 2005-10-17  Simon Josefsson  <jas@extundo.com>
56785
56786         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
56787
56788         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
56789
56790 2005-10-17  Bruno Haible  <bruno@clisp.org>
56791
56792         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
56793         that it can also be used in a test.
56794
56795 2005-10-16  Bruno Haible  <bruno@clisp.org>
56796
56797         * gnulib-tool (func_emit_tests_Makefile_am): Also define
56798         TESTS_ENVIRONMENT, so that individual tests can augment it.
56799
56800         * gnulib-tool (func_create_testdir): Use an intermediate target for
56801         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
56802         macros, like $(ALLOCA_H), which cannot be passed through the command
56803         line.
56804
56805 2005-10-15  Simon Josefsson  <jas@extundo.com>
56806
56807         * modules/rijndael-tests: New file.
56808
56809         * modules/rijndael: New file.
56810
56811 2005-10-15  Simon Josefsson  <jas@extundo.com>
56812
56813         * m4/rijndael.m4: New file.
56814
56815 2005-10-15  Simon Josefsson  <jas@extundo.com>
56816
56817         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
56818
56819         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
56820
56821 2005-10-14  Simon Josefsson  <jas@extundo.com>
56822
56823         * tests/test-arcfour.c: New file.
56824
56825         * modules/arcfour, modules/arcfour-tests: New files.
56826
56827 2005-10-14  Simon Josefsson  <jas@extundo.com>
56828
56829         * m4/arcfour.m4: New file.
56830
56831 2005-10-14  Simon Josefsson  <jas@extundo.com>
56832
56833         * lib/arcfour.h, lib/arcfour.c: New files.
56834
56835 2005-10-14  Roland McGrath  <roland@redhat.com>
56836
56837         Import from libc.  [BZ #1331]
56838         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
56839         macro argument.
56840         Reported by Matej Vela <vela@debian.org>.
56841
56842 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56843
56844         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
56845         include <wchar.h>; no longer needed.
56846
56847 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56848
56849         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
56850
56851 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
56852         and  Ulrich Drepper  <drepper@redhat.com>
56853
56854         Import from libc.
56855         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
56856         instead of inline stream orientation test and two separate
56857         function calls.  Pay no attention to USE_IN_LIBIO.
56858
56859 2005-10-13  Simon Josefsson  <jas@extundo.com>
56860
56861         * modules/gc-hmac-md5-tests: New file.
56862
56863         * tests/test-gc-hmac-sha1.c: New file.
56864
56865         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
56866
56867         * modules/gc-hmac-md5-tests: New file.
56868
56869         * tests/test-gc-md5.c: New file.
56870
56871         * modules/gc-md5-tests: New file.
56872
56873 2005-10-13  Simon Josefsson  <jas@extundo.com>
56874
56875         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
56876         Move memory allocation outside of loop.
56877
56878 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
56879
56880         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
56881         intermediate directory is in a read-only file system.  Problem
56882         reported by Eric Blake.
56883
56884 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
56885
56886         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
56887
56888 2005-10-12  Simon Josefsson  <jas@extundo.com>
56889
56890         * tests/test-hmac-sha1.c: New file.
56891
56892         * modules/hmac-sha1-tests: New file.
56893
56894         * modules/hmac-sha1: New file.
56895
56896 2005-10-12  Simon Josefsson  <jas@extundo.com>
56897
56898         * modules/gc-sha1: New file.
56899
56900 2005-10-12  Simon Josefsson  <jas@extundo.com>
56901
56902         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
56903
56904         * tests/test-gc-pbkdf2-sha1.c: New file.
56905
56906 2005-10-12  Simon Josefsson  <jas@extundo.com>
56907
56908         * modules/gc-md5, modules/gc-hmac-md5: New files.
56909
56910         * modules/gc (Files): Remove md5, memxor and hmac files.
56911
56912 2005-10-12  Simon Josefsson  <jas@extundo.com>
56913
56914         * m4/gc-pbkdf2-sha1.m4: New file.
56915
56916         * m4/gc-hmac-sha1.m4: New file.
56917
56918         * m4/gc-sha1: New file.
56919
56920         * m4/hmac-sha1.m4: New file.
56921
56922 2005-10-12  Simon Josefsson  <jas@extundo.com>
56923
56924         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
56925
56926         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
56927
56928 2005-10-12  Simon Josefsson  <jas@extundo.com>
56929
56930         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
56931         suggested by Bruno Haible <bruno@clisp.org>.
56932
56933 2005-10-12  Simon Josefsson  <jas@extundo.com>
56934
56935         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
56936
56937 2005-10-12  Simon Josefsson  <jas@extundo.com>
56938
56939         * lib/gc-pbkdf2-sha1.c: New file.
56940
56941         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
56942
56943 2005-10-12  Simon Josefsson  <jas@extundo.com>
56944
56945         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
56946
56947         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
56948
56949 2005-10-12  Simon Josefsson  <jas@extundo.com>
56950
56951         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
56952         GC_USE_HMAC_MD5, respectively.
56953
56954         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
56955         (gc_md5): Fix typo.
56956
56957         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
56958
56959         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
56960
56961         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
56962
56963 2005-10-12  Bruno Haible  <bruno@clisp.org>
56964
56965         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
56966         Reported by Stepan Kasal <kasal@ucw.cz>.
56967
56968 2005-10-11  Simon Josefsson  <jas@extundo.com>
56969
56970         * tests/test-crc.c: New file.
56971
56972         * modules/crc, modules/crc-tests: New files.
56973
56974 2005-10-11  Simon Josefsson  <jas@extundo.com>
56975
56976         * m4/crc.m4: New file.
56977
56978 2005-10-11  Simon Josefsson  <jas@extundo.com>
56979
56980         * lib/gc.h: Add gc_hash and gc_hash_buffer.
56981
56982         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
56983
56984         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
56985
56986 2005-10-11  Simon Josefsson  <jas@extundo.com>
56987
56988         * lib/crc.h, lib/crc.c: New files.
56989
56990         * lib/gc.h (gc_hash_buffer): Add doc.
56991
56992 2005-10-11  Bruno Haible  <bruno@clisp.org>
56993
56994         * modules/c-strcasestr: New file.
56995         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
56996
56997 2005-10-11  Bruno Haible  <bruno@clisp.org>
56998
56999         * modules/c-strcase: New file.
57000         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
57001
57002 2005-10-11  Bruno Haible  <bruno@clisp.org>
57003
57004         * lib/strcasecmp.c: Include limits.h.
57005         (strcasecmp): Avoid integer overflow on exotic platforms.
57006         * lib/strncasecmp.c: Include limits.h.
57007         (strncasecmp): Avoid integer overflow on exotic platforms.
57008         Reported by Paul Eggert.
57009
57010 2005-10-11  Bruno Haible  <bruno@clisp.org>
57011
57012         * lib/c-strcasestr.h: New file, from GNU gettext.
57013         * lib/c-strcasestr.c: New file, from GNU gettext.
57014
57015 2005-10-11  Bruno Haible  <bruno@clisp.org>
57016
57017         * lib/c-strcase.h: New file, from GNU gettext.
57018         * lib/c-strcasecmp.c: New file, from GNU gettext.
57019         * lib/c-strncasecmp.c: New file, from GNU gettext.
57020
57021 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57022
57023         * modules/mempcpy (License): GPL -> LGPL.
57024         * modules/strchrnul (License): Likewise.
57025         * modules/sysexits (License): Likewise.
57026
57027 2005-10-08  Simon Josefsson  <jas@extundo.com>
57028
57029         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
57030
57031 2005-10-07  Simon Josefsson  <jas@extundo.com>
57032
57033         * m4/memxor.m4: Remove gl_C_RESTRICT call.
57034
57035 2005-10-06  Simon Josefsson  <jas@extundo.com>
57036
57037         * tests/test-hmac-md5.c: New file.
57038
57039         * modules/hmac-md5-tests: New file.
57040
57041         * modules/hmac-md5: New file.
57042
57043 2005-10-06  Simon Josefsson  <jas@extundo.com>
57044
57045         * m4/hmac-md5.m4: New file.
57046
57047         * m4/memxor.m4: Require gl_C_RESTRICT.
57048
57049 2005-10-06  Simon Josefsson  <jas@extundo.com>
57050
57051         * lib/memxor.c (memxor): Avoid casts and warnings.
57052
57053 2005-10-06  Simon Josefsson  <jas@extundo.com>
57054
57055         * lib/hmac-md5.c: New file.
57056
57057         * lib/hmac.h: New file.
57058
57059 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57060
57061         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
57062         promotes to int, not unsigned int, to catch the AIX 5.3
57063         compiler bug.
57064
57065 2005-10-05  Simon Josefsson  <jas@extundo.com>
57066
57067         * modules/memxor: New file.
57068
57069         * modules/iconv (Files): Move config.rpath to havelib, it is used
57070         there.
57071
57072         * modules/havelib (Files): Add config.rpath.
57073
57074 2005-10-05  Simon Josefsson  <jas@extundo.com>
57075
57076         * m4/memxor.m4: New file.
57077
57078 2005-10-05  Simon Josefsson  <jas@extundo.com>
57079
57080         * lib/memxor.c (memxor): Fix compiler error.
57081
57082         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
57083         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
57084
57085         * lib/memxor.h, lib/memxor.c: New files.
57086
57087         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
57088         we assume all systems have it, suggested by Jim Meyering
57089         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
57090         any systems lack sys/socket.h; mingw32 is known to lack it, but we
57091         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
57092         same reasons.
57093
57094 2005-10-05  Simon Josefsson  <jas@extundo.com>
57095
57096         * config/srclist.txt: Add glibc bug 1423 for md5.h.
57097
57098 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57099
57100         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
57101         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
57102         needed, since the source code now assumes these .h files.
57103
57104 2005-10-05  Derek Price  <derek@ximbiot.com>
57105
57106         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
57107
57108 2005-10-05  Bruno Haible  <bruno@clisp.org>
57109
57110         * modules/stdint (License): Change to LGPL.
57111
57112 2005-10-04  Simon Josefsson  <jas@extundo.com>
57113
57114         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
57115         D. Baushke" <mdb@gnu.org>.
57116
57117 2005-10-04  Bruno Haible  <bruno@clisp.org>
57118
57119         * lib/verify.h (verify_true): Provide alternative definition for C++.
57120
57121 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
57122
57123         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
57124         (SSIZE_MAX): New macro, if not already defined.
57125         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
57126         than 2 GiB.
57127
57128 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57129
57130         Sync from coreutils.
57131         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
57132         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
57133         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
57134         ULLONG_MAX doesn't work with 2.7.2.1.
57135
57136 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57137
57138         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
57139         From Ben Pfaff.
57140
57141         * modules/exclude (Depends-on): Depend on verify.
57142         * modules/strtoimax (Depends-on): Likewise.
57143         * modules/utimecmp (Depends-on): Likewise.
57144
57145 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57146
57147         * lib/exclude.c: Include verify.h.
57148         (verify): Remove.  All callers changed to use verify.h's version.
57149         * lib/strtoimax.c: Likewise.
57150         * lib/utimecmp.c: Likewis.e
57151
57152         Sync from coreutils.
57153         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
57154         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
57155         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
57156         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
57157         bother returning ENOSYS if settimeofday or stime fails; just let
57158         them return whatever errno they want to return.
57159         * lib/utimens.c: Include unistd.h, for dup2.
57160         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
57161         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
57162
57163 2005-10-02  Jim Meyering  <jim@meyering.net>
57164
57165         Sync from coreutils.
57166         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
57167         from glibc-2.2.5 that fails for read-only files.
57168
57169 2005-10-02  Jim Meyering  <jim@meyering.net>
57170
57171         Sync from coreutils.
57172         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
57173         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
57174         `#if HAVE_CONFIG_H'.
57175         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
57176         Remove AT_FDCWD test.
57177         Do not consume the fd unless successful.
57178         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
57179         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
57180         block, so that we don't even try to compile it if settimeofday is
57181         available.  This works around a compilation failure on OSF1 V5.1,
57182         due to stime requiring a `long int*' while tv_sec is `int'.
57183
57184 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
57185
57186         Sync from coreutils.
57187         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
57188         against `yes', rather than just testing for nonempty.
57189
57190 2005-10-01  Simon Josefsson  <jas@extundo.com>
57191
57192         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
57193         and Darwin.
57194
57195         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
57196         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
57197         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
57198         freeaddrinfo and gai_strerror are declared by the POSIX headers.
57199         Check if struct addrinfo is declared.
57200
57201 2005-10-01  Simon Josefsson  <jas@extundo.com>
57202
57203         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
57204         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
57205         AI_* and EAI_* definitions.  Protect function declarations.
57206
57207 2005-10-01  Jim Meyering  <jim@meyering.net>
57208
57209         Sync from coreutils.
57210
57211         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
57212         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
57213         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
57214         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
57215         in the inet and nsl libraries.  Required on Solaris 5.7.
57216
57217 2005-10-01  Jim Meyering  <jim@meyering.net>
57218
57219         Sync from coreutils.
57220         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
57221         in the inet and nsl libraries.  Required on Solaris 5.7.
57222
57223 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
57224
57225         * lib/getdelim.c (getdelim): Remove unused variables.
57226
57227 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57228
57229         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
57230         so that the code works even with ancient cpp.  Portability problem
57231         with GCC 2.7.2.1 reported by Thomas M.Ott.
57232
57233 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57234
57235         * modules/regex (Depends-on): Add strcase.
57236
57237         * modules/gethostname (Licence): Change from GPL to LGPL, since
57238         gethostname.c is a trivial implementation of a standard library
57239         function.
57240         * modules/poll (License): Change from GPL to LGPL, since it's
57241         derived from LGPL code.
57242
57243 2005-09-27  Jim Meyering  <jim@meyering.net>
57244
57245         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
57246         HAVE_CONFIG_H.
57247
57248         * lib/intprops.h (signed_type_or_expr__): Define.
57249         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
57250         for unsigned types.
57251
57252 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57253
57254         * lib/verify.h (verify_expr): Remove, replacing with:
57255         (verify_true): New macro that returns true instead of void.
57256         (verify_type__): Remove.
57257         (verify): Use verify_true rather than verify_type__.
57258
57259 2005-09-26  Bruno Haible  <bruno@clisp.org>
57260
57261         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
57262         is necessary.
57263         (lib_SOURCES): Remove mbchar.c.
57264         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
57265         (Files): Add m4/mbrtowc.m4.
57266         * modules/mbiter: Likewise.
57267         * modules/mbuiter: Likewise.
57268
57269 2005-09-26  Bruno Haible  <bruno@clisp.org>
57270
57271         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
57272         compile mbchar.c if they are not both present.
57273         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
57274         * m4/mbiter.m4 (gl_MBITER): Likewise.
57275         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
57276         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
57277         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
57278
57279 2005-09-25  Jim Meyering  <jim@meyering.net>
57280
57281         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
57282         also uses socklen_t.
57283
57284 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
57285
57286         * lib/utimens.c (ENOSYS): Define if not already defined.
57287         (futimens): Support having a null PATH if the file descriptor
57288         is nonnegative.
57289
57290         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
57291         Remove.
57292         (__attribute): Define to empty unless GCC 3.1 or later.
57293         This works around a core dump on OpenBSD 3.4, which has GCC
57294         2.95.3, which dumps core when given __attribute__(()).  It also
57295         simplifies other tests, since we really don't want to bother with
57296         worrying about which ancient version of GCC supported what.
57297         Original problem reported by Yoann Vandoorselaere, with part of
57298         the fix suggested by Derek Price.
57299
57300 2005-09-24  Jim Meyering  <jim@meyering.net>
57301
57302         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
57303         so we can once again use a positive bitfield width of 1 -- now we
57304         don't have to explain why we were using a bitfield width of 2.
57305
57306 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
57307
57308         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
57309         and similarly for the other external symbols.  Problem reported
57310         by James Gallager.
57311
57312         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
57313         bug reported by Jim Meyering.
57314
57315         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
57316         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
57317         not needed, since socklen is a prerequisite module.
57318
57319 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
57320
57321         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
57322         Problem reported by Eric Blake.
57323         (getaddrinfo): Initialize se so that it's not garbage.
57324         Redo internal storage allocation so that it doesn't make unportable
57325         assumptions about alignment.
57326         Fix a memory leak.
57327
57328         * lib/utimens.c (futimens): Use futimesat if available.
57329         Prefer it to futimes since it doesn't have the futimes bug.
57330
57331         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
57332         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
57333         Instead, declare a function that returns a pointer to an array,
57334         and use verify_type__ to declare the size of the array.
57335         Problem and germ of a solution reported by Bruno Haible.
57336         (verify_type__): Use 2, not 1, for bitfield size, to avoid
57337         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
57338
57339 2005-09-23  Jim Meyering  <jim@meyering.net>
57340
57341         Sync from coreutils.
57342         Correct build failure (socklen_t not defined) on at least
57343         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
57344         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
57345
57346 2005-09-23  Jim Meyering  <jim@meyering.net>
57347
57348         * modules/getaddrinfo (Depends-on): Add socklen.
57349
57350 2005-09-23  Bruno Haible  <bruno@clisp.org>
57351
57352         * tests/test-verify.c: New file.
57353
57354 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57355
57356         Sync from coreutils.
57357
57358         * modules/argmatch (Depends-on): Add verify.
57359         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
57360         unistd-safer.
57361         * modules/save-cwd (Depends-on): Likewise.
57362
57363         * modules/openat (Files): Add lib/openat-die.c.
57364         (Depends-on): Remove error, exitfail.
57365         Add dirname.
57366
57367         * modules/verify: New file.
57368         * MODULES.html.sh (Diagnostics <assert.h>): New section,
57369         with "verify" module.
57370
57371 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57372
57373         Sync from coreutils.
57374
57375         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
57376         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
57377         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
57378         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
57379         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
57380         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
57381         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
57382         Don't bother checking for string.h, stdlib.h, unistd.h.
57383         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
57384         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
57385         module's job.
57386         * m4/jm-macros.m4 (gl_MACROS): Likewise.
57387         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
57388
57389         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
57390         (gl_GETDATE): Use it.
57391
57392         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
57393
57394 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57395
57396         Sync from coreutils.
57397
57398         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
57399         stat-time.h.
57400         * lib/argmatch.h: Include verify.h
57401         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
57402         (ARGMATCH_ASSERT): Remove; unused.
57403         * lib/canonicalize.c: Assume STDC_HEADERS.
57404         * lib/exclude.c: Include "strcase.h".
57405         * lib/regex_internal.h [!defined _LIBC]: Likewise.
57406         * lib/getusershell.c: Include stdio--.h rather than stdio.h
57407         and stdio-safer.h.
57408         (getusershell): Call fopen, not fopen_safer.
57409         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
57410         Do not include unistd-safer.h.
57411         (save_cwd): Don't call fd_safer; no longer needed
57412         now that we include fcntl--.h.
57413
57414         * lib/getdate.y (relative_time): New type.
57415         (RELATIVE_TIME_0): New constant.
57416         (parser_control): Use relative_time instead of doing it ourselves.
57417         (%union): Add new relative_time rel member.
57418         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
57419         Now typeless.
57420         (relunit, relunit_snumber): Now of type rel.
57421         (zone, rel, relunit, get_date): Adjust to above changes.
57422
57423         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
57424         Do not include unistd-safer.h.
57425         (getloadavg): Don't call fd_safer; no longer needed
57426         now that we include fcntl--.h.
57427
57428         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
57429         (make_dir_parents): Treat ENOSYS like EEXIST.
57430
57431         Improve quality of diagnostics on restore_cwd failure.
57432         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
57433         (make_dir_parents): Last arg is now int * (for errno), not bool *.
57434         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
57435         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
57436         each time through the loop.  Do not diagnose restore_cwd failure;
57437         that is the caller's job (and perhaps the caller does not care).
57438
57439         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
57440         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
57441         If the file already exists but is not a directory, don't bother
57442         to try to make its parents.
57443         Close potential file descriptor leak if we can't chdir("/") (!).
57444         Don't always return true if chdir($PWD) fails; return true only
57445         if the requested action was done successfully (except for the
57446         chdir($PWD)).
57447         Don't log final directory unless we actually made it.
57448         Refactor to avoid duplicate code to fix up permissions.
57449         Don't attempt to fix up parent permissions if chdir($PWD) fails.
57450
57451         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
57452         to make it a bit faster and (I hope) clearer.
57453         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
57454         Fix bug in formats like %2N.
57455
57456         * lib/verify.h: New file.
57457
57458 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57459
57460         Sync from coreutils.
57461         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
57462
57463 2005-09-22  Jim Meyering  <jim@meyering.net>
57464
57465         Sync from coreutils.
57466
57467         * m4/lstat.m4 (gl_FUNC_LSTAT):
57468         Use AC_LIBSOURCES to require lstat.c and lstat.h.
57469         Remove obsolete comment.
57470         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
57471         * m4/xstrtod.m4: Likewise.
57472
57473         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
57474
57475 2005-09-22  Jim Meyering  <jim@meyering.net>
57476
57477         Sync from coreutils.
57478
57479         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
57480
57481         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
57482         the .tm_year member, since otherwise gcc-4.0 would now warn about
57483         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
57484
57485         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
57486         order to avoid an unsuppressible warning from gcc on 64-bit systems.
57487
57488         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
57489         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
57490         when run in a time zone for which daylight savings time is in effect
57491         for the starting date.
57492
57493         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
57494         stop us from restricting permissions of just-created absolute-named
57495         directories.
57496         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
57497         to restore initial working directory.
57498         * lib/mkdir-p.c (make_dir_parents): New parameter:
57499         different_working_dir, to tell caller if/when we change the working
57500         directory and are unable to return to the initial one.
57501         * lib/mkdir-p.h (make_dir_parents): Update prototype.
57502         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
57503         `return false'.  This fixes a bug introduced on 2004-07-30.
57504
57505         * lib/openat.c (fdopendir): Be sure to close the supplied
57506         file descriptor before returning.  This makes our replacement
57507         implementation a little closer to Solaris's, where fdopendir
57508         ties the file descriptor to the returned DIR* pointer.
57509         * lib/openat.c (unlinkat): New function.
57510         * lib/openat.h (unlinkat): Add prototype.
57511         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
57512         (openat_restore_fail): Rename from openat_restore_die.
57513         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
57514
57515         Provide an alternative to exiting immediately upon save_cwd or
57516         restore_cwd failure.  Now, an application can arrange e.g.,
57517         to perform a longjump in that case.
57518         * lib/openat.c: Include dirname.h.
57519         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
57520         (rpl_openat, fdopendir, fstatat): Call openat_save_die
57521         and openat_restore_die rather than calling error directly.
57522         Don't include "error.h" or "exitfail.h"; they're no longer needed.
57523
57524         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
57525         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
57526         define.
57527
57528         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
57529         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
57530                             int utc, int nanoseconds);
57531         Background:
57532         date should not have to allocate a megabyte of virtual memory to
57533         handle a format argument like +%1048575T.  When implemented with
57534         strftime, it must allocate such a buffer, use strftime to fill it
57535         in, print it, then free it.
57536         With fprintftime, it simply prints everything and exits.
57537         With no need for memory allocation, that's one fewer way to fail.
57538         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
57539         optional field width, not before, so we accept %9:z, not %:9z.
57540         (my_strftime): Be sure to use L_('x') for literals.
57541
57542         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
57543         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
57544         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
57545         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
57546         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
57547         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
57548         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
57549         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
57550         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
57551         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
57552         * lib/xgethostname.c, lib/xreadlink.c:
57553         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
57554
57555         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
57556         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
57557         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
57558         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
57559         and don't include <sys/file.h>).
57560
57561 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
57562
57563         Sync from coreutils.
57564
57565         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
57566         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
57567         [!LDAV_DONE]: Avoid unused variable warning.
57568
57569 2005-09-21  Bruno Haible  <bruno@clisp.org>
57570
57571         * lib/unicodeio.h (unicode_to_mb): New declaration.
57572
57573 2005-09-20  Derek Price  <derek@ximbiot.com>
57574
57575         * lib/getaddrinfo.c: Don't include <netdb.h> included from
57576         getaddrinfo.h.
57577
57578 2005-09-20  Bruno Haible  <bruno@clisp.org>
57579
57580         * gnulib-tool: Remove trailing slashes from the values specified for
57581         --source-base, --m4-base, --tests-base, --aux-dir.
57582         Suggested by Simon Josefsson <jas@extundo.com>.
57583
57584 2005-09-20  Bruno Haible  <bruno@clisp.org>
57585
57586         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
57587         func_modules_to_filelist, func_import, func_create_testdir): Make all
57588         sorting results locale-independent, so that gnulib-cache.m4 doesn't
57589         change when gnulib-tool is invoked in a different locale.
57590
57591 2005-09-19  Simon Josefsson  <jas@extundo.com>
57592
57593         * m4/socklen.m4: Fix typo.
57594
57595 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57596
57597         Use a consistent style for including <config.h>.
57598         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
57599         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
57600         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
57601         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
57602         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
57603         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
57604         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
57605         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
57606         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
57607         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
57608         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
57609         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
57610         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
57611         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
57612         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
57613         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
57614         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
57615         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
57616         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
57617         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
57618         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
57619         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
57620         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
57621         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
57622         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
57623         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
57624         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
57625         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
57626         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
57627         lib/xstrtoumax.c, lib/yesno.c:
57628         Standardize inclusion of config.h.
57629         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
57630         lib/inttostr.h:  Removed inclusion of config.h from header files.
57631         * lib/inttostr.c:  Adjusted in-tree users.
57632         * lib/timespec.h: Remove superfluous warning to include config.h.
57633         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
57634         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
57635         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
57636         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
57637         config.h with HAVE_CONFIG_H.
57638
57639 2005-09-19  Jim Meyering  <jim@meyering.net>
57640
57641         * modules/pathmax (License): Change to LGPL.
57642
57643 2005-09-19  Derek Price  <derek@ximbiot.com>
57644
57645         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
57646
57647 2005-09-19  Bruno Haible  <bruno@clisp.org>
57648
57649         * gnulib-tool (import): Provide default for --tests-base.
57650
57651 2005-09-19  Bruno Haible  <bruno@clisp.org>
57652
57653         * doc/quote.texi: New file, extracted from gnulib.texi.
57654         * doc/ctime.texi: New file, extracted from gnulib.texi.
57655         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
57656         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
57657         * doc/gnulib.texi: Include them.
57658
57659 2005-09-18  Bruno Haible  <bruno@clisp.org>
57660
57661         Portability fix.
57662         * gnulib-tool (func_readlink): New function.
57663         (func_ln_if_changed): Use it.
57664
57665 2005-09-18  Bruno Haible  <bruno@clisp.org>
57666
57667         * gnulib-tool: Support --with-tests also with --import.
57668         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
57669         (func_import): Use variables $testsbase and $inctests. Emit a
57670         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
57671         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
57672         SUBDIRS += $testsdir.
57673         (func_create_testdir): Update.
57674
57675 2005-09-18  Bruno Haible  <bruno@clisp.org>
57676
57677         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
57678         instead of $dry_run.
57679         (func_cp_if_changed, func_mv_if_changed): Remove functions.
57680         (func_ln_if_changed): Don't handle dry-run here.
57681         (func_import): In dry-run mode, detect more precisely which actions
57682         would be performed, and don't use "...ing" verbs.
57683
57684 2005-09-18  Bruno Haible  <bruno@clisp.org>
57685
57686         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
57687         (func_import): Use join on two temporary files instead of three nested
57688         loops, in order to determine which files are new or old.
57689
57690 2005-09-18  Bruno Haible  <bruno@clisp.org>
57691
57692         * gnulib-tool (func_import): Comment out code that spits out the
57693         new files with --dry-run.
57694
57695 2005-09-18  Bruno Haible  <bruno@clisp.org>
57696
57697         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
57698
57699 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57700
57701         * lib/stat-time.h: New file.
57702         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
57703         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
57704         in a different way.
57705         (timespec_cmp): New function.
57706         * lib/utimecmp.c: Include stat-time.h.
57707         (SYSCALL_RESOLUTION): Depend on whether various struct stat
57708         members exist, not on the obsolescent ST_MTIM_NSEC.
57709         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
57710
57711 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57712
57713         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
57714
57715 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57716
57717         * MODULES.html.sh (File system functions): Add stat-time.
57718         * modules/stat-time: New file.
57719         * modules/timespec (Files): Remove m4/st_mtim.m4; this
57720         is now done in a different way, by the stat-time module.
57721         * modules/utimecmp (Depends-on): Add stat-time.
57722
57723 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57724
57725         * m4/st_mtim.m4: Remove.  Superseded by...
57726         * m4/stat-time.m4: New file.
57727         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
57728         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
57729
57730 2005-09-15  Derek Price  <derek@ximbiot.com>
57731
57732         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
57733
57734 2005-09-15  Derek Price  <derek@ximbiot.com>
57735
57736         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
57737         * lib/regex_internal.c: Ditto, using this...
57738         (__GNUC_PREREQ): ...new macro.
57739         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
57740         using...
57741         (__GNUC_PREREQ): ...this new macro.
57742
57743         * lib/strstr.h: Include string.h. Define strstr as a macro here.
57744
57745 2005-09-15  Derek Price  <derek@ximbiot.com>
57746             Paul Eggert  <eggert@cs.ucla.edu>
57747
57748         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
57749         changes, consolidating in...
57750         * lib/regex_internal.h: ...this file.
57751
57752 2005-09-13  Jim Meyering  <jim@meyering.net>
57753
57754         * lib/canon-host.c: Filter through gnu indent and reword comments
57755         slightly.
57756         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
57757
57758 2005-09-13  Derek Price  <derek@ximbiot.com>
57759
57760         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
57761         failure.
57762         Reported by Jim Meyering  <jim@meyering.net>.
57763
57764 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57765
57766         * lib/base64.c: Typo.
57767         (base64_encode): Put b64str in initialized data section.
57768
57769 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
57770
57771         Merge glibc and coreutils changes into gnulib, plus a few
57772         extra fixes.
57773         * lib/md5.c: Use #error rather than a string.
57774         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
57775         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
57776         (__attribute__): Define to empty for non recent-GCC.
57777         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
57778         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
57779         Renamed from their non-__ counterparts, with new macros replacing
57780         them if not _LIBC.  Add __THROW attribute.
57781         (rol): Remove.
57782         (struct md5_ctx): Align buffer if using GCC.
57783         * lib/sha1.h (struct sha1_ctx): Likewise.
57784         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
57785         The old name was backwards.
57786         (NOTSWAP): Remove; not used.
57787         (rol): New macro, moved here from md5.h.
57788         (sha1_process_block): Remove a FIXME that doesn't make sense.
57789
57790 2005-09-12  Derek Price  <derek@ximbiot.com>
57791
57792         Return usable errors from canon-host.
57793         * lib/canon-host.h: New file.
57794         * lib/canon-host.c (canon_host): Wrap...
57795         (canon_host_r): ...this new function, which now relies exclusively on
57796         getaddrinfo.
57797         (ch_strerror): New function.
57798         (last_cherror): New global.
57799         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
57800         interface.
57801         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
57802         void *.
57803         (freeaddrinfo): Free ai->ai_canonname when set.
57804
57805 2005-09-12  Derek Price  <derek@ximbiot.com>
57806
57807         Make canon-host require getaddrinfo.
57808         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
57809         AC_LIBSOURCE canon-host.h.  Call...
57810         (gl_PREREQ_CANON_HOST): ...this new function, which requires
57811         gl_GETADDRINFO.
57812         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
57813
57814 2005-09-12  Derek Price  <derek@ximbiot.com>
57815
57816         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
57817         LGPL.
57818         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
57819
57820 2005-09-12  Derek Price  <derek@ximbiot.com>
57821
57822         * lib/gai_strerror.c: Include config.h when available.  Include
57823         getaddrinfo.h before other headers to test interface.
57824         Reported by Larry Jones <lawrence.jones@ugs.com>.
57825
57826 2005-09-12  Derek Price  <derek@ximbiot.com>
57827             Paul Eggert  <eggert@cs.ucla.edu>
57828
57829         * modules/glob (Files): Add glob-libc.h.
57830
57831 2005-09-12  Derek Price  <derek@ximbiot.com>
57832             Paul Eggert  <eggert@cs.ucla.edu>
57833
57834         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
57835         glob_.h, glob-libc.h.
57836         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
57837
57838 2005-09-12  Derek Price  <derek@ximbiot.com>
57839             Paul Eggert  <eggert@cs.ucla.edu>
57840
57841         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
57842         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
57843         protecting things that should be done only in gnulib contexts.
57844         * lib/glob_.h: New file, containing only the glob things needed for
57845         gnulib.
57846         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
57847         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
57848         (glob, globfree, glob_pattern_p): Now defined simply in terms of
57849         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
57850         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
57851         and to respect the namespace rules better.
57852
57853 2005-09-08  Simon Josefsson  <jas@extundo.com>
57854
57855         * modules/socklen: New file.
57856
57857 2005-09-08  Simon Josefsson  <jas@extundo.com>
57858
57859         * m4/socklen.m4: New file.
57860
57861 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57862
57863         * modules/utimens (Files): Add m4/utimbuf.m4, since
57864         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
57865         Reported by Sergey Poznyakoff.
57866
57867 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57868
57869         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
57870         definitions, since that's the preferred style in glibc.
57871         Fix a minor spacing issue, and update copyright notice to match
57872         glibc's.
57873
57874 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57875
57876         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
57877
57878 2005-09-06  Simon Josefsson  <jas@extundo.com>
57879
57880         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
57881         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
57882
57883 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57884
57885         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
57886         warning.
57887
57888 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57889
57890         * config/srclist.txt: Add glibc bug 1302.
57891
57892 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
57893
57894         Change bitset word type from unsigned int to unsigned long int,
57895         as this has better performance on typical 64-bit hosts.
57896         Port bitset code to hosts with unusual word sizes.
57897         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
57898         (build_collating_symbol):
57899         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
57900         argument is a bitset.  This is merely a style issue, but it makes
57901         it clearer that an entire array is expected.
57902         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
57903         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
57904         Port to the case where bitset_word is not the same as unsigned int.
57905         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
57906         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
57907         Likewise.
57908         * lib/regexec.c (check_dst_limits_calc_pos_1,
57909         check_subexp_matching_top):
57910         (build_trtable, group_nodes_into_DFAstates):
57911         Likewise.
57912         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
57913         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
57914         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
57915         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
57916         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
57917         * lib/regcomp.c (optimize_subexps, lower_subexp):
57918         Work even if bitset_word has holes in its bitwise representation.
57919         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
57920         * lib/regexec.c (check_dst_limits_calc_pos_1,
57921         check_subexp_matching_top):
57922         Likewise.
57923         * lib/regex_internal.c (re_string_reconstruct):
57924         Don't assume UCHAR_MAX == 255.
57925         * lib/regex_internal.h (bitset_set_all): Likewise.
57926         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
57927         All uses changed.
57928         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
57929         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
57930         All uses changed.
57931         (BITSET_WORD_MAX): New macro.
57932         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
57933         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
57934         (bitset_empty, bitset_copy):
57935         Prefer sizeof (bitset) to multiplying it out ourselves.
57936         (bitset_not_merge): Remove; unused.
57937         (bitset_contain): Return bool, not unsigned int with one bit on.
57938         All callers changed.
57939         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
57940         alignment than re_node_set; do this by defining a new internal
57941         type struct dests_alloc and using it to allocate memory.
57942
57943 2005-09-05  Bruno Haible  <bruno@clisp.org>
57944
57945         * gnulib-tool (func_import): Fix comparison in handling of symbolic
57946         links.
57947
57948 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
57949
57950         * modules/size_max (Makefile.am): Add size_max.h
57951
57952 2005-09-04  Derek Price  <derek@ximbiot.com>
57953
57954         * gnulib-tool (func_import): Fix reversed $symbolic logic.
57955
57956 2005-09-03  Simon Josefsson  <jas@extundo.com>
57957
57958         * gnulib-tool: Fix typo.
57959
57960 2005-09-03  Simon Josefsson  <jas@extundo.com>
57961
57962         * config/srclist.txt: Add glibc bug 1293.
57963
57964 2005-09-03  Derek Price  <derek@ximbiot.com>
57965
57966         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
57967         From Larry Jones <lawrence.jones@ugs.com>.
57968
57969 2005-09-02  Simon Josefsson  <jas@extundo.com>
57970
57971         * modules/socklen: New file.
57972
57973 2005-09-02  Simon Josefsson  <jas@extundo.com>
57974
57975         * modules/havelib: New module.
57976
57977         * modules/gettext, modules/iconv, modules/lock, modules/readline:
57978         Use havelib.
57979
57980 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
57981
57982         Check for arithmetic overflow when calculating sizes, to prevent
57983         some buffer-overflow issues.  These patches are conservative, in the
57984         sense that when I couldn't determine whether an overflow was possible,
57985         I inserted a run-time check.
57986         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
57987         macros.
57988         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
57989         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
57990         (re_xnrealloc, re_x2nrealloc): New inline functions.
57991         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
57992         parse_bracket_exp):
57993         (build_equiv_class, build_charclass): Check for arithmetic overflow
57994         in size expression calculations.
57995         * lib/regex_internal.c (re_string_realloc_buffers):
57996         (build_wcs_upper_buffer, re_node_set_add_intersect):
57997         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
57998         (re_dfa_add_node, register_state): Likewise.
57999         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
58000         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
58001         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
58002         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
58003
58004 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
58005
58006         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
58007         m4/ulonglong.m4.  Problem reported by Martin Lambers.
58008
58009 2005-09-02  Bruno Haible  <bruno@clisp.org>
58010
58011         Support for lib vs. lib64 distinction on biarch platforms.
58012         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
58013         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
58014         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
58015
58016 2005-09-02  Bruno Haible  <bruno@clisp.org>
58017
58018         * gnulib-tool (import): In the other first-use case, provide defaults
58019         as well.
58020
58021 2005-09-02  Bruno Haible  <bruno@clisp.org>
58022
58023         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
58024         patches not yet found in the latest gettext release.
58025
58026 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58027
58028         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
58029         to avoid a collision with bits/local_lim.h in glibc.
58030         All uses changed.  Problem reported by Dmitry V. Levin in
58031         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
58032
58033         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
58034         bugs in int versus size_t comparisons.
58035         (re_string_context_at): Fix bug where the code assumed that
58036         Idx is signed.
58037
58038         Use bool where appropriate.
58039         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
58040         All callers changed.
58041         (calc_eclosure_iter): Likewise, for ROOT arg.
58042         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
58043         (build_charclass_op): Likewise, for NON_MATCH arg.
58044         * lib/regex_internal.c (re_string_allocate, re_string_construct):
58045         (re_string_construct_common): Likewise, for ICASE arg.
58046         * lib/regexec.c (re_search_2_stub, re_search_stub):
58047         Likewise, for RET_LEN arg.
58048         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
58049         (set_regs): Likewise, for FL_BACKTRACK arg.
58050         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
58051         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
58052         (calc_eclosure_iter, parse_bracket_exp):
58053         Use bool for internal variables that are booleans.
58054         * lib/regexec.c (re_search_internal, check_matching,
58055         proceed_next_node):
58056         (set_regs, build_sifted_states, sift_states_bkref):
58057         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
58058         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
58059         (find_collation_sequence_value):
58060         Likewise.
58061         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
58062         (re_node_set_compare):
58063         Return bool, not int. All callers changed.
58064         * lib/regexec.c (check_halt_node_context, check_dst_limits):
58065         (build_trtable, check_node_accept): Likewise.
58066         * lib/regex_internal.h: Include stdbool.h.
58067
58068         Fix bugs uncovered when converting to bool.
58069         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
58070         failure instead of charging ahead blindly.
58071         * lib/regex_internal.c (register_state): Likewise.
58072         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
58073         for freeing internal storage.
58074         (group_nodes_into_DFA_states): Use unsigned int, not int, for
58075         bitset pieces used as boolean, to avoid undefined behavior
58076         on hosts that do int overflow checking.
58077
58078 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58079
58080         * config/srclist.txt: Add glibc bugs 1285-1287.
58081
58082 2005-09-01  Jim Meyering  <jim@meyering.net>
58083
58084         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
58085         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
58086         Require gl_STAT_MACROS, too.
58087
58088 2005-09-01  Bruno Haible  <bruno@clisp.org>
58089
58090         * gnulib-tool (import): In the first-use case, provide defaults.
58091
58092 2005-09-01  Bruno Haible  <bruno@clisp.org>
58093
58094         * gnulib-tool (func_import): Remove the .tmp files.
58095
58096 2005-09-01  Bruno Haible  <bruno@clisp.org>
58097
58098         * gnulib-tool (func_import): Fix handling of symbolic links.
58099
58100 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58101
58102         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
58103         old glibc regex code mishandles strings longer than 2**31 bytes.
58104         This patch fixes this when the regex code is used in gnulib
58105         (i.e., outside glibc).
58106
58107         This patch should not affect the use of the regex code inside
58108         glibc.  No doubt this problem also needs to be handled for glibc
58109         as well, but the result will be an incompatible change to the
58110         glibc ABI, and the old ABI will have to be supported too.  That
58111         can be the the subject for another patch.
58112
58113         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
58114         governing whether the rest of this patch is active.  By default,
58115         the macro is disabled and the patch has no effect.
58116         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
58117         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
58118         (struct re_pattern_buffer, re_search, re_search_2, re_match):
58119         (re_match_2, re_set_registers): Use the new types.
58120         * lib/regex_internal.h (Idx, re_hashval_t): New types.
58121         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
58122         New macros.
58123         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
58124         (re_string_context_at, bin_tree_t, re_dfastate_t):
58125         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
58126         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
58127         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
58128         (re_string_char_size_at, re_string_wchar_at):
58129         (re_string_elem_size_at):
58130         Use the new types and macros to port to 64-bit hosts.
58131         Use unsigned types for internal values, so that the code
58132         mostly works even for arrays larger than SSIZE_MAX.
58133         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
58134         (search_duplicated_node, calc_eclosure_iter, fetch_number):
58135         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
58136         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
58137         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
58138         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
58139         (calc_inveclosure, parse_dup_op, build_range_exp):
58140         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
58141         (fetch_number, create_token_tree, mark_opt_subexp):
58142         Likewise.
58143         * lib/regex_internal.c (re_string_construct_common,
58144         create_ci_newstate):
58145         (create_cd_newstate, re_string_allocate, re_string_construct):
58146         (re_string_realloc_buffers, build_wcs_upper_buffer):
58147         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
58148         (re_string_reconstruct, re_string_peek_byte_case):
58149         (re_string_fetch_byte_case, re_string_context_at):
58150         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
58151         (re_node_set_init_copy, re_node_set_add_intersect):
58152         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58153         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58154         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
58155         (re_acquire_state, re_acquire_state_context, register_state):
58156         Likewise.
58157         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
58158         search_cur_bkref_entry):
58159         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
58160         (re_search_internal, re_search_2_stub, re_search_stub)
58161         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
58162         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
58163         (update_cur_sifted_state, check_dst_limits):
58164         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
58165         (check_subexp_limits, sift_states_bkref, merge_state_array):
58166         (check_subexp_matching_top, get_subexp, get_subexp_sub):
58167         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
58168         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
58169         (expand_bkref_cache, check_node_accept_bytes):
58170         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
58171         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
58172         (acquire_init_state_context, check_halt_node_context):
58173         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
58174         (sift_states_backward, clean_state_log_if_needed):
58175         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
58176         (find_recover_state, transit_state_sb, transit_state_mb):
58177         (transit_state_bkref, build_trtable, match_ctx_clean):
58178         Likewise.
58179         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
58180         to work around an assumption that REG_MISSING is negative.
58181
58182         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
58183         (seek_collating_symbol_entry) [defined _LIBC]:
58184         (lookup_collation_sequence_value) [defined _LIBC]:
58185         (build_range_exp, build_collating_symbol) [defined _LIBC]:
58186         Use prototypes rather than old-style function definitions.
58187         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
58188         (transit_state_sb) [0]:
58189         (find_collation_sequence_value) [defined _LIBC]: Likewise.
58190
58191         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
58192         rm_eo.
58193
58194         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
58195         (optimize_subexps, lower_subexp):
58196         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
58197         since the signed shift might overflow.  Use 1u<<31 instead.
58198         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
58199         Likewise.
58200         * lib/regexec.c (check_dst_limits_calc_pos_1,
58201         check_subexp_matching_top): Likewise.
58202
58203         * lib/regcomp.c (optimize_subexps, lower_subexp):
58204         Use CHAR_BIT rather than 8, for clarity.
58205         * lib/regexec.c (check_dst_limits_calc_pos_1):
58206         (check_subexp_matching_top): Likewise.
58207         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
58208         have to worry about portability issues when shifting it left.
58209         Remove no-longer-needed test for table_size > 0.
58210         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
58211         in a word, as the resulting behavior is undefined.
58212         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
58213         in one case, a <= should have been an <, and in another case the
58214         whole test was missing.
58215         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
58216         the standard name CHAR_BIT.
58217         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
58218         this is not true on one's complement and signed-magnitude hosts.
58219
58220         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
58221         next_last_offset.
58222         (struct re_dfa_t): Remove unused member states_alloc.
58223         * lib/regcomp.c (init_dfa): Don't initialize unused members.
58224
58225 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58226
58227         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
58228         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
58229         and large-file glibc and in 32-bit large-file Solaris.
58230
58231 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58232
58233         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
58234         lengths fit in regoff_t; this isn't true if regoff_t is the same
58235         width as size_t.
58236         * lib/regex.c (re_search_internal): 5th arg is LAST_START
58237         (= START + RANGE) instead of RANGE.  This avoids overflow
58238         problems when regoff_t is the same width as size_t.
58239         All callers changed.
58240         (re_search_2_stub): Check for overflow when adding the
58241         sizes of the two strings.
58242         (re_search_stub): Check for overflow when adding START
58243         to RANGE; if it occurs, substitute the extreme value.
58244
58245 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58246
58247         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
58248
58249 2005-08-31  Jim Meyering  <jim@meyering.net>
58250
58251         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
58252         a pointer-to-const.
58253         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
58254         (register_state): Likewise.
58255         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
58256         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
58257         (group_nodes_into_DFAstates): Likewise.
58258
58259 2005-08-31  Jim Meyering  <jim@meyering.net>
58260
58261         * check-module: Add a FIXME comment.
58262
58263 2005-08-31  Eric Blake  <ebb9@byu.net>
58264
58265         * modules/unistd-safer (Files): Add unistd--.h.
58266         * modules/stdio-safer (Files): Add stdio--.h.
58267
58268 2005-08-31  Derek Price  <derek@ximbiot.com>
58269
58270         * lib/getdelim.c (getdelim): Return EOF on EOF.
58271         Reported by Larry Jones <lawrence.jones@ugs.com>.
58272
58273 2005-08-31  Bruno Haible  <bruno@clisp.org>
58274
58275         Avoid unnecessary diffs in the generated lib/Makefile.am.
58276         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
58277         the generated files.
58278         (func_import): Don't set cmd.
58279
58280 2005-08-31  Bruno Haible  <bruno@clisp.org>
58281
58282         * lib/strstr.c: Include <stddef.h>, for NULL.
58283         * lib/strcasestr.c: Likewise.
58284         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58285
58286 2005-08-31  Bruno Haible  <bruno@clisp.org>
58287
58288         * gnulib-tool: New option --macro-prefix.
58289         (func_import): Use macro_prefix.
58290         (import): Handle option --macro-prefix.
58291
58292 2005-08-31  Bruno Haible  <bruno@clisp.org>
58293
58294         * gnulib-tool (import): Rename most ac_* variables to cached_*.
58295         Also use new variables cached_lgpl, cached_libtool.
58296
58297 2005-08-31  Bruno Haible  <bruno@clisp.org>
58298
58299         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
58300         always instantiating them.
58301
58302 2005-08-31  Bruno Haible  <bruno@clisp.org>
58303
58304         * gnulib-tool (func_import): Read the previous cached settings
58305         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
58306         earlier added by gnulib but are now dropped. Warn when a gnulib file
58307         overwrites a non-gnulib file.
58308
58309 2005-08-31  Bruno Haible  <bruno@clisp.org>
58310
58311         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
58312         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
58313         projects that don't keep autogenerated files in CVS. Put into
58314         actioncmd only the specified modules, not the transitive closure.
58315
58316 2005-08-31  Bruno Haible  <bruno@clisp.org>
58317
58318         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
58319         Create directories that shall be filled.
58320         (import): Don't look for gl_* macros in configure.ac. Recurse across
58321         all directories containing a gnulib-cache.m4 files, if meaningful.
58322
58323 2005-08-31  Bruno Haible  <bruno@clisp.org>
58324
58325         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
58326         (import): Set seen_libtool when we see gl_LIBTOOL.
58327
58328 2005-08-31  Bruno Haible  <bruno@clisp.org>
58329
58330         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
58331         declaration macro definitions from generated gnulib.m4.
58332
58333 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
58334
58335         * lib/iconvme.h: Add prototype for iconv_alloc.
58336
58337 2005-08-29  Simon Josefsson  <jas@extundo.com>
58338
58339         * lib/iconvme.c: Fix errno.
58340
58341 2005-08-29  Bruno Haible  <bruno@clisp.org>
58342
58343         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
58344         that it works when the directory contains spaces.
58345
58346 2005-08-29  Bruno Haible  <bruno@clisp.org>
58347
58348         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
58349
58350 2005-08-29  Bruno Haible  <bruno@clisp.org>
58351
58352         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
58353         Emit more advice.
58354
58355 2005-08-29  Bruno Haible  <bruno@clisp.org>
58356         and Stepan Kasal  <kasal@ucw.cz>
58357
58358         * check-module: If more parameters are given, check each of them
58359         separately; add more exceptions, as noted by Jim Meyering.
58360         (check_module): New procedure.
58361         (%exempt_header): Now contains all exceptions.
58362
58363 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
58364
58365         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
58366
58367 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
58368
58369         * lib/iconvme.c: Split iconv_string into iconv_alloc.
58370
58371 2005-08-28  Bruno Haible  <bruno@clisp.org>
58372
58373         * m4/gnulib-tool.m4: New file.
58374
58375 2005-08-27  Jim Meyering  <jim@meyering.net>
58376
58377         * modules/unistd-safer (Files): Add pipe-safer.c.
58378         * modules/fcntl-safer (Files): Add creat-safer.c.
58379
58380 2005-08-27  Jim Meyering  <jim@meyering.net>
58381
58382         * m4/stdlib-safer.m4: New file.  From coreutils.
58383         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
58384         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
58385         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
58386         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
58387         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
58388
58389 2005-08-27  Jim Meyering  <jim@meyering.net>
58390
58391         * lib/fopen-safer.c: Merge minor changes from coreutils.
58392         * lib/dup-safer.c: Likewise.
58393         * lib/fd-safer.c: Likewise.
58394
58395         Merge from coreutils.
58396         * lib/stdio--.h: New file.
58397         * lib/stdlib--.h: New file.
58398         * lib/mkstemp-safer.c: New file.
58399
58400         GNU tar needs these.
58401         * lib/pipe-safer.c: New file.
58402         * lib/creat-safer.c: New file.
58403         * lib/fcntl--.h (creat): Define to creat_safer.
58404         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
58405         * lib/unistd--.h (pipe): Define to pipe_safer.
58406         * lib/unistd-safer.h: Declare pipe_safer.
58407
58408 2005-08-26  Simon Josefsson  <jas@extundo.com>
58409
58410         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
58411         Haible <bruno@clisp.org>.
58412
58413 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
58414
58415         * lib/regex_internal.h: Remove all references to
58416         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
58417         or better.
58418         (bitset_not, bitset_merge, bitset_not_merge):
58419         (bitset_mask, re_string_allocate, re_string_construct):
58420         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
58421         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
58422         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
58423         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
58424         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58425         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58426         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
58427         (re_acquire_state_context):
58428         Remove unnecessary forward decls.
58429         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
58430         Put __attribute at function definition,
58431         now that the function decl has been removed.
58432         * lib/regex_internal.c (re_string_peek_byte_case):
58433         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
58434         Likewise.
58435
58436 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
58437
58438         * m4/regex.m4: Add AC_PREREQ(2.50).
58439         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
58440
58441 2005-08-25  Simon Josefsson  <jas@extundo.com>
58442
58443         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
58444         __fsetlocking.
58445
58446 2005-08-25  Simon Josefsson  <jas@extundo.com>
58447
58448         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
58449         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
58450         GLIBC specific code.
58451
58452 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58453
58454         Make regex safe for g++.  This fixes one real bug (an "err"
58455         that should have been "*err").  g++ problem reported by
58456         Sam Steingold.
58457         * lib/regex_internal.h (re_calloc): New macro, consistent with
58458         re_malloc etc.  All callers of calloc changed to use re_calloc.
58459         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
58460         not int.  All callers changed.
58461         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
58462         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
58463         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
58464         (find_recover_state): Change "err" to "*err"; this fixes what
58465         appears to be a real bug.
58466         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
58467         versus int.
58468
58469 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58470
58471         * modules/regex (Depends-on): Add malloc, since the code
58472         assumes that !malloc(0) means failure.
58473
58474 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58475
58476         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
58477
58478         alloca modernization/simplification for regex.
58479         * lib/regex.c: Remove portability cruft for alloca.  This no longer
58480         needs to be at the start of the file, and can be moved into
58481         regex_internal.h and simplified.
58482         * lib/regex_internal.h: Include <alloca.h>.
58483         (__libc_use_alloca) [!defined _LIBC]: New macro.
58484         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
58485         now works outside glibc.
58486
58487 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58488
58489         * config/srclist.txt: Add glibc bugs 1241, 1245.
58490
58491 2005-08-25  Jim Meyering  <jim@meyering.net>
58492
58493         * lib/open-safer.c: Include <config.h>.
58494         Otherwise, we'd lose LARGEFILE support in any file using
58495         e.g. "fcntl--.h"
58496
58497 2005-08-25  Bruno Haible  <bruno@clisp.org>
58498
58499         * m4/minmax.m4: Require autoconf 2.52.
58500         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
58501         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
58502         alternatives of translit over the alphabet.
58503         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
58504
58505 2005-08-24  Simon Josefsson  <jas@extundo.com>
58506
58507         * tests/test-getpass.c: New file.
58508
58509 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58510
58511         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
58512         for GNU regex features.
58513
58514 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58515
58516         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
58517         * lib/regex.h (regerror): Likewise.
58518
58519         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
58520         requires this.  (The code never needed it.)
58521
58522         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
58523         All uses of recently-renamed identifiers changed to use the new,
58524         POSIX-compliant names.  The code will build and run just fine
58525         without these changes, but it's better to eat our own dog food
58526         and use the standard-conforming names.
58527
58528         * lib/regex.h: Fix a multitude of POSIX name space violations.
58529         These changes have an effect only for programs that define
58530         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
58531         do not change anything for programs compiled in the normal way.
58532         Also, there is no effect on the ABI.
58533
58534         (_REGEX_SOURCE): New macro.
58535         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
58536         defined and _GNU_SOURCE is not; this fixes a name space violation.
58537
58538         Rename the following macros to obey POSIX requirements.
58539         The old names are still visible as macros if _REGEX_SOURCE is defined.
58540         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
58541         RE_BACKSLASH_ESCAPE_IN_LISTS.
58542         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
58543         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
58544         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
58545         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
58546         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
58547         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
58548         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
58549         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
58550         (REG_INTERVALS): renamed from RE_INTERVALS.
58551         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
58552         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
58553         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
58554         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
58555         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
58556         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
58557         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
58558         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
58559         RE_UNMATCHED_RIGHT_PAREN_ORD.
58560         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
58561         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
58562         (REG_DEBUG): renamed from RE_DEBUG.
58563         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
58564         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
58565         unusual, since we can't clash with the POSIX REG_ICASE.
58566         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
58567         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
58568         (REG_NO_SUB): renamed from RE_NO_SUB.
58569         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
58570         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
58571         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
58572         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
58573         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
58574         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
58575         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
58576         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
58577         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
58578         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
58579         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
58580         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
58581         RE_SYNTAX_POSIX_MINIMAL_BASIC.
58582         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
58583         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
58584         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
58585         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
58586         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
58587         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
58588         (REG_FIXED): Renamed from REGS_FIXED.
58589         (REG_NREGS): Renamed from RE_NREGS.
58590
58591         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
58592         of other REG_* macros, since POSIX says the user is allowed to
58593         #undef these macros selectively.
58594
58595         (reg_errcode_t): Update comment stating what other tables need
58596         to be consistent.
58597
58598         Rename the following enum values to obey POSIX requirements.
58599         The old names are still visible as macros.
58600         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
58601         is not defined, since GNU is supposed to be a superset of POSIX as
58602         much as possible, and since we want reg_errcode_t to be a signed
58603         type for implementation consistency.
58604         (_REG_NOERROR): Renamed from REG_NOERROR.
58605         (_REG_NOMATCH): Renamed from REG_NOMATCH.
58606         (_REG_BADPAT): Renamed from REG_BADPAT.
58607         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
58608         (_REG_ECTYPE): Renamed from REG_ECTYPE.
58609         (_REG_EESCAPE): Renamed from REG_EESCAPE.
58610         (_REG_ESUBREG): Renamed from REG_ESUBREG.
58611         (_REG_EBRACK): Renamed from REG_EBRACK.
58612         (_REG_EPAREN): Renamed from REG_EPAREN.
58613         (_REG_EBRACE): Renamed from REG_EBRACE.
58614         (_REG_BADBR): Renamed from REG_BADBR.
58615         (_REG_ERANGE): Renamed from REG_ERANGE.
58616         (_REG_ESPACE): Renamed from REG_ESPACE.
58617         (_REG_BADRPT): Renamed from REG_BADRPT.
58618         (_REG_EEND): Renamed from REG_EEND.
58619         (_REG_ESIZE): Renamed from REG_ESIZE.
58620         (_REG_ERPAREN): Renamed from REG_ERPAREN.
58621         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
58622         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
58623         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
58624         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
58625
58626         (_REG_RE_NAME, _REG_RM_NAME): New macros.
58627         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
58628         changed.  But support the old name if the new one is not defined
58629         and if _REGEX_SOURCE.
58630
58631         Change the following member names in struct re_pattern_buffer.
58632         The old names are still supported if !_REGEX_SOURCE.
58633         The new names are always supported, regardless of _REGEX_SOURCE.
58634         (re_buffer): Renamed from buffer.
58635         (re_allocated): Renamed from allocated.
58636         (re_used): Renamed from used.
58637         (re_syntax): Renamed from syntax.
58638         (re_fastmap): Renamed from fastmap.
58639         (re_translate): Renamed from translate.
58640         (re_can_be_null): Renamed from can_be_null.
58641         (re_regs_allocated): Renamed from regs_allocated.
58642         (re_fastmap_accurate): Renamed from fastmap_accurate.
58643         (re_no_sub): Renamed from no_sub.
58644         (re_not_bol): Renamed from not_bol.
58645         (re_not_eol): Renamed from not_eol.
58646         (re_newline_anchor): Renamed from newline_anchor.
58647
58648         Change the following member names in struct re_registers.
58649         The old names are still supported if !_REGEX_SOURCE.
58650         The new names are always supported, regardless of _REGEX_SOURCE.
58651         (rm_num_regs): Renamed from num_regs.
58652         (rm_start): Renamed from start.
58653         (rm_end): Renamed from end.
58654
58655         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
58656         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
58657         Prepend __ to parameter names.
58658
58659         Undo yesterday's changes.
58660
58661 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58662
58663         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
58664         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
58665         lib/regex.c.
58666
58667 2005-08-24  Jim Meyering  <jim@meyering.net>
58668
58669         Sync from coreutils.
58670         * m4/fcntl-safer.m4: New file.
58671
58672         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
58673         and object files for this module.
58674
58675 2005-08-24  Jim Meyering  <jim@meyering.net>
58676
58677         Sync from coreutils.
58678         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
58679
58680 2005-08-24  Jim Meyering  <jim@meyering.net>
58681
58682         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
58683         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
58684
58685 2005-08-24  Jim Meyering  <jim@meyering.net>
58686
58687         * modules/fcntl-safer: New module.
58688         * modules/fts (Depends-on): Add fcntl-safer.
58689         * MODULES.html.sh (File descriptor based Input/Output):
58690         Add fcntl-safer.
58691
58692 2005-08-24  Bruno Haible  <bruno@clisp.org>
58693
58694         Support for unit test modules.
58695         * modules/README: Mention tests modules.
58696         * modules/TEMPLATE-TESTS: New file.
58697         * gnulib-tool: New options --extract-tests-module, --with-tests and
58698         --tests-base (unused for the moment).
58699         (testsbase, inctests): New variables.
58700         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
58701         (func_verify_module): Exclude TEMPLATE-TESTS.
58702         (func_verify_nontests_module, func_verify_tests_module): New functions.
58703         (func_get_dependencies): Add implicit dependency for tests modules.
58704         (func_get_tests_module): New function.
58705         (func_modules_transitive_closure): When --with-tests was specified,
58706         include the unit tests as well, unless explicitly avoided.
58707         (func_emit_lib_Makefile_am): Ignore the tests modules here.
58708         (func_emit_tests_Makefile_am): New function.
58709         (func_create_testdir): When --with-tests was specified, emit a
58710         tests/ directory.
58711         * MODULES.html.sh (Future developments): Update.
58712
58713 2005-08-24  Bruno Haible  <bruno@clisp.org>
58714
58715         * modules/tls-tests: New file.
58716         * tests/test-tls.c: New file, from GNU gettext.
58717
58718 2005-08-24  Bruno Haible  <bruno@clisp.org>
58719
58720         * modules/lock-tests: New file.
58721         * tests/test-lock.c: New file, from GNU gettext.
58722
58723 2005-08-24  Bruno Haible  <bruno@clisp.org>
58724
58725         * lib/lock.h: Add multiple inclusion guard.
58726         * lib/tls.h: Add multiple inclusion guard.
58727
58728 2005-08-24  Bruno Haible  <bruno@clisp.org>
58729
58730         * gnulib-tool: Add support for the --aux-dir option to
58731         --create-testdir, --create-megatestdir, --test, --megatest.
58732         (func_create_testdir, func_create_megatestdir): Optionally emit a
58733         AC_CONFIG_AUX_DIR directive.
58734         (create-testdir, create-megatestdir, test, megatest): Provide a
58735         default value for $auxdir.
58736
58737 2005-08-24  Bruno Haible  <bruno@clisp.org>
58738
58739         * gnulib-tool (import): Use compound statement instead of subshell
58740         where possible.
58741
58742 2005-08-24  Bruno Haible  <bruno@clisp.org>
58743
58744         * gnulib-tool (import): Change --aux-dir default to "build-aux".
58745
58746 2005-08-24  Bruno Haible  <bruno@clisp.org>
58747
58748         * gnulib-tool (func_version): Update.
58749
58750 2005-08-24  Bruno Haible  <bruno@clisp.org>
58751
58752         * gnulib-tool (func_import, func_create_testdir,
58753         func_create_megatestdir): Quote all autoconf macro arguments.
58754
58755 2005-08-24  Bruno Haible  <bruno@clisp.org>
58756
58757         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
58758         option --force, because --force causes the aclocal.m4 of each
58759         subdirectory to be newer than the corresponding config.h.in.
58760
58761 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58762
58763         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
58764         All contents moved to gl_REGEX.
58765         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
58766         assume that it does.
58767
58768 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58769
58770         * lib/regex.h (REG_NOSYS)
58771         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
58772         Define, since POSIX requires it as of 2001.
58773         (_REG_ENOSYS)
58774         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
58775         New private symbol, used to keep the enum signed in all cases.
58776         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
58777         Youngman in
58778         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
58779
58780         * lib/regex_internal.c (re_string_skip_chars, register_state):
58781         (calc_state_hash):
58782         Remove forward decls; no longer needed now that we use prototypes.
58783         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
58784         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
58785         (clean_state_log_if_needed): Likewise.
58786
58787 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58788
58789         * config/srclist.txt: Add glibc bugs 1231-1233.
58790
58791 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58792
58793         Fix problems reported by Sam Steingold in
58794         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
58795         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
58796         assumed that reg_errcode_t is a signed type, which is not
58797         necessarily true if _XOPEN_SOURCE is not defined.
58798         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
58799         since some compilers warn about it otherwise.
58800
58801 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58802
58803         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
58804         (init_word_char, create_initial_state, duplicate_node_closure):
58805         (fetch_token, peek_token_bracket, build_range_exp):
58806         (build_collating_symbol): Remove forward decls; no longer needed
58807         now that we use prototypes.
58808
58809         * lib/regcomp.c:
58810         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
58811         (re_compile_fastmap_iter, regcomp, regerror, regfree):
58812         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
58813         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
58814         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
58815         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
58816         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
58817         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
58818         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
58819         (build_range_exp, build_collating_symbol, parse_bracket_exp):
58820         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
58821         (build_charclass, build_charclass_op, fetch_number, create_tree):
58822         (create_token_tree, mark_opt_subexp, duplicate_tree):
58823         Use prototypes rather than old-style definitions.
58824
58825         * lib/regex_internal.c:
58826         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
58827         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
58828         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
58829         (re_string_reconstruct, re_string_peek_byte_case):
58830         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
58831         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
58832         (re_node_set_init_copy, re_node_set_add_intersect):
58833         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58834         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58835         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
58836         (re_acquire_state, re_acquire_state_context, register_state):
58837         (create_ci_newstate, create_cd_newstate, free_state):
58838         Likewise.
58839         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
58840         re_search_2):
58841         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
58842         (re_search_internal, prune_impossible_nodes):
58843         (acquire_init_state_context, check_matching, static):
58844         (check_halt_node_context, check_halt_state_context, proceed_next_node):
58845         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
58846         (update_regs, sift_states_backward, build_sifted_states):
58847         (clean_state_log_if_needed, merge_state_array):
58848         (update_cur_sifted_state, add_epsilon_src_nodes):
58849         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
58850         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
58851         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
58852         (find_recover_state, check_subexp_matching_top, transit_state_mb):
58853         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
58854         (check_arrival, check_arrival_add_next_nodes):
58855         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
58856         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
58857         (check_node_accept_bytes, check_node_accept, extend_buffers):
58858         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
58859         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
58860         (sift_ctx_init):
58861         Likewise.
58862
58863         * lib/regex_internal.h:
58864         (re_string_allocate, re_string_construct, re_string_reconstruct):
58865         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
58866         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
58867         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
58868         (re_string_context_at, re_string_peek_byte_case):
58869         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
58870         is defined, since we now use prototypes always.
58871
58872         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
58873         C89 or better.  All uses removed.
58874
58875 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58876
58877         * config/srclist.txt: Add glibc bugs 1220-1227.
58878
58879 2005-08-20  Jim Meyering  <jim@meyering.net>
58880
58881         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
58882         of unused local, dfa.
58883
58884 2005-08-20  Bruno Haible  <bruno@clisp.org>
58885
58886         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
58887
58888 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58889
58890         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
58891         (re_node_set_insert_last, re_dfa_add_node):
58892         Rename local variables to avoid GCC shadowing warnings.
58893
58894 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58895
58896         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
58897         [defined lint]: Suppress bogus uninitialized-variable warnings.
58898
58899         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
58900         and let the caller return REG_ESPACE if out of space.  This
58901         removes an uninitialied-variable warning with GCC 4.0.1, and also
58902         avoids taking the address of a local variable.  All callers
58903         changed.
58904
58905 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58906
58907         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
58908         $LIBCSRC/posix/regexec.c.
58909         Add glibc bug 1217 for regcomp.c.
58910
58911 2005-08-19  Jim Meyering  <jim@meyering.net>
58912
58913         * lib/regexec.c (proceed_next_node): Redo local variables to
58914         avoid GCC shadowing warnings.
58915
58916 2005-08-18  Bruno Haible  <bruno@clisp.org>
58917
58918         * lib/strstr.c (strstr): Fix return value in multibyte case.
58919         * lib/strcasestr.c (strcasestr): Likewise.
58920
58921 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58922
58923         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
58924
58925 2005-08-17  Jim Meyering  <jim@meyering.net>
58926
58927         Make the %s format (seconds since the epoch) work for a negative
58928         number and when used with a zero-padded field width, e.g. %015s.
58929
58930         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
58931         label so that it precedes the code to set `digits'.  Otherwise,
58932         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
58933         print `00-22'.  Now, it prints `-0022', as it should.
58934
58935 2005-08-17  Bruno Haible  <bruno@clisp.org>
58936
58937         * modules/strstr (Files): Add m4/mbrtowc.m4.
58938         (Depends-on): Add mbuiter.
58939
58940 2005-08-17  Bruno Haible  <bruno@clisp.org>
58941
58942         * modules/strcasestr: New file.
58943         * MODULES.html.sh (String handling, based on ANSI C 89): Add
58944         strcasestr.
58945
58946 2005-08-17  Bruno Haible  <bruno@clisp.org>
58947
58948         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
58949
58950 2005-08-17  Bruno Haible  <bruno@clisp.org>
58951
58952         * modules/mbuiter: New file.
58953         * MODULES.html.sh (Extended multibyte and wide character utilities):
58954         Add mbuiter.
58955
58956 2005-08-17  Bruno Haible  <bruno@clisp.org>
58957
58958         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
58959         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
58960
58961 2005-08-17  Bruno Haible  <bruno@clisp.org>
58962
58963         * m4/strcasestr.m4: New file.
58964
58965 2005-08-17  Bruno Haible  <bruno@clisp.org>
58966
58967         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
58968         * lib/strstr.c: Completely rewritten, with multibyte locale support.
58969
58970 2005-08-17  Bruno Haible  <bruno@clisp.org>
58971
58972         * lib/strcasestr.h: New file.
58973         * lib/strcasestr.c: New file.
58974
58975 2005-08-17  Bruno Haible  <bruno@clisp.org>
58976
58977         * lib/strcasecmp.c: Use mbuiter.h.
58978
58979 2005-08-17  Bruno Haible  <bruno@clisp.org>
58980
58981         * lib/mbuiter.h: New file.
58982
58983 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
58984
58985         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
58986         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
58987         and gl_GETOPT are both invoked via different paths (as happens
58988         with GNU tar CVS because it uses both argp and getopt), the former
58989         wins.
58990
58991 2005-08-16  Bruno Haible  <bruno@clisp.org>
58992
58993         * modules/tls: New file.
58994         * MODULES.html.sh (Multithreading): Add tls.
58995
58996 2005-08-16  Bruno Haible  <bruno@clisp.org>
58997
58998         * modules/strnlen1: New file.
58999         * MODULES.html.sh (String handling): Add strnlen1.
59000
59001 2005-08-16  Bruno Haible  <bruno@clisp.org>
59002
59003         * modules/strcase (Files): Add m4/mbrtowc.m4.
59004         (Depends-on): Add strnlen1, mbchar.
59005
59006 2005-08-16  Bruno Haible  <bruno@clisp.org>
59007
59008         * modules/mbiter: New file.
59009         * MODULES.html.sh (Extended multibyte and wide character utilities):
59010         Add mbiter.
59011
59012 2005-08-16  Bruno Haible  <bruno@clisp.org>
59013
59014         * modules/mbfile: New file.
59015         * MODULES.html.sh (Extended multibyte and wide character utilities):
59016         Add mbfile.
59017
59018 2005-08-16  Bruno Haible  <bruno@clisp.org>
59019
59020         * modules/mbchar: New file.
59021         * MODULES.html.sh (Extended multibyte and wide character utilities):
59022         New section.
59023
59024 2005-08-16  Bruno Haible  <bruno@clisp.org>
59025
59026         * m4/tls.m4: New file, from GNU gettext.
59027
59028 2005-08-16  Bruno Haible  <bruno@clisp.org>
59029
59030         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
59031         always.
59032         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
59033
59034 2005-08-16  Bruno Haible  <bruno@clisp.org>
59035
59036         * m4/mbiter.m4: New file.
59037
59038 2005-08-16  Bruno Haible  <bruno@clisp.org>
59039
59040         * m4/mbfile.m4: New file.
59041
59042 2005-08-16  Bruno Haible  <bruno@clisp.org>
59043
59044         * m4/mbchar.m4: New file.
59045
59046 2005-08-16  Bruno Haible  <bruno@clisp.org>
59047
59048         * lib/tls.h: New file, from GNU gettext.
59049         * lib/tls.c: New file, from GNU gettext.
59050
59051 2005-08-16  Bruno Haible  <bruno@clisp.org>
59052
59053         * lib/strnlen1.h: New file.
59054         * lib/strnlen1.c: New file.
59055
59056 2005-08-16  Bruno Haible  <bruno@clisp.org>
59057
59058         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
59059         (mbi_init): Update.
59060         (mbi_avail, mbi_advance): Let the iteration end before the terminating
59061         NUL byte, not after it.
59062
59063 2005-08-16  Bruno Haible  <bruno@clisp.org>
59064
59065         * lib/strcase.h (strcasecmp): Add note in comments.
59066         * lib/strncasecmp.c: Use code from strcasecmp.c.
59067         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
59068         (strcasecmp): Work correctly in multibyte locales.
59069
59070 2005-08-16  Bruno Haible  <bruno@clisp.org>
59071
59072         * lib/mbiter.h: New file.
59073
59074 2005-08-16  Bruno Haible  <bruno@clisp.org>
59075
59076         * lib/mbfile.h: New file.
59077
59078 2005-08-16  Bruno Haible  <bruno@clisp.org>
59079
59080         * lib/mbchar.h: New file.
59081         * lib/mbchar.c: New file.
59082
59083 2005-08-16  Bruno Haible  <bruno@clisp.org>
59084
59085         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
59086         the valid ones. Makes the comparison operations transitive:
59087         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
59088         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
59089
59090 2005-08-15  Simon Josefsson  <jas@extundo.com>
59091
59092         * modules/ssize_t (License): Change to 'unlimited'.
59093
59094         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
59095
59096 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59097
59098         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
59099         Add comments for each pending glibc patch.
59100
59101 2005-08-15  Bruno Haible  <bruno@clisp.org>
59102
59103         * lib/regex.h (__restrict_arr): Don't define to __restrict if
59104         __cplusplus is defined.
59105
59106 2005-08-14  Jim Meyering  <jim@meyering.net>
59107
59108         Sync from coreutils.
59109
59110         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
59111         Use the hash-table-based cycle-detection code not just when
59112         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
59113         Reported by James Youngman in
59114         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
59115         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
59116         FTS_TIGHT_CYCLE_CHECK.
59117         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
59118         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
59119         once again.
59120         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
59121         * lib/fts.c (fd_safer): Remove decl.
59122         Include fcntl--.h rather than unistd-safer.h
59123         (fts_safe_changedir): Don't call fd_safer; no longer needed
59124         now that we include fcntl--.h.
59125
59126 2005-08-12  Simon Josefsson  <jas@extundo.com>
59127
59128         * modules/getndelim2: Use ssize_t module.
59129         * modules/getnline: Likewise.
59130         * modules/safe-read: Likewise.
59131         * modules/xreadlink: Likewise.
59132
59133         * modules/ssize_t: New file.
59134
59135 2005-08-12  Simon Josefsson  <jas@extundo.com>
59136
59137         * m4/readline.m4: Look for termcap, curses or ncurses if required.
59138
59139 2005-08-12  Simon Josefsson  <jas@extundo.com>
59140
59141         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59142         ssize_t.
59143
59144 2005-08-12  Simon Josefsson  <jas@extundo.com>
59145
59146         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
59147         readline, getdelim and check_version.
59148         (Support for systems lacking ISO C 99: Sizes of integer types):
59149         Add size_max.
59150
59151 2005-08-12  Bruno Haible  <bruno@clisp.org>
59152
59153         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
59154
59155 2005-08-11  Simon Josefsson  <jas@extundo.com>
59156
59157         * modules/readline: New file.
59158
59159         * modules/strnlen (Files): Add strnlen.h.
59160
59161 2005-08-11  Simon Josefsson  <jas@extundo.com>
59162
59163         * m4/readline.m4: New file.
59164
59165 2005-08-11  Simon Josefsson  <jas@extundo.com>
59166
59167         * lib/readline.h, readline.c: New file.
59168
59169 2005-08-11  Simon Josefsson  <jas@extundo.com>
59170
59171         * doc/gnulib.texi (Initial import, Finishing touches): Mention
59172         gl_AVOID.
59173
59174 2005-08-11  Bruno Haible  <bruno@clisp.org>
59175
59176         * lib/strnlen.h (strnlen): Change parameter name to match comment.
59177
59178 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
59179
59180         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
59181
59182 2005-08-10  Simon Josefsson  <jas@extundo.com>
59183
59184         * tests/test-iconvme.c: New file.
59185
59186 2005-08-10  Simon Josefsson  <jas@extundo.com>
59187
59188         * m4/strnlen.m4: New file.
59189
59190         * m4/strndup.m4: Don't check for strnlen declaration, done in
59191         strnlen.m4.
59192
59193 2005-08-10  Simon Josefsson  <jas@extundo.com>
59194
59195         * lib/strndup.c: Use strnlen.h.
59196
59197         * lib/strnlen.h: New file.
59198
59199 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59200
59201         * README: Typos.
59202
59203 2005-08-02  Simon Josefsson  <jas@extundo.com>
59204
59205         * modules/readline: New file.
59206
59207 2005-08-02  Simon Josefsson  <jas@extundo.com>
59208
59209         * modules/getdelim: New file.
59210
59211         * modules/getline: Rewrite, don't use getndelim2.
59212
59213 2005-08-02  Simon Josefsson  <jas@extundo.com>
59214
59215         * m4/getline.m4: Separate out getdelim stuff into separate module.
59216
59217         * m4/getdelim.m4: New file.
59218
59219 2005-08-02  Simon Josefsson  <jas@extundo.com>
59220
59221         * lib/getline.h, getline.c: Rewrite.
59222
59223         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
59224
59225 2005-07-31  Bruno Haible  <bruno@clisp.org>
59226
59227         * lib/lock.h (gl_lock_initializer): New macro.
59228         (gl_lock_define_initialized): Use it.
59229         (gl_rwlock_initializer): New macro.
59230         (gl_rwlock_define_initialized): Use it.
59231         (gl_recursive_lock_initializer): New macro.
59232         (gl_recursive_lock_define_initialized): Use it.
59233
59234 2005-07-30  Karl Berry  <karl@gnu.org>
59235
59236         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
59237         Report from Ben Pfaff, regarding getopt.
59238
59239 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
59240
59241         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
59242         normal way.
59243         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
59244         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
59245         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
59246         (gl_GETOPT): Use the new macros.  Most of the implementation
59247         is moved to the new macros.  This is for programs like Emacs
59248         that don't want all the functionality of gl_GETOPT.
59249
59250 2005-07-26  Bruno Haible  <bruno@clisp.org>
59251
59252         * m4/lock.m4: Update from GNU gettext.
59253
59254 2005-07-26  Bruno Haible  <bruno@clisp.org>
59255
59256         * lib/lock.h: Update from GNU gettext.
59257         * lib/lock.c: Update from GNU gettext.
59258
59259 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
59260
59261         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
59262         obsolescent AC_TRY_RUN.  Include the default includes files, for
59263         'exit'.
59264
59265 2005-07-24  Bruno Haible  <bruno@clisp.org>
59266
59267         * modules/visibility: New file.
59268         * MODULES.html.sh (Misc): Add visibility.
59269
59270 2005-07-24  Bruno Haible  <bruno@clisp.org>
59271
59272         * m4/visibility.m4: New file.
59273
59274 2005-07-24  Bruno Haible  <bruno@clisp.org>
59275
59276         * doc/visibility.texi: New file.
59277
59278 2005-07-22  Bruno Haible  <bruno@clisp.org>
59279
59280         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
59281         $(ALLOCA_H), redundant through BUILT_SOURCES.
59282         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
59283         redundant through BUILT_SOURCES.
59284         * modules/byteswap (Makefile.am): Remove explicit dependency on
59285         $(BYTESWAP_H), redundant through BUILT_SOURCES.
59286         * modules/fnmatch (Makefile.am): Remove explicit dependency on
59287         $(FNMATCH_H), redundant through BUILT_SOURCES.
59288         * modules/getopt (Makefile.am): Remove explicit dependency on
59289         $(GETOPT_H), redundant through BUILT_SOURCES.
59290         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
59291         redundant through BUILT_SOURCES.
59292         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
59293         redundant through BUILT_SOURCES.
59294         * modules/stdbool (Makefile.am): Remove explicit dependency on
59295         $(STDBOOL_H), redundant through BUILT_SOURCES.
59296         * modules/stdint (Makefile.am): Remove explicit dependency on
59297         $(STDINT_H), redundant through BUILT_SOURCES.
59298         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
59299         Remove explicit dependency on $(SYSEXITS_H).
59300         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
59301
59302 2005-07-18  Simon Josefsson  <jas@extundo.com>
59303
59304         * lib/check-version.c (check_version): Accept identical versions too.
59305
59306 2005-07-18  Bruno Haible  <bruno@clisp.org>
59307
59308         * modules/lock: New file.
59309         * MODULES.html.sh (Multithreading): New section.
59310
59311 2005-07-18  Bruno Haible  <bruno@clisp.org>
59312
59313         * m4/lock.m4: New file, from GNU gettext.
59314
59315 2005-07-18  Bruno Haible  <bruno@clisp.org>
59316
59317         * lib/lock.h: New file, from GNU gettext.
59318         * lib/lock.c: New file, from GNU gettext.
59319
59320 2005-07-18  Bruno Haible  <bruno@clisp.org>
59321
59322         * lib/lock.h (gl_once_t): New type.
59323         (gl_once_define, gl_once): New macros.
59324         * lib/lock.c (fresh_once): New variable.
59325         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
59326         functions.
59327
59328 2005-07-16  Simon Josefsson  <jas@extundo.com>
59329
59330         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
59331         workaround, suggested by Bruno.
59332
59333 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
59334
59335         * modules/xalloc (Depends-on): Add xalloc-die.
59336         * modules/xvasprintf (Depends-on): Add xalloc-die.
59337
59338 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
59339
59340         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
59341         with a minor change.
59342
59343 2005-07-15  Bruno Haible  <bruno@clisp.org>
59344
59345         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
59346         When using lib/poll.c, define poll as rpl_poll.
59347
59348 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
59349
59350         * modules/argp (Depends-on): Remove unlocked-io.
59351
59352 2005-07-14  Derek Price  <derek@ximbiot.com>
59353
59354         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
59355         for glob symlink bug.
59356
59357 2005-07-14  Bruno Haible  <bruno@clisp.org>
59358
59359         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
59360         Instead, test for *_unlocked function declarations directly.
59361
59362 2005-07-11  Simon Josefsson  <jas@extundo.com>
59363
59364         * modules/size_max: New file.
59365
59366         * modules/xsize: Depend on size_max module for size_max.m4.
59367
59368 2005-07-11  Simon Josefsson  <jas@extundo.com>
59369
59370         * lib/size_max.h: New file.
59371
59372 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
59373
59374         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
59375         copyright symbol and the year.
59376         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
59377         (version_etc_va): Use parameterized copyright notice.
59378         Reword to conform to the current GNU coding standards.
59379
59380 2005-07-11  Karl Berry  <karl@gnu.org>
59381
59382         * doc/gnulib.texi (Quoting): new node.
59383         (Initial import): more info, from Patrice.
59384
59385 2005-07-11  Bruno Haible  <bruno@clisp.org>
59386
59387         * gnulib-tool (func_usage): Document option --avoid.
59388         (Command line options): Handle --avoid.
59389         (func_acceptable): New function.
59390         (func_modules_transitive_closure): Use it.
59391
59392 2005-07-11  Bruno Haible  <bruno@clisp.org>
59393
59394         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
59395         Reported by Jim Meyering.
59396
59397 2005-07-10  Bruno Haible  <bruno@clisp.org>
59398
59399         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
59400         Needed when size_t is smaller than 'unsigned int'.
59401         Reported by Paul Eggert.
59402
59403 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59404
59405         * modules/argp (Depends-on): Add unlocked-io
59406
59407 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59408
59409         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
59410         block of defines.
59411
59412 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59413
59414         * config/srclist.txt: Comment out regcomp.c, since we have a porting
59415         fix now.
59416
59417 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
59418         and Paul Eggert  <eggert@cs.ucla.edu>
59419
59420         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
59421         in wint_t, not wchar_t.  Remove now-unnecessary cast.
59422
59423 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59424
59425         * modules/regex (Files): Add lib/regex_internal.c,
59426         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
59427         (Depends-on): Add extensions.
59428         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
59429
59430 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59431
59432         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
59433         pathconf.
59434         * m4/same.m4 (gl_SAME): Likewise.
59435         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
59436
59437         * m4/regex.m4: Adjust to new libc regex implementation.
59438         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
59439         all the .c and .h parts of (the new) regex.
59440         Quote the m4 stuff better.
59441         Check for RE_ICASE bug of old gnulib.
59442         Check for REG_STARTEND of recent libc.
59443         Rename local variables from jm_* to gl_*.
59444         Quote operand of "test -f".
59445         Say "recent enough" version of libc, not "version 2".
59446         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
59447         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
59448         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
59449         Remove check for btowc, isascii.
59450         Require AM_LANGINFO_CODESET.
59451
59452 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59453
59454         * lib/regex.c, regex.h: Sync from libc.
59455         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
59456         * lib/regexec.c:
59457         New files, synced from libc, except that regex_internal.h
59458         currently has a small porting fix.
59459
59460 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59461
59462         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
59463         regex_internal.c, regexec.c.
59464         Add regex_internal.h too, but as a comment, since the libc version
59465         is currently broken in gnulib mode.
59466
59467 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59468
59469         Support programs like Emacs that use gnulib but not gettext.
59470         * MODULES.html.sh (Internationalization functions): Add gettext-h.
59471         * modules/gettext-h: New file.
59472         * modules/gettext (Files): Remove lib/gettext.h.
59473         (Depends-on): Add gettext-h.
59474         (Makefile.am): Remove lib_SOURCES.
59475         * modules/argmatch, modules/c-stack, modules/closeout:
59476         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
59477         * modules/execute, modules/file-type, modules/getaddrinfo:
59478         * modules/getopt, modules/human, modules/javacomp:
59479         * modules/javaexec, modules/mkdir-p, modules/obstack:
59480         * modules/openat, modules/pagealign_alloc, modules/pipe:
59481         * modules/quotearg, modules/regex, modules/rpmatch:
59482         * modules/unicodeio, modules/userspec, modules/version-etc:
59483         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
59484         * modules/xsetenv:
59485         Depend on gettext-h, not gettext.
59486
59487 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59488
59489         * gnulib-tool (func_import): Add support for 'public domain' license.
59490         * modules/alloca, modules/atexit, modules/memmove:
59491         Now public domain, not GPL.
59492         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
59493         * modules/realloc, modules/strerror, modules/strtod:
59494         Now LGPL, not GPL.
59495
59496 2005-07-05  Bruno Haible  <bruno@clisp.org>
59497
59498         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
59499         autoconf CVS. Needed for mingw.
59500
59501 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59502
59503         Remove the dependency of the strftime module on the tzset module.
59504         * modules/strftime (Depends-on): Remove dependency on tzset.
59505
59506 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59507
59508         Remove the dependency of the strftime module on the tzset module.
59509         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
59510         gl_FUNC_TZSET_CLOBBER.
59511
59512 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59513
59514         Remove the dependency of the strftime module on the tzset module.
59515         * lib/strftime.c (my_strftime)
59516         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
59517         Copy the input structure, to work around some of the bug with
59518         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
59519         Solaris releases, you should also use the tzset module, but we won't
59520         require it as a dependency any more since we don't want LGPLed code
59521         to depend on GPLed code.
59522
59523 2005-07-02  Jim Meyering  <jim@meyering.net>
59524
59525         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
59526         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
59527         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
59528         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
59529
59530 2005-07-02  Jim Meyering  <jim@meyering.net>
59531
59532         * lib/backupfile.c (backup_args): Change a `0' to NULL.
59533
59534 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59535
59536         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
59537         declares only 'struct timespec;' (!).
59538
59539 2005-07-01  Jim Meyering  <jim@meyering.net>
59540
59541         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
59542         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
59543         * lib/save-cwd.c, tempname.c:
59544         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
59545         and don't include <sys/file.h>).
59546
59547 2005-06-29  Jim Meyering  <jim@meyering.net>
59548
59549         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
59550         type name.  Use the variable name instead.
59551         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
59552         Likewise.
59553
59554 2005-06-28  Simon Josefsson  <jas@extundo.com>
59555
59556         * modules/check-version (Files): Add check-version.m4.
59557
59558 2005-06-28  Simon Josefsson  <jas@extundo.com>
59559
59560         * m4/check-version.m4: New file, suggested by Jim Meyering
59561         <jim@meyering.net>.
59562
59563 2005-06-28  Simon Josefsson  <jas@extundo.com>
59564
59565         * lib/check-version.h, lib/check-version.c: New files.
59566
59567 2005-06-28  Simon Josefsson  <jas@extundo.com>
59568
59569         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
59570         collision with global variable.  Better indentation.  Don't
59571         increment buffer pointer beyond buffer end.  Based on comments
59572         from Paul Eggert <eggert@cs.ucla.edu>.
59573
59574         * lib/base64.h: Indent.
59575
59576 2005-06-28  Simon Josefsson  <jas@extundo.com>
59577
59578         * doc/gnulib.texi (Library version handling): New section.
59579
59580 2005-06-28  Jim Meyering  <jim@meyering.net>
59581
59582         * check-module (find_included_lib_files): Hard-code another
59583         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
59584         but modules/fts-lgpl (correctly) does not list those files.
59585
59586         * modules/canonicalize (Files): Add lib/pathmax.h.
59587
59588 2005-06-25  Simon Josefsson  <jas@extundo.com>
59589
59590         * modules/check-version: New file.
59591
59592 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
59593
59594         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
59595         initializer of struct addrinfo, as an indication that we don't
59596         care how many members the structure has.
59597
59598 2005-06-24  Derek Price  <derek@ximbiot.com>
59599         and Bruno Haible  <bruno@clisp.org>
59600
59601         Remove stat module & update lstat.
59602         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
59603         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59604         * m4/stat.m4: Remove this file.
59605
59606 2005-06-24  Derek Price  <derek@ximbiot.com>
59607         and Bruno Haible  <bruno@clisp.org>
59608
59609         Remove stat module & update lstat.
59610         * lib/stat.c: Remove this file...
59611         (slash_aware_lstat): ...moving this content and its support...
59612         * lib/lstat.c (rpl_lstat): ...into here.
59613         * lib/lstat.h: New file.
59614
59615 2005-06-24  Derek Price  <derek@ximbiot.com>
59616         and Bruno Haible  <bruno@clisp.org>
59617
59618         Remove stat module & update lstat.
59619         * config/srclist.txt (libc sources): Remove stat.
59620
59621 2005-06-24  Derek Price  <derek@ximbiot.com>
59622         and Bruno Haible  <bruno@clisp.org>
59623
59624         Remove stat module & update lstat.
59625         * MODULES.html.sh (stat): Remove.
59626         * MODULES.html: Regenerated.
59627         * modules/lstat (Description): Correct function name.
59628         (Files): Add "lstat.h".
59629         (Depends-on): Remove stat, add xalloc, stat-macros.
59630         * modules/stat: Remove this file.
59631         (Include): Add "lstat.h", remove <sys/stat.h>.
59632
59633 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59634
59635         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
59636         (ranged_convert): Don't save conversion in a temporary struct.
59637         This causes a warning with GCC 4.0.0, and anyway in the typical
59638         case it's not worth the extra 100 bytes or so of code.
59639         (ranged_convert, __mktime_internal): When calling a function via a
59640         pointer P, use P () rather than (*P) (), as we now assume C89 or
59641         better.
59642
59643 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59644
59645         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
59646         "who -r" failed to give output.  Problem reported by Tim Waugh.
59647
59648         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
59649         (xcalloc): Use it to avoid needless tests.
59650         Problem reported by Jim Meyering.
59651
59652 2005-06-20  Derek Price  <derek@ximbiot.com>
59653
59654         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
59655         unnecessary for Autoconfs > 2.59c.
59656
59657 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59658
59659         * lib/argp.h (__option_is_short): Check upper limit of
59660         __key. Isprint() requires its argument to have the value
59661         of an unsigned char or EOF.
59662
59663 2005-06-16  Jim Meyering  <jim@meyering.net>
59664
59665         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
59666         when either N or S is zero.
59667
59668 2005-06-16  Derek Price  <derek@ximbiot.com>
59669
59670         * m4/bison.m4: Declare YACC & YFLAGS precious.
59671
59672 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
59673
59674         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
59675         multibyte string or pattern, fall back on unibyte matching.
59676         Problem reported by James Youngman.
59677
59678 2005-06-08  Bruno Haible  <bruno@clisp.org>
59679
59680         * modules/csharpcomp: New file.
59681         * MODULES.html.sh (C#): Add csharpcomp.
59682
59683 2005-06-08  Bruno Haible  <bruno@clisp.org>
59684
59685         * m4/csharpcomp.m4: New file, from GNU gettext.
59686
59687 2005-06-08  Bruno Haible  <bruno@clisp.org>
59688
59689         * lib/csharpcomp.h: New file, from GNU gettext.
59690         * lib/csharpcomp.c: New file, from GNU gettext.
59691         * lib/csharpcomp.sh.in: New file, from GNU gettext.
59692
59693 2005-06-08  Bruno Haible  <bruno@clisp.org>
59694
59695         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
59696         warning on mingw.
59697
59698 2005-06-07  Derek Price  <derek@ximbiot.com>
59699
59700         Sync from CVS.
59701         * lib/glob_.h: Indent nested #ifdef.
59702
59703 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59704
59705         Sync from coreutils.
59706         Use "file name" when talking about file names, instead of "filename"
59707         or "path", as per the GNU coding standards.
59708         * lib/mkdir-p.c: Renamed from makepath.c.
59709         (make_dir_parents): Renamed from make_path.  All callers changed.
59710         * lib/mkdir-p.h: Likewise.  All includers changed.
59711         * lib/filenamecat.c: Renamed from path-concat.c.
59712         (file_name_concat): Renamed from path_concat.  All callers changed.
59713         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
59714         * lib/filenamecat.h: Likewise.  All includers changed.
59715         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
59716         in comments or local variable names.
59717         * lib/basename.c: Likewise.
59718         * lib/canonicalize.c, canonicalize.h: Likewise.
59719         * lib/dirname.c, dirname.h: Likewise.
59720         * lib/euidaccess.c: Likewise.
59721         * lib/exclude.c: Likewise
59722         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
59723         * lib/fsusage.c, fsuage.h: Likewise.
59724         * lib/fts.c, fts_.h: Likewise.
59725         * lib/getcwd.c: Likewise.
59726         * lib/getloadavg.c: Likewise.
59727         * lib/mkstemp.c: Likewise.
59728         * lib/mountlist.c, mountlist.h: Likewise.
59729         * lib/openat.c, openat.h: Likewise.
59730         * lib/readlink-stub.c: Likewise.
59731         * lib/readutmp.c, readutmp.h: Likewise.
59732         * lib/rename.c: Likewise.
59733         * lib/rmdir.c: Likewise.
59734         * lib/same.c: Likewise.
59735         * lib/savedir.c: Likewise.
59736         * lib/stripslash.c: Likewise.
59737         * lib/tempname.c: Likewise.
59738         * lib/xreadlink.c: Likewise.
59739         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
59740         All uses changed.
59741         * lib/exclude.h: Likewise.
59742
59743         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
59744         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59745         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
59746         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59747         * lib/pathmax.h: Include <limits.h> unconditionally, since other
59748         files have been getting away with it for years (MORE/BSD 4.3
59749         is extinct now).
59750         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
59751         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59752
59753         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
59754         Define to 256, not 255, as per modern POSIX.
59755
59756 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59757
59758         Sync from coreutils.
59759         Use "file name" when talking about file names, instead of "filename"
59760         or "path", as per the GNU coding standards.
59761         * MODULES.html.sh: mkdir-p renamed from makepath.
59762         filenamecat renamed from path-concat.
59763         * modules/filenamecat: Renamed from modules/path-concat.
59764         (Files): filenamecat.h and filenamecat.c renamed from
59765         path-concat.h and path-concat.c.
59766         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
59767         (Include): filenamecat.h, not path-concat.h.
59768         * modules/mkdir-p: Renamed from modules/makepath.
59769         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
59770         makepath.c.
59771         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
59772         (Include): mkdir-p.h, not makepath.h.
59773
59774 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59775
59776         Sync from coreutils.
59777         * m4/mkdir-p.m4: Renamed from makepath.m4.
59778         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
59779         Rename files from makepath.c to mkdir-p.c, and from
59780         makepath.h to mkdir-p.h.
59781         * m4/filenamecat.m4: Renamed from path-concat.m4.
59782         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
59783         Rename files from path-concat.c to filenamecat.c,
59784         and from path-concat.h to filenamecat.h.
59785         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
59786         "file name" in local variables or comments.
59787         * m4/rename.m4: Likewise.
59788
59789 2005-06-01  Bruno Haible  <bruno@clisp.org>
59790
59791         * modules/csharpexec: New file.
59792         * MODULES.html.sh (C#): New section.
59793
59794 2005-06-01  Bruno Haible  <bruno@clisp.org>
59795
59796         * m4/csharp.m4: New file, from GNU gettext.
59797         * m4/csharpexec.m4: New file, from GNU gettext.
59798
59799 2005-06-01  Bruno Haible  <bruno@clisp.org>
59800
59801         * lib/csharpexec.h: New file, from GNU gettext.
59802         * lib/csharpexec.c: New file, from GNU gettext.
59803         * lib/csharpexec.sh.in: New file, from GNU gettext.
59804
59805 2005-05-31  Derek Price  <derek@ximbiot.com>
59806             Paul Eggert  <eggert@cs.ucla.edu>
59807
59808         Sync from cvs.
59809         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
59810
59811 2005-05-31  Derek Price  <derek@ximbiot.com>
59812             Paul Eggert  <eggert@cs.ucla.edu>
59813
59814         Sync from cvs.
59815         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
59816
59817 2005-05-29  Derek Price  <derek@ximbiot.com>
59818
59819         * config/srclist.txt (glob_.h, glob.c): Add these files.
59820
59821 2005-05-29  Derek Price  <derek@ximbiot.com>
59822
59823         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
59824         * modules/glob: New file.
59825         * modules/getlogin_r: Add link to POSIX spec in description.
59826
59827 2005-05-29  Derek Price  <derek@ximbiot.com>
59828             Paul Eggert  <eggert@cs.ucla.edu>
59829
59830         * m4/glob.m4: New file.
59831
59832 2005-05-29  Derek Price  <derek@ximbiot.com>
59833             Paul Eggert  <eggert@cs.ucla.edu>
59834
59835         * lib/glob_.h, lib/glob.c: New files.
59836
59837 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59838
59839         * modules/fts (Files): Remove m4/inttypes-pri.m4.
59840         * modules/fts-lgpl (Depends-on): Remove gettext.
59841
59842 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59843
59844         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
59845         and don't require gt_INTTYPES_PRI.
59846
59847 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59848
59849         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
59850
59851         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
59852         the configuration hassle isn't worth it.
59853         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
59854         (LONGEST_MODIFIER, PRIuMAX): Remove.
59855
59856 2005-05-27  Bruno Haible  <bruno@clisp.org>
59857
59858         * lib/getlogin_r.h: Remove second include of <stddef.h>.
59859
59860 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
59861
59862         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
59863         _POSIX_PTHREAD_SEMANTICS for Solaris.
59864
59865 2005-05-25  Derek Price  <derek@ximbiot.com>
59866
59867         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
59868
59869 2005-05-25  Derek Price  <derek@ximbiot.com>
59870             Paul Eggert  <eggert@cs.ucla.edu>
59871
59872         * modules/getlogin_r, m4/getlogin_r.m4: New files.
59873         * lib/getlogin_r.c, getlogin_r.h: New files.
59874
59875 2005-05-25  Bruno Haible  <bruno@clisp.org>
59876             Derek Price  <derek@ximbiot.com>
59877
59878         * lib/getlogin_r.h: Simplify API documentation.
59879
59880 2005-05-23  Derek Price  <derek@ximbiot.com>
59881
59882         * modules/minmax (Files): Add m4/minmax.m4.
59883         (configure.ac): Add gl_MINMAX.
59884
59885 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
59886
59887         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
59888         so that unistd-safer.h (GPL'ed code) need not be included.
59889
59890 2005-05-22  Bruno Haible  <bruno@clisp.org>
59891
59892         * m4/minmax.m4: New file.
59893         Based on a patch by Derek Price <derek@ximbiot.com>.
59894
59895 2005-05-22  Bruno Haible  <bruno@clisp.org>
59896
59897         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
59898         (INT64_MIN): Fix definition.
59899         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
59900
59901         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
59902         NEED_SIGNED_INT_TYPES.
59903
59904         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
59905         HAVE_SYSTEM_INTTYPES.
59906
59907 2005-05-22  Bruno Haible  <bruno@clisp.org>
59908
59909         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
59910         Also include <sys/param.h> if it defines MIN, MAX.
59911         Based on a patch by Derek Price <derek@ximbiot.com>.
59912
59913 2005-05-21  Jim Meyering  <jim@meyering.net>
59914
59915         * modules/fts (Files): Add m4/inttypes-pri.m4.
59916         (Depends-on): Add lstat and remove gettext.  Alphabetize.
59917
59918 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59919
59920         New fts module.
59921         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
59922         (setup_dir, free_dir): New functions.
59923         (enter_dir, leave_dir): Define trivial
59924         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
59925         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
59926         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
59927         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
59928         Move to fts-cycle.c.
59929         (fts_open): Use setup_dir.
59930         (fts_close): Use free_dir.
59931         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
59932         This adds a label and some gotos, but the alternatives were messier.
59933         Check for memory allocation failure when entering a dir.
59934         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
59935         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
59936         (FTS): New member fts_cycle, that is a union that contains the
59937         old active_dir_ht and cycle_state.  All uses changed to mention
59938         fts_cycle.ht and fts_cycle.state.
59939         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
59940         fts.c, with the following changes:
59941         (setup_dir, free_dir): New functions.
59942         (enter_dir): Now returns bool.  Return true if successful, false
59943         if memory exhausted.  All callers changed.
59944         Do not bother partly cleaning up on
59945         memory allocation failure; that is free_dir's job.
59946         However, free ad if hash_insert fails, to avoid memory leak.
59947         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
59948         fts->fts_options to see which union member to use.
59949
59950 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59951
59952         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
59953         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
59954
59955 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59956
59957         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
59958
59959 2005-05-20  Jim Meyering  <jim@meyering.net>
59960
59961         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
59962         Now a macro, to pacify GCC.
59963
59964 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
59965
59966         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
59967         of -1.
59968
59969 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
59970
59971         * lib/chown.c (rpl_chown): Return -1 on failure.
59972
59973 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
59974
59975         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
59976         Don't check for stddef.h.
59977         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
59978         don't use its results.
59979         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
59980         since we include them unconditionally.  Don't require
59981         AM_STDBOOL_H, since stdbool is a prerequisite.
59982         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
59983         since we assume C89 or better.
59984         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
59985         as we don't use their results.
59986         Don't check for fchdir, memmove, memset, strrchr, as we use
59987         them unconditionally.
59988         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
59989         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
59990
59991 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
59992
59993         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
59994         Include <stddef.h> unconditionally, since we assume C89 now.
59995         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
59996         * lib/fts.c: Include fts_.h first, to check interface.
59997         Do not include intprops.h; no longer needed.
59998         Include cycle-check.h and hash.h, since fts_.h no longer does.
59999         Remove unnecessary casts of closedir to void.
60000         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
60001         decide whether to decrement nlinks.
60002         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
60003         (FTS): Use struct hash_table * instead of Hash_table, so that
60004         we no longer need to include hash.h here.
60005
60006 2005-05-18  Jim Meyering  <jim@meyering.net>
60007
60008         * modules/dirfd (License): Change to LGPL.  Most of the code
60009         is already in the public domain.
60010
60011 2005-05-18  Jim Meyering  <jim@meyering.net>
60012
60013         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
60014         Reported by Yoann Vandoorselaere.
60015
60016 2005-05-17  Jim Meyering  <jim@meyering.net>
60017
60018         * m4/fts.m4: New file, from coreutils.
60019
60020 2005-05-17  Jim Meyering  <jim@meyering.net>
60021
60022         * lib/fts.c, lib/fts_.h: New files, from coreutils.
60023
60024 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60025
60026         Sync from coreutils.
60027         * m4/unlinkdir.m4: New file.
60028
60029 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60030
60031         Sync from coreutils.
60032         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
60033         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
60034         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
60035         White space changes only.
60036         * lib/makepath.c (make_path): Port to hosts where leading "//" is
60037         special.
60038         * lib/yesno.c: Include getline.h, not ctype.h.
60039         (yesno): Don't remove leading white space; POSIX doesn't allow it.
60040         Use getline to remove arbitrary restriction on response length.
60041
60042 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60043
60044         * config/srclist-update: Spell out "Street" in FSF postal
60045         mail address; this is the style the FSF seems to prefer.
60046
60047         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
60048         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
60049         this updates FSF postal mail address.
60050
60051         Sync from coreutils.
60052         * modules/unlinkdir: New file.
60053         * modules/yesno (Depends-on): Add getline.
60054         * MODULES.html.sh (File system functions): Add unlinkdir.
60055
60056 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60057
60058         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
60059         lib/strsep.h:
60060         Change the initial comment to refer to GPL, not LGPL.
60061         gnulib-tool will change it to LGPL as needed.
60062
60063         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
60064         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
60065         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
60066         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
60067         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
60068         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
60069         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
60070         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
60071         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
60072         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
60073         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
60074         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
60075         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
60076         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
60077         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
60078         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
60079         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
60080         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
60081         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
60082         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
60083         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
60084         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
60085         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
60086         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
60087         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
60088         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
60089         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
60090         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
60091         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
60092         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
60093         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
60094         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
60095         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
60096         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
60097         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
60098         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
60099         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
60100         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
60101         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
60102         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
60103         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
60104         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
60105         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
60106         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
60107         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
60108         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
60109         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
60110         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
60111         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
60112         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
60113         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
60114         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
60115         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
60116         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
60117         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
60118         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
60119         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
60120         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
60121         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
60122         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
60123         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
60124         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
60125         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
60126         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
60127         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
60128         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
60129         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
60130         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
60131         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
60132         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
60133         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
60134         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
60135         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
60136         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
60137         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
60138         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
60139         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
60140         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
60141         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
60142         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
60143         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
60144         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
60145         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
60146         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
60147         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
60148         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
60149         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
60150         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
60151         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
60152         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
60153         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
60154         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
60155         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
60156         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
60157         lib/yesno.c, lib/yesno.h:
60158         Update FSF postal mail address.
60159
60160 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60161
60162         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
60163         tests/test-memmem.c, tests/test-stpncpy.c:
60164         Update FSF postal mail address.
60165
60166 2005-05-13  Bruno Haible  <bruno@clisp.org>
60167
60168         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
60169         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
60170         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
60171         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
60172         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
60173         Add support for 64-bit integers in the MSVC compiler.
60174
60175 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60176
60177         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
60178
60179 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
60180
60181         * gnulib-tool (func_import): Sort and uniquify recommended includes.
60182
60183 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
60184
60185         * doc/getdate.texi (General date syntax): Don't say that date
60186         date --iso-8601=ns generates acceptable dates; it doesn't yet.
60187         Problem reported by Nic Ferrier.
60188
60189 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60190
60191         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
60192         specified in ai_socktype. Fix invalid ai_protocol
60193         check. ai_protocol is usually set to 0 or depending on
60194         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
60195         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
60196         ai_socktype / ai_protocol in the returned addrinfo structure.
60197
60198 2005-05-10  Simon Josefsson  <jas@extundo.com>
60199
60200         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
60201         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60202
60203 2005-05-10  Karl Berry  <karl@gnu.org>
60204
60205         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
60206         (from http://www.gnu.org/licenses).
60207         * doc/COPYING.LIB: also rename to COPYING.LESSER.
60208         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
60209         fdl.texi suffices.
60210
60211 2005-05-10  Karl Berry  <karl@gnu.org>
60212
60213         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
60214         (COPYING.DOC): remove.
60215
60216         * config/srclist-update: new FSF address.
60217
60218 2005-05-10  Derek Price  <derek@ximbiot.com>
60219
60220         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
60221         possible.
60222
60223 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60224             Bruno Haible  <bruno@clisp.org>
60225
60226         * modules/inet_ntop: New file.
60227         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60228         inet_ntop.
60229
60230 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60231             Bruno Haible  <bruno@clisp.org>
60232
60233         * m4/inet_ntop.m4: New file.
60234
60235 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60236             Bruno Haible  <bruno@clisp.org>
60237
60238         * lib/inet_ntop.h: New file.
60239         * lib/inet_ntop.c: New file, from glibc with modifications.
60240
60241 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
60242
60243         * modules/time_r (License): Change to LGPL.
60244         * modules/extensions (License): Change to LGPL.  Actually,
60245         the license is more permissive than that, but currently gnulib-tool
60246         doesn't know how to handle more-permissive licenses.
60247
60248         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
60249         Problem reported by Dave Love.
60250
60251 2005-05-08  Jim Meyering  <jim@meyering.net>
60252
60253         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
60254         blank.
60255
60256 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60257
60258         * modules/argmatch (Depends-on): Add stdbool.
60259         * modules/backupfile (Depends-on): Likewise.
60260         * modules/chdir-long (Depends-on): Likewise.
60261         * modules/closeout (Depends-on): Likewise.
60262         * modules/cycle-check (Depends-on): Likewise.
60263         * modules/dirname (Depends-on): Likewise.
60264         * modules/fnmatch (Depends-on): Likewise.
60265         * modules/fsusage (Depends-on): Likewise.
60266         * modules/fwriteerror (Depends-on): Likewise.
60267         * modules/getcwd (Depends-on): Likewise.
60268         * modules/getloadavg (Depends-on): Likewise.
60269         * modules/hard-locale (Depends-on): Likewise.
60270         * modules/makepath (Depends-on): Likewise.
60271         * modules/mountlist (Depends-on): Likewise.
60272         * modules/nanosleep (Depends-on): Likewise.
60273         * modules/posixtm (Depends-on): Likewise.
60274         * modules/quotearg (Depends-on): Likewise.
60275         * modules/readtokens (Depends-on): Likewise.
60276         * modules/readtokens0 (Depends-on): Likewise.
60277         * modules/readutmp (Depends-on): Likewise.
60278         * modules/save-cwd (Depends-on): Likewise.
60279         * modules/strftime (Depends-on): Likewise.
60280         * modules/userspec (Depends-on): Likewise.
60281         * modules/utimecmp (Depends-on): Likewise.
60282         * modules/xgetcwd (Depends-on): Likewise.
60283         * modules/xnanosleep (Depends-on): Likewise.
60284         * modules/xstrtod (Depends-on): Likewise.
60285         * modules/yesno (Depends-on): Likewise.
60286
60287 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
60288
60289         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
60290         needless checks.
60291
60292 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60293
60294         Merge from coreutils.  Among other things,
60295         add bulletproofing for cases where stdin, stdout, or stderr are closed.
60296         * lib/fd-safer.c: New file.
60297         * lib/fcntl-safer.h, open-safer.c: Remove.
60298         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
60299         * lib/dup-safer.c: Include unistd-safer.h first.
60300         Don't include errno.h.
60301         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
60302         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
60303         * lib/file-type.c: Rely on file-type.h change.
60304         * lib/getloadavg.c: Include unistd-safer.h.
60305         (getloadavg): Use safer open.
60306         * lib/getusershell.c: Include "stdio-safer.h".
60307         (getusershell): Use safer fopen.
60308         * lib/long-options.c (long_options): Use NULL rather than 0.
60309         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
60310         'free'.
60311         * lib/modechange.c: Likewise.
60312         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
60313         (MODE_DONE): New constant.
60314         (struct mode_change): Remove 'next' member.
60315         (make_node_op_equals): New function; like the old one of the
60316         same name, except it allocates an array.
60317         (mode_compile, mode_create_from_ref): Use it.
60318         (mode_compile): Allocate result as an array, not a linked list.
60319         Parse octal string ourself, so that we catch mistakes like "+0".
60320         (mode_adjust): Arg is an array, not a linked list.
60321         * lib/modechange.c: Include stat-macros.h, xalloc.h.
60322         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
60323         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
60324         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
60325         Remove.  This is now stat-macros.h's job.
60326         (talloc): Remove.  All callers replaced by xalloc, so that
60327         our invokers don't have to worry about reporting memory failures.
60328         (make_node_op_equals): Remove.
60329         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
60330         New constants.
60331         (struct mode_change): Moved here from modechange.h.
60332         (mode_append_entry): Remove.
60333         (mode_compile): Remove MASKED_OPS arg, since it encouraged
60334         apps to have incorrect behavior.  Use simpler algorithm for head
60335         and tail.  Don't futz with umask; that's now the job of mode_adjust.
60336         Detect more invalid usages rather than having somewhat-random behavior.
60337         Don't insert an "a=" action, as that leads to incorrect behavior.
60338         (mode_compile, mode_create_from_ref): Return NULL on error instead
60339         of an enum, since now there's only one way to have an error.  All
60340         callers changed.
60341         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
60342         at the correct time.  Simplify calculation of "+u" and its ilk.
60343         Don't mishandle "+X".
60344         (mode_free): Remove "register" and localize decls.
60345         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
60346         (struct mode_change): Move to modechange.c; callers don't
60347         need to see this stuff.
60348         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
60349         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
60350         (mode_change, mode_adjust): Reflect the new signatures noted above.
60351         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
60352         that might redefine system include files.
60353         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
60354         (my_usleep): Use NULL rather than (void *) 0.
60355         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
60356         Use siginterrupt to specify that system calls should be interrupted.
60357         (rpl_nanosleep): Move initialization of suspended closer to call of
60358         my_usleep.
60359         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
60360         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
60361         (desirable_utmp_entry): New function.
60362         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
60363         using x2nrealloc, to simplify logic.
60364         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
60365         size calculation.  Do not assume utmp file is a regular file.
60366         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
60367         (READ_UTMP_CHECK_PIDS): New constant.
60368         * lib/save-cwd.c: Include unistd-safer.h.
60369         (save_cwd): Use fd_safer.
60370         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
60371         [!_LIBC] Include "stat-macros.h" instead.
60372         * lib/unistd-safer.h (fd_safer): New decl.
60373
60374 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60375
60376         * modules/getloadavg (Depends-on): Add unistd-safer.
60377         * modules/getusershell (Depends-on): Add stdio-safer.
60378         * modules/lstat (Depends-on): Remove xalloc.
60379         * modules/mkstemp (Depends-on): Add stat-macros.
60380         * modules/modechange (Depends-on): Remove xstrtol.
60381         Add stat-macros, xalloc.
60382         * modules/save-cwd (Depends-on): Add unistd-safer.
60383         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
60384         * modules/unistd-safer (Files): Add lib/fd-safer.c
60385         (Makefile.am): Remove lib_SOURCES.
60386
60387         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
60388         Remove fcntl-safer; unistd-safer supersedes it.
60389
60390 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60391
60392         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
60393         AC_HEADER_STAT.
60394         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
60395         (gl_PREREQ_CHOWN): Remove.
60396         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
60397         it.  Don't require AC_HEADER_STAT.
60398         (gl_PREREQ_LSTAT): Remove.
60399         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
60400         Don't require AC_HEADER_STAT.
60401         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
60402         (gl_PREREQ_RMDIR): Remove.
60403         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
60404         mention stat-macros.h or AC_HEADER_STAT, since we'll make
60405         the stat-macros module a prerequisite.
60406         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
60407         * m4/filemode.m4 (gl_FILEMODE): Likewise.
60408         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
60409         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
60410         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
60411         variable names.
60412         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
60413         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
60414         variable prefixes.
60415         * m4/fcntl-safer.m4: Remove.
60416         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
60417         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
60418         Invoke gl_PREREQ_FD_SAFER.
60419         (gl_PREREQ_FD_SAFER): New macro.
60420         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
60421         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
60422         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
60423         Remove duplicate call to AC_LIBOBJ(readutmp).
60424         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
60425
60426         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
60427         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
60428
60429 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60430
60431         * MODULES.html.sh (Misc): Add byteswap.
60432
60433 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60434
60435         * modules/getcwd (Depends-on): Add extensions.
60436         * modules/openat (Depends-on): Likewise.
60437
60438 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60439
60440         * modules/byteswap: New file.
60441
60442 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60443
60444         * m4/byteswap.m4: New file.
60445
60446 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60447
60448         * lib/byteswap_.h: New file.
60449
60450 2005-04-25  Karl Berry  <karl@gnu.org>
60451
60452         * m4/gettext.m4: Update from GNU gettext 0.14.4.
60453
60454 2005-04-25  Albert Chin  <china@thewrittenword.com>
60455
60456         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
60457         Toolkit C bug.
60458
60459 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
60460
60461         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
60462         (func_ln_if_changed) Remove forcibly for no error message
60463         in case file does not exist.
60464
60465 2005-04-19  Simon Josefsson  <jas@extundo.com>
60466
60467         * gnulib-tool (Options): Make --symlink mean --symbolic.
60468
60469 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
60470
60471         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
60472
60473 2005-04-16  Simon Josefsson  <jas@extundo.com>
60474
60475         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
60476
60477 2005-04-15  Simon Josefsson  <jas@extundo.com>
60478
60479         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
60480
60481 2005-04-15  Simon Josefsson  <jas@extundo.com>
60482
60483         * gnulib-tool: Rename --symlink to --symbolic.
60484
60485 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
60486
60487         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
60488         symbolic links to files instead of copying/moving.  Add --aux-dir,
60489         specifying directory relative --dir where auxiliary build tools
60490         are placed.
60491
60492 2005-04-14  Bruno Haible  <bruno@clisp.org>
60493
60494         * modules/allocsa (License): Change to LGPL.
60495         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
60496
60497 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60498
60499         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
60500         that "UTC +1 second" continues to work.  Problem reported
60501         by Dmitry V. Levin.
60502         (relunit_snumber): New rule.
60503         (relunit): Use it.
60504
60505 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60506
60507         * lib/getdate.y (universal_time_zone_table): New constant.
60508         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
60509         universal_time_zone_table.
60510         (lookup_zone): Prefer universal_time_zone_table to
60511         local_time_zone_table, so that "GMT" time stamps are allowed in
60512         London during the summer.  Problem reported by Ian Abbott.
60513
60514 2005-04-12  Jim Meyering  <jim@meyering.net>
60515
60516         * lib/human.c (humblock): Set *options even when returning due to
60517         xstrtoumax conversion failure.  Thanks to a used-uninitialized
60518         warning from gcc-4.
60519
60520 2005-04-09  Jim Meyering  <jim@meyering.net>
60521
60522         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
60523         -Wuninitialized: initialize tm0.tm_year.
60524
60525 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60526
60527         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
60528         count, since there's no maximum.  All uses changed.
60529         Add member dsts_seen.
60530         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
60531         not being INT_MAX.
60532         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
60533         Use pc_rels_seen to decide whther a date is absolute.
60534
60535         * lib/getdate.y (number): Don't overwrite year.
60536         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
60537         check.
60538
60539 2005-04-02  Simon Josefsson  <jas@extundo.com>
60540
60541         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
60542         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
60543
60544 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
60545
60546         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
60547         where no absolute path name can be longer than PATH_MAX.
60548
60549 2005-03-27  Jim Meyering  <jim@meyering.net>
60550
60551         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
60552
60553 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
60554
60555         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
60556         "one's complement" -> "ones' complement" in comment, as per Knuth.
60557         "value of type" -> "type or expression" in comment.
60558         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
60559
60560 2005-03-26  Jim Meyering  <jim@meyering.net>
60561
60562         Comment nits.
60563         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
60564         Correct typos: s/or/of/.
60565
60566 2005-03-26  Jim Meyering  <jim@meyering.net>
60567
60568         * modules/check-include-files: Move to ../ and rename to...
60569         * check-module: ...this.
60570
60571 2005-03-25  Jim Meyering  <jim@meyering.net>
60572
60573         * modules/xvasprintf (Files): Add xalloc.h.
60574
60575 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60576
60577         * modules/gettext (Files): config/config.rpath ->
60578         build-aux/config.rpath
60579         * modules/iconv (Files): Likewise.
60580         Problem reported by Oskar Liljeblad.
60581
60582 2005-03-23  Jim Meyering  <jim@meyering.net>
60583
60584         * modules/check-include-files: New script to check for
60585         missing dependencies, multiple includes, etc.
60586
60587         * modules/c-strtold (Depends-on): Add xalloc.
60588         * modules/c-strtod (Depends-on): Add xalloc.
60589         * modules/hash (Depends-on): Add xalloc.
60590         (Files): Remove lib/xalloc.h.
60591
60592         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
60593         * modules/userspec (Files): Add lib/inttostr.h.
60594
60595 2005-03-23  Jim Meyering  <jim@meyering.net>
60596
60597         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
60598
60599 2005-03-22  Jim Meyering  <jim@meyering.net>
60600
60601         * modules/stat-macros: New module.
60602         * modules/canonicalize, modules/euidaccess, modules/file-type,
60603         * modules/filemode, modules/lchown, modules/makepath,
60604         * modules/rmdir, modules/stat: Depend on new stat-macros module
60605         rather than listing lib/stat-macros.h manually.
60606         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
60607
60608 2005-03-22  Jim Meyering  <jim@meyering.net>
60609
60610         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
60611
60612 2005-03-22  Bruno Haible  <bruno@clisp.org>
60613
60614         * config/srclist.txt: Replace target directory 'config' with
60615         'build-aux'.
60616         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
60617         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
60618         ../build-aux/.
60619
60620 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
60621
60622         * modules/chdir-long (Depends-on): Add mempcpy.
60623
60624         * modules/acl, modules/backupfile, modules/c-strtod,
60625         modules/c-strtold, modules/canon-host, modules/canonicalize,
60626         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
60627         modules/exclude, modules/exitfail, modules/file-type,
60628         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
60629         modules/getdate, modules/getline, modules/getpagesize,
60630         modules/getpass, modules/getugroups, modules/group-member,
60631         modules/hard-locale, modules/hash, modules/human, modules/idcache,
60632         modules/inttostr, modules/long-options, modules/makepath,
60633         modules/md5, modules/memcasecmp, modules/memcoll,
60634         modules/modechange, modules/mountlist, modules/path-concat,
60635         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
60636         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
60637         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
60638         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
60639         modules/strftime, modules/strndup, modules/strverscmp,
60640         modules/timespec, modules/unlocked-io, modules/userspec,
60641         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
60642         modules/yesno:
60643         Remove lib_SOURCES line from Makefile.am section, as this is now
60644         done automatically by the corresponding Autoconf macro.
60645
60646 2005-03-21  Jim Meyering  <jim@meyering.net>
60647
60648         Changes imported from coreutils.
60649
60650         * lib/cycle-check.c: Don't include xalloc.h.
60651
60652         * lib/path-concat.c: Don't include assert.h.
60653         (path_concat): Remove assertion that would have triggered
60654         for ABASE starting with more than one slash.
60655         Reported by Andreas Schwab.
60656
60657         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
60658         properly when ABASE is an absolute file name.
60659         Correct the description of this function.
60660         Include <assert.h>.
60661         Add an assertion and a test driver.
60662         This fixes a bug introduced on 2004-07-02.
60663         Andreas Schwab reported the resulting failure of cp --parents:
60664         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
60665
60666 2005-03-21  Jim Meyering  <jim@meyering.net>
60667
60668         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
60669         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
60670
60671 2005-03-21  Jim Meyering  <jim@meyering.net>
60672         and  Paul Eggert  <eggert@cs.ucla.edu>
60673
60674         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
60675         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
60676         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
60677         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
60678         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
60679         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
60680         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
60681         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
60682         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
60683         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
60684         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
60685         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
60686         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
60687         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
60688         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
60689         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
60690         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
60691         for these modules.
60692
60693 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
60694
60695         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
60696         (which shouldn't happen), generate nothing instead of returning 0
60697         immediately, so that nstrftime (NULL, ...) doesn't return 0.
60698
60699 2005-03-16  Bruno Haible  <bruno@clisp.org>
60700
60701         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
60702         HAVE_LONGLONG_64BIT.
60703
60704 2005-03-16  Bruno Haible  <bruno@clisp.org>
60705
60706         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
60707         HAVE_LONGLONG_64BIT.
60708
60709 2005-03-16  Bruno Haible  <bruno@clisp.org>
60710
60711         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
60712         HAVE_LONGLONG_64BIT.
60713
60714 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
60715
60716         * lib/strftime.c (my_strftime): Prepend space to format so that we can
60717         reliably distinguish strftime failure from empty output on POSIX
60718         hosts.
60719
60720 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
60721
60722         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
60723         (iconv_string): Don't guess a size-zero buffer, as that might cause
60724         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
60725         result would be 'too large', where 'too large' is (heuristically)
60726         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
60727         overflow concerns.  This will prevent some unwanted malloc failures
60728         when the inputs are very large.
60729
60730 2005-03-15  Karl Berry  <karl@gnu.org>
60731
60732         * config/srclist.txt (config.rpath): from gettext.
60733         * config/config.rpath: update.
60734
60735 2005-03-15  Bruno Haible  <bruno@clisp.org>
60736
60737         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
60738         to 'negate'.
60739
60740         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
60741         variable.
60742
60743         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
60744         results.
60745
60746 2005-03-14  Simon Josefsson  <jas@extundo.com>
60747
60748         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
60749         <fx@gnu.org>.
60750
60751 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
60752
60753         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
60754         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
60755         intprops.h.
60756         * lib/strtol.c: Likewise.
60757
60758 2005-03-14  Jim Meyering  <jim@meyering.net>
60759
60760         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
60761         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
60762         to be nonzero so that we (and caller) can detect the difference
60763         between a valid zero-length expansion and an error return, even
60764         when the underlying strftime fails before writing anything into
60765         that location.
60766
60767 2005-03-14  Bruno Haible  <bruno@clisp.org>
60768
60769         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
60770         Update from GNU gettext 0.14.3.
60771
60772 2005-03-10  Jim Meyering  <jim@meyering.net>
60773
60774         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
60775
60776 2005-03-10  Jim Meyering  <jim@meyering.net>
60777
60778         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
60779         so that this module works on systems without fchdir.
60780
60781 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
60782
60783         Factor int-properties macros into a single file, except for
60784         glibc-related files.
60785         * lib/intprops.h: New file.
60786         * lib/getloadavg.c: Include it instead of limits.h.
60787         (INT_STRLEN_BOUND): Remove.
60788         * lib/human.c: Include intprops.h.
60789         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
60790         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
60791         302/1000.
60792         * lib/inttostr.h: Include intprops.h instead of limits.h.
60793         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
60794         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
60795         for consistency with intprops.h.
60796         (time_t_is_integer, twos_complement_arithmetic): Use them.
60797         * lib/sig2str.h: Include <signal.h>, intprops.h.
60798         (INT_STRLEN_BOUND): Remove.
60799         * lib/strftime.c (TYPE_SIGNED): Remove.
60800         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
60801         * lib/strtol.c: Adjust comments to match intprops.h.
60802         * lib/userspec.c: Include intprops.h.
60803         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
60804         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
60805         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
60806         instead of rolling our own expressions.
60807         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
60808
60809         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
60810         instead of int.
60811         (my_strftime): Do not mishandle years close to INT_MAX, by doing
60812         the right thing even if adding 1900 would overflow.  Similarly
60813         for tm_mon + 1 and tm_yday + 1.
60814         Make %Y always equivalent to %C%y, and similarly for %G and %g.
60815         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
60816         (DO_SIGNED_NUMBER): New macro.
60817         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
60818
60819 2005-03-07  Bruno Haible  <bruno@clisp.org>
60820
60821         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
60822
60823 2005-03-07  Bruno Haible  <bruno@clisp.org>
60824
60825         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
60826
60827 2005-03-04  Derek R. Price  <derek@ximbiot.com>
60828
60829         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
60830         (func_import): Only replace files via --import when they have actually
60831         changed.
60832
60833 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60834
60835         * m4/mmap-anon.m4: New file.
60836         * m4/pagealign_alloc.m4: New file.
60837
60838 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60839             Bruno Haible  <bruno@clisp.org>
60840
60841         * modules/pagealign_alloc: New file.
60842         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
60843
60844 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60845             Bruno Haible  <bruno@clisp.org>
60846
60847         * lib/pagealign_alloc.h: New file.
60848         * lib/pagealign_alloc.c: New file.
60849
60850 2005-03-03  Bruno Haible  <bruno@clisp.org>
60851
60852         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
60853         Use an all-permissive copyright notice, recommended by RMS.
60854
60855 2005-03-02  Bruno Haible  <bruno@clisp.org>
60856
60857         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
60858         of AIX, the replacement has to be done only after <string.h> is
60859         included, therefore not in config.h. stpncpy.h does the replacement,
60860         and stpncpy.c uses it.
60861
60862 2005-03-02  Bruno Haible  <bruno@clisp.org>
60863
60864         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
60865         stpncpy.c uses it.
60866
60867 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60868
60869         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
60870         The workaround isn't strictly needed for POSIX conformance, and
60871         it's too much of a pain to configure and maintain.  We'll ask
60872         people to fix their kernels instead.
60873         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
60874         (NANOSLEEP_BUG_WORKAROUND): Remove.
60875         (xnanosleep): Remove the workaround.
60876
60877 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60878
60879         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
60880         Reported by Derek Price.
60881         (Include): Add "timespec.h".
60882
60883         * modules/xnanosleep (Depends-on): Remove gethrxtime.
60884
60885 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60886
60887         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
60888         to detect nanosleep bug.
60889
60890 2005-03-01  Bruno Haible  <bruno@clisp.org>
60891
60892         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
60893
60894 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
60895
60896         * modules/gethrxtime: New file.
60897         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
60898         (Depends-on): Add gethrxtime.
60899         (configure.ac): Add gl_XNANOSLEEP.
60900         (Makefile.am): Remove lib_SOURCES line.
60901
60902 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60903
60904         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
60905         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
60906
60907 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60908
60909         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
60910         * lib/timespec.h (gettime): Return void, since it always
60911         succeeds now.  All uses changed.
60912         * lib/gettime.c (gettime) Likewise.
60913         [HAVE_NANOTIME]: Prefer nanotime.
60914         Assume gettimeofday succeeds, as POSIX requires.
60915         Assime time () succeeds, since other code already does.
60916         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
60917         (timespec_subtract): Remove.
60918         (NANOSLEEP_BUG_WORKAROUND): New constant.
60919         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
60920         things considerably.  Use it only on GNU/Linux hosts, since the
60921         workaround shouldn't be needed elsewhere.
60922
60923 2005-02-24  Bruno Haible  <bruno@clisp.org>
60924
60925         * modules/gettext (Files): Add m4/glibc2.m4.
60926
60927 2005-02-24  Bruno Haible  <bruno@clisp.org>
60928
60929         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
60930         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
60931         * m4/progtest.m4:
60932         Update from GNU gettext 0.14.2.
60933         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
60934
60935 2005-02-24  Bruno Haible  <bruno@clisp.org>
60936
60937         * lib/localcharset.c: Update from GNU gettext 0.14.2.
60938         * lib/config.charset: Update from GNU gettext 0.14.2.
60939
60940 2005-02-24  Bruno Haible  <bruno@clisp.org>
60941
60942         * lib/gettext.h: Update from GNU gettext 0.14.2.
60943
60944 2005-02-23  Simon Josefsson  <jas@extundo.com>
60945
60946         * m4/iconvme.m4: New file.
60947
60948 2005-02-23  Jim Meyering  <jim@meyering.net>
60949
60950         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
60951         change.
60952         Thanks to Bruno Haible for catching it.
60953
60954 2005-02-22  Simon Josefsson  <jas@extundo.com>
60955
60956         * modules/iconvme: New file.
60957
60958         * MODULES.html.sh: Add iconvme.
60959
60960 2005-02-22  Simon Josefsson  <jas@extundo.com>
60961
60962         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
60963
60964 2005-02-22  Simon Josefsson  <jas@extundo.com>
60965
60966         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
60967
60968 2005-02-22  Jim Meyering  <jim@meyering.net>
60969
60970         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
60971         s/ifndef/ifdef/.
60972
60973 2005-02-20  Neil Conway  <neilc@samurai.com>
60974
60975         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
60976         returned by OSX/Darwin if the specified buffer is not large
60977         enough for the hostname.
60978
60979 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60980
60981         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
60982         pass it to _help, otherwise the latter coredumps trying to
60983         dereference state.root_argp.
60984
60985 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60986
60987         * modules/chdir-long (Depends-on): Add memrchr.
60988         * modules/memrchr (Files): Add lib/memrchr.h.
60989         (Include): "memrchr.h".
60990
60991 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60992
60993         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
60994
60995 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60996
60997         * lib/memrchr.h: New file.
60998         * lib/chdir-long.c: Include it.
60999         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
61000         Don't bother including stddef.h.
61001
61002 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
61003
61004         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
61005         inclusion.
61006         Include <sys/types.h>, for dev_t.
61007         (ME_DUMMY, ME_REMOTE): Move from here....
61008         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
61009         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
61010         Dmitry V. Levin.
61011         Include mountlist.h first, to test the interface.
61012
61013 2005-01-29  Bruno Haible  <bruno@clisp.org>
61014
61015         * lib/progname.c (program_name): Initialize.
61016         Needed when linking statically on MacOS X.
61017
61018 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61019
61020         Sync from coreutils.
61021         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
61022         (Depends-on): Add c-strtod.
61023         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
61024
61025 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61026
61027         Sync from coreutils.
61028         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
61029
61030         Remove files that are specific to coreutils.
61031         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
61032
61033 2005-01-28  Bruno Haible  <bruno@clisp.org>
61034
61035         * modules/javacomp: New file.
61036         * MODULES.html.sh (Java): Add javacomp.
61037
61038 2005-01-28  Bruno Haible  <bruno@clisp.org>
61039
61040         * m4/javacomp.m4: New file, from GNU gettext.
61041
61042 2005-01-28  Bruno Haible  <bruno@clisp.org>
61043
61044         * lib/javacomp.sh.in: New file, from GNU gettext.
61045         * lib/javacomp.h: New file, from GNU gettext.
61046         * lib/javacomp.c: New file, from GNU gettext.
61047
61048 2005-01-26  Simon Josefsson  <jas@extundo.com>
61049
61050         * lib/gai_strerror.c: Use GPL in header.
61051
61052 2005-01-26  Bruno Haible  <bruno@clisp.org>
61053
61054         * modules/javaexec: New file.
61055         * MODULES.html.sh (Java): Add javaexec.
61056
61057 2005-01-26  Bruno Haible  <bruno@clisp.org>
61058
61059         * m4/javaexec.m4: New file, from GNU gettext.
61060
61061 2005-01-26  Bruno Haible  <bruno@clisp.org>
61062
61063         * lib/javaexec.sh.in: New file, from GNU gettext.
61064         * lib/javaexec.h: New file, from GNU gettext.
61065         * lib/javaexec.c: New file, from GNU gettext.
61066
61067 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61068
61069         * modules/lchown (Depends-on): Remove lchown.h
61070
61071 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61072
61073         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
61074         must be defined if the header file was not found, in order
61075         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
61076
61077 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61078
61079         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
61080         initializers for struct pentry_state.
61081         (__argp_error): Check return value of __asprintf
61082         (__argp_failure): Translate error message
61083
61084         * lib/argp-parse.c: Removed braces around the expansion of N_()
61085
61086 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61087
61088         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
61089         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
61090         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
61091         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
61092         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
61093         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
61094         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
61095         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
61096         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
61097         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
61098         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
61099         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
61100         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
61101         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
61102         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
61103         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
61104         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
61105         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
61106         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
61107         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
61108         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
61109         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
61110         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
61111         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
61112         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
61113         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
61114         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
61115         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
61116         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
61117         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
61118         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
61119         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
61120         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
61121         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
61122         xstrtol.m4, xstrtoumax.m4, yesno.m4:
61123         Use an all-permissive copyright notice, recommended by RMS.
61124
61125 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
61126
61127         * modules/chdir-long (Depends-on): Remove mempcpy.
61128
61129 2005-01-21  Jim Meyering  <jim@meyering.net>
61130
61131         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
61132         same value as for Solaris 9.
61133
61134         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
61135         component length.  This included changing the parameter to be
61136         of type `char *' rather than `char const *'.
61137         * lib/chdir-long.h (chdir_long): Update prototype.
61138
61139         * lib/openat.c (fdopendir, fstatat): New functions.
61140         * lib/openat.h: Include headers required for use of DIR and struct
61141         stat.
61142         [AT_SYMLINK_NOFOLLOW]: Define.
61143         (fdopendir, fstatat): Add prototypes.
61144
61145 2005-01-21  Bruno Haible  <bruno@clisp.org>
61146
61147         * modules/classpath: New file.
61148         * MODULES.html.sh (Java): Add classpath.
61149
61150 2005-01-21  Bruno Haible  <bruno@clisp.org>
61151
61152         * lib/classpath.h: New file, from GNU gettext.
61153         * lib/classpath.c: New file, from GNU gettext.
61154
61155 2005-01-20  Simon Josefsson  <jas@extundo.com>
61156
61157         * modules/version-etc-fsf: New file.
61158
61159 2005-01-20  Simon Josefsson  <jas@extundo.com>
61160
61161         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
61162         * lib/version-etc.c: Remove version_etc_copyright.
61163         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
61164         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
61165
61166 2005-01-20  Simon Josefsson  <jas@extundo.com>
61167
61168         * lib/base64.h (isbase64): Add.
61169
61170         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
61171         using a unsigned prototype, don't inline.
61172         (base64_decode): Use it.
61173
61174 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61175
61176         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
61177         it.
61178
61179 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61180
61181         * lib/save-cwd.c (save_cwd): Remove code to support the case
61182         where fchdir is missing or flaky.
61183
61184 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61185
61186         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
61187
61188 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61189
61190         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
61191         AC_LIBSOURCES now does this.
61192         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
61193         with new ullong_max module.
61194
61195 2005-01-19  Bruno Haible  <bruno@clisp.org>
61196
61197         * modules/sh-quote: New file.
61198         * MODULES.html.sh (Executing programs): Add sh-quote.
61199
61200 2005-01-19  Bruno Haible  <bruno@clisp.org>
61201
61202         * lib/sh-quote.h: New file, from GNU gettext.
61203         * lib/sh-quote.c: New file, from GNU gettext.
61204
61205 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61206
61207         Merge from coreutils.
61208         * m4/ullong_max.m4: New file.
61209         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
61210         (gl_MACROS): Assume localeconv exists.
61211
61212 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61213
61214         Merge changes from coreutils, as described below in several
61215         changelogs dated today.
61216
61217         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
61218         (O_DIRECTORY): Remove; not needed here, since "." must be
61219         a directory.  All uses removed.
61220         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
61221         universal on Suns, and we also need to test for IRIX.
61222         Revamp code to use 'if' rather than '#if'.
61223         Avoid unnecessary comparison of cwd->desc to 0.
61224
61225         * lib/utimens.c (futimens): Robustify the previous patch, by checking
61226         for known valid error numbers rather than observed invalid ones.
61227
61228 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61229
61230         * modules/ullong_max: New file.
61231
61232         * modules/chdir-long, modules/openat: New files.
61233         * modules/save-cwd (Depends-on): Depend on chdir-long.
61234         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
61235
61236 2005-01-18  Jim Meyering  <jim@meyering.net>
61237
61238         Merge from coreutils.
61239         * m4/chdir-long.m4, m4/openat.m4: New files.
61240         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
61241         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
61242         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
61243         is sane and DOES follow symlinks.  Besides, testing 20 different
61244         systems found no broken chown implementations.
61245         Prompted by a change in rsync's copy of this macro.
61246         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
61247
61248         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
61249
61250         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
61251         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
61252         NULL-means-set-to-current-time semantics.
61253         Remove temporary file immediately, rather than waiting
61254         for configure's at-exit trap code to do it.
61255
61256 2005-01-18  Jim Meyering  <jim@meyering.net>
61257
61258         * lib/version-etc.c (version_etc_copyright): Update copyright date.
61259
61260         * lib/utimens.c (futimens): Account for the fact that futimes
61261         can also fail with errno == ENOSYS or errno == ENOENT.
61262         Patch from Dmitry V. Levin.
61263
61264         Change the name of the robust chdir function from chdir to chdir_long.
61265         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
61266         (restore_cwd): Use chdir_long, not chdir.
61267         * lib/chdir-long.c: Renamed from chdir.c.
61268         * lib/chdir-long.h: Renamed from chdir.h.
61269         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
61270         Hurd.
61271
61272 2005-01-18  Bruno Haible  <bruno@clisp.org>
61273
61274         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
61275         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
61276         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
61277         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
61278         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
61279         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
61280         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
61281         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
61282         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
61283         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
61284         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
61285         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
61286         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
61287         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
61288         Use an all-permissive copyright notice, recommended by RMS.
61289
61290 2005-01-18  Bob Proulx  <bob@proulx.com>
61291
61292         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
61293         simplify offsetof() macro construct to avoid compile failure with
61294         native HP-UX 11.0 ANSI C compiler.
61295
61296 2005-01-17  Bruno Haible  <bruno@clisp.org>
61297
61298         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
61299         redundant because stpncpy.m4 takes care of it.
61300
61301 2005-01-17  Bruno Haible  <bruno@clisp.org>
61302
61303         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
61304
61305 2005-01-17  Bruno Haible  <bruno@clisp.org>
61306
61307         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
61308         used.
61309
61310 2005-01-17  Bruno Haible  <bruno@clisp.org>
61311
61312         * lib/fwriteerror.h (fwriteerror): Change specification to include
61313         fclose.
61314         * lib/fwriteerror.c: Include <stdbool.h>.
61315         (fwriteerror): At the end, close the file stream. Record whether
61316         stdout was already closed.
61317
61318 2005-01-17  Bruno Haible  <bruno@clisp.org>
61319
61320         * lib/execute.c (environ): Declare if needed.
61321         * lib/pipe.c (environ): Likewise.
61322         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
61323
61324 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61325
61326         * modules/argp: Depend on vsnprintf
61327
61328 2005-01-10  Jim Meyering  <jim@meyering.net>
61329
61330         * modules/closeout (Depends-on): Add atexit.
61331
61332 2005-01-06  Bruno Haible  <bruno@clisp.org>
61333
61334         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
61335
61336 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61337
61338         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
61339         definitions to be after all include files, to avoid collisions.
61340         Problem reported by Bob Proulx.
61341
61342 2005-01-04  Jim Meyering  <jim@meyering.net>
61343
61344         Changes imported from coreutils.
61345         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
61346         as the mkstemp template, use a temporary directory and an
61347         8.3-friendly template to avoid trouble on systems like DJGPP.
61348         Reported by Juan M. Guerrero via Stepan Kasal.
61349         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
61350         close. Remove the temporary directory right away, rather than waiting
61351         for configure's at-exit trap code to do it.
61352         Suggestion from Stepan Kasal.
61353
61354 2005-01-01  Simon Josefsson  <jas@extundo.com>
61355
61356         * gnulib-tool: Print #include directives when --import'ing.
61357
61358 2004-12-28  Simon Josefsson  <jas@extundo.com>
61359
61360         * tests/test-base64.c: Include required header files.  Remove
61361         unused variables.
61362
61363 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61364
61365         * modules/error (Depends-on): Remove gettext.
61366
61367 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61368
61369         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
61370         not needed.  This removes a dependency on the gettext module.
61371         [defined _LIBC]: Do not include <libintl.h>; not needed.
61372
61373 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
61374
61375         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
61376         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
61377
61378 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
61379
61380         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
61381         HAVE_DECL_STRTOLD.
61382
61383 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61384
61385         * modules/getdate (Depends-on): Remove alloca-opt.
61386
61387 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61388
61389         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
61390
61391 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61392
61393         * lib/argp-parse.c: Include <stddef.h>.
61394         (alignof, alignto): New macros.
61395         (parser_init): Don't assume that void * is aligned sufficiently
61396         for struct option.
61397
61398         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
61399         need to extend the stack.
61400         (YYINITDEPTH): New macro, so that the initial stack isn't overly
61401         large.
61402
61403 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61404
61405         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
61406
61407 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61408
61409         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
61410         (2004-10-24) change.  Apparently this was a false alarm.
61411
61412         * modules/getdate: Depend on alloca-opt, not alloca.
61413
61414 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61415
61416         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
61417         Remove now-obsolete comment about AIX.
61418         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
61419         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
61420         (YYMAXDEPTH): New macro.
61421
61422 2004-12-18  Simon Josefsson  <jas@extundo.com>
61423
61424         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
61425
61426 2004-12-18  Bruno Haible  <bruno@clisp.org>
61427
61428         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
61429
61430 2004-12-18  Bruno Haible  <bruno@clisp.org>
61431
61432         * lib/fatal-signal.c (fatal_signals): Make non-const.
61433         (init_fatal_signals): New function.
61434         (uninstall_handlers, install_handlers): Ignore signals that were set to
61435         SIG_IGN.
61436         (at_fatal_signal): Call init_fatal_signals.
61437         (init_fatal_signal_set): Likewise. Ignore signals that were set to
61438         SIG_IGN.
61439         Reported by Paul Eggert.
61440
61441 2004-12-18  Bruno Haible  <bruno@clisp.org>
61442
61443         * doc/alloca.texi: New file.
61444         * doc/alloca-opt.texi: New file.
61445
61446 2004-12-17  Jim Meyering  <jim@meyering.net>
61447
61448         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
61449         Otherwise, install-sh could exit with improper exit status when
61450         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
61451
61452 2004-12-16  Simon Josefsson  <jas@extundo.com>
61453
61454         * tests/test-base64.c: Add license.
61455
61456 2004-12-15  Stepan Kasal  <address@hidden>
61457
61458         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
61459
61460 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
61461
61462         * modules/getcwd (Files): Add m4/d-ino.m4.
61463         Suggested by Mark D. Baushke.
61464
61465 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
61466
61467         * lib/getdate.y (textint): New member "negative".
61468         (time_zone_hhmm): New function.
61469         Expect 14 shift-reduce conflicts, not 13.
61470         (o_colon_minutes): New rule.
61471         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
61472         (yylex): Set the "negative" member of signed numbers.
61473
61474 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
61475
61476         * doc/getdate.texi (Time of day items, Time zone items):
61477         Describe new formats +00:00, UTC+00:00.
61478
61479 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61480
61481         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
61482         spurious "-l"s.  Problem reported by Stepan Kasal.
61483
61484 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
61485
61486         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
61487         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
61488
61489 2004-12-04  Simon Josefsson  <jas@extundo.com>
61490
61491         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
61492         Vandoorselaere <yoann@prelude-ids.org>.
61493
61494 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61495
61496         Changes imported from coreutils.
61497         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
61498         exist.
61499         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
61500
61501 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61502
61503         Changes imported from coreutils.
61504         * lib/hard-locale.c: Assume <locale.h> exists.
61505         Include "strdup.h".
61506         (GLIBC_VERSION): New macro.
61507         (hard_locale): Assume setlocale exists.
61508         Rewrite to avoid #ifdef.
61509         Use strdup rather than malloc + strcpy.
61510         * lib/human.c: Assume <locale.h> exists.
61511         (human_readable): Assume localeconv exists.
61512
61513 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61514
61515         * modules/hard-locale (Depends-on): Add strdup.
61516
61517 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61518
61519         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
61520         convert T2, not T.  (Imported from libc.)
61521
61522 2004-11-30  Simon Josefsson  <jas@extundo.com>
61523
61524         * modules/restrict (License): Change to LGPL.
61525
61526 2004-11-30  Simon Josefsson  <jas@extundo.com>
61527
61528         * m4/restrict.m4: Add copyright and copying conditions.
61529
61530 2004-11-30  Simon Josefsson  <jas@extundo.com>
61531
61532         * m4/base64.m4: New file.
61533
61534 2004-11-30  Simon Josefsson  <jas@extundo.com>
61535
61536         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
61537         base64.
61538
61539         * tests/test-base64.c: New file.
61540
61541         * modules/base64: New file.
61542
61543 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
61544
61545         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
61546         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
61547
61548         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
61549
61550 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
61551
61552         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
61553         (__getcwd.c): Don't restore errno; glibc doesn't.
61554         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
61555         first, falling back to our code only if its results look suspicious.
61556         Ensure that the resulting buffer is only as large as necessary.
61557
61558         * lib/readutmp.c: Include readutmp.h first.
61559         Include <errno.h>, since readutmp.h no longer does that.
61560         * lib/readutmp.h: Don't include <errno.h>,
61561         <sys/param.h>, <time.h>; not needed to establish interface.
61562         (errno): Remove decl.
61563         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
61564         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
61565         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
61566
61567 2004-11-28  Simon Josefsson  <jas@extundo.com>
61568
61569         * lib/base64.h, base64.c: New file.
61570
61571 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61572
61573         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
61574
61575 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61576
61577         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
61578         (Depends-on): Remove pathmax, same.  Add mempcpy.
61579         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
61580         (Makefile.am): Append getcwd.h to lib_SOURCES.
61581         (Include): Add getcwd.h.
61582         (Maintainer): Change from Jim Meyering to "all, glibc",
61583         since getdate now uses intended-for-glibc code.
61584         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
61585         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
61586
61587 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61588
61589         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
61590         HP's ANSI C compiler.
61591         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
61592         Declaring int functions causes warnings on some modern systems and
61593         shouldn't be needed to compile on ancient ones.
61594         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
61595         defined.
61596
61597         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
61598         with the following changes.
61599         (__set_errno): Parenthesize properly.
61600         Include <stdbool.h>.
61601         (MIN, MAX, MATCHING_INO): New macros.
61602         (__getcwd): Define with prototype, not K&R form.
61603         Use heuristics to allocate default buffer on stack if possible.
61604         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
61605         behavior, and to avoid the PATH_MAX limit when computing
61606         ../../../../...
61607         Use MATCHING_INO to compare inode number to file.
61608         Check for arithmetic overflow in size calculations.
61609         Fix bug in reallocation of dot array that caused getcwd to fail
61610         on directories nested deeper than 75.
61611         Be more careful about saving errno on error.
61612         Do not use realloc; use only free+malloc, as this is a bit
61613         more flexible and avoids a needless copy operation.
61614         Do not inspect st_dev and st_ino for symbolic links; POSIX
61615         doesn't specify the latter.
61616         Check for closedir errors.
61617         Avoid needless casts.
61618         Use "#ifdef weak_alias" around weak_alias, to be like other
61619         glibc code.
61620         The following changes to getcwd.c have effect only when used in
61621         gnulib; they have no effect inside glibc proper.
61622         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
61623         as alloca isn't used.
61624         (alloca, __alloca): Likewise.
61625         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
61626         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
61627         unconditionally, as gnulib assumes C89 or better.
61628         Do not include <sys/param.h>.
61629         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
61630         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
61631         better.
61632         (NULL) [!defined NULL]: Remove; we assume C89 or better.
61633         Include <dirent.h> in a way that is compatible with modern Autoconf.
61634         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
61635         New macros, if not already defined.
61636         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
61637         Use "_LIBC", not "defined _LIBC", for consistency.
61638         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
61639         a mempcpy module.
61640         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
61641         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
61642         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
61643         credit only to Jim Meyering and adjust the copyright dates.
61644         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
61645         <stdlib.h>, <unistd.h>, "pathmax.h".
61646         Instead, include "xgetcwd.h" (first) and "getcwd.h".
61647         (INITIAL_BUFFER_SIZE): Remove.
61648         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
61649
61650 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61651
61652         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
61653         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
61654         Use the _ONCE methods, for efficiency.
61655         Check for fcntl.h.  In test program, include <errno.h>
61656         and <fcntl.h> if available.  Remove old K&R cruft from
61657         test program.  Check for common errors in GNU/Linux,
61658         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
61659         don't do AC_LIBOBJ, as that's getcwd.m4's job.
61660         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
61661         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
61662         name accordingly.
61663         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
61664         accommodate new getcwd.c.
61665         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
61666         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
61667         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
61668         that's all we need now.
61669
61670 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61671
61672         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
61673         argp-parse.c depends on getopt internals, that means we should
61674         always use our getopt, to be on the safe side.
61675         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
61676         order not to spoil the result of an eventual previous invocation
61677         of gl_GETOPT_SUBSTITUTE.
61678
61679 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61680
61681         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
61682         redefinition warnings. To avoid them, include the defines
61683         in `#if !defined __need_getopt ... #endif'. The only place
61684         where __getopt_argv_const is used is in definitions
61685         of getopt_long and getopt_long_only below, which are as well
61686         protected by `#ifndef __need_getopt'.
61687         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
61688         __need_getopt after including <stdio.h> and <unistd.h> These
61689         headers might have defined it.
61690
61691 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
61692
61693         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
61694
61695 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
61696
61697         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
61698         (futimens): New function, which uses futimes if available.
61699         (futimens, utimens): Support timespec==NULL, with same semantics
61700         as utime and utimens.
61701         * lib/utimens.h (futimens): New decl.
61702
61703 2004-11-23  Jim Meyering  <jim@meyering.net>
61704
61705         * lib/getopt_.h: Remove trailing blanks.
61706
61707 2004-11-23  Jim Meyering  <jim@meyering.net>
61708
61709         * lib/__fpending.c: Add comment.
61710
61711 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
61712
61713         * modules/canonicalize (Depends-on): Add xreadlink.
61714         Problem reported by James Youngman.
61715
61716 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61717
61718         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
61719         New macros.
61720         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
61721         optopt): Use them instead of invoking ## directly; otherwise, the
61722         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
61723
61724 2004-11-19  Bruno Haible  <bruno@clisp.org>
61725
61726         * lib/strtok_r.c: Move comments from here...
61727         * lib/strtok_r.h: ... to here.
61728
61729 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61730
61731         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
61732         implementations that mishandle size_t overflow.
61733
61734 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61735
61736         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
61737         might fail.  Problem reported by Yoann Vandoorselaere.
61738         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
61739         implementations that mishandle size_t overflow.
61740
61741 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61742
61743         * modules/canon-host (Depends-on): Add strdup.
61744
61745 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61746
61747         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
61748
61749 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61750
61751         * lib/canon-host.c: Include "strdup.h".
61752         (canon_host): Use getaddrinfo if available, so that IPv6 works.
61753         Use strdup instead of malloc/strcpy to duplicate strings.
61754
61755         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
61756         (human_space_before_unit): New constant.
61757         * lib/human.c (human_readable): Support it.
61758
61759         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
61760         (xgetcwd): Set errno correctly when failing.
61761         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
61762         the failure is actually due to a PATH_MAX problem.
61763
61764         Further getopt changes to make it more likely that glibc will
61765         buy the changes back.
61766         * lib/getopt.c (POSIXLY_CORRECT): New constant.
61767         (getopt): Use it, so to preserve glibc semantic
61768         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
61769         when compiling for libc.
61770         * lib/getopt_.h (__getopt_argv_const): Bring it back.
61771         (getopt_long, getopt_long_only): Use it.
61772
61773         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
61774         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
61775         (getopt): Argv is now char * const *, as per standard.
61776         (_getopt_internal_r, _getopt_internal): Argv is now char **,
61777         not char *__getopt_argv_const *.
61778         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
61779         _getopt_long_only_r): Likewise.
61780         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
61781         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
61782         _getopt_long_r, _getopt_long_only_r): Likewise.
61783         * lib/getopt_.h (__getopt_argv_const): Remove.
61784         (getopt): Argv is now char * const *, as per standard.
61785
61786         * lib/getdate.y (tORDINAL): New token.
61787         (day, relunit): Allow it for relative times.
61788         (relative_time_table): Use tORDINAL for ordinals.
61789
61790 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61791
61792         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
61793         Document that "second" isn't allowed as an ordinal number.
61794
61795 2004-11-16  Jim Meyering  <jim@meyering.net>
61796
61797         * modules/closeout (Depends-on): Add fpending.
61798
61799 2004-11-15  Jim Meyering  <jim@meyering.net>
61800
61801         * lib/closeout.c: Include "__fpending.h" once again.
61802         Include <stdbool.h>.
61803         (close_stdout): Don't fail just because stdout was closed initially,
61804         since some programs don't write to stdout in the normal course of
61805         operation (other than --version and --help), and we don't want this
61806         function to make e.g. `touch file >&-' fail.
61807         But do fail if it was closed and someone has tried to write to it.
61808         E.g., `printf foo >&-' must fail.
61809
61810 2004-11-13  Jim Meyering  <jim@meyering.net>
61811
61812         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
61813
61814 2004-11-12  Simon Josefsson  <jas@extundo.com>
61815
61816         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
61817         small doc fix is still pending.
61818
61819 2004-11-11  Simon Josefsson  <jas@extundo.com>
61820
61821         * modules/strtok_r: New file.
61822
61823         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61824         strtok_r.
61825
61826 2004-11-11  Simon Josefsson  <jas@extundo.com>
61827
61828         * m4/strtok_r.m4: New file.
61829
61830         * m4/getopt.m4: Replace opterr.
61831
61832 2004-11-11  Simon Josefsson  <jas@extundo.com>
61833
61834         * lib/strtok_r.h, strtok_r.c: New file.
61835
61836 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
61837
61838         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
61839         of replacing opterr, getopt, etc.  This should handle the
61840         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
61841
61842 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
61843
61844         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
61845         we can stop lying to compilers about the constness of argv when we
61846         are compiled outside glibc.
61847         (getopt, getopt_long, getopt_long_only): Use it.
61848         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
61849         _getopt_internal, getopt): Likewise.
61850         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
61851         _getopt_long_only_r): Likewise.
61852         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
61853         _getopt_long_r, _getopt_long_only_r): Likewise.
61854
61855         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
61856         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
61857         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
61858         the other external symbols.
61859         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
61860         declaration, since the above renaming now works around collisions.
61861
61862 2004-11-11  Jim Meyering  <jim@meyering.net>
61863
61864         * lib/linebreak.c: Remove trailing blanks.
61865         * lib/alloca_.h: Likewise.
61866         * lib/acosl.c: Likewise.
61867         * lib/euidaccess.c: Likewise.
61868         * lib/allocsa.h: Likewise.
61869
61870 2004-11-10  Simon Josefsson  <jas@extundo.com>
61871
61872         * m4/getaddrinfo.m4: New file.
61873
61874 2004-11-10  Simon Josefsson  <jas@extundo.com>
61875
61876         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
61877
61878 2004-11-10  Simon Josefsson  <jas@extundo.com>
61879
61880         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61881         getaddrinfo.
61882
61883         * modules/getaddrinfo: New file.
61884
61885 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61886
61887         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
61888
61889 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61890
61891         * lib/mktime.c (SHR): New macro, which is a portable
61892         substitute for >> that should work even on Crays.
61893         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
61894         Problem reported by Mark D. Baushke in
61895         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
61896         * lib/getdate.y (SHR): Likewise.
61897         (tm_diff): Use it.
61898         * lib/strftime.c (SHR): Likewise.
61899         (tm_diff): Use it.
61900         * lib/quotearg.c (struct quoting_options): Use unsigned int for
61901         quote_these_too, so that right shifts are well defined.  All uses
61902         changed.
61903
61904 2004-11-10  Jim Meyering  <jim@meyering.net>
61905
61906         Ensure that no close failure goes unreported.
61907         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
61908         return early when it seems there's nothing to flush.
61909         Don't include __fpending.h.
61910
61911 2004-11-10  Jim Meyering  <jim@meyering.net>
61912
61913         * modules/closeout (Depends-on): Remove fpending.
61914
61915 2004-11-10  Jim Meyering  <jim@meyering.net>
61916
61917         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
61918
61919 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61920
61921         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
61922         gl_FUNC_STRFTIME.
61923         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
61924         and AC_REQUIRE when possible, to avoid duplicate checks.
61925         Check for <wchar.h>.
61926
61927 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61928
61929         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
61930
61931 2004-11-09  Bruno Haible  <bruno@clisp.org>
61932
61933         * m4/sockpfaf.m4: New file.
61934
61935 2004-11-05  Bruno Haible  <bruno@clisp.org>
61936
61937         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
61938         Reported by Mark D. Baushke <mdb@cvshome.org>.
61939
61940 2004-11-04  Bruno Haible  <bruno@clisp.org>
61941
61942         2004-09-11  Bruno Haible  <bruno@clisp.org>
61943                 * allocsa.valgrind: New file.
61944         2004-02-06  Bruno Haible  <bruno@clisp.org>
61945                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
61946                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
61947                 Reported by Christopher Seip <chris.seip@hp.com>.
61948
61949 2004-11-04  Bruno Haible  <bruno@clisp.org>
61950
61951         * modules/allocsa (Files): Add lib/allocsa.valgrind.
61952         (Makefile.am): Distribute it.
61953
61954 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
61955
61956         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
61957         with errno == ERANGE if the buffer is too small.
61958         Problem reported by Mark D. Baushke.
61959
61960 2004-11-03  Albert Chin  <china@thewrittenword.com>
61961             Paul Eggert  <eggert@cs.ucla.edu>
61962
61963         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
61964         equivalent, substitute $ac_type for equivalent type rather than
61965         blindly using uint32_t *always* which won't work if uint32_t is not
61966         available.  Define _UINT32_T to work around typedef of uint32_t if
61967         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
61968         2.5.1.
61969
61970 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61971
61972         * m4/jm-macros.m4: Sync from coreutils.
61973         (gl_MACROS): Check for mbrlen, for pathchk.
61974         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
61975
61976 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61977
61978         * lib/xreadlink.c (MAXSIZE): New macro.
61979         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
61980         size does not exceed MAXSIZE.  Avoid cast.
61981         As suggested by Mark D. Baushke in
61982         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
61983         if readlink fails with buffer size just under MAXSIZE, try again
61984         with MAXSIZE.
61985
61986 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
61987
61988         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
61989
61990 2004-11-02  Derek R. Price  <derek@ximbiot.com>
61991         and  Paul Eggert  <eggert@cs.ucla.edu>
61992
61993         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
61994         (get_date): Overparenthesize to avoid GCC warning.
61995
61996 2004-11-02  Bruno Haible  <bruno@clisp.org>
61997
61998         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
61999         returns void.
62000
62001 2004-11-02  Bruno Haible  <bruno@clisp.org>
62002
62003         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
62004         function returns void.
62005
62006 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62007
62008         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
62009         fflush_unlocked, flockfile, funlockfile, funlockfile,
62010         fputs_unlocked, putc_unlocked.
62011
62012 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62013
62014         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
62015         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
62016         already declared.
62017
62018 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62019
62020         * modules/getdate (Files): Add doc/getdate.texi.
62021         (Depends-on): Add setenv, xalloc.
62022
62023 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62024
62025         * lib/getdate.y: Add support for TZ="foo" within a date string.
62026         Fix some bugs near time_t boundaries.  Reject dates with
62027         out-of-range components, e.g., "Sept 31".
62028         Include <stdlib.h>, "setenv.h", "xalloc.h".
62029         (ISDIGIT_LOCALE): Remove; unused.
62030         Note that the TZ and time functions used here are not reentrant.
62031         (mktime_ok, get_tz): New functions.
62032         (TZBUFSIZE): New constant.
62033         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
62034         This requires that we sometimes generate our own TZ="XXX..." setting.
62035
62036 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62037
62038         * doc/getdate.texi: New file, from coreutils with modifications for
62039         the new TZ parsing.
62040
62041 2004-10-27  Derek R. Price  <derek@ximbiot.com>
62042
62043         * lib/mktime.c (not_equal_tm): Remove redundant check.
62044
62045 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62046
62047         * modules/regex (lib_SOURCES): Add regex.c.
62048         Reported by James Youngman in
62049         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
62050
62051 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62052
62053         * lib/getdate.y: Use Bison 1.875 features, and some minor
62054         code cleanups.  This change does not affect semantics.
62055         Don't include <stdlib.h>; no longer needed.
62056         Don't include unlocked-io.h; only the "#if TEST" code uses
62057         stdio, and performance isn't crucial there.
62058         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
62059         Bison 1.875 features as described below.
62060         All uses of "PC." replaced by "pc->".
62061         (YYSTYPE): Add a forward declaration.
62062         (yylex, yyerror): Use full prototypes in forward decls.
62063         Use "%pure-parser" rather than obsolescent "%pure_parser".
62064         Use %parse-param and %lex-param instead of obsolescent
62065         YYPARSE_PARAM and YYLEX_PARAM.
62066         (meridian_table, month_and_day_table, time_units_table,
62067         relative_time_table, time_zone_table, military_table,
62068         lookup_zone, lookup_word, get_date):
62069         Use NULL instead of 0 where appropriate.
62070         (to_hour): Avoid abort (), to avoid a dependency on
62071         stdlib.h.
62072         (yyerror, yylex): Now accepts parser_control * arg.
62073         (main) [TEST]: Use '\0' rather than 0 for char.
62074
62075 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62076
62077         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
62078
62079 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62080
62081         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
62082         It's now the caller's responsibility to handle the case where
62083         !HAVE_GETPAGESIZE && !defined getpagesize.
62084
62085         * lib/mktime.c (leapyear): Arg is long int, not int.
62086
62087 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
62088
62089         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
62090
62091 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62092
62093         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
62094         missing.  Problem reported by James Youngman.
62095
62096 2004-10-16  Simon Josefsson  <jas@extundo.com>
62097
62098         * gnulib-tool: Fix comments.  Fix parse problem.
62099         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
62100
62101 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
62102
62103         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
62104         implementation of getopt_long.  Problem reported by Alexander Taler in:
62105         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
62106
62107 2004-10-15  Bruno Haible  <bruno@clisp.org>
62108
62109         * gnulib-tool: Untabify. Initialize supplied_libname.
62110         (func_usage): More homogenous output.
62111         (func_modules_transitive_closure, func_modules_to_filelist,
62112         func_emit_lib_Makefile_am): New functions.
62113         (func_import): New function, extracted from big case statement. Use
62114         func_get_license, func_modules_transitive_closure,
62115         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
62116         opt_lgpl. Don't use test -a, as it's not portable.
62117         (func_create_testdir): Use func_modules_transitive_closure,
62118         func_modules_to_filelist, func_emit_lib_Makefile_am.
62119
62120 2004-10-15  Bruno Haible  <bruno@clisp.org>
62121
62122         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
62123
62124 2004-10-15  Bruno Haible  <bruno@clisp.org>
62125
62126         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
62127         the portions belonging to each module.
62128         Suggested by Derek Robert Price <derek@ximbiot.com>.
62129
62130 2004-10-12  Simon Josefsson  <jas@extundo.com>
62131
62132         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
62133         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
62134         to real functions.
62135
62136 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62137
62138         * modules/vsnprintf: New file.
62139
62140 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62141
62142         * m4/vsnprintf.m4: New file.
62143
62144 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62145
62146         * lib/vsnprintf.h: New file.
62147         * lib/vsnprintf.c: New file.
62148
62149 2004-10-11  Bruno Haible  <bruno@clisp.org>
62150
62151         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
62152         vsnprintf.
62153
62154 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62155
62156         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
62157
62158 2004-10-07  Bruno Haible  <bruno@clisp.org>
62159
62160         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
62161         fits into the provided buffer.
62162
62163 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62164
62165         * lib/diacrit.c, diacrit.h: Add GPL notice.
62166
62167         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
62168         notice.
62169         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
62170         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
62171         This avoids a potential constant-folding bug.
62172
62173 2004-10-05  Bruno Haible  <bruno@clisp.org>
62174
62175         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
62176         for the declaration of strsep.
62177
62178 2004-10-05  Bruno Haible  <bruno@clisp.org>
62179
62180         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
62181
62182 2004-10-04  Simon Josefsson  <jas@extundo.com>
62183
62184         * modules/memmem: New file.
62185         * tests/test-memmem.c: New file.
62186         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
62187
62188 2004-10-04  Simon Josefsson  <jas@extundo.com>
62189
62190         * m4/memmem.m4: New file.
62191
62192 2004-10-04  Simon Josefsson  <jas@extundo.com>
62193
62194         * lib/memmem.h: New file.
62195         * lib/memmem.c: New file, taken from glibc.
62196
62197 2004-10-04  Simon Josefsson  <jas@extundo.com>
62198
62199         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
62200         '#ifdef USE_UNLOCKED_IO'.
62201
62202 2004-10-04  Simon Josefsson  <jas@extundo.com>
62203
62204         * config/srclist.txt: Add memmem from glibc.
62205
62206 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62207
62208         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
62209
62210         * modules/argmatch, modules/argp, modules/closeout, modules/error,
62211         modules/exclude, modules/getdate, modules/getline,
62212         modules/getndelim2, modules/getpass, modules/getpass-gnu,
62213         modules/getusershell, modules/linebuffer, modules/md5,
62214         modules/mountlist, modules/posixtm, modules/readtokens,
62215         modules/readutmp, modules/regex, modules/sha1,
62216         modules/version-etc, modules/yesno:
62217         Remove dependency on unlocked-io.
62218
62219 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62220
62221         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
62222
62223         * m4/unlocked-io.m4: Add copyright notice.
62224         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
62225
62226 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62227
62228         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
62229         * lib/xmalloc.c (xmemdup): Likewise.
62230         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
62231         XFREE): Remove these long-obsolescent macros.
62232         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
62233         * lib/xstrdup.c: Remove.
62234
62235         * lib/regex.c (re_comp): Cast gettext return value to char *,
62236         Problem reported by Martin Neitzel via Mark D. Baushke.
62237
62238 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62239
62240         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
62241         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
62242         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
62243         regex.c, sha1.c, version-etc.c, yesno.c:
62244         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
62245         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
62246         the includer's responsibility.
62247
62248         Sync from coreutils.
62249
62250         * lib/modechange.c (mode_compile): Don't decrement a pointer that
62251         points to the start of a string, as the C Standard says the
62252         resulting behavior is undefined.
62253
62254         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
62255         simple -> simple_backups, numbered_existing ->
62256         numbered_existing_backups, numbered -> numbered_backups
62257         to avoid shadowing problems.  All uses changed.
62258         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
62259         * lib/backupfile.c (check_extension, numbered_backup):
62260         Rename locals to avoid shadowing 'basename'.
62261         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
62262         once.
62263
62264         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
62265         * lib/.cvsignore: Add getopt.h.
62266
62267 2004-10-04  Bruno Haible  <bruno@clisp.org>
62268
62269         * modules/README: New file.
62270         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
62271         not a module.
62272
62273 2004-10-02  Jim Meyering  <jim@meyering.net>
62274
62275         * lib/dirfd.h, getpagesize.h: Add copyright notice.
62276
62277 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62278
62279         * modules/strsep: New file.
62280
62281 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62282
62283         * m4/strsep.m4: New file.
62284
62285 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62286
62287         * lib/strsep.h: New file.
62288         * lib/strsep.c: New file.
62289
62290 2004-10-01  Simon Josefsson  <jas@extundo.com>
62291
62292         * lib/snprintf.c (snprintf): Handle size==0.
62293
62294 2004-10-01  Simon Josefsson  <jas@extundo.com>
62295             Bruno Haible  <bruno@clisp.org>
62296
62297         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
62298         (snprintf): Declare 'args'.
62299
62300 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
62301
62302         * lib/snprintf.c: Remove comments as to why each header is needed.
62303
62304 2004-10-01  Bruno Haible  <bruno@clisp.org>
62305
62306         * MODULES.html.sh: Add strsep.
62307
62308 2004-09-30  Simon Josefsson  <jas@extundo.com>
62309
62310         * modules/snprintf: New file.
62311
62312 2004-09-30  Simon Josefsson  <jas@extundo.com>
62313
62314         * m4/snprintf.m4: New file.
62315
62316 2004-09-30  Simon Josefsson  <jas@extundo.com>
62317
62318         * lib/snprintf.h, lib/snprintf.c: New files.
62319
62320 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62321
62322         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
62323         (hol_entry_help): Never translate an empty string.
62324         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
62325         * lib/argp.h (OPTION_NO_TRANS): New option.
62326
62327 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62328
62329         * modules/argp (Maintainer): Replace Simon Josefsson
62330         by Sergey Poznyakoff.
62331
62332 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62333
62334         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
62335         changes merged back into glibc.
62336
62337 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62338
62339         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
62340
62341 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
62342
62343         * lib/xvasprintf.c: Include xalloc.h.
62344         (xvasprintf): Use xalloc_die, not xmalloc_die.
62345
62346 2004-09-29  Bruno Haible  <bruno@clisp.org>
62347
62348         * modules/alloca-opt: New file, derived from modules/alloca.
62349         * modules/allocsa: Depend on alloca-opt instead of alloca.
62350         * modules/setenv: Likewise.
62351         * modules/vasnprintf: Likewise.
62352         * MODULES.html.sh: Add alloca-opt.
62353
62354 2004-09-28  Simon Josefsson  <jas@extundo.com>
62355
62356         * gnulib-tool: New parameter --lgpl, to asseert that modules are
62357         LGPL, and to replace license template from GPL to LGPL.
62358
62359 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
62360
62361         * modules/dummy: Change license to LGPL.
62362
62363 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
62364
62365         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
62366
62367 2004-09-24  Simon Josefsson  <jas@extundo.com>
62368
62369         * modules/minmax (License): Change from GPL to LGPL.
62370
62371 2004-09-23  Simon Josefsson  <jas@extundo.com>
62372
62373         * gnulib-tool (--import): Typo.
62374
62375 2004-09-23  Simon Josefsson  <jas@extundo.com>
62376
62377         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
62378
62379 2004-09-22  Bruno Haible  <bruno@clisp.org>
62380
62381         * modules/*: Add 'License' field.
62382         * gnulib-tool: Accept --extract-license option.
62383         (func_get_license): New function.
62384
62385 2004-09-21  Bruno Haible  <bruno@clisp.org>
62386
62387         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
62388         Reported by Simon Josefsson.
62389
62390 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62391
62392         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
62393         gl_AC_TYPE_LONG_LONG.
62394
62395 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62396
62397         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
62398
62399 2004-09-18  Simon Josefsson  <jas@extundo.com>
62400         and  Paul Eggert  <eggert@cs.ucla.edu>
62401
62402         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
62403         calls with autoreconf.  Define GL_LIB.
62404
62405 2004-09-14  Karl Berry  <karl@gnu.org>
62406
62407         * config/srclist.txt: unsync setenv.c, sigh.
62408
62409 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62410
62411         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
62412         Problem reported by Bruno Haible in:
62413         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
62414
62415 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62416
62417         * config/srclist.txt: Comment out argp-pvh.c.
62418
62419 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
62420
62421         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
62422         in case some system header has #define'd it.  Problem reported by
62423         Soeren D. Schulze in
62424         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
62425
62426 2004-09-09  Karl Berry  <karl@gnu.org>
62427
62428         * regex.[ch]: delete from the root.  These were supposed to be
62429                 synced with emacs cvs, but this has not happened for about
62430                 a year, and anyway nothing else uses emacs regex.[ch].
62431                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
62432                 lib/regex[.ch] is untouched.
62433
62434 2004-09-09  Bruno Haible  <bruno@clisp.org>
62435
62436         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
62437
62438 2004-09-09  Bruno Haible  <bruno@clisp.org>
62439
62440         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
62441         modifications.
62442         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
62443
62444 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
62445
62446         * modules/xvasprintf: New file.
62447         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
62448
62449 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
62450
62451         * lib/xvasprintf.h: New file.
62452         * lib/xvasprintf.c: New file.
62453         * lib/xasprintf.c: New file.
62454
62455 2004-09-08  Bruno Haible  <bruno@clisp.org>
62456
62457         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
62458
62459 2004-09-08  Bruno Haible  <bruno@clisp.org>
62460
62461         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
62462         length is > INT_MAX.
62463         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
62464         more.
62465
62466 2004-09-08  Bruno Haible  <bruno@clisp.org>
62467
62468         * lib/stdint_.h: New file, taken from GNU clisp.
62469
62470 2004-09-08  Bruno Haible  <bruno@clisp.org>
62471             Oskar Liljeblad  <oskar@osk.mine.nu>
62472
62473         * modules/stdint: New file.
62474         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
62475
62476 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62477
62478         Import from coreutils.
62479         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
62480         strings on unbounded length.  alloca's performance benefits aren't
62481         that important here.
62482         (V_STRDUP): Remove.
62483         (parse_with_separator): New function, with most of the internals
62484         of the old parse_user_spec.  Allow user to omit both user and group,
62485         for compatibility with FreeBSD.
62486         Clone only the user name, not the entire spec.
62487         Do not set *uid, *gid unless entirely successful.
62488         Avoid memory leak in some failing cases.
62489         Fix regression for USER.GROUP reported by Dmitry V. Levin in
62490         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
62491         (parse_user_spec): Rewrite to use parse_with_separator.
62492
62493 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62494
62495         * modules/userspec: Don't depend on alloca.
62496
62497 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62498
62499         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
62500
62501 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62502
62503         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
62504         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
62505         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
62506
62507 2004-08-16  Simon Josefsson  <jas@extundo.com>
62508
62509         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
62510         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
62511         Add --dry-run for --import.
62512         Let user provided command line parameters override configure.ac
62513         settings.
62514
62515 2004-08-12  Simon Josefsson  <jas@extundo.com>
62516
62517         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
62518         as discussed with Paul Eggert in threads rooted at
62519         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
62520         and
62521         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
62522         Before, the test was empty, and relied on ELIDE_CODE in source
62523         code.)
62524         (gl_PREREQ_GETOPT): New macro.
62525         (gl_GETOPT): Use them.
62526
62527 2004-08-12  Simon Josefsson  <jas@extundo.com>
62528
62529         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
62530         * lib/getopt_.h: Renamed from getopt.h.
62531
62532 2004-08-12  Simon Josefsson  <jas@extundo.com>
62533
62534         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
62535         Change default library name from libfoo to libgnu.
62536         Now, if you have a configure.ac that says:
62537                 gl_SOURCE_BASE(gl)
62538                 gl_M4_BASE(gl/m4)
62539                 gl_MODULES(error getopt etcetera)
62540                 gl_INIT
62541         you can import all you need by running:
62542                 ../gnulib/gnulib-tool --import
62543
62544         * modules/getopt (Files): Rename getopt.h to getopt_.h.
62545         (Makefile.am): Rewrite, use logic from argz.
62546         (Include): Use <getopt.h> instead of "getopt.h".
62547
62548 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62549
62550         * modules/argp (Files): Add m4/unlocked-io.m4.
62551         (Depends-on): Add extensions.
62552
62553 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62554
62555         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
62556         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
62557         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
62558         Check for program_invocation_name, program_invocation_short_name,
62559         flockfile, funlockfile, features.h, _getopt_long_only_r.
62560
62561 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62562
62563         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
62564         its complicated substitute.
62565         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
62566         and program_invocation_name.
62567         (__argp_basename) [!_LIBC]: Remove; the only use was
62568         replaced by its body.
62569         (__argp_short_program_name): Change condition from
62570         !defined __argp_short_program_name to
62571         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
62572         to match argp-namefrob.h.
62573         (__argp_failure): Don't assume strerror_r returns char *.
62574         * lib/argp-parse.c (N_): Define unconditionally.
62575         (argp_default_options): Fill out initializers with 0 to avoid
62576         gcc warnings.
62577
62578 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62579
62580         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
62581         getopt1.c.
62582
62583 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62584
62585         Merge from coreutils.
62586
62587         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
62588
62589         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
62590         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
62591
62592 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62593
62594         Merge from coreutils.
62595
62596         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
62597         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
62598         for Reliant Unix 5.43.
62599
62600         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
62601         (union fooround): Use uintmax_t, not long int.
62602         The rest is a merge from libc:
62603         [defined _LIBC]: Include <shlib-compat.h>.
62604         (_obstack) [defined _LIBC]: Remove after 2.3.4.
62605
62606         * lib/settime.c (settime): Recode to avoid warning with
62607         Sun Forte C 6U2.
62608
62609         * lib/strverscmp.c: Convert to UTF-8.
62610
62611 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62612
62613         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
62614         m4/uintmax_t.m4.
62615
62616 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62617
62618         * modules/xalloc-die: New file.
62619         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
62620
62621         * modules/md5 (Files): Add m4/uint32_t.m4.
62622         * modules/sha1: Renamed from modules/sha.
62623         (Files):
62624         Rename lib/sha.h to lib/sha1.h.
62625         Rename lib/sha.c to lib/sha1.c.
62626         Rename m4/sha.m4 to m4/sha1.m4.
62627         (lib_SOURCES): Likewise.
62628         (configure.ac): Rename gl_SHA to gl_SHA1.
62629         (Include): sha.h -> sha1.h.
62630
62631 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62632
62633         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
62634         * m4/sha1.m4: Renamed from sha.m4.
62635         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
62636
62637 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62638
62639         * lib/obstack.h (obstack_empty_p):
62640         Don't assume that chunk->contents is suitably aligned.
62641         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
62642         Likewise. Problem reported by Benno in
62643         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
62644
62645         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
62646         readable.  This could be improved further but it'd take some work.
62647
62648 2004-08-08  Simon Josefsson  <jas@extundo.com>
62649
62650         * modules/xgethostname (Depends-on): Remove exit and error (not
62651         used).
62652
62653         * modules/getpass-gnu: Add getpass.h.
62654         (Depends-on): Add stdbool.
62655         * modules/getpass: Add getpass.h.
62656
62657 2004-08-08  Simon Josefsson  <jas@extundo.com>
62658
62659         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
62660         Check getpass declaration.
62661
62662 2004-08-08  Simon Josefsson  <jas@extundo.com>
62663
62664         * lib/xgethostname.c: Don't include error.h (not used).
62665
62666         * lib/getpass.h: Add.
62667         * lib/getpass.c: Include getpass.h first.
62668
62669 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
62670
62671         * lib/xalloc-die.c: New file.
62672         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
62673         All uses removed.
62674         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
62675         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
62676         xalloc-die.c.
62677         (_, N_, xalloc_die): Move to xalloc-die.c.
62678         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
62679         so that we needn't mess with xalloc_msg_memory_exhausted.
62680
62681         * lib/sha1.h: Renamed from sha.h.
62682         (SHA1_H): Renamed from _SHA_H.
62683         (sha1_ctx): Renamed from sha_ctx.
62684         (sha1_init_ctx): Renamed from sha_init_ctx.
62685         (sha1_process_block): Renamed from sha_process_block.
62686         (sha1_process_bytes): Renamed from sha_process_bytes.
62687         (sha1_finish_ctx): Renamed from sha_finish_ctx.
62688         (sha1_read_ctx): Renamed from sha_read_ctx.
62689         (sha1_stream): Renamed from sha_stream.
62690         (sha1_buffer): Renamed from sha_buffer.
62691         * lib/sha1.c: Likewise; renamed from sha.c.
62692         Do not include <sys/types.h>.
62693         Include <stddef.h> rather than <stdlib.h>.
62694
62695 2004-08-08  Bruno Haible  <bruno@clisp.org>
62696
62697         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
62698         FILESYSTEM_PREFIX_LEN.
62699         * lib/progreloc.c: Likewise.
62700         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
62701
62702 2004-08-06  Simon Josefsson  <jas@extundo.com>
62703
62704         * modules/progname (Depends-on): Don't depend on stdbool.
62705
62706 2004-08-06  Simon Josefsson  <jas@extundo.com>
62707
62708         * modules/getsubopt: New file.
62709         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62710         getsubopt.
62711
62712 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62713
62714         More merge from coreutils.
62715
62716         * m4/utimens.m4, m4/utimecmp.m4: New files.
62717         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
62718         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
62719         prereq.m4, sha.m4: Import changes from coreutils.
62720
62721 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62722
62723         More merge from coreutils.
62724         * modules/raise, modules/readtokens0, modules/utimens:
62725         * modules/utimecmp, module/xnanosleep: New files.
62726         * modules/strftime: Add lib/strftime.h.
62727         Change include from <time.h> to "strftime.h".
62728         * modules/yesno: Add lib/yesno.h.
62729         * modules/backupfile: Remove lib/addext.c.
62730         * modules/euidaccess: Add stat-macros.h.
62731         * modules/canonicalize, modules/euidaccess,
62732         modules/filemode, modules/lchown, modules/makepath,
62733         modules/rmdir, modules/stat: Likewise.
62734
62735 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62736
62737         Merge from tar.
62738         * lib/argp-help.c (make_hol, hol_append): Don't assume that
62739         SIZE_MAX is a valid preprocessor constant.
62740         (__argp_basename): Change from "#ifndef _LIBC"
62741         to "#ifndef __argp_short_program_name", so that
62742         we don't compile these functions for tar.
62743
62744         More merges from coreutils.
62745         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
62746         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
62747         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
62748         * lib/addext.c: Remove; no longer needed.
62749         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
62750         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
62751         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
62752         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
62753         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
62754         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
62755         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
62756         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
62757         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
62758         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
62759         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
62760         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
62761         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
62762         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
62763         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
62764         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
62765         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
62766         Import changes from coreutils.
62767
62768 2004-08-05  Simon Josefsson  <jas@extundo.com>
62769
62770         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
62771
62772 2004-08-05  Simon Josefsson  <jas@extundo.com>
62773
62774         * m4/getsubopt.m4: New file.
62775
62776 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62777
62778         Merge from coreutils.
62779
62780         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
62781         * m4/getcwd-path-max.m4: New files.
62782
62783         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
62784         FILESYSTEM_PREFIX_LEN ->
62785         FILE_SYSTEM_PREFIX_LEN.
62786         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
62787         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
62788         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
62789         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
62790
62791         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
62792         prerequisite modules now handle the DOS stuff.
62793         Don't check for unistd.h.
62794
62795 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62796
62797         Merge from coreutils.
62798
62799         * lib/.gdb-history: Remove; this doesn't belong here.
62800
62801         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
62802         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
62803         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
62804         * lib/getcwd.c: New files.
62805
62806         * lib/dirname.h: Include <stdbool.h>.
62807         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
62808         for consistency with POSIX terminology.  All uses changed.
62809         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
62810         (strip_trailing_slashes): Use bool for booleans.
62811         * lib/stripslash.c (strip_trailing_slashes): Likewise.
62812
62813         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
62814         sometimes returns a positive errno value even when it succeeds.
62815         (print_errno_message) [!LIBC]: Fall back on strerror if
62816         __strerror_r fails.
62817
62818         * lib/path-concat.c (mempcpy): Don't define if a system header defines
62819         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
62820         (longest_relative_suffix): New function.
62821         (path_concat): Use it.  Assume first argument is not NULL.
62822         Port to DOS.  Omit redundant separators.
62823         Report an error instead of returning NULL.
62824         Use mempcpy instead of memcpy.
62825         (xpath_concat): Remove: not declared or used.
62826
62827         * lib/same.h: Include <stdbool.h>
62828         (same_name): Return bool, not int.
62829         * lib/same.c (same_name): Likewise.
62830         (errno): Don't declare; we assume C89 or better now.
62831
62832         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
62833         if not already defined.
62834
62835         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
62836         * lib/dup-safer.c (errno): Likewise.
62837
62838 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62839
62840         Merge from coreutils.
62841         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
62842         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
62843         * modules/path-concat: Don't depend on strdup.
62844
62845 2004-08-03  Simon Josefsson  <jas@extundo.com>
62846
62847         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
62848         * lib/progname.h: Don't include stdbool.h.
62849
62850 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62851
62852         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
62853         * MODULES.html.sh (func_all_modules): Remove fatal.
62854
62855 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62856
62857         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
62858
62859 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62860
62861         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
62862         working.
62863
62864 2004-08-02  Simon Josefsson  <jas@extundo.com>
62865
62866         * lib/getsubopt.h: New file, with comments from Bruno Haible.
62867         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
62868         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
62869
62870 2004-08-01  Simon Josefsson  <jas@extundo.com>
62871
62872         * lib/xgetdomainname.c: Include stdlib.h, for free().
62873
62874 2004-07-19  Bruno Haible  <bruno@clisp.org>
62875
62876         * MODULES.html.sh (func_all_modules): Add dummy.
62877
62878 2004-07-16  Simon Josefsson  <jas@extundo.com>
62879
62880         * modules/dummy: New file.
62881
62882 2004-07-16  Simon Josefsson  <jas@extundo.com>
62883
62884         * lib/dummy.c: New file.
62885
62886 2004-07-16  Bruno Haible  <bruno@clisp.org>
62887
62888         * lib/backupfile.h: Add extern "C" for C++.
62889         * lib/closeout.h: Likewise.
62890         * lib/copy-file.h: Likewise.
62891         * lib/findprog.h: Likewise.
62892         * lib/full-write.h: Likewise.
62893         * lib/pathname.h: Likewise.
62894         * lib/progname.h: Likewise.
62895         * lib/stpcpy.h: Likewise.
62896         * lib/stpncpy.h: Likewise.
62897         * lib/strcase.h: Likewise.
62898         * lib/strstr.h: Likewise.
62899         * lib/xalloc.h: Likewise.
62900
62901         * lib/mbswidth.h: Add extern "C" for C++.
62902         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
62903
62904 2004-07-13  Robert Millan  <robertmh@gnu.org>
62905
62906         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
62907
62908 2004-07-09  Simon Josefsson  <jas@extundo.com>
62909
62910         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
62911         failed without this.)
62912
62913 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62914
62915         * modules/chown (Files): Add lib/fchown-stub.c, since
62916         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
62917
62918 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62919
62920         * lib/fchown-stub.c: New file.
62921
62922 2004-06-24  Jim Meyering  <jim@meyering.net>
62923
62924         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
62925
62926 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62927
62928         * modules/argz: Omit "#include".
62929
62930         * MODULES.html.sh (func_all_modules): Add calloc, to match
62931         2004-06-01 addition of calloc module.
62932
62933 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62934
62935         * m4/argz.m4: New file, which is autoupdated from libtool.
62936
62937 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62938
62939         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
62940         libtool.
62941
62942 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62943
62944         * config/srclist-update: Don't insist on "USA." before the
62945         close-comment, as libtool omits the period and puts the */ on a
62946         separate line.
62947         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
62948         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
62949
62950 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
62951
62952         * modules/argz: New file.
62953         * MODULES.html.sh (func_all_modules): Add argz.
62954
62955 2004-06-12  Jim Meyering  <jim@meyering.net>
62956         and  Paul Eggert  <eggert@cs.ucla.edu>
62957
62958         * modules/hash (Files): Add lib/xalloc.h.
62959         * modules/pipe (Depends-on): Add wait-process.
62960         * modules/stat (Depends-on): Add xalloc.
62961         * modules/userspec (Files): Add lib/userspec.h.
62962         * modules/xstrto
62963
62964         Upgrade from gettext-0.13.
62965         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
62966         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
62967         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
62968
62969 2004-06-10  Jim Meyering  <jim@meyering.net>
62970
62971         * lib/calloc.c: New file.
62972
62973 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
62974
62975         * lib/getdate.y (yylex): Allow space between sign and number.
62976         Problem reported by Dan Jacobson.
62977
62978 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
62979
62980         Merge from coreutils CVS.
62981
62982         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
62983         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
62984         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
62985         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
62986         xstrtol.m4: Fix copyright date and/or serial number.
62987
62988         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
62989         See if we need an fchown replacement.
62990         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
62991         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
62992         and use the replacement function if we detect either defect.
62993
62994         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
62995         gl_UTIMECMP.
62996
62997 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
62998         and  Jim Meyering  <jim@meyering.net>
62999
63000         Merge from coreutils CVS.
63001
63002         * lib/stat-macros.h: New file, with contents from file-type.h
63003         and coreutils' system.h.
63004         * lib/file-type.c: Include "stat-macros.h".
63005         * lib/file-type.h (file_type): Move all macro definitions to new file,
63006         stat-macros.h.
63007
63008         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
63009         Wrap old code with this conditional.
63010         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
63011         function that does not dereference symlinks.
63012         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
63013
63014         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
63015         dependency problems.
63016         (xreadlink): Accept new arg SIZE, for efficiency.
63017         All decls and uses changed.
63018         * lib/xreadlink.h: Include <stddef.h>, for size_t.
63019
63020         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
63021         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
63022
63023         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
63024         sysexits.h.
63025
63026 2004-06-01  Jim Meyering  <jim@meyering.net>
63027
63028         * m4/calloc.m4: New file.
63029
63030 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
63031
63032         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
63033         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
63034         Also, fix a typo in a diagnostic.
63035
63036 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
63037
63038         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
63039         or AC_FUNC_REALLOC.
63040
63041 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
63042
63043         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
63044         macros to be defined.
63045         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
63046         the allocator returns NULL because the requested size is zero.
63047
63048 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63049
63050         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
63051         var.  Add comment explaining why libc still defines it.  This
63052         merges the following patch from glibc:
63053         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
63054
63055 2004-05-20  Andreas Schwab  <schwab@suse.de>
63056
63057         * m4/free.m4: Replace free if it not known to work, not the other
63058         way round.
63059
63060 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63061
63062         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
63063         present in glibc since revision 1.1 of this file.
63064         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
63065         obstack_alignment_mask, obstack_alloc, obstack_base,
63066         obstack_blank, obstack_blank_fast, obstack_chunk_size,
63067         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
63068         obstack_grow0, obstack_init, obstack_int_grow,
63069         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
63070         obstack_next_free, obstack_object_size, obstack_ptr_grow,
63071         obstack_ptr_grow_fast, obstack_room): Remove declarations of
63072         nonexistent functions.
63073
63074 2004-05-18  Karl Berry  <karl@gnu.org>
63075
63076         * config/srclist.txt: break link for vasnprintf.c.
63077
63078 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63079
63080         Port obstack to the AS/400, where pointers are 16 bytes wide and
63081         you cannot cast an integer to a valid pointer.  This patch is
63082         currently waiting to be integrated into glibc; see
63083         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
63084
63085         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
63086         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
63087         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
63088         (struct obstack): temp member is now a union of a pointer and
63089         an integer, instead of an integer.  All integer uses changed.
63090         This does not affect the physical layout of struct obstack,
63091         except on hosts (like the AS/400) where the size or alignment of
63092         void * is greater than that of ptrdiff_t.
63093         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
63094         __STDC__)]: Store temporary in pointer member of union, not
63095         integer member.
63096         * lib/obstack.c: Include <stddef.h>, for offsetof.
63097         (struct fooalign): Remove; it doesn't need a name.
63098         (union fooround): Change double to long double, and add void *.
63099         (DEFAULT_ALIGNMENT): Use offsetof to compute.
63100         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
63101         not a macro.  Hence the values are always int; so remove all
63102         casts-to-int in uses.
63103
63104 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63105
63106         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
63107         we can get this patch merged into glibc.
63108
63109 2004-05-17  Derek R. Price  <derek@ximbiot.com>
63110             Paul Eggert  <eggert@cs.ucla.edu>
63111
63112         * m4/argp: Depend on alloca.
63113
63114 2004-05-17  Derek R. Price  <derek@ximbiot.com>
63115             Paul Eggert  <eggert@cs.ucla.edu>
63116
63117         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
63118         freecoding.
63119
63120 2004-05-17  Bruno Haible  <bruno@clisp.org>
63121
63122         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
63123         precision that consists of a '.' followed by an empty digit string.
63124         Patch by Tor Lillqvist <tml@iki.fi>.
63125
63126 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63127
63128         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
63129         for backward compatibility with older code.  We need our own
63130         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
63131         it under some other name, and our alloca.h will define it.
63132
63133 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63134             Derek Price  <derek@ximbiot.com>
63135
63136         * lib/alloca.c: Include <alloca.h>, to get our interface.
63137         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
63138         include <alloca.h> first.  Use C89 prototype for alloca; this
63139         requires including <stddef.h> for size_t.  Use extern "C" if C++.
63140         Use #elif for simplicity, since we can assume C89 now.
63141         Don't try to source the system alloca.h since it will not be found
63142         and to prevent recursively including its replacement.
63143         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
63144         * lib/regex.c: Likewise.
63145
63146 2004-05-16  Derek Price  <derek@ximbiot.com>
63147             Paul Eggert  <eggert@cs.ucla.edu>
63148
63149         getline cleanup.  This changes the getndelim2 API: both order of
63150         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
63151         no delimiter).
63152
63153         * lib/getline.c: Don't include stddef.h or stdio.h, since our
63154         interface does that.
63155         (getline): Always use getdelim, so that we don't have two
63156         copies of this code.
63157         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
63158         if available.
63159         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
63160         (GETNDELIM2_MAXIMUM): New macro.
63161         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
63162         instead of the old practice of delim2==0.  All callers changed.
63163         Return -1 on overflow, instead of returning junk.
63164         Do not set *linesize unless allocation succeeds.
63165         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
63166         that we include sys/types.h.
63167         * lib/getnline.h: Likewise.
63168         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
63169         (getndelim2): Reorder arguments.
63170         * lib/getnline.c (getnline, getndelim):
63171         Don't discard the NMAX argument.
63172         (getnline): Invoke getndelim, to avoid code duplication.
63173         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
63174         of (size_t) -1 by callers of the getnline family.
63175
63176 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63177
63178         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
63179         Check for gettimeofday.
63180         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
63181         Check for settimeofday, stime.
63182
63183 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63184
63185         * lib/nanosleep.c (suspended): Change its type from int to
63186         sig_atomic_t volatile.
63187         (first_call): Make it private to rpl_nanosleep, and have it
63188         be zero initially as that's a bit faster.
63189         (my_usleep): Round up fractional times instead of truncating them,
63190         as this is the usual meaning for 'sleep'.
63191
63192         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
63193         doesn't work.
63194         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
63195         (ENOSYS): Define if not defined.
63196         (settime): Fall back on stime if it exists and settimeofday fails.
63197         But don't bother with fallbacks if a method fails with errno == EPERM.
63198
63199 2004-05-11  Jim Meyering  <jim@meyering.net>
63200
63201         Prior to this change, the save_cwd caller required read access to the
63202         current directory on most systems (ones with the fchdir function).
63203
63204         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
63205         fails, try write-only, and finally, resort to using xgetcwd.
63206
63207 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
63208
63209         * lib/obstack.c, obstack.h: Import changes from libc.
63210
63211 2004-04-28  Bruno Haible  <bruno@clisp.org>
63212
63213         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
63214         also implicitly appends .exe to executables.
63215         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
63216         accepts Windows pathnames.
63217         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
63218         Treat Cygwin like Windows, since it now accepts Windows pathnames.
63219         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
63220         Treat Cygwin like Windows, since it now accepts Windows pathnames.
63221         Reported by Derek Robert Price <derek@ximbiot.com>.
63222
63223 2004-04-21  Karl Berry  <karl@gnu.org>
63224
63225         * config/srclist.txt (localcharset.c): break sync.
63226
63227 2004-04-20  Paul Eggert  <eggert@twinsun.com>
63228
63229         * m4/host-os.m4: Add a copyright notice.
63230
63231 2004-04-20  Jim Meyering  <jim@meyering.net>
63232
63233         Change UTILS_ to gl_ in AC_DEFINE'd names.
63234         Change utils_- and jm_-prefixed variables, too.
63235         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
63236         UTILS_FUNC_MKDIR_TRAILING_SLASH.
63237         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
63238
63239         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
63240         Don't emit trailing blanks.
63241         Also rename jm_-prefixed variables to have gl_ prefix.
63242
63243         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
63244         Also rename jm_-prefixed variables to have gl_ prefix.
63245
63246         * m4/jm-macros.m4: Reflect the renamings.
63247         * m4/prereq.m4: Likewise.
63248
63249 2004-04-20  Jim Meyering  <jim@meyering.net>
63250
63251         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
63252         memory.
63253
63254 2004-04-20  Jim Meyering  <jim@meyering.net>
63255             Bruno Haible  <bruno@clisp.org>
63256
63257         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
63258         memory when realloc fails.
63259
63260 2004-04-19  Jim Meyering  <jim@meyering.net>
63261
63262         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
63263         now that readutmp.c may call `free (0)'.
63264
63265 2004-04-19  Bruno Haible  <bruno@clisp.org>
63266
63267         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
63268         * m4/inttypes_h.m4: Likewise.
63269         * m4/stdint_h.m4: Likewise.
63270         * m4/intmax_t.m4: Likewise.
63271         * m4/uintmax_t.m4: Likewise.
63272
63273 2004-04-18  Jim Meyering  <jim@meyering.net>
63274
63275         * m4/prereq.m4: Don't forbid jm_ prefix.
63276
63277         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
63278         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
63279         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
63280         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
63281         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
63282         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
63283         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
63284         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
63285         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
63286         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
63287         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
63288         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
63289         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
63290         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
63291         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
63292         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
63293         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
63294         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
63295         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
63296
63297 2004-04-18  Jim Meyering  <jim@meyering.net>
63298
63299         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
63300         failure, don't leak memory and do call END_UTMP_ENT.
63301
63302 2004-04-16  Jim Meyering  <jim@meyering.net>
63303
63304         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
63305         coreutils' stat program.
63306         (gl_PREREQ): Don't require jm_PREREQ_STAT.
63307
63308 2004-04-11  Paul Eggert  <eggert@twinsun.com>
63309
63310         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
63311         C89.
63312         (CHAR_BIT): Remove, since we assume C89.
63313         Include <stdint.h> if available, as per current Autoconf CVS advice.
63314
63315 2004-03-31  Jim Meyering  <jim@meyering.net>
63316
63317         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
63318         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
63319         * m4/xalloc.m4: Likewise.
63320
63321 2004-03-30  Paul Eggert  <eggert@twinsun.com>
63322
63323         Merge from coreutils.
63324
63325         * m4/inttostr.m4: New file.
63326         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
63327         Require AM_STDBOOL_H and gl_TIMESPEC instead.
63328         Require gl_CLOCK_TIME.
63329         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
63330
63331 2004-03-30  Paul Eggert  <eggert@twinsun.com>
63332
63333         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
63334         not bool, to be more consistent with Unix conventions.
63335         Suggested by Bruno Haible.
63336
63337         Merge from coreutils.
63338
63339         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
63340         * lib/umaxtostr.c: New files.
63341
63342         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
63343         the usual <time.h> dance.
63344         (get_date): Change signature to support fractional time stamps.
63345         All callers changed.
63346         * lib/getdate.y: Include "getdate.h" first, as we can now
63347         assume C89 and don't need to worry about 'const'.
63348         Similarly, include "unlocked-io.h" near start, not in middle.
63349         Include <limits.h>.
63350         (textint.value): Use long int rather than int.
63351         (textint.digits): Use size_t rather than int.
63352         (BILLION, LOG10_BILLION): New constants.
63353         (parser_control): New member rel_ns.  Members day_ordinal,
63354         time_zone, month, day, hour, minutes, rel_year, rel_month,
63355         rel_day, rel_hour, rel_minutes, rel_seconds
63356         are now long int, not int.  Member seconds is now struct timespec,
63357         not int.  New member timespec_seen.  Members dates_seen, days_seen,
63358         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
63359         not int.
63360         (%union.intval): Now long int, not int.
63361         New member timespec.
63362         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
63363         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
63364         (spec): Now is a timespec or an item list.
63365         (timespec, items): New nonterminals.
63366         (time, rel, relunit, number, get_date):
63367         Add support for fractional seconds.
63368         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
63369         (gmtime, localtime, mktime): Remove decls; not needed with C89.
63370         (to_hour): First arg is now long int, not int.
63371         (to_year): Returns long int, not int.
63372         Don't treat year -70 like 70.
63373         (tm_diff): Returns long int, not int.
63374         (lookup_word): Use bool instead of int when appropriate.
63375         (yylex): Use size_t for count, not int.
63376         Detect overflow when parsing large integer constants.
63377         Add support for fractions.
63378         (get_date): Make pointers 'const' if possible.
63379         Use more-portable code to detect integer overflow.
63380         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
63381         Don't use ctime; it's not reliable if the year has >4 digits.
63382
63383         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
63384         This is for compatibility with BSD.
63385
63386         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
63387         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
63388         From coreutils' system.h.
63389
63390         * lib/userspec.c: Don't include "posixver.h".
63391         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
63392         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
63393         compatible extension.  Simplify code by removing a boolean int
63394         that was always nonzero if a string was nonnull.
63395
63396 2004-03-30  Jim Meyering  <jim@meyering.net>
63397
63398         Merge from coreutils.
63399
63400         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
63401         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
63402         on some systems one must include <grp.h> before it.
63403         Reported by Christian Krackowizer.
63404
63405 2004-03-30  Jim Meyering  <jim@meyering.net>
63406
63407         Merge from coreutils.
63408
63409         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
63410
63411         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
63412         an empty input stream.
63413
63414         * lib/readtokens.c: Include <stdbool.h>.
63415         (readtoken): Use `size_t' rather than int/long.
63416         All callers adjusted.
63417         Use `bool' rather than `int' where appropriate.
63418         Use memset rather than an explicit loop.
63419         Use x2nrealloc rather than xrealloc.
63420         Allow the use of `\0' as a delimiter.
63421         (readtokens): Likewise.
63422         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
63423
63424 2004-03-30  Jim Meyering  <jim@meyering.net>
63425
63426         * m4/realloc.m4: Remove file, since now it does no more than
63427         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
63428         the `configure.ac' section of module/realloc.
63429         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
63430
63431 2004-03-30  Bruno Haible  <bruno@clisp.org>
63432
63433         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
63434         nonnull.
63435
63436 2004-03-29  Paul Eggert  <eggert@twinsun.com>
63437
63438         Merge changes to getloadavg.c from coreutils and Emacs.
63439
63440         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
63441         Define to an expression, not to the empty string.
63442         Include cloexec.h and xalloc.h.
63443         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
63444         Use set_cloexec_flag rather than rolling our own.
63445         * lib/cloexec.c, lib/cloexec.h: New files.
63446
63447 2004-03-29  Paul Eggert  <eggert@twinsun.com>
63448
63449         * m4/cloexec.m4: New file.
63450
63451 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63452
63453         * lib/getopt.h: Sync with libc CVS.
63454
63455 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63456             Bruno Haible  <bruno@clisp.org>
63457
63458         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
63459         mbswidth.
63460
63461 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63462             Bruno Haible  <bruno@clisp.org>
63463
63464         * lib/mbswidth.h: Include <wchar.h> only if
63465         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
63466         <wchar.h>.
63467         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
63468
63469 2004-03-09  Paul Eggert  <eggert@twinsun.com>
63470
63471         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
63472         Sync with libc CVS.
63473         * lib/getopt_int.h: New file, also synced from libc.
63474
63475 2004-03-09  Paul Eggert  <eggert@twinsun.com>
63476
63477         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
63478         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
63479         Bring back getopt.c, getopt.h, getopt1.c.
63480
63481 2004-03-07  Paul Eggert  <eggert@twinsun.com>
63482
63483         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
63484         All uses changed.  Check for sa_sigaction member; this fixes
63485         a bug first reported by Jason Andrade in
63486         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
63487
63488 2004-03-07  Paul Eggert  <eggert@twinsun.com>
63489
63490         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
63491         '#if' expressions.  Unlike the code it replaces, it does not
63492         depend on (defined _SC_PAGESIZE).  However, it does depend on
63493         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
63494         first reported by Jason Andrade in
63495         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
63496
63497 2004-02-25  Simon Josefsson  <jas@extundo.com>
63498
63499         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
63500
63501 2004-02-25  Simon Josefsson  <jas@extundo.com>
63502
63503         * lib/strdup.h: New file.
63504         * lib/strdup.c: Include it.
63505         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
63506         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
63507
63508 2004-02-23  Karl Berry  <karl@gnu.org>
63509
63510         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
63511         (from fencepost.gnu.org:/gd/gnuorg).
63512
63513 2004-02-23  Karl Berry  <karl@gnu.org>
63514
63515         * config/srclistvars.sh (GNUORG) [karl]: redefine.
63516         * config/srclist.txt: add maintain/standards documents.
63517
63518 2004-02-18  Bruno Haible  <bruno@clisp.org>
63519
63520         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
63521         Reported by Derek Robert Price <derek@ximbiot.com>.
63522
63523 2004-02-16  Karl Berry  <karl@gnu.org>
63524
63525         * config/mkinstalldirs, install-sh: update from automake.
63526
63527 2004-02-06  Karl Berry  <karl@gnu.org>
63528
63529         * m4/po.m4: update from gettext 0.14.1.
63530
63531 2004-02-06  Karl Berry  <karl@gnu.org>
63532
63533         * lib/config.charset: update from gettext 0.14.1.
63534
63535 2004-02-05  Paul Eggert  <eggert@twinsun.com>
63536
63537         Add comments and code, prompted by suggestions from Bruno Haible
63538         for sh-quote.
63539         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
63540         describing the enum quoting_style values.
63541         * lib/quotearg.c (quotearg_alloc): New function.
63542         (quotearg_buffer_restyled): Treat lone { and } as special.
63543         Treat = as special.  Work around bug with older shells
63544         that "see" a '\' that is really the 2nd byte of a multibyte char.
63545         Quote empty string with shell_quoting_style.
63546
63547 2004-02-03  Bruno Haible  <bruno@clisp.org>
63548
63549         * m4/pipe.m4: New file, from GNU gettext.
63550
63551 2004-02-03  Bruno Haible  <bruno@clisp.org>
63552
63553         * lib/pipe.h: New file, from GNU gettext.
63554         * lib/pipe.c: New file, from GNU gettext.
63555
63556 2004-01-27  Bruno Haible  <bruno@clisp.org>
63557
63558         * m4/execute.m4: New file, from GNU gettext.
63559
63560 2004-01-27  Bruno Haible  <bruno@clisp.org>
63561
63562         * lib/execute.h: New file, from GNU gettext.
63563         * lib/execute.c: New file, from GNU gettext.
63564         * lib/w32spawn.h: New file, from GNU gettext.
63565
63566 2004-01-24  Paul Eggert  <eggert@twinsun.com>
63567
63568         Merge from diffutils.
63569
63570         * lib/file-type.c (file_type): Add typed memory objects.
63571         * lib/file-type.h (S_TYPEISTMO): New macro.
63572
63573         * lib/c-stack.h (c_stack_action): Remove argv argument.
63574         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
63575         (die): Don't calculate message unless segv_action returns.
63576         (get_stack_location, min_address_from_argv, max_address_from_argv,
63577         volatile stack_base, volatile_stack_size): Remove.
63578         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
63579         that every segmentation violation is a stack overflow.  (Ouch!)
63580         See Debian bug 136249 (still outstanding) for more info about why
63581         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
63582
63583 2004-01-24  Paul Eggert  <eggert@twinsun.com>
63584
63585         Exit-status fix from coreutils.
63586
63587         Use exit_failure consistently in place of EXIT_FAILURE,
63588         so that program exit statuses are consistent on failure.
63589
63590         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
63591         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
63592         * lib/argmatch.h: Comment fix to match the above.
63593         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
63594         Now a macro referring to exit_failure, instead of a separate
63595         variable.  Include "exitfail.h" to get it.
63596         * lib/xstrtol.h: Include "exitfail.h".
63597         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
63598
63599         * lib/long-options.c (parse_long_options): Use prototype
63600         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
63601         for clarity.
63602
63603 2004-01-21  Jim Meyering  <jim@meyering.net>
63604
63605         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
63606         so as not to conflict with a different-sized __mktime_internal
63607         function in GNU libc.
63608         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
63609         Problem building statically-linked `ls' reported by Michael Brunnbauer.
63610
63611 2004-01-20  Karl Berry  <karl@gnu.org>
63612
63613         * config/config.guess: update from config.
63614
63615         * config/srclistvars.sh: GNUWWWLICENSES for karl.
63616
63617 2004-01-20  Bruno Haible  <bruno@clisp.org>
63618
63619         Safer stack allocation.
63620         * lib/setenv.c: Include allocsa.h.
63621         (alloca): Remove fallback definition.
63622         (freea): Remove macro.
63623         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
63624         instead of freea.
63625
63626 2004-01-20  Bruno Haible  <bruno@clisp.org>
63627
63628         * m4/eealloc.m4: New file, from GNU gettext.
63629
63630 2004-01-20  Bruno Haible  <bruno@clisp.org>
63631
63632         * m4/allocsa.m4: New file, from GNU gettext.
63633
63634 2004-01-20  Bruno Haible  <bruno@clisp.org>
63635
63636         * lib/xallocsa.h: New file, from GNU gettext.
63637         * lib/xallocsa.c: New file, from GNU gettext.
63638
63639 2004-01-20  Bruno Haible  <bruno@clisp.org>
63640
63641         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
63642
63643 2004-01-20  Bruno Haible  <bruno@clisp.org>
63644
63645         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
63646         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
63647         specially.
63648
63649 2004-01-20  Bruno Haible  <bruno@clisp.org>
63650
63651         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
63652         patch.
63653
63654 2004-01-20  Bruno Haible  <bruno@clisp.org>
63655
63656         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
63657
63658 2004-01-20  Bruno Haible  <bruno@clisp.org>
63659
63660         * lib/eealloc.h: New file.
63661
63662 2004-01-20  Bruno Haible  <bruno@clisp.org>
63663
63664         * lib/binary-io.h: Avoid warnings on Cygwin.
63665
63666 2004-01-20  Bruno Haible  <bruno@clisp.org>
63667
63668         * lib/allocsa.h: New file, from GNU gettext.
63669         * lib/allocsa.c: New file, from GNU gettext.
63670
63671 2004-01-18  Karl Berry  <karl@gnu.org>
63672
63673         * doc/gpl.texi, doc/lgpl.texi: new files.
63674
63675 2004-01-18  Karl Berry  <karl@gnu.org>
63676
63677         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
63678         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
63679
63680 2004-01-15  Paul Eggert  <eggert@twinsun.com>
63681
63682         Merge from coreutils.
63683
63684         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
63685         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
63686         (gl_DEFAULT_POSIX2_VERSION): Move
63687         the documentation from 'configure' into 'config.hin',
63688         so that 'configure --help' isn't burdened by it and
63689         we don't have to worry about its formatting there.
63690         Reword the documentation so that it's more succinct
63691         and can be run together into a single paragraph.
63692         * m4/same.m4 (gl_SAME): Check for pathconf.
63693
63694 2004-01-15  Paul Eggert  <eggert@twinsun.com>
63695
63696         Merge from coreutils.
63697
63698         * lib/posixver.c: Include posixver.h.
63699
63700         * lib/same.c: Include <stdbool.h>, <limits.h>.
63701         (_POSIX_NAME_MAX): Define if not defined.
63702         (MIN): New macro.
63703         (same_name): If file names are silently truncated, report
63704         that the file names are the same if they are the same after
63705         the silent truncation.
63706
63707         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
63708         conversion function.
63709         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
63710         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
63711         longer needed.
63712
63713 2004-01-15  Jim Meyering  <jim@meyering.net>
63714
63715         Merge from coreutils.
63716
63717         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
63718         if no library is required.
63719         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
63720         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
63721         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
63722         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
63723         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
63724         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
63725         value, $ac_cv_search_crypt, if it's "none required".
63726         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
63727         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
63728         not gl_FUNC_GETLOADAVG.
63729         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
63730         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
63731
63732 2004-01-15  Jim Meyering  <jim@meyering.net>
63733
63734         Merge from coreutils.
63735
63736         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
63737         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
63738         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
63739
63740         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
63741         optional configure-time default.
63742
63743         * lib/version-etc.c (version_etc_copyright): Update copyright date.
63744
63745         * lib/xreadlink.c (xreadlink): Correct outdated comment.
63746
63747 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
63748
63749         Merge from coreutils.
63750
63751         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
63752         value, $ac_cv_search_nanosleep, if it's "none required".
63753
63754 2004-01-14  Paul Eggert  <eggert@twinsun.com>
63755
63756         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
63757         with like-named macro in fnmatch.c.
63758         (EXT): Use an internal constant instead.
63759
63760         Merge fnmatch patches from glibc.
63761         * lib/fnmatch.c (mbsinit): Remove define.
63762         Add libc_hidden_ver (__fnmatch, fnmatch).
63763         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
63764         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
63765
63766 2004-01-14  Karl Berry  <karl@gnu.org>
63767
63768         * config/install-sh: update from automake.
63769
63770 2004-01-13  Karl Berry  <karl@gnu.org>
63771
63772         * config/install-sh: update from automake.
63773
63774 2004-01-09  Karl Berry  <karl@gnu.org>
63775
63776         * config/install-sh: update from automake.
63777
63778 2004-01-05  Karl Berry  <karl@gnu.org>
63779
63780         * config/config.{sub,guess}: update from config.
63781
63782 2003-12-31  Karl Berry  <karl@gnu.org>
63783
63784         * config/depcomp: update from automake.
63785
63786 2003-12-14  Karl Berry  <karl@gnu.org>
63787
63788         * lib/config.charset: update from gettext-runtime.
63789
63790 2003-12-03  Paul Eggert  <eggert@twinsun.com>
63791
63792         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
63793         Bug reported by Alfred M. Szmidt.
63794
63795 2003-12-03  Bruno Haible  <bruno@clisp.org>
63796
63797         * m4/gettext.m4: Upgrade from gettext-0.13.
63798         * m4/po.m4: Upgrade from gettext-0.13.
63799         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
63800         * m4/intmax.m4: New file, from gettext-0.13.
63801         * m4/printf-posix.m4: New file, from gettext-0.13.
63802
63803 2003-11-29  Karl Berry  <karl@gnu.org>
63804
63805         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
63806
63807 2003-11-25  Paul Eggert  <eggert@twinsun.com>
63808             Bruno Haible  <bruno@clisp.org>
63809
63810         * lib/printf-parse.h: Don't include sys/types.h.
63811         (ARG_NONE): New macro.
63812         (char_directive): Change type of *arg_index fields to size_t.
63813         * lib/printf-parse.c: Don't include sys/types.h.
63814         (SSIZE_MAX): Remove macro.
63815         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
63816         Remove unnecessary overflow check.
63817         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
63818         fields.
63819
63820 2003-11-25  Bruno Haible  <bruno@clisp.org>
63821
63822         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
63823
63824 2003-11-25  Bruno Haible  <bruno@clisp.org>
63825
63826         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
63827         gt_TYPE_SSIZE_T.
63828
63829 2003-11-24  Paul Eggert  <eggert@twinsun.com>
63830
63831         * modules/alloca: Remove dependency on xalloc.
63832
63833 2003-11-24  Paul Eggert  <eggert@twinsun.com>
63834
63835         * lib/alloca.c: Remove dependency on xalloc module.
63836         (xalloc_die): Remove.
63837         (memory_full) [!defined emacs]: New macro.
63838         [!defined emacs]: Don't include xalloc.h.
63839         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
63840         address arithmetic overflows.  Change datatypes a bit to avoid
63841         unnecessary casts.
63842
63843 2003-11-22  Jim Meyering  <jim@meyering.net>
63844
63845         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
63846         s/size/size_t/.
63847
63848 2003-11-21  Karl Berry  <karl@gnu.org>
63849
63850         * config/config.{sub,guess}: update from config.
63851
63852 2003-11-18  Karl Berry  <karl@gnu.org>
63853
63854         * config/config.{sub,guess}: update from config.
63855
63856         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
63857
63858 2003-11-17  Paul Eggert  <eggert@twinsun.com>
63859
63860         * README: Mention that S+T cannot overflow if S is the size of
63861         an existing object and T is sufficiently small.
63862
63863 2003-11-17  Jim Meyering  <jim@meyering.net>
63864
63865         On systems without utime and without a utimes function capable of
63866         dealing with a NULL struct utimbuf* argument, this utime replacement
63867         could -- in unusual circumstances -- leak a file descriptor.
63868         * lib/utime.c: Include <unistd.h> and <errno.h>.
63869         (utime_null): Be sure to close `fd' and to preserve errno.
63870         Reported by Geoff Collyer via Arnold Robbins.
63871
63872 2003-11-17  Bruno Haible  <bruno@clisp.org>
63873
63874         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
63875         (Depends-on): Add xsize.
63876
63877 2003-11-17  Bruno Haible  <bruno@clisp.org>
63878
63879         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
63880
63881 2003-11-17  Bruno Haible  <bruno@clisp.org>
63882
63883         * lib/vasnprintf.c (alloca): Remove fallback definition.
63884         (freea): Remove definition.
63885         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
63886         Reported by Paul Eggert.
63887
63888 2003-11-16  Paul Eggert  <eggert@twinsun.com>
63889             Bruno Haible  <bruno@clisp.org>
63890
63891         Protect against address arithmetic overflow.
63892         * lib/printf-args.h: Include stddef.h.
63893         (arguments): Change type of field 'count' to size_t.
63894         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
63895         'unsigned int' where appropriate.
63896         * lib/printf-parse.h: Include sys/types.h.
63897         (char_directive): Change type of *arg_index fields to ssize_t.
63898         (char_directives): Change type of fields 'count', max_*_length to
63899         size_t.
63900         * lib/printf-parse.c: Include sys/types.h and xsize.h.
63901         (SSIZE_MAX): Define fallback value.
63902         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
63903         instead of 'int' where appropriate. Check a_allocated, d_allocated
63904         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
63905         * lib/vasnprintf.c: Include xsize.h.
63906         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
63907         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
63908         overflow. Avoid wraparound when converting a width or precision from
63909         decimal to binary.
63910
63911 2003-11-16  Bruno Haible  <bruno@clisp.org>
63912
63913         Update from GNU gettext.
63914         * lib/printf-parse.c: Generalize to it can be compiled for wide
63915         strings.
63916         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
63917         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
63918         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
63919         SNPRINTF): New macros.
63920         Don't include <alloca.h> if the file is used inside libintl.
63921         (local_wcslen): New function, for Solaris 2.5.1.
63922         (VASNPRINTF): Use it instead of wcslen.
63923
63924 2003-11-16  Bruno Haible  <bruno@clisp.org>
63925
63926         * lib/xsize.h (xmax): New function.
63927         (xsum, xsum3, xsum4): Declare as "pure" functions.
63928
63929 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63930
63931         * modules/xalloc (Files): Undo latest change, since xalloc.h
63932         no longer needs SIZE_MAX or PTRDIFF_MAX.
63933
63934 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63935
63936         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
63937         gl_PTRDIFF_MAX.
63938
63939 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63940
63941         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
63942         "return", to pacify some unknown compiler.  Problem reported
63943         by Joerg Schilling.
63944
63945 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63946
63947         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
63948         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
63949         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
63950         heuristic is just as accurate as far as we know, and it removes a
63951         dependency on size_max.m4 and ptrdiff_max.m4.
63952
63953 2003-11-11  Bruno Haible  <bruno@clisp.org>
63954
63955         * modules/xsize (Files): Add m4/size_max.m4.
63956         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
63957
63958 2003-11-11  Bruno Haible  <bruno@clisp.org>
63959
63960         * m4/size_max.m4: New file.
63961         * m4/ptrdiff_max.m4: New file.
63962         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
63963         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
63964         (gl_XALLOC): Invoke it.
63965
63966 2003-11-11  Bruno Haible  <bruno@clisp.org>
63967
63968         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
63969         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
63970         defined.
63971
63972 2003-11-10  Paul Eggert  <eggert@twinsun.com>
63973
63974         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
63975         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
63976         rejected some allocations of exactly SIZE_MAX - 2 bytes.
63977         From Bruno Haible.
63978         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
63979         not (size_t) -1, since it's defined here.
63980
63981 2003-11-09  Karl Berry  <karl@gnu.org>
63982
63983         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
63984
63985 2003-11-06  Paul Eggert  <eggert@twinsun.com>
63986
63987         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
63988         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
63989         Reject sizes of exactly SIZE_MAX bytes.
63990         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
63991         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
63992
63993 2003-11-05  Bruno Haible  <bruno@clisp.org>
63994
63995         * lib/xsize.h: Include limits.h, to avoid a possible collision with
63996         SIZE_MAX defined in <limits.h> on Solaris.
63997
63998 2003-11-04  Jim Meyering  <jim@meyering.net>
63999
64000         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
64001         variable names, rather than @VAR@.
64002         * modules/poll: Likewise.
64003
64004 2003-11-04  Bruno Haible  <bruno@clisp.org>
64005
64006         * modules/xsize: New file.
64007         * modules/linebreak: Depend on xsize.
64008         * MODULES.html.sh (func_all_modules): Add xsize.
64009
64010 2003-11-04  Bruno Haible  <bruno@clisp.org>
64011
64012         * m4/xsize.m4: New file.
64013
64014 2003-11-04  Bruno Haible  <bruno@clisp.org>
64015
64016         * lib/xsize.h: New file.
64017         * lib/linebreak.c: Include xsize.h.
64018         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
64019         argument for overflow.
64020         Suggested by Paul Eggert.
64021
64022 2003-11-03  Karl Berry  <karl@gnu.org>
64023
64024         * config/config.{guess,sub}: update from config.
64025
64026 2003-11-03  Jim Meyering  <jim@meyering.net>
64027
64028         * modules/userspec (lib_SOURCES): Add userspec.h.
64029         (Include): Add "userspec.h".
64030         Improve description.
64031
64032 2003-11-03  Jim Meyering  <jim@meyering.net>
64033
64034         * lib/userspec.c: Include "userspec.h".
64035         * lib/userspec.h: New file.
64036
64037 2003-11-03  Bruno Haible  <bruno@clisp.org>
64038
64039         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
64040
64041 2003-11-03  Bruno Haible  <bruno@clisp.org>
64042
64043         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
64044         available, to avoid (extremely rare) race condition.
64045         Suggested by Paul Eggert.
64046
64047 2003-11-02  Karl Berry  <karl@gnu.org>
64048
64049         * config/srclist.txt (vasprintf.c): sync broken, sigh.
64050
64051 2003-10-31  Paul Eggert  <eggert@twinsun.com>
64052
64053         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
64054         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
64055         (read_filesystem_list): Set and use me_type_malloced.
64056         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
64057         whatever the type happens to be), for brevity and consistency.
64058         Check for size calculation overflow on Alphas running OSF/1.
64059
64060 2003-10-31  Jim Meyering  <jim@meyering.net>
64061
64062         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
64063
64064         * lib/linebuffer.c: Include <string.h> for declaration of memset.
64065
64066 2003-10-30  Paul Eggert  <eggert@twinsun.com>
64067             Bruno Haible  <bruno@clisp.org>
64068
64069         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
64070         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
64071
64072 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64073
64074         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
64075         netbsd*-gnu*.  Suggested by Robert Millan.
64076
64077 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64078
64079         * modules/group-member: Depend on stdbool.
64080
64081 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64082
64083         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
64084
64085 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64086
64087         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
64088         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
64089         after the 'gnu' in these cases.  This fixes some bugs in the
64090         previous change, and is based on suggestions by Robert Millan.
64091
64092 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64093
64094         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
64095         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
64096         no longer needed.
64097         * lib/quotearg.c (quotearg_n_options): Use it.
64098         * lib/group-member.c: Include <stdbool.h>.
64099         (free_group_info): Arg is now const *; don't free arg.
64100         (get_group_info): Now returns bool and accepts struct group_info *,
64101         rather than returning a malloc'ed struct group_info *.
64102         All uses changed.  Check for overflow in internal size calculation.
64103
64104         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
64105         rather than xmalloc/xrealloc.
64106         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
64107         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
64108         conformance bug: the old code used a pointer after freeing the
64109         storage that it addressed.
64110         * lib/hash.c (hash_initialize): Simplify the code by using
64111         xalloc_oversized rather than doing it by hand.
64112         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
64113         the buffer preserved.  Use free and xmalloc instead.
64114         * lib/quotearg.c (quotearg_n_options): Likewise.
64115         Use a simpler test for size overflow.  Don't use xalloc_oversized
64116         because unsigned int might be wider than size_t (!); this suggests
64117         that we should switch from unsigned int to size_t for slot numbers.
64118
64119 2003-10-28  Paul Eggert  <eggert@twinsun.com>
64120
64121         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
64122         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
64123         NetBSD kernels.  Requested by Richard Stallman.
64124
64125 2003-10-27  Paul Eggert  <eggert@twinsun.com>
64126
64127         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
64128         to allocate the returned structure.  Do not allocate a subarray,
64129         as x2nrealloc will do that.
64130         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
64131         instead of xnrealloc.
64132         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
64133
64134 2003-10-27  Bruno Haible  <bruno@clisp.org>
64135
64136         * lib/stdbool_.h: Better support for BeOS.
64137
64138 2003-10-26  Paul Eggert  <eggert@twinsun.com>
64139
64140         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
64141         now uses inline.
64142
64143 2003-10-26  Paul Eggert  <eggert@twinsun.com>
64144
64145         * lib/xalloc.h (xalloc_oversized): New static inline function, for
64146         callers that want to do their own size-overflow checking.  Include
64147         <stdbool.h>, since xalloc_oversized returns bool.
64148         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
64149         to use xalloc_oversized.
64150
64151         Add two functions x2realloc, x2nrealloc, for programs that grow
64152         arrays dynamically by doubling their sizes.
64153         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
64154         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
64155         New functions.
64156
64157         Port to C99 semantics for 'inline' of external functions.
64158         Bug reported by Bruno Haible.
64159         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
64160         with the old contents of xnmalloc.
64161         (xnmalloc, xmalloc): Use it.
64162         (xnrealloc_inline): New static inline function,
64163         with the old contents of xnrealloc.
64164         (xnrealloc, xrealloc): Use it.
64165
64166         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
64167         that.
64168
64169 2003-10-26  Karl Berry  <karl@gnu.org>
64170
64171         * config/srclist.txt (COPYING.DOC): no longer available from
64172         /gd/gnuorg; don't know where the ultimate source is.
64173
64174 2003-10-25  Paul Eggert  <eggert@twinsun.com>
64175
64176         Fix several address-calculation bugs in the hash modules,
64177         plus some minor code cleanup.
64178
64179         * lib/hash.h: Include <stdbool.h>, for bool.
64180         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
64181         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
64182         hash_get_n_entries, hash_get_max_bucket_length,
64183         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
64184         hash_rehash): Use size_t rather than unsigned.
64185         * lib/hash.c (struct hash_table, hash_get_n_buckets,
64186         hash_get_n_buckets_used, hash_get_n_entries,
64187         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
64188         hash_get_entries, hash_do_for_each, hash_string, is_prime,
64189         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
64190         Likewise.
64191         (SIZE_MAX): Define if not defined.
64192         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
64193         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
64194         hash_print):
64195         Use const * when possible.
64196         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
64197         (check_tuning): Fix bug: if tuning parameters were very close to
64198         0 or 1, rounding errors could have caused subscript violations.
64199         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
64200         (hash_initialize): Add 'fail:' label
64201         to free table and return NULL, and use it to simplify code.
64202         Use calloc rather than clearing the storage ourself.
64203         (hash_initialize, hash_rehash): Check for arithmetic overflow in
64204         buffer size calculations.
64205         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
64206         Include <stddef.h>, for size_t.
64207         * lib/hash-pjw.c (hash_pjw): Likewise.
64208         Switch to method described by Bruno Haible.
64209         Include <limits.h>, for CHAR_BIT.
64210         (SIZE_BITS): New macro.
64211
64212 2003-10-23  Paul Eggert  <eggert@twinsun.com>
64213
64214         * m4/getline.m4 (AM_FUNC_GETLINE):
64215         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
64216         hosts.  Problem reported by Derek Robert Price in
64217         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
64218         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
64219         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
64220
64221 2003-10-21  Paul Eggert  <eggert@twinsun.com>
64222
64223         * lib/getndelim2.c (getndelim2): When size calculation overflows,
64224         ceiling the allocation at NMAX bytes rather than silently
64225         discarding input bytes before NMAX is reached.  This makes
64226         a difference only if NMAX exceeds SIZE_MAX / 2.
64227
64228         * lib/obstack.c: Merge from glibc.
64229         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
64230         Add libc_hidden_def (_obstack_newchunk).
64231         (_obstack_free) [! defined _LIBC]: Remove.
64232         [defined _LIBC]: Make a strong alias from obstack_free, rather than
64233         a clone of the function body.
64234         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
64235         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
64236
64237         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
64238         glibc.
64239         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
64240         arg to memcpy.
64241
64242         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
64243         (obstack_ptr_grow_fast, obstack_int_grow_fast):
64244         Don't use lvalue casts, as GCC plans to remove support for them
64245         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
64246         was also present in the non-GCC version, indicating that this
64247         code had always been buggy and had never been widely used.
64248         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
64249         Use the fast variant of each macro, rather than copying the
64250         definiens of the fast variant; that way, we'll be more likely to
64251         catch future bugs in the fast variants.
64252
64253 2003-10-20  Bruno Haible  <bruno@clisp.org>
64254
64255         * modules/wait-process: New file.
64256         * MODULES.html.sh (func_all_modules): Add wait-process.
64257
64258 2003-10-20  Bruno Haible  <bruno@clisp.org>
64259
64260         * m4/wait-process.m4: New file.
64261
64262 2003-10-20  Bruno Haible  <bruno@clisp.org>
64263
64264         * lib/wait-process.h: New file, from GNU gettext.
64265         * lib/wait-process.c: New file, from GNU gettext.
64266
64267 2003-10-19  Jim Meyering  <jim@meyering.net>
64268
64269         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
64270         HPUX 10.20.
64271
64272 2003-10-18  Karl Berry  <karl@gnu.org>
64273
64274         * config/config.guess: update from config.
64275
64276 2003-10-16  Paul Eggert  <eggert@twinsun.com>
64277
64278         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
64279         (getgroups): First arg is int, not size_t.
64280         Don't let 'free' mangle errno.
64281
64282 2003-10-16  Paul Eggert  <eggert@twinsun.com>
64283
64284         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
64285
64286 2003-10-16  Karl Berry  <karl@gnu.org>
64287
64288         * config/config.{guess,sub}: update from config.
64289
64290 2003-10-16  Jim Meyering  <jim@meyering.net>
64291
64292         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
64293         memcpy.
64294
64295 2003-10-15  Paul Eggert  <eggert@twinsun.com>
64296
64297         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
64298         (SIZE_MAX): Remove.
64299         (new_exclude, add_exclude_file): Initial size no longer needs to
64300         be a power of 2.
64301         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
64302         our own address arithmetic overflow checking.
64303
64304         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
64305         (fnmatch): Do not alloca more than 2000 wide characters;
64306         instead, use malloc for large buffers.
64307         Check for address arithmetic overflow, and return -1
64308         with errno set to ENOMEM in that case.
64309         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
64310         (NEW_PATTERN): Do not alloca more than 8000 bytes;
64311         instead, return -1.  Check for address arithmetic overflow.
64312
64313 2003-10-14  Paul Eggert  <eggert@twinsun.com>
64314
64315         Handle invalid suffixes and overflow independently, so that
64316         callers can treat them independently as needed.  Fix some bugs in
64317         suffix handling, e.g., "100k@" was not diagnosed as an invalid
64318         suffix for a human-readable blocksize.  The major caller-visible
64319         change is the addition of a new
64320         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
64321         that both overflow and suffix chars were found.
64322
64323         * lib/human.c (humblock): Don't check separately for invalid suffix
64324         char; that is xstrtoumax's job (now that its bug is fixed).
64325         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
64326         INTMAX_MAX]: New macros.
64327         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
64328         TYPE_MAXIMUM): New macros.
64329         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
64330         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
64331         if overflow occurs, as it's what __strtol does and it's more useful
64332         in practice.
64333         (__xstrtol): If __strtol reports some error other than ERANGE,
64334         reflect it to the caller as LONGINT_INVALID.  If it reports
64335         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
64336         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
64337         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
64338         value.
64339         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
64340         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
64341         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
64342         [defined UINTMAX_MAX]: New macros.
64343
64344 2003-10-14  Bruno Haible  <bruno@clisp.org>
64345
64346         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
64347
64348 2003-10-14  Bruno Haible  <bruno@clisp.org>
64349
64350         * m4/sig_atomic_t: New file, from GNU gettext.
64351         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
64352
64353 2003-10-14  Bruno Haible  <bruno@clisp.org>
64354
64355         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
64356         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
64357         Also use volatile where needed.
64358
64359 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64360
64361         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
64362         Change maintainer from Bruno Haible to 'all'.
64363
64364 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64365
64366         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
64367
64368 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64369
64370         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
64371         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
64372         and define in terms of the other primitives.
64373         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
64374         (SIZE_MAX): Define if not already defined.
64375         (array_size_overflow): New function.
64376         (xalloc_die): Abort instead of exiting if 'error' returns.
64377         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
64378         (xmalloc, xrealloc): Use them.
64379         (xcalloc): Check for address arithmetic overflow.
64380         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
64381         a bit faster than strcpy.
64382
64383 2003-10-10  Simon Josefsson  <jas@extundo.com>
64384
64385         * modules/argp (Depends-on): Add restrict and strcase.
64386
64387 2003-10-10  Simon Josefsson  <jas@extundo.com>
64388
64389         * m4/argp.m4: Add AC_C_INLINE.
64390
64391 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64392
64393         Merge getpass from libc, plus a few fixes.
64394
64395         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
64396         Include <stdbool.h>.
64397         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
64398         __fsetlocking to empty.
64399         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
64400         do include <bits/libc-lock.h>.
64401         Do not include <fcntl.h>; not needed.
64402         [_LIBC]: Include <wchar.h>.
64403         (NOTCANCEL_MODE): New macro.
64404         (flockfile, funlockfile) [_LIBC]: New macros.
64405         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
64406         [!_LIBC]: New macros.
64407         (call_fclose): New function.
64408         (getpass): Use it.  Save tty stream separately; this simplifies the
64409         code and makes it more reliable if stdin happens to equal stdout.
64410         Invoke __fsetlocking on tty.
64411         Handle thread cancellation if needed.
64412         Namespace cleanup (use __tcgetattr, __getline).
64413         Use bool for Booleans.
64414         [USE_IN_LIBIO]: Handle wide streams.
64415         [!_LIBC]: Unconditionally do the fseek, since we don't know what
64416         stream might go where.
64417
64418         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
64419         doesn't have to include <stdio.h> before us.
64420         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
64421         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
64422         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
64423         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
64424         if not declared, so that we can use getpass.c code from libc without
64425         rewriting it.
64426         (flockfile, ftrylockfile, funlockfile): New macros.
64427
64428 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64429
64430         * modules/getpass: Depend on stdbool.
64431
64432 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64433
64434         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
64435
64436 2003-10-07  Karl Berry  <karl@gnu.org>
64437
64438         * config/config.{guess,sub}: update from config.
64439
64440 2003-10-06  Jim Meyering  <jim@meyering.net>
64441             Bruno Haible  <bruno@clisp.org>
64442
64443         This lets translators provide better translations for the
64444         "Written by ..." part of --version output.
64445         * lib/version-etc.h: Include stdarg.h.
64446         (version_etc_copyright): Declare as readonly.
64447         (version_etc): Make this function variadic with a NULL-terminated list
64448         of author name strings.
64449         (version_etc_va): New declaration.
64450         * lib/version-etc.c: Include stdarg.h, stdlib.h.
64451         (version_etc_copyright): Declare as readonly.
64452         (version_etc_va): New function. Provide a different translatable string
64453         for each possible number of authors < 10. Abbreviate when there are 10
64454         authors or more.
64455         (version_etc): Make this function variadic. Call version_etc_va.
64456         Suggestion from Gary V. Vaughan.
64457
64458         * lib/long-options.h (parse_long_options): Change prototype: the
64459         authors string is moved to the end and becomes variadic.
64460         * lib/long-options.c: Include stdarg.h.
64461         (parse_long_options): Make this function variadic, too.
64462         Call version_etc_va, not version_etc.
64463
64464 2003-10-06  Bruno Haible  <bruno@clisp.org>
64465
64466         * modules/version-etc-2: Remove file.
64467         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
64468
64469 2003-10-06  Bruno Haible  <bruno@clisp.org>
64470
64471         * modules/fatal-signal: New file.
64472         * MODULES.html.sh (func_all_modules): Add fatal-signal.
64473
64474 2003-10-06  Bruno Haible  <bruno@clisp.org>
64475
64476         * m4/fatal-signal.m4: New file.
64477         * m4/signalblocking.m4: New file, from GNU gettext.
64478
64479 2003-10-06  Bruno Haible  <bruno@clisp.org>
64480
64481         * lib/version-etc-2.h: Remove file.
64482         * lib/version-etc-2.c: Remove file.
64483
64484 2003-10-06  Bruno Haible  <bruno@clisp.org>
64485
64486         * lib/fatal-signal.h: New file, from GNU gettext.
64487         * lib/fatal-signal.c: New file, from GNU gettext.
64488
64489 2003-10-05  Paul Eggert  <eggert@twinsun.com>
64490
64491         * README: Rework advice for preventing empty .o files.
64492         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
64493         not <sys/types.h>.
64494
64495 2003-10-04  Karl Berry  <karl@gnu.org>
64496
64497         * lib/argp*: update from libc.
64498
64499 2003-10-04  Karl Berry  <karl@gnu.org>
64500
64501         * config/config.{guess,sub}: update from config.
64502
64503 2003-10-02  Bruno Haible  <bruno@clisp.org>
64504
64505         * modules/lchown (Include): Add lchown.h.
64506         * modules/time_r (Include): Use "..." syntax.
64507         * modules/xgetdomainname (Include): Add xgetdomainname.h.
64508
64509 2003-10-01  Simon Josefsson  <jas@extundo.com>
64510
64511         * MODULES.html.sh (func_all_modules): Move gethostname from section
64512         'based on' to section 'lacking' POSIX:2001.
64513
64514 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
64515
64516         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
64517         to output mode on the same stream.
64518
64519 2003-09-29  Paul Eggert  <eggert@twinsun.com>
64520
64521         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
64522         Fix arg typo in previous patch.
64523
64524 2003-09-28  Jim Meyering  <jim@meyering.net>
64525
64526         * lib/error.c: Correct cpp indentation.
64527
64528 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64529
64530         * modules/free: New file.
64531
64532 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64533
64534         * m4/free.m4: New file.
64535
64536 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64537
64538         * lib/minmax.h (MIN, MAX)
64539         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
64540         Omit the special code that used __typeof__, since we worry that
64541         it could be more trouble than it's worth.  See:
64542         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
64543         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
64544
64545         * lib/free.c: New file.
64546
64547 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
64548
64549         Trivial fixes to Makefile.am parts of module listings.
64550         * modules/strstr: Append strstr.h to lib_SOURCES.
64551         * modules/strcase: Likewise, for strcase.h.
64552
64553 2003-09-27  Karl Berry  <karl@gnu.org>
64554
64555         * config/mkinstalldirs: update from automake.
64556
64557 2003-09-26  Paul Eggert  <eggert@twinsun.com>
64558
64559         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
64560         (error_tail): Do not loop, reallocating temporary buffer, since
64561         the output cannot contain more wide characters than the input
64562         contains bytes, the size must be big enough already.  This avoids
64563         one potential size overflow calculation.  Check for size overflow
64564         when calculating temporary buffer size.  Free temporary buffer
64565         when done, if it was allocated with malloc; this plugs a memory
64566         leak.  Remove casts from void * to pointers, that are no longer
64567         needed now that we're assuming C89 or better.
64568
64569         Merge error changes from glibc.
64570
64571         * lib/error.c, error.h: Update copyright notice header to match glibc.
64572         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
64573         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
64574         Disable cancellation while printing error.
64575         * lib/error.h: Prepend __ to parameter names.
64576
64577 2003-09-26  Jim Meyering  <jim@meyering.net>
64578
64579         * lib/error.c (error_tail): Move some declarations
64580         into inner scope where the local variables are used.
64581
64582 2003-09-26  Bruno Haible  <bruno@clisp.org>
64583
64584         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
64585         stpncpy().
64586         Don't define stpncpy through config.h; it's now done through stpncpy.h.
64587
64588 2003-09-26  Bruno Haible  <bruno@clisp.org>
64589
64590         * lib/stpncpy.h (gnu_stpncpy): New declaration.
64591         (stpncpy): Define as alias for gnu_stpncpy.
64592         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
64593
64594 2003-09-25  Simon Josefsson  <jas@extundo.com>
64595
64596         * lib/xgetdomainname.h: New file.
64597         * lib/xgetdomainname.c: New file.
64598
64599 2003-09-25  Simon Josefsson  <jas@extundo.com>
64600             Bruno Haible  <bruno@clisp.org>
64601
64602         * modules/getdomainname: New file.
64603         * modules/xgetdomainname: New file.
64604         * MODULES.html.sh (func_all_modules): Add getdomainname,
64605         xgetdomainname.
64606
64607 2003-09-25  Simon Josefsson  <jas@extundo.com>
64608             Bruno Haible  <bruno@clisp.org>
64609
64610         * m4/getdomainname.m4: New file.
64611
64612 2003-09-25  Simon Josefsson  <jas@extundo.com>
64613             Bruno Haible  <bruno@clisp.org>
64614
64615         * lib/getdomainname.h: New file.
64616         * lib/getdomainname.c: New file.
64617
64618 2003-09-25  Karl Berry  <karl@gnu.org>
64619
64620         * lib/argp-fmtstream.c, argp-help.c: update from libc.
64621
64622 2003-09-25  Karl Berry  <karl@gnu.org>
64623
64624         * config/install-sh: update from automake.
64625
64626 2003-09-25  Bruno Haible  <bruno@clisp.org>
64627
64628         * modules/version-etc-2: New file, from modules/version-etc with
64629         modifications.
64630         * MODULES.html.sh (func_all_modules): Add version-etc-2.
64631
64632 2003-09-25  Bruno Haible  <bruno@clisp.org>
64633
64634         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
64635         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
64636
64637 2003-09-24  Simon Josefsson  <jas@extundo.com>
64638
64639         * modules/xgethostname: Add xgethostname.h.
64640
64641 2003-09-24  Paul Eggert  <eggert@twinsun.com>
64642
64643         * lib/linebuffer.c (freebuffer): Don't free the argument, just
64644         the buffer associated with the argument.  Bug reported by
64645         Simon Josefsson.
64646
64647 2003-09-24  Paul Eggert  <eggert@twinsun.com>
64648
64649         * README: Document assumptions that 'int' is at least 32 bits
64650         wide, that integer arithmetic is 2's complement without overflow,
64651         that there are no holes in integer values, that adding sizes of
64652         two nonoverlapping objects can't overflow, and that all-bits-zero
64653         yields scalar zero.  Fix spelling and capitalization typos.
64654
64655 2003-09-19  Karl Berry  <karl@gnu.org>
64656
64657         * lib/argp.h: update from libc.
64658
64659 2003-09-17  Paul Eggert  <eggert@twinsun.com>
64660
64661         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
64662         to avoid spurious warnings like "AC_RUN_IFELSE was called before
64663         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
64664
64665 2003-09-17  Paul Eggert  <eggert@twinsun.com>
64666
64667         * gnulib-tool: Use "test -h", not "test -L", for portability
64668         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
64669         (tags_regexp): Remove, since \| doesn't conform to POSIX.
64670         (sed_extract_prog): Issue s commands one-by-one, rather than
64671         using \| in one s command.
64672
64673 2003-09-16  Paul Eggert  <eggert@twinsun.com>
64674
64675         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
64676         input error, instead of returning NULL the next time we are called
64677         (and therefore losing track of errno).
64678
64679 2003-09-16  Bruno Haible  <bruno@clisp.org>
64680
64681         * gnulib-tool (func_create_testdir): Warn about duplicated
64682         dependencies.
64683
64684 2003-09-15  Paul Eggert  <eggert@twinsun.com>
64685
64686         * modules/argmatch, modules/fatal, modules/obstack,
64687         modules/xalloc, modules/xgethostname: Sort dependencies by
64688         importance, not alphabetically.
64689
64690 2003-09-15  Paul Eggert  <eggert@twinsun.com>
64691
64692         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
64693         fails, so that the caller gets the proper errno.
64694
64695         * lib/readutmp.c (read_utmp): Likewise.
64696         Check for fstat error.  Close stream and free storage
64697         when failing.
64698
64699 2003-09-14  Karl Berry  <karl@gnu.org>
64700
64701         * config/srclist.txt (strdup.c): disable for c89 changes.
64702
64703 2003-09-14  Jim Meyering  <jim@meyering.net>
64704
64705         * lib/getloadavg.c: Correct cpp indentation.
64706         * lib/strdup.c: Likewise.
64707         * lib/vasnprintf.c: Likewise.
64708
64709 2003-09-14  Bruno Haible  <bruno@clisp.org>
64710
64711         * modules/fwriteerror: New file.
64712         * MODULES.html.sh (func_all_modules): Add fwriteerror.
64713
64714 2003-09-14  Bruno Haible  <bruno@clisp.org>
64715
64716         * lib/fwriteerror.h: New file.
64717         * lib/fwriteerror.c: New file.
64718
64719 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64720
64721         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
64722         modules/xgethostname, modules/xalloc: Depend on exit.
64723
64724 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64725
64726         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
64727
64728         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
64729         and AC_MINIX, too, so that their extensions are available.
64730
64731         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
64732         This macro has been superseded by gl_BACKUPFILE.
64733
64734         More patches to assume C89 or better.
64735
64736         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
64737
64738         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
64739         unconditionally.
64740         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
64741         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
64742         Include <string.h>, <stdlib.h> unconditionally.
64743         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
64744         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
64745         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
64746         headers or for string.h.
64747         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
64748         or strtoul.
64749
64750         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
64751         headers.
64752         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
64753         * m4/userspec.m4 (gl_USERSPEC): Likewise.
64754         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
64755         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
64756         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64757         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
64758         memcpy, memset.
64759         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
64760         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
64761         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
64762         strtol.
64763         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
64764         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
64765         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
64766         strtoul.
64767
64768 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64769
64770         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
64771         * lib/obstack.c [!defined _LIBC]: Likewise.
64772         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
64773         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
64774         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
64775
64776         More changes to assume C89 or better.
64777
64778         * lib/error.c (error_tail): Assume vprintf.
64779
64780         * lib/argmatch.c (getenv): Remove decl.
64781         * lib/progreloc.c (get_full_program_name): Define via prototype.
64782         * lib/setenv.c (clearenv): Likewise.
64783         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
64784         needed.
64785         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
64786         (malloc, memcpy): Remove decls.
64787         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
64788         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
64789         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
64790         (memcpy): Remove macro.
64791         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
64792         (__P): Remove.  All uses removed.
64793         (PTR): Remove.  All uses changed to void *.
64794         (CHAR_BIT, NULL): Remove.
64795         (spaces, zeros, memset_space, memset_zero)
64796         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
64797         Remove.
64798         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
64799         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
64800         Define with prototype.
64801         Remove now-unnecessary prototype decl.
64802         (extra_args_spec): Assume ANSI C.  All uses changed.
64803         (extra_args_spec_iso): Remove.
64804         (my_strftime, emacs_strftimeu): Define via prototype.
64805         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
64806         unconditionally.
64807         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
64808         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
64809         (strtoul, strtol): Remove decls.
64810         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
64811         LONG_MAX): Remove.
64812         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
64813         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
64814         (LOCALE_PARAM_PROTO): New macro.
64815         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
64816         (INTERNAL (strtol), strtol): Define with a prototype.
64817         (PARAMS): Remove.  All uses removed.
64818         * lib/tempname.c: Include <string.h> unconditionally.
64819         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
64820         * lib/xgethostname.c (main): Define with a prototype.
64821         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
64822         Include <stdlib.h> unconditionally.
64823         (calloc, malloc, realloc, free): Remove decls.
64824         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
64825         Include <stdlib.h> unconditionally.  Sort include file names.
64826         (strtod): Remove.
64827         (xstrtod): Define with a prototype.
64828         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
64829         (strtol, strtoul): Remove decls.
64830
64831 2003-09-11  Paul Eggert  <eggert@twinsun.com>
64832
64833         More patches to assume C89 or better.
64834         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
64835         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
64836         string.h, memchr, STDC_HEADERS.
64837
64838 2003-09-11  Paul Eggert  <eggert@twinsun.com>
64839
64840         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
64841         Include <stdlib.h>, <string.h> unconditionally.
64842         Remove now-unnecessary cast to char *.
64843         * lib/strnlen.c: Include <string.h> unconditionally.
64844         * lib/yesno.c (yesno): Define with a prototype.
64845
64846 2003-09-11  Bruno Haible  <bruno@clisp.org>
64847
64848         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
64849
64850 2003-09-10  Jim Meyering  <jim@meyering.net>
64851
64852         * lib/error.c: Correct indentation of cpp directives.
64853
64854 2003-09-10  Bruno Haible  <bruno@clisp.org>
64855
64856         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
64857         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
64858         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
64859         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
64860         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
64861         <stdlib.h> and <string.h> checks.
64862         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
64863         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
64864
64865 2003-09-10  Bruno Haible  <bruno@clisp.org>
64866
64867         * lib/strcspn.c: Include <string.h> unconditionally.
64868         * lib/strpbrk.c: Include <string.h> unconditionally.
64869         * lib/strstr.c: Include <string.h> unconditionally.
64870         * lib/unicodeio.c: Include <string.h> unconditionally.
64871         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
64872         * lib/unsetenv.c: Likewise.
64873         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
64874         * lib/yesno.c: Include <stdlib.h> unconditionally.
64875         (rpmatch): Add prototype.
64876
64877 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64878
64879         More patches to assume C89 or better.
64880         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
64881         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
64882         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
64883         or for string.h.
64884         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
64885         stdlib.h.
64886         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
64887         C headers.
64888         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
64889         string.h.
64890         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
64891         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
64892         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
64893         or for string.h.
64894         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
64895         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
64896         C headers.
64897         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
64898         memcpy.
64899         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
64900         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
64901         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
64902         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
64903         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
64904         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
64905         string.h, free.
64906         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
64907         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
64908         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
64909         C headers, or for string.h.
64910         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
64911         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
64912         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
64913         headers, memory.h, stdlib.h, string.h, strings.h.
64914         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
64915         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
64916         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
64917         strchr.
64918         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
64919         headers, memory.h, string.h.
64920         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
64921         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
64922         free.
64923         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
64924         headers.
64925         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
64926         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
64927         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
64928         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
64929         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
64930
64931 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64932
64933         More K&R removal.
64934
64935         * lib/acosl.c (main): Use a prototype.
64936         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
64937         tanl.c: Likewise.
64938
64939         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
64940
64941         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
64942         (getopt, etopt_long, getopt_long_only, _getopt_internal)
64943         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
64944         with a prototype.
64945         * lib/getopt.c (const): Remove macro.
64946         Include <string.h> unconditionally.
64947         (my_index): Remove; all uses changed to strchr.
64948         (strlen): Remove decl.
64949         (exchange): Remove forward decl; no longer needed.
64950         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
64951         Define with prototype.
64952         * lib/getopt1.c (const): Remove macro.
64953         (getopt_long, getopt_long_only, main): Define with prototype.
64954
64955         * lib/getugroups.c: Include <string.h> unconditionally.
64956
64957         * lib/getusershell.c: Include <stdlib.h> unconditionally.
64958         (getusershell, setusershell, endusershell, readname, main):
64959         Define with prototypes.
64960
64961         * lib/group-member.c: Include group-member.h first.
64962         Include <stdlib.h> unconditionally.
64963
64964         * lib/hard-locale.c: Include hard-locale.h first.
64965         Include <stdlib.h>, <string.h> unconditionally.
64966
64967         * lib/hash.c (free, malloc): Remove decls.
64968         Include <stdlib.h> unconditionally.
64969
64970         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
64971         (getenv): Do not declare.
64972
64973         * lib/idcache.c: Include <string.h> unconditionally.
64974
64975         * lib/long-options.c: Include long-options.h first, to test interface.
64976         Include <stdlib.h> unconditionally.
64977
64978         * lib/makepath.c: Include makepath.h first, to test interface.
64979         Include <stdlib.h> and <string.h> unconditionally.
64980
64981         * lib/linebuffer.c: Include <stdlib.h>.
64982         (free): Remove decl.
64983
64984         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
64985         stddef.h. rpl_malloc returns void *, not char *.
64986         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
64987         prototype.
64988
64989         * lib/md5.h: Include <limits.h> unconditionally.
64990         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
64991         (__P): Remove; all uses removed.
64992         * lib/md5.c: Include "md5.h" first.
64993         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
64994         md5_buffer, md5_process_bytes, md5_process_block):
64995         Define with prototypes.
64996         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
64997         * lib/sha.c: Include "sha.h" first.
64998         Include <stdlib.h>, <string.h> unconditionally.
64999
65000         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
65001         * lib/memcmp.c (__ptr_t): Likewise.
65002         * lib/memrchr.c (__ptr_t): Likewise.
65003         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
65004         Include <string.h> unconditionally.
65005         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
65006         * lib/memchr.c: Include <stdlib.h> unconditionally.
65007         * lib/memchr.c (LONG_MAX): Remove.
65008         * lib/memrchr.c (LONG_MAX): Likewise.
65009         * lib/memchr.c (__memchr): Define via a prototype.
65010         * lib/memrchr.c (__memrchr): Likewise.
65011         * lib/memcmp.c (__P): Remove, and remove all uses.
65012         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
65013         Remove forward decls; no longer needed.
65014         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
65015         Use types required by C89 in prototype.
65016
65017         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
65018         * lib/savedir.c: Likewise.
65019         * lib/mkdir.c (free): Remove decl.
65020         * lib/rmdir.c (rmdir): Define with a prototype.
65021         * lib/savedir.c: Include savedir.h first, to test interface.
65022
65023         * lib/mktime.c (STDC_HEADERS): Remove.
65024         Include <stdlib.h>, <string.h> unconditionally.
65025
65026         * lib/modechange.c: Include <stdlib.h> unconditionally.
65027         (malloc): Remove decl.
65028
65029         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
65030         (free): Remove decl.
65031
65032         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
65033         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
65034         (This type really should be intptr_t, but that's a C99ism.)
65035         (_obstack_memcpy): Remove: all uses changed to memcpy.
65036         Include <string.h> unconditionally.
65037         (struct obstack): Assume __STDC__ for types of members
65038         chunkfun, freefun, extra_arg.
65039         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
65040         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
65041         obstack_begin, obstack_specify_allocation,
65042         obstack_specify_allocation_with_arg, obstack_chunkfun,
65043         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
65044         Remove unprototyped decls and the macros that use them.
65045         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
65046         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
65047         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
65048         (defined __STDC__ && __STDC__)]:
65049         Remove nonprototyped code.
65050         Include <stdlib.h> unconditionally.
65051         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
65052         _obstack_allocated_p, _obstack_free, obstack_free,
65053         _obstack_memory_used, print_and_abort):
65054         Define using prototypes.
65055         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
65056         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
65057         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
65058         obstack_next_free, obstack_object_size, obstack_room) [0]:
65059         Remove unused, unprototyped code.
65060
65061         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
65062
65063         * lib/physmem.c (physmem_total, physmem_available, main): Define
65064         with prototypes.
65065
65066         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
65067         (main): Define with a prototype.
65068
65069         * lib/posixver.c (getenv): Remove decl.
65070
65071         * lib/putenv.c (malloc): Returns void *, not char *.
65072         Include <string.h> unconditionally.
65073         (strchr, memcpy, NULL): Do not define.
65074
65075         * lib/readtokens.c: Include readtokens.h first, to test interface.
65076         Include <stdlib.h>, <string.h> unconditionally.
65077         (init_tokenbuffer): Define with a prototype.
65078
65079         * lib/regex.c (PARAMS): Remove.  All uses removed.
65080         All uses of _RE_ARGS removed, too.
65081         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
65082         unconditionally.
65083         (bzero): Assume memset exists.
65084         (memcmp, memcpy, NULL): Remove.
65085         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
65086         char, or assignments to local vars of type signed char.
65087         (init_syntax_once, PREFIX(extract_number_and_incr),
65088         PREFIX(print_partial_compiled_pattern),
65089         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
65090         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
65091         PREFIX(regex_grow_registers), PREFIX(regex_compile),
65092         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
65093         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
65094         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
65095         wcs_compile_range, byte_compile_range, truncate_wchar,
65096         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
65097         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
65098         count_mbs_length, wcs_re_match_2_internal,
65099         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
65100         PREFIX(alt_match_null_string_p),
65101         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
65102         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
65103         regfree, PREFIX(extract_number)): Define with prototype.  Remove
65104         now-unnecessary declaration, if any.
65105         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
65106         regcomp, regexec):
65107         Remove now-unnecessary casts among pointer types.
65108         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
65109
65110         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
65111         (free): Remove decl.
65112
65113         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
65114
65115         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
65116         (free): Remove decl.
65117
65118         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
65119         * lib/xgetcwd.c: Likewise.
65120
65121         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
65122         (free): Remove decl.
65123
65124         * lib/strchrnul.c (strchrnul): Define with a prototype.
65125         Fix bug: c_in was not converted to char before searching.
65126
65127         The following changes are not K&R related:
65128
65129         * lib/group-member.h: Include <sys/types.h>, so that this file is
65130         self-contained.
65131         * lib/makepath.h: Likewise.
65132
65133         * lib/getusershell.c (readname, default_index, line_size, readname):
65134         Use size_t, not int, for sizes.
65135         (readname): If the size overflows, report an error instead of
65136         looping forever.
65137
65138 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65139
65140         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
65141         libc.
65142
65143 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65144
65145         * README: New section: portability guidelines.
65146
65147 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
65148
65149         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
65150         C89 spec.
65151
65152 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
65153
65154         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
65155
65156 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65157
65158         Assume C89 or better; remove K&R cruft.
65159         A few of these changes were first proposed by Derek Robert Price
65160         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
65161
65162         * lib/addext.c: Include <string.h> unconditionally.
65163         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
65164         Don't declare getenv or malloc.
65165
65166         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
65167         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
65168         (NULL): Remove.
65169         (find_stack_direction, alloca): Use prototypes.
65170
65171         * lib/atexit.c (atexit): Define using a prototype.
65172
65173         * lib/basename.c, dirname.c, stripslash.c:
65174         Include <string.h> unconditionally.
65175
65176         * lib/bcopy.c: Include <stddef.h>.
65177         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
65178
65179         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
65180
65181         * lib/error.h (error, error_at_line, error_print_progname)
65182         [! (defined (__STDC__) && __STDC__)]: Remove decls.
65183         * lib/error.c: Include error.h first, to check interface.
65184         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
65185         (VA_START): Remove; all uses changeed to va_start.
65186         (exit, strerror): Remove decls.
65187         (error_print_progname): Prototype uncondionally.
65188         Don't include <errno.h>; no longer needed.
65189         (private_strerror): Remove.
65190         (error_tail): Always define.
65191         (error, error_at_line): Assume C89 or better; always use prototypes.
65192         * lib/fatal.c: Include "fatal.h" first, to test interface.
65193         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
65194         (VA_START): Remove; all uses changed to va_start.
65195         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
65196         this case.
65197         (exit): Remove decl.
65198         (fatal): Prototype unconditionally.  Assume va_start works.
65199         Abort at end, to pacify gcc.
65200
65201         * lib/euidaccess.c (main): Define with a prototype.
65202
65203         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
65204
65205         * lib/exitfail.c: Include <stdlib.h> unconditionally.
65206
65207         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
65208         prototypes.
65209         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
65210         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
65211         (getenv): Remove decl.
65212         (fnmatch): Define using a prototype.
65213         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
65214         (FCT): Define using a prototype.
65215
65216         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
65217
65218         * lib/gethostname.c: Include <stddef.h>.
65219         (gethostname): Define with prototype.  Length is size_t, not int.
65220
65221 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65222
65223         Assume C89 or better; remove K&R cruft.
65224         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
65225         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
65226         string.h, getenv, malloc.
65227         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
65228         headers.
65229         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
65230         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
65231         do not check for strerror.
65232         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
65233         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
65234         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
65235         do not check for doprnt or vprintf.
65236         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
65237         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
65238
65239 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65240
65241         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
65242         getversion.c should have been removed then, but was accidentally
65243         preserved.
65244
65245         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
65246         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
65247
65248 2003-09-08  Karl Berry  <karl@gnu.org>
65249
65250         * config/config.sub, config.guess, srclistvars.sh: update from savannah
65251                 config, forget about prep.
65252
65253         * config/depcomp, missing: update from automake.
65254
65255 2003-09-07  Paul Eggert  <eggert@twinsun.com>
65256
65257         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
65258         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
65259
65260 2003-09-07  Paul Eggert  <eggert@twinsun.com>
65261
65262         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
65263         copy_tm_result.  Bug reported by Simon Josefsson in
65264         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
65265
65266 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65267
65268         * m4/time_r.m4: New file.
65269         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
65270         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
65271         is. Check for timegm declaration.
65272         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
65273         Do not check for gmtime_r.
65274         Replace mktime if __mktime_internal does not exist and if mktime
65275         hasn't been replaced already.
65276
65277 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65278
65279         * lib/time_r.c, lib/time_r.h: New files.
65280
65281         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
65282         __localtime_r.
65283         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
65284         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
65285
65286         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
65287         __gmtime_r.
65288         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
65289         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
65290         Include <time_r.h>.
65291
65292         * lib/timegm.c: Switch to glibc implementation, with the following
65293         changes:
65294         [defined HAVE_CONFIG_H]: Include <config.h>.
65295         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
65296         (__mktime_internal) [!defined _LIBC]: New decl.
65297         (__gmtime_r) [!defined _LIBC]: New macro and function.
65298         (timegm): Use a prototype, since gnulib assumes C89.
65299         Do not bother declaring tmp to be const, as it's not really usefu.
65300         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
65301         (timegm): Declare only if HAVE_DECL_TIMEGM.
65302
65303 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65304
65305         * MODULES.html.sh (func_all_modules): Add time_r.
65306         * modules/time_r: New file.
65307         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
65308         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
65309
65310 2003-09-03  Paul Eggert  <eggert@twinsun.com>
65311
65312         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
65313         Bug reported by Lute Kamstra in
65314         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
65315
65316         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
65317         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
65318         course with correspondingly smaller numbers for tomorrow and
65319         yesterday.  From Tadayoshi Funaba.  Originally installed into
65320         sh-utils on 1999-08-07, but the patch got lost (I guess during the
65321         coreutils merge?).
65322
65323 2003-08-31  Simon Josefsson  <jas@extundo.com>
65324
65325         * modules/timegm: New file.
65326         * MODULES.html.sh (func_all_modules): Add timegm.
65327
65328 2003-08-31  Simon Josefsson  <jas@extundo.com>
65329
65330         * m4/timegm.m4: New file.
65331
65332 2003-08-31  Simon Josefsson  <jas@extundo.com>
65333
65334         * lib/timegm.h: New file.
65335         * lib/timegm.c: New file.  Based on
65336         wget-1.8.2/src/http.c:mktime_from_utc.
65337
65338 2003-08-31  Karl Berry  <karl@gnu.org>
65339
65340         * lib/argp.h: update from libc.
65341
65342 2003-08-28  Bruno Haible  <bruno@clisp.org>
65343
65344         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
65345         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
65346         followed by '#define fnmatch fnmatch_posix' gives an error.
65347
65348 2003-08-28  Bruno Haible  <bruno@clisp.org>
65349
65350         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
65351         warning on QNX, which defines O_BINARY to 000000.
65352
65353 2003-08-27  Jim Meyering  <jim@meyering.net>
65354
65355         * m4/mkstemp.m4: Require that the system mkstemp be able to create
65356         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
65357         would fail after 32.  Reported by Danny Levinson.  Details here:
65358         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
65359
65360 2003-08-24  Bruno Haible  <bruno@clisp.org>
65361
65362         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
65363         MSVC7 <stdio.h> is included later.
65364
65365 2003-08-22  Simon Josefsson  <jas@extundo.com>
65366
65367         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
65368
65369 2003-08-20  Karl Berry  <karl@gnu.org>
65370
65371         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
65372
65373 2003-08-20  Bruno Haible  <bruno@clisp.org>
65374
65375         * modules/progname: New file.
65376         * MODULES.html.sh (func_all_modules): Add progname.
65377
65378 2003-08-20  Bruno Haible  <bruno@clisp.org>
65379
65380         * lib/progname.h: New file, from GNU gettext.
65381         * lib/progname.c: New file, from GNU gettext.
65382         * lib/progreloc.c: New file, from GNU gettext.
65383
65384 2003-08-19  Jim Meyering  <jim@meyering.net>
65385
65386         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
65387         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
65388
65389 2003-08-19  Bruno Haible  <bruno@clisp.org>
65390
65391         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
65392         more.
65393
65394 2003-08-19  Bruno Haible  <bruno@clisp.org>
65395
65396         * lib/xstrdup.c: Assume <string.h> exists.
65397
65398 2003-08-18  Paul Eggert  <eggert@twinsun.com>
65399
65400         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
65401         in makefile rules.
65402
65403 2003-08-18  Jim Meyering  <jim@meyering.net>
65404
65405         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
65406         * m4/lib-ld.m4: Likewise.
65407
65408 2003-08-18  Jim Meyering  <jim@meyering.net>
65409
65410         * lib/setenv.h: Indent nested cpp directive.
65411         * lib/vasnprintf.c: Remove trailing blanks.
65412
65413 2003-08-17  Simon Josefsson  <jas@extundo.com>
65414
65415         * modules/xstrndup: New file.
65416         * MODULES.html.sh (func_all_modules): Add xstrndup.
65417
65418 2003-08-17  Simon Josefsson  <jas@extundo.com>
65419
65420         * modules/argp: Fix autoconf macro name. Add more dependencies.
65421
65422 2003-08-17  Simon Josefsson  <jas@extundo.com>
65423
65424         * m4/xstrndup.m4: New file.
65425
65426 2003-08-17  Simon Josefsson  <jas@extundo.com>
65427
65428         * m4/argp.m4: New file.
65429
65430 2003-08-17  Simon Josefsson  <jas@extundo.com>
65431             Bruno Haible  <bruno@clisp.org>
65432
65433         * lib/xstrndup.h: New file.
65434         * lib/xstrndup.c: New file.
65435
65436 2003-08-17  Bruno Haible  <bruno@clisp.org>
65437
65438         * modules/strndup (Files, Include): Add lib/strndup.h.
65439
65440 2003-08-17  Bruno Haible  <bruno@clisp.org>
65441
65442         * modules/euidaccess (Files): Add lib/euidaccess.h.
65443
65444 2003-08-17  Bruno Haible  <bruno@clisp.org>
65445
65446         * lib/strndup.h: New file.
65447
65448 2003-08-17  Bruno Haible  <bruno@clisp.org>
65449
65450         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
65451         like AC_GNU_SOURCE.
65452         * modules/extensions (configure.ac): Comment out the invocation of
65453         gl_USE_SYSTEM_EXTENSIONS.
65454
65455 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65456
65457         Merges from coreutils, etc.
65458         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
65459         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
65460         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
65461         fixing a typo.
65462         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
65463         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
65464
65465 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65466
65467         Document merge from coreutils.
65468         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
65469         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
65470         * modules/utime: Add m4/utimes-null.m4.
65471
65472 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65473
65474         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
65475         space, undoing this 2003-08-12 change:
65476         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
65477
65478 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65479
65480         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
65481         strtoul.c from libc, undoing this 2003-08-12 change:
65482         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
65483
65484 2003-08-16  Jim Meyering  <jim@meyering.net>
65485
65486         Merges from coreutils.
65487         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
65488         prefix.  Adjust cache variables similarly.  Create 500 rather than
65489         just 300 files, to exercise bug on Darwin6.5, too.
65490         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
65491         $missing_dir.
65492         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
65493         AM_SYS_POSIX_TERMIOS.
65494         Reported by mkc@mathdogs.com.
65495         Also change use of $am_cv_sys_posix_termios
65496         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
65497         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
65498         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
65499         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
65500         in /proc/mounts until it finds one with matching device number.  This
65501         is unnecessary when the FILE argument *is* a mount point.  No stat call
65502         is necessary in that case.  So, disable the statvfs-testing code on
65503         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
65504         as RedHat bug# 84846.
65505         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
65506         to 1MB, so as not to render systems with no stack size limit (e.g.,
65507         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
65508         Include <unistd.h>.  On some systems,
65509         it is required for the definition of _SC_PAGESIZE.
65510
65511 2003-08-16  Jim Meyering  <jim@meyering.net>
65512
65513         Merge from coreutils.
65514         * lib/xstrtoimax.c: #else #if -> #elif.
65515         * lib/xstrtoumax.c: Likewise.
65516
65517 2003-08-16  Jim Meyering  <jim@meyering.net>
65518
65519         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
65520         * m4/utimes.m4: Removed.
65521         * m4/utimes-null.m4: Renamed from utimes.m4.
65522
65523         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
65524         to 1MB, so as not to render systems with no stack size limit (e.g.,
65525         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
65526         Include <unistd.h>.  On some systems,
65527         it is required for the definition of _SC_PAGESIZE.
65528
65529 2003-08-16  Jim Meyering  <jim@meyering.net>
65530         and Paul Eggert  <eggert@cs.ucla.edu>
65531
65532         Merges from coreutils, etc.
65533
65534         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
65535         using the latest version from cvs.  This avoids problems with #line
65536         directives using a vendor (Sun) compiler.
65537         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
65538         Don't set GETGROUPS_LIB here; now it's
65539         done via getgroups.m4's wrapper function.
65540         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
65541         rather than just in sh-util/configure.in, so that the
65542         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
65543         same.
65544         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
65545         AC_FUNC_GETLOADAVG where to find getloadavg.c.
65546         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
65547         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
65548         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
65549         Remove code that is now done by the newly-required macros.
65550         Append $(EXEEXT) to DF_PROG.
65551         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
65552         Do not invoke or require the following here,
65553         since prereq.m4 or some gnulib .m4 now does this for us:
65554         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
65555         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
65556         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
65557         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
65558         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
65559         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
65560         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
65561         AC_FUNC_OBSTACK.
65562         Do not replace the following functions, as this is now the job
65563         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
65564         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
65565         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
65566         atexit getpass, strdup, getpagesize.
65567         Replace 'raise'.
65568         Do not check for the following functions, as this is now the job
65569         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
65570         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
65571         setregid.
65572         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
65573         Check for sys/sysctl.h.
65574         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
65575         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
65576         of checking for ssize_t ourselves.
65577
65578         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
65579         Require every macro that gnulib/modules/* suggests for us.
65580         (jm_PREREQ_ADDEXT): New macro.
65581         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
65582         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
65583
65584         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
65585         (gl_PHYSMEM): Use it.
65586         Also check for `table' function.
65587         Check for new headers and functions.
65588         Add check for sys/sysmp.h.
65589         With suggestions from Kaveh Ghazi.
65590         Ignore headers that are present but cannot be compiled.  This
65591         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
65592         C 5.4.
65593
65594 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65595
65596         Document merge from coreutils.
65597         * modules/userspec: Depend on posixver.
65598         * modules/strftime: Depend on tzset.
65599
65600 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65601
65602         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
65603         rather than tab, after '#' in shell-script copyright notices.
65604         Suggested by Bruno Haible.
65605
65606 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65607
65608         * config/srclist-update: Use three spaces, rather than tab, after '#'
65609         in shell-script copyright notices.  Suggested by Bruno Haible.
65610         Remove unnecessary parenthesization in regular expression.
65611
65612 2003-08-15  Jim Meyering  <jim@meyering.net>
65613
65614         Merge from coreutils.
65615         * lib/xgethostname.c: Include <stdlib.h>.
65616         (xghostname): Don't exit for anything other than memory-related
65617         failure; just return NULL.
65618         * lib/userspec.c: Include "posixver.h".
65619         (parse_user_spec): Accept `.' as a separator only
65620         in pre-POSIX-200112 mode.
65621         * lib/strtoimax.c: Use #elif rather than #else #if.
65622         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
65623         Remove function, now that we can rely on a working tzset function.
65624         [!_LIBC]: Ensure that the required autoconf test has been run.
65625         [!defined _NL_CURRENT && HAVE_STRFTIME]:
65626         Use underlying_strftime for %r.
65627         * lib/sha.c: Merge in some clean-up and optimization changes from
65628         glibc.
65629         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
65630         Ensure that it is a multiple of 64.
65631         Rearrange loop exit tests so as to avoid performing an
65632         additional fread after encountering an error or EOF.
65633         * lib/realloc.c: Update copyright date.
65634
65635 2003-08-15  Jim Meyering  <jim@meyering.net>
65636         and Paul Eggert  <eggert@twinsun.com>
65637
65638         Merge from coreutils.
65639         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
65640         member but strut utmpx does not.  Needed for AIX 4.3.3.
65641         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
65642
65643 2003-08-15  Jim Meyering  <jim@meyering.net>
65644         and Paul Eggert  <eggert@cs.ucla.edu>
65645
65646         Merges from coreutils, etc.
65647         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
65648         Require gl_FUNC_TZSET_CLOBBER.
65649         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
65650         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
65651         members.
65652
65653 2003-08-14  Paul Eggert  <eggert@twinsun.com>
65654
65655         Help the merge from coreutils.
65656         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
65657         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
65658         * m4/tzset.m4: Use it too.
65659
65660 2003-08-14  Paul Eggert  <eggert@twinsun.com>
65661
65662         * modules/tzset: New file.
65663
65664 2003-08-14  Jim Meyering  <jim@meyering.net>
65665
65666         Merges from coreutils.
65667         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
65668         variable names, rather than @FNMATCH_H@.
65669         * modules/alloca: Likewise for $(ALLOCA_H).
65670
65671         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
65672         the three copies of the literal target, `fnmatch.h'.
65673         * modules/alloca (alloca.h): Likewise.
65674
65675 2003-08-14  Jim Meyering  <jim@meyering.net>
65676
65677         Merge from coreutils.
65678         * m4/tzset.m4: New file.
65679         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
65680         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
65681         otherwise, AIX 5.1 systems would end up using the latter.
65682         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
65683         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
65684         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
65685         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
65686
65687 2003-08-14  Jim Meyering  <jim@meyering.net>
65688
65689         Merge from coreutils.
65690         * lib/obstack.h: Whitespace changes.
65691         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
65692         and xcalloc return values.
65693         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
65694         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
65695         hang on OSF/1 5.1 for DIR on both local and remote file systems.
65696         Reported by (and fix confirmed by) Nelson H. F. Beebe.
65697         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65698         error from mntctl.
65699         Use mntctl's return value to drive the entry-processing loop, since
65700         we can't rely on the value of the vmt_length member in the last
65701         entry.  On some systems doing so could result in exhausting
65702         virtual memory.  Based in part on a patch from Mike Jetzer.
65703
65704 2003-08-14  Jim Meyering  <jim@meyering.net>
65705         and Paul Eggert  <eggert@twinsun.com>
65706
65707         Merges from coreutils, plus other fixes.
65708         * lib/physmem.c: Merge in portability changes from gcc/libiberty
65709         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
65710         for credits and details.  Thanks to Kaveh Ghazi for helping
65711         to keep these files in sync.
65712         (ARRAY_SIZE): Define it.
65713         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
65714         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
65715         (memcasecmp): Don't assume size_t fits in unsigned int.
65716         Remove casts and duplicate code.
65717         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
65718         (memcpy): Remove definition.
65719         Merge in some clean-up and optimization changes from glibc.
65720         [BLOCKSIZE]: Move definition to top of file.
65721         Ensure that it is a multiple of 64.
65722         Rearrange loop exit tests so as to avoid performing an
65723         additional fread after encountering an error or EOF.
65724         * lib/md5.h (md5_uintptr): Define.
65725         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
65726         return to the initial working directory.  Preserve errno
65727         for caller.
65728         * lib/idcache.c: Include "xalloc.h".
65729         (xmalloc, xrealloc): Remove decls.
65730         (getuser): Remove casts no longer required in C89.
65731         * lib/human.c: Include stdio.h, for sprintf.
65732         * lib/group-member.c: Include "xalloc.h".
65733         (xmalloc, xrealloc): Remove decls.
65734         (get_group_info): Remove casts no longer required in C89.
65735         * lib/getusershell.c (readname): Remove casts no longer required in
65736         C89.
65737         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
65738         * lib/getline.c: Whitespace fix, from coreutils.
65739
65740 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65741
65742         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
65743         Check for isascii.
65744
65745         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
65746         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
65747         Undo previous (whitespace-only) change.
65748
65749 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65750
65751         * lib/exclude.c: Include <ctype.h>
65752         (IN_CTYPE_DOMAIN): New macro.
65753         (is_space): New fn.
65754         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
65755         and empty lines.
65756
65757         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
65758         Undo previous (whitespace-only) change.
65759
65760 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65761
65762         * config/srclist-update: Change update back to the old behavior,
65763         leaving whitespace alone.  Use one 'sed' command rather than a
65764         pipeline.
65765         (fixlicense): Now a variable, not a function.
65766         (remove_trailing_blanks): Remove.
65767         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
65768         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
65769         Undo previous (whitespace-only) change.
65770
65771 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65772
65773         Merge from coreutils.
65774         * modules/euidaccess: Add lib_SOURCES, include for new
65775         file euidaccess.h
65776
65777 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65778
65779         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
65780         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
65781         Normalize leading white space and remove trailing white space.
65782
65783         Merge from coreutils
65784         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
65785
65786         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
65787         0.12.1.  These files are now being upgraded automatically by
65788         ../config/srclist-update.
65789
65790 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65791
65792         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
65793         Normalize leading white space and remove trailing white space.
65794         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
65795         notice, as per ../config/srclist-update.
65796
65797         Merge from coreutils.
65798         * lib/euidaccess.h: New file.
65799         * lib/euidaccess.c: Include it.
65800         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
65801         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
65802         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
65803
65804 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65805
65806         * config/srclist-update: Add copyright notice.
65807         (remove_id_lines, remove_trailing_blanks): New constants.
65808         (fixfile): Use them to normalize spacing a bit in copied files.
65809         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
65810         Normalize leading white space and remove trailing white space.
65811
65812         * config/texinfo.tex: Sync with texinfo.
65813
65814         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
65815         strtoul.c from libc, to merge coreutils whitespace changes.
65816
65817         * config/srclist.txt: Get the following m4 files from gettext:
65818         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
65819         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
65820         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
65821         wint_t.m4.
65822
65823 2003-08-12  Karl Berry  <karl@gnu.org>
65824
65825         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
65826         been made.
65827
65828 2003-08-11  Paul Eggert  <eggert@twinsun.com>
65829
65830         * modules/gnu-source, m4/gnu-source.m4:
65831         Remove; we're assuming Autoconf 2.54 or later now.
65832         Suggested by Bruno Haible.
65833         * MODULES.html.sh (func_all_modules): Remove gnu-source.
65834
65835 2003-08-11  Bruno Haible  <bruno@clisp.org>
65836
65837         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
65838
65839 2003-08-11  Bruno Haible  <bruno@clisp.org>
65840
65841         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
65842         (vasnprintf): Use it instead of wcslen.
65843
65844 2003-08-11  Bruno Haible  <bruno@clisp.org>
65845
65846         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
65847         value to ensure that _Bool promotes to int. Use #define for _Bool when
65848         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
65849
65850 2003-08-10  Karl Berry  <karl@gnu.org>
65851
65852         * lib/regex.h: update from libc (whitespace fix).
65853
65854 2003-08-09  Paul Eggert  <eggert@twinsun.com>
65855
65856         Merge some files from coreutils.  These changes were
65857         originally made by Jim Meyering.
65858         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
65859         many older Unixes require this.
65860         * lib/alloca.c (alloca): Remove cast to argument of free;
65861         no longer needed in C89.
65862         * lib/alloca_.h, regex.h: Fix white space to match
65863         what GNU indent does.
65864
65865 2003-08-09  Paul Eggert  <eggert@twinsun.com>
65866
65867         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
65868         apparently Emacs's Unicode mode got confused before my 2003-08-05
65869         checkin.
65870
65871 2003-08-08  Paul Eggert  <eggert@twinsun.com>
65872
65873         * m4/extensions.m4: New file.
65874         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
65875         Require gl_USE_SYSTEM_EXTENSIONS.
65876         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
65877         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
65878
65879 2003-08-08  Paul Eggert  <eggert@twinsun.com>
65880
65881         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
65882         * modules/extensions, modules/gnu-source: New files.
65883         * modules/timespec, modules/unlocked-io: Depend on extensions.
65884
65885 2003-08-07  Paul Eggert  <eggert@twinsun.com>
65886
65887         * modules/restrict: New file.
65888         * MODULES.html.sh (func_all_modules): Add restrict.
65889         * modules/regex: Depend on restrict.
65890
65891 2003-08-07  Paul Eggert  <eggert@twinsun.com>
65892
65893         * m4/restrict.m4: New file.
65894         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
65895
65896 2003-08-07  Bruno Haible  <bruno@clisp.org>
65897
65898         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
65899         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
65900
65901 2003-08-07  Bruno Haible  <bruno@clisp.org>
65902
65903         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
65904         makes the module 'getndelim2' compatible with the module 'getline'.
65905
65906 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65907
65908         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
65909         byte with "\201" to avoid glitches when editing that source file
65910         with multi-gnome-terminal.
65911
65912 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65913
65914         * lib/bumpalloc.h: Remove.
65915
65916 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65917
65918         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
65919         * modules/bumpalloc: Remove.
65920
65921 2003-08-04  Paul Eggert  <eggert@twinsun.com>
65922
65923         * lib/getloadavg.c: Change copyright notice and spacing to conform to
65924         GNU coding style.
65925
65926         Merge from coreutils.
65927         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
65928         1. From glibc.
65929         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
65930         from Karl Berry, implemented by Jim Meyering.
65931         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
65932         from Dmitry V. Levin.
65933         Remove anachronistic cast of xrealloc.
65934         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
65935         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
65936         type. Otherwise, it wouldn't compile with at least /bin/cc on
65937         ymp-cray-unicos9.0.2.X.
65938         Combine two mostly-identical uses of alloca into one.
65939         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
65940
65941 2003-08-04  Dave Love  <d.love@dl.ac.uk>
65942
65943         [From Emacs.]
65944
65945         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
65946         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
65947         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
65948         obsolete NLIST_NAME_UNION.
65949         [__GNU__]: Undef BSD and FSCALE.
65950         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
65951
65952 2003-08-03  Paul Eggert  <eggert@twinsun.com>
65953
65954         * lib/stdbool_.h (_Bool): Make it signed char, instead of
65955         an enum type, so that it's guaranteed to promote to int.  See:
65956         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
65957
65958 2003-08-03  Karl Berry  <karl@gnu.org>
65959
65960         * config/depcomp: update from automake.
65961
65962 2003-07-31  Paul Eggert  <eggert@twinsun.com>
65963
65964         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
65965         (strerror): Don't assume that a printable int fits in 14 bytes.
65966
65967 2003-07-31  Bruno Haible  <bruno@clisp.org>
65968
65969         * modules/getpass-gnu: New file.
65970         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
65971
65972 2003-07-31  Bruno Haible  <bruno@clisp.org>
65973
65974         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
65975
65976 2003-07-24  Karl Berry  <karl@gnu.org>
65977
65978         * config/missing: update from automake.
65979
65980 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
65981             Bruno Haible  <bruno@clisp.org>
65982
65983         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
65984         * lib/getline.c (getline, getdelim): Likewise.
65985         Remove _GNU_SOURCE define; now it's defined in config.h through
65986         m4/getline.m4.
65987
65988 2003-07-23  Karl Berry  <karl@gnu.org>
65989
65990         * config/config.sub: update from prep.
65991
65992 2003-07-22  Paul Eggert  <eggert@twinsun.com>
65993
65994         * modules/xalloc (Depends-on): Add exitfail.
65995         * modules/xmemcoll: Likewise.
65996
65997 2003-07-22  Paul Eggert  <eggert@twinsun.com>
65998
65999         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
66000         over-parenthesization in macros.
66001
66002         Sync with coreutils.
66003
66004         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
66005         required by C99.
66006
66007         Use `exit_failure' for xalloc and xmemcoll instead of their own
66008         private exit-failure variables.
66009         * lib/xalloc.h (xalloc_exit_failure): Remove.
66010         * lib/xmalloc.c: Likewise.  Include exitfail.h.
66011         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
66012         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
66013         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
66014         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
66015
66016 2003-07-20  Jim Meyering  <jim@meyering.net>
66017
66018         * modules/closeout (Depends-on): Add exitfail.
66019         Suggestion from Bruno Haible.
66020
66021 2003-07-19  Karl Berry  <karl@gnu.org>
66022
66023         * config/config.sub: update from prep.
66024
66025 2003-07-18  Paul Eggert  <eggert@twinsun.com>
66026
66027         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
66028         Remove.
66029         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
66030         to test that it can stand by itself.  Include "exitfail.h".
66031         Clients should set exit_failure instead.
66032         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
66033
66034 2003-07-18  Bruno Haible  <bruno@clisp.org>
66035
66036         * modules/getndelim2: New file.
66037         * modules/getline: Share files with module getndelim2.
66038         * modules/getnline: Depend on getndelim2 instead of sharing files with
66039         it. Add getnline.c to lib_SOURCES.
66040         * MODULES.html.sh (func_all_modules): Add getndelim2.
66041
66042 2003-07-18  Bruno Haible  <bruno@clisp.org>
66043
66044         * m4/getndelim2.m4: New file.
66045         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
66046         invoke gl_PREREQ_GETNDELIM2.
66047         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
66048         gl_PREREQ_GETNDELIM2.
66049         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
66050         gl_GETNDELIM2.
66051
66052 2003-07-18  Bruno Haible  <bruno@clisp.org>
66053
66054         * lib/getndelim2.h: New file.
66055         * lib/getndelim2.c: Make into a module of its own. Include config.h,
66056         getndelim2.h.
66057         (getndelim2): Make non-static. Change return type to ssize_t.
66058         * lib/getline.h: Change argument names.
66059         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
66060         * lib/getnline.c: Include getndelim2.h.
66061
66062 2003-07-18  Andreas Schwab  <schwab@suse.de>
66063
66064         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
66065
66066 2003-07-17  Karl Berry  <karl@gnu.org>
66067
66068         * config/config.sub: update from prep.
66069
66070 2003-07-17  Bruno Haible  <bruno@clisp.org>
66071
66072         * modules/getnline: New file.
66073         * modules/getline: Add lib/getndelim2.c to source file list.
66074         * MODULES.html.sh (func_all_modules): Add getnline.
66075
66076 2003-07-17  Bruno Haible  <bruno@clisp.org>
66077
66078         * m4/getnline.m4: New file.
66079
66080 2003-07-17  Bruno Haible  <bruno@clisp.org>
66081
66082         * m4/Makefile.am.in: Remove file.
66083         * m4/Makefile.am: Remove file.
66084         * m4/Makefile.in: Remove file.
66085
66086 2003-07-17  Bruno Haible  <bruno@clisp.org>
66087
66088         * lib/getnline.h: New file.
66089         * lib/getnline.c: New file.
66090         * lib/getndelim2.c: New file, extracted from getline.c.
66091         (getndelim2): Renamed from getdelim2, with added nmax argument.
66092         * lib/getline.c: Include getndelim2.c.
66093         (getdelim2): Moved out to getndelim2.c.
66094         (getline, getdelim): Update.
66095
66096 2003-07-17  Bruno Haible  <bruno@clisp.org>
66097
66098         * lib/Makefile.am: Remove file.
66099         * lib/Makefile.in: Remove file.
66100
66101 2003-07-17  Bruno Haible  <bruno@clisp.org>
66102
66103         * configure.in: Remove file.
66104         * Makefile.in: Remove file.
66105
66106 2003-07-17  Bruno Haible  <bruno@clisp.org>
66107
66108         * MODULES.html.sh: Put the </BODY> right before </HTML>.
66109
66110 2003-07-16  Karl Berry  <karl@gnu.org>
66111
66112         * config/srclist-update: was running fixlicense twice, which caused
66113                 texinfo.tex to be nullified for some reason.  Simplify,
66114                 $gplsrc is no longer needed as far as I can see?
66115
66116 2003-07-16  Jim Meyering  <jim@meyering.net>
66117
66118         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
66119
66120 2003-07-15  Paul Eggert  <eggert@twinsun.com>
66121
66122         * config/srclist.txt: Get the following files from gettext-runtime/intl
66123         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
66124         ref-del.sin.  From Bruno Haible.
66125         * config/srclist-update (fixfile): Change grep pattern again, since the
66126         previous fix didn't work (there was another trailing $).  Use
66127         '[$]' to escape the $s.
66128
66129 2003-07-15  Karl Berry  <karl@gnu.org>
66130
66131         * lib/vasnprintf.c: update from gettext.
66132
66133 2003-07-15  Karl Berry  <karl@gnu.org>
66134
66135         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
66136         gets expanded when surrounded by '$'.
66137
66138 2003-07-15  Jim Meyering  <jim@meyering.net>
66139
66140         * modules/save-cwd: Don't depend on error.  From Derek Price.
66141
66142 2003-07-15  Jim Meyering  <jim@meyering.net>
66143
66144         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
66145
66146 2003-07-14  Simon Josefsson  <jas@extundo.com>
66147
66148         * modules/mempcpy: New file.
66149         * MODULES.html.sh (func_all_modules): Add mempcpy.
66150
66151 2003-07-14  Simon Josefsson  <jas@extundo.com>
66152
66153         * m4/mempcpy.m4: New file.
66154
66155 2003-07-14  Simon Josefsson  <jas@extundo.com>
66156
66157         * lib/mempcpy.h: New file.
66158         * lib/mempcpy.c: New file.
66159
66160 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66161
66162         * modules/getdate, modules/posixtm: Depend on mktime.
66163
66164 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66165
66166         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
66167         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
66168         unicodeio.c, unicodeio.h, unlocked-io.h:
66169         Switch from LGPL to GPL.
66170
66171 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66172
66173         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
66174         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
66175         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
66176         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
66177         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
66178         updated automatically by ../config/srclist-update.  This changes
66179         their license from LPGL to GPL.
66180
66181 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66182
66183         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
66184         assumed to refer to the root of the most recent stable gettext version.
66185         * config/srclistvars.sh: Add defaults for eggert.
66186         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
66187         Match "This program" as well as "The program".  This is needed
66188         for gettext.
66189
66190 2003-07-14  Jim Meyering  <jim@meyering.net>
66191
66192         Don't emit diagnostics.  Let callers do that.
66193         * lib/save-cwd.c: Don't include "error.h".
66194         (save_cwd): Don't call error.  Ensure that errno is valid
66195         when returning nonzero.
66196
66197         * lib/save-cwd.h (restore_cwd): Update prototype.
66198         * lib/save-cwd.c (restore_cwd): Remove two parameters.
66199         Simplify.  Don't call error upon failure.  Let callers do that.
66200         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
66201         when auditing is enabled.  But don't bother updating the #if.
66202
66203 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
66204
66205         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
66206         it breaks C++ compilation.
66207         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
66208
66209 2003-07-10  Simon Josefsson  <jas@extundo.com>
66210
66211         * modules/strchrnul (Makefile.am): Add strchrnul.h.
66212
66213 2003-07-10  Jim Meyering  <jim@meyering.net>
66214
66215         * m4/clock_time.m4: Remove trailing blank.
66216         * m4/intmax_t.m4: Likewise.
66217
66218 2003-07-10  Jim Meyering  <jim@meyering.net>
66219
66220         * lib/vasnprintf.c: Remove trailing blanks.
66221         Make cpp indentation consistent.
66222
66223 2003-07-09  Paul Eggert  <eggert@twinsun.com>
66224
66225         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
66226         posixver.c, strftime.c, strnlen.c, strverscmp.c:
66227         Switch from LGPL to GPL.
66228
66229 2003-07-09  Paul Eggert  <eggert@twinsun.com>
66230
66231         * config/srclist.txt: Sort sublists.  Add
66232         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
66233         that differ from gnulib for one reason or another; we'd like this list
66234         to be smaller but for now let's document what we have.
66235
66236 2003-07-08  Paul Eggert  <eggert@twinsun.com>
66237
66238         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
66239         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
66240         and sweeter "eval x=$x".
66241         * config/srclist.txt: Get lib/argp* from glibc.
66242
66243 2003-07-07  Paul Eggert  <eggert@twinsun.com>
66244
66245         * lib/mktime.c: Fix some boundary cases and remove need for floating
66246         point.
66247
66248         Issue a compile-time diagnostic if time_t is floating point, or if
66249         two's complement arithmetic is not in effect, or if arithmetic
66250         right shift does not propagate the sign.  These assumptions were
66251         all in the original code but they weren't checked.
66252
66253         (TIME_T_MIDPOINT, verify): New macros.
66254         (__isleap): Remove; it has integer overflow problems.
66255         (leapyear): New function, without those problems.
66256         (ydhms_tm_diff): Remove; splitting into two parts.
66257         (ydhms_diff): New function, containing the arithmetic part of
66258         the old ydhms_tm_diff function.  Issue a compile-time
66259         diagnostic if we are not using C99 integer division.
66260         Avoid casts when possible.
66261         (guess_time_tm): New function, containing the checking part of
66262         the old ydhms_tm_diff function.  Return the new value, rather than
66263         the difference between it and the old.  Accept a new argument T
66264         so that *T specifies the old value.  Check for overflow in the result.
66265
66266         (__mktime_internal): Use a time_t offset, not a long int offset.
66267         This undoes the 2003-06-04 change, which is no longer needed now
66268         that we have better overflow checking.
66269         (localtime_offset): Likewise.
66270
66271         (__mktime_internal): Avoid harmful overflow on hosts where time_t
66272         and long are 64-bit but int is only 32-bit.
66273         (ydhms_diff): Use long int to store year1 and yday1.
66274         Issue a compile-time diagnostic if long int is not wide enough.
66275
66276         (__mktime_internal): Use long int to store adjusted year and yday.
66277         Use plain C rather than preprocessor commands, if that doesn't
66278         affect efficiency.
66279         Check for overflow (and try to repair) after each probe
66280         rather than checking only at the very end.  This avoids some bugs
66281         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
66282         does not equal GMT offset at maximum time).
66283         Use integer to check for overflow rather than floating point; this
66284         is more portable to non-IEEE hosts, and is a tad faster.
66285         When we detect that we are oscillating between two values,
66286         don't check whether tm_isdst has the requested value, since
66287         we already know the answer.  When tm_isdst has the wrong value,
66288         use a different heuristic to find the right one, based on the
66289         extreme values actually observed in practice in tz2003a,
66290         rather than the (overly optimistic) "previous 3 calendar quarters".
66291
66292         (not_equal_tm, print_tm, check_result): Use "const T" rather than
66293         "T const" to accommodate glibc style.
66294         (check_result): Use less-confusing report format.  "long" -> "long int.
66295         (main): Likewise.
66296         Don't loop if the iteration overflows time_t.
66297         Allow a negative step in the iteration.
66298
66299 2003-07-06  Karl Berry  <karl@gnu.org>
66300
66301         * config/depcomp: update from automake.
66302         * config/config.sub: update from prep.
66303
66304 2003-07-03  Karl Berry  <karl@gnu.org>
66305
66306         * config/config.guess: update from prep.
66307
66308 2003-07-01  Paul Eggert  <eggert@twinsun.com>
66309
66310         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
66311         xreadlink.c now includes it unconditionally.
66312
66313 2003-07-01  Paul Eggert  <eggert@twinsun.com>
66314
66315         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
66316         having it depend on HAVE_SYS_TYPES_H.
66317
66318 2003-07-01  Bruno Haible  <bruno@clisp.org>
66319
66320         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
66321         <sys/types.h> should be sufficient.
66322         Reported by Paul Eggert.
66323
66324 2003-06-26  Karl Berry  <karl@gnu.org>
66325
66326         * config/depcomp: update from automake.
66327
66328 2003-06-26  Bruno Haible  <bruno@clisp.org>
66329
66330         * modules/human: Depend on module stdbool.
66331
66332 2003-06-25  Bruno Haible  <bruno@clisp.org>
66333
66334         * modules/readlink: New file.
66335         * modules/xreadlink: Depend on it.
66336         * MODULES.html.sh (func_all_modules): Add readlink.
66337
66338 2003-06-25  Bruno Haible  <bruno@clisp.org>
66339
66340         * m4/readlink.m4: New file.
66341
66342 2003-06-25  Bruno Haible  <bruno@clisp.org>
66343
66344         * lib/readlink.c: New file.
66345
66346 2003-06-22  Karl Berry  <karl@gnu.org>
66347
66348         * config/srclist.txt: update mkinstalldirs from automake.
66349         * config/mkinstalldirs: update.
66350
66351 2003-06-22  Bruno Haible  <bruno@clisp.org>
66352
66353         Portability to mingw32.
66354         * m4/ssize_t.m4: New file, from GNU gettext.
66355         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
66356         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
66357
66358 2003-06-22  Bruno Haible  <bruno@clisp.org>
66359
66360         * modules/safe-read: Add m4/ssize_t.m4.
66361         * modules/xreadlink: Add m4/ssize_t.m4.
66362
66363 2003-06-20  Bruno Haible  <bruno@clisp.org>
66364
66365         Assume C89, so PARAMS isn't needed.
66366         * lib/unicodeio.h (PARAMS): Remove.
66367         * lib/unicodeio.c: Don't use PARAMS.
66368
66369 2003-06-18  Karl Berry  <karl@gnu.org>
66370
66371         * config/config.{guess,sub}: update from prep.
66372
66373 2003-06-18  Jim Meyering  <jim@meyering.net>
66374
66375         Merge changes from coreutils.
66376         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
66377         Remove explicit declarations of xmalloc and realloc.
66378         Include xalloc.h.
66379         (read_utmp): Remove anachronistic cast of xmalloc.
66380
66381 2003-06-17  Paul Eggert  <eggert@twinsun.com>
66382
66383         Assume C89, so PARAMS isn't needed.
66384         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
66385         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
66386         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
66387         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
66388         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
66389         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
66390         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
66391         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
66392         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
66393         lib/xstrtod.h, lib/xstrtol.h: Likewise.
66394         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
66395         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
66396         no longer needed. Anyway, config.h should always be included before any
66397         other file.
66398
66399 2003-06-11  Simon Josefsson  <jas@extundo.com>
66400
66401         * modules/sysexits: New file.
66402         * MODULES.html.sh (func_all_modules): Add sysexits.
66403
66404 2003-06-11  Simon Josefsson  <jas@extundo.com>
66405
66406         * lib/sysexit_.h: New file.
66407
66408 2003-06-11  Derek Price  <derek@ximbiot.com>
66409
66410         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
66411         necessary.
66412
66413 2003-06-11  Bruno Haible  <bruno@clisp.org>
66414
66415         * m4/sysexits.m4: New file.
66416
66417 2003-06-10  Simon Josefsson  <jas@extundo.com>
66418
66419         * lib/argp.h: New file, from glibc.
66420         * lib/argp-ba.c: New file, from glibc.
66421         * lib/argp-eexst.c: New file, from glibc.
66422         * lib/argp-fmtstream.c: New file, from glibc.
66423         * lib/argp-fmtstream.h: New file, from glibc.
66424         * lib/argp-fs-xinl.c: New file, from glibc.
66425         * lib/argp-help.c: New file, from glibc.
66426         * lib/argp-namefrob.h: New file, from glibc.
66427         * lib/argp-parse.c: New file, from glibc.
66428         * lib/argp-pv.c: New file, from glibc.
66429         * lib/argp-pvh.c: New file, from glibc.
66430         * lib/argp-xinl.c: New file, from glibc.
66431
66432 2003-06-10  Simon Josefsson  <jas@extundo.com>
66433
66434         * modules/strchrnul: New file.
66435
66436 2003-06-10  Simon Josefsson  <jas@extundo.com>
66437
66438         * modules/argp: New file.
66439
66440 2003-06-10  Simon Josefsson  <jas@extundo.com>
66441
66442         * m4/strchrnul.m4: New file.
66443
66444 2003-06-10  Simon Josefsson  <jas@extundo.com>
66445
66446         * lib/strchrnul.h: New file.
66447         * lib/strchrnul.c: New file.
66448
66449 2003-06-10  Bruno Haible  <bruno@clisp.org>
66450
66451         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
66452
66453 2003-06-07  Karl Berry  <karl@gnu.org>
66454
66455         * config/config.{guess,sub}: update from prep.
66456
66457 2003-06-07  Jim Meyering  <jim@meyering.net>
66458
66459         * modules/strtod: Use $(...) notation, not @...@ for
66460         AC_REPLACE'd variables.
66461         * modules/localcharset: Likewise.
66462
66463 2003-06-07  Jim Meyering  <jim@meyering.net>
66464
66465         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
66466         in place of my name in the copyright comment.
66467         Remove definition and uses of __P.
66468
66469         From coreutils.
66470         * lib/stat.c: Don't declare xmalloc explicitly.
66471         Instead, include "xalloc.h".
66472         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
66473         xrealloc, and xcalloc return values.
66474         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
66475         Improve comment.
66476         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
66477
66478 2003-06-07  Bruno Haible  <bruno@clisp.org>
66479
66480         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
66481         avoid AC_CONFIG_LINKS.
66482         * modules/fnmatch (Makefile.am): Use explicit creation rule for
66483         fnmatch.h, to avoid AC_CONFIG_LINKS.
66484         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
66485
66486 2003-06-07  Bruno Haible  <bruno@clisp.org>
66487
66488         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
66489         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
66490         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
66491         directory.
66492         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
66493         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
66494         directory.
66495
66496 2003-06-06  Jim Meyering  <jim@meyering.net>
66497
66498         Merge from coreutils.
66499         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
66500         Consolidate declarations and initializations of *_base* locals.
66501
66502         Merge from coreutils.
66503         This avoids a core dump on systems without GNU putenv,
66504         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
66505         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
66506         (unsetenv): New static function, from GNU libc.
66507         (rpl_putenv): Use it.
66508
66509         * lib/modechange.c: Remove trailing blanks.
66510
66511         Merge from coreutils.
66512         * lib/fsusage.c: Remove declaration of statfs.
66513         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
66514
66515         * lib/posixtm.c: Include <stdbool.h> unconditionally.
66516
66517 2003-06-06  Jim Meyering  <jim@meyering.net>
66518
66519         * lib/stdbool_.h: Renamed from stdbool.h.in.
66520
66521 2003-06-06  Jim Meyering  <jim@meyering.net>
66522             Bruno Haible  <bruno@clisp.org>
66523
66524         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
66525         Adjust Makefile.am snippet not to redirect directly to target.
66526         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
66527
66528 2003-06-05  Paul Eggert  <eggert@twinsun.com>
66529
66530         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
66531         mismatch, look in future quarters as well as past.  This fixes a
66532         bug when processing fall-backwards gaps immediately after a long
66533         period of daylight-saving time.
66534
66535         * lib/mktime.c: Assume freestanding C89 or better.
66536         (HAVE_LIMITS_H): Remove.  Assume it's 1.
66537         (__P): Remove; not used.
66538         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
66539         (mktime, not_equal_tm, print_tm, check_result,
66540         main): Use prototypes.  Use const * where appropriate.
66541         (main): Fix typo in testing code that uncovered by above changes.
66542         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
66543
66544 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66545
66546         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
66547         locale.h, localeconv.  This merges changes from coreutils.
66548
66549         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
66550         It can be removed after the next Autoconf is released.
66551         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
66552         needed.
66553
66554 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66555
66556         * lib/mktime.c: Fix Debian bug 177940
66557         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
66558         (localtime_offset): Now long int, not time_t, because we want it
66559         to be guaranteed to be signed.  All uses changed.
66560         (__mktime_internal): If overflow would occur when adding offset,
66561         don't add it.
66562
66563         Merge 'human' changes from coreutils.  Rewrite to support
66564         locale-specific notations like thousands separators.
66565         * lib/human.c: Simplify authorship notice.
66566         Include human.h immediately after config.h.
66567         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
66568         <limits.h>: Do not include, since human.h does.
66569         (SIZE_MAX, UINTMAX_MAX): New macros.
66570         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
66571         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
66572         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
66573         (power_letter): Renamed from suffixes.
66574         (generate_suffix_backwards): Remove.
66575         (adjust_value): Now takes int style (because of human.h changes)
66576         and long double value (for greater precision on some platforms).
66577         (group_number): New function.
66578         (human_readable): Use it.  Use integer options, not enum.
66579         Put the options before the sizes in the arg list.
66580         Support all the new options.
66581         The old human_readable function has been removed;
66582         use inttostr.h instead.
66583         (human_readable, default_block_size, humblock):
66584         Use uintmax_t, not int, for block sizes.
66585         (human_readable_inexact, block_size_types): Remove.
66586         (block_size_opts): New constant.
66587         (human_options): Renamed from human_block_size, with new signature
66588         that allows block sizes up to UINTMAX_MAX.  All callers changed.
66589         * lib/human.h: Add copyright and authorship notice.
66590         Include <limits.h> and <stdbool.h> unconditionally.
66591         (PARAMS): Remove.  All uses removed.
66592         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
66593         (enum human_inexact_style): Remove tag; now a nameless enum.
66594         (human_floor, human_ceiling, human_round_to_even): Now have
66595         values 2, 0, 1 rather than -1, 1, 0.
66596         (human_group_digits, human_suppress_point_zero, human_autoscale,
66597         human_base_1024, human_SI, human_B): New constants.
66598         (human_readable_inexact, human_block_size): Remove.
66599         (human_readable): Size args are now uintmax_t, not int.
66600         (human_options): New decl.
66601
66602         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
66603         unnecessary now that we assume C89 or better.  This change
66604         imported from coreutils.
66605
66606         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
66607         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
66608         in the 2003-05-30 sync from glibc.
66609
66610         .h files should stand alone, but we shouldn't include <sys/types.h>
66611         if we can get away with just <stddef.h>.
66612
66613         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
66614         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
66615         rather than <sys/types.h>, as we merely need size_t.
66616         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
66617         to get size_t.
66618         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
66619         Include <stdio.h>, to get FILE.
66620         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
66621         memcasecmp.h has included <stddef.h> and all we need is size_t.
66622         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
66623         our interface, instead of including <sys/types.h>
66624
66625 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66626
66627         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
66628         now, as glibc mktime is buggy on non-glibc systems.
66629
66630 2003-06-03  Karl Berry  <karl@gnu.org>
66631
66632         * config/config.sub: update from prep.
66633
66634 2003-06-02  Paul Eggert  <eggert@twinsun.com>
66635
66636         [from coreutils]
66637         Fix some minor time-related bugs with POSIX time arguments.
66638         Some valid time stamps were being rejected (notably -1, and
66639         time stamps before 1900 on 64-bit hosts).  And some invalid
66640         time stamps were being accepted, e.g. September 31.
66641
66642         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
66643         that we can return (time_t) -1 successfully.
66644         * lib/posixtm.c: Likewise.
66645         [HAVE_STDBOOL_H]: Include <stdbool.h>.
66646         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
66647         (t): Remove static var.
66648         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
66649         of static var.  All uses changed.
66650         (year): Do not reject years before 1900; they can occur with
66651         64-bit time_t.
66652         (posix_time_parse): Do not check for out-of-range components;
66653         that is now the caller's responsibility, since our checks were
66654         only approximations.
66655         (posixtime): Use mktime to check for out-of-range components,
66656         since it knows them exactly.
66657         If mktime returns (time_t) -1, check whether an error actually occurred
66658         by invoking localtime on -1.
66659         (main) [TEST_POSIXTIME]: Check for input data errors, and report
66660         posixtime failures better.
66661         Improve the test data (in comments only).
66662
66663 2003-06-02  Karl Berry  <karl@gnu.org>
66664
66665         * config/mkinstalldirs (version): new variable.
66666         (--version): new option.
66667         (usage): improve message.
66668
66669 2003-05-30  Karl Berry  <karl@gnu.org>
66670
66671         * lib/mktime.c: update from libc.
66672
66673 2003-05-30  Bruno Haible  <bruno@clisp.org>
66674
66675         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
66676         * config/config.rpath: Upgrade to gettext-0.12.1.
66677
66678 2003-05-30  Bruno Haible  <bruno@clisp.org>
66679
66680         * m4/gettext.m4: Upgrade to gettext-0.12.1.
66681         * m4/nls.m4: New file, from gettext-0.12.1.
66682         * m4/po.m4: New file, from gettext-0.12.1.
66683         * m4/progtest.m4: Upgrade to gettext-0.12.1.
66684
66685 2003-05-30  Bruno Haible  <bruno@clisp.org>
66686
66687         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
66688         * lib/localcharset.h: Likewise.
66689         * lib/localcharset.c: Likewise.
66690
66691 2003-05-29  Karl Berry  <karl@gnu.org>
66692
66693         * config/config.rpath: update from gettext.
66694
66695 2003-05-28  Paul Eggert  <eggert@twinsun.com>
66696
66697         Assume the headers required for C89 freestanding compilers.
66698         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
66699         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
66700         * m4/human.m4 (gl_HUMAN): Likewise.
66701         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
66702         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
66703         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66704         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
66705         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66706         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
66707
66708 2003-05-28  Paul Eggert  <eggert@twinsun.com>
66709
66710         Assume the headers required for C89 freestanding compilers.
66711         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
66712         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
66713         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
66714         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
66715         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
66716         define, since <limits.h> is guaranteed to do that.
66717         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
66718         * lib/exclude.c: Include <stdbool.h> unconditionally.
66719         * lib/tempname.c: Include <stddef.h> unconditionally.
66720         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
66721         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
66722         <stddef.h> does that.
66723         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
66724         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
66725         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
66726         needed.
66727         * lib/xstrtol.c: Likewise.
66728         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
66729         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
66730
66731         * lib/addext.c (addext): Use assignment rather than cast, to avoid
66732         warnings on some platforms.
66733
66734         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
66735         arbitrarily.
66736
66737 2003-05-26  Jim Meyering  <jim@meyering.net>
66738
66739         Merge in a change from coreutils:
66740         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
66741         that is guaranteed to be `no'.  Use `no_such_member' to indicate
66742         that condition, rather than `-1' which is slightly misleading.
66743         Change the name of the cache variable to have the gl_ prefix.
66744         Prompted by a patch from Richard Dawe for DJGPP.
66745
66746 2003-05-24  Karl Berry  <karl@gnu.org>
66747
66748         * config/config.guess: update from prep.
66749
66750 2003-05-22  Karl Berry  <karl@gnu.org>
66751
66752         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
66753
66754 2003-05-20  Karl Berry  <karl@gnu.org>
66755
66756         * config/config.guess: update from prep.
66757
66758 2003-05-18  Karl Berry  <karl@gnu.org>
66759
66760         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
66761         might actually be set by the user.
66762
66763         * config/depcomp, install-sh, mdate-sh: update from automake.
66764
66765 2003-05-17  Bruno Haible  <bruno@clisp.org>
66766
66767         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
66768         invalid expansion for AC_EGREP_CPP.
66769         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
66770         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
66771         Suggested by Akim Demaille <akim@epita.fr> in
66772         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
66773
66774 2003-05-12  Jim Meyering  <jim@meyering.net>
66775
66776         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
66777         the space-padded-by-default conversion specifiers, %e, %k, %l.
66778
66779 2003-05-12  Bruno Haible  <bruno@clisp.org>
66780
66781         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
66782         the string is longer than 4 KB.
66783
66784 2003-05-11  Karl Berry  <karl@gnu.org>
66785
66786         * config/config.{guess,sub}: update from prep.
66787
66788 2003-05-09  Bruno Haible  <bruno@clisp.org>
66789
66790         * modules/error: Add m4/strerror_r.m4 to file list.
66791
66792 2003-05-03  Bruno Haible  <bruno@clisp.org>
66793
66794         Upgrade to Unicode-4.0.
66795         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
66796         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
66797         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
66798         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
66799         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
66800         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
66801         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
66802         Change width of U+E0100..U+E01EF from 1 to 0.
66803
66804 2003-04-25  Jim Meyering  <jim@meyering.net>
66805
66806         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
66807         of type size_t, not int.
66808
66809 2003-04-25  Bruno Haible  <bruno@clisp.org>
66810
66811         * lib/copy-file.c: Include <stddef.h>, for size_t.
66812
66813 2003-04-21  Paul Eggert  <eggert@twinsun.com>
66814
66815         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
66816         code which expansion is under static control.  Patch imported from
66817         Akim Demaille's patch to Bison; see
66818         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
66819
66820 2003-04-14  Bruno Haible  <bruno@clisp.org>
66821
66822         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
66823
66824 2003-04-11  Jim Meyering  <jim@meyering.net>
66825
66826         Merge changes from Coreutils.
66827
66828         2003-03-22  Jim Meyering  <jim@meyering.net>
66829
66830         * lib/strftime.c (widen): Cast alloca return value to proper type.
66831
66832         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
66833
66834         From GNU libc.
66835         * lib/strftime.c (my_strftime): Handle very large width
66836         specifications for numeric values correctly.  Improve checks for
66837         overflow.
66838
66839         2003-01-19  Jim Meyering  <jim@meyering.net>
66840
66841         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
66842         definitions.
66843         (nl_get_alt_digit) [! defined my_strftime]: Define.
66844         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
66845         _nl_get_alt_digit and _nl_get_walt_digit.
66846
66847         * lib/strftime.c (my_strftime): Merge in locale-related changes from
66848         libc. These changes have no effect outside of _LIBC.
66849
66850 2003-04-10  Bruno Haible  <bruno@clisp.org>
66851
66852         * modules/findprog: New file.
66853         * MODULES.html.sh (func_all_modules): Add it.
66854
66855 2003-04-10  Bruno Haible  <bruno@clisp.org>
66856
66857         * m4/findprog.m4: New file.
66858         * m4/eaccess.m4: New file.
66859
66860 2003-04-10  Bruno Haible  <bruno@clisp.org>
66861
66862         * lib/findprog.h: New file, from GNU gettext.
66863         * lib/findprog.c: New file, from GNU gettext.
66864
66865 2003-04-05  Jim Meyering  <jim@meyering.net>
66866
66867         Merge changes from Coreutils.
66868
66869         * lib/exclude.h (PARAMS): Remove definition and uses.
66870         * lib/exclude.c: Remove uses of `PARAMS'.
66871
66872         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
66873         Add test-cases for DOS filenames. Declare program_name.
66874         (main): Set up program_name.  Patch by Rich Dawe.
66875
66876         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
66877         error from mntctl.
66878         Use mntctl's return value to drive the entry-processing loop, since
66879         we can't rely on the value of the vmt_length member in the last
66880         entry.  On some systems doing so could result in exhausting
66881         virtual memory.  Based in part on a patch from Mike Jetzer.
66882
66883 2003-04-04  Bruno Haible  <bruno@clisp.org>
66884
66885         * modules/linebreak: New file.
66886         * MODULES.html.sh (func_all_modules): Add it.
66887
66888 2003-04-04  Bruno Haible  <bruno@clisp.org>
66889
66890         * m4/linebreak.m4: New file.
66891
66892 2003-04-04  Bruno Haible  <bruno@clisp.org>
66893
66894         * lib/linebreak.h: New file, from GNU gettext.
66895         * lib/linebreak.c: New file, from GNU gettext with slight
66896         modifications.
66897         * lib/lbrkprop.h: New file, from GNU gettext.
66898
66899 2003-04-03  Bruno Haible  <bruno@clisp.org>
66900
66901         * modules/utf8-ucs4: New file.
66902         * modules/utf16-ucs4: New file.
66903         * modules/ucs4-utf8: New file.
66904         * modules/ucs4-utf16: New file.
66905         * MODULES.html.sh (func_all_modules): Add them.
66906
66907 2003-04-03  Bruno Haible  <bruno@clisp.org>
66908
66909         * m4/utf-ucs4.m4: New file.
66910         * m4/ucs4-utf.m4: New file.
66911
66912 2003-04-03  Bruno Haible  <bruno@clisp.org>
66913
66914         * lib/utf8-ucs4.h: New file, from GNU gettext.
66915         * lib/utf16-ucs4.h: New file, from GNU gettext.
66916         * lib/ucs4-utf8.h: New file, from GNU gettext.
66917         * lib/ucs4-utf16.h: New file, from GNU gettext.
66918
66919 2003-04-02  Bruno Haible  <bruno@clisp.org>
66920
66921         * modules/binary-io: New file.
66922         * MODULES.html.sh (func_all_modules): Add it.
66923
66924 2003-04-02  Bruno Haible  <bruno@clisp.org>
66925
66926         * lib/binary-io.h: New file, from GNU gettext.
66927
66928 2003-04-01  Bruno Haible  <bruno@clisp.org>
66929
66930         * modules/pathname: New file.
66931         * MODULES.html.sh (func_all_modules): Add it.
66932
66933 2003-04-01  Bruno Haible  <bruno@clisp.org>
66934
66935         * lib/pathname.h: New file, from GNU gettext.
66936         * lib/concatpath.c: New file, from GNU gettext.
66937
66938 2003-03-30  Bruno Haible  <bruno@clisp.org>
66939
66940         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
66941
66942 2003-03-30  Bruno Haible  <bruno@clisp.org>
66943
66944         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
66945         function chown() doesn't exist.
66946
66947 2003-03-28  Bruno Haible  <bruno@clisp.org>
66948
66949         * modules/copy-file: New file.
66950         * MODULES.html.sh (func_all_modules): Add it.
66951
66952 2003-03-28  Bruno Haible  <bruno@clisp.org>
66953
66954         * m4/copy-file.m4: New file.
66955
66956 2003-03-28  Bruno Haible  <bruno@clisp.org>
66957
66958         * lib/copy-file.h: New file, from GNU gettext.
66959         * lib/copy-file.c: New file, from GNU gettext.
66960
66961 2003-03-18  Jim Meyering  <jim@meyering.net>
66962
66963         * lib/quote.c (quote_n): Fix typo in comment.
66964
66965 2003-03-18  Bruno Haible  <bruno@clisp.org>
66966
66967         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
66968         checking.
66969         * m4/onceonly_2_57.m4: Likewise.
66970
66971 2003-03-17  Bruno Haible  <bruno@clisp.org>
66972
66973         * m4/onceonly.m4: Require autoconf 2.54 or newer.
66974         (m4_quote): Remove macro.
66975         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
66976
66977 2003-03-14  Jim Meyering  <jim@meyering.net>
66978
66979         Merge changes from Coreutils.
66980         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
66981         to be const, in order to avoid warnings.
66982         (obstack_room): Likewise.
66983         (obstack_empty_p): Likewise.
66984
66985 2003-03-14  Bruno Haible  <bruno@clisp.org>
66986
66987         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
66988         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
66989
66990 2003-03-13  Paul Eggert  <eggert@twinsun.com>
66991
66992         Merge changes from Bison.
66993         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
66994         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
66995         when compiling Bison 1.875's `bitset bset = obstack_alloc
66996         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
66997         * lib/hash.c: Include <stdbool.h> unconditionally.
66998
66999 2003-03-13  Paul Eggert  <eggert@twinsun.com>
67000
67001         * m4/onceonly.m4 (m4_quote): New macro.
67002         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
67003         Quote AC_FOREACH variable-expansions properly.
67004
67005 2003-03-13  Paul Eggert  <eggert@twinsun.com>
67006
67007         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
67008
67009 2003-03-09  Paul Eggert  <eggert@twinsun.com>
67010
67011         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
67012         Reported by Bruce Becker; see:
67013         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
67014
67015 2003-03-03  Paul Eggert  <eggert@twinsun.com>
67016             Bruno Haible  <bruno@clisp.org>
67017
67018         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
67019         Reported by John Hughes, see
67020         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
67021
67022 2003-02-20  Bruno Haible  <bruno@clisp.org>
67023
67024         * MODULES.html.sh (func_all_modules): Add poll.
67025
67026 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67027
67028         * modules/poll: New file.
67029
67030 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67031
67032         * lib/poll_.h: New file.
67033         * lib/poll.c: New file.
67034
67035 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67036
67037         * m4/poll.m4: New file.
67038
67039 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67040
67041         * modules/mathl: New file.
67042
67043 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67044
67045         * lib/mathl.h: New file.
67046         * lib/acosl.c: New file.
67047         * lib/asinl.c: New file.
67048         * lib/atanl.c: New file.
67049         * lib/ceill.c: New file.
67050         * lib/cosl.c: New file.
67051         * lib/expl.c: New file.
67052         * lib/floorl.c: New file.
67053         * lib/frexpl.c: New file.
67054         * lib/ldexpl.c: New file.
67055         * lib/logl.c: New file.
67056         * lib/sincosl.c: New file.
67057         * lib/sinl.c: New file.
67058         * lib/sqrtl.c: New file.
67059         * lib/tanl.c: New file.
67060         * lib/trigl.c: New file.
67061         * lib/trigl.h: New file.
67062
67063 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67064
67065         * m4/mathl.m4: New file.
67066
67067 2003-02-18  Bruno Haible  <bruno@clisp.org>
67068
67069         * MODULES.html.sh (func_all_modules): Add mathl.
67070
67071 2003-02-17  Bruno Haible  <bruno@clisp.org>
67072
67073         * modules/mkdtemp: New module.
67074         * MODULES.html.sh (func_all_modules): Add it.
67075
67076 2003-02-17  Bruno Haible  <bruno@clisp.org>
67077
67078         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
67079
67080 2003-02-17  Bruno Haible  <bruno@clisp.org>
67081
67082         * lib/mkdtemp.h: New file, from GNU gettext.
67083         * lib/mkdtemp.c: New file, from GNU gettext.
67084
67085 2003-02-02  Jim Meyering  <jim@meyering.net>
67086
67087         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
67088         e.g. glibc-2.2.93.
67089
67090 2003-01-31  Bruno Haible  <bruno@clisp.org>
67091
67092         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
67093         'rpl_rename'.
67094         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
67095         'rpl_strnlen'.
67096         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
67097         'rpl_strtod'.
67098         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
67099         'rpl_utime'.
67100
67101 2003-01-31  Bruno Haible  <bruno@clisp.org>
67102
67103         * lib/rename.c: #undef rename before defining rpl_rename.
67104         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
67105
67106 2003-01-30  Bruno Haible  <bruno@clisp.org>
67107
67108         * modules/vasnprintf, modules/vasprintf: New modules.
67109         * MODULES.html.sh (func_all_modules): Add them.
67110
67111 2003-01-30  Bruno Haible  <bruno@clisp.org>
67112
67113         * m4/signed.m4: New file, from GNU gettext.
67114         * m4/longdouble.m4: New file, from GNU gettext.
67115         * m4/wchar_t.m4: New file, from GNU gettext.
67116         * m4/wint_t.m4: New file, from GNU gettext.
67117         * m4/vasnprintf.m4: New file.
67118         * m4/vasprintf.m4: New file.
67119
67120 2003-01-30  Bruno Haible  <bruno@clisp.org>
67121
67122         * lib/printf-args.h: New file, from GNU gettext.
67123         * lib/printf-args.c: New file, from GNU gettext.
67124         * lib/printf-parse.h: New file, from GNU gettext.
67125         * lib/printf-parse.c: New file, from GNU gettext.
67126         * lib/vasnprintf.h: New file, from GNU gettext.
67127         * lib/vasnprintf.c: New file, from GNU gettext.
67128         * lib/asnprintf.c: New file, from GNU gettext.
67129         * lib/vasprintf.h: New file, from GNU gettext with modifications.
67130         * lib/vasprintf.c: New file, from GNU gettext.
67131         * lib/asprintf.c: New file, from GNU gettext.
67132
67133 2003-01-29  Bruno Haible  <bruno@clisp.org>
67134
67135         * modules/stpncpy: New module.
67136         * MODULES.html.sh (func_all_modules): Add it.
67137
67138 2003-01-29  Bruno Haible  <bruno@clisp.org>
67139
67140         * m4/stpncpy.m4: New file.
67141
67142 2003-01-29  Bruno Haible  <bruno@clisp.org>
67143
67144         * lib/stpncpy.h: New file, from GNU gettext with modifications.
67145         * lib/stpncpy.c: New file, from GNU gettext with modifications.
67146
67147 2003-01-28  Bruno Haible  <bruno@clisp.org>
67148
67149         * modules/c-ctype: New module.
67150         * MODULES.html.sh (func_all_modules): Add it.
67151
67152 2003-01-28  Bruno Haible  <bruno@clisp.org>
67153
67154         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
67155         Paul Eggert.
67156         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
67157         Paul Eggert.
67158
67159 2003-01-27  Bruno Haible  <bruno@clisp.org>
67160
67161         * modules/xsetenv: New module.
67162         * MODULES.html.sh (func_all_modules): Add it.
67163
67164 2003-01-27  Bruno Haible  <bruno@clisp.org>
67165
67166         * lib/xsetenv.h: New file, from GNU gettext.
67167         * lib/xsetenv.c: New file, from GNU gettext.
67168
67169 2003-01-23  Jim Meyering  <jim@meyering.net>
67170
67171         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
67172         from working on systems without dirfd (at least Irix and OSF1/Tru64).
67173
67174 2003-01-23  Bruno Haible  <bruno@clisp.org>
67175
67176         * modules/minmax: New module.
67177         * MODULES.html.sh (func_all_modules): Add it.
67178
67179 2003-01-23  Bruno Haible  <bruno@clisp.org>
67180
67181         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
67182         Eggert.
67183
67184 2003-01-22  Bruno Haible  <bruno@clisp.org>
67185
67186         * modules/exit: New module.
67187         * MODULES.html.sh (func_all_modules): Add it.
67188
67189 2003-01-22  Bruno Haible  <bruno@clisp.org>
67190
67191         * lib/exit.h: New file, from GNU gettext.
67192
67193 2003-01-19  Bruno Haible  <bruno@clisp.org>
67194
67195         * gnulib-tool: Recognize option --extract-maintainer.
67196         (func_get_maintainer): New function.
67197         * modules/*: Add Maintainer entry.
67198
67199 2003-01-16  Jim Meyering  <jim@meyering.net>
67200
67201         * m4/regex.m4: The `regex' struct is both input and output.
67202         Initialize it before each use.  Patch by Tim Waugh.
67203
67204 2003-01-16  Bruno Haible  <bruno@clisp.org>
67205
67206         * MODULES.html.sh: Add a table of contents. Add the module name as
67207         leftmost column. Add hyperlinks.
67208
67209 2003-01-15  Bruno Haible  <bruno@clisp.org>
67210
67211         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
67212
67213 2003-01-15  Bruno Haible  <bruno@clisp.org>
67214
67215         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
67216         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
67217         suffix.
67218
67219 2003-01-15  Bruno Haible  <bruno@clisp.org>
67220
67221         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
67222
67223 2003-01-15  Bruno Haible  <bruno@clisp.org>
67224
67225         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
67226         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
67227
67228 2003-01-14  Jim Meyering  <jim@meyering.net>
67229
67230         * lib/same.c (same_name): Tweak a comment.
67231
67232 2003-01-14  Bruno Haible  <bruno@clisp.org>
67233
67234         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
67235         when a string comparison is sufficient.
67236
67237 2003-01-14  Bruno Haible  <bruno@clisp.org>
67238
67239         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
67240         'unsigned int'.
67241
67242 2003-01-14  Bruno Haible  <bruno@clisp.org>
67243
67244         * lib/hash-pjw.c: Add comment about low quality of this function.
67245
67246 2003-01-13  Bruno Haible  <bruno@clisp.org>
67247
67248         * modules/stpcpy: Distribute lib/stpcpy.h.
67249         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
67250
67251 2003-01-13  Bruno Haible  <bruno@clisp.org>
67252
67253         * modules/*: Add a description.
67254         * modules/strpbrk: Fix Makefile.am snippet.
67255         * modules/strtoimax: Fix dependencies.
67256         * modules/strtoumax: Likewise.
67257
67258 2003-01-13  Bruno Haible  <bruno@clisp.org>
67259
67260         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
67261         * modules/alloca (Makefile.am): All object files depend on alloca.h.
67262         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
67263
67264 2003-01-13  Bruno Haible  <bruno@clisp.org>
67265
67266         * gnulib-tool (func_create_testdir): Store config/* files in the main
67267         directory.
67268         * config.rpath: Move to ...
67269         * config/config.rpath: ... here.
67270         * modules/gettext: Contains config/config.rpath, not config.rpath.
67271         * modules/iconv: Likewise.
67272
67273 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67274
67275         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67276         to avoid collisions with libcurses and libreadline.
67277
67278         * m4/getstr.m4: Remove.
67279         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
67280
67281 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67282
67283         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67284         to avoid collisions with libcurses and libreadline.
67285
67286         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
67287         * lib/getstr.h, getstr.c: Remove.
67288         * lib/getline.c: Include "getline.h", to check interface.
67289         Move body of old getstr.c here: this defines MIN_CHUNK and
67290         declares getdelim2, which is renamed from getstr.
67291         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
67292
67293         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
67294         All uses changed.
67295         * lib/linebuffer.h: Likewise.
67296         (readline): Remove backward-compatibility macro.
67297
67298 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67299
67300         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67301         to avoid collisions with libcurses and libreadline.
67302         * getstr: Remove.
67303         * MODULES.html.sh: Remove getstr.
67304         * modules/getline: Depend on unlocked-io, not getstr.
67305
67306 2003-01-12  Jim Meyering  <jim@meyering.net>
67307
67308         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
67309
67310 2003-01-10  Bruno Haible  <bruno@clisp.org>
67311
67312         * modules/alloca: Change Makefile.am requirements. Simplify Include
67313         requirements. Add lib/alloca_.h to file list.
67314
67315 2003-01-10  Bruno Haible  <bruno@clisp.org>
67316
67317         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
67318
67319 2003-01-10  Bruno Haible  <bruno@clisp.org>
67320
67321         * lib/alloca_.h: New file.
67322         * lib/getdate.y: Unconditionally include alloca.h.
67323         * lib/makepath.c: Likewise.
67324         * lib/setenv.c: Likewise.
67325         * lib/userspec.c: Likewise.
67326
67327 2003-01-09  Karl Berry  <karl@gnu.org>
67328
67329         * MODULES.html.sh: include `dirname $0` in PATH, to find
67330         gnulib-tool.
67331
67332 2003-01-09  Bruno Haible  <bruno@clisp.org>
67333
67334         * modules/stdbool: Change configure.ac, Makefile.am requirements.
67335         Simplify Include requirements. Add lib/stdbool.h.in to file list.
67336
67337 2003-01-09  Bruno Haible  <bruno@clisp.org>
67338
67339         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
67340
67341 2003-01-09  Bruno Haible  <bruno@clisp.org>
67342
67343         * lib/stdbool.h.in: New file.
67344
67345 2003-01-09  Bruno Haible  <bruno@clisp.org>
67346
67347         * gnulib-tool (func_all_modules): Ignore files ending in ~.
67348         * MODULES.html.sh: Likewise.
67349
67350 2003-01-08  Jim Meyering  <jim@meyering.net>
67351
67352         * lib/full-write.c: Undefine and define-away `const' after inclusion
67353         of errno.h, not before.  Suggestion from Bruno Haible.
67354
67355 2003-01-08  Bruno Haible  <bruno@clisp.org>
67356
67357         * modules/full-read: Depend on full-write.
67358
67359 2003-01-08  Bruno Haible  <bruno@clisp.org>
67360
67361         * lib/safe-read.c: Include specification header first, to ensure its
67362         selfcontainedness.
67363         * lib/full-write.c: Likewise.
67364
67365 2003-01-07  Jim Meyering  <jim@meyering.net>
67366
67367         * lib/full-write.c: Rework so that it may serve to define full_read,
67368         too.
67369         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
67370
67371 2003-01-07  Bruno Haible  <bruno@clisp.org>
67372
67373         * lib/strtoimax.c: Include <stdint.h> as an alternative to
67374         <inttypes.h>.
67375         * lib/xstrtol.h: Likewise.
67376         * lib/xstrtoimax.c: Likewise.
67377         * lib/xstrtoumax.c: Likewise.
67378         * lib/human.h: Likewise.
67379
67380         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
67381         on systems that have <inttypes.h> but not <stdint.h>.
67382
67383 2003-01-07  Bruno Haible  <bruno@clisp.org>
67384
67385         * MODULES.html.sh: Add copyright notice.
67386         (missed_files): Omit CVS directory entries.
67387         (func_module): Make it work with sed-3.02.
67388         * MODULES.txt: Remove file.
67389
67390 2003-01-06  Jim Meyering  <jim@meyering.net>
67391
67392         * lib/version-etc.c: Update year in translatable copyright string.
67393
67394 2003-01-03  Karl Berry  <karl@gnu.org>
67395
67396         * config/config.{guess,sub}: update from prep.
67397
67398 2003-01-02  Karl Berry  <karl@gnu.org>
67399
67400         * doc/COPYING.DOC: belatedly updated to 1.2.
67401
67402 2003-01-01  Karl Berry  <karl@gnu.org>
67403
67404         * gnulib-tool (func_verify_module): report module name $module in
67405         error message, not $1.
67406         * gnulib-tool (create-testdir): don't complain if destdir couldn't
67407         be created, only if it doesn't exist.
67408         * gnulib-tool (last_checkin_date): don't expand the $Date here.
67409
67410 2002-12-31  Paul Eggert  <eggert@twinsun.com>
67411
67412         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
67413
67414 2002-12-31  Paul Eggert  <eggert@twinsun.com>
67415
67416         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
67417         memcmp if strcoll doesn't work.
67418
67419 2002-12-31  Bruno Haible  <bruno@clisp.org>
67420
67421         * lib/utime.c (utime_null): No need to call ftruncate if the file was
67422         nonempty.
67423
67424 2002-12-31  Bruno Haible  <bruno@clisp.org>
67425
67426         * lib/memcoll.c (STRCOLL): New macro.
67427         (memcoll): Use it.
67428
67429 2002-12-31  Bruno Haible  <bruno@clisp.org>
67430
67431         * lib/localcharset.h: New file.
67432         * lib/localcharset.c: Include it.
67433         * lib/unicodeio.c: Likewise.
67434
67435 2002-12-31  Bruno Haible  <bruno@clisp.org>
67436
67437         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
67438         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
67439
67440 2002-12-31  Bruno Haible  <bruno@clisp.org>
67441
67442         * lib/getline.h: Include <stddef.h>, for size_t.
67443
67444         * lib/unicodeio.h: Include <stddef.h>, for size_t.
67445         * lib/unicodeio.c: Don't include <stddef.h>.
67446
67447 2002-12-31  Bruno Haible  <bruno@clisp.org>
67448
67449         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
67450         HAVE_TM_ZONE.
67451
67452 2002-12-24  Karl Berry  <karl@gnu.org>
67453
67454         * config/config.guess: update from prep.
67455
67456 2002-12-24  Bruno Haible  <bruno@clisp.org>
67457
67458         General infrasructure.
67459         * m4/README: Rewritten.
67460         * m4/onceonly.m4: New file.
67461         * m4/onceonly_2_57.m4: New file.
67462
67463         Module atexit.
67464         * m4/atexit.m4: New file.
67465
67466         Module strtod.
67467         * m4/strtod.m4: New file.
67468
67469         Module strtol.
67470         * m4/strtol.m4: New file.
67471
67472         Module strtoul.
67473         * m4/strtoul.m4: New file.
67474
67475         Module memchr.
67476         * m4/memchr.m4: New file.
67477
67478         Module memcmp.
67479         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
67480         (jm_FUNC_MEMCMP): Invoke it.
67481
67482         Module memcpy.
67483         * m4/memcpy.m4: New file.
67484
67485         Module memmove.
67486         * m4/memmove.m4: New file.
67487
67488         Module memset.
67489         * m4/memset.m4: New file.
67490
67491         Module strcspn.
67492         * m4/strcspn.m4: New file.
67493
67494         Module strpbrk.
67495         * m4/strpbrk.m4: New file.
67496
67497         Module strstr.
67498         * m4/strstr.m4: New file.
67499
67500         Module strerror.
67501         * m4/strerror.m4: New file.
67502
67503         Module mktime.
67504         * m4/mktime.m4: Renamed from jm-mktime.m4.
67505         (gl_PREREQ_MKTIME): New macro.
67506         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
67507
67508         Module malloc.
67509         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
67510         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
67511         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
67512
67513         Module realloc.
67514         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
67515         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
67516         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
67517
67518         Module strftime.
67519         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
67520         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
67521         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
67522         gl_TM_GMTOFF.
67523         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
67524
67525         Module xalloc.
67526         * m4/xalloc.m4: New file.
67527
67528         Module alloca.
67529         * m4/alloca.m4: New file.
67530
67531         Module putenv.
67532         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
67533         (jm_FUNC_PUTENV): Invoke it.
67534
67535         Module setenv.
67536         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
67537         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
67538         when invoked twice.
67539         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
67540         gt_FUNC_SETENV.
67541
67542         Module memrchr.
67543         * m4/memrchr.m4: New file.
67544
67545         Module stpcpy.
67546         * m4/stpcpy.m4: New file.
67547
67548         Module strcase.
67549         * m4/strcase.m4: New file.
67550
67551         Module strdup.
67552         * m4/strdup.m4: New file.
67553
67554         Module strnlen.
67555         * m4/strnlen.m4: New file.
67556
67557         Module strndup.
67558         * m4/strndup.m4: New file.
67559
67560         Module xstrtod.
67561         * m4/xstrtod.m4: New file.
67562
67563         Module xstrtol.
67564         * m4/xstrtol.m4: New file.
67565
67566         Module getdate.
67567         * m4/getdate.m4: New file.
67568
67569         Module unlocked-io.
67570         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
67571         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
67572         * m4/jm-glibc-io.m4n: Remove file.
67573
67574         Module long-options.
67575         * m4/long-options.m4: New file.
67576
67577         Module md5.
67578         * m4/md5.m4: New file.
67579
67580         Module sha.
67581         * m4/sha.m4: New file.
67582
67583         Module getstr.
67584         * m4/getstr.m4: New file.
67585
67586         Module getline.
67587         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
67588         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
67589         <sys/types.h>, for size_t. Use the function name gnu_getline, not
67590         simply getline. Infoke gl_PREREQ_GETLINE.
67591
67592         Module obstack.
67593         * m4/obstack.m4: New file.
67594
67595         Module hash.
67596         * m4/hash.m4: New file.
67597
67598         Module readtokens.
67599         * m4/readtokens.m4: New file.
67600
67601         Module strverscmp.
67602         * m4/strverscmp.m4: New file.
67603
67604         Module stdbool.
67605         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
67606         OSF/1.
67607
67608         Module strtoll.
67609         * m4/strtoll.m4: New file.
67610
67611         Module strtoull.
67612         * m4/strtoull.m4: New file.
67613
67614         Module strtoimax.
67615         * m4/strtoimax.m4: New file.
67616
67617         Module strtoumax.
67618         * m4/strtoumax.m4: New file.
67619
67620         Module xstrtoimax.
67621         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
67622         jm_AC_PREREQ_XSTRTOIMAX.
67623         Moved the strtol prerequisites to strtol.m4.
67624         Moved the strtoll prerequisites to strtoll.m4.
67625         Moved the strtoimax prerequisites to strtoimax.m4.
67626
67627         Module xstrtoumax.
67628         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
67629         jm_AC_PREREQ_XSTRTOUMAX.
67630         Moved the strtoul prerequisites to strtoul.m4.
67631         Moved the strtoull prerequisites to strtoull.m4.
67632         Moved the strtoumax prerequisites to strtoumax.m4.
67633
67634         Module chown.
67635         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
67636         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
67637
67638         Module dup2.
67639         * m4/dup2.m4: New file.
67640
67641         Module ftruncate.
67642         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
67643         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
67644
67645         Module getgroups.
67646         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
67647         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
67648
67649         Module gettimeofday.
67650         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
67651         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
67652         gl_PREREQ_GETTIMEOFDAY.
67653
67654         Module mkdir.
67655         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
67656         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
67657
67658         Module mkstemp.
67659         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
67660         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
67661         jm_AC_TYPE_UINTMAX_T.
67662         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
67663
67664         Module stat.
67665         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
67666         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
67667
67668         Module lstat.
67669         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
67670         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
67671
67672         Module timespec.
67673         * m4/timespec.m4 (gl_TIMESPEC): New macro.
67674         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
67675         * m4/st_mtim.m4: Indentation.
67676
67677         Module nanosleep.
67678         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
67679         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
67680         gl_PREREQ_NANOSLEEP.
67681
67682         Module regex.
67683         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
67684         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
67685         (gl_REGEX): New macro.
67686
67687         Module rename.
67688         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
67689         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
67690
67691         Module rmdir.
67692         * m4/rmdir.m4: New file.
67693
67694         Module utime.
67695         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
67696         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
67697         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
67698
67699         Module dirname.
67700         * m4/dirname.m4: New file.
67701
67702         Module getopt.
67703         * m4/getopt.m4: New file.
67704
67705         Module unistd-safer.
67706         * m4/unistd-safer.m4: New file.
67707
67708         Module fnmatch.
67709         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
67710         declaration.
67711         (gl_PREREQ_FNMATCH_EXTRA): New macro.
67712         (gl_FUNC_FNMATCH_POSIX): New macro.
67713         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
67714         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
67715         simply fnmatch.
67716
67717         Module exclude.
67718         * m4/exclude.m4: New file.
67719
67720         Module human.
67721         * m4/human.m4: New file.
67722
67723         Module acl.
67724         * m4/acl.m4: Nop.
67725
67726         Module backupfile.
67727         * m4/backupfile.m4: New file.
67728         * m4/d-ino.m4: Indentation.
67729
67730         Module fsusage.
67731         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
67732         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
67733         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
67734
67735         Module dirfd.
67736         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
67737         requirements.
67738
67739         Module euidaccess.
67740         * m4/euidaccess.m4: New file.
67741
67742         Module file-type.
67743         * m4/file-type.m4: New file.
67744
67745         Module fileblocks.
67746         * m4/fileblocks.m4: New file.
67747
67748         Module filemode.
67749         * m4/filemode.m4: New file.
67750
67751         Module isdir.
67752         * m4/isdir.m4: New file.
67753
67754         Module lchown.
67755         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
67756         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
67757
67758         Module makepath.
67759         * m4/makepath.m4: New file.
67760
67761         Module modechange.
67762         * m4/modechange.m4: New file.
67763
67764         Module mountlist.
67765         * m4/mountlist.m4: New file.
67766         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
67767         Indentation.
67768
67769         Module path-concat.
67770         * m4/path-concat.m4: New file.
67771
67772         Module pathmax.
67773         * m4/pathmax.m4: New file.
67774
67775         Module same.
67776         * m4/same.m4: New file.
67777
67778         Module save-cwd.
67779         * m4/save-cwd.m4: New file.
67780
67781         Module savedir.
67782         * m4/savedir.m4: New file.
67783
67784         Module xgetcwd.
67785         * m4/xgetcwd.m4: New file.
67786         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
67787
67788         Module xreadlink.
67789         * m4/xreadlink.m4: New file.
67790
67791         Module safe-read.
67792         * m4/safe-read.m4: New file.
67793
67794         Module safe-write.
67795         * m4/safe-write.m4: New file.
67796
67797         Module closeout.
67798         * m4/closeout.m4: New file.
67799
67800         Module stdio-safer.
67801         * m4/stdio-safer.m4: New file.
67802
67803         Module getpass.
67804         * m4/getpass.m4: New file.
67805
67806         Module getugroups.
67807         * m4/getugroups.m4: New file.
67808
67809         Module group-member.
67810         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
67811         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
67812
67813         Module idcache.
67814         * m4/idcache.m4: New file.
67815
67816         Module userspec.
67817         * m4/userspec.m4: New file.
67818
67819         Module gettime.
67820         * m4/clock_time.m4: New file.
67821         * m4/gettime.m4: New file.
67822
67823         Module settime.
67824         * m4/settime.m4: New file.
67825
67826         Module posixtm.
67827         * m4/posixtm.m4: New file.
67828
67829         Module gethostname.
67830         * m4/gethostname.m4: New file.
67831
67832         Module canon-host.
67833         * m4/canon-host.m4: New file.
67834
67835         Module gettext.
67836         * m4/codeset.m4: New file, from gettext-0.11.5.
67837         * m4/gettext.m4: New file, from gettext-0.11.5.
67838         * m4/glibc21.m4: New file, from gettext-0.11.5.
67839         * m4/iconv.m4: New file, from gettext-0.11.5.
67840         * m4/intdiv0.m4: New file, from gettext-0.11.5.
67841         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
67842         * m4/inttypes.m4: New file, from gettext-0.11.5.
67843         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
67844         * m4/isc-posix.m4: New file, from gettext-0.11.5.
67845         * m4/lcmessage.m4: New file, from gettext-0.11.5.
67846         * m4/lib-ld.m4: New file, from gettext-0.11.5.
67847         * m4/lib-link.m4: New file, from gettext-0.11.5.
67848         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
67849         * m4/progtest.m4: New file, from gettext-0.11.5.
67850         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
67851         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
67852         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
67853
67854         Module localcharset.
67855         * m4/localcharset.m4: New file.
67856
67857         Module hard-locale.
67858         * m4/hard-locale.m4: New file.
67859
67860         Module mbswidth.
67861         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
67862         onceonly macros.
67863         * m4/mbrtowc.m4: Add comment.
67864
67865         Module memcasecmp.
67866         * m4/memcasecmp.m4: New file.
67867
67868         Module memcoll.
67869         * m4/memcoll.m4: New file.
67870
67871         Module unicodeio.
67872         * m4/unicodeio.m4: New file.
67873
67874         Module rpmatch.
67875         * m4/rpmatch.m4: New file.
67876
67877         Module yesno.
67878         * m4/yesno.m4: New file.
67879
67880         Module exitfail.
67881         * m4/exitfail.m4: New file.
67882
67883         Module c-stack.
67884         * m4/c-stack.m4 (gl_C_STACK): New macro.
67885         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
67886
67887         Module error.
67888         * m4/error.m4 (gl_ERROR): New macro.
67889         (jm_PREREQ_ERROR): Use onceonly macros.
67890
67891         Module fatal.
67892         * m4/fatal.m4: New file.
67893
67894         Module getloadavg.
67895         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
67896         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
67897
67898         Module getpagesize.
67899         * m4/getpagesize.m4: New file.
67900
67901         Module getusershell.
67902         * m4/getusershell.m4: New file.
67903
67904         Module physmem.
67905         * m4/physmem.m4: New file.
67906
67907         Module posixver.
67908         * m4/posixver.m4: New file.
67909
67910         Module quotearg.
67911         * m4/quotearg.m4: New file.
67912
67913         Module quote.
67914         * m4/quote.m4: New file.
67915
67916         Module readutmp.
67917         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
67918
67919         Module sig2str.
67920         * m4/sig2str.m4: New file.
67921
67922         Other.
67923         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
67924         ulonglong.m4.
67925         * m4/intmax_t.m4: New file.
67926         * m4/d-type.m4: Indentation.
67927         * m4/jm-macros.m4: Update.
67928         * m4/prereq.m4 (jm_PREREQ): Update.
67929         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
67930         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
67931         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
67932         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
67933         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
67934         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
67935         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
67936         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
67937         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
67938         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
67939         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
67940         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
67941         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
67942         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
67943         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
67944         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
67945         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
67946         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
67947         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
67948
67949 2002-12-24  Bruno Haible  <bruno@clisp.org>
67950
67951         * MODULES.txt: Update according to m4/ changes.
67952
67953         Module gettext.
67954         * config.rpath: New file, from gettext-0.11.5.
67955
67956         * modules/*: New module descriptions.
67957         * gnulib-tool: New file.
67958         * MODULES.html.sh: New file.
67959
67960 2002-12-21  Karl Berry  <karl@gnu.org>
67961
67962         * doc/fdl.texi: update to version 1.2.
67963
67964 2002-12-19  Karl Berry  <karl@gnu.org>
67965
67966         * config/config.guess: update from prep.
67967
67968 2002-12-18  Bruno Haible  <bruno@clisp.org>
67969
67970         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
67971         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
67972
67973 2002-12-17  Bruno Haible  <bruno@clisp.org>
67974
67975         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
67976         stdlib.h, string.h.
67977
67978 2002-12-17  Bruno Haible  <bruno@clisp.org>
67979
67980         * lib/canon-host.c (strdup): Remove unused declaration.
67981
67982         * lib/fsusage.c: Include full_read.h.
67983         (get_fs_usage): Use full_read instead of safe_read.
67984
67985         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
67986
67987 2002-12-12  Karl Berry  <karl@gnu.org>
67988
67989         * config/config.guess: update from prep.
67990
67991 2002-12-11  Bruno Haible  <bruno@clisp.org>
67992
67993         * m4/setenv.m4: New file, from gettext-0.11.5.
67994
67995 2002-12-11  Bruno Haible  <bruno@clisp.org>
67996
67997         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
67998         not unsetenv().
67999         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
68000         modifications:
68001
68002         2002-12-11  Bruno Haible  <bruno@clisp.org>
68003
68004                 * setenv.c (alloca): Fall back to malloc.
68005                 (freea): New macro.
68006                 (setenv): Use freea() to free memory allocated with alloca().
68007
68008         2002-11-13  Bruno Haible  <bruno@clisp.org>
68009
68010                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
68011                 function declarations.
68012                 * unsetenv.c (unsetenv): Likewise.
68013
68014         2002-03-04  Bruno Haible  <bruno@clisp.org>
68015
68016                 Portability to AIX 4.3.3.
68017                 * unsetenv.c: New file, extracted from setenv.c.
68018                 * setenv.c: Move the unsetenv() function to unsetenv.c.
68019
68020         2001-12-20  Bruno Haible  <bruno@clisp.org>
68021
68022                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
68023                 use malloc instead. For SunOS 4.
68024
68025         2001-12-11  Bruno Haible  <bruno@clisp.org>
68026
68027                 * setenv.c: Declare alloca.
68028                 (compar_fn_t): New typedef.
68029                 (KNOWN_VALUE, STORE_VALUE): Use it.
68030
68031         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
68032         setenv.h.
68033
68034 2002-12-10  Paul Eggert  <eggert@twinsun.com>
68035
68036         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
68037         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
68038         Choose values that are less likely to collide with system fnmatch
68039         options.
68040         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
68041         defined (e.g., a pure POSIX system).
68042         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
68043         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
68044
68045 2002-12-06  Paul Eggert  <eggert@twinsun.com>
68046
68047         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
68048         a pain in practice to deal with generated m4 files.  This change
68049         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
68050
68051         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
68052         and jm-glibc-io.m4, as they are no longer a special case.
68053         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
68054         kludge and the auto-generation stuff.  Check only whether the
68055         functions are declared, not whether they exist, since older hosts
68056         that don't declare the functions can't use the optimization anyway.
68057
68058 2002-12-06  Jim Meyering  <jim@meyering.net>
68059
68060         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
68061
68062         Merge in changes from libc's misc/error.c, in preparation
68063         for the merge of gnulib's changes back into libc.
68064
68065         * lib/error.c (_): Define only if not already defined.
68066         Move definition to follow all #include directives.
68067         Include unlocked-io.h only if !_LIBC.
68068         [_LIBC]: Include <libio/libioP.h>.
68069         [USE_IN_LIBIO]: Include <libio/iolibio.h>
68070         (fflush): Tweak definition to use INTUSE.
68071         (putc): Define.
68072
68073 2002-12-05  Paul Eggert  <eggert@twinsun.com>
68074
68075         * lib/alloca.c [defined emacs]: Include "lisp.h".
68076         (xalloc_die) [defined emacs]: New macro.
68077         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
68078         [! defined emacs]: Include <xalloc.h>.
68079         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
68080         (pointer): Typedef to POINTER_TYPE *.
68081         (malloc): Remove decl; we now always use xmalloc.
68082         (alloca): Use old-style definition, since Emacs needs this.
68083         Check for arithmetic overflow when computing combined size.
68084
68085 2002-12-04  Paul Eggert  <eggert@twinsun.com>
68086
68087         Do not generate unlocked-io.h automatically, since it's easier to
68088         maintain it by hand.
68089
68090         * lib/unlocked-io.h: New file, from GNU diffutils,
68091         but with proper copyright notice and attribution.
68092         * lib/gen-uio: Remove.
68093         * lib/Makefile.am: Add copyright notice.
68094         (libfetish_a_SOURCES): Add unlocked-io.h.
68095         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
68096         (DISTCLEANFILES, io_functions): Remove macros.
68097         (EXTRA_DIST): Remove gen_uio.
68098         (unlocked-io.h): Remove rule.
68099
68100 2002-12-04  Jim Meyering  <jim@meyering.net>
68101
68102         Reflect the fact that stat.c and lstat.c are no longer generated.
68103         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
68104         (DISTCLEANFILES): Likewise.
68105         (EXTRA_DIST): Likewise.
68106         (all_local): Don't depend on stat.c or lstat.c.
68107         (stat.c, lstat.c): Remove rules.
68108         (EXTRA_DIST): Remove xstat.in.
68109
68110         * lib/xstat.in: Remove file.  Contents moved into stat.c.
68111         * lib/stat.c: New file.  Contents mostly from xstat.in.
68112         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
68113         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
68114
68115         * lib/safe-read.c: Rework so that it may serve to define safe_write,
68116         too.
68117         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
68118
68119 2002-12-03  Jim Meyering  <jim@meyering.net>
68120
68121         * lib/safe-read.c, safe-write.c: Change variable names and comments,
68122         but not semantics, to minimize the differences between these two files.
68123         (safe_read): Change comment to mention SAFE_READ_ERROR.
68124
68125         * lib/safe-read.c (IS_EINTR): Define.
68126         (safe_read): Use IS_EINTR in place of in-function cpp directives.
68127
68128 2002-12-02  Jim Meyering  <jim@meyering.net>
68129
68130         * lib/safe-read.c (EINTR): Define.
68131         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
68132         (INT_MAX): Provide fallback.
68133         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
68134
68135         * lib/safe-read.h (SAFE_READ_ERROR): Define.
68136
68137 2002-12-02  Bruno Haible  <bruno@clisp.org>
68138
68139         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
68140         Define, taken from safe-read.c.
68141         (INT_MAX): Provide fallback.
68142         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
68143         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
68144
68145         * lib/safe-read.c (EINTR): Remove definition.
68146         (safe_read): Don't use EINTR if it is absent.
68147
68148 2002-12-01  Jim Meyering  <jim@meyering.net>
68149
68150         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
68151         zero.
68152         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
68153
68154 2002-11-27  Paul Eggert  <eggert@twinsun.com>
68155
68156         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
68157         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
68158         with `if (! (value < limit)) abort ();', for readability.
68159
68160 2002-11-26  Karl Berry  <karl@gnu.org>
68161
68162         * lib/strdup.c: copy from libc again, with jim's ok.
68163         * lib/.cppi-disable: re-add strdup.c
68164
68165 2002-11-25  Karl Berry  <karl@gnu.org>
68166
68167         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
68168         instead of "strtol.c".
68169
68170 2002-11-25  Karl Berry  <karl@gnu.org>
68171
68172         * config/install-sh: update from automake for variable quoting, $0 in
68173         error msgs, etc.
68174
68175         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
68176         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
68177         entry.
68178
68179 2002-11-25  Jim Meyering  <jim@meyering.net>
68180
68181         * lib/mktime.c: Sync from libc, now that it has the latest fix.
68182
68183 2002-11-24  Karl Berry  <karl@gnu.org>
68184
68185         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
68186         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
68187
68188 2002-11-24  Jim Meyering  <jim@meyering.net>
68189
68190         Update from coreutils:
68191
68192         * lib/mktime.c: Merge in changes from libc.
68193
68194         Avoid a link-time failure on some Linux systems.
68195         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
68196         (otherwise).
68197         (__mon_yday): Declare with the STATIC attribute.
68198         (__mktime_internal): Likewise.
68199         Based on a report from Greg Schafer.
68200
68201 2002-11-23  Jim Meyering  <jim@meyering.net>
68202
68203         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
68204         Use `unsigned', not `int', as type of index.
68205
68206         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
68207
68208         * lib/fsusage.c: Remove unneeded parentheses around operands of
68209         `defined'.
68210
68211 2002-11-22  Paul Eggert  <eggert@twinsun.com>
68212
68213         * lib/quotearg.h: Allow multiple inclusion by surrounding with
68214         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
68215         so that we can be included first.
68216         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
68217         * lib/quotearg.c: Include quotearg.h immediately after config.h.
68218         No need to include stddef.h or sys/types.h any more.
68219         Surround local include files with "", not "<>".
68220         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
68221         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
68222         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
68223         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
68224         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
68225         (ISPRINT): Remove; no longer needed now that we assume C89.
68226
68227         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
68228         Preserve errno.
68229
68230         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
68231         quotearg_char): Use SIZE_MAX rather than
68232         (size_t) -1 when we are talking about "infinity".
68233
68234         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
68235
68236 2002-11-22  Paul Eggert  <eggert@twinsun.com>
68237
68238         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
68239         hint that one should use `if (! x) abort ();' rather than `assert
68240         (x);', and anyway it's one less thing to worry about configuring.
68241         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
68242         hash_rehash, hash_insert): Use abort rather than assert.
68243
68244 2002-11-22  Bruno Haible  <bruno@clisp.org>
68245
68246         * lib/safe-read.h: Assume C89. Add comments.
68247         (safe_read): Change return type to size_t.
68248         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
68249         byte counts > SSIZE_MAX correctly.
68250         * lib/safe-write.h: New file.
68251         * lib/safe-write.c: New file.
68252         * lib/full-read.h: New file.
68253         * lib/full-read.c: New file.
68254         * lib/full-write.h: Assume C89. Add comments.
68255         * lib/full-write.c: Include safe-write.h.
68256         (full_write): Rewritten to use safe_write.
68257         Suggested by Jim Meyering and Paul Eggert.
68258
68259 2002-11-21  Jim Meyering  <jim@meyering.net>
68260
68261         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
68262
68263         Merge in changes from the coreutils.
68264
68265         2002-09-25  Paul Eggert  <eggert@twinsun.com>
68266         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
68267         <stdint.h>.
68268         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
68269         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
68270         int.  Work more efficiently if X is the same width as uintmax_t.
68271         Do not compare X to -1, to avoid bogus compiler warning.
68272         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
68273         Don't assume that f_frsize and f_bsize are the same type.
68274
68275         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
68276         warning on FreeBSD.
68277
68278         * lib/makepath.c (make_path): Restore umask *before* creating the final
68279         component.
68280         (make_path): Minor reformatting.
68281
68282         * lib/xmalloc.c: Adjust to work with new autoconf macros,
68283         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
68284         HAVE_MALLOC/HAVE_REALLOC.
68285
68286         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
68287         dummy ones.  At least on GNU/Linux systems, `auto' means something
68288         else.
68289         From Michael Stone.
68290
68291 2002-11-21  Bruno Haible  <bruno@clisp.org>
68292
68293         Remove case insensitive option matching.
68294         * lib/argmatch.h (argcasematch): Remove declaration.
68295         (ARGCASEMATCH): Remove macro.
68296         (__xargmatch_internal): Remove case_sensitive argument.
68297         (XARGMATCH): Update.
68298         (XARGCASEMATCH): Remove macro.
68299         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
68300         case_sensitive argument.
68301         (argcasematch): Remove function.
68302         (__xargmatch_internal): Remove case_sensitive argument.
68303         (main): Use XARGMATCH instead of XARGCASEMATCH.
68304
68305         * lib/xmalloc.c: Change compile-time error message. Add comment about
68306         required autoconf version.
68307
68308 2002-11-20  Paul Eggert  <eggert@twinsun.com>
68309
68310         Merge argmatch cleanups from Bison.  Assume C89.
68311
68312         * lib/argmatch.c: Include config.h here, not in argmatch.h.
68313         Include stdlib.h, for EXIT_FAILURE.
68314         Always include <string.h>, since we assume C89.
68315         (EXIT_FAILURE): Remove pre-C89 bug workaround.
68316         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
68317         Include <stddef.h> instead, since it's all we need for size_t.
68318         (PARAMS): Remove.  All uses removed.
68319         (ARRAY_CARDINALITY): Do not bother to #undef.
68320         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
68321         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
68322         Remove unnecessary parentheses.
68323         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
68324         Insert necessary parentheses.
68325         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
68326         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
68327
68328 2002-11-19  Bruno Haible  <bruno@clisp.org>
68329
68330         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
68331         * lib/mbswidth.h: Include <stddef.h>, for size_t.
68332
68333         * lib/mbswidth.h (PARAMS): Remove macro.
68334         (mbswidth, mbsnwidth): Use ANSI C function declarations.
68335         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
68336
68337         * lib/gcd.h (PARAMS): Remove macro.
68338         (gcd): Use ANSI C function declarations.
68339         * lib/gcd.c (gcd): Likewise.
68340
68341 2002-11-15  Bruno Haible  <bruno@clisp.org>
68342
68343         * lib/strcspn.c: Include <stddef.h>.
68344         (strcspn): Use ANSI C function declaration. Change return type to
68345         size_t. Use NULL.
68346         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
68347         (strpbrk): Use NULL.
68348         * lib/strpbrk.h (PARAMS): Remove macro.
68349         (strpbrk): Use ANSI C function declaration.
68350         * lib/strstr.c: Don't include <sys/types.h>.
68351         * lib/strstr.h (PARAMS): Remove macro.
68352         (strstr): Use ANSI C function declarations.
68353
68354 2002-11-14  Karl Berry  <karl@gnu.org>
68355
68356         * config/mkinstalldirs: `do' on separate line, instead of
68357         `for var; do'.
68358
68359 2002-11-06  Bruno Haible  <bruno@clisp.org>
68360
68361         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
68362         * lib/gcd.c (gcd): Likewise.
68363
68364 2002-11-05  Bruno Haible  <bruno@clisp.org>
68365
68366         * lib/gcd.h: New file, from gettext-0.11.5.
68367         * lib/gcd.c: New file, from gettext-0.11.5.
68368
68369 2002-11-05  Bruno Haible  <bruno@clisp.org>
68370
68371         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68372         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68373         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68374         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68375
68376         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
68377         <libintl.h>.
68378         * lib/makepath.c: Include gettext.h instead of <locale.h> and
68379         <libintl.h>.
68380
68381         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
68382         * lib/human.c: Include gettext.h instead of <libintl.h>.
68383         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
68384         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
68385         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
68386         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
68387         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
68388         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
68389         (textdomain): Remove definition.
68390         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
68391
68392         * lib/long-options.c: Remove include of <libintl.h> and definition of
68393         _.
68394         * lib/same.c: Remove include of <libintl.h> and definition of _.
68395
68396 2002-11-04  Owen Taylor  <otaylor@redhat.com>
68397
68398         * lib/config.charset: A few additions for Solaris.
68399
68400 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
68401
68402         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
68403         * lib/localcharset.c (locale_charset): Declare as extern "C".
68404
68405 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
68406
68407         * lib/config.charset: msdos in uk_UA uses CP1125.
68408
68409 2002-11-04  Bruno Haible  <bruno@clisp.org>
68410
68411         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
68412         * lib/strcase.h: New file, from GNU gettext-0.11.5.
68413         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
68414         * lib/strstr.h: New file, from GNU gettext-0.11.5.
68415         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
68416
68417 2002-11-04  Bruno Haible  <bruno@clisp.org>
68418
68419         * lib/localcharset.c (locale_charset): Don't return an empty string.
68420
68421 2002-11-04  Bruno Haible  <bruno@clisp.org>
68422
68423         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
68424         aliases.
68425
68426 2002-11-04  Bruno Haible  <bruno@clisp.org>
68427
68428         * lib/config.charset: Update for newest glibc. Add canonical names
68429         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
68430
68431 2002-11-04  Bruno Haible  <bruno@clisp.org>
68432
68433         * lib/config.charset: Add support for NetBSD.
68434
68435 2002-11-04  Bruno Haible  <bruno@clisp.org>
68436
68437         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
68438
68439 2002-11-01  Bruno Haible  <bruno@clisp.org>
68440
68441         * configure.in: Add AC_CONFIG_AUX_DIR call.
68442         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
68443         test/Makefile.
68444         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
68445
68446 2002-09-28  Karl Berry  <karl@gnu.org>
68447
68448         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
68449         installed automake until the next release, since changes have been
68450         made.
68451
68452 2002-09-25  Karl Berry  <karl@gnu.org>
68453
68454         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
68455         * lib/getopt*: copy from libc/posix.
68456         * lib/gettext.h: copy from gettext.
68457         * lib/.cppi-disable: add strdup.c, gettext.h.
68458
68459 2002-09-25  Karl Berry  <karl@gnu.org>
68460
68461         * config/srclist.txt: enable gettext.h check.
68462         * config/config.{guess,sub}: update from prep.
68463         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
68464                 from automake 1.6.3.
68465         See srclist*.
68466
68467 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
68468
68469         * regex.c (PATFETCH): Remove the translating fetch.
68470         (PATFETCH_RAW): Rename to PATFETCH.
68471         (set_image_of_range): New fun.
68472         (SET_RANGE_TABLE_WORK_AREA): Use it.
68473         (regex_compile): Don't translate the pattern chars so eagerly.
68474         Only do it when inserting an `exactn' bytecode or when handling
68475         a char-range.
68476         (mutually_exclusive_p): Avoid empty statement.
68477
68478 2002-07-06  Jim Meyering  <meyering@lucent.com>
68479
68480         * m4/README: Don't mention Makefile.am.in.
68481         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
68482
68483 2002-07-01  Jim Meyering  <meyering@lucent.com>
68484
68485         * lib/c-stack.c: Include sys/time.h.
68486         From Volker Borchert.
68487
68488 2002-06-26  Paul Eggert  <eggert@twinsun.com>
68489
68490         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
68491
68492 2002-06-26  Paul Eggert  <eggert@twinsun.com>
68493
68494         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
68495         New macro.  Use it uniformly instead of
68496         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
68497         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
68498         reported by Vin Shelton.
68499
68500 2002-06-22  Paul Eggert  <eggert@twinsun.com>
68501
68502         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
68503         Do not assume SA_SIGINFO behavior.
68504         Bug reported by Jim Meyering on NetBSD 1.5.2.
68505
68506 2002-06-22  Jim Meyering  <meyering@lucent.com>
68507
68508         * m4/c-stack.m4: New file, from diffutils-2.8.2.
68509         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
68510
68511         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
68512         now that configure.ac uses AC_GNU_SOURCE.
68513         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
68514         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
68515
68516         Update to latest tools.  Suggestions from Paul Eggert.
68517         * m4/stdbool.m4: New file, from diffutils-2.8.2.
68518         * m4/gnu-source.m4: Update from diffutils-2.8.2.
68519         * m4/fnmatch.m4: Likewise.
68520         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
68521         to AC_HEADER_STDBOOL
68522
68523 2002-06-22  Jim Meyering  <meyering@lucent.com>
68524
68525         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
68526         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
68527
68528 2002-06-22  Jim Meyering  <meyering@lucent.com>
68529
68530         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
68531
68532         * lib/exitfail.c, exitfail.h: Likewise.
68533         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
68534
68535         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
68536         of fnmatch.h.
68537         (EXTRA_DIST): Add fnmatch_loop.c.
68538         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
68539
68540         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
68541         * lib/fnmatch.c: Update from diffutils-2.8.2.
68542         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
68543         * lib/fnmatch.h: Remove file.
68544
68545 2002-06-21  Jim Meyering  <meyering@lucent.com>
68546
68547         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
68548         * m4/mbrtowc.m4: Likewise.
68549
68550         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
68551         * m4/mbswidth.m4: Reflect name change:
68552         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
68553         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
68554
68555         * m4/lib-link.m4: Update from gettext-0.11.2.
68556         * m4/gettext.m4: Likewise.
68557
68558         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
68559         From Alfred M. Szmidt.
68560
68561 2002-06-18  Paul Eggert  <eggert@twinsun.com>
68562
68563         * lib/file-type.h: Report an error if neither S_ISREG nor
68564         S_IFREG is defined, instead of using a test specific to glibc
68565         2.2.  This should be safe, since POSIX requires S_ISREG and
68566         Unix Version 7 had S_IFREG.  We don't need to check for
68567         <sys/types.h> since we don't use any symbols that it defines.
68568
68569 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
68570
68571         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
68572         $@-t, so that each temporary file name is unique and valid in the first
68573         8 characters, for operation under DOS.
68574
68575 2002-06-15  Paul Eggert  <eggert@twinsun.com>
68576
68577         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
68578
68579 2002-06-15  Jim Meyering  <meyering@lucent.com>
68580
68581         Work even with DJGPP 2.03, which lacks support for symlinks.
68582         From Richard Dawe.
68583         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
68584         is defined.
68585         * lib/lchown.c (S_ISLNK): Likewise.
68586
68587 2002-06-15  Jim Meyering  <meyering@lucent.com>
68588
68589         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
68590         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
68591         have been included before this file.
68592
68593 2002-06-14  Jim Meyering  <meyering@lucent.com>
68594
68595         * lib/file-type.h: Use the version from diffutils-2.8.2.
68596         * lib/file-type.c: Likewise.
68597
68598 2002-06-07  Jim Meyering  <meyering@lucent.com>
68599
68600         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
68601         They're needed at least for NetBSD 1.5.2.
68602         ($statxfs_includes): Include those same headers.
68603         ($statxfs_includes): Include sys/vfs.h if available.
68604         ($statxfs_includes): Likewise for sys/statvfs.h.
68605         Check for the following members in both structs statfs and statvfs:
68606         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
68607
68608 2002-06-01  Jim Meyering  <meyering@lucent.com>
68609
68610         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
68611         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
68612
68613 2002-05-28  Jim Meyering  <meyering@lucent.com>
68614
68615         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
68616         Reported by Volker Borchert.
68617
68618 2002-05-27  Jim Meyering  <meyering@lucent.com>
68619
68620         Fix a problem seen only on nonconforming systems whereby ls.c's
68621         use of localtime, and then of gettimeofday would cause trouble:
68622         the localtime call used to initialize rpl_gettimeofday's save
68623         mechanism would clobber ls's current local time information so
68624         that in any long listing the first file would always be listed
68625         with date 1970-01-01.  Analysis by Volker Borchert.
68626
68627         * lib/gettimeofday.c (localtime): Undefine.
68628         (rpl_localtime): New function.
68629
68630 2002-05-27  Jim Meyering  <meyering@lucent.com>
68631
68632         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
68633         localtime.
68634
68635         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
68636         use the replacement function; it wouldn't resolve at link time.
68637         Reported by Volker Borchert.
68638
68639 2002-05-22  Jim Meyering  <meyering@lucent.com>
68640
68641         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
68642         file-type.h.
68643         * lib/file-type.h: New file.
68644         * lib/file-type.c (file_type): New file/function.  Extracted from
68645         diffutils.
68646
68647 2002-04-30  Jim Meyering  <meyering@lucent.com>
68648
68649         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
68650
68651 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68652
68653         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
68654
68655 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68656
68657         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
68658         Do not check for alloca.h (no longer used) or stdbool.h (was never
68659         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
68660
68661 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68662
68663         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
68664
68665 2002-04-29  Jim Meyering  <meyering@lucent.com>
68666
68667         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
68668         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
68669         Use AC_FUNC_STRNLEN here instead.
68670
68671         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
68672         With autoconf-2.53a, it's part of AC_PROG_CC.
68673
68674 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68675
68676         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
68677         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
68678
68679 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68680
68681         * lib/sig2str.h, lib/sig2str.c: New files.
68682         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
68683
68684 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68685
68686         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
68687         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
68688         of 127, since 64 is the largest conceivable number for ancient
68689         nonstandard hosts.
68690         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
68691
68692 2002-04-28  Jim Meyering  <meyering@lucent.com>
68693
68694         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
68695
68696 2002-04-24  Jim Meyering  <meyering@lucent.com>
68697
68698         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
68699         (jm_PREREQ): Use it.
68700
68701         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
68702         mach/mach.h fcntl.h.
68703         Check for this function: setlocale.
68704
68705 2002-04-24  Jim Meyering  <meyering@lucent.com>
68706
68707         * lib/gettext.h: New file, from Gettext.
68708         * lib/Makefile.am (INCLUDES): Remove -I../intl.
68709         (libfetish_a_SOURCES): Add gettext.h.
68710
68711 2002-04-16  Jim Meyering  <meyering@lucent.com>
68712
68713         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
68714         ut_pid, ut_id, ut_exit.
68715
68716 2002-04-16  Jim Meyering  <meyering@lucent.com>
68717
68718         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
68719         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
68720         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
68721
68722 2002-04-12  Jim Meyering  <meyering@lucent.com>
68723
68724         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
68725         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
68726         existence of the getmntinfo function.  Needed for Darwin 5.3.
68727
68728         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
68729         This is necessary at least on Darwin 5.3.
68730
68731         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
68732         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
68733         strnlen.o in the library, and that makes some versions of ranlib
68734         object.
68735
68736 2002-04-12  Jim Meyering  <meyering@lucent.com>
68737
68738         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
68739
68740 2002-04-09  Jim Meyering  <meyering@lucent.com>
68741
68742         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
68743         to be more precise.  Rather than saying we're checking whether the
68744         function `works', say what we're testing.
68745         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
68746         Reported by Bruno Haible.
68747
68748 2002-03-10  Jim Meyering  <meyering@lucent.com>
68749
68750         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
68751         Suggestion from Santiago Vila.
68752
68753 2002-03-08  Jim Meyering  <meyering@lucent.com>
68754
68755         * lib/rename.c: Mention that this wrapper is needed also on
68756         mips-dec-ultrix4.4 systems.
68757
68758 2002-03-02  Jim Meyering  <meyering@lucent.com>
68759
68760         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
68761         not HAVE_CLOCK_SETTIME.
68762
68763 2002-02-27  Paul Eggert  <eggert@twinsun.com>
68764
68765         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
68766         Check for clock_settime.
68767
68768 2002-02-27  Paul Eggert  <eggert@twinsun.com>
68769
68770         * lib/nanosleep.h: Rename to....
68771         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
68772
68773         * lib/gettime.c: New file.
68774         * lib/settime.c: New file.
68775         * lib/stime.c: Remove.
68776
68777         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
68778         timespec.h.  Remove nanosleep.h.
68779
68780 2002-02-25  Paul Eggert  <eggert@twinsun.com>
68781
68782         * m4/acl.m4: New file.
68783         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
68784         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
68785
68786 2002-02-25  Paul Eggert  <eggert@twinsun.com>
68787
68788         * lib/acl.c, lib/acl.h: New files.
68789         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
68790
68791 2002-02-24  Jim Meyering  <meyering@lucent.com>
68792
68793         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
68794         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
68795         cause trouble.  Reported by Nelson Beebe.
68796
68797 2002-02-23  Paul Eggert  <eggert@twinsun.com>
68798
68799         * lib/path-concat.c (xpath_concat): Reorder code to pacify
68800         compilers that don't know that xalloc_die never returns.
68801
68802 2002-02-20  Jim Meyering  <meyering@lucent.com>
68803
68804         * lib/getdate.c: Regenerate using bison-1.33.
68805
68806 2002-02-17  Jim Meyering  <meyering@lucent.com>
68807
68808         * config/config.guess (main): Don't use `head -1'; it's no longer
68809         portable. Use `sed 1q' instead.
68810
68811 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
68812
68813         * m4/codeset.m4: Upgrade to gettext-0.11.
68814         * m4/gettext.m4: Upgrade to gettext-0.11.
68815         * m4/glibc21.m4: Upgrade to gettext-0.11.
68816         * m4/iconv.m4: Upgrade to gettext-0.11.
68817         * m4/isc-posix.m4: Upgrade to gettext-0.11.
68818         * m4/lcmessage.m4: Upgrade to gettext-0.11.
68819         * m4/lib-ld.m4: New file, from gettext-0.11.
68820         * m4/lib-link.m4: New file, from gettext-0.11.
68821         * m4/lib-prefix.m4: New file, from gettext-0.11.
68822         * m4/progtest.m4: Upgrade to gettext-0.11.
68823
68824 2002-02-15  Paul Eggert  <eggert@twinsun.com>
68825
68826         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
68827         (jm_PREREQ): Use it.
68828
68829 2002-02-15  Paul Eggert  <eggert@twinsun.com>
68830
68831         * lib/posixver.c, lib/posixver.h: New files.
68832         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
68833
68834 2002-02-02  Paul Eggert  <eggert@twinsun.com>
68835             Bruno Haible  <bruno@clisp.org>
68836
68837         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
68838         (fwrite_success_callback): New declaration.
68839         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
68840         print_unicode_char. Call failure callback instead of error.
68841         (fwrite_success_callback): New function.
68842         (exit_failure_callback): New function.
68843         (fallback_failure_callback): New function.
68844         (print_unicode_char): Call unicode_to_mb.
68845
68846 2002-01-26  Jim Meyering  <meyering@lucent.com>
68847
68848         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
68849         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
68850
68851 2002-01-26  Jim Meyering  <meyering@lucent.com>
68852
68853         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
68854
68855 2002-01-22  Paul Eggert  <eggert@twinsun.com>
68856
68857         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
68858
68859 2002-01-22  Jim Meyering  <meyering@lucent.com>
68860
68861         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
68862         Otherwise, some versions of automake would omit the rule that makes
68863         Makefile from Makefile.in.
68864
68865 2002-01-21  Paul Eggert  <eggert@twinsun.com>
68866
68867         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
68868         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
68869         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
68870         (memcoll): Set errno to zero if there is no error.
68871
68872         * lib/quotearg.c (quotearg_buffer_restyled):
68873         Fix bug with quoting buffers containing NUL when backslashing escapes.
68874         This bug was exposed by the other changes in this patch.
68875         (quotearg_n_options): New arg ARGSIZE.
68876         All callers changed.
68877         (quoting_options_from_style): New function.
68878         (quotearg_n_style): Use it.
68879         (quotearg_n_style_mem): New function.
68880
68881         * lib/quotearg.h (quotearg_n_style_mem): New function.
68882
68883 2002-01-19  Jim Meyering  <meyering@lucent.com>
68884
68885         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
68886         Remove useless quotes: DF_PROG="df".
68887         * m4/strnlen.m4: New file.
68888
68889 2002-01-16  Paul Eggert  <eggert@twinsun.com>
68890
68891         * lib/backupfile.c (ISDIGIT): Comment fix.
68892         * lib/getdate.y (ISDIGIT): Likewise.
68893         * lib/posixtm.c (ISDIGIT, year): Likewise.
68894         * lib/strverscmp.c (ISDIGIT): Likewise.
68895         * lib/userspec.c (ISDIGIT): Likewise.
68896
68897 2002-01-16  Jim Meyering  <meyering@lucent.com>
68898
68899         * lib/getdate.y: Add three semicolons, each just before a closing
68900         brace. Bison (as of version 1.31) no longer papers over that mistake.
68901
68902 2002-01-05  Jim Meyering  <meyering@lucent.com>
68903
68904         * lib/version-etc.c (version_etc_copyright): Update copyright year.
68905
68906 2001-12-19  Paul Eggert  <eggert@twinsun.com>
68907
68908         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
68909         not silently exit merely because the output buffer happens to
68910         have nothing pending.
68911
68912 2001-12-18  Paul Eggert  <eggert@twinsun.com>
68913
68914         See the big note in ../ChangeLog.
68915         * lib/human.c (suffixes): Prefer K to k for 1024.
68916         (generate_suffix_backwards): New function.
68917         (human_readable_inexact): Use it.
68918         * lib/xstrtol.c (__xstrtol): If there is no number but there
68919         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
68920         Accept 'K' as well as 'k'.
68921
68922 2001-12-15  Jim Meyering  <meyering@lucent.com>
68923
68924         * lib/regex.h (__restrict_arr): Update from libc.
68925
68926         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
68927         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
68928         (STREQ): Define.
68929
68930 2001-12-14  Jim Meyering  <meyering@lucent.com>
68931
68932         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
68933         Suggestion from Bruno Haible.
68934
68935 2001-12-10  Jim Meyering  <meyering@lucent.com>
68936
68937         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
68938         xrealloc, Instead, include "xalloc.h".
68939         (initbuffer): Don't cast xmalloc return value to char*.
68940         (readline): Reword comment.
68941         Don't cast xrealloc return value to char*
68942         Return NULL, not 0.
68943
68944 2001-12-09  Jim Meyering  <meyering@lucent.com>
68945
68946         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
68947         about `signed and unsigned type in conditional expression'.
68948         * lib/posixtm.c (posix_time_parse): Likewise.
68949
68950         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
68951
68952         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
68953         to avoid a pedantic warning.
68954
68955         * lib/getstr.c: Don't include assert.h.
68956         (getstr): Remove warning-evoking assertions.
68957         Return -1 if offset parameter is out of bounds.
68958         Change the type of a local from int to size_t.
68959
68960         * lib/strftime.c (my_strftime_localtime_r): Include this function
68961         definition in the `#if ! HAVE_TM_GMTOFF' block.
68962
68963         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
68964         Include xalloc.h instead.
68965
68966 2001-12-02  Jim Meyering  <meyering@lucent.com>
68967
68968         * lib/tempname.c: Don't declare getenv, thus reverting the change of
68969         2001-11-18.  It's no longer necessary, now that stdlib.h is always
68970         included.
68971
68972         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
68973         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
68974
68975 2001-11-30  Akim Demaille  <akim@epita.fr>
68976
68977         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
68978         before being defined.
68979
68980 2001-11-27  Paul Eggert  <eggert@twinsun.com>
68981
68982         * lib/quotearg.h (quotearg_n, quotearg_n_style):
68983         First arg is int, not unsigned.
68984         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
68985         (SIZE_MAX, UINT_MAX): New macros.
68986         (quotearg_n_options): Abort if N is negative.
68987         Avoid overflow check on hosts where size_t is 64 bits and int
68988         is 32 bits, as overflow is impossible there.
68989         Fix off-by-one typo that caused unnecessary reallocation.
68990
68991 2001-11-27  Jim Meyering  <meyering@lucent.com>
68992
68993         * lib/tempname.c: Merge with version from libc.
68994         * lib/regex.c: Likewise.
68995
68996         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
68997         systems for which STDC_HEADERS is 0, it was not included, resulting in
68998         a warning about an integer-to-pointer conversion problem with getenv.
68999         Reported by Volker Borchert.
69000
69001 2001-11-26  Jim Meyering  <meyering@lucent.com>
69002
69003         * lib/gtod.h: Remove file.
69004         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
69005         * lib/gettimeofday.c: Don't include gtod.h.
69006         (GTOD_init): Remove function.
69007         (rpl_gettimeofday): Do its job here instead, rather than aborting.
69008         Suggestion from Volker Borchert.
69009
69010 2001-11-23  Jim Meyering  <meyering@lucent.com>
69011
69012         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
69013         it.
69014         * lib/hash.c (struct hash_table): Define it here instead.
69015
69016 2001-11-22  Jim Meyering  <meyering@lucent.com>
69017
69018         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
69019
69020 2001-11-20  Jim Meyering  <meyering@lucent.com>
69021
69022         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
69023         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
69024
69025 2001-11-19  Jim Meyering  <meyering@lucent.com>
69026
69027         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
69028         directory.  Use "conftestXXXXXX" as the template.
69029         Suggestion from Paul Eggert.
69030
69031         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
69032         immediately, so the test doesn't mistakenly hit the max-open-files
69033         limit.
69034
69035 2001-11-18  Paul Eggert  <eggert@twinsun.com>
69036
69037         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
69038         (TEMPORARIES): New macro.
69039         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
69040         removes an artificial limitation (e.g. HP-UX 10.20, where
69041         TMP_MAX is 17576).
69042
69043 2001-11-18  Jim Meyering  <meyering@lucent.com>
69044
69045         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
69046
69047 2001-11-18  Jim Meyering  <meyering@lucent.com>
69048
69049         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
69050         on SunOS 4.
69051
69052         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
69053         files will be created before anything else.
69054
69055 2001-11-17  Paul Eggert  <eggert@twinsun.com>
69056
69057         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
69058         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
69059
69060 2001-11-17  Jim Meyering  <meyering@lucent.com>
69061
69062         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
69063         Prompted by a report from Bob Proulx.
69064
69065         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
69066         Instead, require UTILS_FUNC_MKSTEMP.
69067
69068 2001-11-17  Jim Meyering  <meyering@lucent.com>
69069
69070         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
69071         Now, that's done as part of AC_FUNC_STRTOD.
69072
69073 2001-11-17  Jim Meyering  <meyering@lucent.com>
69074
69075         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
69076         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
69077         rather than group writable.  Patch by Juan F. Codagnone.
69078
69079         * lib/readtokens.c: Remove explicit declarations of xmalloc and
69080         xrealloc, Instead, include "xalloc.h".
69081
69082         * lib/mountlist.c: Include unlocked-io.h after all system headers.
69083         Remove explicit declarations of xmalloc, xrealloc,
69084         and xstrdup.  Instead, include "xalloc.h".
69085
69086         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
69087         unlocked-io.h.
69088         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
69089         Likewise.
69090         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
69091
69092         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
69093         Reported by Padraig Brady.
69094
69095         * lib/mkstemp.c: #undef mkstemp.
69096         Include config.h.
69097         (rpl_mkstemp): Rename from mkstemp.
69098         Protoize.
69099
69100 2001-11-16  Jim Meyering  <meyering@lucent.com>
69101
69102         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
69103         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
69104         determine the amount of total physical memory, use pstat_getstatic.
69105         HPUX-11 doesn't define _SC_PHYS_PAGES.
69106         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
69107         If sysconf couldn't be used to determine the amount of available
69108         physical memory, use both pstat_getstatic and pstat_getdynamic.
69109         Based on a patch from Bob Proulx.
69110
69111 2001-11-10  Jim Meyering  <meyering@lucent.com>
69112
69113         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
69114         (jm_PREREQ): Use it.
69115
69116 2001-11-09  Jim Meyering  <meyering@lucent.com>
69117
69118         * m4/jm-macros.m4: Require autoconf-2.52f.
69119         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
69120         Use these AC_-prefixed names, not the AM_-prefixed ones.
69121
69122         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
69123
69124 2001-11-05  Jim Meyering  <meyering@lucent.com>
69125
69126         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
69127
69128 2001-11-04  Jim Meyering  <meyering@lucent.com>
69129
69130         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
69131         $DEFS.
69132
69133 2001-11-03  Jim Meyering  <meyering@lucent.com>
69134
69135         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
69136         of AC_DEFUN.
69137
69138         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
69139         know the name of the variable in the macro definition.
69140
69141 2001-11-03  Jim Meyering  <meyering@lucent.com>
69142
69143         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
69144         in argmatch_to_argument call.
69145
69146         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
69147         argument.
69148
69149         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
69150         e.g., a fault due to an attempt to free a NULL pointer.
69151
69152 2001-11-01  Jim Meyering  <meyering@lucent.com>
69153
69154         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
69155         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
69156
69157 2001-11-01  Jim Meyering  <meyering@lucent.com>
69158
69159         * lib/dirfd.c, lib/dirfd.h: New files.
69160         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
69161
69162         * lib/hash.c (hash_print) [TESTING]: Clean up.
69163
69164 2001-10-22  Paul Eggert  <eggert@twinsun.com>
69165
69166         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
69167         to avoid a warning if -Wall.
69168
69169 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
69170
69171         * README: New file
69172         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
69173         (per RMS's instructions, this is now the canonical source)
69174         * lgpl/, gpl/: New directories.
69175
69176 2001-10-21  Paul Eggert  <eggert@twinsun.com>
69177
69178         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
69179
69180 2001-10-21  Jim Meyering  <meyering@lucent.com>
69181
69182         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
69183         this code would end up calling gettext even in packages built
69184         with --disable-nls.
69185         * lib/getopt.c (_): Likewise.
69186         * lib/regex.c (_): Likewise.
69187
69188 2001-10-20  Paul Eggert  <eggert@twinsun.com>
69189
69190         * m4/error.m4 (jm_PREREQ_ERROR):
69191         Do not invoke AC_CHECK_FUNCS with strerror_r, as
69192         AC_FUNC_STRERROR_R does that.
69193         Check for strerror declaration.
69194
69195         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
69196         are supposed to have them these days.
69197         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
69198         Merge changes from latest Autoconf CVS.
69199         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
69200         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
69201         POSIX decided to standardize on the int flavor of strerror_r.
69202
69203 2001-10-20  Paul Eggert  <eggert@twinsun.com>
69204
69205         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
69206         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
69207         Use strerror_r that is only a macro, even if it is not a function.
69208         (strerror): Check for HAVE_DECL_STRERROR before declaring.
69209         (private_strerror): Use prototypes, not old-style function definition.
69210         (print_errno_message): New function.
69211         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
69212         char*-flavored one.
69213         (error_tail, error, error_at_line): Use it.
69214
69215 2001-10-11  Jim Meyering  <meyering@lucent.com>
69216
69217         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
69218         and quote_n (1, ... to avoid clobbering a buffer.
69219
69220 2001-10-05  Jim Meyering  <meyering@lucent.com>
69221
69222         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
69223         hash-pjw.h.
69224         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
69225         * lib/hash-pjw.h: New file.
69226
69227 2001-09-30  Jim Meyering  <meyering@lucent.com>
69228
69229         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
69230         `struct fsstat' has the `f_fstypename' member.
69231         Use that to define FS_TYPE, which is now used to make
69232         the getfsstat link test tighter.
69233
69234 2001-09-30  Jim Meyering  <meyering@lucent.com>
69235
69236         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
69237         Include <sys/ucred.h>, for Apple Darwin.
69238         Include sys/mount.h and sys/fs_types.h only if available.
69239         (FS_TYPE): Define.
69240         (read_filesystem_list): Use FS_TYPE.
69241
69242 2001-09-29  Paul Eggert  <eggert@twinsun.com>
69243
69244         * lib/exclude.c (excluded_filename): 0 -> false, since it's
69245         a boolean context.
69246
69247 2001-09-29  Jim Meyering  <meyering@lucent.com>
69248
69249         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
69250         [one-argument getmntent function]): Include stdio.h before mntent.h.
69251         SunOS 4.1.x needs it for the declaration of `FILE'.
69252         Patch by Volker Borchert.
69253
69254         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
69255         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
69256         sys/fs_types.h, and make the link-test for getfsstat guard #include
69257         directives with appropriate #if HAVE_*_H tests so that we can
69258         detect getfsstat on Apple Darwin1.3.7 systems.
69259         Reported by Nelson Beebe.
69260         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
69261
69262 2001-09-28  Paul Eggert  <eggert@twinsun.com>
69263
69264         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
69265         #defines strtoimax.  Also treat the other strto* functions
69266         like strtoimax.
69267
69268         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
69269         Check for strtoul and strtoumax,
69270         as those declarations are made even in the signed case.
69271         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
69272         Likewise, for strtol and strtoimax.
69273
69274 2001-09-28  Paul Eggert  <eggert@twinsun.com>
69275
69276         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
69277         #defines strtoimax.  Also treat the other strto* functions
69278         like strtoimax.
69279
69280         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
69281         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
69282         (strtoimax, strtoumax): Do not declare if already defined as a macro.
69283
69284 2001-09-26  Jim Meyering  <meyering@lucent.com>
69285
69286         Most macros in unlocked-io.h had the wrong number of arguments.
69287         * lib/gen-uio: New script.
69288         (USE_UNLOCKED_IO): Define to 1 if not already defined.
69289         * lib/unlocked-io.hin: Remove file.
69290         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
69291         rather than trying to embed it here.
69292         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
69293         Reported by Padraig Brady.
69294
69295 2001-09-25  Volker Borchert  <bt@teknon.de>
69296
69297         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
69298         `result'.
69299
69300 2001-09-24  Jim Meyering  <meyering@lucent.com>
69301
69302         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
69303
69304 2001-09-23  Jim Meyering  <meyering@lucent.com>
69305
69306         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
69307         instead of the mere test for existence of mntent.h.  The latter
69308         would get a false-positive on AIX 3.4 systems.
69309         In the outer getmntent if-block, don't die if neither of the getmntent
69310         tests succeeds.  Instead, just fall through and continue with the
69311         remaining tests.
69312
69313 2001-09-23  Jim Meyering  <meyering@lucent.com>
69314
69315         * lib/mountlist.c: Remove useless parentheses in #if directives.
69316         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
69317         the deprecated MOUNTED symbol is no longer defined in mntent.h.
69318
69319 2001-09-22  Jim Meyering  <meyering@lucent.com>
69320
69321         * m4/gettext.m4: New file.  From gettext.
69322         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
69323         * m4/progtest.m4: Likewise
69324         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
69325         * m4/glibc21.m4: Likewise.
69326
69327         * m4/libintl.m4: Remove.  No longer used.
69328
69329 2001-09-22  Jim Meyering  <meyering@lucent.com>
69330
69331         * lib/localcharset.c: Update from latest gettext.
69332         * lib/config.charset: Likewise.
69333
69334 2001-09-20  Jim Meyering  <meyering@lucent.com>
69335
69336         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
69337         strtoimax.
69338         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
69339         strtoumax.
69340
69341 2001-09-20  Jim Meyering  <meyering@lucent.com>
69342
69343         * lib/xstrtol.c (strtoimax): Guard declaration with
69344         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
69345         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
69346         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
69347         (strtoumax): Likewise, for completeness (it wasn't necessary).
69348
69349 2001-09-17  Paul Eggert  <eggert@twinsun.com>
69350
69351         * lib/strtoimax.c (HAVE_LONG_LONG):
69352         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
69353         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
69354         to work around bug in IBM C compiler.
69355
69356 2001-09-17  Jim Meyering  <meyering@lucent.com>
69357
69358         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
69359         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
69360         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
69361         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
69362         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
69363         whenever the right hand side need not be expanded by the shell.
69364
69365 2001-09-16  Paul Eggert  <eggert@twinsun.com>
69366
69367         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
69368         library.  It's not correct, as some older glibcs are buggy.
69369         fnmatch wasn't fixed until glibc 2.2.
69370
69371         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
69372         special shell magic here.
69373
69374 2001-09-16  Jim Meyering  <meyering@lucent.com>
69375
69376         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
69377         * m4/jm-macros.m4: Require it.
69378
69379 2001-09-16  Jim Meyering  <meyering@lucent.com>
69380
69381         * lib/mkdir.c: New file.
69382
69383 2001-09-15  Jim Meyering  <meyering@lucent.com>
69384
69385         * m4/jm-macros.m4: Check for help2man.
69386
69387 2001-09-11  Jim Meyering  <meyering@lucent.com>
69388
69389         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
69390         The body, by Paul Eggert, was moved here from configure.in.
69391         * m4/jm-macros.m4: Require UTILS_HOST_OS.
69392
69393 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69394
69395         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
69396         (jm_PREREQ): Use it.
69397
69398 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69399
69400         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
69401         Use ssize_t, not int, to store result of readlink.
69402         Check for ssize_t overflow as well as size_t overflow,
69403         as POSIX says the result of readlink is implementation-defined
69404         when ssize_t overflows.
69405         Remove unnecessary cast to char*.
69406         Use free+malloc instead of realloc, as the storage doesn't need
69407         to be preserved and it's clearer and can be more efficient that way.
69408         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
69409         * lib/xreadlink.h (xreadlink): Update prototype.
69410
69411 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69412
69413         * lib/xgetcwd.c: Revert some of the previous change; intead,
69414         fix the HAVE_GETCWD_NULL code to behave more like the
69415         !HAVE_GETCWD_NULL code used to.
69416
69417         Include "xalloc.h".
69418         (xgetcwd): Do not return NULL when memory is exhausted; instead,
69419         invoke xalloc_die.
69420
69421 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69422
69423         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
69424         sys/param.h, as pathmax.h includes them.
69425
69426 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69427
69428         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
69429         (jm_PREREQ_XGETCWD): New macro.
69430
69431         * m4/getcwd.m4: New file.
69432
69433 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69434
69435         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
69436         like the HAVE_GETCWD_NULL code.
69437         Include pathmax.h if not HAVE_GETCWD.
69438         Do not include xalloc.h.
69439         (INITIAL_BUFFER_SIZE): New symbol.
69440         Do not use xmalloc / xrealloc, since the caller is responsible for
69441         handling errors.  Preserve errno around `free' during failure.
69442         Do not overrun buffer when using getwd.
69443
69444 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69445
69446         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
69447         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
69448         getcwd (NULL, 0).
69449
69450 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69451
69452         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
69453         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
69454         spotted by Jim Meyering.
69455
69456 2001-09-03  Jim Meyering  <meyering@lucent.com>
69457
69458         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
69459         failure.
69460
69461 2001-09-02  Jim Meyering  <meyering@lucent.com>
69462
69463         * lib/error.c: Update from GNU libc.
69464
69465 2001-09-01  Jim Meyering  <meyering@lucent.com>
69466
69467         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
69468         Used by df.
69469
69470 2001-09-01  Jim Meyering  <meyering@lucent.com>
69471
69472         * lib/xreadlink.c: New file.
69473         * lib/xreadlink.h: New file.
69474         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
69475         xreadlink.h.
69476
69477         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
69478         doesn't conflict with sparc Solaris 7's definition in
69479         /usr/include/sys/int_types.h.
69480
69481         * lib/exclude.c: Use `""', not `<>' to #include non-system header
69482         files.
69483         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
69484         and strncasecmp as r-values.  Unixware didn't have declarations.
69485
69486 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69487
69488         * lib/xstrtol.h: Add copyright notice.
69489         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
69490         LONGINT_INVALID_SUFFIX_CHAR.
69491
69492 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69493
69494         * lib/xstrtol.c (strtoimax): New decl.
69495
69496 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69497
69498         * lib/xgetcwd.c: Don't include pathmax.h.
69499         Include stdlib.h and unistd.h if available.
69500         Include xalloc.h.
69501         (xmalloc, xstrdup, free): Remove decls.
69502         (xgetcwd): Don't assume sizes fit in unsigned.
69503         Check for overflow when computing sizes.
69504         Simplify reallocation code.
69505
69506 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69507
69508         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
69509         a directory's st_size can have an arbitrary value, so the old
69510         usage could waste an arbitrary amount of memory.  All uses
69511         changed.
69512         * lib/savedir.h: Update prototype.
69513
69514 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69515
69516         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
69517
69518         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
69519         old strtoimax.c.
69520
69521         Also, make the following further changes to make this file's
69522         configuration more similar to that of strtol.c:
69523         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
69524         (strtoumax, uintmax_t, strtoull, strtol): Remove.
69525         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
69526         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
69527         changed to signed values.
69528
69529         And make the following changes as well:
69530         Fix copyright notice, as 1999 was missing.
69531         (verify): New macro.
69532         (strtoimax): Check sizes at compile-time, not run-time.
69533         Prefer strtol to strtoll if both work.
69534         (main): Remove; it was not that useful and was a pain to maintain.
69535
69536         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
69537
69538 2001-08-31  Jim Meyering  <meyering@lucent.com>
69539
69540         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
69541         Use an initial, malloc'd, buffer of length 128 rather than
69542         a statically allocated one of length 1024.
69543
69544 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69545
69546         Simplify code, partly by assuming autoconf 2.52 semantics.
69547
69548         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
69549
69550         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
69551         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
69552         All uses removed.
69553         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
69554         Move AC_REQUIRE to next-to-top level, to avoid confusion.
69555         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
69556         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
69557         jm_AC_HEADER_INTTYPES_H.
69558         * m4/jm-macros.m4 (jm_MACROS): Likewise.
69559
69560         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
69561
69562         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
69563         Quote first arg of AC_DEFUN.
69564         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
69565         since they are needed to parse the include file even if we need
69566         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
69567         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
69568         but with opposite signedness.
69569
69570 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69571
69572         Merge 'exclude' changes from tar 1.13.22.
69573         This fixes one or two unlikely storage allocation overflow bugs,
69574         but doesn't change user-visible behavior otherwise.
69575
69576 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69577
69578         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
69579         (jm_PREREQ_EXCLUDE): New macro.
69580
69581 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69582
69583         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
69584         tm to be declared.
69585
69586 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69587
69588         * lib/hash.c: Remove '2001' from copyright notice.
69589
69590 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69591
69592         * lib/full-write.h: New file.
69593         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
69594         * lib/full-write.c: Correct credits, as cccp.c no longer
69595         exists and anyway it was so heavily changed from the old cccp
69596         code as to be unrecognizable.  Include full-write.h.
69597         (full_write) Return size_t, with short writes meaning failure.
69598         All callers changed.  This fixes a bug with large buffers
69599         on 64-bit hosts.
69600         * lib/utime.c: Include full-write.h.
69601
69602 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69603
69604         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
69605         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
69606         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
69607         Include if available.
69608         (<xalloc.h>): Include
69609         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
69610         (verify): New macro.  Use it to verify that EXCLUDE macros do not
69611         collide with FNM macros.
69612         (struct patopts): New struct.
69613         (struct exclude): Use it, as exclude patterns now come with options.
69614         (new_exclude): Support above changes.
69615         (new_exclude, add_exclude_file):
69616         Initial size must now be a power of two to simplify overflow checking.
69617         (free_exclude, fnmatch_no_wildcards): New function.
69618         (excluded_filename): No longer requires options arg, as the options
69619         are determined by add_exclude.  Now returns bool, not int.
69620         (excluded_filename, add_exclude):
69621         Add support for the fancy new exclusion options.
69622         (add_exclude, add_exclude_file): Now takes int options arg.
69623         Check for arithmetic overflow when computing sizes.
69624         (add_exclude_file): xrealloc might modify errno, so don't
69625         realloc until after errno might be used.
69626
69627         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
69628         New macros.
69629         (free_exclude): New decl.
69630         (add_exclude, add_exclude_file): Now takes int options arg.
69631         (excluded_filename): No longer requires options arg, as the options
69632         are determined by add_exclude.  Now returns bool, not int.
69633
69634 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69635
69636         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
69637
69638 2001-08-27  Jim Meyering  <meyering@lucent.com>
69639
69640         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
69641
69642         * lib/version-etc.c (N_): Remove definition.
69643         Revert most of last change.
69644         Instead, simply don't mark the `Copyright...' string for translation.
69645         Based on advice from Paul Eggert.
69646
69647         * lib/strtoxmax.c: Tweak comment.
69648
69649 2001-08-26  Jim Meyering  <meyering@lucent.com>
69650
69651         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
69652
69653         * m4/xstrtoimax.m4: New file.
69654         * m4/xstrtoumax.m4: Add comments explaining why we
69655         AC_REPLACE_FUNCS(strtol).
69656
69657 2001-08-26  Jim Meyering  <meyering@lucent.com>
69658
69659         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
69660         of copyright with `%s' so translators don't get an untranslated
69661         message in 2002.
69662         (COPYRIGHT_YEAR): Define.
69663         (version_etc): Use fprintf rather than fputs.
69664         Suggestion from Ulrich Drepper.
69665
69666         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
69667
69668         * lib/strtoll.c: New file, from GNU libc.
69669         * lib/xstrtoimax.c: New file.
69670
69671         * lib/xstrtol.h: Add xstrtoimax.
69672         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
69673         * lib/strtoimax.c: New file.  Likewise, but first define
69674         STRTOUXMAX_SIGNED.
69675
69676         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
69677         ...
69678         * lib/strtoxmax.c: ... then renamed to this.
69679
69680 2001-08-18  Paul Eggert  <eggert@twinsun.com>
69681
69682         * m4/inttypes.m4: Add AC_PREREQ(2.13).
69683         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
69684         (jm_AC_TYPE_INTMAX_T): New macro.
69685         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
69686
69687         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
69688
69689         * m4/longlong.m4: Renamed from ulonglong.m4.
69690         * m4/inttypes.m4: Renamed from inttypes_h.m4.
69691         * m4/uintmax_t.m4: Removed.
69692
69693 2001-08-13  Paul Eggert  <eggert@twinsun.com>
69694
69695         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
69696         Port to Solaris 8, where 'sed' requires a space after the 'r'
69697         command, and where sh dislikes "$/".  Clean up the spacing a bit.
69698         Redirect output to $tmp just once.
69699
69700 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
69701
69702         * lib/addext.c (<errno.h>): Include.
69703         (errno): Declare if not defined.
69704         (addext): Work correctly when pathconf returns -1 and leaves
69705         errno alone because there is no limit.  Also, work even if
69706         pathconf returns a value greater than SIZE_MAX.
69707
69708 2001-08-12  Jim Meyering  <meyering@lucent.com>
69709
69710         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
69711         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
69712         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
69713         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
69714         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
69715         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
69716         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
69717         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
69718         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
69719         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
69720         utime.m4, utimes.m4, xstrtoumax.m4:
69721         Quote the first argument in each use of AC_DEFUN.
69722
69723 2001-08-12  Jim Meyering  <meyering@lucent.com>
69724
69725         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
69726         Simply `return getcwd (NULL, 0);'.
69727         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
69728         Use 1300 as initial value for length, not PATH_MAX.
69729
69730         * lib/pathmax.h: Clean up cpp syntax.
69731
69732 2001-08-12  Jim Meyering  <meyering@lucent.com>
69733
69734         * lib/gettimeofday.c: New file.
69735         * lib/gtod.h: New file.
69736         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
69737
69738 2001-08-05  Jim Meyering  <meyering@lucent.com>
69739
69740         * m4/jm-macros.m4: Require autoconf-2.52.
69741
69742 2001-08-04  Jim Meyering  <meyering@lucent.com>
69743
69744         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
69745         stmt, to get in sync with glibc.
69746
69747 2001-08-03  Paul Eggert  <eggert@twinsun.com>
69748
69749         The following changes are from gettext 0.10.39 as maintained by
69750         Bruno Haible.
69751
69752         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
69753         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
69754         with inverted sense.  All uses changed.
69755
69756         * lib/mbswidth.c: Don't include <limits.h>.
69757         Include <stdlib.h> and <string.h> unconditionally.
69758         (iswcntrl, mbsinit, ISCNTRL): New macros.
69759         (mbsnwidth): Use K&R style function declarations.
69760         Don't bother checking for MB_LEN_MAX == 1, since the compiler
69761         can optimize it when MB_CUR_MAX == 1.
69762         The width of control characters is zero, not 1.
69763
69764 2001-08-03  Paul Eggert  <eggert@twinsun.com>
69765
69766         The following changes are from gettext 0.10.39 as maintained by
69767         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
69768
69769         * m4/codeset.m4: Upgrade to serial AM1.
69770         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
69771         all uses changed.  Quote first arg of AC_DEFUN.
69772         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
69773
69774         * m4/iconv.m4: Upgrade to serial AM2.
69775         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
69776         Add --with-libconv-prefix.
69777         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
69778         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
69779         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
69780         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
69781         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
69782
69783         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
69784         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
69785         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
69786         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
69787         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
69788         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
69789         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
69790         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
69791         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
69792
69793         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
69794         string.h any more.
69795
69796         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
69797         not the default value.
69798
69799         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
69800         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
69801         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
69802         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
69803         Also check for iswcntrl, used for wcwidth fallback.
69804         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
69805         to Autoconf 2.13.
69806
69807 2001-08-03  Jim Meyering  <meyering@lucent.com>
69808
69809         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
69810         as it was in the original.  Reported by Paul Eggert.
69811
69812 2001-07-16  Jim Meyering  <meyering@lucent.com>
69813
69814         * m4/gettimeofday.m4: New file.
69815         Prompted by a report from Bernhard Baehr.
69816
69817 2001-07-15  Jim Meyering  <meyering@lucent.com>
69818
69819         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
69820         stuff. Now it's in ../Makefile.cfg.
69821
69822 2001-07-15  Jim Meyering  <meyering@lucent.com>
69823
69824         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
69825         (BUILT_SOURCES): Add unlocked-io.h.
69826         (io_functions): Define.
69827         (unlocked-io.h): New rule.
69828         (DISTCLEANFILES): Add unlocked-io.h.
69829         (all-local): Depend on unlocked-io.h, to ensure it is created.
69830
69831         * lib/unlocked-io.hin: New file
69832
69833         * lib/regex.c: Update from glibc.
69834
69835 2001-07-05  Jim Meyering  <meyering@lucent.com>
69836
69837         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
69838         recommendation.
69839         (libfetish_a_SOURCES): Put all .h files here instead.
69840         Remove a thus-exposed (better checks in automake) duplicate and
69841         two unnecessary .h files.
69842
69843 2001-07-04  Jim Meyering  <meyering@lucent.com>
69844
69845         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
69846         that generates jm-glibc-io.m4 so that it doesn't trigger any make
69847         distcheck failure.
69848
69849 2001-07-02  Jim Meyering  <meyering@lucent.com>
69850
69851         The following changes were prompted by suggestions from Bruno Haible.
69852
69853         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
69854         is now generated.
69855         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
69856         definition of EXTRA_DIST.
69857         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
69858         ensure that the generated file is created/updated whenever the list
69859         of $(unlocked_functions) is changed.
69860         (jm-glibc-io.m4): New rule.
69861         (unlocked-io.h): New rule -- currently unused.
69862
69863 2001-06-24  Jim Meyering  <meyering@lucent.com>
69864
69865         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
69866         unmatched right bracket, rather than kludging it with an extra,
69867         falsely-matching quote in a comment.  Patch by Akim Demaille.
69868
69869 2001-06-11  Jim Meyering  <meyering@lucent.com>
69870
69871         * lib/regex.c: Update from GNU libc.
69872
69873 2001-05-27  Jim Meyering  <meyering@lucent.com>
69874
69875         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
69876         Check for ut_type in struct utmp.
69877
69878 2001-05-27  Jim Meyering  <meyering@lucent.com>
69879
69880         * lib/readutmp.h (UT_TYPE): Define.
69881
69882 2001-05-24  Jim Meyering  <meyering@lucent.com>
69883
69884         * lib/argmatch.c: Include "quote.h".
69885         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
69886         quote function.  Reported by Göran Uddeborg.
69887
69888 2001-05-22  Jim Meyering  <meyering@lucent.com>
69889
69890         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
69891         now that we use the package-supplied version unconditionally.
69892         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
69893
69894 2001-05-21  Jim Meyering  <meyering@lucent.com>
69895
69896         * m4/regex.m4: Change a couple backticks to single quotes to avoid
69897         shell syntax errors.
69898
69899 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
69900
69901         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
69902
69903 2001-05-20  Paul Eggert  <eggert@twinsun.com>
69904
69905         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
69906         Don't bother to check library strftime, since
69907         we'll be using our own my_strftime function anyway.
69908         Define my_strftime instead of strftime.
69909
69910 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
69911
69912         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
69913         which is not yet declared.
69914
69915 2001-05-15  Jim Meyering  <meyering@lucent.com>
69916
69917         * m4/regex.m4: Use proper quoting so brackets appear in the test
69918         program.
69919         Reported by, and with help from, Bruno Haible.
69920
69921 2001-05-13  Jim Meyering  <meyering@lucent.com>
69922
69923         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
69924         undefined.
69925
69926 2001-05-11  Paul Eggert  <eggert@twinsun.com>
69927
69928         dirname code cleanup.  base_name now behaves more compatibly
69929         with POSIX basename when given file names that have trailing
69930         slashes, and similarly for dir_name.  Add new primitives
69931         base_len and dir_len.  Put the directory-name-related decls
69932         into dirname.h.
69933
69934         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
69935         * lib/backupfile.c (base_name): Likewise.
69936         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
69937         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
69938         * lib/makepath.c (strip_trailing_slashes): Likewise.
69939         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
69940         ISSLASH): Likewise.
69941         * lib/rename.c (strip_trailing_slashes): Likewise.
69942         * lib/same.c (base_name): Likewise.
69943         * lib/stripslash.c (ISSLASH): Likewise.
69944
69945         * lib/addext.c: Include <dirname.h> after size_t is defined.
69946         * lib/backupfile.c: Likewise.
69947
69948         * lib/addext.c (addext): Use base_len to trim redundant
69949         trailing slashes instead of doing it ourselves.
69950         But do not trim the last slash if it is not redundant.
69951
69952         * lib/backupfile.c (find_backup_file_name,
69953         max_backup_version): Use base_len instead of rolling it ourselves.
69954         Handle the case of "" and (on DOS) "C:" correctly.
69955
69956         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
69957         needed. Include <string.h>, <dirname.h>.
69958         (base_name): Allow file names ending in slashes, other than names
69959         that are all slashes.  In this case, return the basename followed
69960         by the slashes.  This is more general, and can be used in places
69961         where the original base_name purposely had an assertion failure.
69962         (base_len): New function.
69963
69964         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
69965         Do not include <assert.h>; no longer needed.
69966         Include xalloc.h.
69967         (memrchr): Remove decl.
69968         (dir_name_r): Remove.
69969         (dir_len): Renamed from dirlen.  All callers changed.
69970         Rewrite in terms of base_name, for simplicity and consistency.
69971         (dir_name): Never return NULL.  All callers changed.
69972         Do not include <stdlib.h> in test program; no longer needed.
69973         return 0; is fine for test program.
69974
69975         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
69976         New macros.
69977         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
69978
69979         * lib/path-concat.c (path_concat): Use base_len to compute
69980         base length, not strlen; this means we cannot rely on memcpy
69981         to null-terminate.
69982
69983         * lib/same.c (STREQ): Remove.
69984         (same_name): Handle the case where the basename ends in trailing '/'.
69985
69986         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
69987         a slash was stripped.  Do not strip the last slash after a
69988         file system prefix.
69989
69990 2001-05-11  Paul Eggert  <eggert@twinsun.com>
69991
69992         * lib/Makefile.am (libfetish_a_SOURCES):
69993         Add strftime.c, since we now compile it on all hosts.
69994
69995         * lib/strftime.c (my_strftime):
69996         Define to nstrftime if emacs, but only if my_strftime is not defined.
69997         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
69998         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
69999         Add one more extra argument: a nanoseconds value.
70000         All uses changed.
70001         (ns): New macro.
70002         (my_strftime function): Add %N format.
70003         (emacs_strftimeu): Renamed from emacs_strftime,
70004         with extra ut argument.
70005
70006 2001-05-09  Paul Eggert  <eggert@twinsun.com>
70007
70008         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
70009
70010 2001-04-21  Jim Meyering  <meyering@lucent.com>
70011
70012         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
70013         doesn't interfere.
70014
70015 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
70016
70017         * m4/ftruncate.m4: Check for chsize.
70018         Link with ftruncate.o unconditionally if ftruncate is missing.
70019         This was required when cross-compiling to i586-mingw32msvc.
70020
70021 2001-04-08  Jim Meyering  <meyering@lucent.com>
70022
70023         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
70024         recomputed; that's necessary when the offset spans a DST transition.
70025         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
70026
70027 2001-04-02  Jim Meyering  <meyering@lucent.com>
70028
70029         * lib/regex.h, regex.c: Update from GNU libc.
70030
70031 2001-03-24  Jim Meyering  <meyering@lucent.com>
70032
70033         * m4/jm-macros.m4: Require autoconf-2.49d.
70034
70035 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
70036
70037         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
70038
70039 2001-03-19  Paul Eggert  <eggert@twinsun.com>
70040
70041         * lib/version-etc.c (version_etc_copyright): Update to 2001.
70042
70043 2001-03-17  Jim Meyering  <meyering@lucent.com>
70044
70045         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
70046         now that the version in autoconf is equivalent.
70047         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
70048
70049         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
70050         Suggestion from Akim Demaille.
70051
70052         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
70053         (jm_PREREQ_TEMPNAME): New function.
70054
70055 2001-03-16  Paul Eggert  <eggert@twinsun.com>
70056
70057         * lib/tempname.c (uint64_t): Define to uintmax_t if
70058         not defined, and if UINT64_MAX is not defined.
70059         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
70060         Reported by John David Anglin.
70061
70062 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
70063
70064         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
70065         resolve alias if codeset is empty.
70066         * lib/config.charset (BeOS): Use wildcard syntax.
70067
70068 2001-03-13  Jim Meyering  <meyering@lucent.com>
70069
70070         * lib/path-concat.c (path_concat)
70071         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
70072         concatenating e.g., `C:' and `foo'.
70073         From Bruno Haible.
70074
70075 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
70076
70077         * lib/localcharset.c (locale_charset): Don't use
70078         setlocale(LC_CTYPE,NULL). Don't return NULL.
70079         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
70080
70081 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
70082
70083         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
70084         support for DOS/DJGPP.
70085
70086 2001-03-01  Paul Eggert  <eggert@twinsun.com>
70087
70088         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
70089         lacks mkstemp.  Compile our own tempname.c if we compile our own
70090         mkstemp.c, as mkstemp relies on tempname.
70091
70092 2001-03-01  Jim Meyering  <meyering@lucent.com>
70093
70094         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
70095         AH_VERBATIM really does output its argument verbatim.
70096
70097 2001-02-28  Paul Eggert  <eggert@twinsun.com>
70098
70099         * lib/Makefile.am (libfetish_a_SOURCES):
70100         Add dup-safer.c, fopen-safer.c.
70101         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
70102
70103         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
70104         * lib/unistd-safer.h: New files.
70105
70106 2001-02-25  Paul Eggert  <eggert@twinsun.com>
70107
70108         The mkstemp replacement is taken from glibc 2.2.2, with some
70109         portability fixes for use outside glibc, as follows:
70110
70111         * lib/tempname.c (struct_stat64): New macro.
70112         (direxists, __gen_tempname): Use it.
70113         This avoids a portability problem with Solaris 8.
70114
70115         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
70116         (<stddef.h>, <stdint.h>, <string.h>):
70117         Include only if STDC_HEADERS || _LIBC.
70118         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
70119         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
70120         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
70121         (__set_errno): Define this macro if <errno.h> doesn't.
70122         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
70123         Define these macros if <stdio.h> doesn't.
70124         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
70125         Define these macros if <sys/stat.h>
70126         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
70127         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
70128         __xstat64): Define if not _LIBC.
70129         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
70130         (__gen_tempname): Invoke gettimeofday only if
70131         HAVE_GETTIMEOFDAY || _LIBC;
70132         otherwise, fall back on plain "time".
70133         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
70134
70135         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
70136
70137         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
70138
70139 2001-02-18  Paul Eggert  <eggert@twinsun.com>
70140
70141         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
70142
70143 2001-02-17  Paul Eggert  <eggert@twinsun.com>
70144
70145         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
70146         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
70147         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
70148         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
70149
70150 2001-02-17  Paul Eggert  <eggert@twinsun.com>
70151
70152         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
70153         Remove workaround macros for hosts that have mbrtowc but not
70154         mbstate_t, as we now insist on proper declarations for both
70155         before using mbrtowc.
70156
70157 2001-02-17  Jim Meyering  <meyering@lucent.com>
70158
70159         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
70160         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
70161         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
70162         UnixWare 7.1.1.
70163
70164         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
70165         rather than AC_CACHE_VAL.
70166
70167 2001-02-17  Jim Meyering  <meyering@lucent.com>
70168
70169         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
70170         around included file name.
70171
70172         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
70173
70174         * lib/strftime.c: Update from GNU libc (the only changes were to
70175         comments).
70176
70177 2001-02-17  Jim Meyering  <meyering@lucent.com>
70178
70179         * lib/regex.c: Update from libc.
70180
70181 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
70182
70183         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
70184         clash.
70185
70186 2001-02-16  Paul Eggert  <eggert@twinsun.com>
70187
70188         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
70189         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
70190         Reported by Mark Hounschell via Paul Eggert.
70191
70192 2001-02-07  Jim Meyering  <meyering@lucent.com>
70193
70194         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
70195
70196 2001-02-05  Jim Meyering  <meyering@lucent.com>
70197
70198         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
70199         it includes the patch required for `large file' support with at least
70200         HP-UX's 10.20 /bin/cc.
70201
70202 2001-02-03  Jim Meyering  <meyering@lucent.com>
70203
70204         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
70205         AS_IF, now that it works once again (mysteriously).
70206         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
70207
70208 2001-01-30  Jim Meyering  <meyering@lucent.com>
70209
70210         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
70211         * m4/chown.m4: Rename conftestchown to conftest.chown.
70212         * m4/rename.m4: s/conftestdir/conftest.d1/ and
70213         s/conftestdir2/conftest.d2/.
70214         * m4/utimes.m4: s/conftestdata/conftest.data/
70215         Inspired by Pavel Roskin's change in autoconf.
70216
70217 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
70218
70219         * lib/config.charset: Update for FreeBSD 4.2.
70220
70221 2001-01-27  Jim Meyering  <meyering@lucent.com>
70222
70223         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
70224         a use of AS_IF.
70225         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
70226
70227 2001-01-26  Jim Meyering  <meyering@lucent.com>
70228
70229         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
70230         quotearg.c includes it.
70231
70232 2001-01-26  Jim Meyering  <meyering@lucent.com>
70233
70234         * lib/quotearg.c: Include stddef.h.
70235         * lib/quote.c: Include stddef.h.
70236         Reported by Axel Kittenberger.
70237
70238         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
70239         line in double quotes so that it evokes a better diagnostic.
70240         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
70241         Reported by Axel Kittenberger.
70242
70243 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
70244
70245         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
70246         as if it was a `charset'.
70247
70248 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
70249
70250         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
70251         has const.
70252
70253 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
70254
70255         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
70256         to avoid a warning.  Add back 'const' to inptr.
70257
70258 2001-01-20  Jim Meyering  <meyering@lucent.com>
70259
70260         Be sure that headers are checked before used in code compiled
70261         for the type checks.
70262         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
70263         In place of that, invoke jm_CHECK_ALL_TYPES.
70264         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
70265         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
70266         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
70267         The check for ssize_t was mistakenly run before the test for unistd.h.
70268
70269         The configure-time check for stdbool.h was missing.
70270         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
70271         (jm_PREREQ_HASH): New function.
70272
70273 2001-01-17  Jim Meyering  <meyering@lucent.com>
70274
70275         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
70276         for autoconf-2.49c.
70277         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
70278
70279 2001-01-16  Jim Meyering  <meyering@lucent.com>
70280
70281         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
70282         From Bruno Haible.
70283
70284 2001-01-14  Jim Meyering  <meyering@lucent.com>
70285
70286         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
70287         foo and bar.  Create conftestdir/ in the script, not in the C code.
70288         Remove directories in the script, not in the C code.
70289         Remove conftestdir{,2} before trying to create the directory.
70290         Make the entire configure script fail if the mkdir fails.
70291
70292 2001-01-14  Jim Meyering  <meyering@lucent.com>
70293
70294         * lib/rename.c: New file.  From Volker Borchert.
70295         Include stdlib.h, string.h or strings.h, and xalloc.h.
70296         Use strip_trailing_slashes rather than open-coding it.
70297
70298 2001-01-03  Paul Eggert  <eggert@twinsun.com>
70299
70300         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
70301
70302 2001-01-03  Jim Meyering  <meyering@lucent.com>
70303
70304         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
70305         of local `inptr' to avoid warning with some system declarations of
70306         iconv.
70307
70308 2001-01-02  Volker Borchert  <bt@teknon.de>
70309
70310         * m4/rename.m4: New file.
70311         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
70312
70313 2001-01-01  Jim Meyering  <meyering@lucent.com>
70314
70315         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
70316         even on systems with utmpx.h.  It's necessary for the declaration of
70317         utmp's ut_user member.  Reported by Andreas Jaeger.
70318
70319         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
70320         available. They are required for the declarations of getgrgid and
70321         getpwuid resp.
70322         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
70323         Reported by Andreas Jaeger.
70324
70325 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
70326
70327         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
70328         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
70329         so `make install' also works in VPATH builds.
70330
70331 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
70332
70333         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
70334         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
70335         can be used in subdirectories.
70336
70337 2000-12-29  Paul Eggert  <eggert@twinsun.com>
70338
70339         * lib/modechange.c: Do not assume that mode_t uses the
70340         traditional octal encoding.  E.g. "chmod 1 FOO" should set
70341         the other-execute bit of FOO even if S_IXOTH != 1.
70342
70343         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
70344         WOTH, XOTH, ALLM): New macros.
70345         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
70346          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
70347         Use them.
70348         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
70349         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
70350         (mode_compile):
70351         No need to use uintmax_t; unsigned long is long enough.
70352         Don't bother to get suffix since we don't use it.
70353
70354 2000-12-26  Jim Meyering  <meyering@lucent.com>
70355
70356         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
70357         better with autoheader.
70358
70359 2000-12-24  Jim Meyering  <meyering@lucent.com>
70360
70361         * lib/hash.c (is_prime): Return explicit boolean values.
70362         (hash_get_first): Return NULL to appease Irix5.6's 89.
70363         Reported by Nelson Beebe.
70364
70365 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
70366
70367         * lib/localcharset.c (locale_charset): Add support for Win32.
70368
70369 2000-12-18  Paul Eggert  <eggert@twinsun.com>
70370
70371         * lib/physmem.h, lib/physmem.c: New files.
70372
70373         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
70374         (noinst_HEADERS): Add physmem.h.
70375
70376         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
70377         't' for compatibility with Solaris 8 sort.
70378
70379 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
70380
70381         * lib/config.charset: Add support for BeOS.
70382
70383 2000-12-17  Jim Meyering  <meyering@lucent.com>
70384
70385         * m4/dos.m4 (jm_AC_DOS): New file and macro.
70386         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
70387
70388 2000-12-16  Jim Meyering  <meyering@lucent.com>
70389
70390         This bug had a serious impact on chown: `chown N:M FILE' (for integer
70391         N and M) would have treated it like `chown N:N FILE'.
70392
70393         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
70394
70395 2000-12-16  Jim Meyering  <meyering@lucent.com>
70396
70397         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
70398         SHELLS_FILE to a file name that's useful on djgpp systems.
70399         Include stdlib.h.
70400         (ADDITIONAL_DEFAULT_SHELLS): Define.
70401         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
70402         Based mostly on a patch from Prashant TR.
70403
70404 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
70405
70406         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
70407         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
70408         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
70409
70410 2000-12-08  Andreas Schwab  <schwab@suse.de>
70411
70412         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
70413         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
70414
70415 2000-12-07  Jim Meyering  <meyering@lucent.com>
70416
70417         * lib/stripslash.c (ISSLASH): Define.
70418         (strip_trailing_slashes): Use ISSLASH rather than comparing against
70419         `/'.
70420         From Prashant TR.
70421
70422         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
70423         (dir_name_r): Declare this function as static.
70424         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
70425         manifest itself on a name containing a mix of slashes and
70426         backslashes.
70427         Make this function work with names starting with a DOS-style
70428         drive letter and colon prefix.
70429         (dir_name): Append `.' if necessary.
70430         Based mostly on patches from Prashant TR and Eli Zaretskii.
70431
70432         * lib/dirname.h (dir_name_r): Remove prototype.
70433
70434 2000-12-06  Paul Eggert  <eggert@twinsun.com>
70435
70436         * m4/off_t-format.m4: Remove this file.
70437         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
70438
70439 2000-12-06  Jim Meyering  <meyering@lucent.com>
70440
70441         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
70442         replacement strtoull, we may well need the replacement strtoul, too.
70443         Check for declarations of strtoul and strtoull.
70444         Check for strtol.  Mainly as a cue to cause automake to include
70445         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
70446         Check for limits.h -- strtol.c needs it.
70447
70448 2000-12-05  Jim Meyering  <meyering@lucent.com>
70449
70450         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
70451
70452 2000-12-04  Jim Meyering  <meyering@lucent.com>
70453
70454         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
70455         Also include memory.h, stdlib.h, unistd.h if appropriate.
70456         Reported by Andreas Jaeger (conflicting declaration of malloc).
70457
70458 2000-12-02  Jim Meyering  <meyering@lucent.com>
70459
70460         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
70461         * m4/jm-macros.m4 (jm_MACROS): require it.
70462
70463 2000-12-02  Jim Meyering  <meyering@lucent.com>
70464
70465         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
70466
70467 2000-12-01  Paul Eggert  <eggert@twinsun.com>
70468
70469         * lib/memrchr.c: Include <config.h> before any system include file.
70470
70471 2000-11-30  Jim Meyering  <meyering@lucent.com>
70472
70473         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
70474
70475 2000-11-30  Jim Meyering  <meyering@lucent.com>
70476
70477         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
70478
70479 2000-11-29  Paul Eggert  <eggert@twinsun.com>
70480
70481         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
70482
70483 2000-11-26  Jim Meyering  <meyering@lucent.com>
70484
70485         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
70486
70487 2000-11-22  Paul Eggert  <eggert@twinsun.com>
70488
70489         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
70490         size of (size_t) -1; it's not portable.
70491
70492 2000-11-17  Jim Meyering  <meyering@lucent.com>
70493
70494         * lib/strstr.c: Update from GNU libc.
70495
70496 2000-11-17  Akim Demaille  <akim@epita.fr>
70497
70498         * lib/obstack.h: Formatting changes.
70499         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
70500         prevent type checking.
70501         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
70502         cast the value to (void *): assigning a `foo *' to a `void *'
70503         variable is valid.
70504         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
70505
70506 2000-11-16  Jim Meyering  <meyering@lucent.com>
70507
70508         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
70509
70510 2000-11-11  Jim Meyering  <meyering@lucent.com>
70511
70512         * lib/error.c: Add a couple #includes, merging from GNU libc version.
70513
70514 2000-11-10  Jim Meyering  <meyering@lucent.com>
70515
70516         * lib/obstack.h: Update from GNU libc.
70517         * lib/obstack.c: Likewise.
70518
70519 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
70520
70521         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
70522
70523 2000-11-06  Paul Eggert  <eggert@twinsun.com>
70524
70525         * lib/getusershell.c (setusershell): Use rewind rather than
70526         fseek/fseeko, to avoid configuration hassles with fseeko.
70527         Don't bother opening SHELLS_FILE if shellstream is NULL;
70528         it's not necessary.
70529
70530 2000-11-05  Jim Meyering  <meyering@lucent.com>
70531
70532         * lib/makepath.h (make_dir): Declare.
70533         * lib/makepath.c (make_dir): Remove `static' attribute.
70534         Tweak a comment.
70535
70536 2000-11-04  Jim Meyering  <meyering@lucent.com>
70537
70538         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
70539
70540 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
70541
70542         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
70543         last one in a bucket, advance to the next bucket.
70544
70545 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
70546
70547         * lib/fnmatch.c: Do not comment out all the code if we are using
70548         the GNU C library, because in some cases we are replacing buggy
70549         code in the GNU C library itself.
70550
70551 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
70552
70553         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
70554         (regex_compile): Catch bogus \(\1\).
70555
70556 2000-10-30  Paul Eggert  <eggert@twinsun.com>
70557
70558         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
70559         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
70560         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
70561
70562 2000-10-30  Paul Eggert  <eggert@twinsun.com>
70563
70564         * lib/error.h, getline.h, modechange.h:
70565         Remove "2000" from Copyright line, as the file hasn't been
70566         changed this year other than in the copyright notice.
70567
70568         * lib/xalloc.h: Add "2000" to Copyright line, as this file
70569         was changed this year.
70570
70571 2000-10-29  Jim Meyering  <meyering@lucent.com>
70572
70573         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
70574         renaming.
70575         * m4/ls-mntd-fs.m4: Likewise
70576
70577 2000-10-29  Jim Meyering  <meyering@lucent.com>
70578
70579         * lib/xstat.in: Fix grammar in comment.
70580
70581 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
70582
70583         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
70584         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
70585         doesn't define __restrict_arr.
70586
70587 2000-10-28  Jim Meyering  <meyering@lucent.com>
70588
70589         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
70590         (jm_PREREQ_MEMCHR): New function.
70591
70592 2000-10-28  Jim Meyering  <meyering@lucent.com>
70593
70594         * lib/memchr.c: Update from libc.
70595         Adjust for portability:
70596         [HAVE_STDLIB_H]: Include stdlib.h.
70597         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
70598         Undef __memchr, too.
70599         [!weak_alias]: Define __memchr to memchr.
70600
70601         * lib/regex.c: Update from libc.
70602         * lib/regex.h: Likewise.
70603         * lib/getopt1.c: Likewise.
70604         * lib/memcmp.c: Likewise.
70605
70606         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
70607         Avoid using fseek, when possible -- it's broken by design.
70608         Patch by Ulrich Drepper.
70609
70610 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
70611
70612         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
70613         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
70614         Giving in to popular pressure to shut up the compiler with casts.
70615
70616 2000-10-26  Jim Meyering  <meyering@lucent.com>
70617
70618         * lib/strftime.c: Update from libc.
70619
70620 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
70621
70622         * regex.c: More `unsigned char' -> `re_char' changes.
70623         Also change several `int' into `re_wchar_t'.
70624         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
70625         (PUSH_FAILURE_POINTER): Don't cast any more.
70626         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
70627         We want GCC to complain, since this piece of code makes
70628         re_match non-reentrant, which *should* be fixed.
70629         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
70630         (EXTEND_BUFFER): Use RETALLOC.
70631         (SET_LIST_BIT): Don't cast.
70632         (re_wchar_t): New type.
70633         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
70634         that those two functions will always properly return.
70635         (IMMEDIATE_QUIT_CHECK): Cast to void.
70636         (analyse_first): Use recursion rather than an explicit stack.
70637         (re_compile_fastmap): Can't fail anymore.
70638         (re_search_2): Don't check re_compile_fastmap for failure.
70639         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
70640         Now also sets the new value (passed in a new argument).
70641         (re_match_2_internal): Use it.
70642         Also, use a new var `reg' of type size_t when looping through regs
70643         rather than reuse the inappropriate `mcnt'.
70644
70645 2000-10-25  Jim Meyering  <meyering@lucent.com>
70646
70647         * lib/obstack.c: Update from libc.
70648
70649 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
70650
70651         * regex.c (regex_compile): Change the way of handling a range from
70652         a char less than 256 to a char not less than 256.
70653
70654 2000-10-24  Andrew Innes  <andrewi@gnu.org>
70655
70656         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
70657         NT-Emacs only.
70658         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
70659         so that re_search functions only quit when callers expect them to.
70660
70661 2000-10-23  Jim Meyering  <meyering@lucent.com>
70662
70663         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
70664         wrong.  That set_locale call must not have any side effects.
70665         From Paul Eggert.
70666
70667 2000-10-22  Jim Meyering  <meyering@lucent.com>
70668
70669         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
70670         [CYCLIC]: Remove now-unused definition.
70671
70672         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
70673         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
70674         Suggestion from Ulrich Drepper.
70675
70676 2000-10-21  Jim Meyering  <meyering@lucent.com>
70677
70678         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
70679         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
70680         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
70681
70682 2000-10-21  Jim Meyering  <meyering@lucent.com>
70683
70684         * lib/dirname.c (memrchr): Declare if necessary.
70685         (dir_name): Remove the restriction that there be no
70686         trailing slashes.  Now, this code skips past them, effectively
70687         ignoring them.
70688         [TEST_DIRNAME] (main): New unit tests.
70689
70690         * lib/memrchr.c: New file from GNU libc.
70691         Undef __memrchr, too.
70692         [!weak_alias]: Define __memrchr to memrchr.
70693         Guard weak_alias use with `#ifdef weak_alias'.
70694
70695 2000-10-21  Jim Meyering  <meyering@lucent.com>
70696
70697         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
70698         (dir_name): Use dir_name_r.
70699         * lib/dirname.h (dir_name_r): Declare it.
70700
70701 2000-10-17  Jim Meyering  <meyering@lucent.com>
70702
70703         * lib/quote.h (PARAMS): Define and use.
70704         Reported by Akim Demaille.
70705
70706         * lib/getopt.c: Update from libc.
70707
70708 2000-10-16  Jim Meyering  <meyering@lucent.com>
70709
70710         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
70711         setlocale.
70712         From Jan Fedak.
70713
70714 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
70715
70716         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
70717
70718 2000-09-25  Jim Meyering  <meyering@lucent.com>
70719
70720         * lib/md5.h (rol): Define (from GnuPG).
70721
70722         * lib/sha.c: Give credit (GnuPG) where due.
70723         (M): Use rol rather than open-coding it.
70724         Add a FIXME comment.
70725
70726 2000-09-21  Jim Meyering  <meyering@lucent.com>
70727
70728         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
70729         Reported by Michael Stone.
70730
70731 2000-09-20  Jim Meyering  <meyering@lucent.com>
70732
70733         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
70734         (noinst_HEADERS): Add sha.h.
70735         Based on code from Scott G. Miller and from GnuPG.
70736
70737 2000-09-18  Jim Meyering  <meyering@lucent.com>
70738
70739         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
70740         LIBS. Otherwise, everyone ends up linking with -lelf for some
70741         configurations.
70742         Reported by Mike Stone.
70743
70744 2000-09-15  Jim Meyering  <meyering@lucent.com>
70745
70746         * lib/regex.c: Update from libc.
70747
70748 2000-09-10  Jim Meyering  <meyering@lucent.com>
70749
70750         * lib/getopt.c (_getopt_internal): Update from glibc.
70751
70752 2000-09-09  Jim Meyering  <meyering@lucent.com>
70753
70754         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
70755         think it should be used as a general replacement for isascii.
70756         * lib/fnmatch.c: Likewise.
70757         * lib/mbswidth.c: Likewise
70758         * lib/regex.c: Likewise.
70759
70760         Don't use atoi.
70761         * lib/userspec.c: Include sys/param.h and limits.h.
70762         Include xstrtol.h.
70763         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
70764         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
70765         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
70766         UID, GID.  Check range.
70767
70768 2000-09-06  Jim Meyering  <meyering@lucent.com>
70769
70770         * lib/getopt.c (_getopt_internal): Update from glibc.
70771
70772 2000-08-30  Jim Meyering  <meyering@lucent.com>
70773
70774         * lib/strftime.c: Merge in changes from GNU libc.
70775
70776 2000-08-26  Jim Meyering  <meyering@lucent.com>
70777
70778         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
70779         * m4/fpending.m4: New file.
70780
70781 2000-08-26  Jim Meyering  <meyering@lucent.com>
70782
70783         * lib/closeout.c: Include "__fpending.h".
70784         (close_stdout_status): Return right away if there's nothing to flush.
70785
70786         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
70787         * lib/__fpending.c: New file.
70788         * lib/__fpending.h: New file.
70789
70790 2000-08-20  Jim Meyering  <meyering@lucent.com>
70791
70792         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
70793         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
70794         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
70795
70796 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
70797
70798         Improve fileutils installation on systems where running
70799         programs (like install) can't be unlinked.
70800         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
70801         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
70802
70803 2000-08-07  Paul Eggert  <eggert@twinsun.com>
70804
70805         Standardize on "memory exhausted" instead of "Memory exhausted"
70806         or "virtual memory exhausted".
70807         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
70808         "virtual memory exhausted".
70809         * lib/same.c (same_name): Invoke xalloc_die instead of printing
70810         our own message.
70811         * lib/userspec.c (parse_user_spec): Likewise.
70812         * lib/bumpalloc.h: comment fix
70813         * lib/same.c, userspec.c: Include xalloc.h.
70814
70815         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
70816         not char *const and pointing to a constant array.
70817         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
70818         (xrealloc): Comment fix.
70819
70820         * lib/userspec.c (parse_user_spec):
70821         Don't translate a message until just before returning,
70822         to avoid unnecessary translation.
70823
70824 2000-08-07  Jim Meyering  <meyering@lucent.com>
70825
70826         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
70827         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
70828         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
70829         getgroups.c, gethostname.c, getopt.h, group-member.c,
70830         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
70831         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
70832         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
70833         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
70834         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
70835         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
70836         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
70837         yesno.c: Back out Copyright date changes for each file with no change
70838         this year.  This eases coordination with other programs using the same
70839         source code modules.  From Paul Eggert.
70840
70841 2000-08-06  Paul Eggert  <eggert@twinsun.com>
70842
70843         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
70844         not char, for compatibility with glibc 2.1.3 strftime.c.
70845
70846 2000-08-03  Greg McGary  <greg@mcgary.org>
70847
70848         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
70849         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
70850         (EXTEND_BUFFER): Use them.
70851
70852 2000-08-01  Jim Meyering  <meyering@lucent.com>
70853
70854         * lib/dirname.c (ISSLASH): Define.
70855         (BACKSLASH_IS_PATH_SEPARATOR): Define.
70856         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
70857         both `\' and `/' may be use as path separators.
70858         Based on a patch from Prashant TR.
70859
70860 2000-07-31  Paul Eggert  <eggert@twinsun.com>
70861
70862         * lib/quotearg.c (quotearg_n_options): Don't make the initial
70863         slot vector a constant, since it might get modified.
70864
70865 2000-07-31  Jim Meyering  <meyering@lucent.com>
70866
70867         * lib/xmalloc.c: Use `virtual memory exhausted', not
70868         `Memory exhausted'.
70869         * lib/obstack.c (print_and_abort): Likewise.
70870
70871 2000-07-30  Paul Eggert  <eggert@twinsun.com>
70872
70873         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
70874         buffer, so that the caller can always quote one small
70875         component of a "memory exhausted" message in slot 0.
70876         From a suggestion by Jim Meyering.
70877
70878 2000-07-30  Jim Meyering  <meyering@lucent.com>
70879
70880         * lib/makepath.c (make_path): Quote the other instance, too.
70881
70882         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
70883         (STATIC_BUF_SIZE): Define.
70884         (quotearg_n_options): Use only statically allocated storage when
70885         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
70886         than STATIC_BUF_SIZE.
70887
70888 2000-07-29  Jim Meyering  <meyering@lucent.com>
70889
70890         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
70891         * lib/dirname.c (dir_name): Likewise.
70892
70893         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
70894         `/'.
70895
70896         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
70897         (dir_name): Assert that there are no trailing slashes.
70898
70899 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
70900
70901         * lib/mbswidth.h (mbswidth): Add a flags argument.
70902         (mbswidth): New declaration.
70903         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
70904         * lib/mbswidth.c (mbswidth): Add a flags argument.
70905         (mbsnwidth): New function.
70906
70907 2000-07-24  Jim Meyering  <meyering@lucent.com>
70908
70909         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
70910
70911 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70912
70913         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
70914
70915 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70916
70917         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
70918         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
70919         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
70920         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
70921         invoke multibyte primitives.
70922
70923 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70924
70925         * lib/quotearg.c:
70926         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
70927         so that mbstate_t is always defined.
70928
70929         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
70930         be 1 in at least one GCC installation, and this configuration
70931         error is likely to be common.  Ignoring MB_LEN_MAX hurts
70932         performance on hosts that have mbrtowc but have only unibyte
70933         locales, but I assume these hosts are rare.
70934
70935 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70936
70937         * lib/mbswidth.c (_XOPEN_SOURCE):
70938         Don't define; this causes problems on Solaris 7.
70939         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
70940
70941 2000-07-23  Jim Meyering  <meyering@lucent.com>
70942
70943         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
70944         too: getgrgid, getpwuid, getuid.
70945
70946 2000-07-23  Jim Meyering  <meyering@lucent.com>
70947
70948         * lib/basename.c (base_name): Add an assertion.
70949
70950 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
70951
70952         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
70953         shadow its mbsinit function.
70954
70955 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
70956
70957         * lib/mbswidth.h: New file.
70958         * lib/mbswidth.c: New file.
70959         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
70960         (noinst_HEADERS): Add mbswidth.h.
70961
70962 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
70963
70964         * lib/config.charset: Add support for FreeBSD. Improve support for
70965         HP-UX and IRIX 6.
70966
70967 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
70968
70969         * m4/mbswidth.m4: New file.
70970         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
70971
70972 2000-07-15  Jim Meyering  <meyering@lucent.com>
70973
70974         * lib/makepath.c: Include quote.h.
70975         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
70976         corresponding argument in a `quote (...)' call.
70977         Give better diagnostics.
70978
70979         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
70980         (noinst_HEADERS): Add quote.h.
70981
70982         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
70983         from tar's src/misc.c.
70984         * lib/quote.h: New file.  Prototypes for same.
70985
70986 2000-07-14  Paul Eggert  <eggert@twinsun.com>
70987
70988         From a suggestion by Bruno Haible.
70989         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
70990         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
70991         to decide whether to define the BeOS workaround macro;
70992         this adjusts to the change to AC_MBSTATE_T.
70993
70994 2000-07-14  Jim Meyering  <meyering@lucent.com>
70995
70996         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
70997         jm_AC_TYPE_UINTMAX_T.
70998
70999 2000-07-13  Paul Eggert  <eggert@twinsun.com>
71000
71001         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
71002
71003         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
71004         quotearg_buffer_restyled): Add support for
71005         clocale_quoting_style.  Undo previous change to
71006         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
71007         and "{RIGHT QUOTATION MARK}" msgids.
71008
71009 2000-07-10  Paul Eggert  <eggert@twinsun.com>
71010
71011         From a suggestion by Bruno Haible.
71012         * m4/mbstate_t.m4 (AC_MBSTATE_T):
71013         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
71014         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
71015         and mbstate_t, to a single-part test that simply defines mbstate_t.
71016         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
71017         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
71018
71019 2000-07-10  Jim Meyering  <meyering@lucent.com>
71020
71021         * m4/strerror_r.m4: Mirror the correction made in autoconf.
71022
71023         * m4/gnu-source.m4: Output to confdefs.h directly.
71024         Suggestion from Akim Demaille.
71025
71026 2000-07-09  Paul Eggert  <eggert@twinsun.com>
71027
71028         The old behavior of quoting `like this' doesn't look good with
71029         newer, ISO-style fonts.  See:
71030         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
71031
71032         Instead, quote "like this" by default.  Let the translator
71033         tailor the locale-specific quoting behavior by providing
71034         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
71035
71036         * lib/quotearg.c (N_): New macro.
71037         (gettext_default): New function.
71038         (quotearg_buffer_restyled): Use
71039         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
71040         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
71041
71042 2000-07-09  Jim Meyering  <meyering@lucent.com>
71043
71044         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
71045         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
71046
71047         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
71048         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
71049
71050 2000-07-09  Jim Meyering  <meyering@lucent.com>
71051
71052         * lib/Most files: Update copyright dates to include 2000.
71053
71054 2000-07-08  Jim Meyering  <meyering@lucent.com>
71055
71056         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
71057         if not defined.
71058         (xgethostname): Remove now-unnecessary #ifdef.
71059         Move declaration of `err' into loop where it's used.
71060
71061 2000-07-05  Paul Eggert  <eggert@twinsun.com>
71062         and Bruno Haible  <haible@clisp.cons.org>
71063
71064         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
71065         only if the test for an object-type mbstate_t fails.  This
71066         prevents us from mistakenly reporting that mbstate_t is a
71067         system object type after we "#define mbstate_t int" to work
71068         around its lack.
71069
71070 2000-07-05  Paul Eggert  <eggert@twinsun.com>
71071         and Bruno Haible  <haible@clisp.cons.org>
71072
71073         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
71074
71075 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71076
71077         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
71078         to strerror_r.
71079         Include <ctype.h> for use of isalpha.
71080
71081 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71082
71083         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
71084         by allocating a larger buffer. Test the gethostname return value for
71085         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
71086         returns an error and ENAMETOOLONG isn't defined.
71087
71088 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71089
71090         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
71091         dimension.
71092
71093 2000-07-04  Jim Meyering  <meyering@lucent.com>
71094
71095         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
71096         of the deprecated AC_CHECKING.
71097
71098 2000-07-04  Jim Meyering  <meyering@lucent.com>
71099
71100         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
71101         Reported by Bruno Haible.
71102
71103 2000-07-04  Jim Meyering  <meyering@lucent.com>
71104
71105         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
71106         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
71107         lacks mbrtowc.
71108
71109 2000-07-03  Paul Eggert  <eggert@twinsun.com>
71110
71111         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
71112         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
71113
71114 2000-07-03  Paul Eggert  <eggert@twinsun.com>
71115         and Bruno Haible  <haible@clisp.cons.org>
71116
71117         * lib/quotearg.c (mbrtowc):
71118         Assign to *pwc, and return 1 only if result is nonzero.
71119         (iswprint): Use ISPRINT when substituting our own mbrtowc.
71120
71121 2000-07-03  Jim Meyering  <meyering@lucent.com>
71122
71123         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
71124
71125 2000-07-03  Jim Meyering  <meyering@lucent.com>
71126
71127         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
71128         This is necessary to get a definition of e.g., UTMP_FILE on
71129         HP-UX 10.20.
71130         From Bob Proulx.
71131
71132 2000-07-02  Jim Meyering  <meyering@lucent.com>
71133
71134         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
71135
71136         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
71137         AC_LIBOBJ(function_name).
71138         * m4/chown.m4: Likewise.
71139         * m4/fnmatch.m4: Likewise.
71140         * m4/ftruncate.m4: Likewise.
71141         * m4/getgroups.m4: Likewise.
71142         * m4/getline.m4: Likewise.
71143         * m4/group-member.m4: Likewise.
71144         * m4/jm-macros.m4: Likewise.
71145         * m4/lstat.m4: Likewise.
71146         * m4/malloc.m4: Likewise.
71147         * m4/memcmp.m4: Likewise.
71148         * m4/nanosleep.m4: Likewise.
71149         * m4/putenv.m4: Likewise.
71150         * m4/realloc.m4: Likewise.
71151         * m4/regex.m4: Likewise.
71152         * m4/stat.m4: Likewise.
71153         * m4/strftime.m4: Likewise.
71154
71155 2000-07-02  Jim Meyering  <meyering@lucent.com>
71156
71157         * lib/quotearg.c (mbstate_t): Don't define here.
71158
71159 2000-07-02  Jim Meyering  <meyering@lucent.com>
71160
71161         * lib/nanosleep.c (SIGCONT): Define if not already defined.
71162
71163 2000-07-01  Jim Meyering  <meyering@lucent.com>
71164
71165         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
71166
71167 2000-07-01  Jim Meyering  <meyering@lucent.com>
71168
71169         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
71170         problem.
71171
71172 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
71173
71174         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
71175         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
71176
71177 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
71178
71179         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
71180         per change in ../m4/ls-mntd-fs.m4.
71181         (read_filesystem_list): Ignore symbolic links.
71182
71183 2000-06-29  Jim Meyering  <meyering@lucent.com>
71184
71185         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
71186         for declaration of strcmp.
71187
71188         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
71189
71190         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
71191         Avoid warning by casting result to `char *' to remove `const'.
71192
71193 2000-06-28  Jim Meyering  <meyering@lucent.com>
71194
71195         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
71196         included by quotearg.c, for which we perform this test.  From
71197         Bruno Haible.
71198
71199 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
71200
71201         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
71202         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
71203         <utmpx.h> exists, put readutmp.o into LIBOBJS.
71204
71205 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
71206
71207         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
71208
71209 2000-06-26  Paul Eggert  <eggert@twinsun.com>
71210
71211         savedir now sets errno on failure and invokes xmalloc to get memory.
71212         Fix a couple of other minor bugs while we're at it.
71213
71214         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
71215         (NAMLEN): Remove macro.
71216         (malloc, realloc): Remove decls.
71217         (stpcpy): Likewise.
71218         ("xalloc.h"): Include.
71219         (NAME_SIZE_DEFAULT): New macro.
71220         (savedir): Use xmalloc / xrealloc to allocate memory.
71221         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
71222         Skip "" directory entries.
71223         Use strlen to calculate directory entry length, since the old method
71224         is rarely used these days and isn't worth supporting.
71225         Don't use a pointer after freeing it.
71226         Check for integer overflow when calculating allocation size.
71227         Use memcpy to copy entries, instead of stpcpy.
71228         Set errno properly when returning NULL.
71229         Check for readdir error.
71230
71231 2000-06-26  Jim Meyering  <meyering@lucent.com>
71232
71233         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
71234
71235 2000-06-25  Jim Meyering  <meyering@lucent.com>
71236
71237         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
71238         Linux header bug when _XOPEN_SOURCE is defined to 500.
71239
71240 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
71241
71242         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
71243         deficiency.
71244
71245 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
71246
71247         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
71248         Include xalloc.h.
71249         Don't include <stdlib.h>.  Don't declare malloc, realloc.
71250
71251 2000-06-24  Jim Meyering  <meyering@lucent.com>
71252
71253         * m4/strerror_r.m4: Revive this file -- to try out an experimental
71254         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
71255         for which strerror does return char*, but which lacks a conveniently
71256         accessible declaration of the function.  If the compile-test says
71257         strerror_r doesn't work, then resort to a `run'-test that works on
71258         BeOS and segfaults on DEC Unix.
71259
71260 2000-06-24  Jim Meyering  <meyering@lucent.com>
71261
71262         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
71263
71264 2000-06-23  Paul Eggert  <eggert@twinsun.com>
71265
71266         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
71267         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
71268
71269 2000-06-23  Paul Eggert  <eggert@twinsun.com>
71270
71271         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
71272         (mbrtowc, mbstate_t): Define substitutes if
71273         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
71274         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
71275         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
71276
71277 2000-06-23  Jim Meyering  <meyering@lucent.com>
71278
71279         * m4/afs.m4: Add missing AC_MSG_RESULT.
71280         Reported by Bruno Haible.
71281
71282         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
71283         Suggestion from Bruno Haible.
71284
71285 2000-06-23  Jim Meyering  <meyering@lucent.com>
71286
71287         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
71288
71289 2000-06-21  Jim Meyering  <meyering@lucent.com>
71290
71291         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
71292
71293 2000-06-21  Jim Meyering  <meyering@lucent.com>
71294
71295         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
71296         (noinst_HEADERS): Add getstr.h.
71297
71298         * lib/getline.c (getstr): Move into a separate file.
71299         * lib/getstr.c (getstr): New file, extracted from getline.c, with
71300         the following changes: new parameter, delim2; both delim[12]
71301         parameters have type `int', not `char'.  The latter would lose
71302         with 8-bit delimiters.
71303         * lib/getstr.h: New file.
71304
71305 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71306
71307         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
71308         than 1024, return a memory chunk of least possible size, instead
71309         of size PATH_MAX + 2. In the loop, increment the size proportionally.
71310         Use free/xmalloc instead of xrealloc to avoid copying for very long
71311         paths.
71312
71313 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71314
71315         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
71316         the empty string.
71317
71318 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71319
71320         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
71321         address, not strdup.  Include <stdlib.h> and don't declare free().
71322
71323 2000-06-19  Jim Meyering  <meyering@lucent.com>
71324
71325         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
71326
71327 2000-06-18  Jim Meyering  <meyering@lucent.com>
71328
71329         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
71330
71331         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
71332         `checking whether...' message to be consistent with that of the
71333         lstat test.
71334
71335 2000-06-18  Jim Meyering  <meyering@lucent.com>
71336
71337         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
71338         Besides, these days every porting target provides a mkdir function.
71339
71340         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
71341         needed. (this snippet comes from src/system.h).
71342
71343 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
71344
71345         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
71346
71347 2000-06-15  Paul Eggert  <eggert@twinsun.com>
71348
71349         * lib/human.c (adjust_value): New function.
71350         (human_readable_inexact): Apply rounding style even when
71351         printing approximate values.
71352
71353 2000-06-14  Paul Eggert  <eggert@twinsun.com>
71354
71355         * lib/human.c (human_readable_inexact): Allow an input block
71356         size that is not a multiple of the output block size, and vice versa.
71357         Reported by Piergiorgio Sartor.
71358
71359 2000-06-14  Paul Eggert  <eggert@twinsun.com>
71360
71361         * lib/getdate.y (get_date): Apply relative times after time
71362         zone indicator, not before.  Reported by Todd A. Jacobs.
71363
71364 2000-06-13  Jim Meyering  <meyering@lucent.com>
71365
71366         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
71367
71368         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
71369
71370 2000-06-12  Paul Eggert  <eggert@twinsun.com>
71371
71372         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
71373
71374 2000-06-12  Jim Meyering  <meyering@lucent.com>
71375
71376         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
71377         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
71378         optional argument.
71379         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
71380         the optional argument, `lib'.
71381
71382 2000-06-08  Jim Meyering  <meyering@lucent.com>
71383
71384         * m4/largefile.m4: Remove file (now that it's part of autoconf).
71385
71386 2000-06-04  Paul Eggert  <eggert@twinsun.com>
71387
71388         Rewrite largefile configuration so that we don't need to run
71389         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
71390         AC_CANONICAL_HOST in configure.in -- jmm]
71391
71392         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
71393         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
71394         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
71395         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
71396         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
71397         All uses changed.
71398         Instead of inspecting the output of getconf, try to compile the
71399         test program without and with the macro definition.
71400         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
71401         for getconf.  Instead, check for the needed flags by compiling
71402         test programs.
71403
71404 2000-06-04  Paul Eggert  <eggert@twinsun.com>
71405
71406         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
71407
71408 2000-06-04  Jim Meyering  <meyering@lucent.com>
71409
71410         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
71411         SunOS 4.1.4 for which gid_t is an unsigned type.
71412
71413 2000-06-03  Jim Meyering  <meyering@lucent.com>
71414
71415         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
71416         now that autoconf requires that.
71417
71418         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
71419         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
71420         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
71421
71422 2000-06-03  Jim Meyering  <meyering@lucent.com>
71423
71424         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
71425
71426 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
71427
71428         * m4/glibc21.m4: New file.
71429         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
71430
71431 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
71432
71433         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
71434         newer, don't install charset.alias.
71435         * lib/config.charset: Change the Linux/glibc rules so they become empty
71436         on glibc-2.1 or newer.
71437
71438 2000-06-02  Jim Meyering  <meyering@lucent.com>
71439
71440         * lib/mountlist.c: Back out last change.  Instead, do this...
71441         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
71442         me_dummy member using the same `ignore'-testing code.
71443         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
71444         fs_type strings.
71445         From Mark D. Roth.
71446
71447 2000-05-29  Jim Meyering  <meyering@lucent.com>
71448
71449         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
71450         mounts with the `ignore' attribute.  Based on a patch from
71451         Mark D. Roth.
71452
71453 2000-05-28  Jim Meyering  <meyering@lucent.com>
71454
71455         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
71456         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71457         * m4/stat.m4: Likewise.
71458         * m4/lstat.m4: Likewise.
71459         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
71460
71461         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
71462         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
71463
71464 2000-05-26  Jim Meyering  <meyering@lucent.com>
71465
71466         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
71467
71468 2000-05-24  Jim Meyering  <meyering@lucent.com>
71469
71470         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
71471         autoconf requires that.
71472         * m4/lib-check.m4: Likewise.
71473         * m4/jm-macros.m4: Likewise.
71474         * m4/strftime.m4: Likewise.
71475
71476         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
71477         AC_CHECK_DECLS, now that autoconf requires that.
71478
71479 2000-05-22  Jim Meyering  <meyering@lucent.com>
71480
71481         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71482         * m4/lstat.m4: Likewise.
71483
71484 2000-05-22  Jim Meyering  <meyering@lucent.com>
71485
71486         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
71487
71488 2000-05-20  Jim Meyering  <meyering@lucent.com>
71489
71490         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
71491         (jm_PREREQ): Use it.
71492
71493 2000-05-18  Jim Meyering  <meyering@lucent.com>
71494
71495         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
71496         back, too, since it may have been modified by allocate_entry.
71497         (hash_delete): Rewrite to use neither the assignment operator
71498         nor the comma operator in an if-expression.
71499
71500 2000-05-15  Paul Eggert  <eggert@twinsun.com>
71501
71502         * lib/closeout.c:
71503         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
71504         Remove; no longer needed.
71505         "quotearg.h": Add include.
71506         (file_name): Do not bother to explicitly initialize to NULL; it's less
71507         efficient on some hosts.
71508         (close_stdout_status): Remove test as to whether stdout was already
71509         closed; it breaks for the case "echo x | sort >&-".
71510         Quote file name colons.
71511         Do not assume that _("write error") lacks format strings.
71512
71513 2000-05-15  Jim Meyering  <meyering@lucent.com>
71514
71515         * lib/version-etc.c (version_etc_copyright): Update the copyright
71516         string used in all --version output.
71517
71518 2000-05-14  Jim Meyering  <meyering@lucent.com>
71519
71520         * lib/closeout.c (close_stdout_set_file_name): New function.
71521         (close_stdout_status): Use new file-scoped global.
71522         Return right away if fstat says the stdout file descriptor is invalid.
71523         * lib/closeout.h (close_stdout_set_file_name): Declare.
71524
71525 2000-05-10  Jim Meyering  <meyering@lucent.com>
71526
71527         * lib/closeout.c [default_exit_status]: New file-scoped variable.
71528         (close_stdout_set_status): New function.
71529         * lib/closeout.h (close_stdout_set_status): Declare.
71530
71531 2000-05-09  Jim Meyering  <meyering@lucent.com>
71532
71533         * m4/gettext.m4: Rename this...
71534         * m4/libintl.m4: ...to this.
71535
71536 2000-05-08  Jim Meyering  <meyering@lucent.com>
71537
71538         * lib/long-options.c: Don't include closeout.h.
71539         (parse_long_options): Don't call close_stdout for --version.
71540
71541 2000-05-06  Paul Eggert  <eggert@twinsun.com>
71542
71543         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
71544         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
71545         2.1.3 bug.  This avoids a clash when files like regex.c define
71546         _GNU_SOURCE.
71547
71548 2000-05-06  Jim Meyering  <meyering@lucent.com>
71549
71550         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
71551         (AC_REPLACE_FUNCS): Add strnlen.
71552
71553         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
71554         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
71555
71556         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
71557         AC_SEARCH_LIBS call for nanosleep.
71558         (LIB_NANOSLEEP): Set and AC_SUBST.
71559
71560 2000-05-06  Jim Meyering  <meyering@lucent.com>
71561
71562         * lib/strnlen.c: Undefine __strnlen and strnlen.
71563         [!weak_alias]: Define __strnlen to strnlen.
71564
71565         * lib/atexit.c: New file, from libiberty.
71566
71567 2000-05-06  Jim Meyering  <meyering@lucent.com>
71568
71569         * lib/closeout.c (close_stdout_status): Also check for errors on the
71570         stderr stream.
71571
71572 2000-05-05  Jim Meyering  <meyering@lucent.com>
71573
71574         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
71575         AC_SEARCH_LIBS call for clock_gettime.
71576         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
71577
71578         * m4/search-libs.m4: Update from autoconf.
71579
71580         su doesn't work on Solaris 2.6.
71581         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
71582         <shadow.h>.  Reported by Dragos Harabor.
71583
71584 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
71585
71586         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
71587         memcpy instead of xmalloc, xrealloc, path_concat.
71588         (locale_charset): Treat empty environment variables as absent.
71589         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
71590
71591 2000-05-04  Jim Meyering  <meyering@lucent.com>
71592
71593         * lib/getopt.c: Update from glibc.
71594         * lib/obstack.c: Likewise.
71595         * lib/obstack.h: Likewise.
71596         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
71597         file
71598
71599         * lib/regex.h: Likewise.
71600         * lib/strndup.c: Likewise.
71601         * lib/strnlen.c: New file, from glibc.
71602
71603 2000-05-03  Jim Meyering  <meyering@lucent.com>
71604
71605         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
71606
71607 2000-05-02  Paul Eggert  <eggert@twinsun.com>
71608
71609         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
71610         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
71611         compile-time test, rather than inspecting host and OS, to
71612         decide whether to define _LARGEFILE_SOURCE.
71613
71614 2000-05-01  Jim Meyering  <meyering@lucent.com>
71615
71616         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
71617
71618         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
71619         Based on a patch from Bruno Haible.
71620
71621 2000-05-01  Jim Meyering  <meyering@lucent.com>
71622
71623         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
71624
71625 2000-04-29  Jim Meyering  <meyering@lucent.com>
71626
71627         * lib/path-concat.c: Declare strdup only if it's not defined.
71628         * lib/canon-host.c: Likewise.
71629
71630 2000-04-28  Jim Meyering  <meyering@lucent.com>
71631
71632         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
71633         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
71634         is included first, then limits.h is included by locale.h by libintl.h.
71635         From John David Anglin.
71636
71637 2000-04-25  Jim Meyering  <meyering@lucent.com>
71638
71639         * lib/makepath.c (S_IRWXUGO): Define.
71640         (make_path): Always perform explicit chmod if MODE specifies any
71641         of the `special' permission bits.  Prompted by a bug report against
71642         install from Mate Wierdl and Joost van Baal.
71643
71644 2000-04-18  Jim Meyering  <meyering@lucent.com>
71645
71646         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
71647         (jm_PREREQ): Use it.
71648
71649 2000-04-18  Jim Meyering  <meyering@lucent.com>
71650
71651         * lib/README: New file.
71652
71653         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
71654         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
71655
71656 2000-04-17  Jim Meyering  <meyering@lucent.com>
71657
71658         Get it right :-)
71659         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
71660         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
71661         Suggestion from Akim Demaille.
71662
71663 2000-04-17  Jim Meyering  <meyering@lucent.com>
71664
71665         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
71666         the definition of it to rpl_strftime also defined-away the system's
71667         declaration.
71668
71669 2000-04-15  Jim Meyering  <meyering@lucent.com>
71670
71671         Use `C' to denote so-called `contiguous' files, the same way
71672         that tar does.
71673         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
71674         (ftypelet): Use S_ISCTG.
71675         From Michael Deutschmann.
71676
71677 2000-04-14  Jim Meyering  <meyering@lucent.com>
71678
71679         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
71680         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
71681         clobbered.
71682
71683 2000-04-14  Jim Meyering  <meyering@lucent.com>
71684
71685         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
71686
71687 2000-04-13  Jim Meyering  <meyering@lucent.com>
71688
71689         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
71690         AH_VERBATIM to insert required #ifndef into config.h.in.
71691         Suggestion from Akim Demaille.
71692
71693 2000-04-12  Jim Meyering  <meyering@lucent.com>
71694
71695         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
71696         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
71697         Christian Krackowizer.
71698
71699         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
71700         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
71701         (AC_SYS_LARGEFILE): Require.
71702         (AM_C_PROTOTYPES): Require.
71703
71704 2000-04-08  Jim Meyering  <meyering@lucent.com>
71705
71706         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
71707         names don't conflict.  Reported by Eli Zaretskii.
71708
71709 2000-04-07  Jim Meyering  <meyering@lucent.com>
71710
71711         * lib/putenv.c: Move inclusion of errno.h so it follows that of
71712         sys/types.h, to work around system header problems on AIX 3.2.5.
71713         From Bruno Haible.
71714
71715 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
71716
71717         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
71718         bug.  Deal with the different error behavior of Irix iconv.
71719
71720 2000-04-05  Paul Eggert  <eggert@twinsun.com>
71721
71722         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
71723         IRIX if the installer said otherwise.
71724
71725 2000-04-05  Jim Meyering  <meyering@lucent.com>
71726
71727         Portability tweaks required for ultrix4.3.
71728         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
71729         (jm_CHECK_DECLS): Add getutent to the list of functions.
71730         (_jm_DECL_HEADERS): Add utmpx.h.
71731         From John David Anglin.
71732
71733         * m4/strftime.m4: Back out the 2000-04-02 change.
71734         Instead of that change, simply undefine putenv in the test program.
71735
71736 2000-04-05  Jim Meyering  <meyering@lucent.com>
71737
71738         Portability tweaks required for ultrix4.3.
71739         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
71740         getutent.
71741         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
71742         * lib/canon-host.c: Declare strdup.
71743         * lib/path-concat.c: Likewise.
71744         From John David Anglin.
71745
71746 2000-04-04  Jim Meyering  <meyering@lucent.com>
71747
71748         Be more DOS 8.3-friendly.
71749         * lib/ref-add.sin: Renamed from ref-add.sed.in.
71750         * lib/ref-del.sin: Renamed from ref-del.sed.in.
71751         * lib/Makefile.am: Reflect renaming.
71752         Reported by Eli Zaretskii.
71753
71754         Use a temporary file name that won't clash with `charset.alias'
71755         in the DOS 8.3 name space.
71756         * lib/Makefile.am (charset_tmp): Define.
71757         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
71758         (uninstall-local): Likewise.
71759         Reported by Eli Zaretskii.
71760
71761 2000-04-03  Jim Meyering  <meyering@lucent.com>
71762
71763         * m4/gettext.m4: Fix typo in comment.
71764
71765         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
71766         textutils/configure.in).  Suggestion from Paul Eggert.
71767         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
71768
71769 2000-04-02  Paul Eggert  <eggert@twinsun.com>
71770
71771         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
71772         variable in the shell rather than using putenv, which isn't
71773         portable.  This avoids the configure-time inter-test dependency
71774         on the potentially-renamed putenv function.
71775
71776 2000-03-30  Paul Eggert  <eggert@twinsun.com>
71777
71778         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
71779         before checking struct stat.st_blksize, so that
71780         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
71781
71782 2000-03-29  Paul Eggert  <eggert@twinsun.com>
71783
71784         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
71785         since strftime.c uses HAVE_STRFTIME to decide whether to use
71786         the underlying strftime.
71787
71788 2000-03-29  Paul Eggert  <eggert@twinsun.com>
71789
71790         * lib/time/strftime.c (my_strftime): Make sure we call the system
71791         strftime, not ourselves, when invoking the underlying strftime.
71792
71793 2000-03-24  Jim Meyering  <meyering@lucent.com>
71794
71795         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
71796         (charset_alias): Define.
71797         (install-exec-local): Factor out common code.
71798         (uninstall-local): Split lines longer than 80.
71799         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
71800         (SUFFIXES): Define.
71801         (.sed.in.sed): New rule.  Don't redirect directly to $@.
71802         (CLEANFILES): Add ref-add.sed and ref-del.sed.
71803
71804 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
71805
71806         * lib/config.charset: Output a line containing "Packages using this
71807         file".
71808         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
71809         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
71810         ref-del.sed): New rules.
71811
71812 2000-03-17  Jim Meyering  <meyering@lucent.com>
71813
71814         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
71815         Otherwise, include <strings.h>
71816
71817 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
71818
71819         * lib/unicodeio.c (utf8_wctomb): New function.
71820         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
71821         format instead of in UCS-4 with platform dependent endianness.
71822
71823 2000-03-10  Jim Meyering  <meyering@lucent.com>
71824
71825         * m4/lib-check.m4: Look for getspnam in -lgen, too.
71826         From Marco Franzen.
71827
71828 2000-03-07  Paul Eggert  <eggert@twinsun.com>
71829
71830         * lib/savedir.c (savedir): Work even if directory size is
71831         negative; this can happen with some screwy NFS configurations.
71832
71833 2000-03-06  Jim Meyering  <meyering@lucent.com>
71834
71835         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
71836         if it's NULL (because we ran out of memory).  From Bruno Haible.
71837
71838 2000-03-05  Jim Meyering  <meyering@lucent.com>
71839
71840         * lib/localcharset.c ("path-concat.h"): Include.
71841         (get_charset_aliases): Use path_concat instead of ANSI string
71842         concatenation.
71843
71844         * lib/unicodeio.h (PARAMS): Define.
71845         Use it to guard prototype.
71846
71847 2000-03-04  Jim Meyering  <meyering@lucent.com>
71848
71849         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
71850         for lib/localcharset.c.
71851
71852 2000-03-04  Jim Meyering  <meyering@lucent.com>
71853
71854         * lib/Makefile.am (install-exec-local): Create $(libdir) before
71855         installing into it.
71856         (uninstall-local): Uncomment this rule so `make distcheck' works
71857         once again.
71858
71859         * lib/unicodeio.c (<errno.h>): Include it.
71860         (errno): Declare if not defined.
71861
71862         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
71863
71864         * lib/config.charset: New version, incorporating remarks from a linux
71865         i18n mailing list.  From Bruno Haible.
71866
71867 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
71868
71869         * m4/codeset.m4: New file.
71870         * m4/iconv.m4: New file.
71871         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
71872
71873 2000-03-03  Jim Meyering  <meyering@lucent.com>
71874
71875         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
71876
71877 2000-03-02  Jim Meyering  <meyering@lucent.com>
71878
71879         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
71880         the messages come out on separate lines.
71881
71882         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
71883         rather than jm_CHECK_DECLARATIONS.
71884         * m4/decl.m4: Remove now-unused file.
71885
71886         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
71887         geteuid.
71888
71889 2000-03-02  Jim Meyering  <meyering@lucent.com>
71890
71891         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
71892
71893 2000-03-01  Jim Meyering  <meyering@lucent.com>
71894
71895         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
71896         * lib/unicodeio.c: Likewise.
71897
71898 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
71899
71900         * lib/config.charset: New file.
71901         * lib/localcharset.c: New file.
71902         * lib/unicodeio.h, lib/unicodeio.c: New files.
71903         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
71904         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
71905         (noinst_HEADERS): Add unicodeio.h.
71906         (all-local, install-exec-local, charset.alias): New targets.
71907
71908 2000-02-28  Paul Eggert  <eggert@twinsun.com>
71909
71910         * lib/quotearg.c (ALERT_CHAR): New macro.
71911         (quotearg_buffer_restyled): Use it.
71912
71913 2000-02-27  Jim Meyering  <meyering@lucent.com>
71914
71915         * m4/check-decl.m4: Add getenv to the list.
71916
71917 2000-02-27  Jim Meyering  <meyering@lucent.com>
71918
71919         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
71920         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
71921
71922         * lib/backupfile.c: Guard inclusion of stdlib.h with
71923         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
71924         Declare malloc if needed.
71925
71926         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
71927         `#ifndef HAVE_DECL..'
71928         now that autoconf always defines the HAVE_DECL_ symbols.
71929         * lib/human.c: Likewise.
71930         * lib/same.c: Likewise.
71931         * lib/strtoumax.c: Likewise.
71932
71933         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
71934         declaration check was not run.
71935         * lib/hash.c: Likewise.
71936         * lib/human.c: Likewise.
71937         * lib/same.c: Likewise.
71938         * lib/strtoumax.c: Likewise.
71939
71940         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
71941         `.', then first look up the entire `.'-containing string as a login
71942         name.
71943
71944 2000-02-23  Jim Meyering  <meyering@lucent.com>
71945
71946         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
71947         in place of my hack.
71948
71949 2000-02-18  Paul Eggert  <eggert@twinsun.com>
71950
71951         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
71952         (textint): New typedef.
71953         (parser_control): Member year changed from int to textint.
71954         All uses changed.
71955         (YYSTYPE): Removed; replaced by %union with int and textint members.
71956         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
71957         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
71958         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
71959         (tSNUMBER, tUNUMBER): Now of type <textintval>.
71960         (date, number, to_year): Use width of number in digits, not its value,
71961         to determine whether it's a 2-digit year, or a 2-digit time.
71962         (yylex): Store number of digits of numeric tokens.
71963         Reported by John Kendall.
71964
71965         (parser_control): Changed from struct parser_control to typedef (for
71966         consistency).  All uses changed.
71967
71968         (tID): Removed; not used.
71969         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
71970
71971 2000-02-14  Paul Eggert  <eggert@twinsun.com>
71972
71973         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
71974         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
71975
71976 2000-02-12  Jim Meyering  <meyering@lucent.com>
71977
71978         * lib/userspec.c (ISDIGIT): Define it.
71979         (isdigit): Remove definition.
71980         (is_number): Use ISDIGIT, not isdigit.
71981         <libintl.h>: Include.
71982         (_ and N_): Define.
71983         (parse_user_spec): Mark translatable strings.
71984
71985 2000-02-10  Jim Meyering  <meyering@lucent.com>
71986
71987         With these changes, nanosleep.[ch] are finally enough like the other
71988         lib/* replacement files to compile on a few more losing systems.
71989
71990         * lib/nanosleep.h: Don't include config.h.
71991         Remove prototype from declaration of nanosleep.
71992         (PARAMS): Remove now-unneeded definition.
71993         * lib/nanosleep.c: #undef nanosleep.
71994         (rpl_nanosleep): Rename from nanosleep.
71995
71996 2000-02-10  Jim Meyering  <meyering@lucent.com>
71997
71998         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
71999         gnu_nanosleep to rpl_nanosleep.
72000
72001 2000-02-09  Jim Meyering  <meyering@lucent.com>
72002
72003         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
72004         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
72005
72006 2000-02-08  Akim Demaille  <akim@epita.fr>
72007
72008         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
72009         `[' and `]' and remove uses of `changequote'.
72010         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
72011         (AC_SYS_LARGEFILE): Likewise.
72012         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
72013         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
72014         of changequote.
72015         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
72016         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
72017         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
72018         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
72019
72020 2000-02-05  Jim Meyering  <meyering@lucent.com>
72021
72022         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
72023         Remove explicit use of AC_HEADER_TIME.  It is required by
72024         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
72025         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
72026         in autoconf whereby the expansion of the latter ended up preceding
72027         the expansion of its prerequisite, AC_HEADER_TIME.
72028         Reported by Volker Borchert.
72029
72030 2000-02-03  Jim Meyering  <meyering@lucent.com>
72031
72032         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
72033
72034 2000-02-03  Jim Meyering  <meyering@lucent.com>
72035
72036         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
72037         rather than with `#if HAVE_UTMPNAME'.
72038
72039 2000-02-02  Jim Meyering  <meyering@lucent.com>
72040
72041         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
72042         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
72043         Reported by Eli Zaretskii.
72044
72045 2000-02-01  Jim Meyering  <meyering@lucent.com>
72046
72047         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
72048
72049 2000-01-31  Jim Meyering  <meyering@lucent.com>
72050
72051         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
72052         functions.  Add the time.h and sys/time.h headers along with the
72053         AC_REQUIRE'ment of AC_HEADER_TIME.
72054
72055 2000-01-31  Jim Meyering  <meyering@lucent.com>
72056
72057         * lib/nanosleep.h (nanosleep): Guard declaration with
72058         `#if ! HAVE_DECL_NANOSLEEP'.
72059         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
72060         the declaration in that vendor's sys/timers.h.
72061         Reported by Christian Krackowizer.
72062
72063         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
72064         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
72065         (ISPRINT): Likewise.
72066         Reported by Tom Tromey.
72067
72068 2000-01-30  Jim Meyering  <meyering@lucent.com>
72069
72070         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
72071
72072         * m4/prereq.m4 (utmp_includes): Define.
72073         Check for ut_user and ut_name members in both struct utmpx
72074         and struct utmp.
72075
72076 2000-01-30  Jim Meyering  <meyering@lucent.com>
72077
72078         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
72079         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
72080         header files where only utmpx.ut_user is declared.
72081
72082         * lib/readutmp.h (UT_USER): Define.
72083
72084 2000-01-29  Jim Meyering  <meyering@lucent.com>
72085
72086         * m4/lib-check.m4: New file containing library-related checks from
72087         fileutils and sh-utils (textutils had none).
72088
72089 2000-01-28  Jim Meyering  <meyering@lucent.com>
72090
72091         * m4/perl.m4: Change format of warning message to look more like that
72092         from the missing script.  Suggestion from François Pinard.
72093
72094 2000-01-25  Jim Meyering  <meyering@lucent.com>
72095
72096         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
72097         well as time.h in the compile check.
72098         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
72099         Fix typo in cross-compiling case: s/yes/no/.
72100
72101 2000-01-23  Jim Meyering  <meyering@lucent.com>
72102
72103         * m4/jm-macros.m4: Move df-related tests here from
72104         fileutils/configure.in
72105
72106         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
72107         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
72108
72109         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
72110         s/space/ac_fsusage_space/.
72111         (jm_FILE_SYSTEM_USAGE): Take two parameters.
72112
72113         * m4/ftruncate.m4: New file (derived from part of
72114         fileutils/configure.in).
72115         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
72116         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
72117
72118         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
72119         AC_SUBST these here, rather than just in sh-util/configure.in, so
72120         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
72121         all the same.
72122         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
72123         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
72124         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
72125         (AC_SUBST(POW_LIBM)): Likewise.
72126         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
72127
72128 2000-01-23  Jim Meyering  <meyering@lucent.com>
72129
72130         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
72131         obstack.c.
72132
72133 2000-01-22  Jim Meyering  <meyering@lucent.com>
72134
72135         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
72136
72137         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
72138
72139         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
72140         configure.in
72141         (AC_CHECK_HEADERS): Likewise for sh-utils.
72142         (AC_CHECK_HEADERS): Likewise for textutils.
72143         Merge the three lists of headers.
72144
72145         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
72146         from fileutils' configure.in.
72147
72148         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
72149         code. Moved tests into their own function (_jm_DECL_HEADERS) in
72150         check-decl.m4.
72151
72152         * m4/check-decl.m4: Use #if rather than #ifdef.
72153         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
72154         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
72155         (_jm_DECL_HEADERS): Define new function.
72156         (jm_CHECK_DECLARATIONS): Require it.
72157
72158 2000-01-22  Jim Meyering  <meyering@lucent.com>
72159
72160         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
72161         [! HAVE_DECL_STRTOULL]: Declare strtoull.
72162         Required for some AIX systems.  Reported by Christian Krackowizer.
72163         [TESTING] (main): New function.
72164
72165         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
72166         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
72167         letters.
72168
72169         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
72170         iswprint.
72171
72172         * lib/strverscmp.c (ISDIGIT): Define.
72173         (strverscmp): Use ISDIGIT, not isdigit.
72174
72175 2000-01-19  Jim Meyering  <meyering@lucent.com>
72176
72177         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
72178         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
72179         defines `struct timespec' in <sys/time.h>
72180
72181         * m4/c-bs-a.m4: Remove uses of changequote altogether.
72182         Thanks to Akim for explaining.
72183
72184 2000-01-17  Paul Eggert  <eggert@twinsun.com>
72185
72186         * lib/nanosleep.c (nanosleep):
72187         Don't use SA_INTERRUPT to decide whether to call sigaction, as
72188         POSIX.1 doesn't require SA_INTERRUPT and some systems
72189         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
72190         it's been part of POSIX.1 since day 1 (in 1988).
72191
72192 2000-01-17  Jim Meyering  <meyering@lucent.com>
72193
72194         * lib/interlock: Remove unused file.  Reported by François Pinard.
72195
72196 2000-01-16  Paul Eggert  <eggert@twinsun.com>
72197
72198         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
72199         alert, backslash, formfeed, and vertical tab unnecessarily in
72200         shell quoting style.
72201
72202 2000-01-16  Jim Meyering  <meyering@lucent.com>
72203
72204         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
72205         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
72206         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
72207         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
72208
72209 2000-01-16  Jim Meyering  <meyering@lucent.com>
72210
72211         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
72212         because the latter didn't work.
72213
72214 2000-01-15  Jim Meyering  <meyering@lucent.com>
72215
72216         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
72217         (AC_REPLACE_FUNCS): Add memcpy and memset.
72218         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
72219         Add strpbrk.
72220         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
72221
72222 2000-01-12  Jim Meyering  <meyering@lucent.com>
72223
72224         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
72225         (jm_PREREQ): Use it.
72226         (jm_PREREQ_READUTMP): New macro.
72227         (jm_PREREQ): Use it.
72228
72229 2000-01-11  Paul Eggert  <eggert@twinsun.com>
72230
72231         Quote multibyte characters correctly.
72232         * m4/c-bs-a.m4: New file.
72233         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
72234         (jm_PREREQ): Use it.
72235
72236 2000-01-11  Paul Eggert  <eggert@twinsun.com>
72237
72238         * m4/uintmax_t.m4: Port to autoconf 2.13.
72239
72240 2000-01-08  Jim Meyering  <meyering@ascend.com>
72241
72242         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
72243         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
72244
72245 2000-01-04  Jim Meyering  <meyering@ascend.com>
72246
72247         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
72248         jm_STRUCT_DIRENT_D_TYPE.
72249         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
72250         jm_STRUCT_DIRENT_D_INO.
72251         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
72252         jm_STRUCT_UTIMBUF.
72253         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
72254         renamings.
72255         * m4/utime.m4: Likewise.
72256
72257         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
72258         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
72259
72260 2000-01-03  Paul Eggert  <eggert@twinsun.com>
72261
72262         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
72263         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
72264
72265 2000-01-02  Jim Meyering  <meyering@ascend.com>
72266
72267         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
72268         remember if this is necessary.
72269
72270 1999-12-26  Jim Meyering  <meyering@ascend.com>
72271
72272         * m4/jm-macros.m4: Use it here.
72273         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
72274
72275 1999-12-23  Jim Meyering  <meyering@ascend.com>
72276
72277         * m4/jm-macros.m4: Check for clock_gettime (moved from
72278         fileutils/configure.in)
72279         Check for gettimeofday.
72280
72281 1999-12-20  Jim Meyering  <meyering@ascend.com>
72282
72283         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
72284         autoconf-2.14a-1999-12-20.
72285
72286 1999-12-19  Jim Meyering  <meyering@ascend.com>
72287
72288         * m4/lstat-slash.m4: New file.
72289         * m4/jm-macros.m4: Use the new macro:
72290         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72291
72292 1999-12-07  Jim Meyering  <meyering@ascend.com>
72293
72294         * m4/perl.m4: Require that File::Compare be available, too.
72295         Too many systems seem to lack it.
72296
72297         * m4/strftime.m4: Add checks for most of the cpp macros tested in
72298         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
72299
72300 1999-11-18  Paul Eggert  <eggert@twinsun.com>
72301
72302         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
72303         problem with the QNX 4.25 shell, which doesn't propagate exit
72304         status of failed commands inside shell assignments.
72305
72306 1999-11-17  Jim Meyering  <meyering@ascend.com>
72307
72308         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
72309
72310 1999-11-07  Jim Meyering  <meyering@ascend.com>
72311
72312         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
72313
72314 1999-11-06  Jim Meyering  <meyering@ascend.com>
72315
72316         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
72317         * m4/jm-macros.m4 (jm_MACROS): Use it here.
72318
72319 1999-11-05  Jim Meyering  <meyering@ascend.com>
72320
72321         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
72322         configure.in of textutils, fileutils, and sh-utils into this one
72323         (shared between those packages) file.
72324         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
72325         AC_STRUCT_ST_BLKSIZE.
72326
72327 1999-11-03  Jim Meyering  <meyering@ascend.com>
72328
72329         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
72330         of AC_CHECK_TYPE checks includes unistd.h.
72331         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
72332         Suggestion from Akim Demaille.
72333
72334 1999-10-30  Jim Meyering  <meyering@ascend.com>
72335
72336         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
72337         m4-quoted string.
72338         * m4/ls-mntd-fs.m4: Likewise.
72339         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
72340         * m4/jm-winsz1.m4: Likewise.
72341
72342         * m4/const.m4: Remove file, since the fix made it into the experimental
72343         version of autoconf.
72344         * m4/mktime.m4: Likewise.
72345
72346         * m4/check-type.m4: Remove file, now that the latest version of
72347         AC_CHECK_TYPE takes a third arg to specify additional #includes.
72348
72349         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
72350         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
72351         AC_CHECK_TYPE.
72352
72353 1999-10-04  Jim Meyering  <meyering@ascend.com>
72354
72355         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
72356
72357 1999-09-22  Paul Eggert  <eggert@twinsun.com>
72358
72359         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
72360         2.95.1 bug with HP-UX 10.20.
72361
72362 1999-09-17  Jim Meyering  <meyering@ascend.com>
72363
72364         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
72365         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
72366         due to missing strdup (against sh-utils-2.0).
72367
72368 1999-08-29  Jim Meyering  <meyering@ascend.com>
72369
72370         * m4/jm-macros.m4: Require jm_BISON.
72371         * m4/bison.m4: New file.
72372
72373 1999-08-17  Paul Eggert  <eggert@twinsun.com>
72374
72375         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
72376         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
72377
72378 1999-08-05  Jim Meyering  <meyering@ascend.com>
72379
72380         * m4/getline.m4: Rename test file from conftestdata to conftest.data
72381         to avoid conflicts with `conftest' on 8+3 filesystems.
72382         Suggestion from Eli Zaretskii.
72383
72384 1999-08-04  Jim Meyering  <meyering@ascend.com>
72385
72386         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
72387         fileutils and sh-utils (textutils's getline test was inadequate).
72388         (AM_FUNC_GETLINE): Run this test.
72389         (AC_CHECK_FUNCS): Check for getdelim.
72390         Reported by Bob Proulx.
72391
72392 1999-08-02  Jim Meyering  <meyering@ascend.com>
72393
72394         * m4/jm-macros.m4: Add a comment.
72395
72396 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72397
72398         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
72399         <inttypes.h> defines strtoumax as a macro (and not as a
72400         function).
72401
72402 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72403
72404         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
72405         that we can shift, multiply and divide unsigned long long
72406         values; Ultrix cc can't do it.
72407
72408 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72409
72410         * m4/mktime.m4: New file, which is a preview of what should appear
72411         in the next public autoconf release.
72412
72413 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72414
72415         * m4/lfs.m4: Remove this file.
72416         * m4/largefile.m4: New file.  It contains the old contents of
72417         lfs.m4, except that all names with prefix AC_LFS have been
72418         changed to use the prefix AC_SYS_LARGEFILE instead, to be
72419         compatible with future autoconf versions.  Also, some minor m4
72420         quoting problems have been fixed.
72421
72422 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72423
72424         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
72425         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
72426         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
72427         and simplify the shell code.
72428
72429 1999-08-01  Jim Meyering  <meyering@ascend.com>
72430
72431         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
72432         m4.
72433
72434 1999-07-20  Jim Meyering  <meyering@ascend.com>
72435
72436         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
72437
72438 1999-07-15  Jim Meyering  <meyering@ascend.com>
72439
72440         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
72441
72442 1999-05-22  Jim Meyering  <meyering@ascend.com>
72443
72444         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
72445
72446 1999-05-20  Jim Meyering  <meyering@ascend.com>
72447
72448         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
72449         Add a colon after each `then' in case $4 is empty.
72450
72451 1999-05-16  Jim Meyering  <meyering@ascend.com>
72452
72453         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
72454
72455 1999-05-10  Jim Meyering  <meyering@ascend.com>
72456
72457         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
72458
72459         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
72460         AC_FUNC_MKTIME.
72461
72462 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
72463
72464         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
72465
72466 1999-05-04  Paul Eggert  <eggert@twinsun.com>
72467
72468         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
72469         not CPPFLAGS, so that linking works correctly in IRIX.
72470
72471 1999-04-30  Paul Eggert  <eggert@twinsun.com>
72472
72473         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
72474
72475 1999-04-20  Paul Eggert  <eggert@twinsun.com>
72476
72477         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
72478         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
72479         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
72480         jm_AC_TYPE_UNSIGNED_LONG_LONG.
72481         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
72482
72483         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
72484
72485 1999-04-20  Jim Meyering  <meyering@ascend.com>
72486
72487         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
72488         AC_REPLACE xstroull if necessary.  From Paul Eggert.
72489         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
72490
72491 1999-04-18  Jim Meyering  <meyering@ascend.com>
72492
72493         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
72494         * m4/jm-macros.m4: Use it.
72495
72496 1999-04-06  Jim Meyering  <meyering@ascend.com>
72497
72498         * m4/strftime.m4: Remove test for %f.
72499
72500 1999-03-29  Jim Meyering  <meyering@ascend.com>
72501
72502         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
72503         superset of the AC_TYPE_* checks in the textutils, fileutils,
72504         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
72505         AC_TYPE_PID_T.
72506
72507 1999-03-28  Jim Meyering  <meyering@ascend.com>
72508
72509         * m4/jm-macros.m4: Define GNU_PACKAGE here.
72510         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
72511         replaced e.g., in the *.sh files of the sh-utils.
72512
72513 1999-03-20  Jim Meyering  <meyering@ascend.com>
72514
72515         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
72516         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
72517         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
72518
72519 1999-03-19  Jim Meyering  <meyering@ascend.com>
72520
72521         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
72522
72523 1999-03-12  Jim Meyering  <meyering@ascend.com>
72524
72525         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
72526
72527 1999-03-07  Jim Meyering  <meyering@ascend.com>
72528
72529         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
72530         declared.
72531
72532 1999-02-17  Jim Meyering  <meyering@ascend.com>
72533
72534         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
72535         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
72536
72537 1999-02-07  Jim Meyering  <meyering@ascend.com>
72538
72539         * m4/group-member.m4: New file -- extracted from sh-utils'
72540         configure.in.
72541
72542         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
72543         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
72544
72545 1999-02-06  Jim Meyering  <meyering@ascend.com>
72546
72547         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
72548         * m4/fnmatch.m4: Likewise.
72549         * m4/getgroups.m4: Likewise.
72550         * m4/lstat.m4: Likewise.
72551         * m4/malloc.m4: Likewise.
72552         * m4/putenv.m4: Likewise.
72553         * m4/realloc.m4: Likewise.
72554         * m4/regex.m4: Likewise.
72555         * m4/stat.m4: Likewise.
72556         * m4/strftime.m4: Likewise.
72557         Suggestion from Alain Magloire.
72558
72559         * m4/chown.m4: Use `.$ac_objext', not `.o'.
72560         * m4/fnmatch.m4: Likewise.
72561         * m4/getgroups.m4: Likewise.
72562         * m4/getline.m4: Likewise.
72563         * m4/lstat.m4: Likewise.
72564         * m4/malloc.m4: Likewise.
72565         * m4/memcmp.m4: Likewise.
72566         * m4/putenv.m4: Likewise.
72567         * m4/realloc.m4: Likewise.
72568         * m4/regex.m4: Likewise.
72569         * m4/stat.m4: Likewise.
72570         * m4/strftime.m4: Likewise.
72571         Suggestion from Alain Magloire.
72572
72573         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
72574         an argument.
72575
72576         * m4/regex.m4: Add a run-time Test for proper operation of
72577         re_compile_pattern.
72578
72579 1999-01-31  Jim Meyering  <meyering@ascend.com>
72580
72581         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
72582
72583 1999-01-30  Jim Meyering  <meyering@ascend.com>
72584
72585         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
72586
72587         * m4/jm-mktime.m4: Make this a wrapper around the official
72588         AM_FUNC_MKTIME rather than my private copy, now that the official one
72589         is up to date.
72590         * m4/mktime.m4: Remove file.
72591
72592         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
72593         * m4/uptime.m4: Likewise.
72594         * m4/uintmax_t.m4: Likewise.
72595
72596 1999-01-28  Jim Meyering  <meyering@ascend.com>
72597
72598         * m4/jm-macros.m4: Use jm_AFS.
72599         * m4/afs.m4: New file (from fileutils' configure.in).
72600
72601         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
72602         * m4/chown.m4: Likewise.
72603         * m4/d-ino.m4: Likewise.
72604         * m4/d-type.m4: Likewise.
72605         * m4/fnmatch.m4: Likewise.
72606         * m4/getgroups.m4: Likewise.
72607         * m4/gettext.m4: Likewise.
72608         * m4/jm-mktime.m4: Likewise.
72609         * m4/jm-winsz2.m4: Likewise.
72610         * m4/lcmessage.m4: Likewise.
72611         * m4/ls-mntd-fs.m4: Likewise.
72612         * m4/malloc.m4: Likewise.
72613         * m4/memcmp.m4: Likewise.
72614         * m4/putenv.m4: Likewise.
72615         * m4/realloc.m4: Likewise.
72616         * m4/st_mtim.m4: Likewise.
72617         * m4/strftime.m4: Likewise.
72618
72619 1999-01-16  Jim Meyering  <meyering@ascend.com>
72620
72621         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
72622         (ARGMATCH_DIE_DECL): Define.
72623
72624 1999-01-12  Jim Meyering  <meyering@ascend.com>
72625
72626         * m4/Makefile.am.in: Rewrite to avoid using fmt.
72627         Reported by Lars Hecking.
72628
72629 1999-01-10  Jim Meyering  <meyering@ascend.com>
72630
72631         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
72632         gross kludge.
72633         * m4/inttypes_h.m4: Likewise.
72634         * m4/lstat.m4: Likewise.
72635         * m4/malloc.m4: Likewise.
72636         * m4/readdir.m4: Likewise.
72637         * m4/realloc.m4: Likewise.
72638         * m4/st_dm_mode.m4: Likewise.
72639         * m4/stat.m4: Likewise.
72640         * m4/utimbuf.m4: Likewise.
72641         * m4/utimes.m4: Likewise.
72642
72643         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
72644         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
72645         comments in config.h.in are meaningful.
72646
72647         * m4/jm-macros.m4: Require autoconf-2.13 here.
72648
72649         * m4/regex.m4: By default, don't use the included regex.c on systems
72650         with glibc 2.  Suggestion from Uli Drepper.
72651
72652 1999-01-02  Jim Meyering  <meyering@ascend.com>
72653
72654         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
72655
72656 1998-12-18  Jim Meyering  <meyering@ascend.com>
72657
72658         * m4/Makefile.am.in (Makefile.am): Simplify rule.
72659         Based on a suggestion from Lars Hecking.
72660
72661 1998-11-16  Paul Eggert  <eggert@twinsun.com>
72662
72663         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
72664
72665 1998-11-16  Jim Meyering  <meyering@ascend.com>
72666
72667         * m4/lfs.m4: Double-quote the `uname...` expression.
72668
72669 1998-11-14  Jim Meyering  <meyering@ascend.com>
72670
72671         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
72672         * m4/stat.m4: Likewise.
72673
72674 1998-11-03  Jim Meyering  <meyering@ascend.com>
72675
72676         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
72677         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
72678
72679 1998-10-18  Jim Meyering  <meyering@ascend.com>
72680
72681         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
72682
72683 1998-10-17  Jim Meyering  <meyering@ascend.com>
72684
72685         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
72686         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
72687         calls for those previously hard-coded headers.  Instead, take a new
72688         parameter.
72689         (jm_CHECK_DECLARATIONS): Reflect interface change.
72690         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
72691         (jm_CHECK_DECL_LOCALTIME_R): New macro.
72692
72693         * m4/mktime.m4: Test for spring-forward gap before long-running test.
72694
72695 1998-10-14  Jim Meyering  <meyering@ascend.com>
72696
72697         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
72698         instead of "TZ=America/Vancouver".  From Paul Eggert.
72699
72700 1998-10-11  Jim Meyering  <meyering@ascend.com>
72701
72702         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
72703         This adds a test for a recently added compatibility fix for mktime.c.
72704         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
72705
72706 1998-09-27  Jim Meyering  <meyering@ascend.com>
72707
72708         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
72709
72710         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
72711         ../configure.in, including a change from Gordon Matzigkeit to allow
72712         cross-compiling for the Hurd.
72713
72714         * m4/glibc.m4: New file/macro to test for the GNU C Library
72715         versions 1 and 2.  From Gordon Matzigkeit.
72716         Indent.
72717
72718 1998-09-21  Jim Meyering  <meyering@ascend.com>
72719
72720         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
72721
72722 1998-08-18  Paul Eggert  <eggert@twinsun.com>
72723
72724         Port nanosecond-resolution times to UnixWare 2.1.2 and
72725         pedantic Solaris 2.6.
72726
72727         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
72728         AC_STRUCT_ST_MTIM.
72729         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
72730         Generate name of ns member, instead of just 1 or undef.
72731         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
72732
72733 1998-08-15  Jim Meyering  <meyering@ascend.com>
72734
72735         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
72736         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
72737         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
72738         instead of jm_TYPE_SSIZE_T.
72739
72740 1998-08-12  Jim Meyering  <meyering@ascend.com>
72741
72742         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
72743
72744 1998-08-02  Jim Meyering  <meyering@ascend.com>
72745
72746         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
72747         in acconfig.h manually.
72748
72749 1998-07-31  Paul Eggert  <eggert@twinsun.com>
72750
72751         * m4/st_mtim.m4: New file.
72752
72753 1998-07-28  Jim Meyering  <meyering@ascend.com>
72754
72755         * m4/utimes.m4: Undef stat.
72756
72757 1998-07-25  Jim Meyering  <meyering@ascend.com>
72758
72759         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
72760         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
72761
72762 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
72763
72764         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
72765         uid and gid actually remain unchanged.
72766
72767 1998-07-07  Jim Meyering  <meyering@ascend.com>
72768
72769         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
72770
72771 1998-07-04  Jim Meyering  <meyering@ascend.com>
72772
72773         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
72774         to prove that this macro can be used in packages without regex.c.
72775
72776 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
72777
72778         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
72779         is to be used.
72780
72781 1998-07-03  Jim Meyering  <meyering@ascend.com>
72782
72783         * m4/gettext.m4: Add -lintl if it's found to be necessary.
72784
72785         * m4/gettext.m4: New file -- from gettext-0.10.35.
72786         * m4/lcmessage.m4: Likewise.
72787         * m4/progtest.m4: Likewise.
72788
72789         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
72790         * m4/jm-macros.m4: Require the new macro.
72791
72792 1998-06-29  Jim Meyering  <meyering@ascend.com>
72793
72794         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
72795         for the definition of NGROUPS (used in a system header included
72796         by sys/mount.h).
72797
72798 1998-06-28  Jim Meyering  <meyering@ascend.com>
72799
72800         * m4/ls-mntd-fs.m4: New file.
72801         * m4/fstypename.m4: New file.
72802
72803         * m4/jm-macros.m4: Require the new macro.
72804         * m4/jm-glibc-io.m4: New file.
72805
72806 1998-05-19  Jim Meyering  <meyering@ascend.com>
72807
72808         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
72809         * m4/lchown.m4: New file.
72810
72811         * m4/Makefile.am.in: New file.
72812         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
72813
72814 1998-05-14  Jim Meyering  <meyering@ascend.com>
72815
72816         * m4/Makefile.am (EXTRA_DIST): Add them.
72817         * m4/jm-macros.m4: New file.
72818         * m4/utimbuf.m4: New file.
72819
72820 1998-05-12  Jim Meyering  <meyering@ascend.com>
72821
72822         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
72823
72824 1998-05-11  Jim Meyering  <meyering@ascend.com>
72825
72826         * m4/isc-posix.m4: New file.
72827
72828 1998-05-10  Jim Meyering  <meyering@ascend.com>
72829
72830         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
72831
72832 1998-05-09  Jim Meyering  <meyering@ascend.com>
72833
72834         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
72835         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
72836         with automake.
72837
72838         * m4/ssize_t.m4: New file.
72839         * m4/mktime.m4: Remove file -- the new automake has this now.
72840
72841 1998-04-26  Jim Meyering  <meyering@ascend.com>
72842
72843         * m4/assert.m4: New file.
72844         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
72845
72846 1998-04-05  Jim Meyering  <meyering@ascend.com>
72847
72848         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
72849         (jm_PREREQ): Use it here.
72850
72851 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
72852
72853         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
72854         in acconfig.h.
72855
72856 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
72857
72858         * m4/prereq.m4: New file.
72859         * m4/error.m4: New file.
72860         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
72861
72862 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
72863
72864         * m4/getline.m4: Don't set am_cv_func_working_getline before the
72865         cache-check for the same variable -- that defeated the purpose of
72866         the test; the test program was never run.  This was a problem only
72867         on systems with losing getline functions -- HP-UX 10.20 is one.
72868         Reported by Bjorn Helgaas.
72869
72870 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
72871
72872         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
72873
72874 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
72875
72876         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
72877
72878         * m4/const.m4: New file.  Use an initializer in this declaration
72879         typedef int charset[2]; const charset x;
72880         Reported by Bob Glickstein.
72881
72882 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
72883
72884         * m4/chown.m4: Fix reversed types on -1 args to chown.
72885         From Kaveh Ghazi.
72886
72887 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
72888
72889         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
72890         Add lseek and memchr.
72891
72892         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
72893         T.E.Dickey <dickey@clark.net> said that some older preprocessors
72894         have a 20-character limit on names.
72895
72896 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
72897
72898         * m4/inttypes_h.m4: New file.
72899         * m4/uintmax_t.m4: New file.
72900         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
72901
72902
72903         -----
72904
72905         Local Variables:
72906         coding: utf-8
72907         End:
72908
72909         Copyright (C) 1997-2010 Free Software Foundation, Inc.
72910
72911         Copying and distribution of this file, with or without
72912         modification, are permitted provided the copyright notice
72913         and this notice are preserved.