fcntl-h: Fix for use of C++ on glibc systems.
[gnulib.git] / ChangeLog
1 2010-12-25  Bruno Haible  <bruno@clisp.org>
2
3         fcntl-h: Fix for use of C++ on glibc systems.
4         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
5         also on glibc systems in C++ mode.
6         Reported by Gary V. Vaughan <gary@gnu.org>.
7
8 2010-12-25  Bruno Haible  <bruno@clisp.org>
9
10         roundl-ieee: Make it work on OSF/1 5.1 with cc.
11         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
12
13 2010-12-25  Bruno Haible  <bruno@clisp.org>
14
15         truncl-ieee: Make it work on OSF/1 5.1 with cc.
16         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
17         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
18         test whether truncl works according to ISO C 99 with IEC 60559.
19         * m4/truncl-ieee.m4: New file.
20         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
21         m4/signbit.m4.
22         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
23
24 2010-12-25  Bruno Haible  <bruno@clisp.org>
25
26         ceill-ieee: Make it work on OSF/1 5.1 with cc.
27         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
28         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
29         test whether ceill works according to ISO C 99 with IEC 60559.
30         * m4/ceill-ieee.m4: New file.
31         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
32         m4/signbit.m4.
33         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
34
35 2010-12-25  Bruno Haible  <bruno@clisp.org>
36
37         Ensure all prerequisites of <wchar.h> are included.
38         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
39         before <wchar.h>.
40         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
41         gl_MBRLEN_NUL_RETVAL): Likewise.
42         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
43         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
44         AC_FUNC_MBRTOWC): Likewise.
45         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
47         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
48         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
49         Likewise.
50         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
51         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
52         (gl_WCHAR_H): Improve comments.
53         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
54
55 2010-12-25  Bruno Haible  <bruno@clisp.org>
56
57         strtok_r: Fix C syntax error in autoconf macro.
58         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
59         characters in test program.
60
61 2010-12-24  Bruno Haible  <bruno@clisp.org>
62
63         ceil, trunc, round: Fix gcc warnings.
64         * lib/ceil.c (MIN): Undefine before redefining.
65         * lib/trunc.c (MIN): Likewise.
66         * lib/round.c (MIN): Likewise.
67         Include <math.h> first.
68
69 2010-12-24  Bruno Haible  <bruno@clisp.org>
70
71         select tests: Avoid failures on OSF/1 5.1.
72         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
73         failure of closing the last socket; it may fail with ECONNRESET.
74
75 2010-12-24  Eric Blake  <eblake@redhat.com>
76
77         stdint: avoid HP-UX 10.20 preprocessor bug
78         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
79         than #if.
80         * tests/test-floor2.c (main): Likewise.
81         Reported by Peter O'Gorman.
82
83         pipe: make obsoletion transition easier
84         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
85         * modules/pipe (Files): Include revived file.
86         (Include): Drop reference, to mirror getdate's behavior.
87
88 2010-12-24  Bruno Haible  <bruno@clisp.org>
89
90         sys_socket: Hide mismatch of declarations on NonStop Kernel.
91         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
92         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
93         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
94
95 2010-12-24  Bruno Haible  <bruno@clisp.org>
96
97         gethostname: Ensure declaration on NonStop Kernel.
98         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
99         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
100
101 2010-12-24  Bruno Haible  <bruno@clisp.org>
102
103         sys_select: Ensure all necessary types on NonStop Kernel.
104         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
105         include <sys/time.h>.
106         * doc/posix-headers/sys_select.texi: Mention that it's missing on
107         NonStop Kernel.
108         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
109
110 2010-12-24  Bruno Haible  <bruno@clisp.org>
111
112         sys_select: Remove unneeded include.
113         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
114         have <sys/select.h>.
115
116 2010-12-24  Bruno Haible  <bruno@clisp.org>
117
118         gethostname: Provide a fallback for HOST_NAME_MAX.
119         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
120         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
121         instead.
122         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
123
124 2010-12-24  Bruno Haible  <bruno@clisp.org>
125
126         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
127         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
128         (SA_RESTART): Likewise.
129         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
130
131 2010-12-24  Bruno Haible  <bruno@clisp.org>
132
133         signal: Define NSIG.
134         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
135         * tests/test-signal.c (nsig): New variable.
136         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
137
138 2010-12-24  Bruno Haible  <bruno@clisp.org>
139
140         rename, renameat: Avoid test failures on OSF/1 5.1.
141         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
142         alternative error codes.
143         * tests/test-renameat.c (main): Likewise.
144
145 2010-12-24  Bruno Haible  <bruno@clisp.org>
146
147         *printf: Detect large precisions bug on Solaris 10/SPARC.
148         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
149         by Paul Eggert.
150         * tests/test-snprintf-posix.h (test_function): Add this test code here
151         too.
152         * tests/test-sprintf-posix.h (test_function): Likewise.
153         * tests/test-vasnprintf-posix.c (test_function): Likewise.
154         * tests/test-vasprintf-posix.c (test_function): Likewise.
155         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
156         around by gnulib.
157         * doc/posix-functions/printf.texi: Likewise.
158         * doc/posix-functions/snprintf.texi: Likewise.
159         * doc/posix-functions/sprintf.texi: Likewise.
160         * doc/posix-functions/vfprintf.texi: Likewise.
161         * doc/posix-functions/vprintf.texi: Likewise.
162         * doc/posix-functions/vsnprintf.texi: Likewise.
163         * doc/posix-functions/vsprintf.texi: Likewise.
164         * doc/posix-functions/dprintf.texi: Undo last commit.
165         * doc/posix-functions/vdprintf.texi: Likewise.
166
167 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
168
169         tests: port test-fdutimensat.c to Solaris 8
170         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
171         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
172         On Solaris 8, it fails with errno == ENOSYS, because there is no
173         futimens (so it can't use the fd), and there is no lutimens (so it
174         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
175
176         vsnprintf: make more consistent with snprintf; doc fixes
177
178         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
179         the byte count return problem was promoted from the snprintf-posix
180         to the snprintf module.
181         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
182         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
183         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
184         * tests/test-snprintf.c (main): Check the byte count returned.
185         * tests/test-vsnprintf.c (main): Likewise.
186
187 2010-12-23  Eric Blake  <eblake@redhat.com>
188
189         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
190         * modules/sigpipe (License): Relax license.
191
192 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
193
194         doc: document Solaris printf bug with large float precisions
195         * doc/posix-functions/dprintf.texi (dprintf):
196         * doc/posix-functions/fprintf.texi (fprintf):
197         * doc/posix-functions/printf.texi (printf):
198         * doc/posix-functions/snprintf.texi (snprintf):
199         * doc/posix-functions/sprintf.texi (sprintf):
200         * doc/posix-functions/vdprintf.texi (vdprintf):
201         * doc/posix-functions/vfprintf.texi (vfprintf):
202         * doc/posix-functions/vprintf.texi (vprintf):
203         * doc/posix-functions/vsnprintf.texi (vsnprintf):
204         * doc/posix-functions/vsprintf.texi (vsprintf):
205         Mention that these functions mishandle large floating point
206         precisions on Solaris 10.  The same bug is also present in Solaris
207         8, and I assume earlier.  This causes "cd gnulib-tests; make
208         check" to fail on Solaris 8 (and I assume, later) when building
209         the latest coreutils, in test-vasprintf-posix's call to
210         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
211         the wide flavors (e.g., wprintf) so this patch just updates the
212         documentation for the narrow ones.
213
214         test-posixtm.c: add two tests
215         * tests/test-posixtm.c: Add two tests, to highlight the
216         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
217         around this bug; this is merely to document it.
218
219 2010-12-22  Bruno Haible  <bruno@clisp.org>
220
221         getlogin_r: Work around portability problem on OSF/1.
222         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
223         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
224         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
225         test for a truncated result.
226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
227         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
228         * modules/getlogin_r (Depends-on): Add memchr.
229         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
230
231 2010-12-22  Bruno Haible  <bruno@clisp.org>
232
233         ptsname: Avoid test failure on OSF/1 5.1.
234         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
235         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
236         (same_slave): New function.
237         (main): Use it to compare ptsname's result with the expected file name.
238
239 2010-12-22  Bruno Haible  <bruno@clisp.org>
240
241         Port extended stdio modules to HP NonStop Kernel.
242         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
243         macros.
244         * lib/fbufmode.c: Update comments.
245         * lib/fflush.c: Likewise.
246         * lib/fpurge.c: Likewise.
247         * lib/freadable.c: Likewise.
248         * lib/freadahead.c: Likewise.
249         * lib/freading.c: Likewise.
250         * lib/freadptr.c: Likewise.
251         * lib/freadseek.c: Likewise.
252         * lib/fseeko.c: Likewise.
253         * lib/fseterr.c: Likewise.
254         * lib/fwritable.c: Likewise.
255         * lib/fwriting.c: Likewise.
256         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
257
258 2010-12-22  Bruno Haible  <bruno@clisp.org>
259
260         ttyname_r: Work around bug on OSF/1 5.1.
261         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
262         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
263         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
264         present.
265         * lib/ttyname_r.c (ttyname_r): Update comments.
266
267 2010-12-22  Bruno Haible  <bruno@clisp.org>
268
269         round: Implement result sign according to IEEE 754.
270         * lib/round.c (MIN, MINUS_ZERO): New macros.
271         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
272         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
273         * tests/test-round-ieee.c (main): Likewise.
274         * tests/test-roundl-ieee.c (main): Likewise.
275
276         trunc: Implement result sign according to IEEE 754.
277         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
278         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
279         * tests/test-trunc2.c: Include minus-zero.h.
280         (MINUS_ZERO): New macro.
281         (trunc_reference): Keep in sync with lib/trunc.c.
282         * tests/test-truncf2.c: Include minus-zero.h.
283         (MINUS_ZERO): New macro.
284         (truncf_reference): Keep in sync with lib/trunc.c.
285         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
286         * tests/test-trunc-ieee.c (main): Likewise.
287         * tests/test-truncl-ieee.c (main): Likewise.
288
289         ceil: Implement result sign according to IEEE 754.
290         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
291         (FUNC): Return -0.0 for -1 < x < 0.
292         * tests/test-ceil2.c: Include minus-zero.h.
293         (MINUS_ZERO): New macro.
294         (ceil_reference): Keep in sync with lib/ceil.c.
295         * tests/test-ceilf2.c: Include minus-zero.h.
296         (MINUS_ZERO): New macro.
297         (ceilf_reference): Keep in sync with lib/ceil.c.
298         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
299         * tests/test-ceil-ieee.c (main): Likewise.
300         * tests/test-ceill-ieee.c (main): Likewise.
301
302         floor: Implement result sign according to IEEE 754.
303         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
304         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
305         * tests/test-floorf2.c (floorf_reference): Likewise.
306         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
307         * tests/test-floor-ieee.c (main): Likewise.
308         * tests/test-floorl-ieee.c (main): Likewise.
309
310 2010-12-22  Bruno Haible  <bruno@clisp.org>
311
312         getaddrinfo: Update doc.
313         * doc/posix-functions/gai_strerror.texi: Return type is also different
314         on AIX and HP-UX.
315
316 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
317
318         getaddrinfo, inet_ntop: Update doc for Solaris.
319         * doc/posix-functions/gai_strerror.texi: Return type is also an
320         issue on Solaris 9 and earlier.
321         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
322         on Solaris 10 and earlier.
323
324 2010-12-21  Bruno Haible  <bruno@clisp.org>
325
326         New module 'roundl-ieee'.
327         * modules/roundl-ieee: New file.
328         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
329         test whether roundl works according to ISO C 99 with IEC 60559.
330         * m4/roundl-ieee.m4: New file.
331         * modules/roundl-ieee-tests: New file.
332         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
333         * tests/test-roundl.c (main): Remove signbit tests.
334         * modules/roundl-tests (Depends-on): Remove signbit.
335         * doc/posix-functions/roundl.texi: Mention the new module.
336
337 2010-12-21  Bruno Haible  <bruno@clisp.org>
338
339         New module 'truncl-ieee'.
340         * modules/truncl-ieee: New file.
341         * modules/truncl-ieee-tests: New file.
342         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
343         * tests/test-truncl.c (main): Remove signbit tests.
344         * modules/truncl-tests (Depends-on): Remove signbit.
345         * doc/posix-functions/truncl.texi: Mention the new module.
346
347 2010-12-21  Bruno Haible  <bruno@clisp.org>
348
349         New module 'ceill-ieee'.
350         * modules/ceill-ieee: New file.
351         * modules/ceill-ieee-tests: New file.
352         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
353         * tests/test-ceill.c (main): Remove signbit tests.
354         * modules/ceill-tests (Depends-on): Remove signbit.
355         * doc/posix-functions/ceill.texi: Mention the new module.
356
357 2010-12-21  Bruno Haible  <bruno@clisp.org>
358
359         New module 'floorl-ieee'.
360         * modules/floorl-ieee: New file.
361         * modules/floorl-ieee-tests: New file.
362         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
363         * tests/test-floorl.c (main): Remove signbit tests.
364         * modules/floorl-tests (Depends-on): Remove signbit.
365         * doc/posix-functions/floorl.texi: Mention the new module.
366
367 2010-12-21  Bruno Haible  <bruno@clisp.org>
368
369         New module 'round-ieee'.
370         * modules/round-ieee: New file.
371         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
372         whether round works according to ISO C 99 with IEC 60559.
373         * m4/round-ieee.m4: New file.
374         * modules/round-ieee-tests: New file.
375         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
376         * tests/test-round1.c (main): Remove signbit tests.
377         * modules/round-tests (Depends-on): Remove 'signbit'.
378         * doc/posix-functions/round.texi: Mention the new module.
379
380 2010-12-21  Bruno Haible  <bruno@clisp.org>
381
382         New module 'trunc-ieee'.
383         * modules/trunc-ieee: New file.
384         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
385         whether trunc works according to ISO C 99 with IEC 60559.
386         * m4/trunc-ieee.m4: New file.
387         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
388         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
389         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
390         * modules/trunc-ieee-tests: New file.
391         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
392         * tests/test-trunc1.c (main): Remove signbit tests.
393         * modules/trunc-tests (Depends-on): Remove 'signbit'.
394         * doc/posix-functions/trunc.texi: Mention the new module.
395
396 2010-12-21  Bruno Haible  <bruno@clisp.org>
397
398         New module 'ceil-ieee'.
399         * modules/ceil-ieee: New file.
400         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
401         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
402         ISO C 99 with IEC 60559.
403         * m4/ceil-ieee.m4: New file.
404         * modules/ceil (Files): Add lib/ceil.c.
405         (Depends-on): Add 'float'.
406         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
407         * lib/math.in.h (ceil): New declaration.
408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
409         REPLACE_CEIL.
410         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
411         * modules/ceil-ieee-tests: New file.
412         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
413         * tests/test-math-c++.cc: Check the signature of 'ceil'.
414         * doc/posix-functions/ceil.texi: Mention the new module.
415
416 2010-12-21  Bruno Haible  <bruno@clisp.org>
417
418         New module 'floor-ieee'.
419         * modules/floor-ieee: New file.
420         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
421         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
422         ISO C 99 with IEC 60559.
423         * m4/floor-ieee.m4: New file.
424         * modules/floor (Files): Add lib/floor.c.
425         (Depends-on): Add 'float'.
426         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
427         * lib/math.in.h (floor): New declaration.
428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
429         REPLACE_FLOOR.
430         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
431         * modules/floor-ieee-tests: New file.
432         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
433         * tests/test-math-c++.cc: Check the signature of 'floor'.
434         * doc/posix-functions/floor.texi: Mention the new module.
435
436 2010-12-21  Bruno Haible  <bruno@clisp.org>
437
438         New module 'roundf-ieee'.
439         * modules/roundf-ieee: New file.
440         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
441         test whether roundf works according to ISO C 99 with IEC 60559.
442         * m4/roundf-ieee.m4: New file.
443         * modules/roundf-ieee-tests: New file.
444         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
445         * tests/test-roundf1.c (main): Remove signbit tests.
446         * modules/roundf-tests (Depends-on): Remove 'signbit'.
447         * doc/posix-functions/roundf.texi: Mention the new module.
448
449 2010-12-21  Bruno Haible  <bruno@clisp.org>
450
451         New module 'truncf-ieee'.
452         * modules/truncf-ieee: New file.
453         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
454         test whether truncf works according to ISO C 99 with IEC 60559.
455         * m4/truncf-ieee.m4: New file.
456         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
458         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
459         * modules/truncf-ieee-tests: New file.
460         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
461         * tests/test-truncf1.c (main): Remove signbit tests.
462         * modules/truncf-tests (Depends-on): Remove 'signbit'.
463         * doc/posix-functions/truncf.texi: Mention the new module.
464
465 2010-12-21  Bruno Haible  <bruno@clisp.org>
466
467         New module 'ceilf-ieee'.
468         * modules/ceilf-ieee: New file.
469         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
470         test whether ceilf works according to ISO C 99 with IEC 60559.
471         * m4/ceilf-ieee.m4: New file.
472         * modules/ceilf-ieee-tests: New file.
473         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
474         * tests/test-ceilf1.c (main): Remove signbit tests.
475         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
476         * doc/posix-functions/ceilf.texi: Mention the new module.
477
478 2010-12-21  Bruno Haible  <bruno@clisp.org>
479
480         New module 'floorf-ieee'.
481         * modules/floorf-ieee: New file.
482         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
483         test whether floorf works according to ISO C 99 with IEC 60559.
484         * m4/floorf-ieee.m4: New file.
485         * modules/floorf-ieee-tests: New file.
486         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
487         * tests/test-floorf1.c (main): Remove signbit tests.
488         * modules/floorf-tests (Depends-on): Remove 'signbit'.
489         * doc/posix-functions/floorf.texi: Mention the new module.
490
491 2010-12-21  Bruno Haible  <bruno@clisp.org>
492
493         Support for minus zero in autoconf macros.
494         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
495         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
496         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
497         * tests/minus-zero.h: Update comments.
498
499 2010-12-21  Bruno Haible  <bruno@clisp.org>
500
501         Tests for module 'ceil'.
502         * modules/ceil-tests: New file.
503         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
504         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
505
506 2010-12-21  Bruno Haible  <bruno@clisp.org>
507
508         Tests for module 'floor'.
509         * modules/floor-tests: New file.
510         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
511         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
512
513 2010-12-21  Bruno Haible  <bruno@clisp.org>
514
515         math: Fix indentation.
516         * lib/math.in.h (floorf): Fix indentation.
517
518 2010-12-21  Bruno Haible  <bruno@clisp.org>
519
520         Fix cross-compilation guesses on Solaris.
521         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
522         not match "solaris2.10".
523         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
524         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
525         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
526
527 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
528
529         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
530         This fixes a problem observed with the latest coreutils snapshot
531         that caused a test to fail on Solaris 8.  src/csplit.c's call
532         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
533         earlier, instead of returning the number of bytes that would have
534         been generated; this causes csplit to incorrectly report memory
535         exhaustion.
536         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
537         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
538         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
539         comments to match.
540         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
541         Fix typo in matching older versions of Solaris: "solaris2.10"
542         is matched by the shell pattern "solaris2.[0-9]*".  This matters
543         only for guessing while cross-compiling.
544         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
545
546 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
547
548         ftoastr: fix comment again
549         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
550         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
551         Also, simplify example a bit by using flags = 0.
552
553 2010-12-20  Bruno Haible  <bruno@clisp.org>
554
555         round*, trunc*: Update documentation regarding glibc.
556         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
557         * doc/posix-functions/round.texi: Likewise.
558         * doc/posix-functions/roundl.texi: Likewise.
559         * doc/posix-functions/truncf.texi: Likewise.
560         * doc/posix-functions/trunc.texi: Likewise.
561         * doc/posix-functions/truncl.texi: Likewise.
562
563 2010-12-20  Bruno Haible  <bruno@clisp.org>
564
565         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
566         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
567         * doc/posix-functions/round.texi: Likewise.
568         * doc/posix-functions/roundl.texi: Likewise.
569
570 2010-12-20  Bruno Haible  <bruno@clisp.org>
571
572         ttyname_r: Add missing declaration on HP-UX 11.
573         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
574         HAVE_TTYNAME_R.
575         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
576         declared. Set HAVE_TTYNAME_R always.
577         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
578         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
579         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
580         HAVE_TTYNAME_R.
581         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
582
583 2010-12-20  Bruno Haible  <bruno@clisp.org>
584
585         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
586         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
587         * doc/posix-functions/getlogin_r.texi: Likewise.
588         * tests/test-getlogin.c: Include <errno.h>.
589         (main): Avoid test failure on HP-UX 11.11.
590         * tests/test-getlogin_r.c (main): Likewise.
591
592 2010-12-20  Bruno Haible  <bruno@clisp.org>
593
594         getlogin_r: Add missing declaration on HP-UX 11.
595         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
596         declared also when it exists as a function.
597         * doc/posix-functions/getlogin_r.texi: Document this workaround.
598
599 2010-12-20  Bruno Haible  <bruno@clisp.org>
600
601         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
602         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
603         through wcrtomb.
604
605 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
606
607         ftoastr: fix comment
608         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
609         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
610
611 2010-12-19  Bruno Haible  <bruno@clisp.org>
612
613         isnan: Ensure it is a macro.
614         * lib/math.in.h (isnan): Define as a macro if not already a macro.
615         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
616         Solaris.
617
618 2010-12-19  Bruno Haible  <bruno@clisp.org>
619
620         ldexpl test: Fix link error on OSF/1 5.1.
621         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
622
623 2010-12-19  Bruno Haible  <bruno@clisp.org>
624
625         wctype: Make it work in C++ mode on OSF/1 5.1.
626         * lib/wctype.in.h (iswblank): Declare but not define here.
627         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
628         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
629         * modules/wctype (Files): Add lib/iswblank.c.
630
631 2010-12-19  Bruno Haible  <bruno@clisp.org>
632
633         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
634         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
635         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
636
637 2010-12-19  Bruno Haible  <bruno@clisp.org>
638
639         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
640         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
641         _POSIX_PII_SOCKET.
642         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
643         * doc/posix-functions/recvfrom.texi: Likewise.
644         * doc/posix-functions/send.texi: Likewise.
645         * doc/posix-functions/sendto.texi: Likewise.
646
647 2010-12-19  Bruno Haible  <bruno@clisp.org>
648
649         tcgetsid: Add missing declaration on OSF/1 5.1.
650         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
651         HAVE_TCGETSID.
652         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
653         Don't set HAVE_TCGETSID.
654         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
655         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
656         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
657         HAVE_TCGETSID.
658         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
659
660 2010-12-19  Bruno Haible  <bruno@clisp.org>
661
662         stdio: Fix problem with popen() declaration on OSF/1 5.1.
663         * lib/stdio.in.h: During the include_next statement, let recursive
664         includes of this file include only the system header file.
665
666 2010-12-19  Bruno Haible  <bruno@clisp.org>
667
668         iconv_open: Fix regression from 2010-12-04.
669         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
670         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
671
672 2010-12-19  Bruno Haible  <bruno@clisp.org>
673
674         stdbool test: Avoid a gcc warning.
675         * tests/test-stdbool.c (main): Fail if e1 is false.
676         Reported by Jim Meyering.
677
678 2010-12-19  Jim Meyering  <meyering@redhat.com>
679
680         setenv: restore to working order
681         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
682         mistakenly removed.
683         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
684         HAVE_SETENV.
685         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
686         HAVE_SETENV.
687
688 2010-12-19  Bruno Haible  <bruno@clisp.org>
689
690         Document some different function declarations on OSF/1 5.1.
691         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
692         * doc/posix-functions/inet_ntop.texi: Likewise.
693         * doc/posix-functions/gethostname.texi: Likewise.
694         * lib/unistd.in.h (gethostname): Update comment.
695
696 2010-12-19  Bruno Haible  <bruno@clisp.org>
697
698         doc: Mention vasprintf-posix module.
699         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
700         the 'vasprintf-posix' module.
701         * doc/glibc-functions/vasprintf.texi: Likewise.
702
703 2010-12-19  Bruno Haible  <bruno@clisp.org>
704
705         unsetenv: Add missing declaration on OSF/1 5.1.
706         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
707         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
708         Don't set HAVE_UNSETENV. In the test program, set _BSD.
709         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
710         not HAVE_UNSETENV.
711         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
712         HAVE_UNSETENV.
713         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
714
715 2010-12-19  Bruno Haible  <bruno@clisp.org>
716
717         setenv: Add missing declaration on OSF/1 5.1.
718         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
719         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
720         declared. Don't set HAVE_SETENV.
721         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
722         not HAVE_SETENV.
723         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
724         HAVE_SETENV.
725         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
726
727 2010-12-19  Bruno Haible  <bruno@clisp.org>
728
729         nl_langinfo tests: Avoid gcc warning.
730         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
731
732 2010-12-19  Bruno Haible  <bruno@clisp.org>
733
734         mknod: Avoid error in C++ mode on OSF/1 with GCC.
735         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
736         _GL_CXXALIAS_SYS.
737
738 2010-12-19  Bruno Haible  <bruno@clisp.org>
739
740         stdbool: Relax test.
741         * tests/test-stdbool.c (e): Don't require that casts from a variable's
742         address to 'bool' work in static initializer, for compilers other than
743         GCC.
744
745 2010-12-19  Bruno Haible  <bruno@clisp.org>
746
747         ftello: Add missing declaration on OSF/1 5.1.
748         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
749         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
750         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
751         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
752         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
753
754 2010-12-19  Bruno Haible  <bruno@clisp.org>
755
756         fseeko: Add missing declaration on OSF/1 5.1.
757         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
758         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
759         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
760         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
761         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
762
763 2010-12-19  Bruno Haible  <bruno@clisp.org>
764
765         fchdir: Add missing declaration on OSF/1 5.1.
766         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
767         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
768         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
769         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
770         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
771
772 2010-12-19  Bruno Haible  <bruno@clisp.org>
773
774         relocatable-prog-wrapper: Separate from relocatable-prog.
775         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
776         uninstall-relocwrapper rule here.
777         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
778         Reported by Ian Beckwith <ianb@erislabs.net>.
779
780 2010-12-19  Bruno Haible  <bruno@clisp.org>
781
782         unistr/u8-mbsnlen: Add missing dependency.
783         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
784         Reported by Ian Beckwith <ianb@erislabs.net>.
785
786 2010-12-19  Bruno Haible  <bruno@clisp.org>
787
788         iconv: Make it possible again to use this module without 'iconv-h'.
789         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
790         if it is not defined.
791         Reported by Ian Beckwith <ianb@erislabs.net>.
792
793 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
794
795         acl: port to Solaris 8 when copying from tmpfs to ufs
796         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
797         error number.  Problem observed on Solaris 8 with latest
798         coreutils, with "mv A B", where A is on a tmpfs file system and B
799         is on a ufs file system.  This caused coreutils' mv/part-symlink
800         test to fail.
801
802         tests: set fail=0 at start
803         * tests/init.sh (setup_): Move fail=0 initialization here ...
804         (mktempd_): ... from here, so that tests can rely on fail being
805         set to 0 initially.  This fixes a problem in coreutils; see:
806         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
807
808 2010-12-18  Bruno Haible  <bruno@clisp.org>
809
810         memmem-simple: Stylistic changes.
811         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
812         Fix preprocessor directive indentation.
813
814 2010-12-15  Pádraig Brady <P@draigBrady.com>
815
816         memmem, memmem-simple: reorganize and expand empty needle check
817         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
818         functional checks to memmem-simple so that one has a fully functional
819         memmem by using just this module.
820         Restrict the performance only check to the memmem module.
821         Also expand the empty needle check to ensure the correct
822         pointer is returned, not just a non NULL pointer.
823         * doc/glibc-functions/memmem.texi: Rearrange the portability
824         documentation to correlate with the rearranged checks.
825         Clarify exactly how the memmem and memmem-simple modules
826         relate to each other.
827
828 2010-12-15  Pádraig Brady <P@draigBrady.com>
829             Bruno Haible  <bruno@clisp.org>
830
831         Improve cross-compilation guesses for uClibc.
832         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
833         that uClibc does not have the glibc bug.
834         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
835         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
836
837 2010-12-14  Eric Blake  <eblake@redhat.com>
838
839         configmake: provide fallbacks for oldest supported autotools
840         * m4/configmake.m4: New file.
841         * modules/configmake (Files): Ship it.
842         (configure.ac): Use it to guarantee fallbacks.
843
844 2010-12-13  Pádraig Brady <P@draigBrady.com>
845
846         read-file: Improve handling of large files
847         * lib/read-file.c (fread_file): Minimize realloc()s
848         for regular files, and better manage sizes around SIZE_MAX.
849
850 2010-12-13  Eric Blake  <eblake@redhat.com>
851
852         cloexec, fcntl: relax license
853         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
854         consent from all contributors.
855         * modules/fcntl (License): Likewise.
856
857 2010-12-10  Bruno Haible  <bruno@clisp.org>
858
859         Tests for module 'pipe-posix'.
860         * modules/pipe-posix-tests: New file.
861         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
862
863 2010-12-10  Bruno Haible  <bruno@clisp.org>
864
865         pipe-posix: Make it work in C++ mode.
866         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
867         (pipe): Use common idiom, not a macro definition.
868         * lib/pipe.c: New file.
869         * m4/pipe.m4: New file.
870         * modules/pipe-posix (Description): Enhance.
871         (Files): Add lib/pipe.c, m4/pipe.m4.
872         (configure.ac): Invoke gl_FUNC_PIPE.
873         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
874         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
875         * tests/test-unistd-c++.cc: Check the signature of pipe.
876
877 2010-12-10  Bruno Haible  <bruno@clisp.org>
878
879         Rename module 'pipe' to 'spawn-pipe'.
880         * modules/spawn-pipe: New file, renamed from modules/pipe.
881         (Files, configure.ac, Makefile.am): Update.
882         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
883         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
884         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
885         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
886         "spawn-pipe.h" instead of "pipe.h".
887         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
888         to gl_SPAWN_PIPE.
889         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
890         (Files, Makefile.am): Update.
891         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
892         Update.
893         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
894         Include "spawn-pipe.h" instead of "pipe.h".
895         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
896         * lib/javacomp.c: Likewise.
897         * lib/javaversion.c: Likewise.
898         * lib/pipe-filter-gi.c: Likewise.
899         * lib/pipe-filter-ii.c: Likewise.
900         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
901         * modules/javacomp (Depends-on): Likewise.
902         * modules/javaversion (Depends-on): Likewise.
903         * modules/pipe-filter-gi (Depends-on): Likewise.
904         * modules/pipe-filter-ii (Depends-on): Likewise.
905         * MODULES.html.sh (Executing programs): Update.
906         * NEWS: Mention the change.
907
908 2010-12-10  Eric Blake  <eblake@redhat.com>
909
910         pipe-posix: new module
911         * modules/pipe-posix: New file.
912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
913         (gl_UNISTD_H): Check for declaration.
914         * modules/unistd (Makefile.am): Substitute it.
915         * lib/unistd.in.h (pipe): Provide it for mingw.
916         * doc/posix-functions/pipe.texi (pipe): Update documentation.
917         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
918
919 2010-12-07  Bruno Haible  <bruno@clisp.org>
920
921         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
922         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
923         u8_strcmp_gnu.
924         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
925
926 2010-12-06  Bruno Haible  <bruno@clisp.org>
927
928         Update internal documentation.
929         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
930
931 2010-12-04  Bruno Haible  <bruno@clisp.org>
932
933         Put more information about failed tests into the test return codes.
934         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
935         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
936         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
937         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
938         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
939         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
940         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
941         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
942         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
943         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
944         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
945         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
946         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
947         * m4/stdint.m4 (gl_STDINT_H): Likewise.
948         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
949         returns a bit mask.
950         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
951         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
952         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
953         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
954         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
955         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
956         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
957         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
958         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
959         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
960         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
961         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
962         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
963         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
964         * m4/link.m4 (gl_FUNC_LINK): Likewise.
965         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
966         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
967         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
968         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
969         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
970         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
971         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
972         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
973         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
974         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
975         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
976         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
977         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
978         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
979         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
980         gl_PRINTF_PRECISION): Likewise.
981         * m4/regex.m4 (gl_REGEX): Likewise.
982         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
983         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
984         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
985         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
986         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
987         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
988         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
989         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
990         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
991         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
992         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
993         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
994         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
995         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
996         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
997         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
998         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
999         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1000         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1001         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
1002         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
1003         enumerated value.
1004         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
1005
1006 2010-12-04  Bruno Haible  <bruno@clisp.org>
1007
1008         Update for Solaris 11 2010-11.
1009         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
1010         Express, released in November 2010.
1011
1012 2010-12-04  Bruno Haible  <bruno@clisp.org>
1013
1014         nproc: Relax license.
1015         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
1016         and Paul Eggert.
1017         Requested by Ludovic Courtès <ludo@gnu.org>.
1018
1019 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
1020
1021         utimecmp: fine-grained src to nearby coarse-grained dest
1022
1023         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
1024         and the source is on a file system with higher-resolution time
1025         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
1026         not work, and the time stamps are close together, the algorithm to
1027         determine the exact resolution from the read-back mtime was buggy:
1028         it had a "!=" where it should have had an "==".  This bug has been
1029         in the code ever since it was introduced to gnulib.
1030         Problem reported by Dan Jacobson in
1031         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
1032
1033 2010-11-30  Bruno Haible  <bruno@clisp.org>
1034
1035         strerror_r-posix: Fix autoconf test.
1036         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
1037
1038 2010-11-28  Bruno Haible  <bruno@clisp.org>
1039             Paul Eggert  <eggert@cs.ucla.edu>
1040
1041         Tests for module 'getdomainname'.
1042         * modules/getdomainname-tests: New file.
1043         * tests/test-getdomainname.c: New file, based on
1044         tests/test-gethostname.c.
1045
1046 2010-11-28  Bruno Haible  <bruno@clisp.org>
1047             Paul Eggert  <eggert@cs.ucla.edu>
1048
1049         getdomainname: Use the system function when possible.
1050         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
1051         (getdomainname): Replace if needed. Provide the declaration if it is
1052         missing. Don't use _GL_CXXALIAS_SYS_CAST.
1053         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
1054         (getdomainname): When the system has getdomainname, call the system
1055         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
1056         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
1057         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
1058         found in libnsl. Look for the declaration also in <netdb.h>. Replace
1059         the function if its second argument is of type 'int' or if it is found
1060         in libnsl.
1061         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
1062         <sys/systeminfo.h> and sysinfo().
1063         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
1064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1065         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
1066         HAVE_GETDOMAINNAME.
1067         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
1068         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
1069         * doc/glibc-functions/getdomainname.texi: Document the problems with
1070         the getdomainname declaration.
1071
1072 2010-11-28  Bruno Haible  <bruno@clisp.org>
1073
1074         sys_socket: Ensure ss_family field on AIX.
1075         * lib/sys_socket.in.h (ss_family): New macro definition.
1076         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
1077         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
1078         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
1079         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
1080         * modules/sys_socket (Makefile.am): Substitute
1081         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
1082         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
1083
1084 2010-11-27  Bruno Haible  <bruno@clisp.org>
1085
1086         readline: Improve configure output.
1087         * m4/readline.m4 (gl_FUNC_READLINE): Make the
1088         "checking for readline..." result understandable.
1089
1090 2010-11-27  Bruno Haible  <bruno@clisp.org>
1091
1092         *printf-posix: Detect a bug on Solaris 10/x86.
1093         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
1094         for floating-point output.
1095         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
1096         directive.
1097         * tests/test-snprintf-posix.h (test_function): Likewise.
1098         * tests/test-sprintf-posix.h (test_function): Likewise.
1099         * tests/test-vasprintf-posix.c (test_function): Likewise.
1100         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
1101         * doc/posix-functions/printf.texi: Likewise.
1102         * doc/posix-functions/snprintf.texi: Likewise.
1103         * doc/posix-functions/sprintf.texi: Likewise.
1104         * doc/posix-functions/vfprintf.texi: Likewise.
1105         * doc/posix-functions/vprintf.texi: Likewise.
1106         * doc/posix-functions/vsnprintf.texi: Likewise.
1107         * doc/posix-functions/vsprintf.texi: Likewise.
1108         * doc/glibc-functions/obstack_printf.texi: Likewise.
1109         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
1110
1111 2010-11-27  Bruno Haible  <bruno@clisp.org>
1112
1113         Fix link error when module libunistring-optional is in use.
1114         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
1115         * modules/striconveha-tests (Makefile.am): Likewise.
1116
1117 2010-11-27  Bruno Haible  <bruno@clisp.org>
1118
1119         regex: Mention link dependencies.
1120         * modules/regex (Link): New section.
1121         * modules/rpmatch (Link): Likewise.
1122         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
1123
1124 2010-11-27  Bruno Haible  <bruno@clisp.org>
1125
1126         ftoastr: Fix compilation error on Solaris.
1127         * lib/ftoastr.c: Include <config.h>.
1128
1129 2010-11-27  Bruno Haible  <bruno@clisp.org>
1130
1131         getloadavg: Update documentation.
1132         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
1133
1134 2010-11-27  Bruno Haible  <bruno@clisp.org>
1135
1136         sys_socket: Fix test whether the functions are declared.
1137         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
1138         not <sys/select.h>.
1139
1140 2010-11-27  Bruno Haible  <bruno@clisp.org>
1141
1142         getpass: Make sure to get system declaration on some platforms.
1143         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
1144         gl_USE_SYSTEM_EXTENSIONS.
1145         * modules/getpass (Depends-on): Add extensions.
1146
1147 2010-11-26  Bruno Haible  <bruno@clisp.org>
1148
1149         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
1150         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
1151         'iconv' module is present.
1152         (ICONV_CONST): New macro.
1153         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
1154         ICONV_CONST.
1155         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
1156         set ICONV_CONST.
1157         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
1158         here.
1159         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
1160         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
1161         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
1162         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
1163         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
1164         present.
1165
1166 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
1167
1168         ftoastr: comment fix
1169         * lib/ftoastr.c: "little" -> "little or no" in comment
1170
1171 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
1172
1173         stdint: port to GCC 4.3 + OSX + Octave
1174         On this platform, stdint.h is buggy and defines int64_t to long
1175         long int.  The replacement defined it to long int, causing
1176         problems with C++ style name mangling.  Instead, trust the system
1177         definition if INT64_MAX is defined, and likewise for the unsigned
1178         variant.   Problem reported by Jarno Rajahalme in
1179         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
1180         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
1181         and don't mess with int64_t and INT64_MAX in this case.
1182         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
1183
1184 2010-11-24  Bruno Haible  <bruno@clisp.org>
1185
1186         doc: Corrections regarding MacOS X 10.4 and 10.5.
1187         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
1188         MacOS X.
1189         Reported by Simon Josefsson.
1190
1191 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
1192
1193         Uninstall ".bin" files installed by relocwrapper.
1194         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
1195         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
1196         unless it is already there.
1197
1198 2010-11-21  Bruno Haible  <bruno@clisp.org>
1199
1200         Update for NetBSD 5.0.
1201         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
1202         NetBSD; the test fails on NetBSD 5.0.
1203         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
1204         about NetBSD.
1205
1206 2010-11-21  Bruno Haible  <bruno@clisp.org>
1207
1208         Update for HP-UX 11.23 and HP-UX 11.31.
1209         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
1210         HP-UX.
1211
1212 2010-11-21  Bruno Haible  <bruno@clisp.org>
1213
1214         Update for MacOS X 10.5.
1215         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
1216         MacOS X; the test fails on MacOS X 10.5.8.
1217         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
1218         about MacOS X.
1219
1220 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
1221
1222         bootstrap: add bootstrap_sync option.
1223         See discussion at
1224         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
1225         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
1226         * build-aux/bootstrap: Accept --bootstrap-sync to update
1227         bootstrap if it is not identical to the local gnulib's
1228         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
1229         enable this by default.  Accept --no-bootstrap-sync to disable
1230         it.
1231
1232 2010-11-20  Bruno Haible  <bruno@clisp.org>
1233
1234         Ensure that <features.h> is included before __GLIBC__ is tested.
1235         * lib/printf-parse.h: Include <features.h>.
1236         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
1237         Reported by Mike Frysinger <vapier@gentoo.org>.
1238
1239         Ensure that <features.h> is included before __GLIBC__ is tested.
1240         * lib/wchar.in.h: Include <features.h>.
1241         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
1242         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
1243         Reported by Mike Frysinger <vapier@gentoo.org>.
1244
1245         Ensure that <features.h> is included before __GLIBC__ is tested.
1246         * lib/arpa_inet.in.h: Include <features.h>.
1247         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
1248         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
1249         Reported by Mike Frysinger <vapier@gentoo.org>.
1250
1251         Ensure that <features.h> is included before __GLIBC__ is tested.
1252         * build-aux/link-warning.h: Include <features.h>.
1253         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
1254         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
1255         Reported by Mike Frysinger <vapier@gentoo.org>.
1256
1257         Ensure that <features.h> is included before __GLIBC__ is tested.
1258         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
1259         Reported by Mike Frysinger <vapier@gentoo.org>.
1260
1261 2010-11-20  Bruno Haible  <bruno@clisp.org>
1262
1263         memmem: Fix autoconf test.
1264         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
1265
1266 2010-11-20  Bruno Haible  <bruno@clisp.org>
1267
1268         Port to uClibc.
1269         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
1270         * lib/fcntl.in.h: Likewise.
1271         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
1272         * lib/mbrtowc.c (mbrtowc): Likewise.
1273         * lib/relocatable.c (find_shared_library_fullname): Likewise.
1274         * lib/strerror_r.c: Likewise.
1275         * lib/unistr/u8-strnlen.c: Likewise.
1276         * lib/vasnprintf.c (decimal_point_char): Likewise.
1277         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
1278         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
1279         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
1280         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
1281         * tests/test-sigaction.c (handler, main): Likewise.
1282         * lib/freading.h: Treat uClibc like a non-glibc platform.
1283         * lib/freading.c: Likewise.
1284         * lib/gettext.h: Likewise.
1285         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
1286         Likewise.
1287         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
1288         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
1289         * lib/propername.c (proper_name_utf8): Likewise.
1290         * lib/spawn.in.h: Likewise.
1291         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
1292         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
1293         mem_cd_iconveh_internal): Likewise.
1294         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
1295         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
1296         strstr, strcasestr): Likewise.
1297         * lib/unicodeio.c (unicode_to_mb): Likewise.
1298         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
1299         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
1300         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
1301         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
1302         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
1303         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
1304         * lib/unistr/u8-stpncpy.c: Likewise.
1305         * lib/vasnprintf.c (VASNPRINTF): Likewise.
1306         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
1307         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
1308         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1309         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
1310         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
1311         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
1312         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
1313         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
1314         Likewise.
1315         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
1316         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
1317         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1318         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1319         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1320         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1321         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1322         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
1323         * tests/test-getopt.h (OPTIND_MIN): Likewise.
1324         * tests/test-striconveha.c (main): Likewise.
1325         * tests/test-vasnprintf-posix.c (test_function): Likewise.
1326         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
1327         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
1328         * doc/posix-functions/getline.texi: Likewise.
1329         Reported by Mike Frysinger <vapier@gentoo.org>.
1330
1331 2010-11-20  Bruno Haible  <bruno@clisp.org>
1332
1333         nproc: Fix condition.
1334         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
1335         HAVE_PTHREAD_AFFINITY_NP.
1336
1337 2010-11-20  Bruno Haible  <bruno@clisp.org>
1338
1339         Fix a comment.
1340         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
1341
1342 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
1343
1344         ftoastr: don't assume snprintf
1345         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
1346         Implement a subset of snprintf here, by using sprintf safely.
1347         * modules/ftoastr (Depends-on): Remove snprintf.
1348
1349 2010-11-19  Jim Meyering  <meyering@redhat.com>
1350
1351         test-rename.h: fix compilation failure
1352         * tests/test-rename.h (test_rename): Add omitted "}".
1353
1354 2010-11-17  Jim Meyering  <meyering@redhat.com>
1355
1356         maint.mk: add a URL discussing the no-@acronym policy
1357         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
1358
1359 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
1360
1361         ftoastr: depend on snprintf, improve comments
1362         * lib/ftoastr.c: Also mention Loitsch's draft.
1363         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
1364         needed in the current implementation, but it might simplify
1365         speeding up the code later.
1366         * modules/ftoastr: Depend on snprintf; this improves portability.
1367         Suggested by Bruno Haible in the same email.
1368
1369         ftoastr: port to hosts lacking strtof and strtold
1370         Problem reported by Bruno Haible in
1371         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
1372         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
1373         environment and strtold (and presumably strtof) are not available.
1374         * modules/ftoastr (Files): Add m4/c-strtod.m4.
1375         (configure.ac): Require gl_C99_STRTOLD.
1376
1377 2010-11-18  Bruno Haible  <bruno@clisp.org>
1378
1379         c-strtold: Avoid link error on AIX 7.
1380         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
1381         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
1382         (gl_C_STRTOLD): Test whether strtold_l exists.
1383         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
1384
1385 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
1386
1387         intprops: new macro INT_BITS_STRLEN_BOUND
1388         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
1389         ftoastr.h.  This exposes an internal of intprops.h that was formerly
1390         not exposed.  Also, it uses a slightly tighter bound than before;
1391         though this makes no practical difference, we might as well be as
1392         tight as we easily can.
1393
1394         ftoastr: new module, for lossless conversion of floats to short strings
1395         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
1396         * modules/ftoastr: New files.
1397
1398 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
1399
1400         bootstrap: port to Solaris sed
1401         * build-aux/bootstrap (get_version): Port to Solaris sed.
1402         See Ralf Wildenhues's note in
1403         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
1404
1405 2010-11-14  Jim Meyering  <meyering@redhat.com>
1406
1407         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
1408         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
1409         and move definition closer to sole use.
1410
1411 2010-11-13  Jim Meyering  <meyering@redhat.com>
1412
1413         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
1414         Now we require at least autoconf-2.59, which means the work-around
1415         is no longer needed.
1416         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
1417         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1418         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1419         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
1420         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
1421
1422 2010-11-13  Bruno Haible  <bruno@clisp.org>
1423
1424         rename, renameat: Avoid test failures at NFS mounted locations.
1425         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
1426         functions.
1427         (test_rename): Use assert_nonexistent.
1428         * tests/test-rename.c: Include <dirent.h>.
1429         * tests/test-renameat.c: Likewise.
1430         Reported by Gary V. Vaughan <gary@gnu.org>.
1431
1432         rename, renameat: Document Linux bug with NFS
1433         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
1434         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
1435         * doc/posix-functions/renameat.texi: Likewise.
1436         Suggested by Eric Blake.
1437
1438 2010-11-13  Bruno Haible  <bruno@clisp.org>
1439
1440         rename test: Add comments.
1441         * tests/test-rename.h (test_rename): Add structure and comments.
1442
1443 2010-11-13  Eric Blake  <eblake@redhat.com>
1444
1445         maintainer-makefile: cover a few more files
1446         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
1447         scripts generated within C files, for libvirt.
1448
1449 2010-11-13  Bruno Haible  <bruno@clisp.org>
1450
1451         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
1452         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
1453         character, return the number of bytes that belong together, not always
1454         1.
1455         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
1456         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
1457         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
1458         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
1459         number of bytes of an invalid character.
1460         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
1461         (main): Invoke it.
1462         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
1463         results.
1464         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
1465         malformed byte sequences.
1466         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
1467         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
1468         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
1469         Reported by Ben Pfaff and Paolo Bonzini.
1470
1471 2010-11-13  Bruno Haible  <bruno@clisp.org>
1472
1473         openat: Work around glibc bug with fchownat() and empty file names.
1474         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
1475         (gl_FUNC_FCHOWNAT): Invoke it.
1476         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
1477         * doc/posix-functions/fchownat.texi: Document the glibc bug.
1478         Reported by Gary V. Vaughan <gary@gnu.org>.
1479
1480 2010-11-13  Bruno Haible  <bruno@clisp.org>
1481
1482         openat: Ensure autoconf macro ordering.
1483         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
1484         gl_USE_SYSTEM_EXTENSIONS.
1485         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
1486
1487 2010-11-13  Bruno Haible  <bruno@clisp.org>
1488
1489         Update comments.
1490         * lib/unistr/u8-check.c: Update file name in comments.
1491         * lib/unistr/u8-mblen.c: Likewise.
1492         * lib/unistr/u8-prev.c: Likewise.
1493         * lib/unistr/u8-strmblen.c: Likewise.
1494         * lib/unistr/u8-strmbtouc.c: Likewise.
1495
1496 2010-11-13  Jim Meyering  <meyering@redhat.com>
1497
1498         tests: avoid test failure on Solaris 10 due to lack of PATH export
1499         * tests/test-update-copyright.sh: Don't forget to export PATH.
1500
1501         init.sh: ensure that IFS is defined, just in case...
1502         * tests/init.sh (setup_): Ensure that IFS is defined,
1503         so that saving and restoring it works as expected.  This
1504         appears to be useful at least for an old version of dash
1505         from a long time ago (RH 6).  See here for details:
1506         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
1507
1508         maint.mk: tighten "test a == b" check
1509         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
1510         test to files that contain something like #!/bin/sh.
1511         Without this, coreutils would get two false positives in
1512         the comments of C source files.
1513
1514 2010-11-12  Eric Blake  <eblake@redhat.com>
1515
1516         bootstrap: fix typo in previous attempt
1517         * build-aux/bootstrap (buildreq): Correct the grouping.
1518         Reported by Paul Eggert.
1519
1520         maintainer-makefile: prohibit test x == x
1521         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
1522         Based on a report by Matthias Bolte.
1523
1524         bootstrap: allow FreeBSD gzip
1525         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
1526         which has no '.' and goes to stderr.
1527         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
1528         Reported by Matthias Bolte.
1529
1530         maintainer-makefile: check for i18n setup
1531         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
1532         will likely work.
1533
1534 2010-11-12  Bruno Haible  <bruno@clisp.org>
1535
1536         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
1537         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
1538         * lib/nanosleep.c (nanosleep): Likewise.
1539
1540 2010-11-11  Bruno Haible  <bruno@clisp.org>
1541
1542         fcntl-h: Fix for use of C++ on glibc systems.
1543         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
1544         also on glibc systems in C++ mode.
1545         Reported by Gary V. Vaughan <gary@gnu.org>.
1546
1547 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1548
1549         mknod: avoid false failure with dash
1550         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
1551
1552 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
1553
1554         unlink: Fix "is it should" typo in diagnostic.
1555         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
1556         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
1557
1558 2010-11-11  Bruno Haible  <bruno@clisp.org>
1559
1560         Tests for module 'strerror_r-posix'.
1561         * modules/strerror_r-posix-tests: New file.
1562         * tests/test-strerror_r.c: New file.
1563         * tests/test-string-c++.cc: Check the signature of strerror_r.
1564
1565         New module 'strerror_r-posix'.
1566         * lib/string.in.h (strerror_r): New declaration.
1567         * lib/strerror_r.c: New file.
1568         * m4/strerror_r.m4: New file.
1569         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
1570         of strerror_r.
1571         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
1572         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
1573         * modules/strerror_r-posix: New file.
1574         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
1575         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
1576         * doc/posix-functions/strerror_r.texi: Mention the new module and the
1577         portability problems.
1578
1579 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
1580
1581         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
1582         line is also considered for output. Quoted function name in shell
1583         command, so temporary files for functions like MyClass::operator()
1584         are removed correctly without errors.
1585
1586 2010-11-09  Bruno Haible  <bruno@clisp.org>
1587
1588         * doc/posix-functions/strerror.texi: List more failing platforms.
1589
1590         * doc/posix-functions/strerror.texi: Add a comment.
1591
1592 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
1593
1594         fdopendir: fix bug on MacOS X when low on file descriptors
1595
1596         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
1597         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
1598         All callers changed.
1599         (fdopendir): Invoke save_cwd at the top level, not after using
1600         multiple dup() calls to use up file descriptors.  Then retry
1601         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
1602         less than the maximum number of open file descriptors, because
1603         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
1604         on Mac OS X 10.6.4 for tar 1.24
1605         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
1606         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
1607         and for tar 1.25
1608         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
1609
1610 2010-11-07  Bruno Haible  <bruno@clisp.org>
1611
1612         vasnprintf: Support I flag on glibc systems.
1613         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
1614         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
1615         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
1616         snprintf function.
1617         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
1618         glibc systems.
1619         * tests/test-vasnprintf-posix3.c: New file.
1620         * modules/vasnprintf-posix-tests (Files): Add it.
1621         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
1622
1623 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
1624
1625         [html] Fix copy/paste bug: Use unique name for compiler warnings.
1626         * MODULES.html.sh: For compiler warnings, use name
1627         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
1628
1629 2010-11-05  Eric Blake  <eblake@redhat.com>
1630
1631         ceil, floor: avoid spurious failure with icc
1632         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
1633         [denormals-as-zero] when optimizing without -mieee-fp option.
1634         * tests/test-floorf2.c (floorf_reference): Likewise.
1635         * tests/test-ceilf1.c (dummy): New function.
1636         (main): Use it to outsmart icc's optimization.
1637         * tests/test-floorf1.c (dummy, main): Likewise.
1638
1639         tests: require working signbit
1640         * modules/ceilf-tests (Depends-on): Add signbit.
1641         * modules/ceill-tests (Depends-on): Likewise.
1642         * modules/floorf-tests (Depends-on): Likewise.
1643         * modules/floorl-tests (Depends-on): Likewise.
1644         * modules/round-tests (Depends-on): Likewise.
1645         * modules/roundf-tests (Depends-on): Likewise.
1646         * modules/roundl-tests (Depends-on): Likewise.
1647         * modules/trunc-tests (Depends-on): Likewise.
1648         * modules/truncf-tests (Depends-on): Likewise.
1649         * modules/truncl-tests (Depends-on): Likewise.
1650
1651         strtod: work around icc bug
1652         * lib/strtod.c (minus_zero): Define to working value.
1653         (strtod): Use it to avoid icc bug.
1654
1655         copysign: enhance tests
1656         * modules/copysign-tests (Files): Add minus-zero.h.
1657         * tests/test-copysign.c (main): Also test zeros.
1658
1659 2010-11-04  Eric Blake  <eblake@redhat.com>
1660
1661         ceil, floor, round, trunc: enhance tests of -0
1662         * tests/test-ceilf1.c (main): Ensure correct sign of result.
1663         * tests/test-ceill.c (main): Likewise.
1664         * tests/test-floorf1.c (main): Likewise.
1665         * tests/test-floorl.c (main): Likewise.
1666         * tests/test-round1.c (main): Likewise.
1667         * tests/test-roundf1.c (main): Likewise.
1668         * tests/test-roundl.c (main): Likewise.
1669         * tests/test-trunc1.c (main): Likewise.
1670         * tests/test-truncf1.c (main): Likewise.
1671         * tests/test-truncl.c (main): Likewise.
1672
1673 2010-11-04  Eric Blake  <eblake@redhat.com>
1674
1675         frexp, tests: work around ICC bug with -zero
1676         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
1677         works with more compilers.
1678         * tests/minus-zero.h: New file.
1679         * modules/ceilf-tests (Files): Include it.
1680         * modules/ceill-tests (Files): Likewise.
1681         * modules/floorf-tests (Files): Likewise.
1682         * modules/floorl-tests (Files): Likewise.
1683         * modules/frexp-nolibm-tests (Files): Likewise.
1684         * modules/frexp-tests (Files): Likewise.
1685         * modules/frexpl-nolibm-tests (Files): Likewise.
1686         * modules/frexpl-tests (Files): Likewise.
1687         * modules/isnan-tests (Files): Likewise.
1688         * modules/isnand-nolibm-tests (Files): Likewise.
1689         * modules/isnand-tests (Files): Likewise.
1690         * modules/isnanf-nolibm-tests (Files): Likewise.
1691         * modules/isnanf-tests (Files): Likewise.
1692         * modules/isnanl-nolibm-tests (Files): Likewise.
1693         * modules/isnanl-tests (Files): Likewise.
1694         * modules/round-tests (Files): Likewise.
1695         * modules/roundf-tests (Files): Likewise.
1696         * modules/roundl-tests (Files): Likewise.
1697         * modules/ldexpl-tests (Files): Likewise.
1698         * modules/signbit-tests (Files): Likewise.
1699         * modules/snprintf-posix-tests (Files): Likewise.
1700         * modules/sprintf-posix-tests (Files): Likewise.
1701         * modules/strtod-tests (Files): Likewise.
1702         * modules/trunc-tests (Files): Likewise.
1703         * modules/truncf-tests (Files): Likewise.
1704         * modules/truncl-tests (Files): Likewise.
1705         * modules/vsnprintf-posix-tests (Files): Likewise.
1706         * modules/vsprintf-posix-tests (Files): Likewise.
1707         * modules/vasnprintf-posix-tests (Files): Likewise.
1708         * modules/vasprintf-posix-tests (Files): Likewise.
1709         * tests/test-ceilf1.c (main): Use it.
1710         * tests/test-ceill.c (main): Likewise.
1711         * tests/test-floorf1.c (main): Likewise.
1712         * tests/test-floorl.c (main): Likewise.
1713         * tests/test-frexp.c (main): Likewise.
1714         * tests/test-frexpl.c (main): Likewise.
1715         * tests/test-isnan.c (main): Likewise.
1716         * tests/test-isnand.h (main): Likewise.
1717         * tests/test-isnanf.h (main): Likewise.
1718         * tests/test-isnanl.h (main): Likewise.
1719         * tests/test-ldexpl.c (main): Likewise.
1720         * tests/test-round.c (main): Likewise.
1721         * tests/test-roundf.c (main): Likewise.
1722         * tests/test-roundl.c (main): Likewise.
1723         * tests/test-signbit.c (test_signbitf, test_signbitd)
1724         (test_signbitl): Likewise.
1725         * tests/test-snprintf-posix.h (test_function): Likewise.
1726         * tests/test-sprintf-posix.h (test_function): Likewise.
1727         * tests/test-strtod.c (main): Likewise.
1728         * tests/test-trunc1.c (main): Likewise.
1729         * tests/test-truncf1.c (main): Likewise.
1730         * tests/test-truncl.c (main): Likewise.
1731
1732         isnanl: work around icc bug
1733         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
1734
1735 2010-11-03  Eric Blake  <eblake@redhat.com>
1736
1737         tests: fix compiler warnings
1738         * tests/test-getopt.h (test_getopt): Fix condition.
1739         * tests/test-getopt_long.h (test_getopt_long): Likewise.
1740         * tests/test-pipe2.c (main): Likewise.
1741         * tests/test-quotearg-simple.c (main): Avoid icc warning.
1742
1743         utimens: fix broken m4 test
1744         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
1745
1746 2010-10-28  Bruno Haible  <bruno@clisp.org>
1747
1748         posix_spawn*, getdtablesize: Relax license.
1749         * modules/posix_spawn (License): Change to LGPLv2+.
1750         * modules/posix_spawnp (License): Likewise.
1751         * modules/posix_spawn-internal (License): Likewise.
1752         * modules/posix_spawnattr_init (License): Likewise.
1753         * modules/posix_spawnattr_getflags (License): Likewise.
1754         * modules/posix_spawnattr_setflags (License): Likewise.
1755         * modules/posix_spawnattr_getpgroup (License): Likewise.
1756         * modules/posix_spawnattr_setpgroup (License): Likewise.
1757         * modules/posix_spawnattr_getschedparam (License): Likewise.
1758         * modules/posix_spawnattr_setschedparam (License): Likewise.
1759         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
1760         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
1761         * modules/posix_spawnattr_getsigdefault (License): Likewise.
1762         * modules/posix_spawnattr_setsigdefault (License): Likewise.
1763         * modules/posix_spawnattr_getsigmask (License): Likewise.
1764         * modules/posix_spawnattr_setsigmask (License): Likewise.
1765         * modules/posix_spawnattr_destroy (License): Likewise.
1766         * modules/posix_spawn_file_actions_init (License): Likewise.
1767         * modules/posix_spawn_file_actions_addclose (License): Likewise.
1768         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
1769         * modules/posix_spawn_file_actions_addopen (License): Likewise.
1770         * modules/posix_spawn_file_actions_destroy (License): Likewise.
1771         * modules/getdtablesize (License): Likewise.
1772         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
1773
1774 2010-10-26  Bruno Haible  <bruno@clisp.org>
1775
1776         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
1777         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
1778         Cygwin and mingw.
1779         Suggested by Eric Blake.
1780
1781 2010-10-26  Bruno Haible  <bruno@clisp.org>
1782
1783         stdio: Work around compilation error due to renameat() on Solaris 10.
1784         * lib/stdio.in.h: Include <unistd.h> on Solaris.
1785         * lib/renameat.c: Don't include <unistd.h> here.
1786         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
1787         Reported by Paul Eggert and Eric Blake.
1788
1789 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
1790
1791         renameat: port to Solaris 10, which declares renameat in unistd.h
1792
1793         * lib/renameat.c: Include unistd.h before stdio.h, because
1794         Solaris 10 declares renameat in unistd.h.  Problem encountered
1795         when building GNU tar 1.24 on Solaris 10.
1796
1797 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
1798
1799         fdopendir: fix C89 compilation
1800         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
1801         compilers.
1802
1803 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
1804
1805         inttostr: simplify by removing unnecessary redundancy
1806         * lib/anytostr.c: Don't include verify.h.
1807         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
1808         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
1809         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
1810         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
1811         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
1812         Likewise.
1813         * modules/inttostr (Depends-on): Remove 'verify'.
1814
1815 2010-10-23  Bruno Haible  <bruno@clisp.org>
1816
1817         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
1818         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
1819         Reported by Eric Blake.
1820
1821 2010-10-23  Bruno Haible  <bruno@clisp.org>
1822
1823         Tests: Fix LOCALE_JA on MirBSD 10.
1824         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
1825         to an UTF-8 locale.
1826         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
1827         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
1828         Reported by Eric Blake.
1829
1830 2010-10-21  Bruno Haible  <bruno@clisp.org>
1831
1832         nl_langinfo test: Avoid test failure on NetBSD 5.
1833         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
1834         Reported by Eric Blake.
1835
1836 2010-10-21  Eric Blake  <eblake@redhat.com>
1837
1838         c-stack: work around libsigsegv 2.8 bug
1839         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
1840         overflow on at least PowerPC64.
1841
1842 2010-10-17  Bruno Haible  <bruno@clisp.org>
1843
1844         userspec: Drop redundant file.
1845         * modules/userspec (Files): Remove lib/inttostr.h.
1846
1847 2010-10-17  Bruno Haible  <bruno@clisp.org>
1848
1849         nl_langinfo tests: Silence some warnings.
1850         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
1851         Reported by Jim Meyering.
1852
1853 2010-10-17  Bruno Haible  <bruno@clisp.org>
1854
1855         Make use of GCC's attribute __alloc_size__.
1856         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
1857         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
1858         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
1859         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
1860         __alloc_size__.
1861         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
1862         Suggested by Jim Meyering.
1863
1864 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
1865
1866         bootstrap: anchor .gitignore entries.
1867         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
1868         with...
1869         (insert_vc_ignore): ... this new function, which prepends `/' to
1870         all .gitignore entries before passing them to
1871         insert_sorted_if_absent.
1872
1873 2010-10-16  Bruno Haible  <bruno@clisp.org>
1874
1875         nextafter: Fix configure check.
1876         * modules/nextafter (configure.ac): Correct expected prototype.
1877
1878 2010-10-16  Bruno Haible  <bruno@clisp.org>
1879
1880         termios: Update documentation.
1881         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
1882
1883 2010-10-16  Bruno Haible  <bruno@clisp.org>
1884
1885         tests: Make them compile with TinyCC.
1886         * tests/test-strstr.c (main): Remove parentheses around array
1887         initializer.
1888
1889 2010-10-15  Eric Blake  <eblake@redhat.com>
1890
1891         ignore-value: make header idempotent
1892         * lib/ignore-value.h: Add double-inclusion guards.
1893         Reported by Stefan Berger.
1894
1895 2010-10-15  Jim Meyering  <meyering@redhat.com>
1896
1897         GNUmakefile: handle "stable" target, not "major"
1898         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
1899         lists in maint.mk and announce-gen.  Without this, "make stable"
1900         would fail to ensure that $(VERSION) is up to date.
1901
1902 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
1903
1904         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
1905         & co.
1906
1907 2010-10-14  Bruno Haible  <bruno@clisp.org>
1908
1909         vasnprintf: Don't set errno to 0.
1910         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
1911         block that sets it to 0.
1912         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
1913
1914 2010-10-14  Bruno Haible  <bruno@clisp.org>
1915
1916         socketlib: Fix.
1917         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
1918         gl_PREREQ_SYS_H_WINSOCK2.
1919         Reported by Ian Beckwith <ianb@erislabs.net>.
1920
1921 2010-10-13  Jim Meyering  <meyering@redhat.com>
1922
1923         test-select-stdin.c: avoid warn_unused_result warnings
1924         * tests/test-select-stdin.c: Include "macros.h".
1925         ASSERT that read and fflush succeed.
1926
1927 2010-10-13  Jim Meyering  <meyering@redhat.com>
1928
1929         git-version-gen: do require git-VC'd files in cwd
1930         * build-aux/git-version-gen: Reject a git version string
1931         if there are no commits associated with the current directory.
1932         This avoids an unlikely false-positive (unrelated dir whose parent
1933         repository also contains a tag matching v*), as pointed out
1934         by Giuseppe Scrivano in
1935         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
1936
1937 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
1938
1939         argv-iter: omit nonconforming declaration
1940         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
1941         enum arg_iter_err declaration, which doesn't conform to C99.
1942         Solaris 10 cc warns about this.
1943
1944 2010-10-13  Eric Blake  <eblake@redhat.com>
1945
1946         termios: fix compilation on mingw
1947         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
1948         (gl_TERMIOS_H): Adjust it on mingw.
1949         * modules/termios (Makefile.am): Substitute new key.
1950         * lib/termios.in.h (includes): Make include_next conditional.
1951         * doc/posix-headers/termios.texi (termios.h): Update
1952         documentation.
1953         Reported by Daniel P. Berrange.
1954
1955 2010-10-13  Jim Meyering  <meyering@redhat.com>
1956
1957         git-version-gen: don't require that .git/ be in the current dir
1958         * build-aux/git-version-gen: Adjust this script so that it works
1959         when run from any working directory beneath the top-level .git/-
1960         containing directory.  Inspired by a patch from Giuseppe Scrivano,
1961         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
1962
1963         test-select: avoid warn_unused_result warnings
1964         * tests/test-select.c: Include "macros.h".
1965         ASSERT that each call to read, write, and pipe succeeds.
1966         While not technically required, also check each "close".
1967         * modules/select-tests (Files): Add tests/macros.h.
1968
1969         test-symlinkat: remove declaration of unused local
1970         * tests/test-symlinkat.c (main): Remove unused local, "buf".
1971
1972         test-inttostr: avoid shadowing warnings
1973         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
1974         and use malloc rather than the stack for the same reason as
1975         mentioned in the comment justifying the other allocation.
1976
1977 2010-10-11  Bruno Haible  <bruno@clisp.org>
1978
1979         stdlib: Allow multiple gnulib generated replacements to coexist.
1980         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
1981         Reported by Sam Steingold <sds@gnu.org>.
1982
1983 2010-10-11  Jim Meyering  <meyering@redhat.com>
1984
1985         fix a documentation typo
1986         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
1987
1988 2010-10-11  Eric Blake  <eblake@redhat.com>
1989
1990         futimens: work around Solaris 11 bug
1991         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
1992         * tests/test-futimens.h (test_futimens): Enhance, rather than
1993         weaken test.
1994         * doc/posix-functions/futimens.texi (futimens): Document the bug.
1995
1996 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
1997
1998         Indentation.
1999         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
2000         higher-level operators more to the left.
2001
2002 2010-10-11  Jim Meyering  <meyering@redhat.com>
2003
2004         test-futimens: avoid unwarranted test failure on Solaris 5.11
2005         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
2006         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
2007         because it tries to dereference the NULL name argument.
2008
2009 2010-10-11  Bruno Haible  <bruno@clisp.org>
2010
2011         Indentation.
2012         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
2013         indentation.
2014
2015 2010-10-11  Jim Meyering  <meyering@redhat.com>
2016
2017         spawn.in.h: make indentation consistent with parentheses
2018         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
2019         Make indentation consistent with parentheses.
2020
2021 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
2022
2023         Fix mismatched parens in previous commit
2024         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
2025         parens.
2026
2027 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
2028
2029         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
2030
2031         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
2032         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
2033         * lib/malloca.c: Include "verify.h".
2034         (verify1): Remove, replacing with a verify call.
2035         * lib/relocwrapper.c (verify1): Likewise.
2036         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
2037         Likewise.
2038         * modules/malloca (Depends-on): Add 'verify'.
2039         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
2040         * modules/vasnprintf (Depends-on): Add 'verify'.
2041         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
2042         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2043         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2044         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2045         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2046         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2047         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2048
2049         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
2050
2051         Formerly the style was sometimes 2*X - 1, because the C standard
2052         was wrongly thought to disallow ?: in integral constant expressions.
2053         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
2054         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
2055         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
2056         * lib/stdint.in.h (_verify_intmax_size): Likewise.
2057         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
2058         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
2059         verify that time_t cannot be floating.
2060
2061 2010-10-08  Eric Blake  <eblake@redhat.com>
2062
2063         time: enforce recent POSIX ruling that time_t is integral
2064         * lib/time.in.h (__time_t_must_be_integral): Detect any
2065         problematic systems, allowing the rest of gnulib to assume POSIX.
2066
2067 2010-10-08  Jim Meyering  <meyering@redhat.com>
2068
2069         fdopendir: fix a bug on systems lacking openat and /proc support
2070         OpenBSD 4.7 is one such system.  The most noticeable effect was
2071         failure of any application making nontrivial use of fts: rm, du,
2072         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
2073           ./rm: traversal failed: `a': Bad file descriptor
2074         Debugging that, you see that even though FD 6 was closed just
2075         prior to the opendir call in fd_clone_opendir, its resulting
2076         dir->dd_fd was 8, rather than the expected value of 6:
2077
2078         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
2079         93                close (fd);
2080         (gdb) n
2081         94                dir = fd_clone_opendir (dupfd);
2082         (gdb) n
2083         95                saved_errno = errno;
2084         (gdb) p dir->dd_fd
2085         $11 = 8
2086
2087         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
2088         The problem is that on OpenBSD, fd_clone_opendir has to resort
2089         to using the old-style save/restore CWD mechanism, due to its
2090         lack of openat/proc support, and *that* would steal the FD (6)
2091         that opendir was supposed to use.
2092
2093         The fix is to squirrel away the desired FD so that save_cwd uses a
2094         different one, and then free the dest FD right before calling opendir.
2095         That guarantees opendir will use the required file descriptor.
2096
2097         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
2098
2099 2010-10-08  Bruno Haible  <bruno@clisp.org>
2100
2101         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
2102         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
2103
2104 2010-10-08  Bruno Haible  <bruno@clisp.org>
2105
2106         nanosleep: Make replacement POSIX compliant.
2107         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
2108         is out of range.
2109         Reported by Jim Meyering.
2110
2111 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
2112
2113         bootstrap: add hook for altering gnulib.mk, for Bison
2114         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
2115         the Bison bootstrapping process can rewrite file names and variables
2116         in this file before later parts of 'bootstrap' use the file.
2117         Bison wants to include lib/gnulib.mk from the top-level makefile,
2118         so it needs the file names in this file to be relative to the top
2119         level, not relative to lib; plus it needs variable names to be
2120         rewritten.
2121         (slurp): Use the new function.
2122
2123         bootstrap: reformat for readability
2124         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
2125
2126 2010-10-08  Eric Blake  <eblake@redhat.com>
2127
2128         docs: update cygwin progress
2129         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
2130         1.7.7.
2131         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
2132         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
2133         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
2134         * doc/posix-functions/carg.texi (carg): Likewise.
2135         * doc/posix-functions/cargf.texi (cargf): Likewise.
2136         * doc/posix-functions/casin.texi (casin): Likewise.
2137         * doc/posix-functions/casinf.texi (casinf): Likewise.
2138         * doc/posix-functions/casinh.texi (casinh): Likewise.
2139         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
2140         * doc/posix-functions/catan.texi (catan): Likewise.
2141         * doc/posix-functions/catanf.texi (catanf): Likewise.
2142         * doc/posix-functions/catanh.texi (catanh): Likewise.
2143         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
2144         * doc/posix-functions/ccos.texi (ccos): Likewise.
2145         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
2146         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
2147         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
2148         * doc/posix-functions/cexp.texi (cexp): Likewise.
2149         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
2150         * doc/posix-functions/cimag.texi (cimag): Likewise.
2151         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
2152         * doc/posix-functions/clog.texi (clog): Likewise.
2153         * doc/posix-functions/clogf.texi (clogf): Likewise.
2154         * doc/posix-functions/conj.texi (conj): Likewise.
2155         * doc/posix-functions/conjf.texi (conjf): Likewise.
2156         * doc/posix-functions/cpow.texi (cpow): Likewise.
2157         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
2158         * doc/posix-functions/cproj.texi (cproj): Likewise.
2159         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
2160         * doc/posix-functions/creal.texi (creal): Likewise.
2161         * doc/posix-functions/crealf.texi (crealf): Likewise.
2162         * doc/posix-functions/csin.texi (csin): Likewise.
2163         * doc/posix-functions/csinf.texi (csinf): Likewise.
2164         * doc/posix-functions/csinh.texi (csinh): Likewise.
2165         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
2166         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
2167         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
2168         * doc/posix-functions/ctan.texi (ctan): Likewise.
2169         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
2170         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
2171         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
2172         * doc/posix-headers/complex.texi (complex.h): Likewise.
2173
2174 2010-10-07  Jim Meyering  <meyering@redhat.com>
2175
2176         parse-datetime: avoid compilation failure on OpenBSD 4.7
2177         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
2178         This works around a compilation failure on OpenBSD 4.7:
2179         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
2180
2181 2010-10-07  Eric Blake  <eblake@redhat.com>
2182
2183         docs: update cygwin progress
2184         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
2185         1.7.6.
2186         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
2187         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
2188         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
2189         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
2190         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
2191         Likewise.
2192         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
2193         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
2194         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
2195         Likewise.
2196         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
2197         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
2198         Likewise.
2199         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
2200         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
2201         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
2202         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
2203         Likewise.
2204         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
2205         Likewise.
2206         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
2207
2208         docs: update parse-datetime history
2209         * doc/parse-datetime.texi (Authors of parse_datetime): Better
2210         documentation of this function's history and alternatives.
2211
2212         cygwin: use more robust version check
2213         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
2214         exclude an eventual cygwin 1.9.1.
2215         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2216         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
2217         (gl_FUNC_STRCASESTR): Likewise.
2218         Reported by Bruno Haible.
2219
2220 2010-10-06  Bruno Haible  <bruno@clisp.org>
2221
2222         string, sys_select: Avoid #including large headers unless necessary.
2223         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
2224         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
2225         OSF/1, BeOS, Haiku.
2226         Reported by Jim Meyering.
2227
2228 2010-10-05  Eric Blake  <eblake@redhat.com>
2229
2230         memmem, strstr, strcasestr: fix bug with long periodic needle
2231         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
2232         periodic needle having false positive.
2233         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
2234         and cygwin 1.7.7.
2235         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
2236         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
2237         (gl_FUNC_STRCASESTR): Likewise.
2238         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
2239         * tests/test-memmem.c (main): Expose the bug.
2240         * tests/test-strcasestr.c (main): Likewise.
2241         * tests/test-strstr.c (main): Likewise.
2242         * tests/test-c-strcasestr.c (main): Likewise.
2243         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
2244         * doc/posix-functions/strstr.texi (strstr): Likewise.
2245         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2246         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
2247
2248 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2249
2250         parse-datetime: do some more renaming
2251         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
2252         parse_datetime, not get_date.  Mention the renaming.
2253         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
2254         in comments.
2255         * m4/bison.m4: Likewise.
2256
2257 2010-10-05  Eric Blake  <eblake@redhat.com>
2258
2259         parse-datetime: better name than get_date
2260         * NEWS: Reword the deprecation notice.
2261         * modules/get_date: Rename to modules/parse-datetime.
2262         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
2263         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
2264         * lib/get_date.y: Rename to lib/parse-datetime.y.
2265         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
2266         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
2267         * doc/getdate.texi: Provide fallback wrapper.
2268         * lib/getdate.h: Move guts, and wrap...
2269         * lib/parse-datetime.h: ...new file.
2270         * lib/parse-datetime.y (get_date): Rename...
2271         (parse_datetime): ...to this.
2272         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
2273         (gl_PARSE_DATETIME): ...to this.
2274         * doc/posix-functions/getdate.texi (get_date): Provide fallback
2275         documentation.
2276         * modules/getdate (Files): Provide fallback docs and header.
2277         (Notice, Depends-on): Update references.
2278         * tests/test-parse-datetime.c: Likewise.
2279         * DEPENDENCIES: Likewise.
2280         * MODULES.html.sh (Date and time <time.h>): Likewise.
2281         * doc/parse-datetime.texi (Date input formats)
2282         (Authors of parse_datetime): Likewise.
2283         * modules/parse-datetime (Files, configure.ac, Makefile.am)
2284         (Include): Likewise.
2285         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
2286         * gnulib-tool: Likewise.
2287         * m4/bison.m4 (gl_BISON): Likewise.
2288         Suggested by Bruno Haible.
2289
2290 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
2291
2292         more ports to Solaris tr, which needs [] around ranges
2293         * gnulib-tool: Solaris tr needs [] around ranges.
2294         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2295         * tests/test-pipe-filter-gi1.c (main): Likewise.
2296         * tests/test-pipe-filter-ii1.c (main): Likewise.
2297
2298 2010-10-05  Eric Blake  <eblake@redhat.com>
2299
2300         bootstrap: fix Solaris regression
2301         * build-aux/bootstrap (check_versions): Solaris tr still needs []
2302         around ranges.
2303         Reported by Pádraig Brady.
2304
2305         bootstrap: work with pkg-config
2306         * build-aux/bootstrap (check_versions): Also transliterate - in
2307         prerequisite name.
2308         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
2309         prerequisites that were already found, to avoid confusion.
2310         Reported by Justin Clift.
2311
2312         faccessat: remove unused wrappers
2313         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
2314         presence of these wrappers dragged in -lgen on Solaris.
2315         Reported by Clemens Brogi; fix suggested by Paul Eggert.
2316
2317 2010-10-05  Jim Meyering  <meyering@redhat.com>
2318
2319         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
2320         * Makefile (sc_pragma_columns): New syntax-check rule.
2321
2322 2010-10-04  Bruno Haible  <bruno@clisp.org>
2323
2324         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
2325         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
2326         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
2327         Reported by Bruce Korb and Eric Blake.
2328
2329 2010-10-04  Bruno Haible  <bruno@clisp.org>
2330
2331         threadlib: Make option --with-libpth-prefix work.
2332         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
2333         use $LIBPTH, not just -lpth.
2334
2335 2010-10-04  Bruno Haible  <bruno@clisp.org>
2336
2337         Avoid line length limitation from HP NonStop system header files.
2338         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
2339         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
2340         * lib/ctype.in.h: Likewise.
2341         * lib/dirent.in.h: Likewise.
2342         * lib/errno.in.h: Likewise.
2343         * lib/fcntl.in.h: Likewise.
2344         * lib/float.in.h: Likewise.
2345         * lib/getopt.in.h: Likewise.
2346         * lib/iconv.in.h: Likewise.
2347         * lib/inttypes.in.h: Likewise.
2348         * lib/langinfo.in.h: Likewise.
2349         * lib/locale.in.h: Likewise.
2350         * lib/math.in.h: Likewise.
2351         * lib/netdb.in.h: Likewise.
2352         * lib/netinet_in.in.h: Likewise.
2353         * lib/poll.in.h: Likewise.
2354         * lib/pthread.in.h: Likewise.
2355         * lib/pty.in.h: Likewise.
2356         * lib/sched.in.h: Likewise.
2357         * lib/se-selinux.in.h: Likewise.
2358         * lib/search.in.h: Likewise.
2359         * lib/signal.in.h: Likewise.
2360         * lib/spawn.in.h: Likewise.
2361         * lib/stdarg.in.h: Likewise.
2362         * lib/stddef.in.h: Likewise.
2363         * lib/stdint.in.h: Likewise.
2364         * lib/stdio.in.h: Likewise.
2365         * lib/stdlib.in.h: Likewise.
2366         * lib/string.in.h: Likewise.
2367         * lib/strings.in.h: Likewise.
2368         * lib/sys_file.in.h: Likewise.
2369         * lib/sys_ioctl.in.h: Likewise.
2370         * lib/sys_select.in.h: Likewise.
2371         * lib/sys_socket.in.h: Likewise.
2372         * lib/sys_stat.in.h: Likewise.
2373         * lib/sys_time.in.h: Likewise.
2374         * lib/sys_times.in.h: Likewise.
2375         * lib/sys_utsname.in.h: Likewise.
2376         * lib/sys_wait.in.h: Likewise.
2377         * lib/sysexits.in.h: Likewise.
2378         * lib/termios.in.h: Likewise.
2379         * lib/time.in.h: Likewise.
2380         * lib/unistd.in.h: Likewise.
2381         * lib/wchar.in.h: Likewise.
2382         * lib/wctype.in.h: Likewise.
2383         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
2384         * modules/ctype (Makefile.am): Likewise.
2385         * modules/dirent (Makefile.am): Likewise.
2386         * modules/errno (Makefile.am): Likewise.
2387         * modules/fcntl-h (Makefile.am): Likewise.
2388         * modules/float (Makefile.am): Likewise.
2389         * modules/getopt-posix (Makefile.am): Likewise.
2390         * modules/iconv-h (Makefile.am): Likewise.
2391         * modules/inttypes (Makefile.am): Likewise.
2392         * modules/langinfo (Makefile.am): Likewise.
2393         * modules/locale (Makefile.am): Likewise.
2394         * modules/math (Makefile.am): Likewise.
2395         * modules/netdb (Makefile.am): Likewise.
2396         * modules/netinet_in (Makefile.am): Likewise.
2397         * modules/poll-h (Makefile.am): Likewise.
2398         * modules/pthread (Makefile.am): Likewise.
2399         * modules/pty (Makefile.am): Likewise.
2400         * modules/sched (Makefile.am): Likewise.
2401         * modules/search (Makefile.am): Likewise.
2402         * modules/selinux-h (Makefile.am): Likewise.
2403         * modules/signal (Makefile.am): Likewise.
2404         * modules/spawn (Makefile.am): Likewise.
2405         * modules/stdarg (Makefile.am): Likewise.
2406         * modules/stddef (Makefile.am): Likewise.
2407         * modules/stdint (Makefile.am): Likewise.
2408         * modules/stdio (Makefile.am): Likewise.
2409         * modules/stdlib (Makefile.am): Likewise.
2410         * modules/string (Makefile.am): Likewise.
2411         * modules/strings (Makefile.am): Likewise.
2412         * modules/sys_file (Makefile.am): Likewise.
2413         * modules/sys_ioctl (Makefile.am): Likewise.
2414         * modules/sys_select (Makefile.am): Likewise.
2415         * modules/sys_socket (Makefile.am): Likewise.
2416         * modules/sys_stat (Makefile.am): Likewise.
2417         * modules/sys_time (Makefile.am): Likewise.
2418         * modules/sys_times (Makefile.am): Likewise.
2419         * modules/sys_utsname (Makefile.am): Likewise.
2420         * modules/sys_wait (Makefile.am): Likewise.
2421         * modules/sysexits (Makefile.am): Likewise.
2422         * modules/termios (Makefile.am): Likewise.
2423         * modules/time (Makefile.am): Likewise.
2424         * modules/unistd (Makefile.am): Likewise.
2425         * modules/wchar (Makefile.am): Likewise.
2426         * modules/wctype (Makefile.am): Likewise.
2427
2428 2010-10-04  Bruno Haible  <bruno@clisp.org>
2429
2430         read-file tests: Avoid a test failure on NonStop Kernel.
2431         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
2432         a regular file.
2433         Reported by Joachim Schmitz <schmitz@hp.com>.
2434
2435 2010-10-03  Bruno Haible  <bruno@clisp.org>
2436
2437         gnulib-tool: Fixes for --create-testdir with --libtool.
2438         * gnulib-tool (func_get_automake_snippet): Don't augment
2439         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
2440         an executable.
2441         (func_create_testdir): Handle module 'alloca' like func_import.
2442         Reported by Bruce Korb <bruce.korb@gmail.com>.
2443
2444 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
2445
2446         Avoid some lines longer than 80 characters.
2447         * lib/stdint.in.h: Break long comment lines.
2448         * lib/math.in.h: Likewise.
2449         (_GL_NUM_UINT_WORDS): New macro, for readability.
2450         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
2451         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
2452         * lib/stdlib.in.h: Likewise.
2453         * lib/spawn.in.h: Likewise.
2454         * lib/sys_socket.in.h: Update an URL.
2455         * lib/sys_stat.in.h: Break long line.
2456
2457 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
2458
2459         Improve pmccabe2html.
2460         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
2461         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
2462         when the sources change. Remove the line in the HTML about "Used
2463         ranges" (which implied that there might be other unused ranges),
2464         rename "Resume" to "Summary" (easier to understand for more users).
2465         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
2466         styles, and some unnecessary blank lines.
2467
2468 2010-10-03  Bruno Haible  <bruno@clisp.org>
2469             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
2470
2471         acl: Add support for ACLs on NonStop Kernel.
2472         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
2473         Check whether the function aclsort() exists.
2474         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
2475         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
2476         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2477         (acl_nontrivial [HAVE_ACLSORT]: New function.
2478         (file_has_acl): Implement for NonStop Kernel.
2479         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2480         (qset_acl): Implement for NonStop Kernel.
2481         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
2482         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
2483         (main): Implement for NonStop Kernel.
2484         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
2485         Kernel. Handle this flavor.
2486         * tests/test-set-mode-acl.sh: Likewise.
2487         * tests/test-copy-acl.sh: Likewise.
2488         * tests/test-copy-file.sh: Likewise.
2489
2490 2010-10-03  Bruno Haible  <bruno@clisp.org>
2491
2492         Info about ACLs on NonStop Kernel.
2493         * doc/acl-resources.txt: Add info about NonStop Kernel.
2494         References by Joachim Schmitz <schmitz@hp.com>.
2495
2496 2010-10-02  Bruno Haible  <bruno@clisp.org>
2497
2498         Define missing EDQUOT on NonStop Kernel.
2499         * lib/errno.in.h (EDQUOT): Assign a value if missing.
2500         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
2501         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
2502         missing.
2503         * doc/posix-headers/errno.texi: Mention the NSK bug.
2504         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
2505         Reported by Joachim Schmitz <schmitz@hp.com>.
2506
2507 2010-10-02  Bruno Haible  <bruno@clisp.org>
2508
2509         Update doc for POSIX:2008.
2510         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
2511         Update URL of POSIX specification.
2512
2513 2010-10-02  Bruno Haible  <bruno@clisp.org>
2514
2515         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
2516         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
2517         from gnulib, not from Automake.
2518
2519 2010-10-02  Bruno Haible  <bruno@clisp.org>
2520
2521         New module 'system-posix'.
2522         * modules/system-posix: New file.
2523         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
2524         module is present.
2525         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
2526         GNULIB_SYSTEM_POSIX.
2527         * modules/stdlib (Depends-on): Remove sys_wait.
2528         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
2529         * doc/posix-functions/system.texi: Mention the new module.
2530         * doc/posix-headers/stdlib.texi: Likewise.
2531         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
2532         define test_sys_wait_macros to a no-op.
2533         Reported by Sam Steingold <sds@gnu.org>.
2534
2535 2010-09-30  Bruno Haible  <bruno@clisp.org>
2536
2537         More renaming from 'getdate' to 'get_date'.
2538         * doc/get_date.texi: Renamed from doc/getdate.texi.
2539         * modules/get_date (Files): Update.
2540         * MODULES.html.sh (Date and time <time.h>): Update.
2541         * DEPENDENCIES: Update.
2542         * gnulib-tool: Update comment.
2543         * m4/bison.m4 (gl_BISON): Likewise.
2544         * m4/get_date.m4 (gl_GET_DATE): Likewise.
2545
2546 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
2547
2548         bootstrap: support ACLOCAL_FLAGS during aclocal
2549         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
2550         can add additional -I dir for third-party .m4 files.
2551
2552 2010-09-30  Eric Blake  <eblake@redhat.com>
2553
2554         bootstrap: use glibtoolize on MacOS
2555         * build-aux/bootstrap (check_versions): Convert libtool into
2556         libtoolize.
2557         (tool search): Move libtool check earlier, and look for
2558         glibtoolize for MacOS.
2559         (gnulib_tool_options): Auto-add --libtool when appropriate.
2560         Reported by Justin Clift.
2561
2562         poll: fix typo that broke test on MacOS
2563         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
2564         Reported by Justin Clift.
2565
2566         getdate: rename to get_date
2567         Note: getdate.h is not renamed, to minimize client impact.
2568         * modules/getdate: Mark obsolete.  Move old contents...
2569         * modules/get_date: ...to new module name.
2570         * modules/getdate-tests: Move...
2571         * modules/get_date-tests: ...here.
2572         * m4/getdate.m4: Move...
2573         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
2574         * lib/getdate.y: Move...
2575         * lib/get_date.y: ...here.
2576         * tests/test-getdate.c: Move...
2577         * tests/test-get_date.c: ...here.
2578         * doc/posix-functions/getdate.texi (getdate): Update name.
2579         * NEWS: Mention the change.
2580
2581 2010-09-29  Bruno Haible  <bruno@clisp.org>
2582
2583         Separate the module 'waitpid' from the module 'sys_wait'.
2584         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
2585         present.
2586         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
2587         gl_MODULE_INDICATOR_FOR_TESTS.
2588         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
2589         * modules/sys_wait (Depends-on): Remove waitpid.
2590         (Makefile.am): Substitute GNULIB_WAITPID.
2591         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
2592         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
2593         signature only if the 'waitpid' module is present.
2594         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
2595         * NEWS: Mention the change.
2596         * modules/grantpt (Depends-on): Add waitpid.
2597         * modules/wait-process (Depends-on): Likewise.
2598
2599 2010-09-29  Bruno Haible  <bruno@clisp.org>
2600
2601         More tests for module 'sys_wait'.
2602         * modules/sys_wait-c++-tests: New file.
2603         * tests/test-sys_wait-c++.cc: New file.
2604         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
2605         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2606
2607 2010-09-29  Bruno Haible  <bruno@clisp.org>
2608
2609         New module 'waitpid'.
2610         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
2611         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
2612         Don't include <process.h>.
2613         (waitpid): Declare only, using modern idiom.
2614         * m4/waitpid.m4: New file.
2615         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
2616         * modules/waitpid: New file.
2617         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
2618         (Makefile.am): Update.
2619         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
2620
2621 2010-09-28  Bruno Haible  <bruno@clisp.org>
2622
2623         poll: Assume ANSI C.
2624         * lib/poll.c (poll): Use an ANSI C declaration.
2625
2626 2010-09-28  Bruno Haible  <bruno@clisp.org>
2627
2628         poll-h: Create poll.h on all platforms.
2629         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
2630         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
2631         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
2632         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
2633         (gl_REPLACE_POLL_H): Don't set POLL_H.
2634         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
2635         * modules/poll-h (Depends-on): Add include_next.
2636         (Makefile.am): Create poll.h unconditionally. Substitute also
2637         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
2638
2639 2010-09-28  Bruno Haible  <bruno@clisp.org>
2640
2641         Tests for module 'poll-h'.
2642         * modules/poll-h-c++-tests: New file.
2643         * tests/test-poll-h-c++.cc: New file.
2644
2645         Tests for module 'poll-h'.
2646         * modules/poll-h-tests: New file.
2647         * tests/test-poll-h.c: New file.
2648
2649 2010-09-28  Bruno Haible  <bruno@clisp.org>
2650
2651         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
2652         * modules/poll-h (Depends-on): Add 'extensions'.
2653
2654 2010-09-28  Bruno Haible  <bruno@clisp.org>
2655
2656         New module 'poll-h'.
2657         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
2658         (poll): Use modern idiom.
2659         * modules/poll-h: New file.
2660         * modules/poll (Files): Remove lib/poll.in.h.
2661         (Depends-on): Add poll-h.
2662         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
2663         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
2664         * m4/poll_h.m4: New file.
2665         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
2666         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
2667         and invoke gl_REPLACE_POLL_H.
2668         * lib/poll.c: Use common idiom.
2669         * tests/test-poll.c: Likewise.
2670         * doc/posix-headers/poll.texi: Mention the poll-h module.
2671         Suggested by Eric Blake.
2672
2673 2010-09-26  Bruno Haible  <bruno@clisp.org>
2674
2675         sys_wait: Implement WSTOPSIG.
2676         * lib/sys_wait.in.h (WSTOPSIG): New macro.
2677         Reported by Simon Josefsson.
2678
2679 2010-09-26  Simon Josefsson  <simon@josefsson.org>
2680
2681         stdlib, sys_wait: Avoid compilation error on mingw.
2682         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
2683
2684 2010-09-26  Bruno Haible  <bruno@clisp.org>
2685
2686         stdlib tests: Avoid code duplication.
2687         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
2688         * modules/sys_wait-tests (Files): Likewise.
2689         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
2690         * tests/test-stdlib.c: Include test-sys_wait.h.
2691         (main): Invoke test_sys_wait_macros.
2692         * tests/test-sys_wait.c: Include test-sys_wait.h.
2693         (main): Invoke test_sys_wait_macros.
2694
2695 2010-09-25  Simon Josefsson  <simon@josefsson.org>
2696
2697         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
2698         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
2699         sure Windows sockets are working before calling getaddrinfo.
2700         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
2701         * doc/gnulib.texi (Windows sockets): Fix typo.
2702
2703 2010-09-25  Bruno Haible  <bruno@clisp.org>
2704
2705         Tests for module 'regex-quote'.
2706         * modules/regex-quote-tests: New file.
2707         * tests/test-regex-quote.c: New file.
2708
2709         New module 'regex-quote'.
2710         * lib/regex-quote.h: New file.
2711         * lib/regex-quote.c: New file.
2712         * modules/regex-quote: New file.
2713         Suggested by Reuben Thomas <rrt@sc3d.org>.
2714
2715 2010-09-24  Bruno Haible  <bruno@clisp.org>
2716
2717         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
2718         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
2719
2720 2010-09-23  Bruno Haible  <bruno@clisp.org>
2721
2722         setenv: Relax license.
2723         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
2724         Blake.
2725         Requested by Eric Blake.
2726
2727 2010-09-22  Bruno Haible  <bruno@clisp.org>
2728
2729         termios: Relax license.
2730         * modules/termios (License): Change to LGPLv2+.
2731         Requested by Eric Blake.
2732
2733 2010-09-22  Bruno Haible  <bruno@clisp.org>
2734
2735         threadlib: Allow the package to change the default to 'no'.
2736         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
2737         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
2738         Reported by Paul Eggert.
2739
2740 2010-09-22  Pádraig Brady  <P@draigbrady.com>
2741             Bruno Haible  <bruno@clisp.org>
2742
2743         Fix endless loop in mbmemcasecoll.
2744         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
2745         byte.
2746         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
2747
2748 2010-09-22  Bruno Haible  <bruno@clisp.org>
2749
2750         Tests for module 'memcoll'.
2751         * modules/memcoll-tests: New file.
2752         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
2753
2754         memcoll, xmemcoll: Clarify size vs. length.
2755         * modules/memcoll.c (memcoll0): Clarify specification.
2756         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
2757         passed to collate_error.
2758
2759 2010-09-22  Bruno Haible  <bruno@clisp.org>
2760
2761         Tests for module 'memcasecmp'.
2762         * modules/memcasecmp-tests: New file.
2763         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
2764
2765 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
2766
2767         * lib/pthread.in.h: Add split double-inclusion guard, and include
2768         system <pthread.h> if there is one.  Use @@-style as in other
2769         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
2770         pthread.h doesn't.
2771         (pthread_mutexattr_destroy, pthread_mutexattr_init):
2772         (pthread_mutexattr_settype, pthread_mutex_trylock):
2773         New static inline functions, if there's no system <pthread.h>.
2774         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
2775         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
2776         Approximate with mutexes if the system lacks spinlocks, as in
2777         MacOS.
2778         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
2779         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
2780         @@-style.  Check for spinlocks separately.
2781         (gl_PTHREAD_DEFAULTS): New macro.
2782         * modules/pthread: Redo to use a more typical style for in.h files.
2783
2784 2010-09-21  Eric Blake  <eblake@redhat.com>
2785
2786         net_if: enhance tests
2787         * tests/test-net_if.c (main): Move signature checks earlier.
2788         Print failures to stderr.
2789         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
2790         Document the bug that we do not yet fix.
2791
2792 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
2793
2794         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
2795         about gnulib, not GSS.
2796
2797 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
2798
2799         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
2800         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
2801         for Emacs.
2802         * build-aux/pmccabe2html: Make Makefile.am example code more
2803         cut-and-paste friendly.
2804
2805 2010-09-21  Simon Josefsson  <simon@josefsson.org>
2806
2807         * tests/test-net_if.c: New file.
2808         * modules/net_if-tests: New file.
2809
2810 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
2811
2812         pthread: add pthread_spin_destroy
2813         * lib/pthread.in.h (pthread_spin_destroy): New function.
2814
2815 2010-09-19  Bruno Haible  <bruno@clisp.org>
2816
2817         gnulib-tool: Fix --help output.
2818         * gnulib-tool (func_usage): Fix help message.
2819         Reported by Reuben Thomas <rrt@sc3d.org>.
2820
2821 2010-09-18  Jim Meyering  <meyering@redhat.com>
2822
2823         maint.mk: avoid unexpanded \n in two diagnostics
2824         * top/maint.mk (sc_prohibit_always_true_header_tests):
2825         Don't use a literal \n in a halt=... assignment.  It would not be
2826         expanded, and the two \n bytes would appear in the diagnostic output
2827         rather than the desired newline.  Use halt=$$(printf ... instead.
2828         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
2829
2830 2010-09-18  Bruno Haible  <bruno@clisp.org>
2831
2832         netinet_in: Doc tweak.
2833         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
2834         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2835
2836 2010-09-18  Jim Meyering  <meyering@redhat.com>
2837
2838         init.sh: correct an outdated comment
2839         * tests/init.sh (create_exe_shims_):  s/function/alias/
2840
2841         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
2842         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
2843         a file named "*.exe" is removed between the glob expansion and the
2844         processing of that oddly named file.
2845
2846 2010-09-17  Eric Blake  <eblake@redhat.com>
2847
2848         mirbsd: add some more support
2849         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
2850         in BSD family.
2851         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
2852         devices as OpenBSD.
2853         * m4/host-os.m4 (mirbsd): Add MirBSD.
2854
2855         tests: fix unportable assumption on sys/wait.h
2856         * tests/test-sys_wait.c (main): Relax test.
2857         * tests/test-stdlib.c (main): Likewise.
2858
2859         init.sh: accomodate directory with no .exes
2860         * tests/init.sh: Accomodate directory containing only scripts.
2861
2862         tests: avoid compiler warning
2863         * tests/test-stdlib.c (main): Use the variable.
2864
2865         fdutimens, fdutimensat: update signature, again
2866         * lib/utimens.h (gl_futimens): Delete, and move signature...
2867         (fdutimens): ...here.
2868         (fdutimensat): Rearrange signature.
2869         (lutimensat): Rename variable for clarity.
2870         * lib/fdutimensat.c (fdutimensat): Update signature.
2871         * lib/utimens.c (fdutimens): Likewise.
2872         (gl_futimens): Delete.
2873         (utimens, lutimens): Update callers.
2874         * lib/futimens.c (futimens): Likewise.
2875         * tests/test-fdutimensat.c: Likewise.
2876         * tests/test-utimens.c: Likewise.
2877         * tests/test-futimens.h: Update comment.
2878         * NEWS: Mention this.
2879         Suggested by Paul Eggert.
2880
2881 2010-09-17  Bruno Haible  <bruno@clisp.org>
2882
2883         Take over the maintenance of some older macros from Autoconf.
2884         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
2885         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
2886         GNU Autoconf.
2887         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
2888         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
2889
2890 2010-09-17  Eric Blake  <eblake@redhat.com>
2891
2892         fdutimensat: drop atflag validation
2893         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
2894         with valid fd, to close a race scenario where futimens is
2895         unsupported and FILE was replaced by a symlink.
2896         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
2897         accordingly.
2898         Suggested by Paul Eggert.
2899
2900 2010-09-16  Bruno Haible  <bruno@clisp.org>
2901
2902         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
2903         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
2904
2905 2010-09-16  Bruno Haible  <bruno@clisp.org>
2906
2907         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
2908         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
2909         login_tty exists.
2910         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2911
2912 2010-09-16  Bruno Haible  <bruno@clisp.org>
2913
2914         login_tty: Make the replacement code work on BSD systems.
2915         * lib/login_tty.c: Include <sys/ioctl.h>.
2916         (login_tty): Use ioctl TIOCSCTTY when available.
2917         * modules/login_tty (Depends-on): Add sys_ioctl.
2918         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2919
2920 2010-09-16  Bruno Haible  <bruno@clisp.org>
2921
2922         login_tty: Stricter unit test.
2923         * modules/login_tty-tests (Depends-on): Add tcgetsid.
2924         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
2925         and tcgetsid() after login_tty.
2926         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
2927
2928 2010-09-16  Bruno Haible  <bruno@clisp.org>
2929
2930         New module 'tcgetsid'.
2931         * lib/tcgetsid.c: New file.
2932         * m4/tcgetsid.m4: New file.
2933         * modules/tcgetsid: New file.
2934         * modules/termios (Depends-on): Add c++defs, warn-on-use.
2935         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
2936         GNULIB_TCGETSID, HAVE_TCGETSID.
2937         * lib/termios.in.h: Include <sys/types.h>.
2938         (tcgetsid): New declaration.
2939         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
2940         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
2941         * doc/posix-functions/tcgetsid.texi: Mention the new module.
2942         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
2943
2944 2010-09-16  Bruno Haible  <bruno@clisp.org>
2945
2946         Tests for module 'termios'.
2947         * modules/termios-c++-tests: New file.
2948         * modules/termios-tests: New file.
2949         * tests/test-termios-c++.cc: New file.
2950         * tests/test-termios.c: New file.
2951
2952         New module 'termios'.
2953         * modules/termios: New file.
2954         * lib/termios.in.h: New file.
2955         * m4/termios_h.m4: New file.
2956         * doc/posix-headers/termios.texi: Mention the new module.
2957
2958 2010-09-16  Eric Blake  <eblake@redhat.com>
2959
2960         fdutimensat: add an atflag parameter
2961         * lib/fdutimensat.c (fdutimensat): Add new parameter.
2962         * lib/utimens.h (fdutimensat): Update prototype.
2963         * tests/test-fdutimensat.c: Adjust test to match.
2964         * NEWS: Document the change.
2965         Suggested by Paul Eggert.
2966
2967 2010-09-16  Bruno Haible  <bruno@clisp.org>
2968
2969         Fix typos in comments.
2970         * lib/striconveh.h: Fix typo in comment.
2971         * lib/login_tty.c (login_tty): Likewise.
2972
2973 2010-09-15  Bruno Haible  <bruno@clisp.org>
2974
2975         stdlib: clarify MirBSD WEXITSTATUS bug
2976         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
2977         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2978
2979 2010-09-15  Eric Blake  <eblake@redhat.com>
2980
2981         stdlib: work around MirBSD WEXITSTATUS bug
2982         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
2983         * modules/stdlib (Depends-on): Add sys_wait.
2984         * tests/test-sys_wait.c (main): Enhance test.
2985         * tests/test-stdlib.c (main): Likewise.
2986         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
2987
2988         docs: mention MacOS issue with WEXITSTATUS(constant)
2989         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
2990         issue.
2991         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2992
2993         strnlen: add tests
2994         * modules/strnlen-tests: New file.
2995         * tests/test-strnlen.c: Likewise.
2996
2997 2010-09-14  Bruno Haible  <bruno@clisp.org>
2998
2999         unistr/base: Avoid link errors when module 'libunistring' is also used.
3000         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
3001         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
3002         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
3003         Declare also when HAVE_LIBUNISTRING is set.
3004         Reported by Pádraig Brady <P@draigbrady.com>.
3005
3006 2010-09-14  Eric Blake  <eblake@redhat.com>
3007
3008         test-rawmemchr: make more robust
3009         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
3010         (Depends-on, configure.ac): Add needed prerequisites to use it.
3011         * modules/memchr-tests (Files, Depends-on, configure.ac):
3012         Likewise, to avoid implicit reliance on memchr module prereqs.
3013         * tests/test-memchr.c (main): Ensure proper masking.
3014         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
3015         reads.
3016
3017         memchr: detect glibc Alpha bug
3018         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
3019         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
3020         Alpha.
3021         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
3022         * tests/test-memchr.c (main): Enhance test.
3023         Reported by Nelson H. F. Beebe.
3024
3025 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3026
3027         fts, getcwd, glob: audit for dirfd returning -1
3028         * lib/fts.c (opendir): Remove #define; no longer used.
3029         (opendirat): New arg PDIR_FD.  All callers changed.
3030         (fts_build, _opendir2): Use new opendirat to avoid the need for
3031         dirfd, or for checking whether dirfd returns a negative value.
3032         Don't use opendir; always use openat followed by fdopendir.
3033         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
3034         it.
3035         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
3036         returns -1 here.
3037         * modules/fts (Depends-on): Remove dirfd.
3038         * modules/getcwd (Depends-on): Likewise.
3039
3040 2010-09-13  Eric Blake  <eblake@redhat.com>
3041
3042         float: fix broken MirBSD header
3043         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
3044         * doc/posix-headers/float.texi (float.h): Document it.
3045
3046 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3047
3048         fts: use O_NOFOLLOW to avoid race condition when opening a directory
3049         * lib/fts.c (opendirat): New arg extra_flags.
3050         (__opendir2): Use it to avoid following symlinks when opening
3051         a directory, if symlinks are not supposed to be followed.  See
3052         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
3053
3054         fdopendir: preserve argument fd before returning
3055         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
3056         (fdopendir_with_dup, fd_clone_opendir): New static functions.
3057         (fdopendir): Use them, arranging for FD to be open to the same
3058         directory that it was when it started.  (It might be temporarily
3059         closed while fdopendir is running, so this not thread- or
3060         signal-safe.)  Be careful to do the right thing even when file
3061         descriptors are scarce and dup fails with errno == EMFILE.  See
3062         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
3063
3064 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
3065
3066         regex: Pass the system regex if its only problem is 32-bit regoff_t.
3067         * NEWS: Document change.
3068         * m4/regex.m4: Disable test for regoff_t size.
3069
3070 2010-09-13  Jim Meyering  <meyering@redhat.com>
3071
3072         fts: don't operate on an invalid file descriptor after failed dup
3073         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
3074         negative file descriptor.
3075
3076 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
3077
3078         savedir: add streamsavedir, deprecate fdsavedir
3079         * NEWS: Mention deprecation of fdsavedir.
3080         * lib/savedir.c (streamsavedir): New extern function, whose name
3081         ends in "savedir" to be consistent with the others.  This differs
3082         from savedirstream in that it doesn't close its argument.  The
3083         next version of GNU tar will use this instead of fdsavedir, to
3084         avoid some race conditions and conserve file descriptors.
3085         (savedirstream): Reimplement as a wrapper around streamsavedir.
3086         (fdsavedir): Add a comment deprecating this function.  As far as
3087         I know, only GNU tar used it, and GNU tar doesn't need it any more.
3088         * lib/savedir.h (streamsavedir): New decl.
3089         (fdsavedir): Add a comment deprecating this.
3090
3091 2010-09-10  Bruno Haible  <bruno@clisp.org>
3092
3093         langinfo: Fix last commit.
3094         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
3095         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
3096         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3097
3098 2010-09-10  Bruno Haible  <bruno@clisp.org>
3099
3100         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
3101         * lib/progreloc.c (O_EXEC): Define fallback.
3102
3103 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3104
3105         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
3106         * NEWS: Document recent changes to fcntl-h.
3107         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
3108         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
3109         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
3110         Similarly for O_SEARCH; this last was already true, but not documented.
3111         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
3112         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
3113         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
3114         Likewise.
3115         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
3116         is zero, not whether it is defined.
3117         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
3118         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
3119         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
3120
3121 2010-09-10  Bruno Haible  <bruno@clisp.org>
3122
3123         langinfo, nl_langinfo: Fix for IRIX 5.3.
3124         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
3125         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
3126         HAVE_LANGINFO_YESEXPR.
3127         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
3128         HAVE_LANGINFO_YESEXPR.
3129         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
3130         HAVE_LANGINFO_T_FMT_AMPM is 0.
3131         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
3132         HAVE_LANGINFO_YESEXPR is 0.
3133         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
3134         NOEXPR.
3135         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
3136         * doc/posix-functions/nl_langinfo.texi: Likewise.
3137         Reported by Eric Blake.
3138
3139 2010-09-10  Bruno Haible  <bruno@clisp.org>
3140
3141         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
3142         * doc/glibc-functions/login_tty.texi: Mention the include file problem
3143         on FreeBSD 8.0 and OpenBSD 4.6.
3144         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
3145         * m4/pty_h.m4 (gl_PTY_H): Likewise.
3146         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
3147         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
3148         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
3149         ac_includes_default.
3150         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
3151
3152 2010-09-09  Eric Blake  <eblake@redhat.com>
3153
3154         strsignal: work around NetBSD bug
3155         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
3156         * lib/string.in.h (includes): Likewise.
3157         * doc/posix-functions/strsignal.texi (strsignal): Document the
3158         bug.
3159         Reported by Nelson H. F. Beebe.
3160
3161         gnulib-tool: work with NetBSD /bin/sh
3162         * gnulib-tool (func_cache_var, func_cache_lookup_module)
3163         (func_get_description, func_get_comment, func_get_status)
3164         (func_get_notice, func_get_applicability, func_get_filelist)
3165         (func_get_dependencies, func_get_autoconf_early_snippet)
3166         (func_get_autoconf_snippet, func_get_automake_snippet)
3167         (func_get_include_directive, func_get_link_directive)
3168         (func_get_license, func_get_maintainer, func_import): Avoid
3169         shell syntax errors from parsing syntax extensions.
3170
3171 2010-09-09  Bruno Haible  <bruno@clisp.org>
3172
3173         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
3174         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
3175         a reliable way to determine whether the 'alias' command works.
3176
3177 2010-09-08  Jim Meyering  <meyering@redhat.com>
3178
3179         init.sh: penalize a set-x-impaired shell; don't disqualify it
3180         * tests/init.sh: Too many shells corrupt application stderr when
3181         you set -x, so we can't afford to disqualify them, since at least
3182         on Irix-6.5, that would disqualify all bourne shells.
3183         Instead, use a two-pass approach.
3184         On the first pass, try to find a shell that meets the stricter
3185         condition that set -x does not corrupt stderr.
3186         If no shell meets the stricter condition, retest each candidate
3187         shell, but without that extra condition.  Finally, when
3188         VERBOSE=yes is requested and set -x might cause trouble, simply
3189         issue a warning and refrain from enabling debug output.
3190
3191 2010-09-08  Eric Blake  <eblake@redhat.com>
3192
3193         unsetenv: fix OpenBSD bug
3194         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
3195         * doc/posix-functions/unsetenv.texi (unsetenv): Update
3196         documentation.
3197         Reported by Jim Meyering.
3198
3199         strtod: work around IRIX 6.5 bug
3200         * lib/strtod.c (strtod): Reparse number on shorter string if
3201         exponent parse was invalid.
3202         * tests/test-strtod.c (main): Add check for "0x1p 2".
3203         Reported by Tom G. Christensen.
3204
3205         getopt: optimize previous patch
3206         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
3207         empty variable.  Speed up awk script.
3208         Reported by Paolo Bonzini.
3209
3210 2010-09-08  Jim Meyering  <meyering@redhat.com>
3211
3212         test.sh: disqualify shells for which set -x corrupts stderr
3213         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
3214         and OpenBSD 4.7.  They make it so with "set -x", environment settings
3215         appear in stderr output.  For example, this command:
3216             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
3217         prints "P=1" on those two systems:
3218
3219 2010-09-08  Bruno Haible  <bruno@clisp.org>
3220
3221         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
3222         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
3223         commands, because some shells ignore redirections when there is an
3224         error in the command lookup.
3225         Reported by Eric Blake.
3226
3227 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
3228
3229         * lib/regex.h: Fix a mention of `regex_compile' (should be
3230         `re_compile_pattern').
3231         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
3232         (re_set_registers): Correct name of parameter in comment.
3233
3234         * doc/regex.texi: Add documentation for missing syntax flags.
3235         Remove commented-out documentation of defunct syntax option
3236         RE_NO_EMPTY_ALTS.
3237         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
3238         Add documentation of re_set_registers.
3239         Document trick to re-use a pattern buffer by setting fastmap manually.
3240         Update documentation of struct re_pattern_buffer per public members.
3241         Uncomment documentation of equivalence class operators and
3242         collating symbol operators, since they are now implemented,
3243         Explain leftmost-longest matching in relation to alternatives.
3244         Tidy documentation of substring matching.
3245         Remove POSIX documentation, which is done better in
3246         glibc, and refer the reader there. Keep BSD API documentation, as
3247         that is not readily available elsewhere.
3248
3249 2010-09-07  Eric Blake  <eblake@redhat.com>
3250
3251         getopt: handle POSIXLY_CORRECT set but not exported
3252         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
3253         export state of POSIXLY_CORRECT, due to bash set -o posix.
3254         Reported by Dustin J. Mitchell.
3255
3256 2010-09-05  Bruno Haible  <bruno@clisp.org>
3257
3258         gnulib-tool: Highlight the changed options.
3259         * gnulib-tool (func_usage): Display the --import, --add-import,
3260         --remove-import explanations in bold font.
3261
3262 2010-09-06  Karl Berry  <karl@gnu.org>
3263
3264         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
3265
3266 2010-09-05  Bruno Haible  <bruno@clisp.org>
3267
3268         uniwidth/width: Update comment.
3269         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
3270         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
3271
3272 2010-09-05  Bruno Haible  <bruno@clisp.org>
3273
3274         isinf, isnan: Relax license.
3275         * modules/isinf (License): Change from GPL to LGPL, with consent from
3276         Ben Pfaff.
3277         * modules/isnan (License): Likewise.
3278         Requested by Ludovic Courtès.
3279
3280 2010-09-04  Bruno Haible  <bruno@clisp.org>
3281
3282         gnulib-tool: Help migration from --import to --add-import or --update.
3283         * gnulib-tool: Emit a verbose error message when --import is used
3284         without any module name.
3285
3286 2010-09-04  Bruno Haible  <bruno@clisp.org>
3287
3288         Update doc about gnulib-tool.
3289         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
3290         'gnulib-tool --update' in more detail.
3291         Reported by Eric Blake.
3292
3293 2010-09-04  Bruno Haible  <bruno@clisp.org>
3294
3295         gnulib-tool: Change --import. New options --add/remove-import.
3296         * gnulib-tool: New options --add-import, --remove-import.
3297         (func_usage): Document them.
3298         (have_associative): Define always.
3299         (func_import): In import mode, don't merge the specified settings with
3300         the cached settings. Implement remove-import mode.
3301         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
3302         Explain when to use them versus --import.
3303         (Simple update): Use --add-import instead of --import.
3304         * NEWS: Mention the change.
3305
3306 2010-09-04  Bruno Haible  <bruno@clisp.org>
3307
3308         * doc/gnulib-tool.texi (Initial import): Update paragraph about
3309         separate gnulib.mk.
3310
3311 2010-09-04  Bruno Haible  <bruno@clisp.org>
3312
3313         gnulib-tool: Don't talk about CVS any more.
3314         * gnulib-tool (func_usage, func_import): Write "version control"
3315         instead of CVS.
3316
3317 2010-09-04  Jim Meyering  <meyering@redhat.com>
3318
3319         maint.mk: avoid obscure sc_copyright_check failure in coreutils
3320         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
3321         false positives (whose names may be ill-chosen) when searching
3322         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
3323         would cause a false-positive.
3324
3325         avoid coreutils "make distcheck" failure
3326         Coreutils tests with an absolute build directory name that contains
3327         a space.  Not quoting this directory name caused a failure.
3328         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
3329         * tests/test-vc-list-files-cvs.sh: Likewise.
3330
3331 2010-09-04  Bruno Haible  <bruno@clisp.org>
3332
3333         gnulib-tool: Avoid error when run in a package without Makefile.am.
3334         * gnulib-tool: When collecting the m4dirs in a package that does not
3335         have a Makefile.am, eliminate those directories that contain no
3336         gnulib-cache.m4. Fix expression that counts these directories.
3337
3338 2010-09-04  Bruno Haible  <bruno@clisp.org>
3339
3340         update-copyright test: Improve output when perl is missing or too old.
3341         * tests/test-update-copyright.sh: Move test of Perl version down after
3342         the test whether Perl exists. Provide an explanation relating Perl's
3343         error message to Automake's SKIP: message.
3344
3345 2010-09-04  Bruno Haible  <bruno@clisp.org>
3346
3347         Don't augment PATH in TESTS_ENVIRONMENT.
3348         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
3349         set abs_aux_dir instead of augmenting PATH.
3350         * modules/vc-list-files-tests (Makefile.am): Likewise.
3351         * tests/test-update-copyright.sh: Augment PATH here.
3352         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
3353         path_prepend_.
3354         * tests/test-vc-list-files-git.sh: Likewise.
3355
3356 2010-09-04  Jim Meyering  <meyering@redhat.com>
3357
3358         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
3359         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
3360
3361 2010-09-04  Bruno Haible  <bruno@clisp.org>
3362
3363         strdup: Fix compilation error in C++ mode.
3364         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
3365         the macro.
3366
3367 2010-09-04  Bruno Haible  <bruno@clisp.org>
3368
3369         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
3370         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
3371         macro into a function.
3372         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3373
3374 2010-09-04  Bruno Haible  <bruno@clisp.org>
3375
3376         Set PATH_SEPARATOR the same way autoconf does.
3377         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
3378         the value of PATH_SEPARATOR the same way autoconf-generated configure
3379         scripts do.
3380         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
3381         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
3382
3383 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
3384
3385         Set PATH_SEPARATOR the same way autoconf does.
3386         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
3387         the same way autoconf-generated configure scripts do.
3388         * posix-modules: Likewise.
3389
3390 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
3391
3392         hash: fix safe_hasher const typo
3393         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
3394         const; otherwise, there is a type error later.
3395
3396 2010-09-02  Jim Meyering  <meyering@redhat.com>
3397
3398         test-update-copyright.sh: require perl 5.8.0
3399         * tests/test-update-copyright.sh: Require 5.8.0,
3400         which Tom G. Christensen has confirmed is adequate,
3401         while 5.6.1 is not.
3402
3403 2010-09-02  Eric Blake  <eblake@redhat.com>
3404
3405         tests: init.sh improvements for re-exec'ing with zsh
3406         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
3407         -vx through shell re-exec.
3408         Reported by Tom G. Christensen.
3409
3410         wctype: fix typo in previous commit
3411         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
3412         Reported by Ludovic Courtès.
3413
3414 2010-09-02  Jim Meyering  <meyering@redhat.com>
3415
3416         test-update-copyright.sh: skip test if Perl is too old
3417         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
3418         Reported by Tom G. Christensen.
3419
3420 2010-09-02  Bruno Haible  <bruno@clisp.org>
3421
3422         wctype: Avoid compilation error on IRIX 6.5.30.
3423         * lib/wctype.in.h (iswblank): Declare with a replacement if
3424         REPLACE_ISWBLANK is set.
3425         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
3426         declared. Set REPLACE_ISWBLANK.
3427         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
3428         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
3429         * doc/posix-headers/wctype.texi: Likewise.
3430         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3431
3432 2010-09-01  Bruno Haible  <bruno@clisp.org>
3433
3434         New module 'socketlib'.
3435         * modules/socketlib: New file.
3436         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
3437         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
3438         * modules/sockets (Depends-on): Add socketlib.
3439         Suggested by Sam Steingold <sds@gnu.org>.
3440
3441 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3442
3443         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
3444
3445         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
3446         when one needs search access to a directory but not read access.
3447         On systems where it is available, it works in some cases where
3448         O_RDONLY does not, namely on directories that are searchable but
3449         not readable, and which need only to be searchable.  If O_SEARCH
3450         is not available, fall back to the traditional method of using
3451         O_RDONLY.
3452
3453         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
3454         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
3455         when opening a directory that needs only to be searchable.
3456         * lib/chdir-safer.c (chdir_no_follow): Likewise.
3457         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
3458         * lib/openat-proc.c (openat_proc_name): Likewise.
3459         * lib/openat.c (openat_needs_fchdir): Likewise.
3460         * lib/save-cwd.c (save_cwd): Likewise.
3461         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
3462
3463 2010-08-28  Bruno Haible  <bruno@clisp.org>
3464
3465         New module 'host-cpu-c-abi'.
3466         * modules/host-cpu-c-abi: New file.
3467         * m4/host-cpu-c-abi.m4: New file, based on part of
3468         clisp/src/m4/general.m4.
3469         Requested by Sam Steingold <sds@gnu.org>.
3470
3471 2010-08-31  Eric Blake  <eblake@redhat.com>
3472         and Jim Meyering  <meyering@redhat.com>
3473
3474         hash: factor, and guard against misbehaving hasher function
3475         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
3476         of table->hasher's return value.  Also protect against a hash value
3477         so large that adding it to table->bucket results in a NULL pointer.
3478         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
3479         Use it in place of open-coded check-and-abort.
3480
3481 2010-08-30  Bruno Haible  <bruno@clisp.org>
3482
3483         hash: silence spurious clang warning
3484         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
3485         Reported by Eric Blake.
3486
3487 2010-08-30  Eric Blake  <eblake@redhat.com>
3488
3489         strstr, memmem, strcasestr: avoid leaked shell message
3490         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
3491         FreeBSD.
3492         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
3493         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
3494
3495         tests: silence clang warning
3496         * tests/test-malloca.c (do_allocation): Avoid dead store.
3497
3498 2010-08-29  Bruno Haible  <bruno@clisp.org>
3499
3500         gettext: Fix recent mistake.
3501         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
3502
3503 2010-08-29  Bruno Haible  <bruno@clisp.org>
3504
3505         selinux-h: Offer a --without-selinux option.
3506         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
3507         --without-selinux was specified, skip all tests and define
3508         HAVE_SELINUX_SELINUX_H to 0.
3509         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
3510         set LIB_SELINUX to empty.
3511         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
3512         gl_LIBSELINUX. If --without-selinux was specified, replace
3513         selinux/context.h.
3514         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
3515
3516 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3517             Bruno Haible  <bruno@clisp.org>
3518
3519         Make the module 'realloc-gnu' work again on AIX and OSF/1.
3520         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
3521         of HAVE_REALLOC.
3522         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
3523         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
3524         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
3525         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
3526
3527 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3528             Bruno Haible  <bruno@clisp.org>
3529
3530         Make the module 'calloc-gnu' work again on AIX and OSF/1.
3531         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
3532         HAVE_CALLOC.
3533         * lib/xmalloc.c: Update accordingly.
3534         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
3535         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
3536         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
3537
3538 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3539             Bruno Haible  <bruno@clisp.org>
3540
3541         Make the module 'malloc-gnu' work again on AIX and OSF/1.
3542         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
3543         HAVE_MALLOC.
3544         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
3545         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
3546         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
3547
3548 2010-08-29  Bruno Haible  <bruno@clisp.org>
3549
3550         Update modules list.
3551         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
3552         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
3553         (String handling <string.h>): Add astrxfrm.
3554         (File system functions): Add readlinkat.
3555
3556 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3557
3558         Tests for module 'realloc-gnu'.
3559         * modules/realloc-gnu-tests: New file.
3560         * tests/test-realloc-gnu.c: New file.
3561
3562         Tests for module 'calloc-gnu'.
3563         * modules/calloc-gnu-tests: New file.
3564         * tests/test-calloc-gnu.c: New file.
3565
3566         Tests for module 'malloc-gnu'.
3567         * modules/malloc-gnu-tests: New file.
3568         * tests/test-malloc-gnu.c: New file.
3569
3570 2010-08-28  Bruno Haible  <bruno@clisp.org>
3571
3572         Rename module 'realloc' -> 'realloc-gnu'.
3573         * modules/realloc-gnu: New file, copied from modules/realloc.
3574         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
3575         obsolete.
3576         * modules/mgetgroups (Depends-on): Update.
3577         * doc/posix-functions/realloc.texi: Update.
3578         * NEWS: Mention the change.
3579
3580         Rename module 'calloc' -> 'calloc-gnu'.
3581         * modules/calloc-gnu: New file, copied from modules/calloc.
3582         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
3583         obsolete.
3584         * doc/posix-functions/calloc.texi: Update.
3585         * NEWS: Mention the change.
3586
3587         Rename module 'malloc' -> 'malloc-gnu'.
3588         * modules/malloc-gnu: New file, copied from modules/malloc.
3589         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
3590         obsolete.
3591         * modules/argp (Depends-on): Update.
3592         * modules/regex (Depends-on): Update.
3593         * doc/posix-functions/malloc.texi: Update.
3594         * NEWS: Mention the change.
3595
3596 2010-08-28  Eric Blake  <eblake@redhat.com>
3597
3598         pread, pwrite: add missing dependency
3599         * modules/pread (Depends-on): Add extensions.
3600         * modules/pwrite (Depends-on): Likewise.
3601
3602 2010-08-28  Bruno Haible  <bruno@clisp.org>
3603
3604         unistr/u*-strchr: Fix tests dependencies.
3605         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
3606         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
3607         Reported by Ian Beckwith <ianb@erislabs.net>.
3608
3609 2010-08-28  Bruno Haible  <bruno@clisp.org>
3610
3611         read-file: Don't occupy too much unused memory.
3612         * lib/read-file.c (fread_file): Shrink the buffer at the end.
3613
3614 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
3615             Eric Blake  <eblake@redhat.com>
3616             Bruno Haible  <bruno@clisp.org>
3617
3618         read-file: Avoid memory reallocations with regular files.
3619         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
3620         (fread_file): With regular files, use the remaining length as the
3621         initial buffer size.  Check against overflow.
3622         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
3623         sys_stat.
3624
3625 2010-08-28  Bruno Haible  <bruno@clisp.org>
3626
3627         ftello: Relax license.
3628         * modules/ftello (License): Relax to LGPLv2+.
3629         Reported by Eric Blake.
3630
3631 2010-08-28  Bruno Haible  <bruno@clisp.org>
3632
3633         Avoid relocwrapper link errors due to gnulib replacement functions.
3634         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
3635         function.
3636         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3637
3638 2010-08-28  Bruno Haible  <bruno@clisp.org>
3639
3640         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
3641         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
3642         defined.
3643         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
3644         Suggested by Eric Blake.
3645
3646 2010-08-28  Bruno Haible  <bruno@clisp.org>
3647
3648         sys_socket, netdb: Ensure socklen_t gets defined.
3649         * modules/sys_socket (Depends-on): Add socklen.
3650         * modules/netdb (Depends-on): Likewise.
3651         * modules/getaddrinfo (Depends-on): Remove socklen.
3652         * modules/getsockopt (Depends-on): Likewise.
3653         * modules/setsockopt (Depends-on): Likewise.
3654         * tests/test-sys_socket.c: Check that socklen_t is defined.
3655         * tests/test-netdb.c: Likewise.
3656         * m4/socklen.m4: Update comments.
3657         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3658
3659 2010-08-27  Eric Blake  <eblake@redhat.com>
3660
3661         login_tty: add missing dependency
3662         * modules/login_tty (Depends-on): Add pty.
3663
3664 2010-08-26  Eric Blake  <eblake@redhat.com>
3665
3666         lib-symbol-versions: fix m4 quoting
3667         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
3668         format for AC_LINK_IFELSE.
3669
3670         glob: fix compile test
3671         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
3672
3673         btowc: fix missing file
3674         * modules/btowc (Files): Also ship locale-fr.m4.
3675
3676         lseek: fix link test
3677         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
3678         AC_LINK_IFELSE.
3679
3680         include_next: silence autoconf 2.68 warning
3681         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
3682         AC_COMPILE_IFELSE as special.
3683         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
3684         autoconf < 2.68.
3685
3686         acl: fix compilation test
3687         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
3688         AC_COMPILE_IFELSE.
3689
3690 2010-08-26  Bruno Haible  <bruno@clisp.org>
3691
3692         Modernize AC_TRY_RUN invocations.
3693         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
3694         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
3695         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
3696         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
3697         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
3698         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
3699         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
3700         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
3701         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3702         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3703         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
3704         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
3705         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
3706         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
3707         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
3708         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
3709         gl_MBRLEN_NUL_RETVAL): Likewise.
3710         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3711         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
3712         Likewise.
3713         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3714         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
3715         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
3716         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
3717         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
3718         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
3719         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
3720         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
3721         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
3722         Likewise.
3723         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
3724         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
3725         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
3726         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3727         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3728         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
3729         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
3730         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
3731         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3732         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
3733
3734 2010-08-26  Bruno Haible  <bruno@clisp.org>
3735
3736         Modernize AC_TRY_LINK invocations.
3737         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
3738         AC_TRY_LINK.
3739         * m4/argp.m4 (gl_ARGP): Likewise.
3740         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
3741         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
3742         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
3743         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
3744         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
3745         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
3746         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
3747         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
3748         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
3749         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
3750         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
3751         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
3752         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
3753         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
3754         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
3755         * m4/hostent.m4 (gl_HOSTENT): Likewise.
3756         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
3757         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
3758         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
3759         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
3760         Likewise.
3761         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
3762         Likewise.
3763         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
3764         Likewise.
3765         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
3766         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
3767         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
3768         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3769         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
3770         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
3771         * m4/servent.m4 (gl_SERVENT): Likewise.
3772         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
3773         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
3774         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
3775         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
3776         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
3777         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3778         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3779         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3780         * modules/tsearch-tests (configure.ac): Likewise.
3781
3782 2010-08-26  Bruno Haible  <bruno@clisp.org>
3783
3784         Modernize AC_TRY_COMPILE invocations.
3785         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
3786         AC_TRY_COMPILE.
3787         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
3788         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
3789         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
3790         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
3791         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
3792         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
3793         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
3794         * m4/lock.m4 (gl_LOCK): Likewise.
3795         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
3796         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
3797         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
3798         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
3799         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
3800         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
3801         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
3802         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
3803         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
3804         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
3805         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
3806         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
3807         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
3808         extraneous semicolon.
3809
3810 2010-08-26  Jim Meyering  <meyering@redhat.com>
3811
3812         stat-time: relax license LGPL
3813         * modules/stat-time (License): Change from GPL to LGPL,
3814         with consent from all contributors, for use in libguile.
3815         Requested by Ludovic Courtès.
3816
3817 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
3818
3819         poll: return immediately on POLLHUP.
3820         * lib/poll.c (poll): Always set timeout before wait_timeout is
3821         computed.
3822
3823 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3824
3825         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
3826         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
3827         rmdir ("dir/.//"), unlinkat.
3828
3829 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3830
3831         stdbool: avoid spurious failure with modern xlc
3832         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
3833
3834 2010-08-24  Bruno Haible  <bruno@clisp.org>
3835
3836         getloadavg: simplify code
3837         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
3838         gl_have_func. Update comments.
3839
3840 2010-08-24  Eric Blake  <eblake@redhat.com>
3841
3842         getloadavg: don't define SVR4 on cygwin
3843         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
3844         only define SVR4 when -lkvm is required.
3845         Reported by Yaakov Selkowitz.
3846
3847 2010-08-24  Bruno Haible  <bruno@clisp.org>
3848
3849         priv-set: fix comment
3850         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
3851
3852 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3853
3854         priv-set: fix comments
3855         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
3856         to match code, as suggested by David Bartley in:
3857         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
3858
3859 2010-08-23  Eric Blake  <eblake@redhat.com>
3860
3861         stdbool: avoid rejecting clang
3862         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
3863         * tests/test-stdbool.c: Enable more tests if using the system
3864         <stdbool.h> instead of the gnulib replacement.
3865         (main): Move xlc bug test to a runtime test for all compilers.
3866         Reported by Anders Kaseorg.
3867
3868         argz: fix shell quoting issue
3869         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
3870         Reported by Charles Wilson.
3871
3872 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
3873             Erik Faye-Lund <kusmabite@gmail.com>
3874
3875         poll, select: handle ERROR_BROKEN_PIPE.
3876         * lib/poll.c (win32_compute_revents): Return POLLHUP when
3877         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
3878         * lib/select.c (win32_compute_revents): Do not mark a pipe
3879         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
3880
3881 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
3882
3883         fts: allow compilation with C++
3884         * lib/fts_.h: Specify extern "C" linkage with C++.
3885
3886 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3887
3888         Fix gnulib-tool sed script de-commentation for AIX sed.
3889         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
3890         sed.
3891
3892 2010-08-17  Eric Blake  <eblake@redhat.com>
3893
3894         test-stddef: test for (some) offsetof bugs
3895         * tests/test-stddef.c: Enhance test to ensure correct type of
3896         offsetof.
3897         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
3898         that we are not fixing at this time.
3899
3900 2010-08-15  Bruno Haible  <bruno@clisp.org>
3901
3902         stpncpy: Allow stpncpy to be defined as a macro.
3903         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
3904         if it's already correctly declared.
3905         * lib/string.in.h (stpncpy): Undefine before redefining.
3906         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
3907
3908 2010-08-14  Bruno Haible  <bruno@clisp.org>
3909
3910         Rename module 'memxfrm' to 'amemxfrm'.
3911         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
3912         (amemxfrm): Renamed from memxfrm.
3913         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
3914         (amemxfrm): Renamed from memxfrm.
3915         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
3916         * NEWS: Mention the change.
3917         * MODULES.html.sh (String handling <string.h>): Update.
3918         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
3919         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
3920         * lib/unicase/u16-casexfrm.c: Likewise.
3921         * lib/unicase/u32-casexfrm.c: Likewise.
3922         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
3923         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
3924         * lib/uninorm/u16-normxfrm.c: Likewise.
3925         * lib/uninorm/u32-normxfrm.c: Likewise.
3926         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
3927         memxfrm.
3928         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
3929         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
3930         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
3931         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
3932         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
3933         Suggested by Paul Eggert.
3934
3935 2010-08-14  Bruno Haible  <bruno@clisp.org>
3936
3937         Tests for module 'astrxfrm'.
3938         * modules/astrxfrm-tests: New file.
3939         * tests/test-astrxfrm.c: New file.
3940
3941         New module 'astrxfrm'.
3942         * lib/astrxfrm.h: New file.
3943         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
3944         * modules/astrxfrm: New file.
3945
3946 2010-08-14  Reuben Thomas <rrt@sc3d.org>
3947
3948         regex: Tweak doc.
3949         * doc/regex.texi (Overview): Don't mention regex.c.
3950         (GNU Regular Expression Compiling): Likewise.
3951         (Match-end-of-line Operator): Mention 'not_eol'.
3952
3953 2010-08-14  Brian Gough  <bjg@gnu.org>
3954             Bruno Haible  <bruno@clisp.org>
3955
3956         git-merge-changelog: add doc relating to use with bzr and hg.
3957         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
3958
3959 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
3960
3961         pthread: fix pthread.h creation for srcdir != builddir
3962         * modules/pthread (Makefile.am): Fix the rule to work also in a
3963         non-srcdir build.
3964
3965 2010-08-13  Karl Berry  <karl@gnu.org>
3966
3967         * doc/regex.texi (Predefined Syntaxes): @smallexample.
3968         * doc/posix-*/*: force line break before @url of POSIX
3969         specifications.
3970         Suggested by Werner Lemberg.
3971
3972 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
3973
3974         strtod: fix const diagnostic
3975         * lib/strtod.c (strtod): Don't assign const char * to char *,
3976         as this elicits a warning from GCC when warnings are enabled.
3977
3978 2010-08-10  Pádraig Brady <P@draigbrady.com>
3979         and Eric Blake  <eblake@redhat.com>
3980
3981         copy-acl: ignore ENOTSUP on HP-UX
3982         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
3983         so that it is available for HP-UX.
3984         * lib/copy-acl.c (qcopy_acl): Use it.
3985         Reported by Patrick M. Callahan.
3986
3987 2010-08-10  Eric Blake  <eblake@redhat.com>
3988
3989         open, chown: relax license
3990         * modules/open (License): Change to LGPLv2+, with consent by all
3991         authors, for use in augeas.
3992         * modules/chown (License): Likewise.
3993         * modules/lchown (Likewise): Likewise.
3994         Requested by Adam Stokes.
3995
3996 2010-08-09  Karl Berry  <karl@gnu.org>
3997
3998         * build-aux/ar-lib: new file, import from Automake.
3999         * config/srclist.txt: autocheck for updates.
4000
4001 2010-08-09  Eric Blake  <eblake@redhat.com>
4002
4003         readlinkat: adjust client modules
4004         * modules/areadlinkat (Depends-on): Use readlinkat, not
4005         symlinkat.
4006         * modules/areadlinkat-with-size (Depends-on): Likewise.
4007
4008         mknod: be more vocal about danger of running tests as root
4009         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
4010         root, since that is just asking for problems.
4011         Suggested by Bruno Haible, based on a report by Rainer Tammer.
4012
4013         readlinkat: split into its own module
4014         * modules/symlinkat: Split readlinkat...
4015         * modules/readlinkat: ...into separate module.
4016         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
4017         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
4018         * lib/symlinkat.c (readlinkat): Move...
4019         * lib/readlinkat.c: ...into new file.
4020         * modules/symlinkat-tests: Split readlinkat test...
4021         * modules/readlinkat-tests: ...into separate module.
4022         * tests/test-symlinkat.c: Split...
4023         * tests/test-readlinkat.c: ...into new file.
4024         * NEWS: Document the split.
4025         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
4026         * lib/unistd.in.h (readlinkat): Likewise.
4027         Suggested by Bruno Haible.
4028
4029 2010-08-08  Bruno Haible  <bruno@clisp.org>
4030
4031         memxfrm: Speed up.
4032         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
4033         that usually only one call to strxfrm is necessary for each string
4034         part.
4035         Reported by Paul Eggert <eggert@cs.ucla.edu>.
4036
4037 2010-08-07  Karl Berry  <karl@gnu.org>
4038
4039         * doc/posix-headers/limits.texi,
4040         * doc/posix-functions/malloc.texi,
4041         * doc/posix-functions/strsignal.texi: missing @item.
4042         * doc/ld-version-script.texi: spurious leading i.
4043         * doc/regex.texi (Interval Operators): no commas inside @var.
4044
4045 2010-08-01  Bruno Haible  <bruno@clisp.org>
4046
4047         Integrate the regex documentation.
4048         * doc/gnulib.texi: Define 'cn' index.
4049         (Regular expressions): New a chapter that includes regex.texi and
4050         regexprops-generic.texi.
4051         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
4052         syntax.
4053
4054         Whitespace cleanup.
4055         * doc/regex.texi: Remove trailing spaces.
4056
4057         Add regex documentation.
4058         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
4059         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
4060         Written by Kathy A. Hargreaves and Karl Berry.
4061
4062 2010-08-01  Bruno Haible  <bruno@clisp.org>
4063
4064         link: Update documentation.
4065         * doc/posix-functions/link.texi: Update regarding Solaris.
4066
4067 2010-07-31  Bruno Haible  <bruno@clisp.org>
4068
4069         Update modules list.
4070         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
4071         (String handling <string.h>): Add memcmp2, memxfrm.
4072         (Container data structures): Add xlist, xsublist, xoset.
4073         (Core language properties): Add alignof, unused-parameter.
4074         (Process control, Numeric conversion functions <stdlib.h>): Renamed
4075         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
4076         (Unibyte characters <ctype.h>): New section.
4077         (String handling <string.h>): New section.
4078         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
4079         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
4080         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
4081         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
4082         tan, tanh, tanl, y0, y1, yn.
4083         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
4084         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
4085         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
4086         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
4087         unlockpt, vdprintf, vdprintf-posix.
4088         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
4089         (File system functions): Add concat-filename, sys_file, sys_ioctl,
4090         xconcat-filename.
4091         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
4092         getdtablesize, pipe2, pipe2-safer.
4093         (Security): New section.
4094         (Networking functions): Add accept4.
4095         (Signal handling): Add sigpipe.
4096         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
4097         mbmemcasecoll.
4098         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
4099         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
4100         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
4101         pipe-filter-ii.
4102         (Misc): Add argp-version-etc, login_tty, parse-duration.
4103
4104 2010-07-31  Bruno Haible  <bruno@clisp.org>
4105
4106         Improve doc in MODULES.html.
4107         * modules/linkat (Description): Add the word "function".
4108         * modules/mkfifo (Description): Likewise.
4109         * modules/mknod (Description): Likewise.
4110         * modules/remove (Description): Likewise.
4111         * modules/renameat (Description): Likewise.
4112         * modules/stat (Description): Likewise.
4113         * modules/symlink (Description): Likewise.
4114         * modules/unlink (Description): Likewise.
4115
4116 2010-07-31  Bruno Haible  <bruno@clisp.org>
4117
4118         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
4119         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
4120         option --enable/disable-c++ instead of --enable/disable-cxx.
4121         * NEWS: Mention the change.
4122
4123 2010-07-31  Bruno Haible  <bruno@clisp.org>
4124
4125         readlink, areadlink: Relax test a bit.
4126         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
4127         alternative to ENOTDIR.
4128         * tests/test-areadlink.h (test_areadlink): Likewise.
4129         Reported by Rainer Tammer.
4130
4131 2010-07-31  Bruno Haible  <bruno@clisp.org>
4132
4133         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
4134         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
4135         character, perform the search using U_STRCHR.
4136         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
4137         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
4138         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
4139         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
4140         Suggested by Paolo Bonzini.
4141
4142 2010-07-31  Bruno Haible  <bruno@clisp.org>
4143
4144         unistr/u*-strstr: Fix dependencies.
4145         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
4146         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
4147         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
4148
4149 2010-07-31  Bruno Haible  <bruno@clisp.org>
4150
4151         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
4152         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
4153         the beginning of the loop.
4154         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
4155         cases in 'switch' statement.
4156
4157         unistr/u8-strchr: Fix several bugs.
4158         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
4159         the string. When not found, return NULL, not a pointer near the end.
4160
4161         More tests for unistr/u8-strchr.
4162         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
4163         that the function does not read past the first occurrence of the byte
4164         being searched.
4165         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
4166         * tests/unistr/test-u16-strchr.c (main): New function.
4167         * tests/unistr/test-u32-strchr.c (main): New function.
4168
4169 2010-07-31  Bruno Haible  <bruno@clisp.org>
4170
4171         posix-modules: Ignore backup files of documentation files.
4172         * posix-modules: grep only through files named *.texi.
4173
4174 2010-07-31  Bruno Haible  <bruno@clisp.org>
4175
4176         symlinkat: Fix documentation.
4177         * doc/posix-functions/readlinkat.texi: Fix module name.
4178
4179 2010-07-31  Bruno Haible  <bruno@clisp.org>
4180
4181         fchownat: Replace also when chown has the trailing slash bug.
4182         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
4183         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
4184         introduced on 2010-04-10.
4185         Reported by Rainer Tammer.
4186
4187 2010-07-31  Bruno Haible  <bruno@clisp.org>
4188
4189         linkat: Work around AIX 7.1 bug.
4190         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
4191         whether linkat handles trailing slash correctly. If not, replace linkat
4192         and define LINKAT_TRAILING_SLASH_BUG.
4193         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
4194         check whether (fd1,file1) points to a directory if file1 or file2 ends
4195         in a slash. Code taken from lib/link.c.
4196         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
4197         Reported by Rainer Tammer.
4198
4199 2010-07-31  Bruno Haible  <bruno@clisp.org>
4200
4201         Correctly determine whether pow is available in libc on AIX 7 with xlc.
4202         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
4203         This disables an xlc optimization that was causing wrong test results.
4204         Reported by Rainer Tammer.
4205
4206 2010-07-31  Bruno Haible  <bruno@clisp.org>
4207
4208         iconv: Work around AIX 6.1..7.1 bug.
4209         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
4210         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
4211         cross-compiling, guess no on all versions of AIX.
4212         Reported by Rainer Tammer.
4213
4214 2010-07-31  Bruno Haible  <bruno@clisp.org>
4215
4216         readlink: Relax test a bit.
4217         * tests/test-readlink.h (test_readlink): Allow different errno value
4218         when readlink is called with a file name that ends in / and refers to
4219         a file.
4220         Suggested by Eric Blake.
4221         Reported by Rainer Tammer.
4222
4223 2010-07-31  Bruno Haible  <bruno@clisp.org>
4224
4225         copysign: Does not require -lm on glibc systems.
4226         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
4227         gl_COMMON_DOUBLE_MATHFUNC.
4228         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
4229
4230 2010-07-31  Bruno Haible  <bruno@clisp.org>
4231
4232         duplocale: Work around AIX 7.1 bug.
4233         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
4234         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
4235         * lib/duplocale.c (rpl_duplocale): Update comment.
4236         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
4237         Reported by Rainer Tammer.
4238
4239 2010-07-30  Bruno Haible  <bruno@clisp.org>
4240
4241         dirfd: Avoid link error on AIX 7.1.
4242         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
4243         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
4244         exist, set REPLACE_DIRFD.
4245         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
4246         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
4247         * doc/posix-functions/dirfd.texi: Update.
4248         Reported by Rainer Tammer.
4249
4250 2010-07-30  Eric Blake  <eblake@redhat.com>
4251
4252         strtod: next round of AIX fixes
4253         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
4254         exponent.
4255         * tests/test-strtod.c (main): Enhance tests.
4256         * doc/posix-functions/strtod.texi (strtod): Document next bug.
4257         Reported by Rainer Tammer.
4258
4259         futimens: fix configure check
4260         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
4261         Reported by Bruno Haible.
4262
4263 2010-07-30  Bruno Haible  <bruno@clisp.org>
4264
4265         getline: Update regarding AIX.
4266         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
4267         Reported by Rainer Tammer.
4268
4269 2010-07-30  Bruno Haible  <bruno@clisp.org>
4270
4271         wcwidth: Drop replacement on AIX 7.
4272         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
4273         AIX 7.
4274         Reported by Rainer Tammer.
4275
4276 2010-07-30  Bruno Haible  <bruno@clisp.org>
4277
4278         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
4279         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
4280         a 'char *'.
4281         Reported by Rainer Tammer.
4282
4283 2010-07-30  Bruno Haible  <bruno@clisp.org>
4284
4285         unlink: Update regarding AIX.
4286         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
4287         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
4288         Reported by Rainer Tammer.
4289
4290 2010-07-30  Bruno Haible  <bruno@clisp.org>
4291
4292         symlink: Update regarding AIX.
4293         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
4294         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
4295         Reported by Rainer Tammer.
4296
4297 2010-07-30  Bruno Haible  <bruno@clisp.org>
4298
4299         strndup: Update regarding AIX.
4300         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
4301         AIX 7.
4302         Reported by Rainer Tammer.
4303
4304 2010-07-30  Bruno Haible  <bruno@clisp.org>
4305
4306         stat: Update regarding AIX.
4307         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
4308         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
4309         Reported by Rainer Tammer.
4310
4311 2010-07-30  Bruno Haible  <bruno@clisp.org>
4312
4313         truncl: Fix autoconf test.
4314         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
4315         whether truncl works.
4316         Reported by Rainer Tammer.
4317
4318 2010-07-30  Bruno Haible  <bruno@clisp.org>
4319
4320         round: Update regarding AIX.
4321         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
4322         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
4323         Reported by Rainer Tammer.
4324
4325 2010-07-30  Bruno Haible  <bruno@clisp.org>
4326
4327         rename: Update regarding AIX.
4328         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
4329         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
4330         Reported by Rainer Tammer.
4331
4332 2010-07-30  Bruno Haible  <bruno@clisp.org>
4333
4334         printf.m4: Update regarding AIX.
4335         * m4/printf.m4: Update comments regarding AIX.
4336         Reported by Rainer Tammer.
4337
4338 2010-07-30  Bruno Haible  <bruno@clisp.org>
4339
4340         iconv: Update regarding AIX.
4341         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
4342         AIX 7.
4343         Reported by Rainer Tammer.
4344
4345 2010-07-30  Bruno Haible  <bruno@clisp.org>
4346
4347         getopt: Update regarding AIX.
4348         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
4349         no on AIX.
4350         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
4351         Reported by Rainer Tammer.
4352
4353 2010-07-30  Bruno Haible  <bruno@clisp.org>
4354
4355         ldexpl; Update regarding AIX.
4356         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
4357         on AIX 7.
4358         Reported by Rainer Tammer.
4359
4360 2010-07-30  Bruno Haible  <bruno@clisp.org>
4361
4362         frexpl: Update regarding AIX.
4363         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
4364         on AIX 7.
4365         Reported by Rainer Tammer.
4366
4367 2010-07-30  Bruno Haible  <bruno@clisp.org>
4368
4369         open, fopen: Update regarding AIX.
4370         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
4371         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
4372         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
4373         * doc/posix-functions/fopen.texi: Likewise.
4374         Reported by Rainer Tammer.
4375
4376 2010-07-30  Bruno Haible  <bruno@clisp.org>
4377
4378         chown: Update doc regarding AIX.
4379         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
4380         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
4381         Reported by Rainer Tammer.
4382
4383 2010-07-30  Eric Blake  <eblake@redhat.com>
4384
4385         strtod: fix bug in replacement function on AIX
4386         * lib/strtod.c (strtod): Special case broken "0x" parse in
4387         underlying strtod.
4388         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
4389         * doc/posix-functions/strtod.texi (strtod): Likewise.
4390         Reported by Rainer Tammer.
4391
4392 2010-07-30  Bruno Haible  <bruno@clisp.org>
4393
4394         mbrlen: Fix cross-compilation guess for AIX.
4395         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
4396         guess. Leftover from 2008-12-22.
4397
4398 2010-07-30  Bruno Haible  <bruno@clisp.org>
4399
4400         mbrtowc: Fix cross-compilation guess for AIX.
4401         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
4402         guess. Leftover from 2008-12-21.
4403
4404 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
4405
4406         init.sh: work around trap limitation of some shells
4407         * tests/init.sh (setup_): Move exit trap outside of shell function.
4408
4409 2010-07-29  Eric Blake  <eblake@redhat.com>
4410
4411         strtod: aid debugging
4412         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
4413         understanding why strtod is rejected.
4414
4415 2010-07-28  Bruno Haible  <bruno@clisp.org>
4416
4417         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
4418         * lib/unistr/u8-chr.c: Include <string.h>.
4419         * tests/unistr/test-u8-chr.c: Likewise.
4420         * tests/unistr/test-u16-chr.c: Likewise.
4421         * tests/unistr/test-u32-chr.c: Likewise.
4422         * tests/unistr/test-u8-strchr.c: Likewise.
4423         * tests/unistr/test-u16-strchr.c: Likewise.
4424         * tests/unistr/test-u32-strchr.c: Likewise.
4425         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
4426         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
4427         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
4428         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
4429
4430 2010-07-28  Bruno Haible  <bruno@clisp.org>
4431
4432         Use spaces for indentation, not tabs.
4433         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
4434
4435 2010-07-27  Bruno Haible  <bruno@clisp.org>
4436
4437         mbspcasecmp: Fix function specification.
4438         * lib/string.in.h (mbspcasecmp): Fix specification comment.
4439         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
4440         Reported by Eric Blake <eblake@redhat.com>.
4441
4442 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
4443
4444         timespec: use cast and not conditional, as truncation isn't possible
4445         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
4446         instead of a conditional.  Comment about the situation in more detail.
4447         This undoes most of the 2009-10-29 patch.
4448
4449 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
4450
4451         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
4452         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
4453         * lib/unistr/u8-strchr.c: Likewise.
4454         * modules/unistr/u8-chr: Depend on memchr.
4455
4456         unistr/u*-strchr: add tests
4457         * modules/unistr/u8-strchr-tests: New file.
4458         * modules/unistr/u16-strchr-tests: New file.
4459         * modules/unistr/u32-strchr-tests: New file.
4460         * tests/unistr/test-strchr.h: New file.
4461         * tests/unistr/test-u8-strchr.c: New file.
4462         * tests/unistr/test-u16-strchr.c: New file.
4463         * tests/unistr/test-u32-strchr.c: New file.
4464
4465         unistr/u*-chr: test multibyte sequences more
4466         * tests/unistr/test-chr.h: Do complete testing of the characters in the
4467         test vector.
4468         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
4469         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
4470         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
4471
4472         unistr/u*-chr: test multibyte sequences
4473         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
4474
4475         unistr/u*-chr: prepare for multibyte tests
4476         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
4477         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
4478         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
4479         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
4480         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
4481         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
4482
4483 2010-07-18  Bruno Haible  <bruno@clisp.org>
4484
4485         unistr/u8-strchr: Optimize non-ASCII argument case.
4486         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
4487         because the first byte often matches anyway.
4488         Reported by Pádraig Brady <P@draigbrady.com>.
4489
4490 2010-07-15  Karl Berry  <karl@gnu.org>
4491
4492         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
4493
4494 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
4495
4496         getcwd: on Solaris, work better if ancestors are inaccessible
4497         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
4498         buffer and size, try again with a large buffer.  This works better
4499         on Solaris, since its getcwd succeeds even if the path to the root
4500         is inaccessible, and this is helpful in common cases such as .zfs
4501         hidden directories.  Problem reported by J Chapman Flack in
4502         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
4503         Use system getcwd if it's declared, not merely if it's partly
4504         working; use the partly-working test only to avoid needless effort
4505         if the system getcwd fails.
4506         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
4507         comment that was already obsolete and is now even more obsolete.
4508         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
4509         now might call strdup.
4510
4511 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
4512
4513         pthread: Add enough so that coreutils/src/sort.c compiles.
4514         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
4515         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
4516         gnulib. Include <sched.h> and <time.h>, as per POSIX.
4517         Include <sys/types.h>, in case it defines pthread_t.
4518         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
4519         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
4520         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
4521         (pthread_rwlockattr_t, pthread_spinlock_t):
4522         New typedefs, if HAVE_PTHREAD_T is not defined.
4523         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
4524         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
4525         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
4526         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
4527         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
4528         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
4529         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
4530         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
4531         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
4532         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
4533         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
4534         New macros.
4535         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
4536         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
4537         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
4538         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
4539         (pthread_spin_unlock): New dummy functions.
4540         (pthread_create): Return EAGAIN; don't set errno.
4541         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
4542         require AC_C_INLINE.
4543         * modules/pthread (Depends-on): Add sched, time.
4544         (pthread.h): Use AM_V_GEN.
4545
4546 2010-07-13  Bruno Haible  <bruno@clisp.org>
4547
4548         striconveh: Don't malloc memory if the result buffer is sufficient.
4549         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
4550         buffer if its size is sufficient.
4551         Reported by Ludovic Courtès <ludo@gnu.org>.
4552
4553 2010-07-13  Bruno Haible  <bruno@clisp.org>
4554
4555         strtod: Add safety check.
4556         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
4557
4558 2010-07-12  Bruno Haible  <bruno@clisp.org>
4559
4560         Unify tests that set gl_cv_func_ldexpl_no_libm.
4561         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
4562         gl_FUNC_LDEXPL.
4563         (gl_FUNC_LDEXPL): Invoke it.
4564         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4565
4566 2010-07-12  Bruno Haible  <bruno@clisp.org>
4567
4568         Unify tests that set gl_cv_func_ldexp_no_libm.
4569         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
4570         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
4571         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
4572         (configure.ac): Simply invoke gl_FUNC_LDEXP.
4573         * modules/strtod (Files): Add m4/ldexp.m4.
4574
4575 2010-07-12  Bruno Haible  <bruno@clisp.org>
4576
4577         Unify tests that set gl_cv_func_frexpl_no_libm.
4578         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
4579         gl_FUNC_FREXPL_NO_LIBM.
4580         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
4581         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
4582
4583 2010-07-12  Bruno Haible  <bruno@clisp.org>
4584
4585         Unify tests that set gl_cv_func_frexp_no_libm.
4586         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
4587         gl_FUNC_FREXP_NO_LIBM.
4588         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
4589         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
4590
4591 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
4592
4593         memcoll: clarify sizes versus lengths, document better, and tweak perf
4594         * lib/memcoll.c (strcoll_loop, memcoll0):
4595         Improve quality of descriptive comments.  Name variables
4596         consistently as to whether they are lengths (which do not include
4597         terminating null) versus sizes (which do).
4598         * lib/xmemcoll.c (xmemcoll0): Likewise.
4599         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
4600         returned when s1size == 0; this is easier to compile and saves
4601         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
4602
4603 2010-07-12  Bruno Haible  <bruno@clisp.org>
4604
4605         Tests for module '_Exit'.
4606         * modules/_Exit-tests: New file.
4607         * tests/test-_Exit.sh: New file.
4608         * tests/test-_Exit.c: New file.
4609
4610         New module '_Exit'.
4611         * lib/stdlib.in.h (__attribute__): New macro.
4612         (_Exit): New declaration.
4613         * lib/_Exit.c: New file.
4614         * m4/_Exit.m4: New file.
4615         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
4616         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
4617         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
4618         * modules/_Exit: New file.
4619         * tests/test-stdlib-c++.cc (_Exit): Check signature.
4620         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
4621
4622 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
4623
4624         strtod: make it more-accurate typically, and don't require libm
4625         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
4626         Include limits.h.  Don't include string.h.
4627         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
4628         (locale_isspace): New function, so that no casts are needed to
4629         check whether *s is a space.
4630         (ldexp): Provide an unused dummy if not available.
4631         (scale_radix_exp, parse_number, underlying_strtod): New functions.
4632         (strtod): Use them.  This implementation prefers to use the
4633         underlying strtod if available, falling back on our own code
4634         only to fix known bugs.  This is more likely to produce an
4635         accurate result.  Also, it avoids the use of libm functions.
4636         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
4637         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
4638         was absent, but it caused a test failure with coreutils.
4639         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
4640         with libm.
4641         * modules/strtod (Makefile.am, Link): libm is no longer needed.
4642         * modules/strtod-tests (Makefile.am): Likewise.
4643
4644 2010-07-11  Pádraig Brady  <P@draigBrady.com>
4645             Bruno Haible  <bruno@clisp.org>
4646
4647         unistr/u8-strchr: Optimize ASCII argument case.
4648         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
4649
4650 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
4651
4652         (x)memcoll: minor tweaks
4653         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
4654         is after the type that it qualifies.
4655         (memcoll0): Likewise.
4656         * lib/memcoll.h (memcoll0): Likewise.
4657         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
4658         * lib/xmemcoll.h (xmemcoll0): Likewise.
4659         * lib/memcoll.c (memcoll0): Correct the comment.  This function
4660         differs from memcoll in that the NUL byte is part of the argument.
4661         Omit the abort-checks, as performance is a real issue here.  Plus,
4662         the checks were wrong anyway (an off-by-one error).  Omit local
4663         variable 'diff', as it's a bit clearer that way.
4664         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
4665         no longer needed.
4666
4667 2010-07-08  Chen Guo <chenguo4@yahoo.com>
4668
4669         (x)memcoll: speedup when input is known to be NUL delimited
4670         * lib/memcoll.c: Include stdlib.
4671         (memcoll0) New function.
4672         (strcoll_loop) New function, refactored for use in both memcoll
4673         and memcoll0.
4674         * lib/memcoll.h: Add prototype for memcoll0.
4675         * lib/xmemcoll.c: (xmemcoll0) New function.
4676         (collate_error) New function, refactored for use in both xmemcoll
4677         and xmemcoll0.
4678         * lib/xmemcoll.h: Add prototype for xmemcoll0.
4679         * m4/memcoll.m4: add inline invocation.
4680
4681 2010-07-06  Pádraig Brady  <P@draigBrady.com>
4682
4683         * build-aux/bootstrap: Remove any local translations
4684         from the translation project synchronization directory,
4685         so that local only translations are not distributed.
4686
4687 2010-07-04  Bruno Haible  <bruno@clisp.org>
4688
4689         fsusage: Clarify which code applies to which platforms.
4690         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
4691         platform.
4692         * lib/fsusage.c (get_fs_usage): Likewise.
4693
4694 2010-07-04  Bruno Haible  <bruno@clisp.org>
4695
4696         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
4697         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
4698         Reported by Martin Lambers <marlam@marlam.de>.
4699
4700 2010-07-04  Jim Meyering  <meyering@redhat.com>
4701
4702         hash: once again explicitly disallow insertion of NULL
4703         * lib/hash.c (hash_insert0): Reinstate just-removed test:
4704         inserting a NULL pointer cannot work with these functions.
4705         Add a comment with details.
4706         This reverts part of the 2010-07-01 commit, 5bef1a35
4707         "hash: extend module to deal with non-pointer keys".
4708
4709 2010-07-01  Bruno Haible  <bruno@clisp.org>
4710
4711         stdbool: Update doc.
4712         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
4713         Info from Christian Weisgerber <naddy@mips.inka.de>.
4714
4715 2010-07-01  Jim Meyering  <meyering@redhat.com>
4716
4717         hash: extend module to deal with non-pointer keys
4718         * lib/hash.c (hash_insert0): New interface, much like hash_insert
4719         but that allows insertion of non-pointer entries.
4720         Do not disallow an ENTRY value of NULL.
4721         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
4722         * lib/hash.h (hash_insert0): Declare.
4723
4724 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
4725
4726         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
4727         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
4728         not present (i.e. with autoconf 2.59 and when using gettextize, not
4729         gnulib), require AC_GNU_SOURCE instead.
4730
4731 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
4732
4733         idpriv-drop: Fix tests.
4734         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
4735         not to the test-idpriv-droptemp program.
4736
4737 2010-06-29  Bruno Haible  <bruno@clisp.org>
4738
4739         string: Fix syntax error with g++ 2.96.
4740         * lib/string.in.h (__pure__): Remove definition.
4741         (_GL_ATTRIBUTE_PURE): New macro.
4742         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
4743         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
4744         Reported by Christian Weisgerber <naddy@mips.inka.de>.
4745
4746 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
4747
4748         unitypes: Fix bug introduced on 2010-05-18.
4749         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
4750
4751 2010-06-22  Eric Blake  <eblake@redhat.com>
4752
4753         memmem: slight optimization
4754         * lib/str-two-way.h (critical_factorization): Update comments.
4755         Reduce work during factorization phase.
4756         Reported by Carlos Bueno <carlos@bueno.org>.
4757
4758 2010-06-21  Bruno Haible  <bruno@clisp.org>
4759
4760         Fix HAVE_CALLOC_POSIX misnomer.
4761         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
4762         !HAVE_CALLOC_POSIX.
4763         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
4764         HAVE_CALLOC_POSIX.
4765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
4766         instead of HAVE_CALLOC_POSIX.
4767         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
4768         HAVE_CALLOC_POSIX.
4769
4770         Use modern idiom for calloc() replacement.
4771         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
4772         AC_FUNC_CALLOC.
4773         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
4774         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
4775         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4776         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
4777         (gl_REPLACE_CALLOC): New macro.
4778
4779 2010-06-21  Bruno Haible  <bruno@clisp.org>
4780
4781         Fix HAVE_REALLOC_POSIX misnomer.
4782         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
4783         !HAVE_REALLOC_POSIX.
4784         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
4785         HAVE_REALLOC_POSIX.
4786         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
4787         instead of HAVE_REALLOC_POSIX.
4788         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
4789         HAVE_REALLOC_POSIX.
4790
4791         Use modern idiom for realloc() replacement.
4792         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
4793         AC_FUNC_REALLOC.
4794         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
4795         Autoconf's AC_FUNC_REALLOC.
4796         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4797         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
4798         (gl_REPLACE_REALLOC): New macro.
4799         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
4800
4801 2010-06-21  Bruno Haible  <bruno@clisp.org>
4802
4803         Fix HAVE_MALLOC_POSIX misnomer.
4804         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
4805         !HAVE_MALLOC_POSIX.
4806         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
4807         HAVE_MALLOC_POSIX.
4808         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
4809         instead of HAVE_MALLOC_POSIX.
4810         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
4811         HAVE_MALLOC_POSIX.
4812
4813         Use modern idiom for malloc() replacement.
4814         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
4815         AC_FUNC_MALLOC.
4816         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
4817         Autoconf's AC_FUNC_MALLOC.
4818         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
4819         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
4820         (gl_REPLACE_MALLOC): New macro.
4821         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
4822
4823 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
4824
4825         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
4826         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
4827         This macro takes 3 arguments, not 4.
4828
4829 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
4830
4831         ipv6: fix detection under mingw
4832         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
4833         in6_addr.
4834
4835 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
4836
4837         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
4838         that strtod() works when cross-compiling to a glibc version known
4839         to work.
4840
4841 2010-06-15  Bruno Haible  <bruno@clisp.org>
4842
4843         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
4844
4845 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
4846
4847         select: Correct timeout.
4848         * lib/select.c (rpl_select): Compute wait_timeout correctly.
4849
4850 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
4851
4852         git-version-gen: init shell var to avoid env var influence
4853         * build-aux/git-version-gen (v): Init shell var to empty.
4854
4855 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
4856
4857         priv-set: Don't assume that priv.h exists merely because getppriv does.
4858         See Jan Andersen's bug report about AIX 5L in
4859         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
4860         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
4861         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
4862         * lib/priv-set.h: Likewise.
4863         * tests/test-priv-set.c: Likewise.
4864
4865 2010-06-13  Bruno Haible  <bruno@clisp.org>
4866
4867         relocatable: Make it easier to test whether to install wrappers.
4868         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
4869         RELOCATABLE_VIA_WRAPPER.
4870
4871 2010-06-13  Bruno Haible  <bruno@clisp.org>
4872
4873         gnulib-tool: Display specified modules and dependencies differently.
4874         * gnulib-tool (func_show_module_list): New function.
4875         (func_import, func_create_testdir): Invoke it.
4876         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4877
4878 2010-06-13  Bruno Haible  <bruno@clisp.org>
4879
4880         gnulib-tool: Align code of func_import and func_create_testdir.
4881         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
4882         specified_modules.
4883
4884 2010-06-12  Jim Meyering  <meyering@redhat.com>
4885
4886         test-inttostr: avoid spurious failure on Solaris 9
4887         * tests/test-inttostr.c (main): Skip the test when snprintf fails
4888         to accept "%ju".  Reported by Bruno Haible.
4889
4890 2010-06-11  Jim Meyering  <meyering@redhat.com>
4891
4892         test-sys_socket: mark variables as used more readably
4893         * tests/test-sys_socket.c (main): Mark otherwise unused variables
4894         as "used" explicitly via (void) statement casts.  This is more
4895         readable than using them in an artificial return expression.
4896         Suggestion from Bruno Haible.
4897
4898 2010-06-11  Bruno Haible  <bruno@clisp.org>
4899
4900         Avoid some more warnings from "gcc -Wwrite-strings".
4901         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
4902         to 'const char *'.
4903         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
4904         * tests/test-c-strcasestr.c (main): Likewise.
4905         * tests/test-mbscasestr1.c (main): Likewise.
4906         * tests/test-mbscasestr2.c (main): Likewise.
4907         * tests/test-memmem.c (main): Likewise.
4908         * tests/test-strstr.c (main): Likewise.
4909         * tests/test-strcasestr.c (main): Likewise.
4910
4911 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4912
4913         init.sh: change framework_failure_ to fail with status 99, not 1
4914         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
4915         automake's parallel-tests rule that this is an unexpected failure,
4916         even if the test is listed in XFAIL_TESTS.
4917
4918 2010-06-11  Jim Meyering  <meyering@redhat.com>
4919
4920         test-inttostr: avoid warnings about 4-6KB literal strings
4921         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
4922         Include "macros.h", for its definition of ASSERT.
4923         (CK): s/assert/ASSERT/
4924         * modules/inttostr-tests (Files): Add macros.h.
4925
4926         init.sh: don't use $ME_ or skip_ before they are defined
4927         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
4928         their first uses.  Also hoist their companions: warn_, fail_,
4929         framework_failure_, $stderr_fileno.  Prompted by a patch from
4930         Stefano Lattarini.
4931
4932         test-sys_socket: avoid set-but-not-used warnings from gcc
4933         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
4934         avoid warning about set-but-not-used variables.
4935
4936         test-xvasprintf: avoid 'const' discard warnings
4937         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
4938         "const" when assigning from literal strings.
4939         (test_xasprintf): Add "void" in function argument list to placate
4940         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
4941
4942         tests: avoid compilation warnings in argmatch and exclude tests...
4943         in packages that define ARGMATCH_DIE_DECL, like coreutils.
4944         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
4945         Since it always exits, declare with the "noreturn" attribute.
4946         * tests/test-argmatch.c: Likewise.
4947
4948         tests: avoid 'const' discard warnings in mbsstr tests
4949         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
4950         * tests/test-mbsstr2.c (main): Likewise.
4951
4952         test-verify: avoid warning from gcc's -Wmissing-declarations
4953         * tests/test-verify.c (function): Declare to be static.
4954
4955         test-inttostr.c: include <string.h> for use of strcmp
4956         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
4957
4958         test-linkat: avoid failed assertion on "other" architectures
4959         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
4960         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
4961         sparc: https://bugs.launchpad.net/bugs/591968
4962
4963 2010-06-11  Jim Meyering  <meyering@redhat.com>
4964
4965         printf.m4: avoid autoconf's "Expanded Before Required" warning
4966         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
4967         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
4968         autoconf warning.
4969
4970 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
4971
4972         Replacement header templates are now named with ".in", not "_".
4973         * doc/gnulib-intro.texi: Correct.
4974
4975 2010-06-10  Jim Meyering  <meyering@redhat.com>
4976
4977         inttostr-tests: depend on snprintf, not snprintf-posix
4978         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
4979         snprintf-posix, to avoid this aclocal failure:
4980           missing file gnulib-tests/vasnprintf.c
4981           configure.ac:45: error: expected source file, required through \
4982           AC_LIBSOURCES, not found
4983
4984 2010-06-10  Jim Meyering  <meyering@redhat.com>
4985
4986         inttostr: add a new function, inttostr, and tests
4987         The namesake function was not available.  The existence of the
4988         template file, inttostr.c makes its addition nontrivial.
4989         * lib/anytostr.c: Rename from inttostr.c.
4990         (anytostr): Rename from inttostr.
4991         * lib/inttostr.c: New file.
4992         * modules/inttostr (Files): Add anytostr.c.
4993         (Makefile.am): Set lib_SOURCES instead of ...
4994         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
4995         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
4996         * lib/offtostr.c: Likewise.
4997         * lib/uinttostr.c: Likewise.
4998         * lib/umaxtostr.c: Likewise.
4999         * modules/inttostr-tests: New file.
5000         * tests/test-inttostr.c: New file.  Test these functions.
5001
5002 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
5003             Bruno Haible  <bruno@clisp.org>
5004
5005         Add "Extending Gnulib" chapter to manual.
5006         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
5007         chapter.
5008         (Extending Gnulib): New chapter.
5009         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
5010         chapter.
5011
5012 2010-06-09  Bruno Haible  <bruno@clisp.org>
5013
5014         Avoid relocwrapper link errors due to gnulib replacement functions.
5015         * lib/areadlink.c: Use the system's malloc, realloc functions.
5016         (areadlink): Set errno to ENOMEM explicitly.
5017         * modules/areadlink (Depends-on): Remove malloc-posix.
5018         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5019
5020 2010-06-09  Bruno Haible  <bruno@clisp.org>
5021
5022         Avoid relocwrapper link errors due to gnulib replacement functions.
5023         * lib/canonicalize-lgpl.c: Use the system's malloc function.
5024         * lib/malloca.c: Likewise.
5025         * lib/relocatable.c: Likewise.
5026         * lib/progreloc.c: Use the system's malloc, sprintf functions.
5027         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
5028         * lib/setenv.c: Use the system's malloc, realloc functions.
5029         * lib/strerror.c: Use the system's sprintf function.
5030         Reported by Ben Pfaff <blp@cs.stanford.edu>.
5031
5032 2010-06-04  Bruno Haible  <bruno@clisp.org>
5033
5034         Prefer documented low-level autoconf macro names.
5035         * m4/lib-link.m4: Use m4_translit instead of translit.
5036         * m4/environ.m4: Likewise.
5037         * m4/mathfunc.m4: Likewise.
5038         * m4/onceonly.m4: Likewise.
5039         * m4/stdint.m4: Likewise.
5040         Suggested by Eric Blake.
5041
5042 2010-06-04  Martin Lambers  <marlam@marlam.de>
5043             Bruno Haible  <bruno@clisp.org>
5044
5045         havelib: Allow library names with '+' characters.
5046         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
5047         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
5048
5049 2010-06-09  Bruno Haible  <bruno@clisp.org>
5050
5051         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
5052         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
5053         realloc failed.
5054
5055 2010-06-08  Peter Simons  <simons@cryp.to>
5056
5057         maint.mk: make the news-check rule more configurable
5058         * top/maint.mk (news-check-lines-spec) New variable.
5059         (news-check): Use "sed -n 1,10p" in place of "head".
5060
5061 2010-06-07  Jim Meyering  <meyering@redhat.com>
5062
5063         do-release-commit-and-tag: fix typo in --help
5064         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
5065
5066         regex: avoid new dead-code warning with gcc-4.6.0
5067         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
5068         if-block containing a while-loop.  It's been unused for at least
5069         5 years.
5070
5071 2010-06-05  Bruno Haible  <bruno@clisp.org>
5072
5073         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
5074         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
5075
5076 2010-06-04  Bruno Haible  <bruno@clisp.org>
5077
5078         Update to GNU gettext 0.18.1.
5079         * modules/gettext (configure.ac): Require gettext infrastructure from
5080         version 0.18.1.
5081
5082 2010-06-03  Bruno Haible  <bruno@clisp.org>
5083
5084         Don't use AC_LIBOBJ with file names in subdirectories.
5085         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
5086         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
5087         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
5088         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
5089         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
5090         gl_LIBUNISTRING_LIBSOURCE.
5091         (Makefile.am): Augment lib_SOURCES here, conditionally.
5092         * NEWS: Drop requirement for Automake option 'subdir-objects'.
5093
5094 2010-06-03  Bruno Haible  <bruno@clisp.org>
5095
5096         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
5097         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
5098         expansion does not end with a newline.
5099         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
5100         unnecessary newline.
5101
5102 2010-06-03  Bruno Haible  <bruno@clisp.org>
5103
5104         Reduce dependencies.
5105         * tests/test-quotearg.h: New file, extracted from
5106         tests/test-quotearg.c.
5107         * tests/test-quotearg-simple.c: New file, extracted from
5108         tests/test-quotearg.c.
5109         * tests/test-quotearg.c: Don't include <ctype.h>.
5110         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
5111         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
5112         use_quote_double_quotes, use_quotearg_colon): Moved to
5113         tests/test-quotearg.h.
5114         (results_g, flag_results, custom_quotes, custom_results): Moved
5115         to tests/test-quotearg-simple.c.
5116         (main): Moved the part that does not depend on gettext to
5117         tests/test-quotearg-simple.c. Return 77 if the test cannot be
5118         performed.
5119         * modules/quotearg-simple: New file.
5120         * modules/quotearg-simple-tests: New file.
5121         * modules/quotearg (Depends-on): Add quotearg-simple.
5122         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
5123         (Files): Add tests/test-quotearg.h.
5124         Reported by Paolo Bonzini.
5125
5126 2010-06-03  Bruno Haible  <bruno@clisp.org>
5127
5128         Reduce dependencies.
5129         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
5130
5131 2010-06-03  Bruno Haible  <bruno@clisp.org>
5132
5133         time: Undefine more broken macros.
5134         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
5135         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
5136         Reported by Eric Blake.
5137
5138 2010-06-03  Bruno Haible  <bruno@clisp.org>
5139
5140         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
5141         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
5142         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
5143         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
5144         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
5145         Reported by Ludovic Courtès <ludo@gnu.org>.
5146
5147 2010-06-02  Eric Blake  <eblake@redhat.com>
5148
5149         time: work with mingw + pthreads-win32 library
5150         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
5151         if timespec is defined only in pthread.h.
5152         * modules/time (Makefile.am): Substitute it.
5153         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
5154         <pthread.h>, when needed.
5155         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
5156         from the library.
5157
5158 2010-05-31  Bruno Haible  <bruno@clisp.org>
5159
5160         Avoid expanding two macros in the wrong order.
5161         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
5162         gl_LIBUNISTRING if it is defined.
5163         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
5164         autoconf >= 2.64.
5165         Reported by Ludovic Courtès <ludo@gnu.org>.
5166
5167 2010-05-27  Jim Meyering  <meyering@redhat.com>
5168
5169         maint.mk: also prohibit "#undef" of always-defined symbols
5170         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
5171         Allow more than one space before the symbol name.
5172         (sc_prohibit_always-defined_macros): Use grep's -E, now that
5173         the regexp uses alternation.
5174
5175 2010-05-26  Eric Blake  <eblake@redhat.com>
5176
5177         maint.mk: avoid echo -e
5178         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
5179         Convert all uses of echo -* to printf.
5180         Reported by Matthias Bolte.
5181
5182 2010-05-25  Bruno Haible  <bruno@clisp.org>
5183
5184         Update to GNU gettext 0.18, part 2.
5185         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
5186         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
5187
5188 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5189
5190         Add missing include in test-pwrite.c.
5191         * tests/test-pwrite.c: Include string.h, for strcmp.
5192
5193 2010-05-24  Bruno Haible  <bruno@clisp.org>
5194
5195         * NEWS: Mention requirement for Automake option 'subdir-objects'.
5196
5197 2010-05-24  Bruno Haible  <bruno@clisp.org>
5198
5199         Don't use conversion with transliteration in u{8,16,32}_strcoll.
5200         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
5201         iconveh_error argument.
5202         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
5203         U_STRCONV_TO_LOCALE.
5204         * lib/unistr/u16-strcoll.c: Likewise.
5205         * lib/unistr/u32-strcoll.c: Likewise.
5206         * modules/unistr/u8-strcoll (Depends-on): Add
5207         uniconv/u8-strconv-to-enc, localcharset. Remove
5208         uniconv/u8-strconv-to-locale.
5209         (configure.ac): Bump version number.
5210         * modules/unistr/u16-strcoll (Depends-on): Add
5211         uniconv/u16-strconv-to-enc, localcharset. Remove
5212         uniconv/u16-strconv-to-locale.
5213         (configure.ac): Bump version number.
5214         * modules/unistr/u32-strcoll (Depends-on): Add
5215         uniconv/u32-strconv-to-enc, localcharset. Remove
5216         uniconv/u32-strconv-to-locale.
5217         (configure.ac): Bump version number.
5218
5219 2010-05-24  Bruno Haible  <bruno@clisp.org>
5220
5221         Avoid a test failure on NetBSD 5.0.
5222         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
5223         an iconv() bug.
5224
5225 2010-05-24  Bruno Haible  <bruno@clisp.org>
5226
5227         Adjust #include directive style.
5228         * modules/regex (Includes): Recommend to write <regex.h>.
5229
5230 2010-05-24  Bruno Haible  <bruno@clisp.org>
5231
5232         regex: Don't require alloca.
5233         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
5234         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
5235         only inside if (0).
5236
5237 2010-05-23  Jim Meyering  <meyering@redhat.com>
5238
5239         test-renameat.c: include <sys/stat.h>
5240         * tests/test-renameat.c: Include <sys/stat.h>; required for
5241         definition of S_IS* macros.
5242
5243 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
5244
5245         Update maintainer documentation for 'relocatable-prog' module.
5246         * doc/relocatable-maint.texi: Update.
5247         Comments by Bruno Haible.
5248
5249 2010-05-23  Bruno Haible  <bruno@clisp.org>
5250
5251         git-merge-changelog: Enable --split-merged-entry by default.
5252         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
5253         (usage): Don't mention this option any more.
5254         Reported by Ralf Wildenhues.
5255
5256 2010-05-23  Jim Meyering  <meyering@redhat.com>
5257
5258         test-pwrite: do not leave behind a test file named "out"
5259         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
5260         The trivial-looking use of init.sh is really necessary.
5261         It ensures that the temporary file, "out", is created in
5262         a temporary directory, and removed upon termination.
5263         * tests/test-pwrite.sh: Re-add file.
5264         * modules/pwrite-tests: Reference it.
5265
5266 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5267
5268         Fix output redirection buglet in init.sh.
5269         * tests/init.sh: Fix redirection of stderr.
5270
5271 2010-05-20  Simon Josefsson  <simon@josefsson.org>
5272
5273         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
5274
5275 2010-05-17  Simon Josefsson  <simon@josefsson.org>
5276
5277         * modules/valgrind-tests: New file.
5278         * m4/valgrind-tests.m4: New file.
5279         * doc/valgrind-tests.texi: New file.
5280         * doc/gnulib.texi (Running self-tests under valgrind): New
5281         section.
5282
5283 2010-05-19  Bruno Haible  <bruno@clisp.org>
5284
5285         Clean up dead code in recent commit.
5286         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
5287         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
5288         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
5289         Suggested by Paolo Bonzini.
5290
5291 2010-05-19  Bruno Haible  <bruno@clisp.org>
5292
5293         Avoid valgrind error reports from libunistring.
5294         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
5295         * modules/libunistring (Files): Add it.
5296         * modules/libunistring-optional (Files): Likewise.
5297
5298 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
5299             Bruno Haible  <bruno@clisp.org>
5300
5301         New module 'libunistring-optional'.
5302         * modules/libunistring-optional: New file.
5303         * m4/libunistring-base.m4: New file.
5304         * m4/libunistring-optional.m4: New file.
5305         * lib/unicase.in.h: Renamed from lib/unicase.h.
5306         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
5307         * lib/unictype.in.h: Renamed from lib/unictype.h.
5308         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
5309         * lib/uniname.in.h: Renamed from lib/uniname.h.
5310         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
5311         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
5312         * lib/unistr.in.h: Renamed from lib/unistr.h.
5313         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
5314         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
5315         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
5316         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
5317         gl_LIBUNISTRING. If the library was found, determine the installed
5318         version and set LIBUNISTRING_VERSION.
5319         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
5320         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
5321         handle a configuration option --with-included-libunistring.
5322         * modules/libunistring (Files): Add m4/absolute-header.m4.
5323         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
5324         Add m4/libunistring-base.m4.
5325         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5326         (Makefile.am): Build unicase.h from unicase.in.h.
5327         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
5328         Add m4/libunistring-base.m4.
5329         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5330         (Makefile.am): Build uniconv.h from uniconv.in.h.
5331         * modules/unictype/base (Files): Use unictype.in.h instead of
5332         unictype.h. Add m4/libunistring-base.m4.
5333         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5334         (Makefile.am): Build unictype.h from unictype.in.h.
5335         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
5336         Add m4/libunistring-base.m4.
5337         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5338         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
5339         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
5340         Add m4/libunistring-base.m4.
5341         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5342         (Makefile.am): Build uniname.h from uniname.in.h.
5343         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
5344         Add m4/libunistring-base.m4.
5345         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5346         (Makefile.am): Build uninorm.h from uninorm.in.h.
5347         * modules/unistdio/base (Files): Use unistdio.in.h instead of
5348         unistdio.h. Add m4/libunistring-base.m4.
5349         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5350         (Makefile.am): Build unistdio.h from unistdio.in.h.
5351         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
5352         Add m4/libunistring-base.m4.
5353         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5354         (Makefile.am): Build unistr.h from unistr.in.h.
5355         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
5356         Add m4/libunistring-base.m4.
5357         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5358         (Makefile.am): Build unitypes.h from unitypes.in.h.
5359         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
5360         Add m4/libunistring-base.m4.
5361         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5362         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
5363         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
5364         uniwidth.h. Add m4/libunistring-base.m4.
5365         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
5366         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
5367         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
5368         instead of augmenting lib_SOURCES.
5369         * modules/unicase/empty-suffix-context: Likewise.
5370         * modules/unicase/locale-language: Likewise.
5371         * modules/unicase/tolower: Likewise.
5372         * modules/unicase/totitle: Likewise.
5373         * modules/unicase/toupper: Likewise.
5374         * modules/unicase/u8-casecmp: Likewise.
5375         * modules/unicase/u8-casecoll: Likewise.
5376         * modules/unicase/u8-casefold: Likewise.
5377         * modules/unicase/u8-casexfrm: Likewise.
5378         * modules/unicase/u8-ct-casefold: Likewise.
5379         * modules/unicase/u8-ct-tolower: Likewise.
5380         * modules/unicase/u8-ct-totitle: Likewise.
5381         * modules/unicase/u8-ct-toupper: Likewise.
5382         * modules/unicase/u8-is-cased: Likewise.
5383         * modules/unicase/u8-is-casefolded: Likewise.
5384         * modules/unicase/u8-is-lowercase: Likewise.
5385         * modules/unicase/u8-is-titlecase: Likewise.
5386         * modules/unicase/u8-is-uppercase: Likewise.
5387         * modules/unicase/u8-prefix-context: Likewise.
5388         * modules/unicase/u8-suffix-context: Likewise.
5389         * modules/unicase/u8-tolower: Likewise.
5390         * modules/unicase/u8-totitle: Likewise.
5391         * modules/unicase/u8-toupper: Likewise.
5392         * modules/unicase/u16-casecmp: Likewise.
5393         * modules/unicase/u16-casecoll: Likewise.
5394         * modules/unicase/u16-casefold: Likewise.
5395         * modules/unicase/u16-casexfrm: Likewise.
5396         * modules/unicase/u16-ct-casefold: Likewise.
5397         * modules/unicase/u16-ct-tolower: Likewise.
5398         * modules/unicase/u16-ct-totitle: Likewise.
5399         * modules/unicase/u16-ct-toupper: Likewise.
5400         * modules/unicase/u16-is-cased: Likewise.
5401         * modules/unicase/u16-is-casefolded: Likewise.
5402         * modules/unicase/u16-is-lowercase: Likewise.
5403         * modules/unicase/u16-is-titlecase: Likewise.
5404         * modules/unicase/u16-is-uppercase: Likewise.
5405         * modules/unicase/u16-prefix-context: Likewise.
5406         * modules/unicase/u16-suffix-context: Likewise.
5407         * modules/unicase/u16-tolower: Likewise.
5408         * modules/unicase/u16-totitle: Likewise.
5409         * modules/unicase/u16-toupper: Likewise.
5410         * modules/unicase/u32-casecmp: Likewise.
5411         * modules/unicase/u32-casecoll: Likewise.
5412         * modules/unicase/u32-casefold: Likewise.
5413         * modules/unicase/u32-casexfrm: Likewise.
5414         * modules/unicase/u32-ct-casefold: Likewise.
5415         * modules/unicase/u32-ct-tolower: Likewise.
5416         * modules/unicase/u32-ct-totitle: Likewise.
5417         * modules/unicase/u32-ct-toupper: Likewise.
5418         * modules/unicase/u32-is-cased: Likewise.
5419         * modules/unicase/u32-is-casefolded: Likewise.
5420         * modules/unicase/u32-is-lowercase: Likewise.
5421         * modules/unicase/u32-is-titlecase: Likewise.
5422         * modules/unicase/u32-is-uppercase: Likewise.
5423         * modules/unicase/u32-prefix-context: Likewise.
5424         * modules/unicase/u32-suffix-context: Likewise.
5425         * modules/unicase/u32-tolower: Likewise.
5426         * modules/unicase/u32-totitle: Likewise.
5427         * modules/unicase/u32-toupper: Likewise.
5428         * modules/unicase/ulc-casecmp: Likewise.
5429         * modules/unicase/ulc-casecoll: Likewise.
5430         * modules/unicase/ulc-casexfrm: Likewise.
5431         * modules/uniconv/u8-conv-from-enc: Likewise.
5432         * modules/uniconv/u8-conv-to-enc: Likewise.
5433         * modules/uniconv/u8-strconv-from-enc: Likewise.
5434         * modules/uniconv/u8-strconv-from-locale: Likewise.
5435         * modules/uniconv/u8-strconv-to-enc: Likewise.
5436         * modules/uniconv/u8-strconv-to-locale: Likewise.
5437         * modules/uniconv/u16-conv-from-enc: Likewise.
5438         * modules/uniconv/u16-conv-to-enc: Likewise.
5439         * modules/uniconv/u16-strconv-from-enc: Likewise.
5440         * modules/uniconv/u16-strconv-from-locale: Likewise.
5441         * modules/uniconv/u16-strconv-to-enc: Likewise.
5442         * modules/uniconv/u16-strconv-to-locale: Likewise.
5443         * modules/uniconv/u32-conv-from-enc: Likewise.
5444         * modules/uniconv/u32-conv-to-enc: Likewise.
5445         * modules/uniconv/u32-strconv-from-enc: Likewise.
5446         * modules/uniconv/u32-strconv-from-locale: Likewise.
5447         * modules/uniconv/u32-strconv-to-enc: Likewise.
5448         * modules/uniconv/u32-strconv-to-locale: Likewise.
5449         * modules/unictype/bidicategory-byname: Likewise.
5450         * modules/unictype/bidicategory-name: Likewise.
5451         * modules/unictype/bidicategory-of: Likewise.
5452         * modules/unictype/bidicategory-test: Likewise.
5453         * modules/unictype/block-list: Likewise.
5454         * modules/unictype/block-test: Likewise.
5455         * modules/unictype/category-C: Likewise.
5456         * modules/unictype/category-Cc: Likewise.
5457         * modules/unictype/category-Cf: Likewise.
5458         * modules/unictype/category-Cn: Likewise.
5459         * modules/unictype/category-Co: Likewise.
5460         * modules/unictype/category-Cs: Likewise.
5461         * modules/unictype/category-L: Likewise.
5462         * modules/unictype/category-Ll: Likewise.
5463         * modules/unictype/category-Lm: Likewise.
5464         * modules/unictype/category-Lo: Likewise.
5465         * modules/unictype/category-Lt: Likewise.
5466         * modules/unictype/category-Lu: Likewise.
5467         * modules/unictype/category-M: Likewise.
5468         * modules/unictype/category-Mc: Likewise.
5469         * modules/unictype/category-Me: Likewise.
5470         * modules/unictype/category-Mn: Likewise.
5471         * modules/unictype/category-N: Likewise.
5472         * modules/unictype/category-Nd: Likewise.
5473         * modules/unictype/category-Nl: Likewise.
5474         * modules/unictype/category-No: Likewise.
5475         * modules/unictype/category-P: Likewise.
5476         * modules/unictype/category-Pc: Likewise.
5477         * modules/unictype/category-Pd: Likewise.
5478         * modules/unictype/category-Pe: Likewise.
5479         * modules/unictype/category-Pf: Likewise.
5480         * modules/unictype/category-Pi: Likewise.
5481         * modules/unictype/category-Po: Likewise.
5482         * modules/unictype/category-Ps: Likewise.
5483         * modules/unictype/category-S: Likewise.
5484         * modules/unictype/category-Sc: Likewise.
5485         * modules/unictype/category-Sk: Likewise.
5486         * modules/unictype/category-Sm: Likewise.
5487         * modules/unictype/category-So: Likewise.
5488         * modules/unictype/category-Z: Likewise.
5489         * modules/unictype/category-Zl: Likewise.
5490         * modules/unictype/category-Zp: Likewise.
5491         * modules/unictype/category-Zs: Likewise.
5492         * modules/unictype/category-and: Likewise.
5493         * modules/unictype/category-and-not: Likewise.
5494         * modules/unictype/category-byname: Likewise.
5495         * modules/unictype/category-name: Likewise.
5496         * modules/unictype/category-none: Likewise.
5497         * modules/unictype/category-of: Likewise.
5498         * modules/unictype/category-or: Likewise.
5499         * modules/unictype/category-test: Likewise.
5500         * modules/unictype/combining-class: Likewise.
5501         * modules/unictype/ctype-alnum: Likewise.
5502         * modules/unictype/ctype-alpha: Likewise.
5503         * modules/unictype/ctype-blank: Likewise.
5504         * modules/unictype/ctype-cntrl: Likewise.
5505         * modules/unictype/ctype-digit: Likewise.
5506         * modules/unictype/ctype-graph: Likewise.
5507         * modules/unictype/ctype-lower: Likewise.
5508         * modules/unictype/ctype-print: Likewise.
5509         * modules/unictype/ctype-punct: Likewise.
5510         * modules/unictype/ctype-space: Likewise.
5511         * modules/unictype/ctype-upper: Likewise.
5512         * modules/unictype/ctype-xdigit: Likewise.
5513         * modules/unictype/decimal-digit: Likewise.
5514         * modules/unictype/digit: Likewise.
5515         * modules/unictype/mirror: Likewise.
5516         * modules/unictype/numeric: Likewise.
5517         * modules/unictype/property-alphabetic: Likewise.
5518         * modules/unictype/property-ascii-hex-digit: Likewise.
5519         * modules/unictype/property-bidi-arabic-digit: Likewise.
5520         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
5521         * modules/unictype/property-bidi-block-separator: Likewise.
5522         * modules/unictype/property-bidi-boundary-neutral: Likewise.
5523         * modules/unictype/property-bidi-common-separator: Likewise.
5524         * modules/unictype/property-bidi-control: Likewise.
5525         * modules/unictype/property-bidi-embedding-or-override: Likewise.
5526         * modules/unictype/property-bidi-eur-num-separator: Likewise.
5527         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
5528         * modules/unictype/property-bidi-european-digit: Likewise.
5529         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
5530         * modules/unictype/property-bidi-left-to-right: Likewise.
5531         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
5532         * modules/unictype/property-bidi-other-neutral: Likewise.
5533         * modules/unictype/property-bidi-pdf: Likewise.
5534         * modules/unictype/property-bidi-segment-separator: Likewise.
5535         * modules/unictype/property-bidi-whitespace: Likewise.
5536         * modules/unictype/property-byname: Likewise.
5537         * modules/unictype/property-combining: Likewise.
5538         * modules/unictype/property-composite: Likewise.
5539         * modules/unictype/property-currency-symbol: Likewise.
5540         * modules/unictype/property-dash: Likewise.
5541         * modules/unictype/property-decimal-digit: Likewise.
5542         * modules/unictype/property-default-ignorable-code-point: Likewise.
5543         * modules/unictype/property-deprecated: Likewise.
5544         * modules/unictype/property-diacritic: Likewise.
5545         * modules/unictype/property-extender: Likewise.
5546         * modules/unictype/property-format-control: Likewise.
5547         * modules/unictype/property-grapheme-base: Likewise.
5548         * modules/unictype/property-grapheme-extend: Likewise.
5549         * modules/unictype/property-grapheme-link: Likewise.
5550         * modules/unictype/property-hex-digit: Likewise.
5551         * modules/unictype/property-hyphen: Likewise.
5552         * modules/unictype/property-id-continue: Likewise.
5553         * modules/unictype/property-id-start: Likewise.
5554         * modules/unictype/property-ideographic: Likewise.
5555         * modules/unictype/property-ids-binary-operator: Likewise.
5556         * modules/unictype/property-ids-trinary-operator: Likewise.
5557         * modules/unictype/property-ignorable-control: Likewise.
5558         * modules/unictype/property-iso-control: Likewise.
5559         * modules/unictype/property-join-control: Likewise.
5560         * modules/unictype/property-left-of-pair: Likewise.
5561         * modules/unictype/property-line-separator: Likewise.
5562         * modules/unictype/property-logical-order-exception: Likewise.
5563         * modules/unictype/property-lowercase: Likewise.
5564         * modules/unictype/property-math: Likewise.
5565         * modules/unictype/property-non-break: Likewise.
5566         * modules/unictype/property-not-a-character: Likewise.
5567         * modules/unictype/property-numeric: Likewise.
5568         * modules/unictype/property-other-alphabetic: Likewise.
5569         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
5570         * modules/unictype/property-other-grapheme-extend: Likewise.
5571         * modules/unictype/property-other-id-continue: Likewise.
5572         * modules/unictype/property-other-id-start: Likewise.
5573         * modules/unictype/property-other-lowercase: Likewise.
5574         * modules/unictype/property-other-math: Likewise.
5575         * modules/unictype/property-other-uppercase: Likewise.
5576         * modules/unictype/property-paired-punctuation: Likewise.
5577         * modules/unictype/property-paragraph-separator: Likewise.
5578         * modules/unictype/property-pattern-syntax: Likewise.
5579         * modules/unictype/property-pattern-white-space: Likewise.
5580         * modules/unictype/property-private-use: Likewise.
5581         * modules/unictype/property-punctuation: Likewise.
5582         * modules/unictype/property-quotation-mark: Likewise.
5583         * modules/unictype/property-radical: Likewise.
5584         * modules/unictype/property-sentence-terminal: Likewise.
5585         * modules/unictype/property-soft-dotted: Likewise.
5586         * modules/unictype/property-space: Likewise.
5587         * modules/unictype/property-terminal-punctuation: Likewise.
5588         * modules/unictype/property-test: Likewise.
5589         * modules/unictype/property-titlecase: Likewise.
5590         * modules/unictype/property-unassigned-code-value: Likewise.
5591         * modules/unictype/property-unified-ideograph: Likewise.
5592         * modules/unictype/property-uppercase: Likewise.
5593         * modules/unictype/property-variation-selector: Likewise.
5594         * modules/unictype/property-white-space: Likewise.
5595         * modules/unictype/property-xid-continue: Likewise.
5596         * modules/unictype/property-xid-start: Likewise.
5597         * modules/unictype/property-zero-width: Likewise.
5598         * modules/unictype/scripts: Likewise.
5599         * modules/unictype/syntax-c-ident: Likewise.
5600         * modules/unictype/syntax-c-whitespace: Likewise.
5601         * modules/unictype/syntax-java-ident: Likewise.
5602         * modules/unictype/syntax-java-whitespace: Likewise.
5603         * modules/unilbrk/u8-possible-linebreaks: Likewise.
5604         * modules/unilbrk/u8-width-linebreaks: Likewise.
5605         * modules/unilbrk/u16-possible-linebreaks: Likewise.
5606         * modules/unilbrk/u16-width-linebreaks: Likewise.
5607         * modules/unilbrk/u32-possible-linebreaks: Likewise.
5608         * modules/unilbrk/u32-width-linebreaks: Likewise.
5609         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
5610         * modules/unilbrk/ulc-width-linebreaks: Likewise.
5611         * modules/uniname/uniname: Likewise.
5612         * modules/uninorm/canonical-decomposition: Likewise.
5613         * modules/uninorm/composition: Likewise.
5614         * modules/uninorm/decomposing-form: Likewise.
5615         * modules/uninorm/decomposition: Likewise.
5616         * modules/uninorm/filter: Likewise.
5617         * modules/uninorm/nfc: Likewise.
5618         * modules/uninorm/nfd: Likewise.
5619         * modules/uninorm/nfkc: Likewise.
5620         * modules/uninorm/nfkd: Likewise.
5621         * modules/uninorm/u8-normalize: Likewise.
5622         * modules/uninorm/u8-normcmp: Likewise.
5623         * modules/uninorm/u8-normcoll: Likewise.
5624         * modules/uninorm/u8-normxfrm: Likewise.
5625         * modules/uninorm/u16-normalize: Likewise.
5626         * modules/uninorm/u16-normcmp: Likewise.
5627         * modules/uninorm/u16-normcoll: Likewise.
5628         * modules/uninorm/u16-normxfrm: Likewise.
5629         * modules/uninorm/u32-normalize: Likewise.
5630         * modules/uninorm/u32-normcmp: Likewise.
5631         * modules/uninorm/u32-normcoll: Likewise.
5632         * modules/uninorm/u32-normxfrm: Likewise.
5633         * modules/unistdio/u8-asnprintf: Likewise.
5634         * modules/unistdio/u8-asprintf: Likewise.
5635         * modules/unistdio/u8-snprintf: Likewise.
5636         * modules/unistdio/u8-sprintf: Likewise.
5637         * modules/unistdio/u8-u8-asnprintf: Likewise.
5638         * modules/unistdio/u8-u8-asprintf: Likewise.
5639         * modules/unistdio/u8-u8-snprintf: Likewise.
5640         * modules/unistdio/u8-u8-sprintf: Likewise.
5641         * modules/unistdio/u8-u8-vasnprintf: Likewise.
5642         * modules/unistdio/u8-u8-vasprintf: Likewise.
5643         * modules/unistdio/u8-u8-vsnprintf: Likewise.
5644         * modules/unistdio/u8-u8-vsprintf: Likewise.
5645         * modules/unistdio/u8-vasnprintf: Likewise.
5646         * modules/unistdio/u8-vasprintf: Likewise.
5647         * modules/unistdio/u8-vsnprintf: Likewise.
5648         * modules/unistdio/u8-vsprintf: Likewise.
5649         * modules/unistdio/u16-asnprintf: Likewise.
5650         * modules/unistdio/u16-asprintf: Likewise.
5651         * modules/unistdio/u16-snprintf: Likewise.
5652         * modules/unistdio/u16-sprintf: Likewise.
5653         * modules/unistdio/u16-u16-asnprintf: Likewise.
5654         * modules/unistdio/u16-u16-asprintf: Likewise.
5655         * modules/unistdio/u16-u16-snprintf: Likewise.
5656         * modules/unistdio/u16-u16-sprintf: Likewise.
5657         * modules/unistdio/u16-u16-vasnprintf: Likewise.
5658         * modules/unistdio/u16-u16-vasprintf: Likewise.
5659         * modules/unistdio/u16-u16-vsnprintf: Likewise.
5660         * modules/unistdio/u16-u16-vsprintf: Likewise.
5661         * modules/unistdio/u16-vasnprintf: Likewise.
5662         * modules/unistdio/u16-vasprintf: Likewise.
5663         * modules/unistdio/u16-vsnprintf: Likewise.
5664         * modules/unistdio/u16-vsprintf: Likewise.
5665         * modules/unistdio/u32-asnprintf: Likewise.
5666         * modules/unistdio/u32-asprintf: Likewise.
5667         * modules/unistdio/u32-snprintf: Likewise.
5668         * modules/unistdio/u32-sprintf: Likewise.
5669         * modules/unistdio/u32-u32-asnprintf: Likewise.
5670         * modules/unistdio/u32-u32-asprintf: Likewise.
5671         * modules/unistdio/u32-u32-snprintf: Likewise.
5672         * modules/unistdio/u32-u32-sprintf: Likewise.
5673         * modules/unistdio/u32-u32-vasnprintf: Likewise.
5674         * modules/unistdio/u32-u32-vasprintf: Likewise.
5675         * modules/unistdio/u32-u32-vsnprintf: Likewise.
5676         * modules/unistdio/u32-u32-vsprintf: Likewise.
5677         * modules/unistdio/u32-vasnprintf: Likewise.
5678         * modules/unistdio/u32-vasprintf: Likewise.
5679         * modules/unistdio/u32-vsnprintf: Likewise.
5680         * modules/unistdio/u32-vsprintf: Likewise.
5681         * modules/unistdio/ulc-asnprintf: Likewise.
5682         * modules/unistdio/ulc-asprintf: Likewise.
5683         * modules/unistdio/ulc-fprintf: Likewise.
5684         * modules/unistdio/ulc-snprintf: Likewise.
5685         * modules/unistdio/ulc-sprintf: Likewise.
5686         * modules/unistdio/ulc-vasnprintf: Likewise.
5687         * modules/unistdio/ulc-vasprintf: Likewise.
5688         * modules/unistdio/ulc-vfprintf: Likewise.
5689         * modules/unistdio/ulc-vsnprintf: Likewise.
5690         * modules/unistdio/ulc-vsprintf: Likewise.
5691         * modules/unistr/u8-check: Likewise.
5692         * modules/unistr/u8-chr: Likewise.
5693         * modules/unistr/u8-cmp: Likewise.
5694         * modules/unistr/u8-cmp2: Likewise.
5695         * modules/unistr/u8-cpy: Likewise.
5696         * modules/unistr/u8-cpy-alloc: Likewise.
5697         * modules/unistr/u8-endswith: Likewise.
5698         * modules/unistr/u8-mblen: Likewise.
5699         * modules/unistr/u8-mbsnlen: Likewise.
5700         * modules/unistr/u8-mbtouc: Likewise.
5701         * modules/unistr/u8-mbtouc-unsafe: Likewise.
5702         * modules/unistr/u8-mbtoucr: Likewise.
5703         * modules/unistr/u8-move: Likewise.
5704         * modules/unistr/u8-next: Likewise.
5705         * modules/unistr/u8-prev: Likewise.
5706         * modules/unistr/u8-set: Likewise.
5707         * modules/unistr/u8-startswith: Likewise.
5708         * modules/unistr/u8-stpcpy: Likewise.
5709         * modules/unistr/u8-stpncpy: Likewise.
5710         * modules/unistr/u8-strcat: Likewise.
5711         * modules/unistr/u8-strchr: Likewise.
5712         * modules/unistr/u8-strcmp: Likewise.
5713         * modules/unistr/u8-strcoll: Likewise.
5714         * modules/unistr/u8-strcpy: Likewise.
5715         * modules/unistr/u8-strcspn: Likewise.
5716         * modules/unistr/u8-strdup: Likewise.
5717         * modules/unistr/u8-strlen: Likewise.
5718         * modules/unistr/u8-strmblen: Likewise.
5719         * modules/unistr/u8-strmbtouc: Likewise.
5720         * modules/unistr/u8-strncat: Likewise.
5721         * modules/unistr/u8-strncmp: Likewise.
5722         * modules/unistr/u8-strncpy: Likewise.
5723         * modules/unistr/u8-strnlen: Likewise.
5724         * modules/unistr/u8-strpbrk: Likewise.
5725         * modules/unistr/u8-strrchr: Likewise.
5726         * modules/unistr/u8-strspn: Likewise.
5727         * modules/unistr/u8-strstr: Likewise.
5728         * modules/unistr/u8-strtok: Likewise.
5729         * modules/unistr/u8-to-u16: Likewise.
5730         * modules/unistr/u8-to-u32: Likewise.
5731         * modules/unistr/u8-uctomb: Likewise.
5732         * modules/unistr/u16-check: Likewise.
5733         * modules/unistr/u16-chr: Likewise.
5734         * modules/unistr/u16-cmp: Likewise.
5735         * modules/unistr/u16-cmp2: Likewise.
5736         * modules/unistr/u16-cpy: Likewise.
5737         * modules/unistr/u16-cpy-alloc: Likewise.
5738         * modules/unistr/u16-endswith: Likewise.
5739         * modules/unistr/u16-mblen: Likewise.
5740         * modules/unistr/u16-mbsnlen: Likewise.
5741         * modules/unistr/u16-mbtouc: Likewise.
5742         * modules/unistr/u16-mbtouc-unsafe: Likewise.
5743         * modules/unistr/u16-mbtoucr: Likewise.
5744         * modules/unistr/u16-move: Likewise.
5745         * modules/unistr/u16-next: Likewise.
5746         * modules/unistr/u16-prev: Likewise.
5747         * modules/unistr/u16-set: Likewise.
5748         * modules/unistr/u16-startswith: Likewise.
5749         * modules/unistr/u16-stpcpy: Likewise.
5750         * modules/unistr/u16-stpncpy: Likewise.
5751         * modules/unistr/u16-strcat: Likewise.
5752         * modules/unistr/u16-strchr: Likewise.
5753         * modules/unistr/u16-strcmp: Likewise.
5754         * modules/unistr/u16-strcoll: Likewise.
5755         * modules/unistr/u16-strcpy: Likewise.
5756         * modules/unistr/u16-strcspn: Likewise.
5757         * modules/unistr/u16-strdup: Likewise.
5758         * modules/unistr/u16-strlen: Likewise.
5759         * modules/unistr/u16-strmblen: Likewise.
5760         * modules/unistr/u16-strmbtouc: Likewise.
5761         * modules/unistr/u16-strncat: Likewise.
5762         * modules/unistr/u16-strncmp: Likewise.
5763         * modules/unistr/u16-strncpy: Likewise.
5764         * modules/unistr/u16-strnlen: Likewise.
5765         * modules/unistr/u16-strpbrk: Likewise.
5766         * modules/unistr/u16-strrchr: Likewise.
5767         * modules/unistr/u16-strspn: Likewise.
5768         * modules/unistr/u16-strstr: Likewise.
5769         * modules/unistr/u16-strtok: Likewise.
5770         * modules/unistr/u16-to-u32: Likewise.
5771         * modules/unistr/u16-to-u8: Likewise.
5772         * modules/unistr/u16-uctomb: Likewise.
5773         * modules/unistr/u32-check: Likewise.
5774         * modules/unistr/u32-chr: Likewise.
5775         * modules/unistr/u32-cmp: Likewise.
5776         * modules/unistr/u32-cmp2: Likewise.
5777         * modules/unistr/u32-cpy: Likewise.
5778         * modules/unistr/u32-cpy-alloc: Likewise.
5779         * modules/unistr/u32-endswith: Likewise.
5780         * modules/unistr/u32-mblen: Likewise.
5781         * modules/unistr/u32-mbsnlen: Likewise.
5782         * modules/unistr/u32-mbtouc: Likewise.
5783         * modules/unistr/u32-mbtouc-unsafe: Likewise.
5784         * modules/unistr/u32-mbtoucr: Likewise.
5785         * modules/unistr/u32-move: Likewise.
5786         * modules/unistr/u32-next: Likewise.
5787         * modules/unistr/u32-prev: Likewise.
5788         * modules/unistr/u32-set: Likewise.
5789         * modules/unistr/u32-startswith: Likewise.
5790         * modules/unistr/u32-stpcpy: Likewise.
5791         * modules/unistr/u32-stpncpy: Likewise.
5792         * modules/unistr/u32-strcat: Likewise.
5793         * modules/unistr/u32-strchr: Likewise.
5794         * modules/unistr/u32-strcmp: Likewise.
5795         * modules/unistr/u32-strcoll: Likewise.
5796         * modules/unistr/u32-strcpy: Likewise.
5797         * modules/unistr/u32-strcspn: Likewise.
5798         * modules/unistr/u32-strdup: Likewise.
5799         * modules/unistr/u32-strlen: Likewise.
5800         * modules/unistr/u32-strmblen: Likewise.
5801         * modules/unistr/u32-strmbtouc: Likewise.
5802         * modules/unistr/u32-strncat: Likewise.
5803         * modules/unistr/u32-strncmp: Likewise.
5804         * modules/unistr/u32-strncpy: Likewise.
5805         * modules/unistr/u32-strnlen: Likewise.
5806         * modules/unistr/u32-strpbrk: Likewise.
5807         * modules/unistr/u32-strrchr: Likewise.
5808         * modules/unistr/u32-strspn: Likewise.
5809         * modules/unistr/u32-strstr: Likewise.
5810         * modules/unistr/u32-strtok: Likewise.
5811         * modules/unistr/u32-to-u16: Likewise.
5812         * modules/unistr/u32-to-u8: Likewise.
5813         * modules/unistr/u32-uctomb: Likewise.
5814         * modules/uniwbrk/u8-wordbreaks: Likewise.
5815         * modules/uniwbrk/u16-wordbreaks: Likewise.
5816         * modules/uniwbrk/u32-wordbreaks: Likewise.
5817         * modules/uniwbrk/ulc-wordbreaks: Likewise.
5818         * modules/uniwbrk/wordbreak-property: Likewise.
5819         * modules/uniwidth/u8-strwidth: Likewise.
5820         * modules/uniwidth/u8-width: Likewise.
5821         * modules/uniwidth/u16-strwidth: Likewise.
5822         * modules/uniwidth/u16-width: Likewise.
5823         * modules/uniwidth/u32-strwidth: Likewise.
5824         * modules/uniwidth/u32-width: Likewise.
5825         * modules/uniwidth/width: Likewise.
5826         * modules/unicase/cased-tests (Makefile.am): Link all test programs
5827         with $(LIBUNISTRING).
5828         * modules/unicase/ignorable-tests: Likewise.
5829         * modules/unicase/locale-language-tests: Likewise.
5830         * modules/unicase/tolower-tests: Likewise.
5831         * modules/unicase/totitle-tests: Likewise.
5832         * modules/unicase/toupper-tests: Likewise.
5833         * modules/unicase/u8-casecmp-tests: Likewise.
5834         * modules/unicase/u8-casecoll-tests: Likewise.
5835         * modules/unicase/u8-casefold-tests: Likewise.
5836         * modules/unicase/u8-is-cased-tests: Likewise.
5837         * modules/unicase/u8-is-casefolded-tests: Likewise.
5838         * modules/unicase/u8-is-lowercase-tests: Likewise.
5839         * modules/unicase/u8-is-titlecase-tests: Likewise.
5840         * modules/unicase/u8-is-uppercase-tests: Likewise.
5841         * modules/unicase/u8-tolower-tests: Likewise.
5842         * modules/unicase/u8-totitle-tests: Likewise.
5843         * modules/unicase/u8-toupper-tests: Likewise.
5844         * modules/unicase/u16-casecmp-tests: Likewise.
5845         * modules/unicase/u16-casecoll-tests: Likewise.
5846         * modules/unicase/u16-casefold-tests: Likewise.
5847         * modules/unicase/u16-is-cased-tests: Likewise.
5848         * modules/unicase/u16-is-casefolded-tests: Likewise.
5849         * modules/unicase/u16-is-lowercase-tests: Likewise.
5850         * modules/unicase/u16-is-titlecase-tests: Likewise.
5851         * modules/unicase/u16-is-uppercase-tests: Likewise.
5852         * modules/unicase/u16-tolower-tests: Likewise.
5853         * modules/unicase/u16-totitle-tests: Likewise.
5854         * modules/unicase/u16-toupper-tests: Likewise.
5855         * modules/unicase/u32-casecmp-tests: Likewise.
5856         * modules/unicase/u32-casecoll-tests: Likewise.
5857         * modules/unicase/u32-casefold-tests: Likewise.
5858         * modules/unicase/u32-is-cased-tests: Likewise.
5859         * modules/unicase/u32-is-casefolded-tests: Likewise.
5860         * modules/unicase/u32-is-lowercase-tests: Likewise.
5861         * modules/unicase/u32-is-titlecase-tests: Likewise.
5862         * modules/unicase/u32-is-uppercase-tests: Likewise.
5863         * modules/unicase/u32-tolower-tests: Likewise.
5864         * modules/unicase/u32-totitle-tests: Likewise.
5865         * modules/unicase/u32-toupper-tests: Likewise.
5866         * modules/unicase/ulc-casecmp-tests: Likewise.
5867         * modules/unicase/ulc-casecoll-tests: Likewise.
5868         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
5869         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
5870         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
5871         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
5872         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
5873         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
5874         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
5875         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
5876         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
5877         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
5878         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
5879         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
5880         * modules/unictype/bidicategory-byname-tests: Likewise.
5881         * modules/unictype/bidicategory-name-tests: Likewise.
5882         * modules/unictype/bidicategory-of-tests: Likewise.
5883         * modules/unictype/bidicategory-test-tests: Likewise.
5884         * modules/unictype/block-list-tests: Likewise.
5885         * modules/unictype/block-of-tests: Likewise.
5886         * modules/unictype/block-test-tests: Likewise.
5887         * modules/unictype/category-C-tests: Likewise.
5888         * modules/unictype/category-Cc-tests: Likewise.
5889         * modules/unictype/category-Cf-tests: Likewise.
5890         * modules/unictype/category-Cn-tests: Likewise.
5891         * modules/unictype/category-Co-tests: Likewise.
5892         * modules/unictype/category-Cs-tests: Likewise.
5893         * modules/unictype/category-L-tests: Likewise.
5894         * modules/unictype/category-Ll-tests: Likewise.
5895         * modules/unictype/category-Lm-tests: Likewise.
5896         * modules/unictype/category-Lo-tests: Likewise.
5897         * modules/unictype/category-Lt-tests: Likewise.
5898         * modules/unictype/category-Lu-tests: Likewise.
5899         * modules/unictype/category-M-tests: Likewise.
5900         * modules/unictype/category-Mc-tests: Likewise.
5901         * modules/unictype/category-Me-tests: Likewise.
5902         * modules/unictype/category-Mn-tests: Likewise.
5903         * modules/unictype/category-N-tests: Likewise.
5904         * modules/unictype/category-Nd-tests: Likewise.
5905         * modules/unictype/category-Nl-tests: Likewise.
5906         * modules/unictype/category-No-tests: Likewise.
5907         * modules/unictype/category-P-tests: Likewise.
5908         * modules/unictype/category-Pc-tests: Likewise.
5909         * modules/unictype/category-Pd-tests: Likewise.
5910         * modules/unictype/category-Pe-tests: Likewise.
5911         * modules/unictype/category-Pf-tests: Likewise.
5912         * modules/unictype/category-Pi-tests: Likewise.
5913         * modules/unictype/category-Po-tests: Likewise.
5914         * modules/unictype/category-Ps-tests: Likewise.
5915         * modules/unictype/category-S-tests: Likewise.
5916         * modules/unictype/category-Sc-tests: Likewise.
5917         * modules/unictype/category-Sk-tests: Likewise.
5918         * modules/unictype/category-Sm-tests: Likewise.
5919         * modules/unictype/category-So-tests: Likewise.
5920         * modules/unictype/category-Z-tests: Likewise.
5921         * modules/unictype/category-Zl-tests: Likewise.
5922         * modules/unictype/category-Zp-tests: Likewise.
5923         * modules/unictype/category-Zs-tests: Likewise.
5924         * modules/unictype/category-and-not-tests: Likewise.
5925         * modules/unictype/category-and-tests: Likewise.
5926         * modules/unictype/category-byname-tests: Likewise.
5927         * modules/unictype/category-name-tests: Likewise.
5928         * modules/unictype/category-none-tests: Likewise.
5929         * modules/unictype/category-of-tests: Likewise.
5930         * modules/unictype/category-or-tests: Likewise.
5931         * modules/unictype/category-test-withtable-tests: Likewise.
5932         * modules/unictype/combining-class-tests: Likewise.
5933         * modules/unictype/ctype-alnum-tests: Likewise.
5934         * modules/unictype/ctype-alpha-tests: Likewise.
5935         * modules/unictype/ctype-blank-tests: Likewise.
5936         * modules/unictype/ctype-cntrl-tests: Likewise.
5937         * modules/unictype/ctype-digit-tests: Likewise.
5938         * modules/unictype/ctype-graph-tests: Likewise.
5939         * modules/unictype/ctype-lower-tests: Likewise.
5940         * modules/unictype/ctype-print-tests: Likewise.
5941         * modules/unictype/ctype-punct-tests: Likewise.
5942         * modules/unictype/ctype-space-tests: Likewise.
5943         * modules/unictype/ctype-upper-tests: Likewise.
5944         * modules/unictype/ctype-xdigit-tests: Likewise.
5945         * modules/unictype/decimal-digit-tests: Likewise.
5946         * modules/unictype/digit-tests: Likewise.
5947         * modules/unictype/mirror-tests: Likewise.
5948         * modules/unictype/numeric-tests: Likewise.
5949         * modules/unictype/property-alphabetic-tests: Likewise.
5950         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
5951         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
5952         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
5953         * modules/unictype/property-bidi-block-separator-tests: Likewise.
5954         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
5955         * modules/unictype/property-bidi-common-separator-tests: Likewise.
5956         * modules/unictype/property-bidi-control-tests: Likewise.
5957         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
5958         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
5959         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
5960         * modules/unictype/property-bidi-european-digit-tests: Likewise.
5961         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
5962         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
5963         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
5964         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
5965         * modules/unictype/property-bidi-pdf-tests: Likewise.
5966         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
5967         * modules/unictype/property-bidi-whitespace-tests: Likewise.
5968         * modules/unictype/property-byname-tests: Likewise.
5969         * modules/unictype/property-combining-tests: Likewise.
5970         * modules/unictype/property-composite-tests: Likewise.
5971         * modules/unictype/property-currency-symbol-tests: Likewise.
5972         * modules/unictype/property-dash-tests: Likewise.
5973         * modules/unictype/property-decimal-digit-tests: Likewise.
5974         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
5975         * modules/unictype/property-deprecated-tests: Likewise.
5976         * modules/unictype/property-diacritic-tests: Likewise.
5977         * modules/unictype/property-extender-tests: Likewise.
5978         * modules/unictype/property-format-control-tests: Likewise.
5979         * modules/unictype/property-grapheme-base-tests: Likewise.
5980         * modules/unictype/property-grapheme-extend-tests: Likewise.
5981         * modules/unictype/property-grapheme-link-tests: Likewise.
5982         * modules/unictype/property-hex-digit-tests: Likewise.
5983         * modules/unictype/property-hyphen-tests: Likewise.
5984         * modules/unictype/property-id-continue-tests: Likewise.
5985         * modules/unictype/property-id-start-tests: Likewise.
5986         * modules/unictype/property-ideographic-tests: Likewise.
5987         * modules/unictype/property-ids-binary-operator-tests: Likewise.
5988         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
5989         * modules/unictype/property-ignorable-control-tests: Likewise.
5990         * modules/unictype/property-iso-control-tests: Likewise.
5991         * modules/unictype/property-join-control-tests: Likewise.
5992         * modules/unictype/property-left-of-pair-tests: Likewise.
5993         * modules/unictype/property-line-separator-tests: Likewise.
5994         * modules/unictype/property-logical-order-exception-tests: Likewise.
5995         * modules/unictype/property-lowercase-tests: Likewise.
5996         * modules/unictype/property-math-tests: Likewise.
5997         * modules/unictype/property-non-break-tests: Likewise.
5998         * modules/unictype/property-not-a-character-tests: Likewise.
5999         * modules/unictype/property-numeric-tests: Likewise.
6000         * modules/unictype/property-other-alphabetic-tests: Likewise.
6001         * modules/unictype/property-other-default-ignorable-code-point-tests:
6002         Likewise.
6003         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
6004         * modules/unictype/property-other-id-continue-tests: Likewise.
6005         * modules/unictype/property-other-id-start-tests: Likewise.
6006         * modules/unictype/property-other-lowercase-tests: Likewise.
6007         * modules/unictype/property-other-math-tests: Likewise.
6008         * modules/unictype/property-other-uppercase-tests: Likewise.
6009         * modules/unictype/property-paired-punctuation-tests: Likewise.
6010         * modules/unictype/property-paragraph-separator-tests: Likewise.
6011         * modules/unictype/property-pattern-syntax-tests: Likewise.
6012         * modules/unictype/property-pattern-white-space-tests: Likewise.
6013         * modules/unictype/property-private-use-tests: Likewise.
6014         * modules/unictype/property-punctuation-tests: Likewise.
6015         * modules/unictype/property-quotation-mark-tests: Likewise.
6016         * modules/unictype/property-radical-tests: Likewise.
6017         * modules/unictype/property-sentence-terminal-tests: Likewise.
6018         * modules/unictype/property-soft-dotted-tests: Likewise.
6019         * modules/unictype/property-space-tests: Likewise.
6020         * modules/unictype/property-terminal-punctuation-tests: Likewise.
6021         * modules/unictype/property-test-tests: Likewise.
6022         * modules/unictype/property-titlecase-tests: Likewise.
6023         * modules/unictype/property-unassigned-code-value-tests: Likewise.
6024         * modules/unictype/property-unified-ideograph-tests: Likewise.
6025         * modules/unictype/property-uppercase-tests: Likewise.
6026         * modules/unictype/property-variation-selector-tests: Likewise.
6027         * modules/unictype/property-white-space-tests: Likewise.
6028         * modules/unictype/property-xid-continue-tests: Likewise.
6029         * modules/unictype/property-xid-start-tests: Likewise.
6030         * modules/unictype/property-zero-width-tests: Likewise.
6031         * modules/unictype/scripts-tests: Likewise.
6032         * modules/unictype/syntax-c-ident-tests: Likewise.
6033         * modules/unictype/syntax-c-whitespace-tests: Likewise.
6034         * modules/unictype/syntax-java-ident-tests: Likewise.
6035         * modules/unictype/syntax-java-whitespace-tests: Likewise.
6036         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
6037         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
6038         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
6039         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
6040         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
6041         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
6042         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
6043         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
6044         * modules/uniname/uniname-tests: Likewise.
6045         * modules/uninorm/canonical-decomposition-tests: Likewise.
6046         * modules/uninorm/compat-decomposition-tests: Likewise.
6047         * modules/uninorm/composition-tests: Likewise.
6048         * modules/uninorm/decomposing-form-tests: Likewise.
6049         * modules/uninorm/decomposition-tests: Likewise.
6050         * modules/uninorm/filter-tests: Likewise.
6051         * modules/uninorm/nfc-tests: Likewise.
6052         * modules/uninorm/nfd-tests: Likewise.
6053         * modules/uninorm/nfkc-tests: Likewise.
6054         * modules/uninorm/nfkd-tests: Likewise.
6055         * modules/uninorm/u8-normcmp-tests: Likewise.
6056         * modules/uninorm/u8-normcoll-tests: Likewise.
6057         * modules/uninorm/u16-normcmp-tests: Likewise.
6058         * modules/uninorm/u16-normcoll-tests: Likewise.
6059         * modules/uninorm/u32-normcmp-tests: Likewise.
6060         * modules/uninorm/u32-normcoll-tests: Likewise.
6061         * modules/unistdio/u8-asnprintf-tests: Likewise.
6062         * modules/unistdio/u8-vasnprintf-tests: Likewise.
6063         * modules/unistdio/u8-vasprintf-tests: Likewise.
6064         * modules/unistdio/u8-vsnprintf-tests: Likewise.
6065         * modules/unistdio/u8-vsprintf-tests: Likewise.
6066         * modules/unistdio/u16-asnprintf-tests: Likewise.
6067         * modules/unistdio/u16-vasnprintf-tests: Likewise.
6068         * modules/unistdio/u16-vasprintf-tests: Likewise.
6069         * modules/unistdio/u16-vsnprintf-tests: Likewise.
6070         * modules/unistdio/u16-vsprintf-tests: Likewise.
6071         * modules/unistdio/u32-asnprintf-tests: Likewise.
6072         * modules/unistdio/u32-vasnprintf-tests: Likewise.
6073         * modules/unistdio/u32-vasprintf-tests: Likewise.
6074         * modules/unistdio/u32-vsnprintf-tests: Likewise.
6075         * modules/unistdio/u32-vsprintf-tests: Likewise.
6076         * modules/unistdio/ulc-asnprintf-tests: Likewise.
6077         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
6078         * modules/unistdio/ulc-vasprintf-tests: Likewise.
6079         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
6080         * modules/unistdio/ulc-vsprintf-tests: Likewise.
6081         * modules/unistr/u8-check-tests: Likewise.
6082         * modules/unistr/u8-chr-tests: Likewise.
6083         * modules/unistr/u8-cmp-tests: Likewise.
6084         * modules/unistr/u8-cmp2-tests: Likewise.
6085         * modules/unistr/u8-cpy-alloc-tests: Likewise.
6086         * modules/unistr/u8-cpy-tests: Likewise.
6087         * modules/unistr/u8-mblen-tests: Likewise.
6088         * modules/unistr/u8-mbsnlen-tests: Likewise.
6089         * modules/unistr/u8-mbtouc-tests: Likewise.
6090         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
6091         * modules/unistr/u8-mbtoucr-tests: Likewise.
6092         * modules/unistr/u8-move-tests: Likewise.
6093         * modules/unistr/u8-next-tests: Likewise.
6094         * modules/unistr/u8-prev-tests: Likewise.
6095         * modules/unistr/u8-set-tests: Likewise.
6096         * modules/unistr/u8-stpcpy-tests: Likewise.
6097         * modules/unistr/u8-stpncpy-tests: Likewise.
6098         * modules/unistr/u8-strcat-tests: Likewise.
6099         * modules/unistr/u8-strcmp-tests: Likewise.
6100         * modules/unistr/u8-strcoll-tests: Likewise.
6101         * modules/unistr/u8-strcpy-tests: Likewise.
6102         * modules/unistr/u8-strdup-tests: Likewise.
6103         * modules/unistr/u8-strlen-tests: Likewise.
6104         * modules/unistr/u8-strmblen-tests: Likewise.
6105         * modules/unistr/u8-strmbtouc-tests: Likewise.
6106         * modules/unistr/u8-strncat-tests: Likewise.
6107         * modules/unistr/u8-strncmp-tests: Likewise.
6108         * modules/unistr/u8-strncpy-tests: Likewise.
6109         * modules/unistr/u8-strnlen-tests: Likewise.
6110         * modules/unistr/u8-to-u16-tests: Likewise.
6111         * modules/unistr/u8-to-u32-tests: Likewise.
6112         * modules/unistr/u8-uctomb-tests: Likewise.
6113         * modules/unistr/u16-check-tests: Likewise.
6114         * modules/unistr/u16-chr-tests: Likewise.
6115         * modules/unistr/u16-cmp-tests: Likewise.
6116         * modules/unistr/u16-cmp2-tests: Likewise.
6117         * modules/unistr/u16-cpy-alloc-tests: Likewise.
6118         * modules/unistr/u16-cpy-tests: Likewise.
6119         * modules/unistr/u16-mblen-tests: Likewise.
6120         * modules/unistr/u16-mbsnlen-tests: Likewise.
6121         * modules/unistr/u16-mbtouc-tests: Likewise.
6122         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
6123         * modules/unistr/u16-mbtoucr-tests: Likewise.
6124         * modules/unistr/u16-move-tests: Likewise.
6125         * modules/unistr/u16-next-tests: Likewise.
6126         * modules/unistr/u16-prev-tests: Likewise.
6127         * modules/unistr/u16-set-tests: Likewise.
6128         * modules/unistr/u16-stpcpy-tests: Likewise.
6129         * modules/unistr/u16-stpncpy-tests: Likewise.
6130         * modules/unistr/u16-strcat-tests: Likewise.
6131         * modules/unistr/u16-strcmp-tests: Likewise.
6132         * modules/unistr/u16-strcoll-tests: Likewise.
6133         * modules/unistr/u16-strcpy-tests: Likewise.
6134         * modules/unistr/u16-strdup-tests: Likewise.
6135         * modules/unistr/u16-strlen-tests: Likewise.
6136         * modules/unistr/u16-strmblen-tests: Likewise.
6137         * modules/unistr/u16-strmbtouc-tests: Likewise.
6138         * modules/unistr/u16-strncat-tests: Likewise.
6139         * modules/unistr/u16-strncmp-tests: Likewise.
6140         * modules/unistr/u16-strncpy-tests: Likewise.
6141         * modules/unistr/u16-strnlen-tests: Likewise.
6142         * modules/unistr/u16-to-u32-tests: Likewise.
6143         * modules/unistr/u16-to-u8-tests: Likewise.
6144         * modules/unistr/u16-uctomb-tests: Likewise.
6145         * modules/unistr/u32-check-tests: Likewise.
6146         * modules/unistr/u32-chr-tests: Likewise.
6147         * modules/unistr/u32-cmp-tests: Likewise.
6148         * modules/unistr/u32-cmp2-tests: Likewise.
6149         * modules/unistr/u32-cpy-alloc-tests: Likewise.
6150         * modules/unistr/u32-cpy-tests: Likewise.
6151         * modules/unistr/u32-mblen-tests: Likewise.
6152         * modules/unistr/u32-mbsnlen-tests: Likewise.
6153         * modules/unistr/u32-mbtouc-tests: Likewise.
6154         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
6155         * modules/unistr/u32-mbtoucr-tests: Likewise.
6156         * modules/unistr/u32-move-tests: Likewise.
6157         * modules/unistr/u32-next-tests: Likewise.
6158         * modules/unistr/u32-prev-tests: Likewise.
6159         * modules/unistr/u32-set-tests: Likewise.
6160         * modules/unistr/u32-stpcpy-tests: Likewise.
6161         * modules/unistr/u32-stpncpy-tests: Likewise.
6162         * modules/unistr/u32-strcat-tests: Likewise.
6163         * modules/unistr/u32-strcmp-tests: Likewise.
6164         * modules/unistr/u32-strcoll-tests: Likewise.
6165         * modules/unistr/u32-strcpy-tests: Likewise.
6166         * modules/unistr/u32-strdup-tests: Likewise.
6167         * modules/unistr/u32-strlen-tests: Likewise.
6168         * modules/unistr/u32-strmblen-tests: Likewise.
6169         * modules/unistr/u32-strmbtouc-tests: Likewise.
6170         * modules/unistr/u32-strncat-tests: Likewise.
6171         * modules/unistr/u32-strncmp-tests: Likewise.
6172         * modules/unistr/u32-strncpy-tests: Likewise.
6173         * modules/unistr/u32-strnlen-tests: Likewise.
6174         * modules/unistr/u32-to-u16-tests: Likewise.
6175         * modules/unistr/u32-to-u8-tests: Likewise.
6176         * modules/unistr/u32-uctomb-tests: Likewise.
6177         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
6178         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
6179         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
6180         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
6181         * modules/uniwidth/u8-strwidth-tests: Likewise.
6182         * modules/uniwidth/u8-width-tests: Likewise.
6183         * modules/uniwidth/u16-strwidth-tests: Likewise.
6184         * modules/uniwidth/u16-width-tests: Likewise.
6185         * modules/uniwidth/u32-strwidth-tests: Likewise.
6186         * modules/uniwidth/u32-width-tests: Likewise.
6187         * modules/uniwidth/width-tests: Likewise.
6188
6189 2010-05-18  Richard Jones  <rjones@redhat.com>
6190
6191         doc: users.txt: list hivex
6192         * users.txt: Add hivex.
6193
6194 2010-05-18  Richard Jones  <rjones@redhat.com>
6195
6196         doc: users.txt: list febootstrap
6197         * users.txt: Add febootstrap.
6198
6199 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
6200
6201         bootstrap: fix an error when gnulib is not used as a git submodule
6202         * build-aux/bootstrap (gnulib_path): If its length is zero then
6203         assign "gnulib" to it.
6204         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
6205
6206 2010-05-16  Bruno Haible  <bruno@clisp.org>
6207
6208         Avoid autoconf warnings about AM_ICONV.
6209         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
6210         2.64.
6211
6212 2010-05-16  Bruno Haible  <bruno@clisp.org>
6213
6214         absolute-header: Make the macro usable in more situations.
6215         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
6216         from gl_ABSOLUTE_HEADER.
6217         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
6218
6219 2010-05-16  James Youngman  <jay@gnu.org>
6220
6221         doc: update users.txt
6222         * users.txt: Add CSSC.
6223
6224 2010-05-16  Jim Meyering  <meyering@redhat.com>
6225
6226         init.sh: fix an error in the previous change; add more comments
6227         * tests/init.sh: Compare exit code in loop against 9, not 2.
6228         Patch by Bruno Haible.
6229         Make the two tests more similar by adding an empty "then" clause.
6230         Add comments.
6231
6232         init.sh: avoid unnecessary shell re-exec
6233         * tests/init.sh: Improve the re-exec-required check to first test the
6234         current shell.  If it passes the test, do not search for a shell that
6235         does pass, and do not re-exec.  This test is particularly contorted to
6236         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
6237         of $(...) evokes a syntax error and causes immediate shell exit with
6238         status 2.  Bruno Haible reported that the re-exec made it impossible
6239         to single-step through any init.sh-using script.
6240
6241 2010-05-16  Bruno Haible  <bruno@clisp.org>
6242
6243         Fix collision between gnulib's and libintl's printf replacements.
6244         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
6245         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
6246         (printf): When using GNU C, map the __printf__ function to rpl_printf
6247         via __asm__. When not using GNU C, define rpl_printf instead of
6248         __printf__.
6249         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
6250         commit.
6251         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
6252         commit.
6253         * m4/asm-underscore.m4: New file.
6254         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
6255         * modules/stdio (Files): Add m4/asm-underscore.m4.
6256         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
6257         Reported by Ben Pfaff.
6258
6259 2010-05-16  Bruno Haible  <bruno@clisp.org>
6260
6261         verify: Avoid skipping the test on openSUSE 11.0.
6262         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
6263
6264 2010-05-13  Bruno Haible  <bruno@clisp.org>
6265
6266         Avoid useless warnings from G++.
6267         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
6268         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
6269         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
6270
6271 2010-05-11  Jim Meyering  <meyering@redhat.com>
6272
6273         maint.mk: tweak preceding change
6274         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
6275         regexps tighter by anchoring at EOL, and make the new group "shy"
6276         for slightly decreased overhead.
6277
6278 2010-05-11  Eric Blake  <eblake@redhat.com>
6279
6280         maint.mk: gnulib doesn't guarantee NSIG
6281         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
6282
6283 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
6284
6285         test-pwrite.c: Remove unused variable declaration.
6286         * tests/test-pwrite.c (main): Remove read_buf declaration.
6287
6288         Remove useless test-pwrite.sh file.
6289         * tests/test-pwrite.sh: Delete file.
6290         * modules/pwrite-tests: Remove references.
6291         Reported by Bruno Haible.
6292
6293 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
6294
6295         init.sh: fix a typo
6296         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
6297
6298 2010-05-10  Jim Meyering  <meyering@redhat.com>
6299
6300         maint.mk: avoid using a temporary file in the always-defined-macros check
6301         * top/maint.mk (.re-defmac): Remove rule.
6302         (gl_trap_): Remove definition.
6303         (sc_prohibit_always-defined_macros): Rewrite not to create and
6304         depend on a temporary file.  Instead, depend on GNU grep's ability
6305         to read a list of regular expressions from stdin when given "-f -".
6306
6307 2010-05-09  Bruno Haible  <bruno@clisp.org>
6308
6309         Update to GNU gettext 0.18, part 1.
6310         * m4/gettext.m4: Update to GNU gettext 0.18.
6311         * m4/intl.m4: Likewise.
6312         * m4/po.m4: Likewise.
6313         * modules/gettext (Files): Add m4/fcntl-o.m4.
6314         (configure.ac): Require gettext infrastructure from version 0.18.
6315
6316 2010-05-09  Jim Meyering  <meyering@redhat.com>
6317
6318         init.sh: enable MALLOC_PERTURB_
6319         * tests/init.sh: Enable glibc's malloc-perturbing option.
6320
6321         maint.mk: improve sc_cross_check_PATH_usage_in_tests
6322         With my recent change in init.sh from the two-line form:
6323             -#   : ${srcdir=.}
6324             -#   . "$srcdir/init.sh"; path_prepend_ .
6325             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
6326         I noticed that using the one-line form would cause this test
6327         to fail with a false-positive, or to stop working altogether,
6328         depending on whether help-version changed or all the tests did.
6329         * top/maint.mk (_hv_regex): Remove this definition.
6330         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
6331         (_hv_regex_strong): Use a stronger regex to check for conformance.
6332         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
6333         Give a separate diagnostic for lack of conforming use.
6334
6335         maint.mk: prohibit definition of symbols defined by gnulib
6336         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
6337         definition of symbols defined by gnulib.
6338
6339 2010-05-09  Bruno Haible  <bruno@clisp.org>
6340
6341         acl: Avoid test failure on Cygwin-hosted mingw.
6342         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
6343
6344 2010-05-09  Bruno Haible  <bruno@clisp.org>
6345
6346         error: Use system's fcntl function.
6347         * lib/error.c (fcntl): Undefine.
6348
6349 2010-05-09  Jim Meyering  <meyering@redhat.com>
6350
6351         verify: adjust formatting to be more consistent
6352         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
6353         argument-list '('s, and after one comma.
6354
6355 2010-05-09  Bruno Haible  <bruno@clisp.org>
6356
6357         error: More reliable output on mingw.
6358         * lib/error.c: Include <windows.h>.
6359         (is_open): New function.
6360         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
6361         defined.
6362
6363 2010-05-09  Bruno Haible  <bruno@clisp.org>
6364
6365         vasnprintf: Fix syntax errors in libintl build on mingw.
6366         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
6367         pad_ourselves and prec_ourselves after use.
6368
6369 2010-05-08  Bruno Haible  <bruno@clisp.org>
6370
6371         * lib/config.charset: Update comments for Cygwin 1.7.
6372         * lib/localcharset.c: Likewise.
6373
6374 2010-05-07  Jim Meyering  <meyering@redhat.com>
6375
6376         init.sh: improve comments
6377         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
6378         . "${srcdir=.}/init.sh"; path_prepend_ .
6379         Add a note about path_prepend_ and the alternative of using
6380         TESTS_ENVIRONMENT.
6381
6382 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
6383
6384         exclude: Unescape hashed patterns in wildcard mode.
6385         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
6386         to the hash list.
6387         * tests/test-exclude8.sh: New test case.
6388         * modules/exclude-tests: Add new test.
6389
6390 2010-05-05  Eric Blake  <eblake@redhat.com>
6391
6392         verify: automate tests
6393         * modules/verify-tests: New module.
6394         * tests/test-verify.sh: New file.
6395         * tests/test-verify.c: Guard each negative test with a unique id.
6396         Also avoid warning about unused left hand of comma expressions.
6397
6398 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
6399
6400         Further improvements to verify.h, suggested by Eric Blake.
6401         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
6402         the GL_* versions, to avoid collision with OpenGL.
6403         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
6404         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
6405         than testing merely whether it's defined.
6406
6407         Modify verify.h to pacify gcc -Wredundant_decls.
6408         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
6409         These use the prefix "GL_" since they're likely to be useful elsewhere.
6410         We may need to break them out into a different .h file.
6411         (__COUNTER__): Define to 0 if the compiler doesn't support it.
6412         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
6413         of verify_function__.
6414
6415 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
6416
6417         Tests for module pwrite.
6418         * modules/pwrite-tests: New file.
6419         * tests/test-pwrite.sh: New file.
6420         * tests/test-pwrite.c: New file.
6421
6422         New module pwrite.
6423         * lib/unistd.in.h (pwrite): New declaration.
6424         * lib/pwrite.c: New file, from glibc with modifications.
6425         * m4/pwrite.m4: New file.
6426         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
6427         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
6428         REPLACE_PWRITE.
6429         * modules/pwrite: New file.
6430         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
6431         REPLACE_PWRITE.
6432         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
6433         * doc/posix-functions/pwrite.texi: Mention the new module.
6434
6435 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
6436
6437         pread: Update documentation.
6438         * doc/posix-functions/pread.texi: Mention the 'pread' module.
6439
6440 2010-05-04  Eric Blake  <eblake@redhat.com>
6441
6442         docs: update cygwin progress
6443         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
6444         this bug.
6445         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
6446         Added in cygwin 1.7.2.
6447         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
6448         Likewise.
6449         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
6450         Likewise.
6451         * doc/glibc-functions/dup3.texi (dup3): Likewise.
6452         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
6453         * doc/glibc-functions/accept4.texi (accept4): Likewise.
6454         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
6455         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
6456         Mention nproc module.
6457         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
6458         bug in cygwin 1.7.5 addition.
6459         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
6460         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
6461         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
6462         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
6463         1.7.5.
6464         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
6465         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
6466         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
6467         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
6468         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
6469         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
6470         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
6471         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
6472         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
6473         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
6474         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
6475         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
6476         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
6477         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
6478         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
6479         Likewise.
6480         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
6481         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
6482         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
6483         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
6484         Likewise.
6485         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
6486         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
6487         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
6488         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
6489         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
6490         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
6491         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
6492         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
6493         Likewise.
6494         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
6495         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
6496         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
6497         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
6498         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
6499         Likewise.
6500         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
6501         Likewise.
6502         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
6503         Likewise.
6504         * doc/glibc-functions/xdrrec_endofrecord.texi
6505         (xdrrec_endofrecord): Likewise.
6506         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
6507         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
6508         Likewise.
6509         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
6510         Likewise.
6511
6512 2010-05-04  Jim Meyering  <meyering@redhat.com>
6513
6514         gendocs.sh: make its "-s FILE" option more useful
6515         * build-aux/gendocs.sh: When honoring the -s FILE option, update
6516         $PACKAGE to reflect the probably-different basename of "FILE".
6517
6518 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
6519
6520         bootstrap: don't ignore download_po_files failure
6521         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
6522         failure.
6523
6524 2010-05-03  Jim Meyering  <meyering@redhat.com>
6525
6526         maint.mk: allow to pass options to gendocs.sh
6527         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
6528         (gendocs_options_): New overridable variable.
6529
6530         gnu-web-doc-update: don't ignore configure or build failure
6531         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
6532
6533         announce-gen: backslash-escape '@'s in --help output
6534         * build-aux/announce-gen: Fix syntax errors.
6535
6536         maint.mk, announce-gen: allow project-specific announcement mail headers
6537         * top/maint.mk (translation_project_): Define default.
6538         (announcement_Cc_, announcement_mail_headers_): Likewise.
6539         (announcement): Invoke announce-gen with new --mail-headers option.
6540         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
6541
6542         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
6543         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
6544         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
6545         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
6546         line in the "err2" output file when running "make check" in verbose
6547         mode (i.e., with set -x enabled).
6548
6549 2010-05-03  Bruno Haible  <bruno@clisp.org>
6550
6551         wctob: Fix for weird platforms.
6552         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
6553         argument value.
6554
6555 2010-05-03  Jim Meyering  <meyering@redhat.com>
6556
6557         maint.mk: prohibit unwarranted use of <strings.h>
6558         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
6559         strings.h in a file that does not also use strcasecmp, strncasecmp,
6560         ffs or ffsll.
6561
6562         maint.mk: remove obsolete comments
6563         * top/maint.mk: Remove stale, commented-out rules.
6564
6565 2010-05-02  Bruno Haible  <bruno@clisp.org>
6566
6567         wcwidth: Declare also when it's aliased.
6568         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
6569         macro.
6570
6571 2010-05-02  Bruno Haible  <bruno@clisp.org>
6572
6573         Fix regression from 2010-04-25.
6574         * gnulib-tool (func_modules_transitive_closure): Check the status of
6575         all modules, not only of the tests that are of the form foo-tests where
6576         foo is a module.
6577
6578 2010-05-02  Bruno Haible  <bruno@clisp.org>
6579
6580         wctob: Work around nasty Cygwin 1.7.2 bug.
6581         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
6582         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
6583
6584 2010-05-01  Bruno Haible  <bruno@clisp.org>
6585
6586         fpurge: Sharper test.
6587         * tests/test-fpurge.c (main): Add one more ftell check.
6588         * modules/fpurge-tests (Depends-on): Add ftell.
6589         Suggested by Eric Blake.
6590
6591 2010-05-01  Bruno Haible  <bruno@clisp.org>
6592
6593         ftello: Another test.
6594         * tests/test-ftello3.c: New file.
6595         * modules/ftello-tests (Files): Add it.
6596         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
6597         MOSTLYCLEANFILES.
6598
6599         ftell: Another test.
6600         * tests/test-ftell3.c: New file.
6601         * modules/ftell-tests (Files): Add it.
6602         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
6603         MOSTLYCLEANFILES.
6604
6605 2010-05-01  Bruno Haible  <bruno@clisp.org>
6606
6607         ftell, ftello: Work around Solaris bug.
6608         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
6609         * lib/ftello.c: Include stdio-impl.h.
6610         (ftello): On Solaris, when _IOWRT is set, compute the result without
6611         looking at _IOREAD.
6612         * modules/ftello (Files): Add lib/stdio-impl.h.
6613         * doc/posix-functions/ftell.texi: Mention Solaris bug.
6614         * doc/posix-functions/ftello.texi: Likewise.
6615         Reported by Eric Blake.
6616
6617 2010-05-01  Bruno Haible  <bruno@clisp.org>
6618
6619         freading: Adapt to special meaning of _IOREAD flag on Solaris.
6620         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
6621         the _IOWRT flag is also set.
6622
6623 2010-05-01  Bruno Haible  <bruno@clisp.org>
6624
6625         Fix doc about a HP-UX stdio bug.
6626         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
6627         * doc/posix-functions/ftello.texi: Likewise.
6628
6629 2010-05-01  Bruno Haible  <bruno@clisp.org>
6630
6631         lseek test: Fix failure on Solaris.
6632         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
6633         output.
6634
6635 2010-04-30  Jim Meyering  <meyering@redhat.com>
6636
6637         bootstrap: don't ignore failure to generate po*/Makevars
6638         * build-aux/bootstrap (with_gettext): Don't ignore failure
6639         to create po/Makevars or runtime-po/Makevars.
6640
6641 2010-04-29  Eric Blake  <eblake@redhat.com>
6642
6643         headers: relax license to LGPLv2+
6644         * modules/fcntl-h (License): Relax license.
6645         * modules/getopt-posix (License): Likewise.
6646         * modules/locale (License): Likewise.
6647         * modules/math (License): Likewise.
6648         * modules/pty (License): Likewise.
6649         * modules/sched (License): Likewise.
6650         * modules/search (License): Likewise.
6651         * modules/spawn (License): Likewise.
6652         * modules/stdarg (License): Likewise.
6653         * modules/sysexits (License): Likewise.
6654
6655 2010-04-29  Jim Meyering  <meyering@redhat.com>
6656
6657         inttypes: relax license to LGPLv2+
6658         * modules/inttypes (License): Relax license.
6659
6660 2010-04-29  Simon Josefsson  <simon@josefsson.org>
6661
6662         * top/maint.mk (indent): Run twice to produce idempotent results.
6663
6664 2010-04-28  Bruno Haible  <bruno@clisp.org>
6665
6666         getdate: Generate getdate.c in the source directory.
6667         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
6668         MOSTLYCLEANFILES.
6669         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
6670
6671 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
6672
6673         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
6674         is not declared as a const *; avoid warnings in that case.
6675
6676 2010-04-28  Eric Blake  <eblake@redhat.com>
6677
6678         canonicalize-lgpl: avoid compiler warning
6679         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
6680         declaration' / 'extraneous semicolon' warning with some compilers.
6681         Reported by Andreas Gruenbacher.
6682
6683 2010-04-28  Jim Meyering  <meyering@redhat.com>
6684
6685         init.sh: ensure a more reliable exit status when exiting via trap
6686         * tests/init.sh (setup_): Don't rely on $? in signal handler.
6687         Inspired by patches from Dmitry V. Levin.
6688         Also trap on signal 3 (SIGQUIT).
6689
6690 2010-04-27  Bruno Haible  <bruno@clisp.org>
6691
6692         Update doc about utimes().
6693         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
6694         'utimens' module.
6695         Reported by Andreas Gruenbacher <agruen@suse.de>.
6696
6697 2010-04-27  Eric Blake  <eblake@redhat.com>
6698
6699         full-read, full-write: relax license
6700         * modules/full-read (License): Drop to LGPLv2+.
6701         * modules/full-write (License): Likewise.
6702         * modules/safe-read (License): Likewise.
6703         * modules/safe-write (License): Likewise.
6704
6705         pthread: mention library for linking
6706         * modules/pthread (Link): Mention $(LIB_PTHREAD).
6707
6708 2010-04-27  Jim Meyering  <meyering@redhat.com>
6709
6710         maint.mk: fix a bug introduced in last change
6711         * top/maint.mk (gl_assured_headers_): Now that all names are on
6712         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
6713         is not anchored to end of word, it should be adequate.
6714
6715         maint.mk: avoid side-effect in latest syntax-check
6716         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
6717         to run commands via $(shell...), and hence to incur cost only when
6718         the new rule is actually run.
6719
6720         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
6721         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
6722         and use that to create a regexp used to detect all #if HAVE_..._H uses.
6723         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
6724         (gl_assured_headers_, az_, AZ_): Define.
6725         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
6726
6727 2010-04-26  Jim Meyering  <jim@meyering.net>
6728             Bruno Haible  <bruno@clisp.org>
6729
6730         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
6731         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
6732         Prompted by an exchange with Gilles Espinasse.
6733
6734 2010-04-26  Jim Meyering  <meyering@redhat.com>
6735
6736         git-version-gen: aesthetic tweak
6737         * build-aux/git-version-gen: Use "$nl" rather than a literal,
6738         so that the command remains on a single line.
6739
6740 2010-04-26  Eric Blake  <eblake@redhat.com>
6741
6742         git-version-gen: allow use on EBCDIC hosts
6743         * build-aux/git-version-gen (dirty): Use literal rather than tying
6744         ourselves to ascii.
6745         Reported by Steve Goetze.
6746
6747 2010-04-25  Bruno Haible  <bruno@clisp.org>
6748
6749         netdb: Add support for GNULIB_POSIXCHECK.
6750         * lib/netdb.in.h: Include warn-on-use.h.
6751         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
6752         functions are used when GNULIB_POSIXCHECK is defined and the
6753         getaddrinfo module is not in use.
6754         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
6755         freeaddrinfo, gai_strerror, getnameinfo are declared.
6756         * modules/netdb (Depends-on): Add warn-on-use.
6757         (Makefile.am): Include warn-on-use.h in netdb.h.
6758
6759 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
6760
6761         build: avoid "make check" failure without .git/ directory
6762         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
6763         there is no .git/ directory.
6764
6765 2010-04-25  Bruno Haible  <bruno@clisp.org>
6766
6767         ptsname: Fix misuse of ttyname_r.
6768         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
6769         of errno.
6770
6771 2010-04-25  Bruno Haible  <bruno@clisp.org>
6772
6773         ttyname_r: Make it work on Solaris 10.
6774         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
6775         if the system function has the POSIX declaration. Test whether the
6776         function fails if the buffer is less than 128 bytes large.
6777         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
6778         system's ttyname_r function. Provide a reasonably large buffer.
6779         * modules/ttyname_r (Depends-on): Add extensions.
6780         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
6781
6782 2010-04-25  Bruno Haible  <bruno@clisp.org>
6783
6784         Use the 'extensions' module for some more functions on Solaris.
6785         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
6786         module.
6787         * doc/posix-functions/ctime_r.texi: Likewise.
6788         * doc/posix-functions/getgrgid_r.texi: Likewise.
6789         * doc/posix-functions/getgrnam_r.texi: Likewise.
6790         * doc/posix-functions/getpwnam_r.texi: Likewise.
6791         * doc/posix-functions/getpwuid_r.texi: Likewise.
6792         * doc/posix-functions/readdir_r.texi: Likewise.
6793         * doc/posix-functions/sigwait.texi: Likewise.
6794         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
6795         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
6796
6797 2010-04-25  Bruno Haible  <bruno@clisp.org>
6798
6799         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
6800         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
6801         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
6802         * lib/ttyname_r.c: Include <limits.h>.
6803         (ttyname_r): Define using the system's ttyname_r function, if it exists
6804         and not on Solaris.
6805         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
6806         set.
6807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
6808         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
6809         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
6810         Reported by Simon Josefsson.
6811
6812 2010-04-25  Bruno Haible  <bruno@clisp.org>
6813
6814         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
6815         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
6816         * doc/posix-functions/ctime_r.texi: Likewise.
6817         * doc/posix-functions/getgrgid_r.texi: Likewise.
6818         * doc/posix-functions/getgrnam_r.texi: Likewise.
6819         * doc/posix-functions/getlogin_r.texi: Likewise.
6820         * doc/posix-functions/getpwnam_r.texi: Likewise.
6821         * doc/posix-functions/getpwuid_r.texi: Likewise.
6822         * doc/posix-functions/readdir_r.texi: Likewise.
6823         * doc/posix-functions/sigwait.texi: Likewise.
6824         * doc/posix-functions/ttyname_r.texi: Likewise.
6825         Reported by Simon Josefsson.
6826
6827 2010-04-25  Bruno Haible  <bruno@clisp.org>
6828
6829         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
6830         * gnulib-tool (func_usage): Document that --with-*-tests options apply
6831         also to --create-testdir.
6832         (func_acceptable): Don't consider the status of *-tests modules here.
6833         (func_modules_transitive_closure): Consider it here, before including a
6834         test module.
6835         (func_import, func_create_testdir): Set inc_all_direct_tests,
6836         inc_all_indirect_tests.
6837         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
6838         --create-testdir and --create-megatestdir.
6839
6840 2010-04-25  Bruno Haible  <bruno@clisp.org>
6841
6842         gnulib-tool: Add --without-*-tests options.
6843         * gnulib-tool (func_usage): Document the --without-*-tests options.
6844         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
6845         excl_unportable_tests): New variables.
6846         Fail if they are specified with --import or --update.
6847         (func_acceptable): Respect the excl_*_tests variables.
6848         (func_import): Set the excl_*_tests variables to empty.
6849
6850 2010-04-25  Simon Josefsson  <simon@josefsson.org>
6851             Bruno Haible  <bruno@clisp.org>
6852
6853         Work around a MacOS X 10.4 bug with openpty.
6854         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
6855         * tests/test-openpty.c (main): Close the master side explicitly.
6856
6857 2010-04-25  Bruno Haible  <bruno@clisp.org>
6858
6859         strnlen: Fix a C++ test error on MacOS X and Solaris.
6860         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
6861         the function is not declared.
6862         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
6863         Simon Josefsson.
6864
6865 2010-04-24  Bruno Haible  <bruno@clisp.org>
6866
6867         Avoid a gcc warning.
6868         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
6869         of correct type for %08lx directive.
6870         Reported by Eric Blake.
6871
6872 2010-04-24  Bruno Haible  <bruno@clisp.org>
6873
6874         vasnprintf: Correct errno value in case of out-of-memory.
6875         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
6876         or sprintf. Use the errno value from SNPRINTF or sprintf.
6877         Reported by Ian Beckwith <ianb@erislabs.net>.
6878
6879 2010-04-24  Bruno Haible  <bruno@clisp.org>
6880
6881         ansi-c++-opt: Find correct compiler when cross-compiling.
6882         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
6883         AC_CHECK_PROGS.
6884         Reported by Simon Josefsson.
6885
6886 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
6887
6888         vc-list-files: Add support for subversion
6889         * build-aux/vc-list-files: Use "svn list" to generate the list of
6890         files controlled by subversion.
6891
6892 2010-04-23  Jim Meyering  <meyering@redhat.com>
6893
6894         vc-list-files tests: convert to use init.sh
6895         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
6896         path_prepend_.
6897         Use Exit, not exit.
6898         Use skip_ rather than open coding it.
6899         Remove trap set-up and compare definitions.
6900         * tests/test-vc-list-files-git.sh: Likewise.
6901         * modules/vc-list-files-tests (Files): Add tests/init.sh.
6902
6903 2010-04-22  Simon Josefsson  <simon@josefsson.org>
6904
6905         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
6906         backup files.
6907
6908 2010-04-21  Simon Josefsson  <simon@josefsson.org>
6909
6910         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
6911
6912 2010-04-20  Eric Blake  <eblake@redhat.com>
6913
6914         tests: be robust to ignored SIGPIPE
6915         * tests/test-select-in.sh: Consume all output.
6916         * tests/test-lseek.sh: Check correct exit status, while avoiding
6917         EPIPE.
6918
6919 2010-04-20  Simon Josefsson  <simon@josefsson.org>
6920             Bruno Haible  <bruno@clisp.org>
6921
6922         visibility: Don't use -fvisibility if it leads to a warning.
6923         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
6924         yes, don't pretend that visibility works if it leads to a warning.
6925         Reported by Mike Gran <spk121@yahoo.com>.
6926
6927 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
6928
6929         * build-aux/bootstrap: Use "git -h" for testing for supported options
6930         instead of "git --help".  The short-form option only shows a summary,
6931         and doesn't layout the full man page.  Grep for the full option name
6932         in the summary, too.
6933
6934 2010-04-19  Bruno Haible  <bruno@clisp.org>
6935
6936         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
6937         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
6938         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
6939         mention of RELOCATABLE_STRIP.
6940         Reported by Sylvain Beucler <beuc@beuc.net>.
6941
6942 2010-04-19  Bruno Haible  <bruno@clisp.org>
6943
6944         * lib/diffseq.h: Fix typo in comment.
6945         Reported by Eric Blake.
6946
6947 2010-04-19  Bruno Haible  <bruno@clisp.org>
6948
6949         ioctl: Move autoconf macro to a .m4 file.
6950         * m4/ioctl.m4: New file, extracted from modules/ioctl.
6951         * modules/ioctl (Files): Add it.
6952         (configure.ac): Simply invoke gl_FUNC_IOCTL.
6953         Reported by Ian Beckwith <ianb@erislabs.net>.
6954
6955 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
6956             Bruno Haible  <bruno@clisp.org>
6957
6958         diffseq: Accommodate use-case with abstract arrays.
6959         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
6960         is not defined.
6961         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
6962         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
6963
6964 2010-04-18  Bruno Haible  <bruno@clisp.org>
6965
6966         * doc/posix-headers/stdbool.texi: More precise wording.
6967
6968 2010-04-17  Jim Meyering  <meyering@redhat.com>
6969
6970         maint.mk: use gnu-style indentation in an embedded perl script
6971         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
6972         Rename variable: s/two/last_two_bytes/
6973
6974 2010-04-16  Eric Blake  <eblake@redhat.com>
6975
6976         test-stdbool: skip test that fails with Solaris CC
6977         * tests/test-stdbool.c (f): Skip test that causes compilation
6978         error under buggy C++ compiler.
6979         * lib/stdbool.in.h: Document the limitation.
6980         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
6981
6982         setenv: allow compilation with C++
6983         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
6984         register keyword.
6985
6986         stdint: allow test to pass with C++
6987         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
6988
6989         getopt: allow compilation with C++
6990         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
6991         struct.
6992         * lib/getopt.c (_getopt_internal_r): Use correct type.
6993         Reported by Dagobert Michelson, via Joel E. Denny.
6994
6995 2010-04-16  Bruno Haible  <bruno@clisp.org>
6996
6997         Override netdb.h always.
6998         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
6999         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
7000         Reported by Ludovic Courtès <ludo@gnu.org>.
7001
7002 2010-04-15  Bruno Haible  <bruno@clisp.org>
7003
7004         openpty: Fix mistake from 2010-03-21.
7005         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
7006         Reported by Simon Josefsson.
7007
7008 2010-04-15  Eric Blake  <eblake@redhat.com>
7009
7010         test-forkpty: fix expected signature
7011         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
7012         Reported by Simon Josefsson.
7013
7014 2010-04-15  Jim Meyering  <meyering@redhat.com>
7015
7016         maint.mk: texinfo_suffix_re_: correct the default regexp
7017         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
7018
7019         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
7020         make it configurable via texinfo_suffix_re_.
7021
7022 2010-04-14  Eric Blake  <eblake@redhat.com>
7023
7024         strtok_r: relax license to LGPLv2+
7025         * modules/strtok_r (License): Relax license.
7026         Reported by Matthias Bolte.
7027
7028 2010-04-14  Simon Josefsson  <simon@josefsson.org>
7029
7030         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
7031         version 1.4.4 by default instead of requiring the libgcrypt
7032         version used during build.  This makes it possible to use the
7033         application with older but still binary compatible libgcrypt
7034         versions.
7035
7036 2010-04-13  Eric Blake  <eblake@redhat.com>
7037
7038         getopt-gnu: match recent glibc fixes and posix ruling
7039         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
7040         '+' handling, when requesting extensions.
7041         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
7042         'W;' handling.
7043         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
7044         * doc/posix-functions/getopt.texi (getopt): Document this.
7045         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7046         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7047         Likewise.
7048
7049         getopt: merge bug fixes from glibc
7050         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
7051         diagnostics.  Honor '+:' correctly.  Reject ';'.
7052
7053         getopt-posix: detect MacOS bug
7054         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
7055         optind when missing a required argument.
7056         * doc/posix-functions/getopt.texi (getopt): Document the bug.
7057         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
7058         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
7059         Likewise.
7060
7061         getopt-posix: avoid spurious failure on Solaris
7062         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
7063         an indicator that setting optind=1 is sufficient for reset.
7064
7065         getopt-posix: avoid spurious failure on FreeBSD
7066         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
7067         in POSIX mode, since the m4 test uses it.
7068
7069         gnulib-tool: silence warning on BSD sh
7070         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
7071
7072 2010-04-13  Jim Meyering  <meyering@redhat.com>
7073
7074         doc: users.txt: GNU patch now uses gnulib
7075         * users.txt: Add patch.
7076
7077 2010-04-12  Jim Meyering  <meyering@redhat.com>
7078
7079         maint.mk: generate more concise timing data for syntax-check rules
7080         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
7081         " done" from each line that reports a syntax-check test duration.
7082
7083 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
7084
7085         git-version-gen: use "git update-index..." rather than "git status"
7086         * build-aux/git-version-gen: Use git update-index --refresh, not
7087         "git status".  With some versions of git, "git status" would fail
7088         to update the index and result in an unwarranted "-dirty" suffix.
7089
7090 2010-04-11  Jim Meyering  <meyering@redhat.com>
7091
7092         openat: correct formatting (no semantic change)
7093         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
7094         Suggested by Bruno Haible.
7095
7096 2010-04-11  Bruno Haible  <bruno@clisp.org>
7097
7098         Stricter declaration checking in testdirs.
7099         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7100         If for_tests is true, augment AM_CPPFLAGS to define
7101         GNULIB_STRICT_CHECKING.
7102         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
7103         GNULIB_STRICT_CHECKING is defined, verify that the function is
7104         declared.
7105
7106 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
7107             Bruno Haible  <bruno@clisp.org>
7108
7109         libunistring: Improve configure output.
7110         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
7111         Don't say "consider installing GNU libunistring" when checking again
7112         with libiconv.
7113
7114 2010-04-11  Bruno Haible  <bruno@clisp.org>
7115
7116         libunistring: Correct value of $LTLIBUNISTRING.
7117         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
7118         correct the value of $LTLIBUNISTRING.
7119
7120 2010-04-11  Bruno Haible  <bruno@clisp.org>
7121
7122         havelib: Add static libraries to LIBS in the right order.
7123         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
7124         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
7125
7126 2010-04-11  Bruno Haible  <bruno@clisp.org>
7127
7128         libunistring: Detect libunistring also when it depends on libiconv.
7129         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
7130         the second AC_LIB_HAVE_LINKFLAGS invocation.
7131
7132 2010-04-11  James Youngman  <jay@gnu.org>
7133
7134         close-stream: declare local scalars to be "const"
7135         * lib/close-stream.c (close_stream): Make boolean variables const
7136         to document the fact that we set but do not change them.
7137
7138 2010-04-11  Bruno Haible  <bruno@clisp.org>
7139
7140         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
7141
7142 2010-04-11  Jim Meyering  <meyering@redhat.com>
7143
7144         maint.mk: don't include dist-check.mk
7145         * top/maint.mk: Remove bogus include directive.
7146
7147         maint.mk: improve empty-line-at-EOF check
7148         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
7149         solution, rather than tail+Perl-based one.  The latter would read
7150         a few kilobytes from the end of each file, and did not handle empty
7151         files properly.
7152
7153         maint.mk: print the elapsed time for each syntax-check rule
7154         * top/maint.mk (sc_m_rules_): Save start time in a file.
7155         (sc_z_rules_): New rules: remove temp file and print elapsed time.
7156         (local-check): Interpose the .z rules
7157
7158 2010-04-11  Jim Meyering  <meyering@redhat.com>
7159
7160         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
7161         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
7162         empty file with one that ends in an empty line.
7163
7164 2010-04-10  Bruno Haible  <bruno@clisp.org>
7165
7166         mkdir: Make it work on mingw64.
7167         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
7168         * lib/mkdir.c: Update comment.
7169         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
7170
7171 2010-04-10  Bruno Haible  <bruno@clisp.org>
7172
7173         Don't override improved macro from newer autoconf.
7174         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
7175         autoconf >= 2.62.
7176         Reported by Joel E. Denny <jdenny@clemson.edu>.
7177
7178 2010-04-10  Jim Meyering  <meyering@redhat.com>
7179
7180         maint.mk: new syntax-check rule: prohibit empty lines at end of file
7181         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
7182
7183         maint.mk: correct a diagnostic
7184         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
7185         in diagnostic; now use $prohibit.
7186
7187 2010-04-10  Bruno Haible  <address@hidden>
7188
7189         fchownat: Fix a C++ test error on Solaris 8.
7190         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
7191         the function does not exist.
7192
7193 2010-04-10  Bruno Haible  <bruno@clisp.org>
7194
7195         vasnprintf: Add more tests.
7196         * tests/test-vasnprintf-posix.c: Include <errno.h>.
7197         (test_function): Test converting an invalid wide string.
7198
7199         vasnprintf: Correct handling of unconvertible wide string arguments.
7200         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
7201         VASNPRINTF.
7202         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
7203         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
7204         smaller than the expected maximum need for the directive. Set errno to
7205         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
7206         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
7207         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
7208         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
7209         * modules/vasnprintf (Files): Add m4/printf.m4.
7210         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7211
7212 2010-04-10  Bruno Haible  <bruno@clisp.org>
7213
7214         vasnprintf: Fix crash in %ls directive.
7215         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
7216         string is passed as argument to %ls, with no precision and no width.
7217         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7218
7219 2010-04-10  Bruno Haible  <bruno@clisp.org>
7220
7221         vasnprintf: Fix multiple test failures on mingw.
7222         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
7223         _snprintf, or snwprintf, not _snwprintf.
7224
7225 2010-04-10  Bruno Haible  <bruno@clisp.org>
7226
7227         write: Fix a C++ test error on mingw.
7228         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
7229
7230 2010-04-10  Bruno Haible  <bruno@clisp.org>
7231
7232         vasnprintf test: Reduce code duplication.
7233         * tests/test-vasnprintf.c (test_function): New function, extracted from
7234         test_vasnprintf.
7235         (test_vasnprintf, test_asnprintf): Invoke it.
7236
7237 2010-04-10  Bruno Haible  <bruno@clisp.org>
7238
7239         strnlen: Fix warning in C++ mode on MacOS X.
7240         * lib/string.in.h (strnlen): Use the modern idiom.
7241         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
7242         defining strnlen as a macro already in <config.h>.
7243         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7244         REPLACE_STRNLEN.
7245         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
7246         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7247
7248 2010-04-08  James Youngman  <jay@gnu.org>
7249
7250         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
7251         the example.
7252
7253 2010-04-09  Jim Meyering  <meyering@redhat.com>
7254
7255         maint.mk: print better diagnostic when there is no $(_hv_file)
7256         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
7257         announce that when $(_hv_file) (aka help-version) does not exist.
7258
7259         init.sh: run tr in the "C" locale to avoid multibyte interpretation
7260         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
7261         not try to interpret its random input bytes.  Jarno Rajahalme reported
7262         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
7263         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
7264         (mktempd_): Likewise, just in case.
7265
7266         ftruncate: add two years to projected module removal date: 2012
7267         * m4/ftruncate.m4: Adjust comments.
7268
7269         ftruncate: mark module as obsolete; even MinGW provides it, now
7270         * modules/ftruncate (Status): Obsolete.
7271         (Notice): Say that.
7272         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
7273         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
7274
7275 2010-04-08  Bruno Haible  <bruno@clisp.org>
7276
7277         Fix side effects from tests-related modules.
7278         * modules/dprintf-posix (Comment): New section.
7279         * modules/fprintf-posix (Comment): Likewise.
7280         * modules/obstack-printf-posix (Comment): Likewise.
7281         * modules/printf-posix (Comment): Likewise.
7282         * modules/snprintf-posix (Comment): Likewise.
7283         * modules/sprintf-posix (Comment): Likewise.
7284         * modules/vasnprintf-posix (Comment): Likewise.
7285         * modules/vasprintf-posix (Comment): Likewise.
7286         * modules/vdprintf-posix (Comment): Likewise.
7287         * modules/vfprintf-posix (Comment): Likewise.
7288         * modules/vprintf-posix (Comment): Likewise.
7289         * modules/vsnprintf-posix (Comment): Likewise.
7290         * modules/vsprintf-posix (Comment): Likewise.
7291         * modules/xprintf-posix (Comment): Likewise.
7292         * modules/xvasprintf-posix (Comment): Likewise.
7293         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
7294         * modules/floorf-tests (Depends-on): Likewise.
7295         * modules/round-tests (Depends-on): Likewise.
7296         * modules/roundf-tests (Depends-on): Likewise.
7297         * modules/trunc-tests (Depends-on): Likewise.
7298         * modules/truncf-tests (Depends-on): Likewise.
7299         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
7300         'fprintf-posix' module is not present.
7301         * tests/test-floorf2.c (check): Likewise.
7302         * tests/test-trunc2.c (check): Likewise.
7303         * tests/test-truncf2.c (check): Likewise.
7304         * tests/test-round2.c (equal): Likewise.
7305         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
7306
7307 2010-04-07  Karl Berry  <karl@gnu.org>
7308
7309         * config/srclist.txt,
7310         * config/srclistvars.sh,
7311         * config/srclist-update: doc fixes.
7312
7313 2010-04-07  Jim Meyering  <meyering@redhat.com>
7314
7315         maint.mk: add a PATH crosschecking syntax-check rule
7316         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
7317         Useful if you use a test like the one in help-version (coreutils,
7318         diffutils, grep, gzip) that ensures $(VERSION) matches what is
7319         printed by prog --version.
7320
7321 2010-04-06  Bruno Haible  <bruno@clisp.org>
7322
7323         Fix link error on mingw.
7324         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
7325         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
7326
7327 2010-04-06  Bruno Haible  <bruno@clisp.org>
7328
7329         Assume rmdir exists.
7330         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
7331
7332 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
7333
7334         doc: update users.txt
7335         * users.txt: Add gcal.
7336
7337 2010-04-06  Jim Meyering  <meyering@redhat.com>
7338
7339         init.sh: simply unset TMPDIR rather than risking env -i
7340         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
7341         although it probably works fine on all Unix-based systems, some
7342         systems (Cygwin?) cannot tolerate a totally cleared environment.
7343         Suggestion from Eric Blake.
7344
7345 2010-04-06  Jim Meyering  <meyering@redhat.com>
7346
7347         init.sh: portability fix: use env's POSIX-specified -i option not -u
7348         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
7349         than unportable env -u.  Solaris 5.11's env lacks support for -u.
7350
7351 2010-04-05  Bruno Haible  <bruno@clisp.org>
7352
7353         btowc: Work around Cygwin 1.7.2 bug.
7354         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
7355         does not map NUL to 0.
7356         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
7357
7358 2010-04-05  Bruno Haible  <bruno@clisp.org>
7359
7360         Make the multithread modules work on Cygwin 1.7.2.
7361         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
7362         imported symbols can be declared weak, so that it returns "no" on
7363         Cygwin 1.7.2.
7364
7365 2010-04-05  Bruno Haible  <bruno@clisp.org>
7366
7367         Use the module 'strncat'.
7368         * modules/unistr/u8-strncat (Depends-on): Add strncat.
7369
7370         Tests for module 'strncat'.
7371         * modules/strncat-tests: New file.
7372         * tests/test-strncat.c: New file.
7373
7374         New module 'strncat'.
7375         * lib/string.in.h (strncat): New declaration.
7376         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
7377         * m4/strncat.m4: New file, based on m4/memchr.m4.
7378         * modules/strncat: New file.
7379         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
7380         is declared.
7381         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
7382         REPLACE_STRNCAT.
7383         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
7384         REPLACE_STRNCAT.
7385         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
7386         module.
7387         * tests/test-string-c++.cc: Check signature of strncat.
7388
7389 2010-04-05  Jim Meyering  <meyering@redhat.com>
7390
7391         xstrtoumax-tests: convert to use init.sh
7392         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
7393         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7394         Use Exit, not exit.
7395         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7396
7397         xstrtoimax-tests: convert to use init.sh
7398         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
7399         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7400         Use Exit, not exit.
7401         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7402
7403 2010-04-05  Bruno Haible  <bruno@clisp.org>
7404
7405         sys_socket: Avoid #define replacements in C++ mode.
7406         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
7407         warning to the function if possible, rather than #defining the symbol
7408         to a dysfunctional alias.
7409
7410 2010-04-05  Bruno Haible  <bruno@clisp.org>
7411
7412         fseeko: Fix C++ test error on mingw.
7413         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
7414         gl_FUNC_FSEEKO.
7415         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
7416         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
7417         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
7418         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
7419
7420 2010-04-05  Bruno Haible  <bruno@clisp.org>
7421
7422         duplocale: Improve test output.
7423         * tests/test-duplocale.c (main): Print reason for skipped test.
7424
7425 2010-04-05  Bruno Haible  <bruno@clisp.org>
7426
7427         Assume rmdir exists.
7428         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
7429         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
7430
7431 2010-04-05  Bruno Haible  <bruno@clisp.org>
7432
7433         Fix link error on Solaris 8 with cc.
7434         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
7435
7436 2010-04-05  Bruno Haible  <bruno@clisp.org>
7437
7438         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
7439         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
7440
7441 2010-04-05  Bruno Haible  <bruno@clisp.org>
7442
7443         vasprintf: Update documentation.
7444         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
7445
7446 2010-04-05  Bruno Haible  <bruno@clisp.org>
7447
7448         ptsname: Improve test.
7449         * tests/test-ptsname.c (main): Also try the various master names of BSD
7450         systems.
7451
7452 2010-04-05  Bruno Haible  <bruno@clisp.org>
7453
7454         memchr: Avoid a possible C++ test error.
7455         * lib/string.in.h (memchr): Provide declaration if function is missing.
7456         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
7457         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
7458         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
7459         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
7460
7461 2010-04-05  Bruno Haible  <bruno@clisp.org>
7462
7463         strtok_r: Improve idiom.
7464         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
7465         AC_LIBOBJ is used.
7466
7467 2010-04-05  Bruno Haible  <bruno@clisp.org>
7468
7469         strdup: Improve idiom.
7470         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
7471         AC_LIBOBJ is used.
7472         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
7473         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
7474         when AC_LIBOBJ is used.
7475
7476 2010-04-05  Bruno Haible  <bruno@clisp.org>
7477
7478         mbsinit, mbrtowc, wcrtomb: Improve idioms.
7479         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
7480         don't set REPLACE_MBSINIT to 1.
7481         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
7482         don't set REPLACE_MBRTOWC to 1.
7483         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
7484         exist, don't set REPLACE_MBSRTOWCS to 1.
7485         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
7486         exist, don't set REPLACE_MBSNRTOWCS to 1.
7487         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
7488         don't set REPLACE_WCRTOMB to 1.
7489         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
7490         exist, don't set REPLACE_WCSRTOMBS to 1.
7491         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
7492         exist, don't set REPLACE_WCSNRTOMBS to 1.
7493
7494 2010-04-05  Bruno Haible  <bruno@clisp.org>
7495
7496         ldexpl: Improve idiom.
7497         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
7498         make sure to set HAVE_DECL_LDEXPL to 0.
7499
7500 2010-04-05  Jim Meyering  <meyering@redhat.com>
7501
7502         xstrtol-tests: convert to use init.sh
7503         * modules/xstrtol-tests (Files): Add tests/init.sh.
7504         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7505         Use Exit, not exit.
7506         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7507
7508         atexit-tests: convert to use init.sh
7509         * modules/atexit-tests (Files): Add tests/init.sh.
7510         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
7511         Use Exit, not exit.
7512         Remove uses of $EXEEXT and "./" to run a program in the current dir.
7513
7514         init.sh: fix typo
7515         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
7516
7517         init.sh: make it easier for a test script to write to the tty, ...
7518         when using automake's parallel-tests mode.
7519         * tests/init.sh (stderr_fileno_): Define overridable variable.
7520         (warn_): New function, to use it.
7521         (fail_, skip_, framework_failure_): Use warn_.
7522
7523 2010-04-04  Bruno Haible  <bruno@clisp.org>
7524
7525         btowc: Avoid warning.
7526         * lib/btowc.c: Include <stdlib.h>.
7527         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
7528
7529 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
7530             Bruno Haible  <bruno@clisp.org>
7531
7532         wchar: Port to NetBSD 1.5.
7533         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
7534         * lib/wctype.in.h (WEOF): Likewise.
7535
7536 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
7537             Bruno Haible  <bruno@clisp.org>
7538
7539         Port extended stdio to NetBSD 1.5.
7540         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
7541         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
7542         older.
7543
7544 2010-04-04  Bruno Haible  <bruno@clisp.org>
7545
7546         string: Remove unused substitution.
7547         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
7548         HAVE_DECL_STRERROR.
7549         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
7550
7551 2010-04-04  Bruno Haible  <bruno@clisp.org>
7552
7553         strtod: Avoid a possible C++ test error.
7554         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
7555         set REPLACE_STRTOD.
7556
7557 2010-04-04  Bruno Haible  <bruno@clisp.org>
7558
7559         strerror: Update documentation.
7560         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
7561
7562 2010-04-04  Bruno Haible  <bruno@clisp.org>
7563
7564         stdio: Fix some C++ test errors on Solaris 8 with GCC.
7565         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
7566         _GL_CXXALIAS_SYS_CAST.
7567
7568 2010-04-04  Bruno Haible  <bruno@clisp.org>
7569
7570         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
7571         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
7572         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
7573         REPLACE_FREXPL to 1.
7574         * doc/posix-functions/frexpl.texi: Update documentation.
7575
7576 2010-04-04  Bruno Haible  <bruno@clisp.org>
7577
7578         math: Fix some C++ test errors on Solaris 8 and Cygwin.
7579         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
7580
7581 2010-04-04  Bruno Haible  <bruno@clisp.org>
7582
7583         Implement nanosleep for native Windows.
7584         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
7585
7586 2010-04-04  Bruno Haible  <bruno@clisp.org>
7587
7588         math: Fix some C++ test errors on Solaris 8.
7589         * lib/math.in.h (truncf, trunc): Use simpler idiom.
7590
7591 2010-04-04  Bruno Haible  <bruno@clisp.org>
7592
7593         math: Fix some C++ test errors on Cygwin.
7594         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
7595         truncl): Provide declaration if the system does not have it.
7596         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
7597         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
7598         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
7599         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
7600         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
7601         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
7602         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
7603         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
7604         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
7605         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
7606         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
7607         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
7608         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
7609         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
7610         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
7611         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
7612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
7613         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
7614         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
7615         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
7616         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
7617         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
7618
7619 2010-04-04  Bruno Haible  <bruno@clisp.org>
7620
7621         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
7622         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
7623         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
7624         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
7625         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
7626         * m4/isinf.m4 (gl_ISINF): Likewise.
7627         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
7628
7629 2010-04-04  Bruno Haible  <bruno@clisp.org>
7630
7631         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
7632         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
7633
7634 2010-04-04  Bruno Haible  <bruno@clisp.org>
7635
7636         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
7637         * modules/tmpfile (configure.ac): Update.
7638
7639         tmpfile: Fix C++ test error on mingw.
7640         * lib/stdio.in.h (tmpfile): New declaration.
7641         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
7642         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
7643         * modules/tmpfile (Depends-on): Add stdio.
7644         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
7645         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
7646         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
7647         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
7648         REPLACE_TMPFILE.
7649         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
7650
7651 2010-04-04  Bruno Haible  <bruno@clisp.org>
7652
7653         ioctl: Fix C++ test error on mingw.
7654         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
7655         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
7656         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
7657
7658 2010-04-03  Bruno Haible  <bruno@clisp.org>
7659
7660         wcwidth: Fix C++ test error on mingw.
7661         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
7662         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
7663         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
7664
7665 2010-04-03  Bruno Haible  <bruno@clisp.org>
7666
7667         nanosleep: Fix C++ test error on mingw.
7668         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
7669         * lib/time.in.h (nanosleep): Use modern idiom.
7670         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
7671         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
7672         REPLACE_NANOSLEEP to 1.
7673         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
7674         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
7675
7676 2010-04-03  Bruno Haible  <bruno@clisp.org>
7677
7678         strptime: Fix C++ test error on mingw.
7679         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
7680         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
7681         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
7682         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
7683         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
7684         not REPLACE_STRPTIME.
7685         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
7686         REPLACE_STRPTIME.
7687
7688 2010-04-03  Bruno Haible  <bruno@clisp.org>
7689
7690         timegm: Fix C++ test error on mingw.
7691         * lib/time.in.h (timegm): Use modern idiom.
7692         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
7693         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
7694         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
7695         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
7696
7697 2010-04-03  Bruno Haible  <bruno@clisp.org>
7698
7699         timegm: Assume declaration if function exists.
7700         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
7701         if it exists. Don't clobber ac_cv_func_timegm.
7702
7703 2010-04-03  Bruno Haible  <bruno@clisp.org>
7704
7705         time_r: Fix C++ test error on mingw.
7706         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
7707         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
7708         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
7709         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
7710         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
7711
7712 2010-04-03  Bruno Haible  <bruno@clisp.org>
7713
7714         time_r: Minor updates.
7715         * modules/time_r (Description): Mention the provided functions.
7716         * lib/time_r.c: Don't include <string.h>.
7717         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
7718         * doc/posix-functions/localtime_r.texi: Likewise.
7719
7720 2010-04-03  Bruno Haible  <bruno@clisp.org>
7721
7722         time: Fix regression introduced on 2010-03-08.
7723         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
7724         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
7725
7726 2010-04-03  Jim Meyering  <meyering@redhat.com>
7727
7728         maint.mk: don't silently disable project-specific syntax-check rules
7729         * top/maint.mk (_prohibit_regexp): Define, to help people realize
7730         that they need to convert their project-specific syntax-check rules
7731         to use the new _sc_search_regexp.
7732
7733 2010-04-03  Bruno Haible  <bruno@clisp.org>
7734
7735         fchdir: Fix regression introduced on 2010-03-08.
7736         * lib/unistd.in.h (fchdir): Fix declaration.
7737         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
7738         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
7739         REPLACE_FCHDIR.
7740         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
7741         REPLACE_FCHDIR.
7742
7743 2010-04-03  Bruno Haible  <bruno@clisp.org>
7744
7745         getpagesize: Fix C++ test error on mingw.
7746         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
7747         system does not declare the function.
7748         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
7749         declared.
7750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7751         HAVE_DECL_GETPAGESIZE.
7752         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
7753
7754 2010-04-03  Bruno Haible  <bruno@clisp.org>
7755
7756         stdio: Make C++ tests work on mingw.
7757         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
7758         does not declare the function.
7759
7760 2010-04-03  Bruno Haible  <bruno@clisp.org>
7761
7762         ftello: Fix C++ test error on mingw.
7763         * lib/stdio.in.h (ftello): Use modern idiom.
7764         * lib/ftello.c (ftello): Renamed from rpl_ftello.
7765         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
7766         is missing and that it needs to be replaced.
7767         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
7768         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
7769         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
7770
7771 2010-04-03  Bruno Haible  <bruno@clisp.org>
7772
7773         fseeko: Fix C++ test error on mingw.
7774         * lib/stdio.in.h (fseeko): Use modern idiom.
7775         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
7776         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
7777         is missing and that it needs to be replaced.
7778         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
7779         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
7780         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
7781
7782 2010-04-03  Bruno Haible  <bruno@clisp.org>
7783
7784         mkstemp: Fix C++ test error on mingw.
7785         * lib/stdlib.in.h (mkstemp): Use modern idiom.
7786         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
7787         function is missing and that it needs to be replaced.
7788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
7789         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
7790
7791 2010-04-03  Bruno Haible  <bruno@clisp.org>
7792
7793         stpncpy: Fix C++ test error on mingw.
7794         * lib/string.in.h (stpncpy): Use modern idiom.
7795         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
7796         function is missing and that it needs to be replaced.
7797         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
7798         REPLACE_STPNCPY.
7799         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
7800
7801 2010-04-03  Bruno Haible  <bruno@clisp.org>
7802
7803         sys_stat: Fix C++ test error on mingw.
7804         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
7805         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
7806
7807 2010-04-03  Bruno Haible  <bruno@clisp.org>
7808
7809         pty: Update doc.
7810         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
7811
7812 2010-04-03  Bruno Haible  <bruno@clisp.org>
7813
7814         unistd: Fix C++ test error on mingw.
7815         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
7816
7817 2010-04-03  Bruno Haible  <bruno@clisp.org>
7818
7819         Update doc regarding mingw.
7820         * doc/glibc-functions/openpty.texi: Update regarding mingw.
7821         * doc/glibc-functions/login_tty.texi: Likewise.
7822         * doc/glibc-functions/forkpty.texi: Likewise.
7823
7824 2010-04-03  Bruno Haible  <bruno@clisp.org>
7825
7826         stdlib: Avoid compilation failure of c-strtold on mingw.
7827         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
7828
7829 2010-04-03  Bruno Haible  <bruno@clisp.org>
7830
7831         locale: Make C++ tests work on Cygwin and mingw.
7832         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
7833         cannot provide the function.
7834         Reported by Simon Josefsson.
7835
7836 2010-04-03  Bruno Haible  <bruno@clisp.org>
7837
7838         localename: Port to MacOS X 10.6.
7839         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
7840         memory layout of the locales in MacOS X 10.6 as well.
7841         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
7842
7843 2010-04-02  Bruno Haible  <bruno@clisp.org>
7844
7845         gnulib-tool: Ensure that long-running tests are executed last.
7846         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
7847         running tests after the one for the other tests.
7848
7849 2010-04-02  Bruno Haible  <bruno@clisp.org>
7850
7851         gnulib-tool: Ensure the tests in the main directory are executed first.
7852         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
7853         start with the current directory.
7854
7855 2010-04-02  Bruno Haible  <bruno@clisp.org>
7856
7857         Tests for module 'havelib', moved here from GNU gettext.
7858         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
7859         modifications.
7860         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
7861         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
7862         with modifications.
7863         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
7864         modifications.
7865         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
7866         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
7867         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
7868         with modifications.
7869         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
7870         with modifications.
7871         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
7872         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
7873         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
7874         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
7875         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
7876         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
7877         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
7878         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
7879         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
7880         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
7881         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
7882         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
7883         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
7884         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
7885         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
7886         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
7887         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
7888         with modifications.
7889         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
7890         with modifications.
7891         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
7892         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
7893         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
7894         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
7895         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
7896         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
7897         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
7898         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
7899         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
7900         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
7901         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
7902         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
7903         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
7904         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
7905         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
7906         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
7907         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
7908         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
7909         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
7910         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
7911         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
7912         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
7913         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
7914         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
7915         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
7916         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
7917         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
7918         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
7919         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
7920         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
7921         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
7922         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
7923         * tests/havelib/rpathx/rpathx.c: New file, from
7924         gettext/autoconf-lib-link.
7925         * tests/havelib/rpathx/Makefile.am: New file, from
7926         gettext/autoconf-lib-link.
7927         * tests/havelib/rpathx/configure.ac: New file, from
7928         gettext/autoconf-lib-link with modifications.
7929         * tests/havelib/rpathy/rpathy.c: New file, from
7930         gettext/autoconf-lib-link.
7931         * tests/havelib/rpathy/Makefile.am: New file, from
7932         gettext/autoconf-lib-link.
7933         * tests/havelib/rpathy/configure.ac: New file, from
7934         gettext/autoconf-lib-link with modifications.
7935         * tests/havelib/rpathz/rpathz.c: New file, from
7936         gettext/autoconf-lib-link.
7937         * tests/havelib/rpathz/Makefile.am: New file, from
7938         gettext/autoconf-lib-link.
7939         * tests/havelib/rpathz/configure.ac: New file, from
7940         gettext/autoconf-lib-link with modifications.
7941         * tests/havelib/rpathlx/usex.c: New file, from
7942         gettext/autoconf-lib-link.
7943         * tests/havelib/rpathlx/Makefile.am: New file, from
7944         gettext/autoconf-lib-link.
7945         * tests/havelib/rpathlx/configure.ac: New file, from
7946         gettext/autoconf-lib-link with modifications.
7947         * tests/havelib/rpathly/usey.c: New file, from
7948         gettext/autoconf-lib-link.
7949         * tests/havelib/rpathly/Makefile.am: New file, from
7950         gettext/autoconf-lib-link.
7951         * tests/havelib/rpathly/configure.ac: New file, from
7952         gettext/autoconf-lib-link with modifications.
7953         * tests/havelib/rpathlz/usez.c: New file, from
7954         gettext/autoconf-lib-link.
7955         * tests/havelib/rpathlz/Makefile.am: New file, from
7956         gettext/autoconf-lib-link.
7957         * tests/havelib/rpathlz/configure.ac: New file, from
7958         gettext/autoconf-lib-link with modifications.
7959         * tests/havelib/rpathlyx/usey.c: New file, from
7960         gettext/autoconf-lib-link.
7961         * tests/havelib/rpathlyx/Makefile.am: New file, from
7962         gettext/autoconf-lib-link.
7963         * tests/havelib/rpathlyx/configure.ac: New file, from
7964         gettext/autoconf-lib-link with modifications.
7965         * tests/havelib/rpathlzyx/usez.c: New file, from
7966         gettext/autoconf-lib-link.
7967         * tests/havelib/rpathlzyx/Makefile.am: New file, from
7968         gettext/autoconf-lib-link.
7969         * tests/havelib/rpathlzyx/configure.ac: New file, from
7970         gettext/autoconf-lib-link with modifications.
7971         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
7972         with modifications.
7973
7974 2010-04-02  Bruno Haible  <bruno@clisp.org>
7975
7976         gnulib-tool: Create distributed built sources also for the tests.
7977         * gnulib-tool (func_create_testdir): Also generate distributed built
7978         sources in the tests directory.
7979
7980 2010-04-02  Bruno Haible  <bruno@clisp.org>
7981
7982         gnulib-tool: Obey user's environment variables.
7983         * gnulib-tool (func_create_testdir): When creating built sources,
7984         respect the environment variables for autoconf, automake, etc. given by
7985         the user.
7986
7987 2010-04-02  Bruno Haible  <bruno@clisp.org>
7988
7989         gnulib-tool: Provide the value of --m4-base to modules.
7990         * gnulib-tool (func_import, func_create_testdir): Emit a definition
7991         of gl_m4_base.
7992
7993 2010-04-02  Eric Blake  <eblake@redhat.com>
7994
7995         maint.mk: fix some fallout
7996         * NEWS: Document the incompatible change, and its effect on cfg.mk.
7997         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
7998
7999 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
8000
8001         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
8002         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
8003         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
8004         (sc_cast_of_x_alloc_return_value): Likewise.
8005         (sc_cast_of_alloca_return_value): Likewise.
8006         (sc_space_tab): Likewise.
8007         (sc_prohibit_atoi_atof): Likewise.
8008         (sc_prohibit_magic_number_exit): Likewise.
8009         (sc_error_exit_success): Likewise.
8010         (sc_file_system): Likewise.
8011         (sc_prohibit_have_config_h): Likewise.
8012         (sc_require_config_h): Likewise.
8013         (sc_prohibit_HAVE_MBRTOWC): Likewise.
8014         (sc_obsolete_symbols): Likewise.
8015         (sc_changelog): Likewise.
8016         (sc_program_name): Likewise.
8017         (sc_the_the): Likewise.
8018         (sc_trailing_blank): Likewise.
8019         (sc_two_space_separator_in_usage): Likewise.
8020         (sc_useless_cpp_parens): Likewise.
8021         (sc_GPL_version): Likewise.
8022         (sc_GFDL_version): Likewise.
8023         (sc_texinfo_acronym): Likewise.
8024         (sc_prohibit_cvs_keyword): Likewise.
8025         (sc_prohibit_stat_st_blocks): Likewise.
8026         (sc_prohibit_S_IS_definition): Likewise.
8027         (sc_redundant_const): Likewise.
8028         (sc_makefile_TAB_only_indentation): Likewise.
8029         (sc_m4_quote_check): Likewise.
8030         (sc_makefile_path_separator_check): Likewise.
8031         (sc_copyright_check): Likewise.
8032         (sc_Wundef_boolean): Likewise.
8033         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
8034
8035         maint.mk: match 0 or more whitespace-before-function-call '('
8036         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
8037         that have zero or two-and-more spaces between the function name
8038         and the open parenthesis.
8039         (sc_error_message_warn_fatal): Likewise.
8040         (sc_error_message_uppercase): Likewise.
8041         (sc_error_message_period): Likewise.
8042
8043 2010-03-31  Eric Blake  <eblake@redhat.com>
8044
8045         maint.mk: check for [ as well as test
8046         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
8047         Based on a libvirt report by Matthias Bolte.
8048
8049         gnumakefile: don't squelch _version output
8050         * top/GNUmakefile (_version): Create one-shot dependency rather
8051         than using $(shell) when version must be regenerated.
8052         (_autoreconf): Run verbosely, by default.
8053
8054         sys_time: avoid compiler warnings
8055         * lib/sys_time.in.h (includes): Ensure gcc pragma is
8056         unconditional, fixing regression from 2010-03-29.
8057         Reported by Simon Josefsson.
8058
8059 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
8060
8061         maint.mk: s/_header_without_use/_sc_header_without_use/
8062         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
8063         (sc_prohibit_assert_without_use): Use the new name.
8064         (sc_prohibit_close_stream_without_use): Likewise.
8065         (sc_prohibit_getopt_without_use): Likewise.
8066         (sc_prohibit_quotearg_without_use): Likewise.
8067         (sc_prohibit_quote_without_use): Likewise.
8068         (sc_prohibit_long_options_without_use): Likewise.
8069         (sc_prohibit_inttostr_without_use): Likewise.
8070         (sc_prohibit_ignore_value_without_use): Likewise.
8071         (sc_prohibit_error_without_use): Likewise.
8072         (sc_prohibit_xalloc_without_use): Likewise.
8073         (sc_prohibit_hash_without_use): Likewise.
8074         (sc_prohibit_hash_pjw_without_use): Likewise.
8075         (sc_prohibit_safe_read_without_use): Likewise.
8076         (sc_prohibit_argmatch_without_use): Likewise.
8077         (sc_prohibit_canonicalize_without_use): Likewise.
8078         (sc_prohibit_root_dev_ino_without_use): Likewise.
8079         (sc_prohibit_openat_without_use): Likewise.
8080         (sc_prohibit_c_ctype_without_use): Likewise.
8081         (sc_prohibit_signal_without_use): Likewise.
8082         (sc_prohibit_intprops_without_use): Likewise.
8083
8084 2010-03-30  Eric Blake  <eblake@redhat.com>
8085
8086         maint: improve module indicators
8087         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
8088         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
8089         columns, and avoid extra macro expansion.
8090
8091         fdopendir: work around FreeBSD bug
8092         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
8093         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
8094         * modules/dirent (Makefile.am): Substitute it.
8095         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
8096         declaration.
8097         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
8098         fix.
8099         Reported by Christian Weisgerber <naddy@mips.inka.de>.
8100
8101 2010-03-29  Bruno Haible  <bruno@clisp.org>
8102
8103         Emit #pragma system_header after the inclusion guard, not before.
8104         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
8105         guard that spans the entire file, not before. This enables an
8106         optimization in GCC's preprocessor.
8107         * lib/ctype.in.h: Likewise.
8108         * lib/dirent.in.h: Likewise.
8109         * lib/errno.in.h: Likewise.
8110         * lib/float.in.h: Likewise.
8111         * lib/getopt.in.h: Likewise.
8112         * lib/iconv.in.h: Likewise.
8113         * lib/langinfo.in.h: Likewise.
8114         * lib/locale.in.h: Likewise.
8115         * lib/math.in.h: Likewise.
8116         * lib/netdb.in.h: Likewise.
8117         * lib/netinet_in.in.h: Likewise.
8118         * lib/pty.in.h: Likewise.
8119         * lib/sched.in.h: Likewise.
8120         * lib/se-selinux.in.h: Likewise.
8121         * lib/search.in.h: Likewise.
8122         * lib/spawn.in.h: Likewise.
8123         * lib/stdarg.in.h: Likewise.
8124         * lib/stdint.in.h: Likewise.
8125         * lib/string.in.h: Likewise.
8126         * lib/strings.in.h: Likewise.
8127         * lib/sys_file.in.h: Likewise.
8128         * lib/sys_ioctl.in.h: Likewise.
8129         * lib/sys_time.in.h: Likewise.
8130         * lib/sys_times.in.h: Likewise.
8131         * lib/sys_utsname.in.h: Likewise.
8132         * lib/sys_wait.in.h: Likewise.
8133         * lib/sysexits.in.h: Likewise.
8134         * lib/wctype.in.h: Likewise.
8135
8136 2010-03-28  James Youngman  <jay@gnu.org>
8137
8138         save-cwd: don't leak a file descriptor when the caller execs.
8139         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
8140         saved file descriptor.
8141         * modules/save-cwd (Depends-on): Depend on cloexec.
8142
8143 2010-03-29  Bruno Haible  <bruno@clisp.org>
8144
8145         Remove vestiges of fts-lgpl module.
8146         * lib/fts_.h: Assume GNULIB_FTS is 1.
8147         * lib/fts.c: Likewise.
8148         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
8149
8150 2010-03-28  Bruno Haible  <bruno@clisp.org>
8151
8152         Fix definition of tests witness macro.
8153         * gnulib-tool (func_import): Fix definition of witness macro.
8154
8155 2010-03-28  Bruno Haible  <bruno@clisp.org>
8156
8157         Fix ioctl's protoype on glibc systems.
8158         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
8159         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
8160         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
8161         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
8162         signature. If not, arrange to replace the ioctl function.
8163         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
8164         REPLACE_IOCTL.
8165         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
8166         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
8167         Reported by Ludovic Courtès <ludo@gnu.org>.
8168
8169 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
8170
8171         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
8172         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
8173         made it so grep -r --include=GLOB* ... did not work.
8174
8175 2010-03-26  Jim Meyering  <meyering@redhat.com>
8176             Eric Blake  <eblake@redhat.com>
8177
8178         maint.mk: prohibit use of test's -o and -a operators
8179         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
8180
8181 2010-03-28  Bruno Haible  <bruno@clisp.org>
8182
8183         Remove unused GNULIB_XYZ macro definitions.
8184         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
8185         invocation.
8186
8187 2010-03-28  Bruno Haible  <bruno@clisp.org>
8188
8189         Mark privileged tests modules.
8190         * modules/idpriv-drop-tests (Status): New section.
8191         * modules/idpriv-droptemp-tests (Status): New section.
8192
8193 2010-03-28  Bruno Haible  <bruno@clisp.org>
8194
8195         Split C++ tests into separate tests modules.
8196         * modules/dirent-c++-tests: New file, extracted from
8197         modules/dirent-tests.
8198         * modules/dirent-tests: Depend on it.
8199         * modules/fcntl-h-c++-tests: New file, extracted from
8200         modules/fcntl-h-tests.
8201         * modules/fcntl-h-tests: Depend on it.
8202         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
8203         * modules/glob-tests: Depend on it.
8204         * modules/iconv-h-c++-tests: New file, extracted from
8205         modules/iconv-h-tests.
8206         * modules/iconv-h-tests: Depend on it.
8207         * modules/langinfo-c++-tests: New file, extracted from
8208         modules/langinfo-tests.
8209         * modules/langinfo-tests: Depend on it.
8210         * modules/locale-c++-tests: New file, extracted from
8211         modules/locale-tests.
8212         * modules/locale-tests: Depend on it.
8213         * modules/math-c++-tests: New file, extracted from modules/math-tests.
8214         * modules/math-tests: Depend on it.
8215         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
8216         * modules/pty-tests: Depend on it.
8217         * modules/search-c++-tests: New file, extracted from
8218         modules/search-tests.
8219         * modules/search-tests: Depend on it.
8220         * modules/signal-c++-tests: New file, extracted from
8221         modules/signal-tests.
8222         * modules/signal-tests: Depend on it.
8223         * modules/spawn-c++-tests: New file, extracted from
8224         modules/spawn-tests.
8225         * modules/spawn-tests: Depend on it.
8226         * modules/stdio-c++-tests: New file, extracted from
8227         modules/stdio-tests.
8228         * modules/stdio-tests: Depend on it.
8229         * modules/stdlib-c++-tests: New file, extracted from
8230         modules/stdlib-tests.
8231         * modules/stdlib-tests: Depend on it.
8232         * modules/string-c++-tests: New file, extracted from
8233         modules/string-tests.
8234         * modules/string-tests: Depend on it.
8235         * modules/sys_ioctl-c++-tests: New file, extracted from
8236         modules/sys_ioctl-tests.
8237         * modules/sys_ioctl-tests: Depend on it.
8238         * modules/sys_select-c++-tests: New file, extracted from
8239         modules/sys_select-tests.
8240         * modules/sys_select-tests: Depend on it.
8241         * modules/sys_socket-c++-tests: New file, extracted from
8242         modules/sys_socket-tests.
8243         * modules/sys_socket-tests: Depend on it.
8244         * modules/sys_stat-c++-tests: New file, extracted from
8245         modules/sys_stat-tests.
8246         * modules/sys_stat-tests: Depend on it.
8247         * modules/sys_time-c++-tests: New file, extracted from
8248         modules/sys_time-tests.
8249         * modules/sys_time-tests: Depend on it.
8250         * modules/time-c++-tests: New file, extracted from modules/time-tests.
8251         * modules/time-tests: Depend on it.
8252         * modules/unistd-c++-tests: New file, extracted from
8253         modules/unistd-tests.
8254         * modules/unistd-tests: Depend on it.
8255         * modules/wchar-c++-tests: New file, extracted from
8256         modules/wchar-tests.
8257         * modules/wchar-tests: Depend on it.
8258         * modules/wctype-c++-tests: New file, extracted from
8259         modules/wctype-tests.
8260         * modules/wctype-tests: Depend on it.
8261         Reported by Simon Josefsson.
8262
8263 2010-03-28  Bruno Haible  <bruno@clisp.org>
8264
8265         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
8266         * gnulib-tool (func_exists_module): New function, extracted from
8267         func_verify_module.
8268         (func_verify_module): Use it.
8269         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
8270         'foo' only if 'foo' exists.
8271         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
8272         module.
8273
8274 2010-03-28  Bruno Haible  <bruno@clisp.org>
8275
8276         gnulib-tool: Add support for special categories of tests.
8277         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
8278         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
8279         (func_usage): Document them.
8280         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
8281         inc_unportable_tests, inc_all_tests): New variables.
8282         (func_acceptable): Consider these variables.
8283         (func_modules_transitive_closure): Make it work when the 'Status' field
8284         consists of multiple words.
8285         (func_import): Store and restore the values of inc_cxx_tests,
8286         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
8287         inc_all_tests in gnulib-comp.m4.
8288         (func_create_testdir): Set inc_all_tests to true.
8289         * doc/gnulib.texi (Extra tests modules): New section.
8290         Suggested by Jim Meyering.
8291
8292 2010-03-28  Bruno Haible  <bruno@clisp.org>
8293
8294         ansi-c++-opt: Allow turning off the C++ build by default.
8295         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
8296         gl_CXX_CHOICE_DEFAULT_NO is defined.
8297         Requested by Eric Blake.
8298
8299 2010-03-28  Bruno Haible  <bruno@clisp.org>
8300
8301         unistd: Avoid #define replacements in C++ mode.
8302         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8303         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8304         setsockopt, shutdown, select): In C++, attach a warning to the function
8305         if possible, rather than #defining the symbol to a dysfunctional alias.
8306         Reported by John W. Eaton <jwe@gnu.org>.
8307
8308 2010-03-28  Bruno Haible  <bruno@clisp.org>
8309
8310         Fix link errors on mingw.
8311         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
8312         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
8313         $(LIBSOCKET).
8314         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
8315         $(LIBSOCKET).
8316
8317 2010-03-28  Bruno Haible  <bruno@clisp.org>
8318             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8319
8320         lib-ignore: Determine different options for different compilers.
8321         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
8322         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
8323         Add comments.
8324         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
8325         * NEWS: Mention the change.
8326
8327 2010-03-27  Bruno Haible  <bruno@clisp.org>
8328
8329         Remove unused GNULIB_XYZ macro definitions.
8330         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
8331         * modules/fseek (configure.ac): Likewise.
8332         * modules/ioctl (configure.ac): Likewise.
8333         * modules/open (configure.ac): Likewise.
8334         * modules/stdlib-safer (configure.ac): Likewise.
8335
8336 2010-03-27  Bruno Haible  <bruno@clisp.org>
8337
8338         Add a remark about certain modules.
8339         * modules/malloc (Comment): New section.
8340         * modules/realloc (Comment): Likewise.
8341         * modules/sigpipe (Comment): Likewise.
8342
8343 2010-03-27  Bruno Haible  <bruno@clisp.org>
8344
8345         Resolve conflict between the two kinds of module indicators.
8346         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
8347         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
8348         * modules/canonicalize (configure.ac): Invoke
8349         gl_MODULE_INDICATOR_FOR_TESTS.
8350         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
8351         GNULIB_XYZ.
8352         * tests/test-dirent-c++.cc: Likewise.
8353         * tests/test-dirent-safer.c: Likewise.
8354         * tests/test-dup2.c: Likewise.
8355         * tests/test-fchdir.c: Likewise.
8356         * tests/test-fcntl-h-c++.cc: Likewise.
8357         * tests/test-getopt.c: Likewise.
8358         * tests/test-getopt.h: Likewise.
8359         * tests/test-langinfo-c++.cc: Likewise.
8360         * tests/test-locale-c++.cc: Likewise.
8361         * tests/test-math-c++.cc: Likewise.
8362         * tests/test-pty-c++.cc: Likewise.
8363         * tests/test-search-c++.cc: Likewise.
8364         * tests/test-signal-c++.cc: Likewise.
8365         * tests/test-spawn-c++.cc: Likewise.
8366         * tests/test-stdio-c++.cc: Likewise.
8367         * tests/test-stdlib-c++.cc: Likewise.
8368         * tests/test-string-c++.cc: Likewise.
8369         * tests/test-sys_ioctl-c++.cc: Likewise.
8370         * tests/test-sys_select-c++.cc: Likewise.
8371         * tests/test-sys_socket-c++.cc: Likewise.
8372         * tests/test-sys_stat-c++.cc: Likewise.
8373         * tests/test-sys_time-c++.cc: Likewise.
8374         * tests/test-time-c++.cc: Likewise.
8375         * tests/test-unistd-c++.cc: Likewise.
8376         * tests/test-wchar-c++.cc: Likewise.
8377         * tests/uninorm/test-u8-nfc.c: Likewise.
8378         * tests/uninorm/test-u8-nfd.c: Likewise.
8379         * tests/uninorm/test-u8-nfkc.c: Likewise.
8380         * tests/uninorm/test-u8-nfkd.c: Likewise.
8381         * tests/uninorm/test-u16-nfc.c: Likewise.
8382         * tests/uninorm/test-u16-nfd.c: Likewise.
8383         * tests/uninorm/test-u16-nfkc.c: Likewise.
8384         * tests/uninorm/test-u16-nfkd.c: Likewise.
8385         * tests/uninorm/test-u32-nfc.c: Likewise.
8386         * tests/uninorm/test-u32-nfc-big.c: Likewise.
8387         * tests/uninorm/test-u32-nfd.c: Likewise.
8388         * tests/uninorm/test-u32-nfd-big.c: Likewise.
8389         * tests/uninorm/test-u32-nfkc.c: Likewise.
8390         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
8391         * tests/uninorm/test-u32-nfkd.c: Likewise.
8392         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
8393         * tests/uninorm/test-u32-normalize-big.c: Likewise.
8394
8395 2010-03-27  Bruno Haible  <bruno@clisp.org>
8396
8397         Distinguish two kinds of module indicators.
8398         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
8399         gl_MODULE_INDICATOR.
8400         (gl_MODULE_INDICATOR): New macro.
8401         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
8402         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
8403         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
8404         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
8405         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
8406         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
8407         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
8408         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
8409         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
8410         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
8411         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
8412         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
8413         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
8414         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
8415         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
8416         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
8417         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
8418         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
8419         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
8420         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
8421         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
8422         * modules/cloexec (configure.ac): Likewise.
8423         * modules/getopt-gnu (configure.ac): Likewise.
8424         * modules/uninorm/u8-normalize (configure.ac): Likewise.
8425         * modules/uninorm/u16-normalize (configure.ac): Likewise.
8426         * modules/uninorm/u32-normalize (configure.ac): Likewise.
8427         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
8428
8429 2010-03-27  Bruno Haible  <bruno@clisp.org>
8430
8431         New module description field 'Comment'.
8432         * gnulib-tool: New option --extract-comment.
8433         (func_usage): Document it.
8434         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
8435         (func_get_comment): New function.
8436         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
8437
8438 2010-03-27  Bruno Haible  <bruno@clisp.org>
8439
8440         Addendum to 2010-02-07 commit.
8441         * gnulib-tool (func_usage): Document --extract-applicability option.
8442
8443 2010-03-27  Bruno Haible  <bruno@clisp.org>
8444
8445         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
8446         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
8447         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
8448         rather than link errors.
8449
8450 2010-03-27  Bruno Haible  <bruno@clisp.org>
8451
8452         Avoid side effects from tests-related modules on the compilation of lib.
8453         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
8454         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
8455         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
8456         parameter. Emit into AM_CPPFLAGS a definition of the designated C
8457         macro.
8458         (func_import): Define a witness macro. Assign it a value that depends
8459         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
8460         tests-related modules.
8461         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
8462         Reported by Jim Meyering.
8463
8464 2010-03-27  Bruno Haible  <bruno@clisp.org>
8465
8466         Factorize common .m4 code.
8467         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
8468         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
8469         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
8470         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
8471         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
8472         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
8473         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
8474         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
8475         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
8476         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
8477         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
8478         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
8479         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
8480         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
8481         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
8482         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
8483         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
8484         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
8485         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
8486         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
8487         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
8488         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
8489         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
8490         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
8491         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
8492         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
8493         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
8494         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
8495         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
8496         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
8497         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
8498         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
8499
8500 2010-03-27  Bruno Haible  <bruno@clisp.org>
8501
8502         Fix a compilation error on Cygwin with g++ >= 4.3.
8503         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
8504         if it is undefined or if we alias it to chmod.
8505         (lstat): Don't warn about the use of this function if it is undefined
8506         or if we alias it to stat.
8507         Reported by Simon Josefsson.
8508
8509 2010-03-27  Bruno Haible  <bruno@clisp.org>
8510
8511         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
8512         * modules/getlogin (configure.ac): Update.
8513
8514         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
8515         * modules/getlogin_r (configure.ac): Update.
8516
8517         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
8518         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
8519         * modules/inet_ntop (configure.ac): Update.
8520
8521         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
8522         * modules/inet_pton (configure.ac): Update.
8523
8524         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
8525         * modules/mbslen (configure.ac): Update.
8526
8527         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
8528         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
8529         * modules/forkpty (configure.ac): Update.
8530         * modules/openpty (configure.ac): Update.
8531
8532 2010-03-26  Simon Josefsson  <simon@josefsson.org>
8533
8534         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
8535         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
8536
8537 2010-03-25  Eric Blake  <eblake@redhat.com>
8538
8539         maint: use pragma consistently across replacement headers
8540         * lib/ctype.in.h (system_header): Hoist for consistent placement.
8541         * lib/dirent.in.h (system_header): Likewise.
8542         * lib/errno.in.h (system_header): Likewise.
8543         * lib/float.in.h (system_header): Likewise.
8544         * lib/getopt.in.h (system_header): Likewise.
8545         * lib/iconv.in.h (system_header): Likewise.
8546         * lib/inttypes.in.h (system_header): Likewise.
8547         * lib/langinfo.in.h (system_header): Likewise.
8548         * lib/locale.in.h (system_header): Likewise.
8549         * lib/math.in.h (system_header): Likewise.
8550         * lib/netdb.in.h (system_header): Likewise.
8551         * lib/netinet_in.in.h (system_header): Likewise.
8552         * lib/pty.in.h (system_header): Likewise.
8553         * lib/sched.in.h (system_header): Likewise.
8554         * lib/se-selinux.in.h (system_header): Likewise.
8555         * lib/search.in.h (system_header): Likewise.
8556         * lib/spawn.in.h (system_header): Likewise.
8557         * lib/stdarg.in.h (system_header): Likewise.
8558         * lib/stdint.in.h (system_header): Likewise.
8559         * lib/string.in.h (system_header): Likewise.
8560         * lib/strings.in.h (system_header): Likewise.
8561         * lib/sys_file.in.h (system_header): Likewise.
8562         * lib/sys_ioctl.in.h (system_header): Likewise.
8563         * lib/sys_socket.in.h (system_header): Likewise.
8564         * lib/sys_times.in.h (system_header): Likewise.
8565         * lib/sys_utsname.in.h (system_header): Likewise.
8566         * lib/sys_wait.in.h (system_header): Likewise.
8567         * lib/sysexits.in.h (system_header): Likewise.
8568         * lib/unistd.in.h (system_header): Likewise.
8569         * lib/wctype.in.h (system_header): Likewise.
8570
8571         arpa/inet: fix mingw compilation warning
8572         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
8573         Reported by Matthew Bolte.
8574
8575 2010-03-25  Bruno Haible  <bruno@clisp.org>
8576
8577         Avoid collision between gnulib wrapper and libintl wrapper.
8578         * lib/printf.c (printf): Don't define if a printf wrapper is already
8579         defined in intl/printf.c.
8580         Reported by Michel Boaventura <michel@michelboaventura.com>.
8581
8582 2010-03-25  Bruno Haible  <bruno@clisp.org>
8583
8584         Use ANSI C.
8585         * lib/readutmp.h (getutent): Provide ANSI C prototype.
8586
8587 2010-03-25  Bruno Haible  <bruno@clisp.org>
8588
8589         Minor formatting changes.
8590         * lib/acosl.c: Insert space before function argument list.
8591         * lib/argz.c: Likewise.
8592         * lib/asinl.c: Likewise.
8593         * lib/expl.c: Likewise.
8594         * lib/gen-uni-tables.c: Likewise.
8595         * lib/gettext.h: Likewise.
8596         * lib/glthread/lock.h: Likewise.
8597         * lib/tanl.c: Likewise.
8598         * lib/uniname/uniname.c: Likewise.
8599         * tests/test-idpriv-drop.c: Likewise.
8600         * tests/test-idpriv-droptemp.c: Likewise.
8601         * tests/test-lock.c: Likewise.
8602         * tests/test-tls.c: Likewise.
8603         * lib/argp-help.c: Insert space before function-like macro argument
8604         list.
8605         * lib/memcmp.c: Likewise.
8606         * tests/test-base64.c: Likewise.
8607         * lib/localename.c: Insert space before sizeof's argument list.
8608         * lib/safe-alloc.h: Likewise.
8609         * lib/file-set.h: Insert space before macro argument list.
8610         * tests/test-argp.c: Likewise.
8611         * lib/argp-namefrob.h: Insert space before function parameter list.
8612         * lib/getaddrinfo.c: Likewise.
8613         * lib/netdb.in.h: Likewise.
8614         * lib/parse-duration.h: Likewise.
8615         * lib/parse-duration.c: Likewise.
8616         * lib/poll.c: Likewise.
8617         * lib/select.c: Likewise.
8618         * lib/trim.h: Likewise.
8619         * tests/test-usleep.c: Likewise.
8620         * lib/ldexpl.c: Insert space before function parameter list and before
8621         function argument list.
8622         * lib/logl.c: Likewise.
8623         * lib/sqrtl.c: Likewise.
8624         * lib/trim.c: Likewise.
8625         * lib/cosl.c: Use GNU style indentation. Insert space before function
8626         argument list.
8627         * lib/sinl.c: Likewise.
8628         * lib/tsearch.c: Insert space after 'for'.
8629         Reported by Jim Meyering.
8630
8631 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
8632
8633         * maint.mk (sc_Wundef_boolean): Check for the presence of the
8634         config header before grepping, as it's not present before
8635         autoreconf/configure are run.  Reported by Simon Josefsson.
8636
8637 2010-03-23  Bruno Haible  <bruno@clisp.org>
8638
8639         pt_chown: Make it work with automake < 1.11.
8640         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
8641         Reported by Simon Josefsson.
8642
8643 2010-03-23  Bruno Haible  <bruno@clisp.org>
8644
8645         pt_chown: Don't depend on GPLed modules.
8646         * lib/pt_chown.c: Don't include idpriv.h.
8647         (main): Don't drop privileges.
8648         * modules/pt_chown (Depends-on): Remove idpriv-drop.
8649         Reported by Simon Josefsson.
8650
8651 2010-03-24  Simon Josefsson  <simon@josefsson.org>
8652
8653         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
8654         suggestions from karl@freefriends.org (Karl Berry).
8655
8656 2010-03-22  Eric Blake  <eblake@redhat.com>
8657
8658         gethostname: further tweaks
8659         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
8660         are overriding gethostname.
8661         Suggested by Bruno Haible.
8662
8663 2010-03-21  Bruno Haible  <bruno@clisp.org>
8664
8665         Fix comments.
8666         * lib/forkpty.c (rpl_forkpty): Fix comment.
8667         * lib/openpty.c (rpl_openpty): Likewise.
8668         Reported by Eric Blake.
8669
8670 2010-03-22  Eric Blake  <eblake@redhat.com>
8671
8672         gethostname: fix build on mingw
8673         * lib/unistd.in.h (includes): Work around fact that mingw
8674         <winsock2.h> re-includes <unistd.h>, by avoiding any
8675         redeclarations if we are being included by <winsock2.h>.
8676         Reported by Matthias Bolte.
8677
8678 2010-03-21  Bruno Haible  <bruno@clisp.org>
8679
8680         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
8681         * lib/forkpty.c (forkpty): New replacement function, from glibc with
8682         modifications.
8683         * lib/pty.in.h (forkpty): Update declaration. Add comments.
8684         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
8685         provide the replacement.
8686         * modules/forkpty (Depends-on): Add openpty, login_tty.
8687         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
8688         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
8689         * doc/glibc-functions/forkpty.texi: More supported platforms.
8690         * config/srclist.txt: Add forkpty.c (commented).
8691
8692 2010-03-21  Bruno Haible  <bruno@clisp.org>
8693
8694         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
8695         (Makefile.am): Verify that PTY_LIB is defined.
8696
8697         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
8698
8699 2010-03-21  Bruno Haible  <bruno@clisp.org>
8700
8701         Tests for module 'login_tty'.
8702         * modules/login_tty-tests: New file.
8703         * tests/test-login_tty.c: New file.
8704
8705         New module 'login_tty'.
8706         * lib/login_tty.c: New file.
8707         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
8708         * modules/login_tty: New file.
8709         * doc/glibc-functions/login_tty.texi: Mention the new module.
8710
8711 2010-03-21  Bruno Haible  <bruno@clisp.org>
8712
8713         login_tty: Documentation.
8714         * doc/glibc-functions/login_tty.texi: New file.
8715         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
8716
8717 2010-03-21  Bruno Haible  <bruno@clisp.org>
8718
8719         pty: Consistent macro naming.
8720         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
8721         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
8722         * modules/pty (configure.ac): Update.
8723
8724 2010-03-21  Bruno Haible  <bruno@clisp.org>
8725
8726         Tests for openpty: Make stricter.
8727         * tests/test-openpty.c (main): Add test of canonical processing and
8728         erase.
8729         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
8730
8731         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
8732         * lib/openpty.c (openpty): New replacement function.
8733         * lib/pty.in.h: Include <termios.h>.
8734         (openpty): Update declaration. Add comments.
8735         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
8736         is not declared, arrange to provide the replacement. Check for _getpty
8737         and posix_openpt.
8738         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
8739         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
8740         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
8741         * modules/pty-tests (test_pty_c___LDADD): New variable.
8742         * doc/glibc-functions/openpty.texi: More supported platforms.
8743
8744 2010-03-21  Bruno Haible  <bruno@clisp.org>
8745
8746         setenv: Tweaks.
8747         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
8748         the test program.
8749         * doc/posix-functions/setenv.texi: Update platforms list.
8750
8751 2010-03-21  Bruno Haible  <bruno@clisp.org>
8752
8753         New module 'unlockpt'.
8754         * lib/unlockpt.c: New file, from glibc with modifications.
8755         * m4/unlockpt.m4: New file.
8756         * modules/unlockpt: New file.
8757         * lib/stdlib.in.h (unlockpt): New declaration.
8758         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
8759         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
8760         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
8761         HAVE_UNLOCKPT.
8762         * doc/posix-functions/unlockpt.texi: Mention the new module.
8763         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
8764         * config/srclist.txt: Add unlockpt.c (commented).
8765
8766 2010-03-21  Jim Meyering  <meyering@redhat.com>
8767
8768         maint.mk: prohibit inclusion of "intprops.h" without use
8769         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
8770
8771 2010-03-21  Bruno Haible  <bruno@clisp.org>
8772
8773         New module 'grantpt'.
8774         * lib/grantpt.c: New file, from glibc with modifications.
8775         * m4/grantpt.m4: New file.
8776         * modules/grantpt: New file.
8777         * lib/stdlib.in.h (grantpt): New declaration.
8778         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
8779         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
8780         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
8781         HAVE_GRANTPT.
8782         * doc/posix-functions/grantpt.texi: Mention the new module.
8783         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
8784         * config/srclist.txt: Add grantpt.c (commented).
8785
8786 2010-03-21  Bruno Haible  <bruno@clisp.org>
8787
8788         New module 'pt_chown'.
8789         * lib/pt_chown.c: New file, from glibc with modifications.
8790         * lib/pty-private.h: New file, from glibc with modifications.
8791         * modules/pt_chown: New file.
8792         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
8793
8794 2010-03-21  Bruno Haible  <bruno@clisp.org>
8795
8796         Tests for module 'ptsname'.
8797         * modules/ptsname-tests: New file.
8798         * tests/test-ptsname.c: New file.
8799
8800         New module 'ptsname'.
8801         * lib/ptsname.c: New file, from glibc with modifications.
8802         * m4/ptsname.m4: New file.
8803         * modules/ptsname: New file.
8804         * lib/stdlib.in.h (ptsname): New declaration.
8805         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
8806         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
8807         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
8808         HAVE_PTSNAME.
8809         * doc/posix-functions/ptsname.texi: Mention the new module.
8810         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
8811         * config/srclist.txt: Add ptsname.c (commented).
8812
8813 2010-03-21  Bruno Haible  <bruno@clisp.org>
8814
8815         Tests for module 'ttyname_r'.
8816         * modules/ttyname_r-tests: New file.
8817         * tests/test-ttyname_r.c: New file.
8818
8819         New module 'ttyname_r'.
8820         * lib/ttyname_r.c: New file.
8821         * m4/ttyname_r.m4: New file.
8822         * modules/ttyname_r: New file.
8823         * lib/unistd.in.h (ttyname_r): New declaration.
8824         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
8825         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
8826         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
8827         HAVE_TTYNAME_R.
8828         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
8829         * doc/posix-functions/ttyname_r.texi: Mention the new module.
8830
8831 2010-03-20  Bruno Haible  <bruno@clisp.org>
8832
8833         signal: Undefine macro definitions in C++ mode.
8834         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
8835         sigfillset): Undefine macro definitions from the system header in C++
8836         mode.
8837         Reported by John W. Eaton <jwe@gnu.org>.
8838
8839 2010-03-20  Bruno Haible  <bruno@clisp.org>
8840
8841         Ensure no #include statements inside extern "C" { ... }.
8842         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
8843         contain #include statements.
8844         * lib/time.in.h: Likewise.
8845
8846 2010-03-20  Bruno Haible  <bruno@clisp.org>
8847
8848         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
8849         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
8850         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
8851         Reported by John W. Eaton <jwe@gnu.org>.
8852
8853 2010-03-20  Bruno Haible  <bruno@clisp.org>
8854
8855         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
8856         Reported by Jim Meyering.
8857
8858 2010-03-20  Bruno Haible  <bruno@clisp.org>
8859
8860         pipe: Set errno upon failure.
8861         * lib/pipe.h: Specify that when -1 is returned, errno is set.
8862         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
8863         errno value in error message.
8864
8865 2010-03-20  Bruno Haible  <bruno@clisp.org>
8866             Jim Meyering  <meyering@redhat.com>
8867
8868         lchown: Avoid "unused variable" warning.
8869         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
8870
8871 2010-03-20  Bruno Haible  <bruno@clisp.org>
8872
8873         Work around unlink() bug on MacOS X 10.5.6.
8874         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
8875         attempting to unlink a parent directory.
8876         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
8877         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
8878         activate for the replacement function.
8879         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
8880
8881 2010-03-20  Bruno Haible  <bruno@clisp.org>
8882
8883         Fix link errors on Solaris 8.
8884         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
8885         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
8886
8887 2010-03-19  Jim Meyering  <meyering@redhat.com>
8888
8889         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
8890         The _LIBC implementation of build_range_exp correctly honors the
8891         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
8892         However, the non-_LIBC implementation would ignore that syntax-bit
8893         flag and return REG_ERANGE unconditionally.
8894         This change makes it honor that flag.
8895         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
8896         Make two pointer parameters "const".
8897         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
8898         (parse_bracket_exp): Update caller.
8899
8900         regex.m4: correct the reversed range endpoint ([b-a]) test
8901         * m4/regex.m4: When requiring that [b-a] evoke failure,
8902         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
8903         test pass once again for x86-based systems.
8904
8905 2010-03-19  Bruno Haible  <bruno@clisp.org>
8906
8907         scandir: Fix link error on Solaris 8.
8908         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
8909         macros.
8910
8911 2010-03-19  Bruno Haible  <bruno@clisp.org>
8912
8913         getusershell: Fix documentation.
8914         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
8915         module.
8916         * doc/glibc-functions/setusershell.texi: Likewise.
8917
8918         getusershell: Provide declaration, missing on Solaris 9.
8919         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
8920         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
8921         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
8922         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
8923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8924         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
8925         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
8926         HAVE_GETUSERSHELL.
8927         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
8928
8929 2010-03-19  Bruno Haible  <bruno@clisp.org>
8930
8931         wctype: Provide iswblank function.
8932         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
8933         exists and is fine.
8934         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
8935         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
8936         * tests/test-wctype.c (main): Re-enable the iswblank tests.
8937         * doc/posix-functions/iswblank.texi: Update.
8938
8939 2010-03-19  Bruno Haible  <bruno@clisp.org>
8940
8941         Tests of module 'pty' in C++ mode.
8942         * modules/pty-tests: New file.
8943         * tests/test-pty-c++.cc: New file.
8944         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
8945
8946 2010-03-19  Eric Blake  <eblake@redhat.com>
8947
8948         logb: fix documentation
8949         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
8950         1.5 declaration bug.
8951
8952         forkpty, openpty: prefer glibc's const-safe prototype
8953         * lib/forkpty.c (rpl_forkpty): New file.
8954         * lib/openpty.c (rpl_openpty): Likewise.
8955         * modules/forkpty (Files): Distribute it.
8956         * modules/openpty (Files): Likewise.
8957         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
8958         check...
8959         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
8960         replacement for for non-const BSD signature.
8961         * modules/pty (Makefile.am): Substitute witnesses.
8962         * lib/pty.in.h (forkpty, openpty): Declare replacements.
8963         * tests/test-forkpty.c: Update signature check.
8964         * tests/test-openpty.c: Likewise.
8965         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
8966         * doc/glibc-functions/openpty.texi (openpty): Likewise.
8967
8968         forkpty, openpty: split functions into new modules
8969         * modules/pty (Makefile.am): Substitute new witnesses.
8970         (Libraries): Move library detection...
8971         * modules/forkpty: ...into new module.
8972         * modules/openpty: Another new module.
8973         * modules/pty-tests: Rename and split...
8974         * modules/forkpty-tests: ...to this...
8975         * modules/openpty-tests: ...and this.
8976         * tests/test-pty.c: Rename and split...
8977         * tests/test-forkpty.c: ...to this...
8978         * tests/test-openpty.c: ...and this.
8979         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
8980         (gl_PTY): Split library searching...
8981         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
8982         (gl_FORKPTY, gl_OPENPTY): New macros.
8983         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
8984         * NEWS: Mention the split.
8985         * MODULES.html.sh (Misc): Document the modules.
8986         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
8987         * doc/glibc-functions/openpty.texi (openpty): Likewise.
8988
8989         pty: improve replacement header
8990         * lib/pty.in.h: New file.
8991         * modules/pty (Files): Ship it.
8992         (Makefile.am): Always build replacement.
8993         * m4/pty.m4: Rename...
8994         * m4/pty_h.m4: ...to this.
8995         (gl_PTY): Modernize setting of witness macros; update check of
8996         forkpty to take proper advantage of cache.
8997         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
8998
8999         getopt: avoid compiler warning
9000         * lib/getopt.c (attribute_hidden): Remove unused macro.
9001
9002 2010-03-18  Bruno Haible  <bruno@clisp.org>
9003
9004         Fix link errors on Solaris 8.
9005         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
9006         * modules/search-tests (test_search_c___LDADD): Likewise.
9007         * modules/signal-tests (test_signal_c___LDADD): Likewise.
9008         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
9009         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
9010         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
9011         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
9012         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
9013         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
9014
9015 2010-03-18  Bruno Haible  <bruno@clisp.org>
9016
9017         Fix bug introduced on 2010-03-14.
9018         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
9019         (gl_SPAWN_H): Require it.
9020         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
9021         Reported by Simon Josefsson.
9022
9023 2010-03-18  Bruno Haible  <bruno@clisp.org>
9024
9025         Fix typo introduced on 2009-12-31.
9026         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
9027         posix_spawn_file_actions_adddup2.
9028
9029 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
9030         and Eric Blake  <eblake@redhat.com>
9031
9032         test-vc-list-files-git: make more robust
9033         * tests/test-vc-list-files-git.sh: Unset problematic environment
9034         variables.  Chain commands together.
9035
9036 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
9037
9038         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
9039         `AC_CHECK_DECL' invocation.
9040
9041 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
9042
9043         * lib/inttostr.c (inttostr): Make sure the invocation of verify
9044         appears before executable statements. Suggested by Petr Sumbera
9045         <Petr.Sumbera@Sun.COM>.
9046
9047 2010-03-14  Bruno Haible  <bruno@clisp.org>
9048
9049         * tests/test-flock.c (test_exclusive): Comment out a test that causes
9050         portability problems. Instead use a simpler test.
9051         (main): Check that invalid arguments are rejected only on Linux.
9052
9053 2010-03-14  Bruno Haible  <bruno@clisp.org>
9054
9055         Fix bug introduced on 2009-12-31.
9056         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
9057         gl_PREREQ_SYS_H_WINSOCK2 always.
9058         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
9059         SYS_SOCKET_H variable.
9060         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
9061         Update comments.
9062         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
9063         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9064         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9065         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9066         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9067
9068 2010-03-14  Bruno Haible  <bruno@clisp.org>
9069
9070         Fix values returned by sinl, cosl.
9071         * lib/trigl.h: Add specification comments.
9072         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
9073         that combines the values from the precomputed table with the values of
9074         the Chebyshev polynomials.
9075
9076 2010-03-14  Bruno Haible  <bruno@clisp.org>
9077
9078         Fix compilation error when modules 'posix_spawn[p]' are not used.
9079         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
9080         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
9081
9082 2010-03-14  Bruno Haible  <bruno@clisp.org>
9083
9084         Fix compilation error on mingw when module 'time_r' is not used.
9085         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
9086         is 1.
9087         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
9088         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
9089         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
9090         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
9091
9092 2010-03-14  Bruno Haible  <bruno@clisp.org>
9093
9094         Fix compilation error with Sun C.
9095         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
9096         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
9097         instead of GCC specific ULONG_LONG_MAX.
9098         * lib/xstrtoll.c: Likewise.
9099         * lib/xstrtoull.c: Likewise.
9100
9101 2010-03-13  Bruno Haible  <bruno@clisp.org>
9102
9103         Allow the user to disable C++ code and tests.
9104         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
9105         (gl_PROG_ANSI_CXX): Require it.
9106
9107 2010-03-13  Bruno Haible  <bruno@clisp.org>
9108
9109         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
9110         cases.
9111
9112 2010-03-13  Bruno Haible  <bruno@clisp.org>
9113
9114         Test that gnulib does not break the standard C++ headers.
9115         * tests/test-locale-c++2.cc: New file.
9116         * modules/locale-tests (Files): Add it.
9117         (Makefile.am): Compile it for test-locale-c++.
9118         * tests/test-math-c++2.cc: New file.
9119         * modules/math-tests (Files): Add it.
9120         (Makefile.am): Compile it for test-math-c++.
9121         * tests/test-signal-c++2.cc: New file.
9122         * modules/signal-tests (Files): Add it.
9123         (Makefile.am): Compile it for test-signal-c++.
9124         * tests/test-stdio-c++2.cc: New file.
9125         * modules/stdio-tests (Files): Add it.
9126         (Makefile.am): Compile it for test-stdio-c++.
9127         * tests/test-stdlib-c++2.cc: New file.
9128         * modules/stdlib-tests (Files): Add it.
9129         (Makefile.am): Compile it for test-stdlib-c++.
9130         * tests/test-string-c++2.cc: New file.
9131         * modules/string-tests (Files): Add it.
9132         (Makefile.am): Compile it for test-string-c++.
9133         * tests/test-time-c++2.cc: New file.
9134         * modules/time-tests (Files): Add it.
9135         (Makefile.am): Compile it for test-time-c++.
9136         Reported by John W. Eaton <jwe@gnu.org>.
9137
9138 2010-03-13  Bruno Haible  <bruno@clisp.org>
9139
9140         * gnulib-tool (func_usage): Clarify which options are available for
9141         --create-testdir and --create-megatestdir.
9142
9143 2010-03-13  Bruno Haible  <bruno@clisp.org>
9144
9145         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
9146         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
9147         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
9148         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
9149         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
9150         when appropriate.
9151         Reported by Jim Meyering.
9152
9153 2010-03-12  Simon Josefsson  <simon@josefsson.org>
9154
9155         * gnulib-tool (func_import): Explain origin of code.
9156
9157 2010-03-12  Bruno Haible  <bruno@clisp.org>
9158
9159         Fix problem with automake's definition of CXXLINK.
9160         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
9161         Reported by Simon Josefsson and Ludovic Courtès.
9162
9163 2010-03-12  Bruno Haible  <bruno@clisp.org>
9164
9165         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
9166         stable releases.
9167
9168 2010-03-11  Bruno Haible  <bruno@clisp.org>
9169
9170         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
9171         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
9172         whether the system provides one variant or multiple variants of the
9173         function.
9174         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
9175         C++ compilers.
9176         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
9177         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
9178         Reported by Jim Meyering.
9179
9180 2010-03-09  Simon Josefsson  <simon@josefsson.org>
9181
9182         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
9183
9184 2010-03-08  Bruno Haible  <bruno@clisp.org>
9185
9186         gnulib-tool: Add support for --libtool in --create-testdir.
9187         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
9188         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
9189
9190 2010-03-08  Eric Blake  <eblake@redhat.com>
9191
9192         gnulib-tool.texi: mention possibility of git submodule
9193         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
9194         submodules.
9195         * doc/.gitignore: Ignore another generated file.
9196
9197 2010-03-08  Karl Berry  <karl@gnu.org>
9198
9199         * doc/gnulib-tool.texi (VCS Issues): Mention third option
9200         of committing gnulib files while skipping others.
9201
9202 2010-03-07  Bruno Haible  <bruno@clisp.org>
9203
9204         Tests of module 'wctype' in C++ mode.
9205         * tests/test-wctype-c++.cc: New file.
9206         * modules/wctype-tests (Files): Add it and tests/signature.h.
9207         (Depends-on): Add ansi-c++-opt.
9208         (Makefile.am): Arrange to compile and run test-wctype-c++.
9209
9210         Tests of module 'wchar' in C++ mode.
9211         * tests/test-wchar-c++.cc: New file.
9212         * modules/wchar-tests (Files): Add it and tests/signature.h.
9213         (Depends-on): Add ansi-c++-opt.
9214         (Makefile.am): Arrange to compile and run test-wchar-c++.
9215         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
9216         gl_MODULE_INDICATOR.
9217
9218         Tests of module 'unistd' in C++ mode.
9219         * tests/test-unistd-c++.cc: New file.
9220         * modules/unistd-tests (Files): Add it and tests/signature.h.
9221         (Depends-on): Add ansi-c++-opt.
9222         (Makefile.am): Arrange to compile and run test-unistd-c++.
9223         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
9224         gl_MODULE_INDICATOR.
9225
9226         Tests of module 'time' in C++ mode.
9227         * tests/test-time-c++.cc: New file.
9228         * modules/time-tests (Files): Add it and tests/signature.h.
9229         (Depends-on): Add ansi-c++-opt.
9230         (Makefile.am): Arrange to compile and run test-time-c++.
9231         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9232
9233         Tests of module 'sys_time' in C++ mode.
9234         * tests/test-sys_time-c++.cc: New file.
9235         * modules/sys_time-tests (Files): Add it and tests/signature.h.
9236         (Depends-on): Add ansi-c++-opt.
9237         (Makefile.am): Arrange to compile and run test-sys_time-c++.
9238         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
9239         gl_MODULE_INDICATOR.
9240
9241         Tests of module 'sys_stat' in C++ mode.
9242         * tests/test-sys_stat-c++.cc: New file.
9243         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
9244         (Depends-on): Add ansi-c++-opt.
9245         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
9246         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
9247         gl_MODULE_INDICATOR.
9248
9249         Tests of module 'sys_socket' in C++ mode.
9250         * tests/test-sys_socket-c++.cc: New file.
9251         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
9252         (Depends-on): Add ansi-c++-opt.
9253         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
9254         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
9255         gl_MODULE_INDICATOR.
9256
9257         Tests of module 'sys_select' in C++ mode.
9258         * tests/test-sys_select-c++.cc: New file.
9259         * modules/sys_select-tests (Files): Add it and tests/signature.h.
9260         (Depends-on): Add ansi-c++-opt.
9261         (Makefile.am): Arrange to compile and run test-sys_select-c++.
9262         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
9263         gl_MODULE_INDICATOR.
9264
9265         Tests of module 'sys_ioctl' in C++ mode.
9266         * tests/test-sys_ioctl-c++.cc: New file.
9267         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
9268         (Depends-on): Add ansi-c++-opt.
9269         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
9270         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
9271         gl_MODULE_INDICATOR.
9272
9273         Tests of module 'string' in C++ mode.
9274         * tests/test-string-c++.cc: New file.
9275         * modules/string-tests (Files): Add it and tests/signature.h.
9276         (Depends-on): Add ansi-c++-opt.
9277         (Makefile.am): Arrange to compile and run test-string-c++.
9278         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
9279         gl_MODULE_INDICATOR.
9280
9281         Tests of module 'stdlib' in C++ mode.
9282         * tests/test-stdlib-c++.cc: New file.
9283         * modules/stdlib-tests (Files): Add it and tests/signature.h.
9284         (Depends-on): Add ansi-c++-opt.
9285         (Makefile.am): Arrange to compile and run test-stdlib-c++.
9286         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
9287         gl_MODULE_INDICATOR.
9288
9289         Tests of module 'stdio' in C++ mode.
9290         * tests/test-stdio-c++.cc: New file.
9291         * modules/stdio-tests (Files): Add it and tests/signature.h.
9292         (Depends-on): Add ansi-c++-opt.
9293         (Makefile.am): Arrange to compile and run test-stdio-c++.
9294         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
9295         gl_MODULE_INDICATOR.
9296
9297         Tests of module 'spawn' in C++ mode.
9298         * tests/test-spawn-c++.cc: New file.
9299         * modules/spawn-tests (Files): Add it and tests/signature.h.
9300         (Depends-on): Add ansi-c++-opt.
9301         (Makefile.am): Arrange to compile and run test-spawn-c++.
9302         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
9303         gl_MODULE_INDICATOR.
9304
9305         Tests of module 'signal' in C++ mode.
9306         * tests/test-signal-c++.cc: New file.
9307         * modules/signal-tests (Files): Add it and tests/signature.h.
9308         (Depends-on): Add ansi-c++-opt.
9309         (Makefile.am): Arrange to compile and run test-signal-c++.
9310         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
9311         gl_MODULE_INDICATOR.
9312
9313         Tests of module 'search' in C++ mode.
9314         * tests/test-search-c++.cc: New file.
9315         * modules/search-tests (Files): Add it and tests/signature.h.
9316         (Depends-on): Add ansi-c++-opt.
9317         (Makefile.am): Arrange to compile and run test-search-c++.
9318         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
9319         gl_MODULE_INDICATOR.
9320
9321         Tests of module 'math' in C++ mode.
9322         * tests/test-math-c++.cc: New file.
9323         * modules/math-tests (Files): Add it and tests/signature.h.
9324         (Depends-on): Add ansi-c++-opt.
9325         (Makefile.am): Arrange to compile and run test-math-c++.
9326         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
9327
9328         Tests of module 'locale' in C++ mode.
9329         * tests/test-locale-c++.cc: New file.
9330         * modules/locale-tests (Files): Add it and tests/signature.h.
9331         (Depends-on): Add ansi-c++-opt.
9332         (Makefile.am): Arrange to compile and run test-locale-c++.
9333         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
9334         gl_MODULE_INDICATOR.
9335
9336         Tests of module 'langinfo' in C++ mode.
9337         * tests/test-langinfo-c++.cc: New file.
9338         * modules/langinfo-tests (Files): Add it and tests/signature.h.
9339         (Depends-on): Add ansi-c++-opt.
9340         (Makefile.am): Arrange to compile and run test-langinfo-c++.
9341         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
9342         gl_MODULE_INDICATOR.
9343
9344         Tests of module 'iconv-h' in C++ mode.
9345         * tests/test-iconv-h-c++.cc: New file.
9346         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
9347         (Depends-on): Add ansi-c++-opt.
9348         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
9349
9350         Tests of module 'glob' in C++ mode.
9351         * tests/test-glob-c++.cc: New file.
9352         * modules/glob-tests (Files): Add it.
9353         (Depends-on): Add ansi-c++-opt.
9354         (Makefile.am): Arrange to compile and run test-glob-c++.
9355
9356         Tests of module 'fcntl-h' in C++ mode.
9357         * tests/test-fcntl-h-c++.cc: New file.
9358         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
9359         (Depends-on): Add ansi-c++-opt.
9360         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
9361         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
9362         gl_MODULE_INDICATOR.
9363
9364         Tests of module 'dirent' in C++ mode.
9365         * tests/test-dirent-c++.cc: New file.
9366         * modules/dirent-tests (Files): Add it and tests/signature.h.
9367         (Depends-on): Add ansi-c++-opt.
9368         (Makefile.am): Arrange to compile and run test-dirent-c++.
9369         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
9370         gl_MODULE_INDICATOR.
9371
9372         New module 'ansi-c++-opt'.
9373         * modules/ansi-c++-opt: New file.
9374         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
9375
9376         Document C++ namespace mode.
9377         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
9378
9379         wctype: Avoid #define replacements in C++ mode.
9380         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
9381         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
9382         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
9383         In C++, define a namespaced alias symbol.
9384         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
9385         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
9386         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
9387         rule.
9388
9389         wchar: Avoid #define replacements in C++ mode.
9390         * lib/wchar.in.h: Include c++defs.h.
9391         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
9392         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
9393         symbol.
9394         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
9395         * modules/wchar (Depends-on): Add c++defs.
9396         (Makefile.am): Update wchar.h rule.
9397
9398         unistd: Avoid #define replacements in C++ mode.
9399         * lib/unistd.in.h: Include c++defs.h.
9400         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
9401         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
9402         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
9403         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
9404         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
9405         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
9406         symbol.
9407         (environ): Update.
9408         * modules/unistd (Depends-on): Add c++defs.
9409         (Makefile.am): Update unistd.h rule.
9410
9411         time: Avoid #define replacements in C++ mode.
9412         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
9413         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
9414         define a namespaced alias symbol.
9415         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
9416         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
9417         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
9418         * modules/time (Depends-on): Add c++defs, warn-on-use.
9419         (Makefile.am): Update time.h rule.
9420         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
9421         * modules/nanosleep (configure.ac): Likewise.
9422         * modules/strptime (configure.ac): Likewise.
9423         * modules/timegm (configure.ac): Likewise.
9424
9425         sys_time: Avoid #define replacements in C++ mode.
9426         * lib/sys_time.in.h: Include c++defs.h.
9427         (gettimeofday): In C++, define a namespaced alias symbol.
9428         * modules/sys_time (Depends-on): Add c++defs.
9429         (Makefile.am): Update sys/time.h rule.
9430
9431         sys_stat: Avoid #define replacements in C++ mode.
9432         * lib/sys_stat.in.h: Include c++defs.h.
9433         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
9434         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
9435         namespaced alias symbol.
9436         In C++, define a namespaced alias symbol.
9437         * modules/sys_stat (Depends-on): Add c++defs.
9438         (Makefile.am): Update sys/stat.h rule.
9439
9440         sys_socket: Avoid #define replacements in C++ mode.
9441         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
9442         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
9443         definitions also when the system has a <sys/socket.h>.
9444         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
9445         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
9446         In C++, define a namespaced alias symbol.
9447         * modules/sys_socket (Depends-on): Add c++defs.
9448         (Makefile.am): Update sys/socket.h rule.
9449
9450         sys_select: Avoid #define replacements in C++ mode.
9451         * lib/sys_select.in.h: Include c++defs.h. Enable the function
9452         definitions also when the system has a <sys/select.h>.
9453         (select): In C++, define a namespaced alias symbol.
9454         * modules/sys_select (Depends-on): Add c++defs.
9455         (Makefile.am): Update sys/select.h rule.
9456
9457         sys_ioctl: Avoid #define replacements in C++ mode.
9458         * lib/sys_ioctl.in.h: Include c++defs.h.
9459         (ioctl): In C++, define a namespaced alias symbol.
9460         * modules/sys_ioctl (Depends-on): Add c++defs.
9461         (Makefile.am): Update sys/ioctl.h rule.
9462
9463         string: Avoid #define replacements in C++ mode.
9464         * lib/string.in.h: Include c++defs.h.
9465         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
9466         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
9467         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
9468         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
9469         strsignal, strverscmp): In C++, define a namespaced alias symbol.
9470         * modules/string (Depends-on): Add c++defs.
9471         (Makefile.am): Update string.h rule.
9472
9473         stdlib: Avoid #define replacements in C++ mode.
9474         * lib/stdlib.in.h: Include c++defs.h.
9475         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
9476         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
9477         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
9478         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
9479         symbol.
9480         * modules/stdlib (Depends-on): Add c++defs.
9481         (Makefile.am): Update stdlib.h rule.
9482
9483         stdio: Avoid #define replacements in C++ mode.
9484         * lib/stdio.in.h: Include c++defs.h.
9485         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
9486         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
9487         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
9488         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
9489         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
9490         namespaced alias symbol.
9491         * modules/stdio (Depends-on): Add c++defs.
9492         (Makefile.am): Update stdio.h rule.
9493
9494         spawn: Avoid #define replacements in C++ mode.
9495         * lib/spawn.in.h: Include c++defs.h.
9496         (posix_spawn, posix_spawnp, posix_spawnattr_init,
9497         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
9498         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
9499         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
9500         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
9501         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
9502         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
9503         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
9504         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
9505         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
9506         In C++, define a namespaced alias symbol.
9507         * modules/spawn (Depends-on): Add c++defs.
9508         (Makefile.am): Update spawn.h rule.
9509
9510         signal: Avoid #define replacements in C++ mode.
9511         * lib/signal.in.h: Include c++defs.h.
9512         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
9513         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
9514         namespaced alias symbol.
9515         * modules/signal (Depends-on): Add c++defs.
9516         (Makefile.am): Update signal.h rule.
9517
9518         search: Avoid #define replacements in C++ mode.
9519         * lib/search.in.h: Include c++defs.h.
9520         (_gl_search_compar_fn, _gl_search_action_fn): New types.
9521         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
9522         symbol.
9523         * modules/search (Depends-on): Add c++defs.
9524         (Makefile.am): Update search.h rule.
9525
9526         math: Avoid #define replacements in C++ mode.
9527         * lib/math.in.h: Include c++defs.h.
9528         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
9529         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
9530         trunc, truncl): In C++, define a namespaced alias symbol.
9531         * modules/math (Depends-on): Add c++defs.
9532         (Makefile.am): Update math.h rule.
9533
9534         locale: Avoid #define replacements in C++ mode.
9535         * lib/locale.in.h: Include c++defs.h.
9536         (duplocale): In C++, define a namespaced alias symbol.
9537         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
9538         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
9539         * modules/locale (Depends-on): Add c++defs.
9540         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
9541
9542         langinfo: Avoid #define replacements in C++ mode.
9543         * lib/langinfo.in.h: Include c++defs.h.
9544         (nl_langinfo): In C++, define a namespaced alias symbol.
9545         * modules/langinfo (Depends-on): Add c++defs.
9546         (Makefile.am): Update langinfo.h rule.
9547
9548         iconv-h: Avoid #define replacements in C++ mode.
9549         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
9550         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
9551         symbol.
9552         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
9553         whenever iconv is present.
9554         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
9555         (Makefile.am): Update iconv.h rule.
9556
9557         glob: Avoid #define replacements in C++ mode.
9558         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
9559         (_gl_glob_errfunc_fn): New type.
9560         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
9561         symbol.
9562         * modules/glob (Depends-on): Add c++defs, warn-on-use.
9563         (Makefile.am): Update glob.h rule.
9564
9565         fcntl-h: Avoid #define replacements in C++ mode.
9566         * lib/fcntl.in.h: Include c++defs.h.
9567         (fcntl, open, openat): In C++, define a namespaced alias symbol.
9568         * modules/fcntl-h (Depends-on): Add c++defs.
9569         (Makefile.am): Update fcntl.h rule.
9570
9571         dirent: Avoid #define replacements in C++ mode.
9572         * lib/dirent.in.h: Include c++defs.h.
9573         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
9574         namespaced alias symbol.
9575         (dirfd): Update declaration.
9576         * modules/dirent (Depends-on): Add c++defs.
9577         (Makefile.am): Update dirent.h rule.
9578
9579         ctype: Make it usable in C++ code.
9580         * lib/ctype.in.h: Include c++defs.h.
9581         (isblank): Declare as extern "C".
9582         * modules/ctype (Depends-on): Add c++defs.
9583         (Makefile.am): Update ctype.h rule.
9584
9585         New module 'c++defs'.
9586         * modules/c++defs: New file.
9587         * build-aux/c++defs.h: New file.
9588         Reported by John W. Eaton <jwe@gnu.org>.
9589
9590 2010-03-07  Bruno Haible  <bruno@clisp.org>
9591
9592         logb: Provide missing declaration for Cygwin.
9593         * lib/math.in.h (logb): New declaration.
9594         * m4/logb.m4: New file.
9595         * modules/logb (Files): Add m4/logb.m4.
9596         (Depends-on): Add math.
9597         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
9598         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
9599         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
9600         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
9601         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
9602
9603 2010-03-07  Bruno Haible  <bruno@clisp.org>
9604
9605         Fix test-cond link error.
9606         * tests/test-cond.c: Include <stdio.h>.
9607
9608 2010-03-07  Bruno Haible  <bruno@clisp.org>
9609
9610         Fix test-dirent-safer link error.
9611         * modules/dirent-safer-tests (Makefile.am): Define
9612         test_dirent_safer_LDADD.
9613
9614 2010-03-07  Bruno Haible  <bruno@clisp.org>
9615
9616         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
9617         among default module list.
9618
9619 2010-03-07  Bruno Haible  <bruno@clisp.org>
9620
9621         Fix link error on platforms with GNU libiconv.
9622         * modules/unistr/u8-strcoll-tests (Makefile): Define
9623         test_u8_strcoll_LDADD.
9624         * modules/unistr/u16-strcoll-tests (Makefile): Define
9625         test_u16_strcoll_LDADD.
9626         * modules/unistr/u32-strcoll-tests (Makefile): Define
9627         test_u32_strcoll_LDADD.
9628
9629 2010-03-07  Bruno Haible  <bruno@clisp.org>
9630
9631         Use POSIX declarations for socket functions.
9632         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
9633         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
9634         rpl_sendto): Change declaration to match POSIX.
9635         * lib/connect.c (rpl_connect): Likewise.
9636         * lib/accept.c (rpl_accept): Likewise.
9637         * lib/bind.c (rpl_bind): Likewise.
9638         * lib/getpeername.c (rpl_getpeername): Likewise.
9639         * lib/getsockname.c (rpl_getsockname): Likewise.
9640         * lib/recv.c (rpl_recv): Likewise.
9641         * lib/send.c (rpl_send): Likewise.
9642         * lib/recvfrom.c (rpl_recvfrom): Likewise.
9643         * lib/sendto.c (rpl_sendto): Likewise.
9644
9645 2010-03-06  Bruno Haible  <bruno@clisp.org>
9646
9647         Clarify access, euidaccess, faccessat.
9648         * doc/posix-functions/faccessat.texi: Mention security problem under
9649         "Other problems", not "Portability problems".
9650         * doc/posix-functions/access.texi: Likewise. Mention a related security
9651         problem.
9652         * doc/glibc-functions/euidaccess.texi: Mention security problems.
9653         * lib/euidaccess.c: Add comments about platforms.
9654         * lib/unistd.in.h (access, euidaccess): Add warnings.
9655
9656 2010-03-07  Bruno Haible  <bruno@clisp.org>
9657
9658         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
9659         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
9660         (POSIX_SPAWN_SETSCHEDULER): Likewise.
9661         (POSIX_SPAWN_USEVFORK): Define in a way that works when
9662         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
9663         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
9664         declare when POSIX_SPAWN_SETSCHEDULER is zero.
9665         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
9666         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
9667         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
9668         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
9669         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
9670         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
9671         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
9672         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
9673         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
9674         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
9675         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
9676         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
9677         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
9678         Likewise.
9679         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
9680         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
9681         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
9682         Likewise.
9683         * tests/test-spawn.c (main): Make it work when
9684         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
9685
9686 2010-03-07  Bruno Haible  <bruno@clisp.org>
9687
9688         Fix incorrect Makefile.am generation in German locale.
9689         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9690         Execute sed command with character range in C locale.
9691
9692 2010-03-06  Bruno Haible  <bruno@clisp.org>
9693
9694         Tests for module 'iconv-h'.
9695         * modules/iconv-h-tests: New file.
9696         * tests/test-iconv-h.c: New file.
9697
9698         New module 'iconv-h'.
9699         * modules/iconv-h: New file.
9700         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
9701         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
9702         (configure.ac): Remove gl_ICONV_H.
9703         (Makefile.am): Remove rule for iconv.h.
9704
9705 2010-03-06  Bruno Haible  <bruno@clisp.org>
9706
9707         More consistent naming of *.m4 files.
9708         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
9709         * modules/wctype (Files): Update.
9710
9711         More consistent naming of *.m4 files.
9712         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
9713         * modules/wchar (Files): Update.
9714
9715 2010-03-06  Jim Meyering  <meyering@redhat.com>
9716
9717         euidaccess: relax license to LGPLv2+
9718         * modules/euidaccess (License): Relax to LGPLv2+.
9719
9720 2010-03-06  Bruno Haible  <bruno@clisp.org>
9721
9722         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
9723         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
9724         (Makefile.am): Augment lib_SOURCES instead.
9725
9726 2010-03-04  Jim Meyering  <meyering@redhat.com>
9727
9728         utime: remove obsolete module
9729         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
9730         unnecessary for years, and has been marked as obsolete for 10 months.
9731         * modules/utime: Remove file.
9732         * lib/utime.c: Remove file.
9733         * m4/utime.m4: Remove file.
9734         * m4/utimes-null.m4: Remove file.
9735         * doc/posix-functions/utime.texi (utime): Remove reference to
9736         the module.  Move the sole "fixed by gnulib" item into the
9737         "problems not fixed by Gnulib" list.
9738         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
9739
9740 2010-03-05  Simon Josefsson  <simon@josefsson.org>
9741
9742         * modules/exit (License): Relax license to LGPLv2+.
9743         (Status): Mark as obsolete.
9744         * NEWS: Mention deprecated 'exit' module.
9745         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
9746         of now obsolete 'exit'.
9747
9748 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9749
9750         fts-lgpl: remove unused module
9751         * modules/fts-lgpl: Remove.
9752         * MODULES.html.sh (func_all_modules): Adjust.
9753         * check-module (find_included_lib_files): Adjust.
9754         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
9755
9756 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
9757
9758         copy-acl: enhance Solaris ACL error handling
9759         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
9760         * lib/set-mode-acl.c (qset_acl): Likewise.
9761
9762 2010-03-02  Bruno Haible  <bruno@clisp.org>
9763
9764         spawn: Don't override the system defined values on FreeBSD 8.
9765         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
9766         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
9767         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
9768         if HAVE_POSIX_SPAWN is 1.
9769         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
9770
9771 2010-03-01  Bruno Haible  <bruno@clisp.org>
9772
9773         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
9774         regarding Automake.
9775
9776 2010-02-25  Bruno Haible  <bruno@clisp.org>
9777
9778         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
9779         * gnulib-tool: Define 'echo' as a function only before the ksh alias
9780         setting, not afterwards.
9781         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
9782
9783 2010-02-24  Eric Blake  <eblake@redhat.com>
9784
9785         bootstrap, git-version-gen: use timestamp
9786         * build-aux/git-version-gen (scriptversion): Force UTC.
9787         * build-aux/bootstrap (scriptversion): New variable.
9788
9789         bootstrap: allow older git
9790         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
9791         older than 1.6.4.  Requested by the libvirt project.
9792
9793 2010-02-23  Eric Blake  <eblake@redhat.com>
9794
9795         warn-on-use: work with old autoconf
9796         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
9797         AS_VAR semantics of autoconf 2.60.
9798         Reported by Bruno Haible.
9799
9800         bootstrap: improve some comments
9801         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
9802         clarification comments.
9803
9804         gettimeofday: provide correct function
9805         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
9806         when replacement is declared, otherwise provide gettimeofday.
9807         Reported by Michael Goffioul.
9808
9809 2010-02-23  Jim Meyering  <meyering@redhat.com>
9810
9811         lib-ignore: relax license to "unlimited", not LGPLv2+
9812         * modules/lib-ignore (License): Relax to "unlimited".
9813
9814 2010-02-23  Jim Meyering  <meyering@redhat.com>
9815
9816         lib-ignore: relax license to LGPLv2+
9817         * modules/lib-ignore (License): Relax to LGPLv2+.
9818
9819 2010-02-22  Eric Blake  <eblake@redhat.com>
9820
9821         lseek: avoid bash 3.2 broken pipe bug
9822         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
9823         warning from bash 3.2.
9824         Reported by Ben Pfaff, with analysis from Bruno Haible.
9825
9826         bootstrap: support non-FSF copyright holder
9827         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
9828         bootstrap.conf override of COPYRIGHT_HOLDER.
9829         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
9830
9831         bootstrap: interoperate with gettext 0.14.1
9832         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
9833
9834         bootstrap: allow for alternate submodule location
9835         * build-aux/bootstrap (gnulib_path): New variable; use instead of
9836         hardcoding submodule location.
9837         (gnulib_mk): Allow direct use of Makefile.am.
9838
9839         bootstrap: use GNULIB_SRCDIR to reduce disk usage
9840         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
9841         rather than reconfiguring where the submodule points.
9842
9843         gettimeofday: restore support for platforms that lack function
9844         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
9845         replacement if function is missing.
9846         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
9847         * modules/sys_time (Makefile.am): Substitute it.
9848         * lib/sys_time.in.h (gettimeofday): Check it.
9849         Reported by Michael Goffioul.
9850
9851 2010-02-21  Bruno Haible  <bruno@clisp.org>
9852
9853         * lib/stdio.in.h (obstack_printf): Fix typo.
9854
9855 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
9856
9857         vc-list-files: use bzr ls's -R option
9858         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
9859         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
9860
9861 2010-02-21  Jim Meyering  <meyering@redhat.com>
9862
9863         init.sh: fix EXEEXT shims to work also for names like test-prog
9864         * tests/init.sh: Re-exec a better shell, when needed.
9865         If the current shell lacks support for posix $(...), an init.sh-using
9866         test will now try to find a shell that supports that.  If EXEEXT is
9867         nonempty, we also require support for hyphen-in-alias-name and shell
9868         substitutions like ${var#glob}.  Failure to find such a shell results
9869         in a skipped test.
9870
9871 2010-02-21  Bruno Haible  <bruno@clisp.org>
9872
9873         Really work around around "broken pipe" error message from bash 3.2.
9874         * gnulib-tool (func_reset_sigpipe): Remove function.
9875         (echo): In bash 3.2, define to a function that uses printf.
9876         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
9877
9878 2010-02-20  Bruno Haible  <bruno@clisp.org>
9879
9880         Restore support for automake 1.9.6 with autoconf 2.61.
9881         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
9882         Reported by James Youngman <jay@gnu.org>.
9883
9884 2010-02-20  Bruno Haible  <bruno@clisp.org>
9885
9886         Improve *printf warning condition.
9887         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
9888         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
9889         and the function is overridden due to SIGPIPE emulation.
9890
9891 2010-02-20  Bruno Haible  <bruno@clisp.org>
9892
9893         * lib/stdio.in.h: Tweak comments.
9894
9895 2010-02-19  Bruno Haible  <bruno@clisp.org>
9896
9897         Make it easier to find modules. New gnulib-tool option '--find'.
9898         * gnulib-tool: New option --find.
9899         (func_usage): Document it.
9900         (func_sanitize_modulelist): New function, extracted from
9901         func_all_modules.
9902         (func_all_modules): Invoke it.
9903         * doc/gnulib-tool.texi (Which modules?): New node.
9904
9905 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
9906
9907         * lib/sys_select.in.h: Provide select replacement even if
9908         sys/select.h exists on a system, for Interix.
9909
9910 2010-02-18  Jim Meyering  <meyering@redhat.com>
9911
9912         init.sh: don't use $(...) just yet
9913         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
9914         to accommodate e.g., Solaris' /bin/sh.
9915
9916 2010-02-17  Bruno Haible  <bruno@clisp.org>
9917
9918         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
9919         Reported by Ludovic Courtès <ludo@gnu.org>.
9920
9921 2010-02-16  Simon Josefsson  <simon@josefsson.org>
9922
9923         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
9924         linking with -lintl.
9925
9926 2010-02-17  Simon Josefsson  <simon@josefsson.org>
9927
9928         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
9929         if not provided by the system's netdb.h.  Reported by
9930         ludo@gnu.org (Ludovic Courtès).
9931
9932 2010-02-15  Jim Meyering  <meyering@redhat.com>
9933
9934         init.sh: improve portability and efficiency
9935         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
9936         "dummy" in a for loop.
9937         Use '!', not '^' to select the complement of a character set used
9938         in a "case" statement.
9939         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
9940         Suggestions from Eric Blake.
9941
9942         init.sh: automatically accommodate programs with the .exe suffix
9943         Automatically arrange for an invocation of "prog" to execute the
9944         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
9945         may use the simpler "prog", yet still work when built on a system
9946         that requires specifying the added suffix.
9947         Do this by constructing a function named "prog" that invokes
9948         "prog.exe" for each .exe file in selected directories.
9949         * tests/init.sh (find_exe_basenames_): New function.
9950         (create_exe_shim_functions_): New function.
9951         (path_prepend_): Use it.
9952
9953         maint.mk: mark syntax-check sc_*.m rules as .PHONY
9954         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
9955         "make -t syntax-check" doesn't create a ton of sc_*.m files.
9956
9957 2010-02-14  Jim Meyering  <meyering@redhat.com>
9958
9959         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
9960         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
9961         (sc_prohibit_hash_pjw_without_use): New rule.
9962
9963         maint.mk: allow the default upload destination dir to be overridden
9964         * top/maint.mk (upload_dest_dir_): Define with a default that
9965         preserves the status quo.
9966         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
9967         Reported by Peter Simons.
9968
9969         maint.mk: prohibit inclusion of "hash.h" without_use
9970         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
9971
9972 2010-02-10  Jim Meyering  <meyering@redhat.com>
9973
9974         maint.mk: prohibit inclusion of "ignore-value.h" without_use
9975         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
9976
9977 2010-02-09  Eric Blake  <ebb9@byu.net>
9978         and Bruno Haible  <bruno@clisp.org>
9979
9980         obstack-printf-posix: ensure declaration
9981         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
9982         extracted from gl_FUNC_OBSTACK_PRINTF.
9983         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
9984         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
9985         Likewise.
9986         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
9987         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
9988         0.
9989
9990 2010-02-08  Bruno Haible  <bruno@clisp.org>
9991
9992         gnulib-tool: Fix typo in 2010-02-07 commit.
9993         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
9994         Reported by Eric Blake.
9995
9996 2010-02-07  Bruno Haible  <bruno@clisp.org>
9997
9998         gnulib-tool: Fix up caching patches.
9999         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
10000         option --no-cache. Use associative arrays when supported by the shell.
10001         (sed_comments): New variable.
10002         (modcache): Renamed from do_cache.
10003         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
10004         abbreviate unnecessarily.
10005         (have_associative): New variable.
10006         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
10007         way also for ksh and zsh.
10008         (func_init_sed_convert_to_cache_statements): New function, extracted
10009         from func_cache_lookup_module. Add support for associative arrays.
10010         Don't set the c_MODULE_cached variable here. Ignore all lines before
10011         the first field header. Remove only the final newline, not all trailing
10012         newlines. Support empty fields correctly. Limit the use of 'eval' to
10013         assignments.
10014         (func_get_description, func_get_status, func_get_notice,
10015         func_get_applicability, func_get_filelist, func_get_dependencies,
10016         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
10017         func_get_automake_snippet, func_get_include_directive,
10018         func_get_link_directive, func_get_license, func_get_maintainer):
10019         Update documentation. List the unoptimized code first. Add support for
10020         associative arrays. Limit the use of 'eval' to assignments.
10021         (func_get_applicability): Undo stylistic pessimisations.
10022         (func_get_automake_snippet, func_get_include_directive): Reduce code
10023         duplication.
10024         (func_modules_transitive_closure, func_modules_add_dummy,
10025         func_modules_notice, func_modules_to_filelist, func_add_file,
10026         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
10027         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
10028         func_create_testdir, func_create_megatestdir): Update documentation.
10029
10030 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10031
10032         * gnulib-tool (func_cache_lookup_module): Store the module name
10033         belonging to the cache variable; error out if two different
10034         module names map to the same cache variable name.
10035
10036 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10037
10038         gnulib-tool: Make caching optional.
10039         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
10040         Update matching short versions of --no-changelog.
10041         (func_usage): Update.
10042         (sed_extract_cache_prog): Renamed from ...
10043         (sed_extract_prog): ... this; revert to old extraction script.
10044         (func_get_description, func_get_status)
10045         (func_get_notice, func_get_applicability, func_get_filelist)
10046         (func_get_dependencies, func_get_autoconf_early_snippet)
10047         (func_get_autoconf_snippet, func_get_automake_snippet)
10048         (func_get_include_directive, func_get_link_directive)
10049         (func_get_license, func_get_maintainer): If $do_cache is false,
10050         use old, non-caching extraction scripts.
10051         Suggestion by Bruno Haible.
10052
10053 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10054
10055         gnulib-tool: cache module metainformation.
10056         * gnulib-tool (sed_extract_prog): Match newline before each
10057         header, and rewrite header to a shell variable suffix.
10058         (func_cache_var, func_cache_lookup_module): New functions,
10059         to turn a module name into a cache variable prefix, and to
10060         look up and cache module metainformation.
10061         (func_get_description, func_get_status)
10062         (func_get_notice, func_get_applicability, func_get_filelist)
10063         (func_get_dependencies, func_get_autoconf_early_snippet)
10064         (func_get_autoconf_snippet, func_get_automake_snippet)
10065         (func_get_include_directive, func_get_link_directive)
10066         (func_get_license, func_get_maintainer): Use
10067         func_cache_lookup_module.
10068
10069 2010-02-07  Bruno Haible  <bruno@clisp.org>
10070
10071         fnctl: Fix missing dependency.
10072         * modules/fcntl (Depends-on): Add getdtablesize.
10073         Reported by John W. Eaton <jwe@gnu.org>.
10074
10075 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
10076
10077         Argp: fix recognition of short alias options.
10078
10079         * lib/argp-parse.c (convert_options): Fix improper use of
10080         `|' between character values.
10081         * tests/test-argp.c (group1_option): New alias option
10082         --read (-r).
10083         (group1_parser): Special handling for 'r'.
10084         (test15): New test case.
10085         (test_fun): Add test15.
10086         * tests/test-argp-2.sh: Update expected --help and --usage
10087         outputs.
10088
10089 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
10090
10091         * tests/test-argp.c: Fix indentation.
10092
10093 2010-02-04  Eric Blake  <ebb9@byu.net>
10094
10095         gettimeofday: expose type of second argument
10096         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
10097         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
10098         * tests/test-gettimeofday.c: Use it to silence warning.
10099         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
10100         the issue.
10101
10102 2010-02-03  Jim Meyering  <meyering@redhat.com>
10103
10104         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
10105         * lib/regcomp.c (TYPE_SIGNED): Define.
10106         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
10107
10108         regcomp.c: avoid a new -Wshadow warning
10109         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
10110
10111 2010-02-01  Jim Meyering  <meyering@redhat.com>
10112
10113         removing useless parentheses in cpp #define directives
10114         For motivation, see commit c0221df4, "define STREQ(a,b)
10115         consistently, removing useless parentheses"
10116         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
10117         * lib/mountlist.c (MNT_IGNORE): Likewise.
10118         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
10119
10120 2010-02-01  Eric Blake  <ebb9@byu.net>
10121
10122         sys_time: use link-warning
10123         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
10124         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
10125         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
10126         * modules/sys_time (Depends-on): Add warn-on-use.
10127         (Makefile.am): Always build replacement.
10128         (configure.ac): Update substitutions.
10129         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
10130         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
10131         bother with SYS_TIME_H.
10132         * modules/gettimeofday (configure.ac): Declare indicator.
10133         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
10134         in use.
10135
10136         closein-tests: silence compiler warning
10137         * tests/test-closein.c (main): Ignore fread result.
10138         * modules/closein-tests (Depends-on): Add ignore-value.
10139
10140         tests: silence warning about system return
10141         * tests/test-areadlink-with-size.c (main): Ignore system result.
10142         * tests/test-areadlink.c (main): Likewise.
10143         * tests/test-areadlinkat-with-size.c (main): Likewise.
10144         * tests/test-areadlinkat.c (main): Likewise.
10145         * tests/test-canonicalize-lgpl.c (main): Likewise.
10146         * tests/test-canonicalize.c (main): Likewise.
10147         * tests/test-chown.c (main): Likewise.
10148         * tests/test-fchownat.c (main): Likewise.
10149         * tests/test-fdutimensat.c (main): Likewise.
10150         * tests/test-fstatat.c (main): Likewise.
10151         * tests/test-futimens.c (main): Likewise.
10152         * tests/test-lchown.c (main): Likewise.
10153         * tests/test-link.c (main): Likewise.
10154         * tests/test-linkat.c (main): Likewise.
10155         * tests/test-lstat.c (main): Likewise.
10156         * tests/test-mkdir.c (main): Likewise.
10157         * tests/test-mkdirat.c (main): Likewise.
10158         * tests/test-mkfifo.c (main): Likewise.
10159         * tests/test-mkfifoat.c (main): Likewise.
10160         * tests/test-mknod.c (main): Likewise.
10161         * tests/test-readlink.c (main): Likewise.
10162         * tests/test-remove.c (main): Likewise.
10163         * tests/test-rename.c (main): Likewise.
10164         * tests/test-renameat.c (main): Likewise.
10165         * tests/test-rmdir.c (main): Likewise.
10166         * tests/test-symlink.c (main): Likewise.
10167         * tests/test-symlinkat.c (main): Likewise.
10168         * tests/test-unlink.c (main): Likewise.
10169         * tests/test-unlinkat.c (main): Likewise.
10170         * tests/test-utimens.c (main): Likewise.
10171         * tests/test-utimensat.c (main): Likewise.
10172         * modules/areadlink-tests (Depends-on): Add ignore-value.
10173         * modules/areadlink-with-size-tests (Depends-on): Likewise.
10174         * modules/areadlinkat-tests (Depends-on): Likewise.
10175         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
10176         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
10177         * modules/canonicalize-tests (Depends-on): Likewise.
10178         * modules/chown-tests (Depends-on): Likewise.
10179         * modules/fdutimensat-tests (Depends-on): Likewise.
10180         * modules/futimens-tests (Depends-on): Likewise.
10181         * modules/lchown-tests (Depends-on): Likewise.
10182         * modules/link-tests (Depends-on): Likewise.
10183         * modules/linkat-tests (Depends-on): Likewise.
10184         * modules/lstat-tests (Depends-on): Likewise.
10185         * modules/mkdir-tests (Depends-on): Likewise.
10186         * modules/mkfifo-tests (Depends-on): Likewise.
10187         * modules/mkfifoat-tests (Depends-on): Likewise.
10188         * modules/mknod-tests (Depends-on): Likewise.
10189         * modules/openat-tests (Depends-on): Likewise.
10190         * modules/readlink-tests (Depends-on): Likewise.
10191         * modules/remove-tests (Depends-on): Likewise.
10192         * modules/rename-tests (Depends-on): Likewise.
10193         * modules/renameat-tests (Depends-on): Likewise.
10194         * modules/rmdir-tests (Depends-on): Likewise.
10195         * modules/symlink-tests (Depends-on): Likewise.
10196         * modules/symlinkat-tests (Depends-on): Likewise.
10197         * modules/unlink-tests (Depends-on): Likewise.
10198         * modules/utimens-tests (Depends-on): Likewise.
10199         * modules/utimensat-tests (Depends-on): Likewise.
10200
10201 2010-01-31  Bruno Haible  <bruno@clisp.org>
10202
10203         Perform the same test for many <math.h> functions.
10204         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
10205         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
10206         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
10207         of gl_MATHFUNC.
10208         * modules/acos (configure.ac): Likewise.
10209         * modules/asin (configure.ac): Likewise.
10210         * modules/atan (configure.ac): Likewise.
10211         * modules/atan2 (configure.ac): Likewise.
10212         * modules/cbrt (configure.ac): Likewise.
10213         * modules/copysign (configure.ac): Likewise.
10214         * modules/cos (configure.ac): Likewise.
10215         * modules/cosh (configure.ac): Likewise.
10216         * modules/erf (configure.ac): Likewise.
10217         * modules/erfc (configure.ac): Likewise.
10218         * modules/exp (configure.ac): Likewise.
10219         * modules/fmod (configure.ac): Likewise.
10220         * modules/hypot (configure.ac): Likewise.
10221         * modules/j0 (configure.ac): Likewise.
10222         * modules/j1 (configure.ac): Likewise.
10223         * modules/jn (configure.ac): Likewise.
10224         * modules/lgamma (configure.ac): Likewise.
10225         * modules/log (configure.ac): Likewise.
10226         * modules/log10 (configure.ac): Likewise.
10227         * modules/log1p (configure.ac): Likewise.
10228         * modules/pow (configure.ac): Likewise.
10229         * modules/remainder (configure.ac): Likewise.
10230         * modules/sin (configure.ac): Likewise.
10231         * modules/sinh (configure.ac): Likewise.
10232         * modules/tan (configure.ac): Likewise.
10233         * modules/tanh (configure.ac): Likewise.
10234         * modules/y0 (configure.ac): Likewise.
10235         * modules/y1 (configure.ac): Likewise.
10236         * modules/yn (configure.ac): Likewise.
10237         Suggested by Paolo Bonzini.
10238
10239 2010-01-31  Bruno Haible  <bruno@clisp.org>
10240
10241         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
10242
10243 2010-01-31  Bruno Haible  <bruno@clisp.org>
10244
10245         Work around getdelim() bug on FreeBSD 8.0.
10246         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
10247         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
10248         not work.
10249         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
10250         is 1.
10251         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
10252         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
10253         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
10254         a non-zero size.
10255         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
10256
10257 2010-01-31  Bruno Haible  <bruno@clisp.org>
10258
10259         Work around getline() bug on FreeBSD 8.0.
10260         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
10261         and a non-zero size.
10262         * tests/test-getline.c (main): Likewise.
10263         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
10264         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
10265
10266 2010-01-28  Eric Blake  <ebb9@byu.net>
10267
10268         regex: fix build failure
10269         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
10270         platforms.
10271
10272 2010-01-28  Jim Meyering  <meyering@redhat.com>
10273
10274         regex: do not ignore memory allocation failure
10275         * lib/regex_internal.c (create_cd_newstate): Detect
10276         re_node_set_init_copy failure.   Extracted from glibc commit
10277         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10278
10279         regex: sync more white-space changes from libc
10280         * lib/regex_internal.c: White-space only changes.
10281         * lib/regexec.c: Likewise.
10282
10283         regex: add many uses of __attribute_warn_unused_result__
10284         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
10285         * lib/regexec.c: Likewise.
10286         Extracted from a messy glibc commit.
10287
10288         regcomp.c: spelling and merge-artifact from glibc
10289         * lib/regcomp.c: Merge remainder of glibc's
10290         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10291
10292         regcomp.c: sync white-space changes from glibc
10293         * lib/regcomp.c: Merge to accommodate white space
10294         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
10295
10296         regcomp.c: do not ignore internal return values
10297         * lib/regcomp.c: Do not ignore internal return values.
10298         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
10299         but without its white-space changes and spelling fixes.
10300
10301         regex_internal.h: define __attribute_warn_unused_result__
10302         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
10303
10304         maint: add a syntax-check rule to check for vulnerable Makefile.in
10305         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
10306
10307 2010-01-27  Jim Meyering  <meyering@redhat.com>
10308
10309         ncftpput-ftp: clean up spaces
10310         * build-aux/ncftpput-ftp: Make Copyright line consistent.
10311         Remove trailing blanks.
10312
10313 2010-01-27  Simon Josefsson  <simon@josefsson.org>
10314
10315         * build-aux/git-version-gen: Fix copyright statement.
10316         * build-aux/gnupload: Likewise.
10317         * tests/test-arcfour.c: Likewise.
10318         * tests/test-arctwo.c: Likewise.
10319         * tests/test-count-one-bits.c: Likewise.
10320         * tests/test-crc.c: Likewise.
10321         * tests/test-des.c: Likewise.
10322         * tests/test-gc-arcfour.c: Likewise.
10323         * tests/test-gc-arctwo.c: Likewise.
10324         * tests/test-gc-des.c: Likewise.
10325         * tests/test-gc-hmac-md5.c: Likewise.
10326         * tests/test-gc-hmac-sha1.c: Likewise.
10327         * tests/test-gc-md2.c: Likewise.
10328         * tests/test-gc-md4.c: Likewise.
10329         * tests/test-gc-md5.c: Likewise.
10330         * tests/test-gc-pbkdf2-sha1.c: Likewise.
10331         * tests/test-gc-rijndael.c: Likewise.
10332         * tests/test-gc-sha1.c: Likewise.
10333         * tests/test-gc.c: Likewise.
10334         * tests/test-gethostname.c: Likewise.
10335         * tests/test-gettimeofday.c: Likewise.
10336         * tests/test-hash.c: Likewise.
10337         * tests/test-hmac-md5.c: Likewise.
10338         * tests/test-hmac-sha1.c: Likewise.
10339         * tests/test-md2.c: Likewise.
10340         * tests/test-md4.c: Likewise.
10341         * tests/test-md5.c: Likewise.
10342         * tests/test-memchr.c: Likewise.
10343         * tests/test-memchr2.c: Likewise.
10344         * tests/test-memcmp.c: Likewise.
10345         * tests/test-memmem.c: Likewise.
10346         * tests/test-memrchr.c: Likewise.
10347         * tests/test-rawmemchr.c: Likewise.
10348         * tests/test-read-file.c: Likewise.
10349         * tests/test-rijndael.c: Likewise.
10350         * tests/test-sockets.c: Likewise.
10351         * tests/test-strchrnul.c: Likewise.
10352         * tests/test-strstr.c: Likewise.
10353         * tests/test-strtod.c: Likewise.
10354         * build-aux/ncftpput-ftp: Likewise.
10355
10356 2010-01-26  Eric Blake  <ebb9@byu.net>
10357
10358         ignore-value: update recommended header name
10359         * modules/ignore-value (Include): Only use <> for headers that
10360         exist in glibc.
10361
10362 2010-01-26  Jim Meyering  <meyering@redhat.com>
10363
10364         test-userspec.c: avoid compiler warnings
10365         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
10366         and "initialization discards qualifiers..." warnings.
10367         Put the first "uid" in its own scope, and make char* members "const".
10368
10369 2010-01-25  Bruno Haible  <bruno@clisp.org>
10370
10371         gnulib-tool: Make warning diagnostics consistent.
10372         * gnulib-tool (func_warning): New function.
10373         Use it everywhere where gnulib-tool produces output to stderr and it is
10374         not a fatal error.
10375
10376 2010-01-25  Bruno Haible  <bruno@clisp.org>
10377
10378         Fix test dependencies.
10379         * modules/xstrtol-tests (Depends-on): Add inttypes.
10380         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
10381
10382 2010-01-25 Pádraig Brady <P@draigBrady.com>
10383
10384         syntax-check: detect incorrect boolean macro values in config.h
10385         * modules/maintainer-makefile (configure.ac): Parameterize the location
10386         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
10387         The logic is from Eric Blake and the location indicated by Jim Meyering.
10388         Note the more natural CONFIG_HEADER name is prohibited by automake
10389         for backwards compatibility reasons.
10390         * top/maint.mk (sc_Wundef_boolean): New rule.
10391
10392 2010-01-25  Jim Meyering  <meyering@redhat.com>
10393
10394         bootstrap: detect MacOS 10.6's shasum, too
10395         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
10396         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
10397
10398 2010-01-23  Jim Meyering  <meyering@redhat.com>
10399
10400         xstrtoll: new module
10401         * modules/xstrtoll: New file.
10402         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
10403         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
10404         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
10405         ./configure fails if you use this module and lack "long long".
10406         * modules/xstrtoll-tests: New module.
10407         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
10408         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
10409         new init.sh-based test framework.
10410
10411 2010-01-24  Bruno Haible  <bruno@clisp.org>
10412
10413         Tests for module 'yn'.
10414         * modules/yn-tests: New file.
10415         * tests/test-yn.c: New file.
10416
10417         Tests for module 'y1'.
10418         * modules/y1-tests: New file.
10419         * tests/test-y1.c: New file.
10420
10421         Tests for module 'y0'.
10422         * modules/y0-tests: New file.
10423         * tests/test-y0.c: New file.
10424
10425         Tests for module 'tanh'.
10426         * modules/tanh-tests: New file.
10427         * tests/test-tanh.c: New file.
10428
10429         Tests for module 'tan'.
10430         * modules/tan-tests: New file.
10431         * tests/test-tan.c: New file.
10432
10433         Tests for module 'sqrt'.
10434         * modules/sqrt-tests: New file.
10435         * tests/test-sqrt.c: New file.
10436
10437         Tests for module 'sinh'.
10438         * modules/sinh-tests: New file.
10439         * tests/test-sinh.c: New file.
10440
10441         Tests for module 'sin'.
10442         * modules/sin-tests: New file.
10443         * tests/test-sin.c: New file.
10444
10445         Tests for module 'rint'.
10446         * modules/rint-tests: New file.
10447         * tests/test-rint.c: New file.
10448
10449         Tests for module 'remainder'.
10450         * modules/remainder-tests: New file.
10451         * tests/test-remainder.c: New file.
10452
10453         Tests for module 'pow'.
10454         * modules/pow-tests: New file.
10455         * tests/test-pow.c: New file.
10456
10457         Tests for module 'nextafter'.
10458         * modules/nextafter-tests: New file.
10459         * tests/test-nextafter.c: New file.
10460
10461         Tests for module 'modf'.
10462         * modules/modf-tests: New file.
10463         * tests/test-modf.c: New file.
10464
10465         Tests for module 'logb'.
10466         * modules/logb-tests: New file.
10467         * tests/test-logb.c: New file.
10468
10469         Tests for module 'log1p'.
10470         * modules/log1p-tests: New file.
10471         * tests/test-log1p.c: New file.
10472
10473         Tests for module 'log10'.
10474         * modules/log10-tests: New file.
10475         * tests/test-log10.c: New file.
10476
10477         Tests for module 'log'.
10478         * modules/log-tests: New file.
10479         * tests/test-log.c: New file.
10480
10481         Tests for module 'lgamma'.
10482         * modules/lgamma-tests: New file.
10483         * tests/test-lgamma.c: New file.
10484
10485         Tests for module 'ldexp'.
10486         * modules/ldexp-tests: New file.
10487         * tests/test-ldexp.c: New file.
10488
10489         Tests for module 'jn'.
10490         * modules/jn-tests: New file.
10491         * tests/test-jn.c: New file.
10492
10493         Tests for module 'j1'.
10494         * modules/j1-tests: New file.
10495         * tests/test-j1.c: New file.
10496
10497         Tests for module 'j0'.
10498         * modules/j0-tests: New file.
10499         * tests/test-j0.c: New file.
10500
10501         Tests for module 'hypot'.
10502         * modules/hypot-tests: New file.
10503         * tests/test-hypot.c: New file.
10504
10505         Tests for module 'fmod'.
10506         * modules/fmod-tests: New file.
10507         * tests/test-fmod.c: New file.
10508
10509         Tests for module 'fabs'.
10510         * modules/fabs-tests: New file.
10511         * tests/test-fabs.c: New file.
10512
10513         Tests for module 'exp'.
10514         * modules/exp-tests: New file.
10515         * tests/test-exp.c: New file.
10516
10517         Tests for module 'erfc'.
10518         * modules/erfc-tests: New file.
10519         * tests/test-erfc.c: New file.
10520
10521         Tests for module 'erf'.
10522         * modules/erf-tests: New file.
10523         * tests/test-erf.c: New file.
10524
10525         Tests for module 'cosh'.
10526         * modules/cosh-tests: New file.
10527         * tests/test-cosh.c: New file.
10528
10529         Tests for module 'cos'.
10530         * modules/cos-tests: New file.
10531         * tests/test-cos.c: New file.
10532
10533         Tests for module 'copysign'.
10534         * modules/copysign-tests: New file.
10535         * tests/test-copysign.c: New file.
10536
10537         Tests for module 'cbrt'.
10538         * modules/cbrt-tests: New file.
10539         * tests/test-cbrt.c: New file.
10540
10541         Tests for module 'atan2'.
10542         * modules/atan2-tests: New file.
10543         * tests/test-atan2.c: New file.
10544
10545         Tests for module 'atan'.
10546         * modules/atan-tests: New file.
10547         * tests/test-atan.c: New file.
10548
10549         Tests for module 'asin'.
10550         * modules/asin-tests: New file.
10551         * tests/test-asin.c: New file.
10552
10553         Tests for module 'acos'.
10554         * modules/acos-tests: New file.
10555         * tests/test-acos.c: New file.
10556
10557 2010-01-24  Bruno Haible  <bruno@clisp.org>
10558
10559         Fix tests for common <math.h> functions.
10560         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
10561         code snippet that references the function pointer, rather than merely
10562         calling the function. Substitute the FUNC_LIBM variable.
10563         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
10564         * modules/acos (configure.ac): Likewise.
10565         * modules/asin (configure.ac): Likewise.
10566         * modules/atan (configure.ac): Likewise.
10567         * modules/atan2 (configure.ac): Likewise.
10568         * modules/cbrt (configure.ac): Likewise.
10569         * modules/copysign (configure.ac): Likewise.
10570         * modules/cos (configure.ac): Likewise.
10571         * modules/cosh (configure.ac): Likewise.
10572         * modules/erf (configure.ac): Likewise.
10573         * modules/erfc (configure.ac): Likewise.
10574         * modules/exp (configure.ac): Likewise.
10575         * modules/fabs (configure.ac): Likewise.
10576         * modules/fmod (configure.ac): Likewise.
10577         * modules/hypot (configure.ac): Likewise.
10578         * modules/j0 (configure.ac): Likewise.
10579         * modules/j1 (configure.ac): Likewise.
10580         * modules/jn (configure.ac): Likewise.
10581         * modules/ldexp (configure.ac): Likewise.
10582         * modules/lgamma (configure.ac): Likewise.
10583         * modules/log (configure.ac): Likewise.
10584         * modules/log10 (configure.ac): Likewise.
10585         * modules/log1p (configure.ac): Likewise.
10586         * modules/logb (configure.ac): Likewise.
10587         * modules/modf (configure.ac): Likewise.
10588         * modules/nextafter (configure.ac): Likewise.
10589         * modules/pow (configure.ac): Likewise.
10590         * modules/remainder (configure.ac): Likewise.
10591         * modules/rint (configure.ac): Likewise.
10592         * modules/sin (configure.ac): Likewise.
10593         * modules/sinh (configure.ac): Likewise.
10594         * modules/tan (configure.ac): Likewise.
10595         * modules/tanh (configure.ac): Likewise.
10596         * modules/y0 (configure.ac): Likewise.
10597         * modules/y1 (configure.ac): Likewise.
10598         * modules/yn (configure.ac): Likewise.
10599
10600 2010-01-24  Bruno Haible  <bruno@clisp.org>
10601
10602         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
10603         * tests/test-acosl.c (x): New variable.
10604         (main): Store argument in x and fetch it from x.
10605         * tests/test-asinl.c (x): New variable.
10606         (main): Store argument in x and fetch it from x.
10607         * tests/test-atanl.c (x): New variable.
10608         (main): Store argument in x and fetch it from x.
10609         * tests/test-cosl.c (x): New variable.
10610         (main): Store argument in x and fetch it from x.
10611         * tests/test-expl.c (x): New variable.
10612         (main): Store argument in x and fetch it from x.
10613         * tests/test-logl.c (x): New variable.
10614         (main): Store argument in x and fetch it from x.
10615         * tests/test-sinl.c (x): New variable.
10616         (main): Store argument in x and fetch it from x.
10617         * tests/test-sqrtl.c (x): New variable.
10618         (main): Store argument in x and fetch it from x.
10619         * tests/test-tanl.c (x): New variable.
10620         (main): Store argument in x and fetch it from x.
10621
10622 2010-01-24  Bruno Haible  <bruno@clisp.org>
10623
10624         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
10625         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
10626         assignments to the initial TESTS_ENVIRONMENT.
10627         * doc/gnulib.texi (Unit test modules): Document it.
10628         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
10629         TESTS_ENVIRONMENT.
10630         * modules/btowc-tests (Makefile.am): Likewise.
10631         * modules/c-stack-tests (Makefile.am): Likewise.
10632         * modules/c-strcase-tests (Makefile.am): Likewise.
10633         * modules/copy-file-tests (Makefile.am): Likewise.
10634         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10635         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10636         * modules/mbrtowc-tests (Makefile.am): Likewise.
10637         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10638         * modules/mbscasestr-tests (Makefile.am): Likewise.
10639         * modules/mbschr-tests (Makefile.am): Likewise.
10640         * modules/mbscspn-tests (Makefile.am): Likewise.
10641         * modules/mbsinit-tests (Makefile.am): Likewise.
10642         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10643         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10644         * modules/mbspbrk-tests (Makefile.am): Likewise.
10645         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10646         * modules/mbsrchr-tests (Makefile.am): Likewise.
10647         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10648         * modules/mbsspn-tests (Makefile.am): Likewise.
10649         * modules/mbsstr-tests (Makefile.am): Likewise.
10650         * modules/nl_langinfo-tests (Makefile.am): Likewise.
10651         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
10652         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10653         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10654         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10655         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10656         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
10657         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10658         * modules/wcrtomb-tests (Makefile.am): Likewise.
10659         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
10660         * modules/wcsrtombs-tests (Makefile.am): Likewise.
10661         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
10662         assignments from TESTS_ENVIRONMENT.
10663         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
10664         augmentation.
10665         * modules/argp-version-etc-tests (Makefile.am): Likewise.
10666         * modules/atexit-tests (Makefile.am): Likewise.
10667         * modules/binary-io-tests (Makefile.am): Likewise.
10668         * modules/closein-tests (Makefile.am): Likewise.
10669         * modules/dprintf-posix-tests (Makefile.am): Likewise.
10670         * modules/exclude-tests (Makefile.am): Likewise.
10671         * modules/fflush-tests (Makefile.am): Likewise.
10672         * modules/fpending-tests (Makefile.am): Likewise.
10673         * modules/fprintf-posix-tests (Makefile.am): Likewise.
10674         * modules/freadahead-tests (Makefile.am): Likewise.
10675         * modules/freadptr-tests (Makefile.am): Likewise.
10676         * modules/freadseek-tests (Makefile.am): Likewise.
10677         * modules/fseek-tests (Makefile.am): Likewise.
10678         * modules/fseeko-tests (Makefile.am): Likewise.
10679         * modules/ftell-tests (Makefile.am): Likewise.
10680         * modules/ftello-tests (Makefile.am): Likewise.
10681         * modules/idpriv-drop-tests (Makefile.am): Likewise.
10682         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
10683         * modules/lseek-tests (Makefile.am): Likewise.
10684         * modules/parse-duration-tests (Makefile.am): Likewise.
10685         * modules/perror-tests (Makefile.am): Likewise.
10686         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
10687         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
10688         * modules/pipe-tests (Makefile.am): Likewise.
10689         * modules/pread-tests (Makefile.am): Likewise.
10690         * modules/printf-posix-tests (Makefile.am): Likewise.
10691         * modules/select-tests (Makefile.am): Likewise.
10692         * modules/sigpipe-tests (Makefile.am): Likewise.
10693         * modules/tsearch-tests (Makefile.am): Likewise.
10694         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
10695         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
10696         * modules/uniname/uniname-tests (Makefile.am): Likewise.
10697         * modules/uniwidth/width-tests (Makefile.am): Likewise.
10698         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
10699         * modules/version-etc-tests (Makefile.am): Likewise.
10700         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
10701         * modules/vprintf-posix-tests (Makefile.am): Likewise.
10702         * modules/xalloc-die-tests (Makefile.am): Likewise.
10703         * modules/xprintf-posix-tests (Makefile.am): Likewise.
10704         * modules/xstrtoimax-tests (Makefile.am): Likewise.
10705         * modules/xstrtol-tests (Makefile.am): Likewise.
10706         * modules/xstrtoumax-tests (Makefile.am): Likewise.
10707         * modules/yesno-tests (Makefile.am): Likewise.
10708         Suggested by Jim Meyering.
10709
10710 2010-01-24  Bruno Haible  <bruno@clisp.org>
10711
10712         More documentation.
10713         * doc/gnulib.texi (Writing modules): New chapter.
10714         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
10715         the new chapter.
10716
10717 2010-01-24  Jim Meyering  <meyering@redhat.com>
10718
10719         maint.mk: do not prepend "./" after filtering
10720         * top/maint.mk (_prepend_srcdir_prefix): New variable
10721         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
10722         "./" when $(srcdir) is ".".
10723
10724         define STREQ(a,b) consistently, removing useless parentheses
10725         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
10726         since the only risk is that "a" or "b" contains an unparenthesized
10727         comma, but if either did that, STREQ would have 3 or more arguments.
10728         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
10729         * lib/fts.c (STREQ): Remove unnecessary parentheses.
10730         * lib/hash-triple.c (STREQ): Likewise.
10731         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
10732         * lib/getugroups.c (STREQ): Likewise.
10733
10734 2010-01-23  Jim Meyering  <meyering@redhat.com>
10735
10736         maint.mk: fix syntax-check in a non-srcdir build directory
10737         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
10738         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
10739
10740 2010-01-22  Jim Meyering  <meyering@redhat.com>
10741
10742         userspec: add unit tests
10743         * tests/test-userspec.c: New file.
10744         * modules/userspec-tests: Likewise.
10745
10746 2010-01-21  Jim Meyering  <meyering@redhat.com>
10747
10748         maint.mk: handle source file names containing "." robustly
10749         * top/maint.mk (_dot_escaped_srcdir): Define.
10750         (VC_LIST): Use it in LHS of sed substitution.
10751
10752 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
10753
10754         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
10755         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
10756         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
10757         from a non-srcdir build.
10758
10759 2010-01-20  Eric Blake  <ebb9@byu.net>
10760
10761         warn-on-use: use instead of link-warning
10762         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
10763         * modules/unistd (Depends-on, Makefile.am): Likewise.
10764         * modules/arpa_inet (Depends-on): Replace link-warning with
10765         warn-on-use.
10766         (Makefile.am): Update rules accordingly.
10767         * modules/ctype (Depends-on, Makefile.am): Likewise.
10768         * modules/dirent (Depends-on, Makefile.am): Likewise.
10769         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
10770         * modules/inttypes (Depends-on, Makefile.am): Likewise.
10771         * modules/langinfo (Depends-on, Makefile.am): Likewise.
10772         * modules/locale (Depends-on, Makefile.am): Likewise.
10773         * modules/math (Depends-on, Makefile.am): Likewise.
10774         * modules/search (Depends-on, Makefile.am): Likewise.
10775         * modules/signal (Depends-on, Makefile.am): Likewise.
10776         * modules/spawn (Depends-on, Makefile.am): Likewise.
10777         * modules/stdlib (Depends-on, Makefile.am): Likewise.
10778         * modules/string (Depends-on, Makefile.am): Likewise.
10779         * modules/strings (Depends-on, Makefile.am): Likewise.
10780         * modules/sys_file (Depends-on, Makefile.am): Likewise.
10781         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
10782         * modules/sys_select (Depends-on, Makefile.am): Likewise.
10783         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
10784         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
10785         * modules/sys_times (Depends-on, Makefile.am): Likewise.
10786         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
10787         * modules/wchar (Depends-on, Makefile.am): Likewise.
10788         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
10789         should be poisoned.
10790         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
10791         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
10792         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
10793         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10794         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10795         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
10796         * m4/math_h.m4 (gl_MATH_H): Likewise.
10797         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10798         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
10799         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
10800         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
10801         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
10802         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
10803         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10804         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
10805         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
10806         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10807         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
10808         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
10809         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10810         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10811         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
10812         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10813         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
10814         GL_LINK_WARNING.
10815         * lib/ctype.in.h: Likewise.
10816         * lib/dirent.in.h: Likewise.
10817         * lib/fcntl.in.h: Likewise.
10818         * lib/inttypes.in.h: Likewise.
10819         * lib/langinfo.in.h: Likewise.
10820         * lib/locale.in.h: Likewise.
10821         * lib/math.in.h: Likewise.
10822         * lib/search.in.h: Likewise.
10823         * lib/signal.in.h: Likewise.
10824         * lib/spawn.in.h: Likewise.
10825         * lib/stdio.in.h: Likewise.
10826         * lib/stdlib.in.h: Likewise.
10827         * lib/string.in.h: Likewise.
10828         * lib/strings.in.h: Likewise.
10829         * lib/sys_file.in.h: Likewise.
10830         * lib/sys_ioctl.in.h: Likewise.
10831         * lib/sys_select.in.h: Likewise.
10832         * lib/sys_socket.in.h: Likewise.
10833         * lib/sys_stat.in.h: Likewise.
10834         * lib/sys_times.in.h: Likewise.
10835         * lib/sys_utsname.in.h: Likewise.
10836         * lib/unistd.in.h: Likewise.
10837         * lib/wchar.in.h: Likewise.
10838
10839 2010-01-20  Bruno Haible  <bruno@clisp.org>
10840
10841         Avoid duplicate -lm.
10842         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
10843         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
10844         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
10845         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
10846         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
10847         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
10848         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
10849         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
10850         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
10851         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
10852         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
10853         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
10854         Reported by Paolo Bonzini.
10855
10856 2010-01-19  Bruno Haible  <bruno@clisp.org>
10857
10858         langinfo, nl_langinfo: Relicense under LGPLv2+.
10859         * modules/langinfo (License): Change to LGPLv2+.
10860         * modules/nl_langinfo (License): Likewise.
10861         Patch by David Lutterkort <lutter@redhat.com>.
10862
10863 2010-01-19  Bruno Haible  <bruno@clisp.org>
10864
10865         Avoid compilation error with cc on OSF/1 5.1.
10866         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
10867         statement, not before.
10868         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10869
10870 2010-01-18  Bruno Haible  <bruno@clisp.org>
10871
10872         Avoid a link error due to the __printf__ symbol.
10873         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
10874         and 2.6.x.
10875         (__format__, __printf__): Remove definitions.
10876         * lib/argp-fmtstream.h: Likewise.
10877         * lib/argp.h: Likewise.
10878         * lib/error.h: Likewise.
10879         * lib/vasnprintf.h: Likewise.
10880         * lib/xprintf.h: Likewise.
10881         * lib/xvasprintf.h: Likewise.
10882         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10883
10884 2010-01-18  Bruno Haible  <bruno@clisp.org>
10885
10886         Tests for module 'tanl'.
10887         * modules/tanl-tests: New file.
10888         * tests/test-tanl.c: New file.
10889
10890         Tests for module 'sqrtl'.
10891         * modules/sqrtl-tests: New file.
10892         * tests/test-sqrtl.c: New file.
10893
10894         Tests for module 'sinl'.
10895         * modules/sinl-tests: New file.
10896         * tests/test-sinl.c: New file.
10897
10898         Tests for module 'logl'.
10899         * modules/logl-tests: New file.
10900         * tests/test-logl.c: New file.
10901
10902         Tests for module 'expl'.
10903         * modules/expl-tests: New file.
10904         * tests/test-expl.c: New file.
10905
10906         Tests for module 'cosl'.
10907         * modules/cosl-tests: New file.
10908         * tests/test-cosl.c: New file.
10909
10910         Tests for module 'atanl'.
10911         * modules/atanl-tests: New file.
10912         * tests/test-atanl.c: New file.
10913
10914         Tests for module 'asinl'.
10915         * modules/asinl-tests: New file.
10916         * tests/test-asinl.c: New file.
10917
10918         Tests for module 'acosl'.
10919         * modules/acosl-tests: New file.
10920         * tests/test-acosl.c: New file.
10921
10922         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
10923         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
10924         tanl): Use the standard gnulib idiom.
10925         * lib/cosl.c: Don't include trigl.c and sincosl.c.
10926         * lib/sinl.c: Likewise.
10927         * lib/tanl.c: Don't include trigl.c.
10928         (kernel_tanl): Make static.
10929         * lib/sincosl.c: Include trigl.h first.
10930         * lib/trigl.c: Likewise.
10931         * m4/acosl.m4: New file.
10932         * m4/asinl.m4: New file.
10933         * m4/atanl.m4: New file.
10934         * m4/cosl.m4: New file.
10935         * m4/expl.m4: New file.
10936         * m4/logl.m4: New file.
10937         * m4/sinl.m4: New file.
10938         * m4/sqrtl.m4: New file.
10939         * m4/tanl.m4: New file.
10940         * m4/mathl.m4: Remove file.
10941         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
10942         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
10943         Don't initialize GNULIB_MATHL.
10944         * modules/acosl: New file.
10945         * modules/asinl: New file.
10946         * modules/atanl: New file.
10947         * modules/cosl: New file.
10948         * modules/expl: New file.
10949         * modules/logl: New file.
10950         * modules/sinl: New file.
10951         * modules/sqrtl: New file.
10952         * modules/tanl: New file.
10953         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
10954         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
10955         substitute GNULIB_MATHL.
10956         * modules/mathl: Rewritten.
10957         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
10958         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
10959         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
10960         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
10961         * doc/posix-functions/expl.texi: Mention the 'expl' module.
10962         * doc/posix-functions/logl.texi: Mention the 'logl' module.
10963         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
10964         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
10965         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
10966
10967 2010-01-18  Bruno Haible  <bruno@clisp.org>
10968
10969         sqrt: Make gl_FUNC_SQRT requirable.
10970         * m4/sqrt.m4: New file.
10971         * modules/sqrt (Files): Add it.
10972         (configure.ac): Invoke gl_FUNC_SQRT.
10973
10974 2010-01-18  Bruno Haible  <bruno@clisp.org>
10975
10976         New modules for common <math.h> functions.
10977         * m4/mathfunc.m4: New file.
10978         * modules/acos: New file.
10979         * modules/asin: New file.
10980         * modules/atan: New file.
10981         * modules/atan2: New file.
10982         * modules/cbrt: New file.
10983         * modules/copysign: New file.
10984         * modules/cos: New file.
10985         * modules/cosh: New file.
10986         * modules/erf: New file.
10987         * modules/erfc: New file.
10988         * modules/exp: New file.
10989         * modules/fabs: New file.
10990         * modules/fmod: New file.
10991         * modules/hypot: New file.
10992         * modules/j0: New file.
10993         * modules/j1: New file.
10994         * modules/jn: New file.
10995         * modules/ldexp: New file.
10996         * modules/lgamma: New file.
10997         * modules/log: New file.
10998         * modules/log10: New file.
10999         * modules/log1p: New file.
11000         * modules/logb: New file.
11001         * modules/modf: New file.
11002         * modules/nextafter: New file.
11003         * modules/pow: New file.
11004         * modules/remainder: New file.
11005         * modules/rint: New file.
11006         * modules/sin: New file.
11007         * modules/sinh: New file.
11008         * modules/sqrt: New file.
11009         * modules/tan: New file.
11010         * modules/tanh: New file.
11011         * modules/y0: New file.
11012         * modules/y1: New file.
11013         * modules/yn: New file.
11014         * doc/posix-functions/acos.texi: Mention the 'acos' module.
11015         * doc/posix-functions/asin.texi: Mention the 'asin' module.
11016         * doc/posix-functions/atan.texi: Mention the 'atan' module.
11017         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
11018         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
11019         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
11020         * doc/posix-functions/cos.texi: Mention the 'cos' module.
11021         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
11022         * doc/posix-functions/erf.texi: Mention the 'erf' module.
11023         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
11024         * doc/posix-functions/exp.texi: Mention the 'exp' module.
11025         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
11026         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
11027         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
11028         * doc/posix-functions/j0.texi: Mention the 'j0' module.
11029         * doc/posix-functions/j1.texi: Mention the 'j1' module.
11030         * doc/posix-functions/jn.texi: Mention the 'jn' module.
11031         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
11032         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
11033         * doc/posix-functions/log.texi: Mention the 'log' module.
11034         * doc/posix-functions/log10.texi: Mention the 'log10' module.
11035         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
11036         * doc/posix-functions/logb.texi: Mention the 'logb' module.
11037         * doc/posix-functions/modf.texi: Mention the 'modf' module.
11038         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
11039         * doc/posix-functions/pow.texi: Mention the 'pow' module.
11040         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
11041         * doc/posix-functions/rint.texi: Mention the 'rint' module.
11042         * doc/posix-functions/sin.texi: Mention the 'sin' module.
11043         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
11044         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
11045         * doc/posix-functions/tan.texi: Mention the 'tan' module.
11046         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
11047         * doc/posix-functions/y0.texi: Mention the 'y0' module.
11048         * doc/posix-functions/y1.texi: Mention the 'y1' module.
11049         * doc/posix-functions/yn.texi: Mention the 'yn' module.
11050
11051 2010-01-18  Jim Meyering  <meyering@redhat.com>
11052
11053         ignore-value: relax license to LGPLv2+
11054         * modules/ignore-value (License): Relax to LGPLv2+.
11055
11056         getdate: don't leak when TZ contains two or more '"'s
11057         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
11058         double quote in TZ after the first one.
11059
11060         readtokens: do not leak internal token_lengths buffer
11061         * lib/readtokens.c (readtokens): Free the local, lengths,
11062         when the supplied "token_lengths" parameter is NULL.
11063
11064 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11065
11066         Fix a couple of missing LIBTHREAD link failures on AIX.
11067         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
11068         $(LIBTHREAD).
11069         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
11070
11071         Link test-poll against INET_PTON_LIB.
11072         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
11073         for inet_pton on Solaris 10.
11074
11075 2010-01-17  Bruno Haible  <bruno@clisp.org>
11076
11077         unistdio/*-sprintf: Fix typo in module description.
11078         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
11079         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
11080         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
11081         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
11082         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
11083         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
11084         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
11085         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11086
11087 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11088
11089         gnulib-tool: fix filelist for AIX, HP-UX ksh.
11090         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
11091         variables in shell case patterns, for AIX and HP-UX ksh.
11092
11093         Split large sed scripts, for HP-UX sed.
11094         * modules/stdio: Split sed scripts around 50 sed commands,
11095         to avoid HP-UX limit of 99 commands, in the near future.
11096         * modules/string: Likewise.
11097         * modules/unistd: Likewise.
11098
11099         gnulib-tool: avoid writing in the current directory.
11100         * gnulib-tool (func_emit_lib_Makefile_am)
11101         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
11102         not in the current directory, so concurrent gnulib-tool
11103         instances do not interfere.
11104
11105 2010-01-16  Jim Meyering  <meyering@redhat.com>
11106
11107         doc: update users.txt
11108         * users.txt: Add grep.
11109         (diffutils, gzip): Update URLs.
11110
11111 2010-01-12  Bruno Haible  <bruno@clisp.org>
11112
11113         posix_spawn: Avoid test failure on Cygwin.
11114         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
11115         characters.
11116         Reported by Simon Josefsson.
11117
11118 2010-01-12  Bruno Haible  <bruno@clisp.org>
11119
11120         * tests/test-cond.c (main): When skipping the test, show the reason.
11121
11122 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11123
11124         * lib/striconv.c (str_cd_iconv): Avoid if before free.
11125
11126 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11127
11128         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
11129         VC_LIST_ALWAYS_EXCLUDE_REGEX.
11130
11131 2010-01-12  Eric Blake  <ebb9@byu.net>
11132
11133         build: guarantee AS_VAR_IF
11134         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
11135         (gl_AS_VAR_IF): Move...
11136         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
11137         Reported by Simon Josefsson.
11138
11139 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11140
11141         * lib/stdio.in.h: Fix typo.
11142
11143 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11144
11145         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
11146         libgpg-error.
11147
11148 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11149
11150         * tests/test-xalloc-die.sh: Use $EXEEXT.
11151
11152 2010-01-12  Simon Josefsson  <simon@josefsson.org>
11153             Bruno Haible  <bruno@clisp.org>
11154
11155         getlogin, getlogin_r: Avoid test failure.
11156         * tests/test-getlogin.c: Include <stdio.h>.
11157         (main): Skip the test when the function fails because stdin is not a
11158         tty.
11159         * tests/test-getlogin_r.c: Include <stdio.h>.
11160         (main): Skip the test when the function fails because stdin is not a
11161         tty.
11162
11163 2010-01-11  Eric Blake  <ebb9@byu.net>
11164
11165         tests: avoid more large file warnings
11166         * tests/test-fflush.c: Avoid warning about ftell use.
11167         * tests/test-fseek.c: Avoid warning about fseek use.
11168
11169 2010-01-10  Bruno Haible  <bruno@clisp.org>
11170
11171         nproc: Work better on Linux when /proc and /sys are not mounted.
11172         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
11173         as lower bound when, on glibc/Linux systems,
11174         sysconf (_SC_NPROCESSORS_CONF) returns 1.
11175         Suggested by Pádraig Brady <P@draigbrady.com>.
11176         Reported by Dmitry V. Levin <ldv@altlinux.org>.
11177
11178         nproc: Refactor.
11179         * lib/nproc.c (num_processors_via_affinity_mask): New function,
11180         extracted from num_processors.
11181         (num_processors): Call it.
11182
11183 2010-01-11  Jim Meyering  <meyering@redhat.com>
11184
11185         utimecmp: avoid new warning from upcoming gcc-4.5.0
11186         * lib/utimecmp.c (BILLION): Define using #define rather than an
11187         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
11188
11189 2010-01-11  Eric Blake  <ebb9@byu.net>
11190
11191         math: add portability warnings for classification macros
11192         * modules/math (Depends-on): Add warn-on-use.
11193         (Makefile.am): Provide new substitutions.
11194         * m4/math_h.m4 (gl_MATH_H): Require inline.
11195         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
11196         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
11197         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
11198         implement warnings.
11199
11200         unistd: warn on use of environ without module
11201         * modules/unistd (Depends-on): Add warn-on-use.
11202         (Makefile.am): Provide new substitutions.
11203         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
11204         * lib/unistd.in.h (environ): Wrap with a warning helper function.
11205
11206         stdio: warn on suspicious uses
11207         * modules/stdio (Depends-on): Add warn-on-use.
11208         (Makefile.am): Provide new substitutions.
11209         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
11210         fseeko.
11211         * lib/stdio.in.h (gets): Always warn on use.
11212         (fseek, ftell): Adjust when warnings are issued, and honor
11213         _GL_NO_LARGE_FILES as a way to silence the warning.
11214         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
11215         any warning about large file offsets.
11216         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
11217         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
11218         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
11219         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
11220         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
11221         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
11222         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
11223         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
11224
11225         warn-on-use: new module
11226         * modules/warn-on-use: New file.
11227         * build-aux/warn-on-use.h: Likewise.
11228         * m4/warn-on-use.m4: Likewise.
11229         * MODULES.html.sh (Support for building): Mention it.
11230
11231 2010-01-10  Bruno Haible  <bruno@clisp.org>
11232
11233         Tests for module 'unistr/u32-strdup'.
11234         * modules/unistr/u32-strdup-tests: New file.
11235         * tests/unistr/test-u32-strdup.c: New file.
11236
11237         Tests for module 'unistr/u16-strdup'.
11238         * modules/unistr/u16-strdup-tests: New file.
11239         * tests/unistr/test-u16-strdup.c: New file.
11240
11241         Tests for module 'unistr/u8-strdup'.
11242         * modules/unistr/u8-strdup-tests: New file.
11243         * tests/unistr/test-u8-strdup.c: New file.
11244         * tests/unistr/test-strdup.h: New file.
11245
11246         Tests for module 'unistr/u32-strncmp'.
11247         * modules/unistr/u32-strncmp-tests: New file.
11248         * tests/unistr/test-u32-strncmp.c: New file.
11249
11250         Tests for module 'unistr/u16-strncmp'.
11251         * modules/unistr/u16-strncmp-tests: New file.
11252         * tests/unistr/test-u16-strncmp.c: New file.
11253
11254         Tests for module 'unistr/u8-strncmp'.
11255         * modules/unistr/u8-strncmp-tests: New file.
11256         * tests/unistr/test-u8-strncmp.c: New file.
11257         * tests/unistr/test-strncmp.h: New file.
11258
11259         Tests for module 'unistr/u32-strcoll'.
11260         * modules/unistr/u32-strcoll-tests: New file.
11261         * tests/unistr/test-u32-strcoll.c: New file.
11262
11263         Tests for module 'unistr/u16-strcoll'.
11264         * modules/unistr/u16-strcoll-tests: New file.
11265         * tests/unistr/test-u16-strcoll.c: New file.
11266
11267         Tests for module 'unistr/u8-strcoll'.
11268         * modules/unistr/u8-strcoll-tests: New file.
11269         * tests/unistr/test-u8-strcoll.c: New file.
11270
11271         Tests for module 'unistr/u32-strcmp'.
11272         * modules/unistr/u32-strcmp-tests: New file.
11273         * tests/unistr/test-u32-strcmp.c: New file.
11274         * tests/unistr/test-u32-strcmp.h: New file.
11275
11276         Tests for module 'unistr/u16-strcmp'.
11277         * modules/unistr/u16-strcmp-tests: New file.
11278         * tests/unistr/test-u16-strcmp.c: New file.
11279         * tests/unistr/test-u16-strcmp.h: New file.
11280
11281         Tests for module 'unistr/u8-strcmp'.
11282         * modules/unistr/u8-strcmp-tests: New file.
11283         * tests/unistr/test-u8-strcmp.c: New file.
11284         * tests/unistr/test-u8-strcmp.h: New file.
11285         * tests/unistr/test-strcmp.h: New file.
11286
11287         Tests for module 'unistr/u32-strncat'.
11288         * modules/unistr/u32-strncat-tests: New file.
11289         * tests/unistr/test-u32-strncat.c: New file.
11290
11291         Tests for module 'unistr/u16-strncat'.
11292         * modules/unistr/u16-strncat-tests: New file.
11293         * tests/unistr/test-u16-strncat.c: New file.
11294
11295         Tests for module 'unistr/u8-strncat'.
11296         * modules/unistr/u8-strncat-tests: New file.
11297         * tests/unistr/test-u8-strncat.c: New file.
11298         * tests/unistr/test-strncat.h: New file.
11299
11300         Tests for module 'unistr/u32-strcat'.
11301         * modules/unistr/u32-strcat-tests: New file.
11302         * tests/unistr/test-u32-strcat.c: New file.
11303
11304         Tests for module 'unistr/u16-strcat'.
11305         * modules/unistr/u16-strcat-tests: New file.
11306         * tests/unistr/test-u16-strcat.c: New file.
11307
11308         Tests for module 'unistr/u8-strcat'.
11309         * modules/unistr/u8-strcat-tests: New file.
11310         * tests/unistr/test-u8-strcat.c: New file.
11311         * tests/unistr/test-strcat.h: New file.
11312
11313         Tests for module 'unistr/u32-stpncpy'.
11314         * modules/unistr/u32-stpncpy-tests: New file.
11315         * tests/unistr/test-u32-stpncpy.c: New file.
11316
11317         Tests for module 'unistr/u16-stpncpy'.
11318         * modules/unistr/u16-stpncpy-tests: New file.
11319         * tests/unistr/test-u16-stpncpy.c: New file.
11320
11321         Tests for module 'unistr/u8-stpncpy'.
11322         * modules/unistr/u8-stpncpy-tests: New file.
11323         * tests/unistr/test-u8-stpncpy.c: New file.
11324         * tests/unistr/test-stpncpy.h: New file.
11325
11326         Tests for module 'unistr/u32-strncpy'.
11327         * modules/unistr/u32-strncpy-tests: New file.
11328         * tests/unistr/test-u32-strncpy.c: New file.
11329
11330         Tests for module 'unistr/u16-strncpy'.
11331         * modules/unistr/u16-strncpy-tests: New file.
11332         * tests/unistr/test-u16-strncpy.c: New file.
11333
11334         Tests for module 'unistr/u8-strncpy'.
11335         * modules/unistr/u8-strncpy-tests: New file.
11336         * tests/unistr/test-u8-strncpy.c: New file.
11337         * tests/unistr/test-strncpy.h: New file.
11338
11339         Tests for module 'unistr/u32-stpcpy'.
11340         * modules/unistr/u32-stpcpy-tests: New file.
11341         * tests/unistr/test-u32-stpcpy.c: New file.
11342
11343         Tests for module 'unistr/u16-stpcpy'.
11344         * modules/unistr/u16-stpcpy-tests: New file.
11345         * tests/unistr/test-u16-stpcpy.c: New file.
11346
11347         Tests for module 'unistr/u8-stpcpy'.
11348         * modules/unistr/u8-stpcpy-tests: New file.
11349         * tests/unistr/test-u8-stpcpy.c: New file.
11350         * tests/unistr/test-stpcpy.h: New file.
11351
11352         Tests for module 'unistr/u32-strcpy'.
11353         * modules/unistr/u32-strcpy-tests: New file.
11354         * tests/unistr/test-u32-strcpy.c: New file.
11355
11356         Tests for module 'unistr/u16-strcpy'.
11357         * modules/unistr/u16-strcpy-tests: New file.
11358         * tests/unistr/test-u16-strcpy.c: New file.
11359
11360         Tests for module 'unistr/u8-strcpy'.
11361         * modules/unistr/u8-strcpy-tests: New file.
11362         * tests/unistr/test-u8-strcpy.c: New file.
11363         * tests/unistr/test-strcpy.h: New file.
11364
11365         Tests for module 'unistr/u32-strnlen'.
11366         * modules/unistr/u32-strnlen-tests: New file.
11367         * tests/unistr/test-u32-strnlen.c: New file.
11368
11369         Tests for module 'unistr/u16-strnlen'.
11370         * modules/unistr/u16-strnlen-tests: New file.
11371         * tests/unistr/test-u16-strnlen.c: New file.
11372
11373         Tests for module 'unistr/u8-strnlen'.
11374         * modules/unistr/u8-strnlen-tests: New file.
11375         * tests/unistr/test-u8-strnlen.c: New file.
11376         * tests/unistr/test-strnlen.h: New file.
11377
11378         Tests for module 'unistr/u32-strlen'.
11379         * modules/unistr/u32-strlen-tests: New file.
11380         * tests/unistr/test-u32-strlen.c: New file.
11381
11382         Tests for module 'unistr/u16-strlen'.
11383         * modules/unistr/u16-strlen-tests: New file.
11384         * tests/unistr/test-u16-strlen.c: New file.
11385
11386         Tests for module 'unistr/u8-strlen'.
11387         * modules/unistr/u8-strlen-tests: New file.
11388         * tests/unistr/test-u8-strlen.c: New file.
11389
11390         Tests for module 'unistr/u32-prev'.
11391         * modules/unistr/u32-prev-tests: New file.
11392         * tests/unistr/test-u32-prev.c: New file.
11393
11394         Tests for module 'unistr/u16-prev'.
11395         * modules/unistr/u16-prev-tests: New file.
11396         * tests/unistr/test-u16-prev.c: New file.
11397
11398         Tests for module 'unistr/u8-prev'.
11399         * modules/unistr/u8-prev-tests: New file.
11400         * tests/unistr/test-u8-prev.c: New file.
11401
11402         Tests for module 'unistr/u32-next'.
11403         * modules/unistr/u32-next-tests: New file.
11404         * tests/unistr/test-u32-next.c: New file.
11405
11406         Tests for module 'unistr/u16-next'.
11407         * modules/unistr/u16-next-tests: New file.
11408         * tests/unistr/test-u16-next.c: New file.
11409
11410         Tests for module 'unistr/u8-next'.
11411         * modules/unistr/u8-next-tests: New file.
11412         * tests/unistr/test-u8-next.c: New file.
11413
11414         Tests for module 'unistr/u32-strmbtouc'.
11415         * modules/unistr/u32-strmbtouc-tests: New file.
11416         * tests/unistr/test-u32-strmbtouc.c: New file.
11417
11418         Tests for module 'unistr/u16-strmbtouc'.
11419         * modules/unistr/u16-strmbtouc-tests: New file.
11420         * tests/unistr/test-u16-strmbtouc.c: New file.
11421
11422         Tests for module 'unistr/u8-strmbtouc'.
11423         * modules/unistr/u8-strmbtouc-tests: New file.
11424         * tests/unistr/test-u8-strmbtouc.c: New file.
11425
11426         Tests for module 'unistr/u32-strmblen'.
11427         * modules/unistr/u32-strmblen-tests: New file.
11428         * tests/unistr/test-u32-strmblen.c: New file.
11429
11430         Tests for module 'unistr/u16-strmblen'.
11431         * modules/unistr/u16-strmblen-tests: New file.
11432         * tests/unistr/test-u16-strmblen.c: New file.
11433
11434         Tests for module 'unistr/u8-strmblen'.
11435         * modules/unistr/u8-strmblen-tests: New file.
11436         * tests/unistr/test-u8-strmblen.c: New file.
11437
11438         Tests for module 'unistr/u32-cpy-alloc'.
11439         * modules/unistr/u32-cpy-alloc-tests: New file.
11440         * tests/unistr/test-u32-cpy-alloc.c: New file.
11441
11442         Tests for module 'unistr/u16-cpy-alloc'.
11443         * modules/unistr/u16-cpy-alloc-tests: New file.
11444         * tests/unistr/test-u16-cpy-alloc.c: New file.
11445
11446         Tests for module 'unistr/u8-cpy-alloc'.
11447         * modules/unistr/u8-cpy-alloc-tests: New file.
11448         * tests/unistr/test-u8-cpy-alloc.c: New file.
11449         * tests/unistr/test-cpy-alloc.h: New file.
11450
11451         Tests for module 'unistr/u32-mbsnlen'.
11452         * modules/unistr/u32-mbsnlen-tests: New file.
11453         * tests/unistr/test-u32-mbsnlen.c: New file.
11454
11455         Tests for module 'unistr/u16-mbsnlen'.
11456         * modules/unistr/u16-mbsnlen-tests: New file.
11457         * tests/unistr/test-u16-mbsnlen.c: New file.
11458
11459         Tests for module 'unistr/u8-mbsnlen'.
11460         * modules/unistr/u8-mbsnlen-tests: New file.
11461         * tests/unistr/test-u8-mbsnlen.c: New file.
11462
11463         Tests for module 'unistr/u32-chr'.
11464         * modules/unistr/u32-chr-tests: New file.
11465         * tests/unistr/test-u32-chr.c: New file.
11466
11467         Tests for module 'unistr/u16-chr'.
11468         * modules/unistr/u16-chr-tests: New file.
11469         * tests/unistr/test-u16-chr.c: New file.
11470
11471         Tests for module 'unistr/u8-chr'.
11472         * modules/unistr/u8-chr-tests: New file.
11473         * tests/unistr/test-u8-chr.c: New file.
11474         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
11475
11476         Tests for module 'unistr/u32-cmp2'.
11477         * modules/unistr/u32-cmp2-tests: New file.
11478         * tests/unistr/test-u32-cmp2.c: New file.
11479
11480         Tests for module 'unistr/u16-cmp2'.
11481         * modules/unistr/u16-cmp2-tests: New file.
11482         * tests/unistr/test-u16-cmp2.c: New file.
11483
11484         Tests for module 'unistr/u8-cmp2'.
11485         * modules/unistr/u8-cmp2-tests: New file.
11486         * tests/unistr/test-u8-cmp2.c: New file.
11487         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
11488
11489         Tests for module 'unistr/u32-cmp'.
11490         * modules/unistr/u32-cmp-tests: New file.
11491         * tests/unistr/test-u32-cmp.c: New file.
11492
11493         Tests for module 'unistr/u16-cmp'.
11494         * modules/unistr/u16-cmp-tests: New file.
11495         * tests/unistr/test-u16-cmp.c: New file.
11496
11497         Tests for module 'unistr/u8-cmp'.
11498         * modules/unistr/u8-cmp-tests: New file.
11499         * tests/unistr/test-u8-cmp.c: New file.
11500         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
11501
11502         Tests for module 'unistr/u32-set'.
11503         * modules/unistr/u32-set-tests: New file.
11504         * tests/unistr/test-u32-set.c: New file.
11505
11506         Tests for module 'unistr/u16-set'.
11507         * modules/unistr/u16-set-tests: New file.
11508         * tests/unistr/test-u16-set.c: New file.
11509
11510         Tests for module 'unistr/u8-set'.
11511         * modules/unistr/u8-set-tests: New file.
11512         * tests/unistr/test-u8-set.c: New file.
11513         * tests/unistr/test-set.h: New file.
11514
11515         Tests for module 'unistr/u32-move'.
11516         * modules/unistr/u32-move-tests: New file.
11517         * tests/unistr/test-u32-move.c: New file.
11518
11519         Tests for module 'unistr/u16-move'.
11520         * modules/unistr/u16-move-tests: New file.
11521         * tests/unistr/test-u16-move.c: New file.
11522
11523         Tests for module 'unistr/u8-move'.
11524         * modules/unistr/u8-move-tests: New file.
11525         * tests/unistr/test-u8-move.c: New file.
11526         * tests/unistr/test-move.h: New file.
11527
11528         Tests for module 'unistr/u32-cpy'.
11529         * modules/unistr/u32-cpy-tests: New file.
11530         * tests/unistr/test-u32-cpy.c: New file.
11531
11532         Tests for module 'unistr/u16-cpy'.
11533         * modules/unistr/u16-cpy-tests: New file.
11534         * tests/unistr/test-u16-cpy.c: New file.
11535
11536         Tests for module 'unistr/u8-cpy'.
11537         * modules/unistr/u8-cpy-tests: New file.
11538         * tests/unistr/test-u8-cpy.c: New file.
11539         * tests/unistr/test-cpy.h: New file.
11540
11541 2010-01-09  Bruno Haible  <bruno@clisp.org>
11542
11543         Tests for module 'unistr/u32-uctomb'.
11544         * modules/unistr/u32-uctomb-tests: New file.
11545         * tests/unistr/test-u32-uctomb.c: New file.
11546
11547         Tests for module 'unistr/u16-uctomb'.
11548         * modules/unistr/u16-uctomb-tests: New file.
11549         * tests/unistr/test-u16-uctomb.c: New file.
11550
11551         Tests for module 'unistr/u8-uctomb'.
11552         * modules/unistr/u8-uctomb-tests: New file.
11553         * tests/unistr/test-u8-uctomb.c: New file.
11554
11555         Tests for module 'unistr/u32-mbtoucr'.
11556         * modules/unistr/u32-mbtoucr-tests: New file.
11557         * tests/unistr/test-u32-mbtoucr.c: New file.
11558
11559         Tests for module 'unistr/u16-mbtoucr'.
11560         * modules/unistr/u16-mbtoucr-tests: New file.
11561         * tests/unistr/test-u16-mbtoucr.c: New file.
11562
11563         Tests for module 'unistr/u8-mbtoucr'.
11564         * modules/unistr/u8-mbtoucr-tests: New file.
11565         * tests/unistr/test-u8-mbtoucr.c: New file.
11566
11567         Tests for module 'unistr/u32-mbtouc'.
11568         * modules/unistr/u32-mbtouc-tests: New file.
11569         * tests/unistr/test-u32-mbtouc.c: New file.
11570
11571         Tests for module 'unistr/u16-mbtouc'.
11572         * modules/unistr/u16-mbtouc-tests: New file.
11573         * tests/unistr/test-u16-mbtouc.c: New file.
11574
11575         Tests for module 'unistr/u8-mbtouc'.
11576         * modules/unistr/u8-mbtouc-tests: New file.
11577         * tests/unistr/test-u8-mbtouc.c: New file.
11578
11579         Tests for module 'unistr/u32-mbtouc-unsafe'.
11580         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
11581         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
11582         * tests/unistr/test-u32-mbtouc.h: New file.
11583
11584         Tests for module 'unistr/u16-mbtouc-unsafe'.
11585         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
11586         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
11587         * tests/unistr/test-u16-mbtouc.h: New file.
11588
11589         Tests for module 'unistr/u8-mbtouc-unsafe'.
11590         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
11591         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
11592         * tests/unistr/test-u8-mbtouc.h: New file.
11593
11594         Tests for module 'unistr/u32-mblen'.
11595         * modules/unistr/u32-mblen-tests: New file.
11596         * tests/unistr/test-u32-mblen.c: New file.
11597
11598         Tests for module 'unistr/u16-mblen'.
11599         * modules/unistr/u16-mblen-tests: New file.
11600         * tests/unistr/test-u16-mblen.c: New file.
11601
11602         Tests for module 'unistr/u8-mblen'.
11603         * modules/unistr/u8-mblen-tests: New file.
11604         * tests/unistr/test-u8-mblen.c: New file.
11605
11606         Tests for module 'unistr/u32-to-u16'.
11607         * modules/unistr/u32-to-u16-tests: New file.
11608         * tests/unistr/test-u32-to-u16.c: New file.
11609
11610         Tests for module 'unistr/u32-to-u8'.
11611         * modules/unistr/u32-to-u8-tests: New file.
11612         * tests/unistr/test-u32-to-u8.c: New file.
11613
11614         Tests for module 'unistr/u16-to-u32'.
11615         * modules/unistr/u16-to-u32-tests: New file.
11616         * tests/unistr/test-u16-to-u32.c: New file.
11617
11618         Tests for module 'unistr/u16-to-u8'.
11619         * modules/unistr/u16-to-u8-tests: New file.
11620         * tests/unistr/test-u16-to-u8.c: New file.
11621
11622         Tests for module 'unistr/u8-to-u32'.
11623         * modules/unistr/u8-to-u32-tests: New file.
11624         * tests/unistr/test-u8-to-u32.c: New file.
11625
11626         Tests for module 'unistr/u8-to-u16'.
11627         * modules/unistr/u8-to-u16-tests: New file.
11628         * tests/unistr/test-u8-to-u16.c: New file.
11629
11630         Tests for module 'unistr/u32-check'.
11631         * modules/unistr/u32-check-tests: New file.
11632         * tests/unistr/test-u32-check.c: New file.
11633
11634         Tests for module 'unistr/u16-check'.
11635         * modules/unistr/u16-check-tests: New file.
11636         * tests/unistr/test-u16-check.c: New file.
11637
11638         Tests for module 'unistr/u8-check'.
11639         * modules/unistr/u8-check-tests: New file.
11640         * tests/unistr/test-u8-check.c: New file.
11641
11642         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
11643         (category_equals): New function.
11644         (main): Add more tests.
11645         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
11646
11647         * tests/unictype/test-bidi_byname.c (main): Add more tests.
11648
11649 2010-01-10  Bruno Haible  <bruno@clisp.org>
11650
11651         unistr/u*-strcoll: Try harder to distinguish different strings.
11652         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
11653         compare s1 and s2 to see if they are different.
11654
11655 2010-01-10  Bruno Haible  <bruno@clisp.org>
11656
11657         unistr/u*-stpncpy: Fix the return value.
11658         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
11659         description of the return value consistent with stpncpy in glibc.
11660         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
11661         written non-NUL unit.
11662
11663 2010-01-10  Bruno Haible  <bruno@clisp.org>
11664
11665         unistr/u*-next: Add missing dependencies.
11666         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
11667         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
11668         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
11669
11670 2010-01-10  Bruno Haible  <bruno@clisp.org>
11671
11672         unistr/u8-mbsnlen: Fix return value for incomplete character.
11673         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
11674         u8_mblen.
11675         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
11676         Remove unistr/u8-mblen.
11677         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
11678         u16_mblen.
11679         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
11680         Remove unistr/u16-mblen.
11681
11682 2010-01-10  Bruno Haible  <bruno@clisp.org>
11683
11684         wchar: Fix compilation error when <wchar.h> is used from coreutils.
11685         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
11686         Reported by Brian Gough <bjg@gnu.org> and
11687         Chris Clayton <chris2553@googlemail.com> via
11688         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
11689
11690 2010-01-09  Bruno Haible  <bruno@clisp.org>
11691
11692         unistr/u16-to-u32: Reject invalid input.
11693         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
11694         u16_mbtouc.
11695         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
11696         Remove unistr/u16-mbtouc.
11697
11698         unistr/u16-to-u8: Reject invalid input.
11699         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
11700         u16_mbtouc.
11701         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
11702         Remove unistr/u16-mbtouc.
11703
11704         unistr/u8-to-u32: Reject invalid input.
11705         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
11706         u8_mbtouc.
11707         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
11708         Remove unistr/u8-mbtouc.
11709
11710         unistr/u8-to-u16: Reject invalid input.
11711         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
11712         u8_mbtouc.
11713         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
11714         Remove unistr/u8-mbtouc.
11715
11716 2010-01-09  Bruno Haible  <bruno@clisp.org>
11717
11718         Tests for module 'getlogin'.
11719         * modules/getlogin-tests: New file.
11720         * tests/test-getlogin.c: New file.
11721
11722         New module 'getlogin'.
11723         * lib/unistd.in.h (getlogin): New declaration.
11724         * lib/getlogin.c: New file.
11725         * m4/getlogin.m4: New file.
11726         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
11727         HAVE_GETLOGIN.
11728         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
11729         HAVE_GETLOGIN.
11730         * modules/getlogin: New file.
11731         * doc/posix-functions/getlogin.texi: Mention the new module.
11732         Reported by John W. Eaton <jwe@gnu.org>.
11733
11734 2010-01-09  Bruno Haible  <bruno@clisp.org>
11735
11736         getlogin_r: Support for native Windows.
11737         * lib/getlogin_r.c: Include <windows.h>
11738         (getlogin_r): Implement for native Windows.
11739         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
11740         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
11741         via John W. Eaton <jwe@gnu.org>.
11742
11743 2010-01-09  Bruno Haible  <bruno@clisp.org>
11744
11745         getlogin_r: Small fixes.
11746         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
11747         succeeds.
11748         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
11749         before testing whether getlogin_r is declared. No need to set
11750         HAVE_DECL_GETLOGIN_R to 1.
11751         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
11752
11753 2010-01-09  Bruno Haible  <bruno@clisp.org>
11754
11755         * lib/unistd.in.h (getlogin_r): Add comment.
11756
11757 2010-01-09  Bruno Haible  <bruno@clisp.org>
11758
11759         Tests for module 'getlogin_r'.
11760         * modules/getlogin_r-tests: New file.
11761         * tests/test-getlogin_r.c: New file.
11762
11763 2010-01-09  Jim Meyering  <meyering@redhat.com>
11764
11765         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
11766         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
11767         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
11768
11769 2010-01-08  Simon Josefsson  <simon@josefsson.org>
11770
11771         * lib/dup2.c (rpl_dup2): Improve comment.
11772
11773 2010-01-08  Eric Blake  <ebb9@byu.net>
11774
11775         maint.mk: allow packages to add makefile @@ exceptions
11776         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
11777         (sc_makefile_check): Rename...
11778         (sc_makefile_at_at_check): ...to this, and use hook.
11779
11780         dup2: work around mingw bug
11781         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
11782         Reported by Simon Josefsson.
11783
11784 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
11785
11786         glob: Fix C++ compilation.
11787         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
11788         C++.
11789
11790 2010-01-07  Bruno Haible  <bruno@clisp.org>
11791
11792         Fix indentation of wctype.in.h, broken since 2007-01-06.
11793         * lib/wctype.in.h: Fix indentation of preprocessor directives.
11794
11795 2010-01-07  Bruno Haible  <bruno@clisp.org>
11796
11797         mbslen: Avoid collision with system function.
11798         * lib/string.in.h [MirBSD]: Include <wchar.h>.
11799         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
11800         * m4/mbslen.m4: New file.
11801         * modules/mbslen (Files): Add it.
11802         (configure.ac): Invoke gl_MBSLEN.
11803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
11804         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
11805         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
11806         via Ian Beckwith <ianb@erislabs.net>.
11807
11808 2010-01-07  Bruno Haible  <bruno@clisp.org>
11809
11810         dirent: Document the last fix.
11811         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
11812
11813 2010-01-07  Bruno Haible  <bruno@clisp.org>
11814
11815         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
11816         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
11817         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
11818         va_list are defined.
11819         * doc/posix-headers/stdio.texi: Document the bug of missing types.
11820         Reported by Eric Blake.
11821
11822 2010-01-07  Bruno Haible  <bruno@clisp.org>
11823
11824         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
11825         * modules/xlist (Depends-on): Add 'list',
11826         * modules/xoset (Depends-on): Add 'oset'.
11827         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11828
11829 2010-01-07  Bruno Haible  <bruno@clisp.org>
11830
11831         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
11832         * doc/posix-functions/strncasecmp.texi: Likewise.
11833
11834 2010-01-07  Bruno Haible  <bruno@clisp.org>
11835
11836         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
11837
11838 2010-01-07  John W. Eaton  <jwe@octave.org>
11839
11840         wctype: allow C++ use
11841         * lib/wctype.in.h: Add extern "C" block for C++.
11842
11843 2010-01-06  Eric Blake  <ebb9@byu.net>
11844
11845         maint.mk: detect incorrect GFDL usage
11846         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
11847
11848 2010-01-06  Jim Meyering  <meyering@redhat.com>
11849         and Eric Blake  <ebb9@byu.net>
11850
11851         maint.mk: ignore multi-line copyright in NEWS
11852         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
11853
11854 2010-01-06  Eric Blake  <ebb9@byu.net>
11855
11856         select: add missing dependency
11857         * modules/select-tests (Depends-on): Move sockets dependency...
11858         * modules/select (Depends-on): ...here.
11859         Reported by Ian Beckwith.
11860
11861         doc: regenerate INSTALL
11862         * doc/INSTALL: Reflect recent autoconf update.
11863         * doc/INSTALL.ISO: Likewise.
11864         * doc/INSTALL.UTF-8: Likewise.
11865
11866         pread: fix compilation on glibc
11867         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
11868         Reported by Ralf Wildenhues.
11869
11870         dirent: fix test failure
11871         * lib/dirent.in.h (includes): Guarantee ino_t.
11872         Reported by Ralf Wildenhues.
11873
11874 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
11875
11876         linkat, renameat: avoid bad free
11877         * lib/at-func2.c (at_func2): Fix typo.
11878         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
11879
11880 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11881
11882         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
11883         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
11884         to avoid failure of symlink test later.
11885
11886 2010-01-06  Eric Blake  <ebb9@byu.net>
11887
11888         stdio, unistd: guarantee ssize_t
11889         * lib/unistd.in.h (includes): Ensure that types required by POSIX
11890         2008 are exposed when needed.
11891         * lib/stdio.in.h (includes): Likewise.
11892         Reported by Ralf Wildenhues.
11893
11894 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
11895
11896         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
11897         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
11898         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
11899
11900 2010-01-06  Jim Meyering  <meyering@redhat.com>
11901
11902         readtokens: this module *does* require xalloc.h
11903         It uses only functions that were omitted by the old syntax-check rule.
11904         * lib/readtokens.c: Include "xalloc.h" once again.
11905         * modules/readtokens (Depends-on): Add xalloc.
11906         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
11907
11908 2010-01-05  Eric Blake  <ebb9@byu.net>
11909
11910         maint: support 'make announcement' from a VPATH build
11911         * top/maint.mk (announcement): Look for correct NEWS file.
11912
11913 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
11914
11915         utimens (fdutimens): ignore a negative FD, per contract
11916         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
11917         when we have a valid file descriptor.  Otherwise, using a brand
11918         new glibc (with just-patched futimens that now fails with EBADF)
11919         would cause this function to fail with ENOSYS.
11920         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
11921         See also http://bugzilla.redhat.com/552320.
11922
11923 2010-01-05  Eric Blake  <ebb9@byu.net>
11924
11925         strcase: document what it provides
11926         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
11927         gnulib module.
11928         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
11929         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
11930
11931 2010-01-05  Jim Meyering  <meyering@redhat.com>
11932
11933         maint: remove useless inclusions of "xalloc.h"
11934         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
11935         * lib/readtokens.c: Likewise.
11936         * lib/same.c: Likewise.
11937         * modules/getloadavg (Depends-on): Remove xalloc.
11938         * modules/readtokens: Likewise.
11939         * modules/same: Likewise.
11940
11941         maint.mk: include 4 more function names in alloca.h-checking regexp
11942         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
11943         regexp.  Before, we would give a false-positive (saying alloca.h
11944         is included unnecessarily) when the only uses involved omitted symbols.
11945
11946         xalloc.h: use consistent formatting
11947         * lib/xalloc.h: Move declarations to start in the first column.
11948
11949 2010-01-05  Eric Blake  <ebb9@byu.net>
11950
11951         mkdir: avoid xalloc
11952         * lib/mkdir.c (includes): Drop unused header.
11953         Reported by John W. Eaton.
11954
11955 2010-01-04  Jim Meyering  <meyering@redhat.com>
11956
11957         nl_langinfo: avoid configure-time syntax error
11958         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
11959         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
11960         the empty string.  Don't let that provoke a shell syntax error.
11961
11962         regcomp, regexec, fnmatch: avoid array bounds read error
11963         * lib/regcomp.c (build_equiv_class): From glibc:
11964         Use only the low 24 bits of a findidx return value as an index
11965         into the weights array.  Patch by Ulrich Drepper:
11966         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
11967         * lib/regexec.c (check_node_accept_bytes): Likewise.
11968         * lib/fnmatch_loop.c (FCT): Likewise.
11969
11970         regcomp: skip collseq lookup when there are no rules
11971         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
11972         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
11973
11974         regcomp: recognize ill-formed { } expressions
11975         * lib/regcomp.c (parse_dup_op): From glibc:
11976         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
11977
11978         regcomp: fix typo in comment
11979         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
11980         s/satisfy/satisfies/.
11981
11982         regcomp: sync from glibc: remove dead store
11983         * lib/regcomp.c (duplicate_node_closure): Remove useless
11984         search_duplicated_node call and dead store.
11985
11986         regcomp: sync from glibc; always use nl_langinfo
11987         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
11988         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
11989         * modules/regex (Depends-on): Add nl_langinfo.
11990
11991 2010-01-04  Eric Blake  <ebb9@byu.net>
11992
11993         fdopendir: fix configure test
11994         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
11995
11996 2010-01-01  Bruno Haible  <bruno@clisp.org>
11997
11998         wchar: Remove unused configure check.
11999         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
12000
12001 2010-01-01  Eric Blake  <ebb9@byu.net>
12002
12003         headers: make check of system header explicit
12004         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
12005         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
12006         ourselves.
12007         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
12008         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12009         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
12010         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
12011         internals.
12012         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
12013         missing.
12014         Suggested by Bruno Haible.
12015
12016 2010-01-01  Jim Meyering  <meyering@redhat.com>
12017
12018         ChangeLog: tweak to eliminate unnecessary copyright line
12019         * ChangeLog: Remove a copyright line that was mistakenly updated
12020         by today's update-copyright run.  Reported by Eric Blake.
12021
12022         test-update-copyright: don't let envvar setting cause test failure
12023         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
12024
12025 2010-01-01  Bruno Haible  <bruno@clisp.org>
12026
12027         localename: Avoid gcc warning.
12028         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
12029         function if it is not used.
12030
12031 2010-01-01  Jim Meyering  <meyering@redhat.com>
12032
12033         update nearly all FSF copyright year lists to include 2010
12034         Use the same procedure as for 2009, outlined in
12035         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
12036
12037         version-etc: set COPYRIGHT_YEAR to 2010
12038         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
12039
12040 2009-12-31  Eric Blake  <ebb9@byu.net>
12041
12042         doc: correct availability of cygwin 1.5.x getopt
12043         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
12044         variables.
12045         * doc/posix-functions/opterr.texi (opterr): Likewise.
12046         * doc/posix-functions/optind.texi (optind): Likewise.
12047         * doc/posix-functions/optopt.texi (optopt): Likewise.
12048         * doc/posix-functions/tzname.texi (tzname): Likewise.
12049
12050         openat: update maintainer
12051         * modules/openat (Maintainer): Add myself.
12052
12053         utimens: avoid shadowing warning
12054         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
12055         buffers into one, to avoid shadowing, as well as avoiding a
12056         redundant stat.
12057         Reported by Jim Meyering.
12058
12059         test-dup2: avoid compiler warning
12060         * tests/test-dup2.c (is_inheritable): Only define if used.
12061
12062 2010-01-01  Bruno Haible  <bruno@clisp.org>
12063
12064         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
12065         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
12066         defined, use wctomb instead of wcrtomb.
12067
12068 2010-01-01  Bruno Haible  <bruno@clisp.org>
12069
12070         iconv: Reject native Solaris iconv.
12071         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
12072         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
12073
12074 2009-12-31  Bruno Haible  <bruno@clisp.org>
12075
12076         * tests/test-signal.c (main): Remove test of 'SIG'.
12077
12078 2009-12-31  Bruno Haible  <bruno@clisp.org>
12079
12080         spawn: Fix incomplete fix.
12081         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
12082         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
12083         warnings for GNULIB_POSIXCHECK again.
12084         Reported by Eric Blake.
12085
12086 2009-12-31  Bruno Haible  <bruno@clisp.org>
12087
12088         Avoid namespace pollution on glibc systems.
12089         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
12090         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
12091         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
12092         glibc systems.
12093
12094 2009-12-31  Bruno Haible  <bruno@clisp.org>
12095
12096         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
12097         (gl_REPLACE_WCHAR_H): Turn into a no-op.
12098         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
12099         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
12100         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
12101         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
12102         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
12103
12104 2009-12-31  Bruno Haible  <bruno@clisp.org>
12105
12106         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
12107         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
12108         afterwards.
12109
12110 2009-12-31  Bruno Haible  <bruno@clisp.org>
12111
12112         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
12113         SYS_UTSNAME_H.
12114
12115 2009-12-31  Bruno Haible  <bruno@clisp.org>
12116
12117         spawn: Fix misapplied patch.
12118         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
12119         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
12120         warnings for GNULIB_POSIXCHECK.
12121
12122 2009-12-31  Bruno Haible  <bruno@clisp.org>
12123
12124         times: Update after sys_times changed.
12125         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
12126         * modules/times (Files): Add it.
12127         (configure.ac): Invoke gl_FUNC_TIMES.
12128
12129 2009-12-31  Bruno Haible  <bruno@clisp.org>
12130
12131         Use AC_C_INLINE where necessary.
12132         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
12133         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
12134         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
12135         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
12136         * m4/mbfile.m4 (gl_MBFILE): Likewise.
12137         * m4/mbiter.m4 (gl_MBITER): Likewise.
12138         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12139         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
12140         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
12141         * modules/u64 (configure.ac): Likewise.
12142
12143 2009-12-31  Bruno Haible  <bruno@clisp.org>
12144
12145         Use AC_C_INLINE instead of module 'inline' where possible.
12146         * modules/inline (Description): Clarify purpose.
12147         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
12148         * modules/count-one-bits (Depends-on): Remove inline.
12149         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
12150         * modules/openat (Depends-on): Remove inline.
12151         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
12152         instead of depending on module 'inline'.
12153         * modules/filevercmp (Depends-on, configure.ac): Likewise.
12154         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
12155         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
12156         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
12157         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
12158         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
12159         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
12160         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
12161         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
12162         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
12163         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
12164         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
12165         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
12166         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
12167         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
12168         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
12169         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
12170         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
12171         Likewise.
12172         * modules/unictype/property-ascii-hex-digit (Depends-on,
12173         configure.ac): Likewise.
12174         * modules/unictype/property-bidi-arabic-digit (Depends-on,
12175         configure.ac): Likewise.
12176         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
12177         configure.ac): Likewise.
12178         * modules/unictype/property-bidi-block-separator (Depends-on,
12179         configure.ac): Likewise.
12180         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
12181         configure.ac): Likewise.
12182         * modules/unictype/property-bidi-common-separator (Depends-on,
12183         configure.ac): Likewise.
12184         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
12185         Likewise.
12186         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
12187         configure.ac): Likewise.
12188         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
12189         configure.ac): Likewise.
12190         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
12191         configure.ac): Likewise.
12192         * modules/unictype/property-bidi-european-digit (Depends-on,
12193         configure.ac): Likewise.
12194         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
12195         configure.ac): Likewise.
12196         * modules/unictype/property-bidi-left-to-right (Depends-on,
12197         configure.ac): Likewise.
12198         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
12199         configure.ac): Likewise.
12200         * modules/unictype/property-bidi-other-neutral (Depends-on,
12201         configure.ac): Likewise.
12202         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
12203         Likewise.
12204         * modules/unictype/property-bidi-segment-separator (Depends-on,
12205         configure.ac): Likewise.
12206         * modules/unictype/property-bidi-whitespace (Depends-on,
12207         configure.ac): Likewise.
12208         * modules/unictype/property-combining (Depends-on, configure.ac):
12209         Likewise.
12210         * modules/unictype/property-composite (Depends-on, configure.ac):
12211         Likewise.
12212         * modules/unictype/property-currency-symbol (Depends-on,
12213         configure.ac): Likewise.
12214         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
12215         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
12216         Likewise.
12217         * modules/unictype/property-default-ignorable-code-point (Depends-on,
12218         configure.ac): Likewise.
12219         * modules/unictype/property-deprecated (Depends-on, configure.ac):
12220         Likewise.
12221         * modules/unictype/property-diacritic (Depends-on, configure.ac):
12222         Likewise.
12223         * modules/unictype/property-extender (Depends-on, configure.ac):
12224         Likewise.
12225         * modules/unictype/property-format-control (Depends-on, configure.ac):
12226         Likewise.
12227         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
12228         Likewise.
12229         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
12230         Likewise.
12231         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
12232         Likewise.
12233         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
12234         Likewise.
12235         * modules/unictype/property-hyphen (Depends-on, configure.ac):
12236         Likewise.
12237         * modules/unictype/property-id-continue (Depends-on, configure.ac):
12238         Likewise.
12239         * modules/unictype/property-id-start (Depends-on, configure.ac):
12240         Likewise.
12241         * modules/unictype/property-ideographic (Depends-on, configure.ac):
12242         Likewise.
12243         * modules/unictype/property-ids-binary-operator (Depends-on,
12244         configure.ac): Likewise.
12245         * modules/unictype/property-ids-trinary-operator (Depends-on,
12246         configure.ac): Likewise.
12247         * modules/unictype/property-ignorable-control (Depends-on,
12248         configure.ac): Likewise.
12249         * modules/unictype/property-iso-control (Depends-on, configure.ac):
12250         Likewise.
12251         * modules/unictype/property-join-control (Depends-on, configure.ac):
12252         Likewise.
12253         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
12254         Likewise.
12255         * modules/unictype/property-line-separator (Depends-on, configure.ac):
12256         Likewise.
12257         * modules/unictype/property-logical-order-exception (Depends-on,
12258         configure.ac): Likewise.
12259         * modules/unictype/property-lowercase (Depends-on, configure.ac):
12260         Likewise.
12261         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
12262         * modules/unictype/property-non-break (Depends-on, configure.ac):
12263         Likewise.
12264         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
12265         Likewise.
12266         * modules/unictype/property-numeric (Depends-on, configure.ac):
12267         Likewise.
12268         * modules/unictype/property-other-alphabetic (Depends-on,
12269         configure.ac): Likewise.
12270         * modules/unictype/property-other-default-ignorable-code-point
12271         (Depends-on, configure.ac): Likewise.
12272         * modules/unictype/property-other-grapheme-extend (Depends-on,
12273         configure.ac): Likewise.
12274         * modules/unictype/property-other-id-continue (Depends-on,
12275         configure.ac): Likewise.
12276         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
12277         Likewise.
12278         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
12279         Likewise.
12280         * modules/unictype/property-other-math (Depends-on, configure.ac):
12281         Likewise.
12282         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
12283         Likewise.
12284         * modules/unictype/property-paired-punctuation (Depends-on,
12285         configure.ac): Likewise.
12286         * modules/unictype/property-paragraph-separator (Depends-on,
12287         configure.ac): Likewise.
12288         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
12289         Likewise.
12290         * modules/unictype/property-pattern-white-space (Depends-on,
12291         configure.ac): Likewise.
12292         * modules/unictype/property-private-use (Depends-on, configure.ac):
12293         Likewise.
12294         * modules/unictype/property-punctuation (Depends-on, configure.ac):
12295         Likewise.
12296         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
12297         Likewise.
12298         * modules/unictype/property-radical (Depends-on, configure.ac):
12299         Likewise.
12300         * modules/unictype/property-sentence-terminal (Depends-on,
12301         configure.ac): Likewise.
12302         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
12303         Likewise.
12304         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
12305         * modules/unictype/property-terminal-punctuation (Depends-on,
12306         configure.ac): Likewise.
12307         * modules/unictype/property-titlecase (Depends-on, configure.ac):
12308         Likewise.
12309         * modules/unictype/property-unassigned-code-value (Depends-on,
12310         configure.ac): Likewise.
12311         * modules/unictype/property-unified-ideograph (Depends-on,
12312         configure.ac): Likewise.
12313         * modules/unictype/property-uppercase (Depends-on, configure.ac):
12314         Likewise.
12315         * modules/unictype/property-variation-selector (Depends-on,
12316         configure.ac): Likewise.
12317         * modules/unictype/property-white-space (Depends-on, configure.ac):
12318         Likewise.
12319         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
12320         Likewise.
12321         * modules/unictype/property-xid-start (Depends-on, configure.ac):
12322         Likewise.
12323         * modules/unictype/property-zero-width (Depends-on, configure.ac):
12324         Likewise.
12325         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
12326         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
12327         Likewise.
12328
12329 2009-12-31  Bruno Haible  <bruno@clisp.org>
12330
12331         Remove unnecessary AC_C_INLINE invocation.
12332         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
12333         since 2009-08-21.
12334
12335 2009-12-31  Jim Meyering  <meyering@redhat.com>
12336
12337         maint.mk: don't require explicit gpg_key_ID in cfg.mk
12338         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
12339         With this change, we can all remove the gpg_key_ID = ... definition
12340         from our respective cfg.mk files.
12341
12342         maint.mk: create announcement template in ~/, not in /tmp
12343         * top/maint.mk (emit_upload_commands): Adjust.
12344         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
12345         Remove temporary file, .ci-msg.
12346
12347 2009-12-31  Eric Blake  <ebb9@byu.net>
12348
12349         link-warning: always build headers with link warnings
12350         * modules/arpa_inet (Makefile.am): Always build replacement
12351         header.
12352         * modules/ctype (Makefile.am): Likewise.
12353         * modules/dirent (Makefile.am): Likewise.
12354         * modules/inttypes (Makefile.am): Likewise.
12355         * modules/langinfo (Makefile.am): Likewise.
12356         * modules/locale (Makefile.am): Likewise.
12357         * modules/spawn (Makefile.am): Likewise.
12358         * modules/sys_file (Makefile.am): Likewise.
12359         * modules/sys_ioctl (Makefile.am): Likewise.
12360         * modules/sys_select (Makefile.am): Likewise.
12361         * modules/sys_socket (Makefile.am): Likewise.
12362         * modules/sys_times (Makefile.am): Likewise.
12363         * modules/sys_utsname (Makefile.am): Likewise.
12364         * modules/sys_wait (Makefile.am): Likewise.
12365         * modules/wchar (Makefile.am): Likewise.
12366         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
12367         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
12368         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
12369         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
12370         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
12371         Likewise.
12372         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
12373         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
12374         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
12375         Likewise.
12376         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
12377         Likewise.
12378         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
12379         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
12380         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
12381         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12382         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
12383         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
12384         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
12385         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
12386         (gl_WCHAR_H_DEFAULTS): Likewise.
12387
12388 2009-12-31  Eric Blake  <ebb9@byu.net>
12389
12390         signal, spawn: use link warnings
12391         * lib/signal.in.h (sigset_t): Make unconditional.
12392         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
12393         (sigpending, sigprocmask, sigaction): Add link warnings.
12394         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
12395         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
12396         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
12397         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
12398         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
12399         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
12400         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
12401         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
12402         (posix_spawn_file_actions_destroy)
12403         (posix_spawn_file_actions_addopen)
12404         (posix_spawn_file_actions_addclose)
12405         (posix_spawn_file_actions_adddup2): Likewise.
12406         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
12407         * tests/test-signal.c (main): Enhance test.
12408
12409         spawn: improve wrapper support
12410         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
12411         (gl_SPAWN_H_DEFAULTS): New defaults.
12412         * modules/spawn (Makefile.am): Substitute them.
12413         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
12414         Only declare if missing or broken.
12415
12416         sys_times, sys_utsname: use include_next
12417         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
12418         header.
12419         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
12420         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
12421         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
12422         * modules/sys_times (Depends-on): Add include_next.
12423         (Makefile.am): Substitute additional values.
12424         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
12425         * lib/sys_times.in.h (includes): Include native header, if
12426         available.
12427         * lib/sys_utsname.in.h (includes): Likewise.
12428         * tests/test-sys_times.c (main): Enhance test.
12429
12430         fdutimensat: revert prior patch
12431         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
12432         utimens.h.
12433         Reported by Bruno Haible.
12434
12435 2009-12-30  Eric Blake  <ebb9@byu.net>
12436
12437         sys_wait: drop link-warning dependency
12438         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
12439         link-warning efforts.
12440         * lib/sys_wait.in.h: Likewise.
12441
12442         fdutimensat: remove bogus dependency
12443         * modules/fdutimensat (Depends-on): Drop inline.
12444
12445         unistd: fix typo
12446         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
12447
12448 2009-12-30  Bruno Haible  <bruno@clisp.org>
12449
12450         Fix compilation error with Solaris cc.
12451         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
12452         * lib/unicase/u16-is-invariant.c: Likewise.
12453         * lib/unicase/u32-is-invariant.c: Likewise.
12454         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
12455
12456 2009-12-30  Bruno Haible  <bruno@clisp.org>
12457
12458         Fix test crash.
12459         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
12460         locales.
12461         Reported by Simon Josefsson <simon@josefsson.org>.
12462
12463 2009-12-30  Bruno Haible  <bruno@clisp.org>
12464
12465         Fix compilation error on most platforms.
12466         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
12467         Reported by Simon Josefsson <simon@josefsson.org>
12468         and Nelson H. F. Beebe <beebe@math.utah.edu>.
12469
12470 2009-12-30  Eric Blake  <ebb9@byu.net>
12471
12472         futimens, utimensat: work around ntfs-3g bug
12473         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
12474         a ctime bug is present, and expand workaround to cover ntfs-3g.
12475         * lib/utimens.c (fdutimens, lutimens): Likewise.
12476         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
12477         (validate_timespec): Adjust return value.
12478         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
12479         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12480         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
12481
12482 2009-12-29  Eric Blake  <ebb9@byu.net>
12483
12484         link-warning: make usage consistent
12485         * modules/ctype (Depends-on): Add link-warning.
12486         (Makefile.am): Update rules accordingly.
12487         * modules/langinfo (Depends-on, Makefile.am): Likewise.
12488         * modules/locale (Depends-on, Makefile.am): Likewise.
12489         * modules/sys_file (Makefile.am): Likewise.
12490         * modules/getopt-posix (Makefile.am): Delete unused link warning
12491         efforts.
12492         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
12493         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
12494         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
12495         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
12496
12497         stdio: remove unused variables
12498         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
12499         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
12500         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
12501
12502         tests: test more substitute headers
12503         * modules/ctype-tests: New file.
12504         * modules/dirent-tests: Likewise.
12505         * modules/spawn-tests: Likewise.
12506         * modules/sys_file-tests: Likewise.
12507         * modules/sys_ioctl-tests: Likewise.
12508         * modules/sys_wait-tests: Likewise.
12509         * tests/test-ctype.c: Likewise.
12510         * tests/test-dirent.c: Likewise.
12511         * tests/test-spawn.c: Likewise.
12512         * tests/test-sys_file.c: Likewise.
12513         * tests/test-sys_ioctl.c: Likewise.
12514         * tests/test-sys_wait.c: Likewise.
12515         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
12516         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
12517         whether or not flock is in use.
12518
12519         tests: remove License section from module
12520         * modules/arpa_inet-tests: Remove unneeded section.
12521         * modules/byteswap-tests: Likewise.
12522         * modules/ceilf-tests: Likewise.
12523         * modules/ceill-tests: Likewise.
12524         * modules/crypto/des-tests: Likewise.
12525         * modules/crypto/gc-arcfour-tests: Likewise.
12526         * modules/crypto/gc-arctwo-tests: Likewise.
12527         * modules/crypto/gc-des-tests: Likewise.
12528         * modules/crypto/gc-hmac-md5-tests: Likewise.
12529         * modules/crypto/gc-hmac-sha1-tests: Likewise.
12530         * modules/crypto/gc-md2-tests: Likewise.
12531         * modules/crypto/gc-md4-tests: Likewise.
12532         * modules/crypto/gc-md5-tests: Likewise.
12533         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
12534         * modules/crypto/gc-rijndael-tests: Likewise.
12535         * modules/crypto/gc-sha1-tests: Likewise.
12536         * modules/crypto/gc-tests: Likewise.
12537         * modules/crypto/md2-tests: Likewise.
12538         * modules/crypto/md4-tests: Likewise.
12539         * modules/fcntl-h-tests: Likewise.
12540         * modules/floorf-tests: Likewise.
12541         * modules/floorl-tests: Likewise.
12542         * modules/frexp-nolibm-tests: Likewise.
12543         * modules/frexp-tests: Likewise.
12544         * modules/frexpl-nolibm-tests: Likewise.
12545         * modules/frexpl-tests: Likewise.
12546         * modules/getaddrinfo-tests: Likewise.
12547         * modules/inttypes-tests: Likewise.
12548         * modules/isfinite-tests: Likewise.
12549         * modules/isinf-tests: Likewise.
12550         * modules/ldexpl-tests: Likewise.
12551         * modules/locale-tests: Likewise.
12552         * modules/math-tests: Likewise.
12553         * modules/netdb-tests: Likewise.
12554         * modules/netinet_in-tests: Likewise.
12555         * modules/printf-frexp-tests: Likewise.
12556         * modules/printf-frexpl-tests: Likewise.
12557         * modules/priv-set-tests: Likewise.
12558         * modules/random_r-tests: Likewise.
12559         * modules/round-tests: Likewise.
12560         * modules/roundf-tests: Likewise.
12561         * modules/roundl-tests: Likewise.
12562         * modules/search-tests: Likewise.
12563         * modules/select-tests: Likewise.
12564         * modules/signal-tests: Likewise.
12565         * modules/stdbool-tests: Likewise.
12566         * modules/stddef-tests: Likewise.
12567         * modules/stdint-tests: Likewise.
12568         * modules/stdio-tests: Likewise.
12569         * modules/stdlib-tests: Likewise.
12570         * modules/string-tests: Likewise.
12571         * modules/strings-tests: Likewise.
12572         * modules/sys_select-tests: Likewise.
12573         * modules/sys_socket-tests: Likewise.
12574         * modules/sys_stat-tests: Likewise.
12575         * modules/sys_time-tests: Likewise.
12576         * modules/sys_utsname-tests: Likewise.
12577         * modules/sysexits-tests: Likewise.
12578         * modules/time-tests: Likewise.
12579         * modules/trunc-tests: Likewise.
12580         * modules/truncf-tests: Likewise.
12581         * modules/truncl-tests: Likewise.
12582         * modules/tsearch-tests: Likewise.
12583         * modules/unistd-tests: Likewise.
12584         * modules/wchar-tests: Likewise.
12585         * modules/wctype-tests: Likewise.
12586
12587         tests: fix license on several tests
12588         * tests/test-des.c: Update to GPLv3+.
12589         * tests/test-flock.c: Likewise.
12590         * tests/test-fsync.c: Likewise.
12591         * tests/test-futimens.h: Likewise.
12592         * tests/test-gc-arcfour.c: Likewise.
12593         * tests/test-gc-arctwo.c: Likewise.
12594         * tests/test-gc-des.c: Likewise.
12595         * tests/test-gc-hmac-md5.c: Likewise.
12596         * tests/test-gc-hmac-sha1.c: Likewise.
12597         * tests/test-gc-md2.c: Likewise.
12598         * tests/test-gc-md4.c: Likewise.
12599         * tests/test-gc-md5.c: Likewise.
12600         * tests/test-gc-pbkdf2-sha1.c: Likewise.
12601         * tests/test-gc-rijndael.c: Likewise.
12602         * tests/test-gc-sha1.c: Likewise.
12603         * tests/test-gc.c: Likewise.
12604         * tests/test-getcwd.c: Likewise.
12605         * tests/test-link.c: Likewise.
12606         * tests/test-link.h: Likewise.
12607         * tests/test-lutimens.h: Likewise.
12608         * tests/test-md2.c: Likewise.
12609         * tests/test-md4.c: Likewise.
12610         * tests/test-mkdir.h: Likewise.
12611         * tests/test-rename.c: Likewise.
12612         * tests/test-rename.h: Likewise.
12613         * tests/test-safe-alloc.c: Likewise.
12614         * tests/test-utimens-common.h: Likewise.
12615         * tests/test-utimens.h: Likewise.
12616
12617         maint: sync license texts
12618         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
12619         * doc/gpl-3.0.texi: Revert copyright year update.
12620         * doc/lgpl-3.0.texi: Likewise.
12621
12622 2009-12-29  Jim Meyering  <meyering@redhat.com>
12623
12624         update nearly all FSF copyright year lists to include 2009
12625         The files named by the following are exempted:
12626             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
12627               test -f "$dst" && { echo "$dst"; continue; }
12628               test -d "$dst" || continue
12629               echo "$dst"/$(basename "$src")
12630             done > exempt
12631             git ls-files tests/unictype >> exempt
12632         In the remaining files, convert to all-interval notation if
12633         - there is already at least one year interval like 2000-2003
12634         - the file is maintained by me
12635         - the file is in lib/uni*/, where that style already prevails
12636         Otherwise, use update-copyright's default.
12637
12638 2009-12-29  Simon Josefsson  <simon@josefsson.org>
12639         and Eric Blake  <ebb9@byu.net>
12640
12641         tests: don't require debug system() to pass
12642         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
12643         * tests/test-rmdir.h (test_rmdir_func): Likewise.
12644         * tests/test-unlink.h (test_unlink_func): Likewise.
12645         * tests/test-fstatat.c (main): ...into callers.
12646         * tests/test-lstat.c (main): Likewise.
12647         * tests/test-rmdir.c (main): Likewise.
12648         * tests/test-unlink.c (main): Likewise.
12649         * tests/test-unlinkat.c (main): Likewise.
12650         * tests/test-areadlink-with-size.c (main): Don't require a
12651         debug-only system call to pass, aiding cross-testing to mingw.
12652         * tests/test-areadlink.c (main): Likewise.
12653         * tests/test-areadlinkat-with-size.c (main): Likewise.
12654         * tests/test-areadlinkat.c (main): Likewise.
12655         * tests/test-canonicalize-lgpl.c (main): Likewise.
12656         * tests/test-canonicalize.c (main): Likewise.
12657         * tests/test-chown.c (main): Likewise.
12658         * tests/test-fchownat.c (main): Likewise.
12659         * tests/test-lchown.c (main): Likewise.
12660         * tests/test-fdutimensat.c (main): Likewise.
12661         * tests/test-futimens.c (main): Likewise.
12662         * tests/test-link.c (main): Likewise.
12663         * tests/test-linkat.c (main): Likewise.
12664         * tests/test-mkdir.c (main): Likewise.
12665         * tests/test-mkdirat.c (main): Likewise.
12666         * tests/test-mkfifo.c (main): Likewise.
12667         * tests/test-mkfifoat.c (main): Likewise.
12668         * tests/test-mknod.c (main): Likewise.
12669         * tests/test-readlink.c (main): Likewise.
12670         * tests/test-remove.c (main): Likewise.
12671         * tests/test-rename.c (main): Likewise.
12672         * tests/test-renameat.c (main): Likewise.
12673         * tests/test-symlink.c (main): Likewise.
12674         * tests/test-symlinkat.c (main): Likewise.
12675         * tests/test-utimens.c (main): Likewise.
12676         * tests/test-utimensat.c (main): Likewise.
12677
12678 2009-12-29  Simon Josefsson  <simon@josefsson.org>
12679
12680         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
12681         on $(UNUSED_PARAMETER_H) to avoid build failure.
12682
12683 2009-12-28  Jim Meyering  <meyering@redhat.com>
12684
12685         update-copyright: you may specify a max. line length other than 72
12686         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
12687
12688         maint: use consistent FSF copyright line syntax
12689         * lib/posixtm.c: Add missing comma in FSF copyright line.
12690         * lib/posixtm.h: Likewise.
12691         * lib/getugroups.c: Add missing ", Inc.".
12692
12693         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
12694         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
12695         FSF copyright line.  Remove trailing blanks.
12696
12697 2009-12-28  Eric Blake  <ebb9@byu.net>
12698
12699         test-dup2: reduce dependencies
12700         * modules/cloexec (Configure.ac): Set witness.
12701         * modules/dup2-tests (Depends-on): Drop cloexec.
12702         * tests/test-dup2.c (main): Skip portion of test if cloexec module
12703         not present.
12704         Suggested by Bruno Haible.
12705
12706 2009-12-26  Bruno Haible  <bruno@clisp.org>
12707
12708         Remove an unneeded dependency.
12709         * modules/fseterr (Depends-on): Remove dup2.
12710
12711 2009-12-26  Eric Blake  <ebb9@byu.net>
12712
12713         tests: use macros.h in more places
12714         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
12715         (ASSERT_STREAM): Provide default of stderr.
12716         * tests/test-dirent-safer.c: Include macros.h, using alternate
12717         stream for assertions.
12718         * tests/test-dup-safer.c: Likewise.
12719         * tests/test-freopen-safer.c: Likewise.
12720         * tests/test-getopt.c: Likewise.
12721         * tests/test-openat-safer.c: Likewise.
12722         * tests/test-pipe.c: Likewise.
12723         * tests/test-popen-safer.c: Likewise.
12724         * modules/dirent-safer-tests (Files): Include macros.h.
12725         * modules/unistd-safer-tests (Files): Likewise.
12726         * modules/freopen-safer-tests (Files): Likewise.
12727         * modules/getopt-posix-tests (Files): Likewise.
12728         * modules/openat-safer-tests (Files): Likewise.
12729         * modules/pipe-tests (Files): Likewise.
12730
12731 2009-12-26  Bruno Haible  <bruno@clisp.org>
12732
12733         javacomp: Portability fix.
12734         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
12735         that it also works on Solaris.
12736
12737 2009-12-26  Bruno Haible  <bruno@clisp.org>
12738
12739         localename: Fix storage allocation of gl_locale_name_thread's result.
12740         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
12741         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
12742         all platforms that have 'uselocale'.
12743         (gl_locale_name_thread_unsafe): New function, extracted from
12744         gl_locale_name_thread.
12745         (gl_locale_name_thread): Call struniq on all platforms that have
12746         'uselocale'.
12747         * tests/test-localename.c (test_locale_name_thread): Check that the
12748         resulting strings are permanently allocated.
12749         * modules/localename-tests (Depends-on): Add strdup.
12750
12751 2009-12-26  Bruno Haible  <bruno@clisp.org>
12752
12753         * tests/test-localename.c (categories): Fill in the strings.
12754
12755 2009-12-26  Jim Meyering  <meyering@redhat.com>
12756
12757         isdir: complete the removal of m4/isdir.m4
12758         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
12759
12760         isdir: clean up, since at least grep still uses it
12761         * lib/isdir.c: Include "isdir.h".
12762         (S_ISDIR): Remove now-unneeded definition.
12763         * modules/isdir (Files): Add lib/isdir.h.
12764         * lib/isdir.h: New file, with declaration.
12765         * m4/isdir.m4: Remove file -- unneeded.
12766
12767 2009-12-25  Bruno Haible  <bruno@clisp.org>
12768
12769         selinux-h: Make generated .h files standalone.
12770         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
12771         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
12772         * lib/se-selinux.in.h: Likewise.
12773         * modules/selinux-h (Depends-on): Add unused-parameter.
12774         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
12775         selinux/selinux.h and selinux/context.h.
12776         Suggested by Eric Blake.
12777
12778 2009-12-25  Bruno Haible  <bruno@clisp.org>
12779
12780         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
12781         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
12782         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
12783         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
12784         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
12785
12786 2009-12-24  Bruno Haible  <bruno@clisp.org>
12787
12788         openat: Fix warning.
12789         * lib/openat-proc.c: Include <unistd.h>.
12790
12791 2009-12-24  Bruno Haible  <bruno@clisp.org>
12792
12793         New module 'unused-parameter'.
12794         * build-aux/unused-parameter.h: New file, extracted from earlier
12795         gnulib-common.m4.
12796         * modules/unused-parameter: New file.
12797         * lib/unistr.h: Include unused-parameter.h.
12798         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
12799         _GL_UNUSED.
12800         * modules/unistr/base (Depends-on): Add unused-parameter.
12801
12802 2009-12-24  Bruno Haible  <bruno@clisp.org>
12803
12804         Add missing dependencies to 'extensions' module.
12805         * m4/extensions.m4: Add comment.
12806         * modules/accept4 (Depends-on): Add extensions.
12807         * modules/dup3 (Depends-on): Likewise.
12808         * modules/fcntl (Depends-on): Likewise.
12809         * modules/futimens (Depends-on): Likewise.
12810         * modules/mknod (Depends-on): Likewise.
12811         * modules/pipe2 (Depends-on): Likewise.
12812         * modules/stat-time (Depends-on): Likewise.
12813         * modules/strcasestr-simple (Depends-on): Likewise.
12814         * modules/strsignal (Depends-on): Likewise.
12815         * modules/utimensat (Depends-on): Likewise.
12816         * modules/localcharset (Depends-on): Likewise. Needed because of
12817         gl_FCNTL_O_FLAGS.
12818         * modules/wcrtomb (Depends-on): Likewise. Needed because of
12819         AC_TYPE_MBSTATE_T.
12820         * modules/wcsnrtombs (Depends-on): Likewise.
12821         * modules/wcsrtombs (Depends-on): Likewise.
12822
12823 2009-12-24  Bruno Haible  <bruno@clisp.org>
12824
12825         binary-io: Avoid gcc warning due to SET_BINARY.
12826         * lib/binary-io.h (SET_BINARY): Cast the result to void.
12827         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
12828
12829 2009-12-24  Bruno Haible  <bruno@clisp.org>
12830
12831         Avoid future namespace pollution on glibc systems.
12832         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
12833         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
12834         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
12835         glibc systems.
12836
12837 2009-12-24  Bruno Haible  <bruno@clisp.org>
12838
12839         Refactor common macros used in tests.
12840         * tests/macros.h: New file.
12841         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
12842         and/or <stdlib.h>, if appropriate.
12843         (ASSERT, SIZEOF): Remove macros.
12844         * tests/test-areadlink-with-size.c: Likewise.
12845         * tests/test-areadlinkat.c: Likewise.
12846         * tests/test-areadlinkat-with-size.c: Likewise.
12847         * tests/test-argmatch.c: Likewise.
12848         * tests/test-argv-iter.c: Likewise.
12849         * tests/test-array-mergesort.c: Likewise.
12850         * tests/test-array_list.c: Likewise.
12851         * tests/test-array_oset.c: Likewise.
12852         * tests/test-avltree_list.c: Likewise.
12853         * tests/test-avltree_oset.c: Likewise.
12854         * tests/test-avltreehash_list.c: Likewise.
12855         * tests/test-base64.c: Likewise.
12856         * tests/test-binary-io.c: Likewise.
12857         * tests/test-bitrotate.c: Likewise.
12858         * tests/test-btowc.c: Likewise.
12859         * tests/test-byteswap.c: Likewise.
12860         * tests/test-c-ctype.c: Likewise.
12861         * tests/test-c-stack.c: Likewise.
12862         * tests/test-c-strcasecmp.c: Likewise.
12863         * tests/test-c-strcasestr.c: Likewise.
12864         * tests/test-c-strncasecmp.c: Likewise.
12865         * tests/test-c-strstr.c: Likewise.
12866         * tests/test-canonicalize-lgpl.c: Likewise.
12867         * tests/test-canonicalize.c: Likewise.
12868         * tests/test-carray_list.c: Likewise.
12869         * tests/test-ceilf1.c: Likewise.
12870         * tests/test-ceilf2.c: Likewise.
12871         * tests/test-ceill.c: Likewise.
12872         * tests/test-chown.c: Likewise.
12873         * tests/test-cloexec.c: Likewise.
12874         * tests/test-copy-acl.c: Likewise.
12875         * tests/test-copy-file.c: Likewise.
12876         * tests/test-count-one-bits.c: Likewise.
12877         * tests/test-dprintf-posix.c: Likewise.
12878         * tests/test-dup2.c: Likewise.
12879         * tests/test-dup3.c: Likewise.
12880         * tests/test-duplocale.c: Likewise.
12881         * tests/test-fbufmode.c: Likewise.
12882         * tests/test-fchdir.c: Likewise.
12883         * tests/test-fchownat.c: Likewise.
12884         * tests/test-fcntl-safer.c: Likewise.
12885         * tests/test-fcntl.c: Likewise.
12886         * tests/test-fdopendir.c: Likewise.
12887         * tests/test-fdutimensat.c: Likewise.
12888         * tests/test-fflush2.c: Likewise.
12889         * tests/test-file-has-acl.c: Likewise.
12890         * tests/test-filevercmp.c: Likewise.
12891         * tests/test-flock.c: Likewise.
12892         * tests/test-floorf1.c: Likewise.
12893         * tests/test-floorf2.c: Likewise.
12894         * tests/test-floorl.c: Likewise.
12895         * tests/test-fnmatch.c: Likewise.
12896         * tests/test-fopen.h: Likewise.
12897         * tests/test-fpending.c: Likewise.
12898         * tests/test-fprintf-posix.c: Likewise.
12899         * tests/test-fpurge.c: Likewise.
12900         * tests/test-freadable.c: Likewise.
12901         * tests/test-freadahead.c: Likewise.
12902         * tests/test-freading.c: Likewise.
12903         * tests/test-freadptr.c: Likewise.
12904         * tests/test-freadptr2.c: Likewise.
12905         * tests/test-freadseek.c: Likewise.
12906         * tests/test-freopen.c: Likewise.
12907         * tests/test-frexp.c: Likewise.
12908         * tests/test-frexpl.c: Likewise.
12909         * tests/test-fseek.c: Likewise.
12910         * tests/test-fseeko.c: Likewise.
12911         * tests/test-fstatat.c: Likewise.
12912         * tests/test-fstrcmp.c: Likewise.
12913         * tests/test-fsync.c: Likewise.
12914         * tests/test-ftell.c: Likewise.
12915         * tests/test-ftello.c: Likewise.
12916         * tests/test-func.c: Likewise.
12917         * tests/test-futimens.c: Likewise.
12918         * tests/test-fwritable.c: Likewise.
12919         * tests/test-fwriting.c: Likewise.
12920         * tests/test-getcwd.c: Likewise.
12921         * tests/test-getdate.c: Likewise.
12922         * tests/test-getdelim.c: Likewise.
12923         * tests/test-getdtablesize.c: Likewise.
12924         * tests/test-getgroups.c: Likewise.
12925         * tests/test-getline.c: Likewise.
12926         * tests/test-getndelim2.c: Likewise.
12927         * tests/test-glob.c: Likewise.
12928         * tests/test-hash.c: Likewise.
12929         * tests/test-i-ring.c: Likewise.
12930         * tests/test-iconv-utf.c: Likewise.
12931         * tests/test-iconv.c: Likewise.
12932         * tests/test-idpriv-drop.c: Likewise.
12933         * tests/test-idpriv-droptemp.c: Likewise.
12934         * tests/test-inet_ntop.c: Likewise.
12935         * tests/test-inet_pton.c: Likewise.
12936         * tests/test-isblank.c: Likewise.
12937         * tests/test-isfinite.c: Likewise.
12938         * tests/test-isinf.c: Likewise.
12939         * tests/test-isnan.c: Likewise.
12940         * tests/test-isnand.h: Likewise.
12941         * tests/test-isnanf.h: Likewise.
12942         * tests/test-isnanl.h: Likewise.
12943         * tests/test-lchown.c: Likewise.
12944         * tests/test-ldexpl.c: Likewise.
12945         * tests/test-link.c: Likewise.
12946         * tests/test-linkat.c: Likewise.
12947         * tests/test-linked_list.c: Likewise.
12948         * tests/test-linkedhash_list.c: Likewise.
12949         * tests/test-localename.c: Likewise.
12950         * tests/test-lseek.c: Likewise.
12951         * tests/test-lstat.c: Likewise.
12952         * tests/test-mbmemcasecmp.c: Likewise.
12953         * tests/test-mbmemcasecoll.c: Likewise.
12954         * tests/test-mbrtowc.c: Likewise.
12955         * tests/test-mbscasecmp.c: Likewise.
12956         * tests/test-mbscasestr1.c: Likewise.
12957         * tests/test-mbscasestr2.c: Likewise.
12958         * tests/test-mbscasestr3.c: Likewise.
12959         * tests/test-mbscasestr4.c: Likewise.
12960         * tests/test-mbschr.c: Likewise.
12961         * tests/test-mbscspn.c: Likewise.
12962         * tests/test-mbsinit.c: Likewise.
12963         * tests/test-mbsncasecmp.c: Likewise.
12964         * tests/test-mbsnrtowcs.c: Likewise.
12965         * tests/test-mbspbrk.c: Likewise.
12966         * tests/test-mbspcasecmp.c: Likewise.
12967         * tests/test-mbsrchr.c: Likewise.
12968         * tests/test-mbsrtowcs.c: Likewise.
12969         * tests/test-mbsspn.c: Likewise.
12970         * tests/test-mbsstr1.c: Likewise.
12971         * tests/test-mbsstr2.c: Likewise.
12972         * tests/test-mbsstr3.c: Likewise.
12973         * tests/test-memchr.c: Likewise.
12974         * tests/test-memchr2.c: Likewise.
12975         * tests/test-memcmp.c: Likewise.
12976         * tests/test-memmem.c: Likewise.
12977         * tests/test-memrchr.c: Likewise.
12978         * tests/test-mkdir.c: Likewise.
12979         * tests/test-mkdirat.c: Likewise.
12980         * tests/test-mkfifo.c: Likewise.
12981         * tests/test-mkfifoat.c: Likewise.
12982         * tests/test-mknod.c: Likewise.
12983         * tests/test-nanosleep.c: Likewise.
12984         * tests/test-nl_langinfo.c: Likewise.
12985         * tests/test-obstack-printf.c: Likewise.
12986         * tests/test-open.c: Likewise.
12987         * tests/test-openat.c: Likewise.
12988         * tests/test-pipe-filter-gi1.c: Likewise.
12989         * tests/test-pipe-filter-gi2-main.c: Likewise.
12990         * tests/test-pipe-filter-ii1.c: Likewise.
12991         * tests/test-pipe-filter-ii2-main.c: Likewise.
12992         * tests/test-pipe2.c: Likewise.
12993         * tests/test-popen.h: Likewise.
12994         * tests/test-posixtm.c: Likewise.
12995         * tests/test-pread.c: Likewise.
12996         * tests/test-printf-frexp.c: Likewise.
12997         * tests/test-printf-frexpl.c: Likewise.
12998         * tests/test-printf-posix.c: Likewise.
12999         * tests/test-priv-set.c: Likewise.
13000         * tests/test-quotearg.c: Likewise.
13001         * tests/test-random_r.c: Likewise.
13002         * tests/test-rawmemchr.c: Likewise.
13003         * tests/test-rbtree_list.c: Likewise.
13004         * tests/test-rbtree_oset.c: Likewise.
13005         * tests/test-rbtreehash_list.c: Likewise.
13006         * tests/test-readlink.c: Likewise.
13007         * tests/test-remove.c: Likewise.
13008         * tests/test-rename.c: Likewise.
13009         * tests/test-renameat.c: Likewise.
13010         * tests/test-rmdir.c: Likewise.
13011         * tests/test-round1.c: Likewise.
13012         * tests/test-roundf1.c: Likewise.
13013         * tests/test-roundl.c: Likewise.
13014         * tests/test-safe-alloc.c: Likewise.
13015         * tests/test-sameacls.c: Likewise.
13016         * tests/test-set-mode-acl.c: Likewise.
13017         * tests/test-setenv.c: Likewise.
13018         * tests/test-sigaction.c: Likewise.
13019         * tests/test-signbit.c: Likewise.
13020         * tests/test-sleep.c: Likewise.
13021         * tests/test-snprintf-posix.c: Likewise.
13022         * tests/test-snprintf.c: Likewise.
13023         * tests/test-sprintf-posix.c: Likewise.
13024         * tests/test-stat-time.c: Likewise.
13025         * tests/test-stat.c: Likewise.
13026         * tests/test-strcasestr.c: Likewise.
13027         * tests/test-strchrnul.c: Likewise.
13028         * tests/test-strerror.c: Likewise.
13029         * tests/test-striconv.c: Likewise.
13030         * tests/test-striconveh.c: Likewise.
13031         * tests/test-striconveha.c: Likewise.
13032         * tests/test-strsignal.c: Likewise.
13033         * tests/test-strstr.c: Likewise.
13034         * tests/test-strtod.c: Likewise.
13035         * tests/test-strverscmp.c: Likewise.
13036         * tests/test-symlink.c: Likewise.
13037         * tests/test-symlinkat.c: Likewise.
13038         * tests/test-trunc1.c: Likewise.
13039         * tests/test-trunc2.c: Likewise.
13040         * tests/test-truncf1.c: Likewise.
13041         * tests/test-truncf2.c: Likewise.
13042         * tests/test-truncl.c: Likewise.
13043         * tests/test-uname.c: Likewise.
13044         * tests/test-unlink.c: Likewise.
13045         * tests/test-unlinkat.c: Likewise.
13046         * tests/test-unsetenv.c: Likewise.
13047         * tests/test-usleep.c: Likewise.
13048         * tests/test-utimens.c: Likewise.
13049         * tests/test-utimensat.c: Likewise.
13050         * tests/test-vasnprintf-posix.c: Likewise.
13051         * tests/test-vasnprintf-posix2.c: Likewise.
13052         * tests/test-vasnprintf.c: Likewise.
13053         * tests/test-vasprintf-posix.c: Likewise.
13054         * tests/test-vasprintf.c: Likewise.
13055         * tests/test-vdprintf-posix.c: Likewise.
13056         * tests/test-vfprintf-posix.c: Likewise.
13057         * tests/test-vprintf-posix.c: Likewise.
13058         * tests/test-vsnprintf-posix.c: Likewise.
13059         * tests/test-vsnprintf.c: Likewise.
13060         * tests/test-vsprintf-posix.c: Likewise.
13061         * tests/test-wcrtomb.c: Likewise.
13062         * tests/test-wcsnrtombs.c: Likewise.
13063         * tests/test-wcsrtombs.c: Likewise.
13064         * tests/test-wctype.c: Likewise.
13065         * tests/test-wcwidth.c: Likewise.
13066         * tests/test-xfprintf-posix.c: Likewise.
13067         * tests/test-xmemdup0.c: Likewise.
13068         * tests/test-xprintf-posix.c: Likewise.
13069         * tests/test-xvasprintf.c: Likewise.
13070         * tests/unicase/test-locale-language.c: Likewise.
13071         * tests/unicase/test-mapping-part1.h: Likewise.
13072         * tests/unicase/test-predicate-part1.h: Likewise.
13073         * tests/unicase/test-u8-casecmp.c: Likewise.
13074         * tests/unicase/test-u8-casecoll.c: Likewise.
13075         * tests/unicase/test-u8-casefold.c: Likewise.
13076         * tests/unicase/test-u8-is-cased.c: Likewise.
13077         * tests/unicase/test-u8-is-casefolded.c: Likewise.
13078         * tests/unicase/test-u8-is-lowercase.c: Likewise.
13079         * tests/unicase/test-u8-is-titlecase.c: Likewise.
13080         * tests/unicase/test-u8-is-uppercase.c: Likewise.
13081         * tests/unicase/test-u8-tolower.c: Likewise.
13082         * tests/unicase/test-u8-totitle.c: Likewise.
13083         * tests/unicase/test-u8-toupper.c: Likewise.
13084         * tests/unicase/test-u16-casecmp.c: Likewise.
13085         * tests/unicase/test-u16-casecoll.c: Likewise.
13086         * tests/unicase/test-u16-casefold.c: Likewise.
13087         * tests/unicase/test-u16-is-cased.c: Likewise.
13088         * tests/unicase/test-u16-is-casefolded.c: Likewise.
13089         * tests/unicase/test-u16-is-lowercase.c: Likewise.
13090         * tests/unicase/test-u16-is-titlecase.c: Likewise.
13091         * tests/unicase/test-u16-is-uppercase.c: Likewise.
13092         * tests/unicase/test-u16-tolower.c: Likewise.
13093         * tests/unicase/test-u16-totitle.c: Likewise.
13094         * tests/unicase/test-u16-toupper.c: Likewise.
13095         * tests/unicase/test-u32-casecmp.c: Likewise.
13096         * tests/unicase/test-u32-casecoll.c: Likewise.
13097         * tests/unicase/test-u32-casefold.c: Likewise.
13098         * tests/unicase/test-u32-is-cased.c: Likewise.
13099         * tests/unicase/test-u32-is-casefolded.c: Likewise.
13100         * tests/unicase/test-u32-is-lowercase.c: Likewise.
13101         * tests/unicase/test-u32-is-titlecase.c: Likewise.
13102         * tests/unicase/test-u32-is-uppercase.c: Likewise.
13103         * tests/unicase/test-u32-tolower.c: Likewise.
13104         * tests/unicase/test-u32-totitle.c: Likewise.
13105         * tests/unicase/test-u32-toupper.c: Likewise.
13106         * tests/unicase/test-ulc-casecmp.c: Likewise.
13107         * tests/unicase/test-ulc-casecoll.c: Likewise.
13108         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
13109         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
13110         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
13111         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
13112         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
13113         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
13114         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
13115         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
13116         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
13117         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
13118         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
13119         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
13120         * tests/unictype/test-bidi_byname.c: Likewise.
13121         * tests/unictype/test-bidi_name.c: Likewise.
13122         * tests/unictype/test-bidi_of.c: Likewise.
13123         * tests/unictype/test-bidi_test.c: Likewise.
13124         * tests/unictype/test-block_list.c: Likewise.
13125         * tests/unictype/test-block_of.c: Likewise.
13126         * tests/unictype/test-block_test.c: Likewise.
13127         * tests/unictype/test-categ_and.c: Likewise.
13128         * tests/unictype/test-categ_and_not.c: Likewise.
13129         * tests/unictype/test-categ_byname.c: Likewise.
13130         * tests/unictype/test-categ_name.c: Likewise.
13131         * tests/unictype/test-categ_none.c: Likewise.
13132         * tests/unictype/test-categ_of.c: Likewise.
13133         * tests/unictype/test-categ_or.c: Likewise.
13134         * tests/unictype/test-categ_test_withtable.c: Likewise.
13135         * tests/unictype/test-combining.c: Likewise.
13136         * tests/unictype/test-decdigit.c: Likewise.
13137         * tests/unictype/test-digit.c: Likewise.
13138         * tests/unictype/test-mirror.c: Likewise.
13139         * tests/unictype/test-numeric.c: Likewise.
13140         * tests/unictype/test-pr_byname.c: Likewise.
13141         * tests/unictype/test-pr_test.c: Likewise.
13142         * tests/unictype/test-predicate-part1.h: Likewise.
13143         * tests/unictype/test-scripts.c: Likewise.
13144         * tests/unictype/test-sy_c_ident.c: Likewise.
13145         * tests/unictype/test-sy_java_ident.c: Likewise.
13146         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
13147         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
13148         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
13149         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
13150         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
13151         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
13152         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
13153         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
13154         * tests/uninorm/test-canonical-decomposition.c: Likewise.
13155         * tests/uninorm/test-compat-decomposition.c: Likewise.
13156         * tests/uninorm/test-composition.c: Likewise.
13157         * tests/uninorm/test-decomposing-form.c: Likewise.
13158         * tests/uninorm/test-decomposition.c: Likewise.
13159         * tests/uninorm/test-u8-nfc.c: Likewise.
13160         * tests/uninorm/test-u8-nfd.c: Likewise.
13161         * tests/uninorm/test-u8-nfkc.c: Likewise.
13162         * tests/uninorm/test-u8-nfkd.c: Likewise.
13163         * tests/uninorm/test-u8-normcmp.c: Likewise.
13164         * tests/uninorm/test-u8-normcoll.c: Likewise.
13165         * tests/uninorm/test-u16-nfc.c: Likewise.
13166         * tests/uninorm/test-u16-nfd.c: Likewise.
13167         * tests/uninorm/test-u16-nfkc.c: Likewise.
13168         * tests/uninorm/test-u16-nfkd.c: Likewise.
13169         * tests/uninorm/test-u16-normcmp.c: Likewise.
13170         * tests/uninorm/test-u16-normcoll.c: Likewise.
13171         * tests/uninorm/test-u32-nfc.c: Likewise.
13172         * tests/uninorm/test-u32-nfd.c: Likewise.
13173         * tests/uninorm/test-u32-nfkc.c: Likewise.
13174         * tests/uninorm/test-u32-nfkd.c: Likewise.
13175         * tests/uninorm/test-u32-normalize-big.c: Likewise.
13176         * tests/uninorm/test-u32-normcmp.c: Likewise.
13177         * tests/uninorm/test-u32-normcoll.c: Likewise.
13178         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
13179         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
13180         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
13181         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
13182         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
13183         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
13184         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
13185         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
13186         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
13187         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
13188         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
13189         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
13190         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
13191         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
13192         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
13193         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
13194         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
13195         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
13196         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
13197         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
13198         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
13199         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
13200         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
13201         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
13202         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
13203         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
13204         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
13205         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
13206         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
13207         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
13208         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
13209         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
13210         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
13211         * tests/uniwidth/test-u8-strwidth.c: Likewise.
13212         * tests/uniwidth/test-u8-width.c: Likewise.
13213         * tests/uniwidth/test-u16-strwidth.c: Likewise.
13214         * tests/uniwidth/test-u16-width.c: Likewise.
13215         * tests/uniwidth/test-u32-strwidth.c: Likewise.
13216         * tests/uniwidth/test-u32-width.c: Likewise.
13217         * tests/uniwidth/test-uc_width.c: Likewise.
13218         * tests/uniwidth/test-uc_width2.c: Likewise.
13219         * modules/acl-tests (Files): Add tests/macros.h.
13220         * modules/areadlink-tests (Files): Likewise.
13221         * modules/areadlink-with-size-tests (Files): Likewise.
13222         * modules/areadlinkat-tests (Files): Likewise.
13223         * modules/areadlinkat-with-size-tests (Files): Likewise.
13224         * modules/argmatch-tests (Files): Likewise.
13225         * modules/argv-iter-tests (Files): Likewise.
13226         * modules/array-list-tests (Files): Likewise.
13227         * modules/array-mergesort-tests (Files): Likewise.
13228         * modules/array-oset-tests (Files): Likewise.
13229         * modules/avltree-list-tests (Files): Likewise.
13230         * modules/avltree-oset-tests (Files): Likewise.
13231         * modules/avltreehash-list-tests (Files): Likewise.
13232         * modules/base64-tests (Files): Likewise.
13233         * modules/binary-io-tests (Files): Likewise.
13234         * modules/bitrotate-tests (Files): Likewise.
13235         * modules/btowc-tests (Files): Likewise.
13236         * modules/byteswap-tests (Files): Likewise.
13237         * modules/c-ctype-tests (Files): Likewise.
13238         * modules/c-stack-tests (Files): Likewise.
13239         * modules/c-strcase-tests (Files): Likewise.
13240         * modules/c-strcasestr-tests (Files): Likewise.
13241         * modules/c-strstr-tests (Files): Likewise.
13242         * modules/canonicalize-lgpl-tests (Files): Likewise.
13243         * modules/canonicalize-tests (Files): Likewise.
13244         * modules/carray-list-tests (Files): Likewise.
13245         * modules/ceilf-tests (Files): Likewise.
13246         * modules/ceill-tests (Files): Likewise.
13247         * modules/chown-tests (Files): Likewise.
13248         * modules/cloexec-tests (Files): Likewise.
13249         * modules/copy-file-tests (Files): Likewise.
13250         * modules/count-one-bits-tests (Files): Likewise.
13251         * modules/dprintf-posix-tests (Files): Likewise.
13252         * modules/dup2-tests (Files): Likewise.
13253         * modules/dup3-tests (Files): Likewise.
13254         * modules/duplocale-tests (Files): Likewise.
13255         * modules/fbufmode-tests (Files): Likewise.
13256         * modules/fchdir-tests (Files): Likewise.
13257         * modules/fcntl-safer-tests (Files): Likewise.
13258         * modules/fcntl-tests (Files): Likewise.
13259         * modules/fdopendir-tests (Files): Likewise.
13260         * modules/fdutimensat-tests (Files): Likewise.
13261         * modules/fflush-tests (Files): Likewise.
13262         * modules/filevercmp-tests (Files): Likewise.
13263         * modules/flock-tests (Files): Likewise.
13264         * modules/floorf-tests (Files): Likewise.
13265         * modules/floorl-tests (Files): Likewise.
13266         * modules/fnmatch-tests (Files): Likewise.
13267         * modules/fopen-safer-tests (Files): Likewise.
13268         * modules/fopen-tests (Files): Likewise.
13269         * modules/fpending-tests (Files): Likewise.
13270         * modules/fprintf-posix-tests (Files): Likewise.
13271         * modules/fpurge-tests (Files): Likewise.
13272         * modules/freadable-tests (Files): Likewise.
13273         * modules/freadahead-tests (Files): Likewise.
13274         * modules/freading-tests (Files): Likewise.
13275         * modules/freadptr-tests (Files): Likewise.
13276         * modules/freadseek-tests (Files): Likewise.
13277         * modules/freopen-tests (Files): Likewise.
13278         * modules/frexp-nolibm-tests (Files): Likewise.
13279         * modules/frexp-tests (Files): Likewise.
13280         * modules/frexpl-nolibm-tests (Files): Likewise.
13281         * modules/frexpl-tests (Files): Likewise.
13282         * modules/fseek-tests (Files): Likewise.
13283         * modules/fseeko-tests (Files): Likewise.
13284         * modules/fstrcmp-tests (Files): Likewise.
13285         * modules/fsync-tests (Files): Likewise.
13286         * modules/ftell-tests (Files): Likewise.
13287         * modules/ftello-tests (Files): Likewise.
13288         * modules/func-tests (Files): Likewise.
13289         * modules/futimens-tests (Files): Likewise.
13290         * modules/fwritable-tests (Files): Likewise.
13291         * modules/fwriting-tests (Files): Likewise.
13292         * modules/getcwd-tests (Files): Likewise.
13293         * modules/getdate-tests (Files): Likewise.
13294         * modules/getdelim-tests (Files): Likewise.
13295         * modules/getdtablesize-tests (Files): Likewise.
13296         * modules/getgroups-tests (Files): Likewise.
13297         * modules/getline-tests (Files): Likewise.
13298         * modules/getndelim2-tests (Files): Likewise.
13299         * modules/glob-tests (Files): Likewise.
13300         * modules/hash-tests (Files): Likewise.
13301         * modules/i-ring-tests (Files): Likewise.
13302         * modules/iconv-tests (Files): Likewise.
13303         * modules/iconv_open-utf-tests (Files): Likewise.
13304         * modules/idpriv-drop-tests (Files): Likewise.
13305         * modules/idpriv-droptemp-tests (Files): Likewise.
13306         * modules/inet_ntop-tests (Files): Likewise.
13307         * modules/inet_pton-tests (Files): Likewise.
13308         * modules/isblank-tests (Files): Likewise.
13309         * modules/isfinite-tests (Files): Likewise.
13310         * modules/isinf-tests (Files): Likewise.
13311         * modules/isnan-tests (Files): Likewise.
13312         * modules/isnand-nolibm-tests (Files): Likewise.
13313         * modules/isnand-tests (Files): Likewise.
13314         * modules/isnanf-nolibm-tests (Files): Likewise.
13315         * modules/isnanf-tests (Files): Likewise.
13316         * modules/isnanl-nolibm-tests (Files): Likewise.
13317         * modules/isnanl-tests (Files): Likewise.
13318         * modules/lchown-tests (Files): Likewise.
13319         * modules/ldexpl-tests (Files): Likewise.
13320         * modules/link-tests (Files): Likewise.
13321         * modules/linkat-tests (Files): Likewise.
13322         * modules/linked-list-tests (Files): Likewise.
13323         * modules/linkedhash-list-tests (Files): Likewise.
13324         * modules/localename-tests (Files): Likewise.
13325         * modules/lseek-tests (Files): Likewise.
13326         * modules/lstat-tests (Files): Likewise.
13327         * modules/mbmemcasecmp-tests (Files): Likewise.
13328         * modules/mbmemcasecoll-tests (Files): Likewise.
13329         * modules/mbrtowc-tests (Files): Likewise.
13330         * modules/mbscasecmp-tests (Files): Likewise.
13331         * modules/mbscasestr-tests (Files): Likewise.
13332         * modules/mbschr-tests (Files): Likewise.
13333         * modules/mbscspn-tests (Files): Likewise.
13334         * modules/mbsinit-tests (Files): Likewise.
13335         * modules/mbsncasecmp-tests (Files): Likewise.
13336         * modules/mbsnrtowcs-tests (Files): Likewise.
13337         * modules/mbspbrk-tests (Files): Likewise.
13338         * modules/mbspcasecmp-tests (Files): Likewise.
13339         * modules/mbsrchr-tests (Files): Likewise.
13340         * modules/mbsrtowcs-tests (Files): Likewise.
13341         * modules/mbsspn-tests (Files): Likewise.
13342         * modules/mbsstr-tests (Files): Likewise.
13343         * modules/memchr-tests (Files): Likewise.
13344         * modules/memchr2-tests (Files): Likewise.
13345         * modules/memcmp-tests (Files): Likewise.
13346         * modules/memmem-tests (Files): Likewise.
13347         * modules/memrchr-tests (Files): Likewise.
13348         * modules/mkdir-tests (Files): Likewise.
13349         * modules/mkfifo-tests (Files): Likewise.
13350         * modules/mkfifoat-tests (Files): Likewise.
13351         * modules/mknod-tests (Files): Likewise.
13352         * modules/nanosleep-tests (Files): Likewise.
13353         * modules/nl_langinfo-tests (Files): Likewise.
13354         * modules/obstack-printf-tests (Files): Likewise.
13355         * modules/open-tests (Files): Likewise.
13356         * modules/openat-tests (Files): Likewise.
13357         * modules/pipe-filter-gi-tests (Files): Likewise.
13358         * modules/pipe-filter-ii-tests (Files): Likewise.
13359         * modules/pipe2-tests (Files): Likewise.
13360         * modules/popen-safer-tests (Files): Likewise.
13361         * modules/popen-tests (Files): Likewise.
13362         * modules/posixtm-tests (Files): Likewise.
13363         * modules/pread-tests (Files): Likewise.
13364         * modules/printf-frexp-tests (Files): Likewise.
13365         * modules/printf-frexpl-tests (Files): Likewise.
13366         * modules/printf-posix-tests (Files): Likewise.
13367         * modules/priv-set-tests (Files): Likewise.
13368         * modules/quotearg-tests (Files): Likewise.
13369         * modules/random_r-tests (Files): Likewise.
13370         * modules/rawmemchr-tests (Files): Likewise.
13371         * modules/rbtree-list-tests (Files): Likewise.
13372         * modules/rbtree-oset-tests (Files): Likewise.
13373         * modules/rbtreehash-list-tests (Files): Likewise.
13374         * modules/readlink-tests (Files): Likewise.
13375         * modules/remove-tests (Files): Likewise.
13376         * modules/rename-tests (Files): Likewise.
13377         * modules/renameat-tests (Files): Likewise.
13378         * modules/rmdir-tests (Files): Likewise.
13379         * modules/round-tests (Files): Likewise.
13380         * modules/roundf-tests (Files): Likewise.
13381         * modules/roundl-tests (Files): Likewise.
13382         * modules/safe-alloc-tests (Files): Likewise.
13383         * modules/setenv-tests (Files): Likewise.
13384         * modules/sigaction-tests (Files): Likewise.
13385         * modules/signbit-tests (Files): Likewise.
13386         * modules/sleep-tests (Files): Likewise.
13387         * modules/snprintf-posix-tests (Files): Likewise.
13388         * modules/snprintf-tests (Files): Likewise.
13389         * modules/sprintf-posix-tests (Files): Likewise.
13390         * modules/stat-tests (Files): Likewise.
13391         * modules/stat-time-tests (Files): Likewise.
13392         * modules/strcasestr-tests (Files): Likewise.
13393         * modules/strchrnul-tests (Files): Likewise.
13394         * modules/strerror-tests (Files): Likewise.
13395         * modules/striconv-tests (Files): Likewise.
13396         * modules/striconveh-tests (Files): Likewise.
13397         * modules/striconveha-tests (Files): Likewise.
13398         * modules/strsignal-tests (Files): Likewise.
13399         * modules/strstr-tests (Files): Likewise.
13400         * modules/strtod-tests (Files): Likewise.
13401         * modules/strverscmp-tests (Files): Likewise.
13402         * modules/symlink-tests (Files): Likewise.
13403         * modules/symlinkat-tests (Files): Likewise.
13404         * modules/trunc-tests (Files): Likewise.
13405         * modules/truncf-tests (Files): Likewise.
13406         * modules/truncl-tests (Files): Likewise.
13407         * modules/uname-tests (Files): Likewise.
13408         * modules/unicase/cased-tests (Files): Likewise.
13409         * modules/unicase/ignorable-tests (Files): Likewise.
13410         * modules/unicase/locale-language-tests (Files): Likewise.
13411         * modules/unicase/tolower-tests (Files): Likewise.
13412         * modules/unicase/totitle-tests (Files): Likewise.
13413         * modules/unicase/toupper-tests (Files): Likewise.
13414         * modules/unicase/u8-casecmp-tests (Files): Likewise.
13415         * modules/unicase/u8-casecoll-tests (Files): Likewise.
13416         * modules/unicase/u8-casefold-tests (Files): Likewise.
13417         * modules/unicase/u8-is-cased-tests (Files): Likewise.
13418         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
13419         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
13420         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
13421         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
13422         * modules/unicase/u8-tolower-tests (Files): Likewise.
13423         * modules/unicase/u8-totitle-tests (Files): Likewise.
13424         * modules/unicase/u8-toupper-tests (Files): Likewise.
13425         * modules/unicase/u16-casecmp-tests (Files): Likewise.
13426         * modules/unicase/u16-casecoll-tests (Files): Likewise.
13427         * modules/unicase/u16-casefold-tests (Files): Likewise.
13428         * modules/unicase/u16-is-cased-tests (Files): Likewise.
13429         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
13430         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
13431         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
13432         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
13433         * modules/unicase/u16-tolower-tests (Files): Likewise.
13434         * modules/unicase/u16-totitle-tests (Files): Likewise.
13435         * modules/unicase/u16-toupper-tests (Files): Likewise.
13436         * modules/unicase/u32-casecmp-tests (Files): Likewise.
13437         * modules/unicase/u32-casecoll-tests (Files): Likewise.
13438         * modules/unicase/u32-casefold-tests (Files): Likewise.
13439         * modules/unicase/u32-is-cased-tests (Files): Likewise.
13440         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
13441         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
13442         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
13443         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
13444         * modules/unicase/u32-tolower-tests (Files): Likewise.
13445         * modules/unicase/u32-totitle-tests (Files): Likewise.
13446         * modules/unicase/u32-toupper-tests (Files): Likewise.
13447         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
13448         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
13449         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
13450         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
13451         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
13452         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
13453         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
13454         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
13455         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
13456         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
13457         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
13458         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
13459         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
13460         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
13461         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
13462         * modules/unictype/bidicategory-name-tests (Files): Likewise.
13463         * modules/unictype/bidicategory-of-tests (Files): Likewise.
13464         * modules/unictype/bidicategory-test-tests (Files): Likewise.
13465         * modules/unictype/block-list-tests (Files): Likewise.
13466         * modules/unictype/block-of-tests (Files): Likewise.
13467         * modules/unictype/block-test-tests (Files): Likewise.
13468         * modules/unictype/category-C-tests (Files): Likewise.
13469         * modules/unictype/category-Cc-tests (Files): Likewise.
13470         * modules/unictype/category-Cf-tests (Files): Likewise.
13471         * modules/unictype/category-Cn-tests (Files): Likewise.
13472         * modules/unictype/category-Co-tests (Files): Likewise.
13473         * modules/unictype/category-Cs-tests (Files): Likewise.
13474         * modules/unictype/category-L-tests (Files): Likewise.
13475         * modules/unictype/category-Ll-tests (Files): Likewise.
13476         * modules/unictype/category-Lm-tests (Files): Likewise.
13477         * modules/unictype/category-Lo-tests (Files): Likewise.
13478         * modules/unictype/category-Lt-tests (Files): Likewise.
13479         * modules/unictype/category-Lu-tests (Files): Likewise.
13480         * modules/unictype/category-M-tests (Files): Likewise.
13481         * modules/unictype/category-Mc-tests (Files): Likewise.
13482         * modules/unictype/category-Me-tests (Files): Likewise.
13483         * modules/unictype/category-Mn-tests (Files): Likewise.
13484         * modules/unictype/category-N-tests (Files): Likewise.
13485         * modules/unictype/category-Nd-tests (Files): Likewise.
13486         * modules/unictype/category-Nl-tests (Files): Likewise.
13487         * modules/unictype/category-No-tests (Files): Likewise.
13488         * modules/unictype/category-P-tests (Files): Likewise.
13489         * modules/unictype/category-Pc-tests (Files): Likewise.
13490         * modules/unictype/category-Pd-tests (Files): Likewise.
13491         * modules/unictype/category-Pe-tests (Files): Likewise.
13492         * modules/unictype/category-Pf-tests (Files): Likewise.
13493         * modules/unictype/category-Pi-tests (Files): Likewise.
13494         * modules/unictype/category-Po-tests (Files): Likewise.
13495         * modules/unictype/category-Ps-tests (Files): Likewise.
13496         * modules/unictype/category-S-tests (Files): Likewise.
13497         * modules/unictype/category-Sc-tests (Files): Likewise.
13498         * modules/unictype/category-Sk-tests (Files): Likewise.
13499         * modules/unictype/category-Sm-tests (Files): Likewise.
13500         * modules/unictype/category-So-tests (Files): Likewise.
13501         * modules/unictype/category-Z-tests (Files): Likewise.
13502         * modules/unictype/category-Zl-tests (Files): Likewise.
13503         * modules/unictype/category-Zp-tests (Files): Likewise.
13504         * modules/unictype/category-Zs-tests (Files): Likewise.
13505         * modules/unictype/category-and-not-tests (Files): Likewise.
13506         * modules/unictype/category-and-tests (Files): Likewise.
13507         * modules/unictype/category-byname-tests (Files): Likewise.
13508         * modules/unictype/category-name-tests (Files): Likewise.
13509         * modules/unictype/category-none-tests (Files): Likewise.
13510         * modules/unictype/category-of-tests (Files): Likewise.
13511         * modules/unictype/category-or-tests (Files): Likewise.
13512         * modules/unictype/category-test-withtable-tests (Files): Likewise.
13513         * modules/unictype/combining-class-tests (Files): Likewise.
13514         * modules/unictype/ctype-alnum-tests (Files): Likewise.
13515         * modules/unictype/ctype-alpha-tests (Files): Likewise.
13516         * modules/unictype/ctype-blank-tests (Files): Likewise.
13517         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
13518         * modules/unictype/ctype-digit-tests (Files): Likewise.
13519         * modules/unictype/ctype-graph-tests (Files): Likewise.
13520         * modules/unictype/ctype-lower-tests (Files): Likewise.
13521         * modules/unictype/ctype-print-tests (Files): Likewise.
13522         * modules/unictype/ctype-punct-tests (Files): Likewise.
13523         * modules/unictype/ctype-space-tests (Files): Likewise.
13524         * modules/unictype/ctype-upper-tests (Files): Likewise.
13525         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
13526         * modules/unictype/decimal-digit-tests (Files): Likewise.
13527         * modules/unictype/digit-tests (Files): Likewise.
13528         * modules/unictype/mirror-tests (Files): Likewise.
13529         * modules/unictype/numeric-tests (Files): Likewise.
13530         * modules/unictype/property-alphabetic-tests (Files): Likewise.
13531         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
13532         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
13533         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
13534         Likewise.
13535         * modules/unictype/property-bidi-block-separator-tests (Files):
13536         Likewise.
13537         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
13538         Likewise.
13539         * modules/unictype/property-bidi-common-separator-tests (Files):
13540         Likewise.
13541         * modules/unictype/property-bidi-control-tests (Files): Likewise.
13542         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
13543         Likewise.
13544         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
13545         Likewise.
13546         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
13547         Likewise.
13548         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
13549         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
13550         Likewise.
13551         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
13552         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
13553         Likewise.
13554         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
13555         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
13556         * modules/unictype/property-bidi-segment-separator-tests (Files):
13557         Likewise.
13558         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
13559         * modules/unictype/property-byname-tests (Files): Likewise.
13560         * modules/unictype/property-combining-tests (Files): Likewise.
13561         * modules/unictype/property-composite-tests (Files): Likewise.
13562         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
13563         * modules/unictype/property-dash-tests (Files): Likewise.
13564         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
13565         * modules/unictype/property-default-ignorable-code-point-tests (Files):
13566         Likewise.
13567         * modules/unictype/property-deprecated-tests (Files): Likewise.
13568         * modules/unictype/property-diacritic-tests (Files): Likewise.
13569         * modules/unictype/property-extender-tests (Files): Likewise.
13570         * modules/unictype/property-format-control-tests (Files): Likewise.
13571         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
13572         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
13573         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
13574         * modules/unictype/property-hex-digit-tests (Files): Likewise.
13575         * modules/unictype/property-hyphen-tests (Files): Likewise.
13576         * modules/unictype/property-id-continue-tests (Files): Likewise.
13577         * modules/unictype/property-id-start-tests (Files): Likewise.
13578         * modules/unictype/property-ideographic-tests (Files): Likewise.
13579         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
13580         * modules/unictype/property-ids-trinary-operator-tests (Files):
13581         Likewise.
13582         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
13583         * modules/unictype/property-iso-control-tests (Files): Likewise.
13584         * modules/unictype/property-join-control-tests (Files): Likewise.
13585         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
13586         * modules/unictype/property-line-separator-tests (Files): Likewise.
13587         * modules/unictype/property-logical-order-exception-tests (Files):
13588         Likewise.
13589         * modules/unictype/property-lowercase-tests (Files): Likewise.
13590         * modules/unictype/property-math-tests (Files): Likewise.
13591         * modules/unictype/property-non-break-tests (Files): Likewise.
13592         * modules/unictype/property-not-a-character-tests (Files): Likewise.
13593         * modules/unictype/property-numeric-tests (Files): Likewise.
13594         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
13595         * modules/unictype/property-other-default-ignorable-code-point-tests
13596         (Files): Likewise.
13597         * modules/unictype/property-other-grapheme-extend-tests (Files):
13598         Likewise.
13599         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
13600         * modules/unictype/property-other-id-start-tests (Files): Likewise.
13601         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
13602         * modules/unictype/property-other-math-tests (Files): Likewise.
13603         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
13604         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
13605         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
13606         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
13607         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
13608         * modules/unictype/property-private-use-tests (Files): Likewise.
13609         * modules/unictype/property-punctuation-tests (Files): Likewise.
13610         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
13611         * modules/unictype/property-radical-tests (Files): Likewise.
13612         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
13613         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
13614         * modules/unictype/property-space-tests (Files): Likewise.
13615         * modules/unictype/property-terminal-punctuation-tests (Files):
13616         Likewise.
13617         * modules/unictype/property-test-tests (Files): Likewise.
13618         * modules/unictype/property-titlecase-tests (Files): Likewise.
13619         * modules/unictype/property-unassigned-code-value-tests (Files):
13620         Likewise.
13621         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
13622         * modules/unictype/property-uppercase-tests (Files): Likewise.
13623         * modules/unictype/property-variation-selector-tests (Files): Likewise.
13624         * modules/unictype/property-white-space-tests (Files): Likewise.
13625         * modules/unictype/property-xid-continue-tests (Files): Likewise.
13626         * modules/unictype/property-xid-start-tests (Files): Likewise.
13627         * modules/unictype/property-zero-width-tests (Files): Likewise.
13628         * modules/unictype/scripts-tests (Files): Likewise.
13629         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
13630         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
13631         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
13632         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
13633         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
13634         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
13635         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
13636         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
13637         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
13638         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
13639         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
13640         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
13641         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
13642         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
13643         * modules/uninorm/composition-tests (Files): Likewise.
13644         * modules/uninorm/decomposing-form-tests (Files): Likewise.
13645         * modules/uninorm/decomposition-tests (Files): Likewise.
13646         * modules/uninorm/filter-tests (Files): Likewise.
13647         * modules/uninorm/nfc-tests (Files): Likewise.
13648         * modules/uninorm/nfd-tests (Files): Likewise.
13649         * modules/uninorm/nfkc-tests (Files): Likewise.
13650         * modules/uninorm/nfkd-tests (Files): Likewise.
13651         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
13652         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
13653         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
13654         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
13655         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
13656         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
13657         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
13658         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
13659         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
13660         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
13661         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
13662         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
13663         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
13664         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
13665         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
13666         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
13667         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
13668         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
13669         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
13670         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
13671         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
13672         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
13673         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
13674         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
13675         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
13676         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
13677         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
13678         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
13679         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
13680         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
13681         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
13682         * modules/uniwidth/u8-width-tests (Files): Likewise.
13683         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
13684         * modules/uniwidth/u16-width-tests (Files): Likewise.
13685         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
13686         * modules/uniwidth/u32-width-tests (Files): Likewise.
13687         * modules/uniwidth/width-tests (Files): Likewise.
13688         * modules/unlink-tests (Files): Likewise.
13689         * modules/unsetenv-tests (Files): Likewise.
13690         * modules/usleep-tests (Files): Likewise.
13691         * modules/utimens-tests (Files): Likewise.
13692         * modules/utimensat-tests (Files): Likewise.
13693         * modules/vasnprintf-posix-tests (Files): Likewise.
13694         * modules/vasnprintf-tests (Files): Likewise.
13695         * modules/vasprintf-posix-tests (Files): Likewise.
13696         * modules/vasprintf-tests (Files): Likewise.
13697         * modules/vdprintf-posix-tests (Files): Likewise.
13698         * modules/vfprintf-posix-tests (Files): Likewise.
13699         * modules/vprintf-posix-tests (Files): Likewise.
13700         * modules/vsnprintf-posix-tests (Files): Likewise.
13701         * modules/vsnprintf-tests (Files): Likewise.
13702         * modules/vsprintf-posix-tests (Files): Likewise.
13703         * modules/wcrtomb-tests (Files): Likewise.
13704         * modules/wcsnrtombs-tests (Files): Likewise.
13705         * modules/wcsrtombs-tests (Files): Likewise.
13706         * modules/wctype-tests (Files): Likewise.
13707         * modules/wcwidth-tests (Files): Likewise.
13708         * modules/xmemdup0-tests (Files): Likewise.
13709         * modules/xprintf-posix-tests (Files): Likewise.
13710         * modules/xvasprintf-tests (Files): Likewise.
13711
13712 2009-12-24  Eric Blake  <ebb9@byu.net>
13713
13714         test-nanosleep: fix typo
13715         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
13716         patch.
13717         Reported by Bruno Haible.
13718
13719 2009-12-24  Bruno Haible  <bruno@clisp.org>
13720
13721         Reduce namespace pollution on glibc systems.
13722         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
13723         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
13724         systems.
13725         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
13726         <getopt.h> on glibc systems.
13727         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
13728         systems.
13729         * lib/fcntl.c: Include <unistd.h> here instead.
13730
13731 2009-12-24  Bruno Haible  <bruno@clisp.org>
13732
13733         * lib/stdlib.in.h (includes): Fix typo in today's commit.
13734
13735 2009-12-24  Eric Blake  <ebb9@byu.net>
13736
13737         tests: add signature checks
13738         * tests/signature.h (SIGNATURE_CHECK): New file.
13739         * modules/atexit-tests (Files): Use it.
13740         * modules/btowc-tests (Files): Likewise.
13741         * modules/canonicalize-lgpl-tests (Files): Likewise.
13742         * modules/ceilf-tests (Files): Likewise.
13743         * modules/ceill-tests (Files): Likewise.
13744         * modules/chown-tests (Files): Likewise.
13745         * modules/dprintf-posix-tests (Files): Likewise.
13746         * modules/dup2-tests (Files): Likewise.
13747         * modules/dup3-tests (Files): Likewise.
13748         * modules/duplocale-tests (Files): Likewise.
13749         * modules/fchdir-tests (Files): Likewise.
13750         * modules/fcntl-tests (Files): Likewise.
13751         * modules/fdopendir-tests (Files): Likewise.
13752         * modules/fflush-tests (Files): Likewise.
13753         * modules/flock-tests (Files): Likewise.
13754         * modules/floorf-tests (Files): Likewise.
13755         * modules/floorl-tests (Files): Likewise.
13756         * modules/fnmatch-tests (Files): Likewise.
13757         * modules/fopen-tests (Files): Likewise.
13758         * modules/fprintf-posix-tests (Files): Likewise.
13759         * modules/freopen-tests (Files): Likewise.
13760         * modules/frexp-nolibm-tests (Files): Likewise.
13761         * modules/frexp-tests (Files): Likewise.
13762         * modules/frexpl-nolibm-tests (Files): Likewise.
13763         * modules/frexpl-tests (Files): Likewise.
13764         * modules/fseek-tests (Files): Likewise.
13765         * modules/fseeko-tests (Files): Likewise.
13766         * modules/fsync-tests (Files): Likewise.
13767         * modules/ftell-tests (Files): Likewise.
13768         * modules/ftello-tests (Files): Likewise.
13769         * modules/futimens-tests (Files): Likewise.
13770         * modules/getaddrinfo-tests (Files): Likewise.
13771         * modules/getcwd-tests (Files): Likewise.
13772         * modules/getdelim-tests (Files): Likewise.
13773         * modules/getdtablesize-tests (Files): Likewise.
13774         * modules/getgroups-tests (Files): Likewise.
13775         * modules/gethostname-tests (Files): Likewise.
13776         * modules/getline-tests (Files): Likewise.
13777         * modules/getopt-posix-tests (Files): Likewise.
13778         * modules/gettimeofday-tests (Files): Likewise.
13779         * modules/glob-tests (Files): Likewise.
13780         * modules/iconv-tests (Files): Likewise.
13781         * modules/inet_ntop-tests (Files): Likewise.
13782         * modules/inet_pton-tests (Files): Likewise.
13783         * modules/isblank-tests (Files): Likewise.
13784         * modules/lchown-tests (Files): Likewise.
13785         * modules/ldexpl-tests (Files): Likewise.
13786         * modules/link-tests (Files): Likewise.
13787         * modules/linkat-tests (Files): Likewise.
13788         * modules/lseek-tests (Files): Likewise.
13789         * modules/lstat-tests (Files): Likewise.
13790         * modules/mbrtowc-tests (Files): Likewise.
13791         * modules/mbsinit-tests (Files): Likewise.
13792         * modules/mbsnrtowcs-tests (Files): Likewise.
13793         * modules/mbsrtowcs-tests (Files): Likewise.
13794         * modules/memchr-tests (Files): Likewise.
13795         * modules/memcmp-tests (Files): Likewise.
13796         * modules/memmem-tests (Files): Likewise.
13797         * modules/memrchr-tests (Files): Likewise.
13798         * modules/mkdir-tests (Files): Likewise.
13799         * modules/mkfifo-tests (Files): Likewise.
13800         * modules/mkfifoat-tests (Files): Likewise.
13801         * modules/mknod-tests (Files): Likewise.
13802         * modules/nanosleep-tests (Files): Likewise.
13803         * modules/nl_langinfo-tests (Files): Likewise.
13804         * modules/obstack-printf-tests (Files): Likewise.
13805         * modules/open-tests (Files): Likewise.
13806         * modules/openat-tests (Files): Likewise.
13807         * modules/perror-tests (Files): Likewise.
13808         * modules/pipe2-tests (Files): Likewise.
13809         * modules/poll-tests (Files): Likewise.
13810         * modules/popen-tests (Files): Likewise.
13811         * modules/posix_spawn-tests (Files): Likewise.
13812         * modules/posix_spawnp-tests (Files): Likewise.
13813         * modules/pread-tests (Files): Likewise.
13814         * modules/printf-posix-tests (Files): Likewise.
13815         * modules/pty-tests (Files): Likewise.
13816         * modules/random_r-tests (Files): Likewise.
13817         * modules/rawmemchr-tests (Files): Likewise.
13818         * modules/readlink-tests (Files): Likewise.
13819         * modules/remove-tests (Files): Likewise.
13820         * modules/rename-tests (Files): Likewise.
13821         * modules/renameat-tests (Files): Likewise.
13822         * modules/rmdir-tests (Files): Likewise.
13823         * modules/round-tests (Files): Likewise.
13824         * modules/roundf-tests (Files): Likewise.
13825         * modules/roundl-tests (Files): Likewise.
13826         * modules/select-tests (Files): Likewise.
13827         * modules/setenv-tests (Files): Likewise.
13828         * modules/sigaction-tests (Files): Likewise.
13829         * modules/sleep-tests (Files): Likewise.
13830         * modules/snprintf-posix-tests (Files): Likewise.
13831         * modules/snprintf-tests (Files): Likewise.
13832         * modules/sprintf-posix-tests (Files): Likewise.
13833         * modules/stat-tests (Files): Likewise.
13834         * modules/strcasestr-tests (Files): Likewise.
13835         * modules/strchrnul-tests (Files): Likewise.
13836         * modules/strerror-tests (Files): Likewise.
13837         * modules/strsignal-tests (Files): Likewise.
13838         * modules/strstr-tests (Files): Likewise.
13839         * modules/strtod-tests (Files): Likewise.
13840         * modules/strverscmp-tests (Files): Likewise.
13841         * modules/symlink-tests (Files): Likewise.
13842         * modules/symlinkat-tests (Files): Likewise.
13843         * modules/times-tests (Files): Likewise.
13844         * modules/trunc-tests (Files): Likewise.
13845         * modules/truncf-tests (Files): Likewise.
13846         * modules/truncl-tests (Files): Likewise.
13847         * modules/tsearch-tests (Files): Likewise.
13848         * modules/uname-tests (Files): Likewise.
13849         * modules/unlink-tests (Files): Likewise.
13850         * modules/unsetenv-tests (Files): Likewise.
13851         * modules/usleep-tests (Files): Likewise.
13852         * modules/utimensat-tests (Files): Likewise.
13853         * modules/vasprintf-tests (Files): Likewise.
13854         * modules/vdprintf-posix-tests (Files): Likewise.
13855         * modules/vfprintf-posix-tests (Files): Likewise.
13856         * modules/vprintf-posix-tests (Files): Likewise.
13857         * modules/vsnprintf-posix-tests (Files): Likewise.
13858         * modules/vsnprintf-tests (Files): Likewise.
13859         * modules/vsprintf-posix-tests (Files): Likewise.
13860         * modules/wcrtomb-tests (Files): Likewise.
13861         * modules/wcsnrtombs-tests (Files): Likewise.
13862         * modules/wcsrtombs-tests (Files): Likewise.
13863         * modules/wcwidth-tests (Files): Likewise.
13864         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
13865         * tests/test-isinf.c (isinf): Likewise.
13866         * tests/test-isnan.c (isnan): Likewise.
13867         * tests/test-signbit.c (signbit): Likewise.
13868         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
13869         declaration, either as macro or with correct signature.
13870         (select): Ensure function under test is declared with correct
13871         signature in correct header.
13872         * tests/test-atexit.c (atexit): Likewise.
13873         * tests/test-btowc.c (btowc): Likewise.
13874         * tests/test-canonicalize-lgpl.c (realpath)
13875         (canonicalize_file_name): Likewise.
13876         * tests/test-ceilf1.c (ceilf): Likewise.
13877         * tests/test-ceill.c (ceill): Likewise.
13878         * tests/test-chown.c (chown): Likewise.
13879         * tests/test-dprintf-posix.c (dprintf): Likewise.
13880         * tests/test-dup2.c (dup2): Likewise.
13881         * tests/test-dup3.c (dup3): Likewise.
13882         * tests/test-duplocale.c (duplocale): Likewise.
13883         * tests/test-fchdir.c (fchdir): Likewise.
13884         * tests/test-fchownat.c (fchownat): Likewise.
13885         * tests/test-fcntl.c (fcntl): Likewise.
13886         * tests/test-fdopendir.c (fdopendir): Likewise.
13887         * tests/test-fflush.c (fflush): Likewise.
13888         * tests/test-flock.c (flock): Likewise.
13889         * tests/test-floorf1.c (floorf): Likewise.
13890         * tests/test-floorl.c (floorl): Likewise.
13891         * tests/test-fnmatch.c (fnmatch): Likewise.
13892         * tests/test-fopen.c (fopen): Likewise.
13893         * tests/test-fprintf-posix.c (fprintf): Likewise.
13894         * tests/test-freopen.c (freopen): Likewise.
13895         * tests/test-frexp.c (frexp): Likewise.
13896         * tests/test-frexpl.c (frexpl): Likewise.
13897         * tests/test-fseek.c (fseek): Likewise.
13898         * tests/test-fseeko.c (fseeko): Likewise.
13899         * tests/test-fstatat.c (fstatat): Likewise.
13900         * tests/test-fsync.c (fsync): Likewise.
13901         * tests/test-ftell.c (ftell): Likewise.
13902         * tests/test-ftello.c (ftello): Likewise.
13903         * tests/test-futimens.c (futimens): Likewise.
13904         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
13905         (gai_strerror): Likewise.
13906         * tests/test-getcwd.c (getcwd): Likewise.
13907         * tests/test-getdelim.c (getdelim): Likewise.
13908         * tests/test-getdtablesize.c (getdtablesize): Likewise.
13909         * tests/test-getgroups.c (getgroups): Likewise.
13910         * tests/test-gethostname.c (gethostname): Likewise.
13911         * tests/test-getline.c (getline): Likewise.
13912         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
13913         Likewise.
13914         * tests/test-gettimeofday.c (gettimeofday): Likewise.
13915         * tests/test-glob.c (glob, globfree): Likewise.
13916         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
13917         * tests/test-inet_ntop.c (inet_ntop): Likewise.
13918         * tests/test-inet_pton.c (inet_pton): Likewise.
13919         * tests/test-isblank.c (isblank): Likewise.
13920         * tests/test-lchown.c (lchown): Likewise.
13921         * tests/test-ldexpl.c (ldexpl): Likewise.
13922         * tests/test-link.c (link): Likewise.
13923         * tests/test-linkat.c (linkat): Likewise.
13924         * tests/test-lseek.c (lseek): Likewise.
13925         * tests/test-lstat.c (lstat): Likewise.
13926         * tests/test-mbrtowc.c (mbrtowc): Likewise.
13927         * tests/test-mbsinit.c (mbsinit): Likewise.
13928         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
13929         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
13930         * tests/test-memchr.c (memchr): Likewise.
13931         * tests/test-memcmp.c (memcmp): Likewise.
13932         * tests/test-memmem.c (memmem): Likewise.
13933         * tests/test-memrchr.c (memrchr): Likewise.
13934         * tests/test-mkdir.c (mkdir): Likewise.
13935         * tests/test-mkdirat.c (mkdirat): Likewise.
13936         * tests/test-mkfifo.c (mkfifo): Likewise.
13937         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
13938         * tests/test-mknod.c (mknod): Likewise.
13939         * tests/test-nanosleep.c (nanosleep): Likewise.
13940         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
13941         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
13942         Likewise.
13943         * tests/test-open.c (open): Likewise.
13944         * tests/test-openat.c (openat): Likewise.
13945         * tests/test-perror.c (perror): Likewise.
13946         * tests/test-pipe2.c (pipe2): Likewise.
13947         * tests/test-poll.c (poll): Likewise.
13948         * tests/test-popen.c (popen, pclose): Likewise.
13949         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
13950         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
13951         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
13952         (posix_spawn_file_actions_destroy)
13953         (posix_spawn_file_actions_addclose)
13954         (posix_spawn_file_actions_addopen)
13955         (posix_spawn_file_actions_adddup2): Likewise.
13956         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
13957         * tests/test-pread.c (pread): Likewise.
13958         * tests/test-printf-posix.c (printf): Likewise.
13959         * tests/test-pty.c (openpty, forkpty): Likewise.
13960         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
13961         (random_r): Likewise.
13962         * tests/test-rawmemchr.c (rawmemchr): Likewise.
13963         * tests/test-readlink.c (readlink): Likewise.
13964         * tests/test-remove.c (remove): Likewise.
13965         * tests/test-rename.c (rename): Likewise.
13966         * tests/test-renameat.c (renameat): Likewise.
13967         * tests/test-rmdir.c (rmdir): Likewise.
13968         * tests/test-round1.c (round): Likewise.
13969         * tests/test-roundf1.c (roundf): Likewise.
13970         * tests/test-roundl.c (roundl): Likewise.
13971         * tests/test-setenv.c (setenv): Likewise.
13972         * tests/test-sigaction.c (sigaction): Likewise.
13973         * tests/test-sleep.c (sleep): Likewise.
13974         * tests/test-snprintf.c (snprintf): Likewise.
13975         * tests/test-sprintf-posix.c (sprintf): Likewise.
13976         * tests/test-stat.c (stat): Likewise.
13977         * tests/test-stpncpy.c (stpncpy): Likewise.
13978         * tests/test-strcasestr.c (strcasestr): Likewise.
13979         * tests/test-strchrnul.c (strchrnul): Likewise.
13980         * tests/test-strerror.c (strerror): Likewise.
13981         * tests/test-strsignal.c (strsignal): Likewise.
13982         * tests/test-strstr.c (strstr): Likewise.
13983         * tests/test-strtod.c (strtod): Likewise.
13984         * tests/test-strverscmp.c (strverscmp): Likewise.
13985         * tests/test-symlink.c (symlink): Likewise.
13986         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
13987         * tests/test-times.c (times): Likewise.
13988         * tests/test-trunc1.c (trunc): Likewise.
13989         * tests/test-truncf1.c (truncf): Likewise.
13990         * tests/test-truncl.c (truncl): Likewise.
13991         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
13992         Likewise.
13993         * tests/test-uname.c (uname): Likewise.
13994         * tests/test-unlink.c (unlink): Likewise.
13995         * tests/test-unlinkat.c (unlinkat): Likewise.
13996         * tests/test-unsetenv.c (unsetenv): Likewise.
13997         * tests/test-usleep.c (usleep): Likewise.
13998         * tests/test-utimensat.c (utimensat): Likewise.
13999         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
14000         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
14001         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
14002         * tests/test-vprintf-posix.c (vprintf): Likewise.
14003         * tests/test-vsnprintf.c (vsnprintf): Likewise.
14004         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
14005         * tests/test-wcrtomb.c (wcrtomb): Likewise.
14006         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
14007         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
14008         * tests/test-wcwidth.c (wcwidth): Likewise.
14009
14010         build: pull in conditional headers during GNULIB_POSIXCHECK
14011         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
14012         definitions from any conditionally-included headers.
14013         * lib/stdlib.in.h (includes): Likewise.
14014         * lib/unistd.in.h (includes): Likewise.
14015
14016 2009-12-24  Bruno Haible  <bruno@clisp.org>
14017
14018         * tests/test-argv-iter.c: Include header file being tested immediately
14019         after config.h.
14020         * tests/test-base64.c: Likewise.
14021         * tests/test-flock.c: Likewise.
14022         * tests/test-fsync.c: Likewise.
14023         * tests/test-getdate.c: Likewise.
14024         * tests/test-getndelim2.c: Likewise.
14025         * tests/test-isfinite.c: Likewise.
14026         * tests/test-isinf.c: Likewise.
14027         * tests/test-strerror.c: Likewise.
14028         * tests/test-strsignal.c: Likewise.
14029
14030 2009-12-23  Eric Blake  <ebb9@byu.net>
14031
14032         unistd: work around cygwin bug
14033         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
14034         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
14035         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14036
14037 2009-12-23  Bruno Haible  <bruno@clisp.org>
14038
14039         localename: More tests.
14040         * tests/test-localename.c (SIZEOF): New macro.
14041         (categories): New variable.
14042         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
14043         test_locale_name_default): Add test w.r.t. thread locale.
14044         (test_locale_name_thread): New function.
14045         (main): Invoke it.
14046
14047         localename: Make aware of thread locale.
14048         * lib/localename.h (gl_locale_name_thread): New declaration.
14049         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
14050         behaviour with respect to thread locale.
14051         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
14052         <langinfo.h>, glthread/lock.h.
14053         (SIZE_BITS): New macro.
14054         (string_hash): New function.
14055         (struct hash_node): New type.
14056         (HASH_TABLE_SIZE): New macro.
14057         (struniq_hash_table, struniq_lock): New variables.
14058         (struniq): New function.
14059         (gl_locale_name_thread): New function.
14060         (gl_locale_name): Invoke it.
14061         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
14062         * modules/localename (Depends-on): Add lock.
14063         Reported by Mike Gran <spk121@yahoo.com>.
14064
14065 2009-12-23  Eric Blake  <ebb9@byu.net>
14066
14067         va-args: new module
14068         * modules/va-args: New file.
14069         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
14070         * MODULES.html.sh (Core language properties): Mention it.
14071
14072         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
14073         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
14074         named alias for __attribute__((__unused__)).
14075         * lib/chown.c: Update client.
14076         * lib/fchmodat.c: Likewise.
14077         * lib/fts.c: Likewise.
14078         * lib/getdate.y: Likewise.
14079         * lib/getgroups.c: Likewise.
14080         * lib/getopt.c: Likewise.
14081         * lib/getugroups.c: Likewise.
14082         * lib/mkdir.c: Likewise.
14083         * lib/mkfifo.c: Likewise.
14084         * lib/mkfifoat.c: Likewise.
14085         * lib/mknod.c: Likewise.
14086         * lib/mknodat.c: Likewise.
14087         * lib/readlink.c: Likewise.
14088         * lib/se-context.in.h: Likewise.
14089         * lib/se-selinux.in.h: Likewise.
14090         * lib/sockets.c: Likewise.
14091         * lib/symlink.c: Likewise.
14092         * lib/symlinkat.c: Likewise.
14093         * lib/unicodeio.c: Likewise.
14094         * lib/unistr.h: Likewise.
14095         * tests/test-areadlink.c: Likewise.
14096         * tests/test-areadlinkat.c: Likewise.
14097         * tests/test-filenamecat.c: Likewise.
14098         * tests/test-fseeko.c: Likewise.
14099         * tests/test-ftello.c: Likewise.
14100         * tests/test-getdate.c: Likewise.
14101         * tests/test-getgroups.c: Likewise.
14102         * tests/test-gethostname.c: Likewise.
14103         * tests/test-quotearg.c: Likewise.
14104         * tests/test-version-etc.c: Likewise.
14105         * tests/test-xalloc-die.c: Likewise.
14106         * tests/test-xfprintf-posix.c: Likewise.
14107         * tests/test-xprintf-posix.c: Likewise.
14108         * tests/test-xvasprintf.c: Likewise.
14109
14110         tests: avoid compiler warnings
14111         * tests/test-fcntl.c (main): Delete unused parameters.
14112         * tests/test-freopen-safer.c (main): Likewise.
14113         * tests/test-xalloc-die.c (main): Mark unused parameters.
14114         * tests/test-fseeko.c (main): Likewise.
14115         * tests/test-ftello.c (main): Likewise.
14116         * tests/test-nanosleep.c (main): Avoid declaration warning.
14117         * tests/test-sleep.c (main): Likewise.
14118         * tests/test-unsetenv.c (main): Silence warning about string
14119         literal.
14120         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
14121
14122 2009-12-23  Bruno Haible  <bruno@clisp.org>
14123
14124         * tests/test-localename.c (test_locale_name): New function, extracted
14125         from main. Also test mixed situations.
14126         (test_locale_name_posix, test_locale_name_environ,
14127         test_locale_name_default): New functions.
14128         (main): Invoke them all.
14129         * modules/localename-tests (configure.ac): Test for newlocale.
14130
14131 2009-12-23  Bruno Haible  <bruno@clisp.org>
14132
14133         unistd: Ensure getcwd gets declared before being overridden.
14134         * lib/unistd.in.h: Conditionally include <io.h>.
14135
14136 2009-12-22  Bruno Haible  <bruno@clisp.org>
14137
14138         wchar: Diagnose broken combination of glibc and gcc versions and flags.
14139         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
14140         (gl_WCHAR_H): Invoke it.
14141         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
14142         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
14143         Reported by Karl Berry <karl@freefriends.org>.
14144
14145 2009-12-22  Eric Blake  <ebb9@byu.net>
14146
14147         math, unistd: avoid redundant includes
14148         * lib/math.in.h (isnan): No need to re-include <math.h>.
14149         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
14150
14151         getsubopt: work around cygwin bug
14152         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
14153         avoid conflicting with system getsubopt.
14154         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
14155         bug.
14156
14157         getopt: synchronize from glibc
14158         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
14159         parameter order.  Adjust all callers.
14160         (_getopt_internal_r, main): Adjust quoting in error messages.
14161         Drop considerations for outdated POSIX 1003.2 error message.
14162         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
14163         callers.
14164         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
14165
14166         test-getopt: test stderr behavior
14167         * modules/getopt-posix-tests (Depends-on): Add dup2.
14168         * tests/test-getopt.c (ASSERT): Avoid stderr.
14169         (main): Move stderr to a temporary file.
14170         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
14171         Instead, add parameter to inform caller if output occurred.
14172         (test_getopt): Adjust all existing tests to expect silence, and
14173         add new tests of leading ":".
14174         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
14175         glibc shortcomings with leading "-:" or "+:" in optstring.
14176         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14177         Likewise.
14178         * doc/posix-functions/getopt.texi (getopt): Likewise.
14179
14180         test-getopt: enhance test
14181         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
14182         supports optind=0.
14183         * tests/test-getopt.c (OPTIND_MIN): Move...
14184         * tests/test-getopt.h (OPTIND_MIN): ...here.
14185         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
14186         Require that optind=0 works, since modern BSD supports it in
14187         addition to optreset, and since coreutils expects it.
14188         (test_getopt_long_only): New test.
14189         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
14190         glibc shortcomings with 'W;', and enforcement of optind=0.
14191         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14192         Likewise.
14193
14194 2009-12-21  Bruno Haible  <bruno@clisp.org>
14195
14196         localename: Improvements for MacOS X and Cygwin.
14197         * lib/localename.h (gl_locale_name_environ): New declaration.
14198         * lib/localename.c (gl_locale_name_environ): New function, extracted from
14199         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
14200         (gl_locale_name_posix): Invoke it.
14201         (gl_locale_name_default): Add comments. Use Windows native API also on
14202         Cygwin.
14203
14204 2009-12-21  Bruno Haible  <bruno@clisp.org>
14205
14206         Update list of Win32 locale ids.
14207         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
14208         (LANG_SAMI): Renamed from LANG_SAAMI.
14209         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
14210         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
14211         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
14212         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
14213         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
14214         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
14215         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
14216         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
14217         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
14218         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
14219         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
14220         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
14221         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
14222         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
14223         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
14224         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
14225         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
14226         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
14227         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
14228         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
14229         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
14230         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
14231         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
14232         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
14233         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
14234         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
14235         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
14236         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
14237         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
14238         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
14239         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
14240         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
14241         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
14242         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
14243         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
14244         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
14245         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
14246         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
14247         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
14248         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
14249         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
14250         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
14251         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
14252         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
14253         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
14254         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
14255         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
14256         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
14257         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
14258         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
14259         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
14260         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
14261         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
14262         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
14263         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
14264         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
14265         Add more languages and countries for Sami, Sorbian. Add more countries
14266         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
14267         for Pashto. Change country for Syriac, Tswana.
14268
14269 2009-12-21  Eric Blake  <ebb9@byu.net>
14270
14271         test-utimens: avoid spurious failure
14272         * tests/test-chown.h (nap): Factor...
14273         * tests/nap.h: ...into new file.
14274         * tests/test-lchown.h (nap): Avoid duplication.
14275         * tests/test-utimens-common.h (nap): Use shared implementation,
14276         necessary on file systems with 1-second resolution.
14277         * modules/chown-tests (Files): Include new file.
14278         * modules/fdutimensat-tests (Files): Likewise.
14279         * modules/futimens-tests (Files): Likewise.
14280         * modules/lchown-tests (Files): Likewise.
14281         * modules/openat-tests (Files): Likewise.
14282         * modules/utimens-tests (Files): Likewise.
14283         * modules/utimensat-tests (Files): Likewise.
14284
14285 2009-12-19  Eric Blake  <ebb9@byu.net>
14286
14287         futimens, utimensat: work around Linux bug
14288         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
14289         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14290         * lib/utimensat.c (rpl_utimensat): Work around it.
14291         * lib/futimens.c (rpl_futimens): Adjust comment.
14292
14293         utimens: work around Linux ctime bug
14294         * lib/utimens.c (detect_ctime_bug): New helper function.
14295         (update_timespec): Differentiate between workaround needed for
14296         this bug vs. what is needed for systems that lack utimensat.
14297         (fdutimens, lutimens): Work around bug.
14298
14299         utimens: check for ctime update
14300         * tests/test-utimens-common.h (check_ctime): Define.
14301         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
14302         * tests/test-futimens.h (test_futimens): Likewise.
14303         * tests/test-lutimens.h (test_lutimens): Likewise.
14304         * doc/posix-functions/futimens.texi (futimens): Document the bug.
14305         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14306
14307 2009-12-19  Bruno Haible  <bruno@clisp.org>
14308
14309         dprintf-posix: Check against memory leak fixed on 2009-12-15.
14310         * tests/test-dprintf-posix2.sh: New file.
14311         * tests/test-dprintf-posix2.c: New file.
14312         * modules/dprintf-posix-tests (Files): Add them.
14313         (configure.ac): Check for getrlimit and setrlimit.
14314         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
14315
14316 2009-12-19  Bruno Haible  <bruno@clisp.org>
14317
14318         fprintf-posix: Check against memory leak fixed on 2009-12-15.
14319         * tests/test-fprintf-posix3.sh: New file.
14320         * tests/test-fprintf-posix3.c: New file.
14321         * modules/fprintf-posix-tests (Files): Add them.
14322         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
14323
14324 2009-12-19  Eric Blake  <ebb9@byu.net>
14325
14326         dirfd: fix prototype
14327         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
14328         * lib/dirfd.c (dirfd): Likewise.
14329
14330         canonicalize: reduce memory usage
14331         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
14332         allocation to size.
14333         Reported by Solar Designer <solar@openwall.com>.
14334
14335 2009-12-19  Bruno Haible  <bruno@clisp.org>
14336
14337         New module attribute 'Applicability'.
14338         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
14339         * gnulib-tool: New option --extract-applicability.
14340         (func_usage): Document it.
14341         (sed_extract_prog): Recognize it.
14342         (func_get_applicability): New function.
14343         (func_import): Generalize handling of 'link-warning' module.
14344         * modules/link-warning (Applicability): New section.
14345         * modules/arg-nonnull (Applicability): New section.
14346         Repoted by Simon Josefsson <simon@josefsson.org>.
14347
14348 2009-12-19  Bruno Haible  <bruno@clisp.org>
14349
14350         fflush: tweak
14351         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
14352         * lib/fseeko.c (rpl_fseeko): Likewise.
14353
14354 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
14355
14356         * lib/gl_list.h: Fix typo in comment.
14357
14358 2009-12-16  Eric Blake  <ebb9@byu.net>
14359
14360         fcntl: use to simplify other modules
14361         * modules/cloexec (Depends-on): Add fcntl.
14362         * modules/fchdir (Depends-on): Likewise.
14363         * modules/fd-safer-flag (Depends-on): Likewise.
14364         * modules/unistd-safer (Depends-on): Likewise.
14365         * modules/dup3 (configure.ac): Set module indicator.
14366         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
14367         missing.
14368         * lib/fchdir.c (_gl_register_dup): Fix comment.
14369         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
14370         * lib/dup-safer.c (dup_safer): Likewise.
14371         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
14372         * lib/dup3.c (dup3): Likewise.
14373         * tests/test-fchdir.c (main): Enhance test.
14374         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
14375
14376         fcntl: port portions of fcntl to mingw
14377         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
14378         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
14379         replacement for mingw.
14380         * modules/fcntl (Description): Update.
14381         (Depends-on): Add dup2.
14382         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
14383         * modules/fcntl-h (Makefile.am): Substitute it.
14384         * lib/fcntl.in.h (fcntl): Update declaration.
14385         (F_DUPFD, F_GETFD): New macros, when needed.
14386         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
14387         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
14388         * tests/test-fcntl.c (check_flags, main): Enhance test for items
14389         we now guarantee.
14390
14391         fcntl: work around cygwin bug in F_DUPFD
14392         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
14393         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
14394         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
14395         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
14396         * doc/posix-functions/fcntl.texi (fcntl): Document it.
14397
14398         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
14399         * modules/fcntl (Files): List new files.
14400         (configure.ac): Run a test.
14401         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
14402         * lib/fcntl.c (rpl_fcntl): Likewise.
14403         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
14404         (gl_FCNTL_H): Always replace fcntl.h.
14405         * modules/fcntl-h (Makefile.am): Substitute witnesses.
14406         * lib/fcntl.in.h (fcntl): Declare replacement.
14407         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
14408         needed, plus a witness.
14409         * doc/posix-functions/fcntl.texi (fcntl): Document this.
14410         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
14411         * tests/test-fcntl.c: New file.
14412         * modules/fcntl-tests: Likewise.
14413
14414         binary-io: avoid potential compilation warning
14415         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
14416         directives.
14417
14418         fflush: avoid compilation error on NetBSD
14419         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
14420         between off_t and fpos_t, since the latter is sometimes a struct.
14421         * lib/fseeko.c (rpl_fseeko): Likewise.
14422         Reported by Alexander Nasonov <alnsn@yandex.ru>.
14423
14424 2009-12-15  Eric Blake  <ebb9@byu.net>
14425
14426         fcntl-h, stdio, sys_ioctl: fix declarations
14427         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
14428         function must not take arguments.
14429         * lib/sys_ioctl.in.h (ioctl): Likewise.
14430         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
14431         (open): Add a link warning.
14432
14433 2009-12-15  Jim Meyering  <meyering@redhat.com>
14434
14435         areadlink, areadlink-with-size: relax license to LGPLv2+
14436         * modules/areadlink (License): Relax to LGPLv2+.
14437         * modules/areadlink-with-size (License): Likewise.
14438
14439 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
14440             Bruno Haible  <bruno@clisp.org>
14441
14442         *printf: Fix memory leak.
14443         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
14444         * lib/vfprintf.c (vfprintf): Likewise.
14445         * lib/dprintf.c (dprintf): Likewise.
14446         * lib/vdprintf.c (vdprintf): Likewise.
14447
14448 2009-12-14  Eric Blake  <ebb9@byu.net>
14449
14450         accept4: adjust module dependencies
14451         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
14452
14453         utimens: one more try at avoiding compiler warning
14454         * lib/utimens.c (lutimens): Lower scope of result.
14455
14456 2009-12-13  Bruno Haible  <bruno@clisp.org>
14457
14458         Move the malloc checking from module 'list' to new module 'xlist'.
14459         * modules/xlist: New file.
14460         * lib/gl_xlist.h: New file.
14461         * lib/gl_xlist.c: New file.
14462         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
14463         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
14464         gl_list_add_last, gl_list_add_before, gl_list_add_after,
14465         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
14466         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
14467         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
14468         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
14469         gl_sortedlist_nx_add): New declarations.
14470         (struct gl_list_implementation): Rename and change methods accordingly.
14471         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
14472         (gl_list_nx_create): Renamed from gl_list_create.
14473         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
14474         (gl_list_nx_set_at): Renamed from gl_list_set_at.
14475         (gl_list_nx_add_first): Renamed from gl_list_add_first.
14476         (gl_list_nx_add_last): Renamed from gl_list_add_last.
14477         (gl_list_nx_add_before): Renamed from gl_list_add_before.
14478         (gl_list_nx_add_after): Renamed from gl_list_add_after.
14479         (gl_list_nx_add_at): Renamed from gl_list_add_at.
14480         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
14481         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
14482         gl_list_create_empty.
14483         (gl_list_nx_create): Renamed from gl_list_create.
14484         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
14485         (gl_list_nx_set_at): Renamed from gl_list_set_at.
14486         (gl_list_nx_add_first): Renamed from gl_list_add_first.
14487         (gl_list_nx_add_last): Renamed from gl_list_add_last.
14488         (gl_list_nx_add_before): Renamed from gl_list_add_before.
14489         (gl_list_nx_add_after): Renamed from gl_list_add_after.
14490         (gl_list_nx_add_at): Renamed from gl_list_add_at.
14491         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
14492         * lib/gl_array_list.c: Don't include xalloc.h.
14493         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
14494         NULL upon out-of-memory.
14495         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
14496         out-of-memory.
14497         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
14498         Change return type to 'int'.
14499         (gl_array_nx_set_at): Renamed from gl_array_set_at.
14500         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
14501         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
14502         upon out-of-memory.
14503         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
14504         upon out-of-memory.
14505         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
14506         upon out-of-memory.
14507         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
14508         upon out-of-memory.
14509         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
14510         out-of-memory.
14511         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
14512         Update.
14513         (gl_array_list_implementation): Update.
14514         * lib/gl_carray_list.c: Don't include xalloc.h.
14515         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
14516         Return NULL upon out-of-memory.
14517         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
14518         out-of-memory.
14519         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
14520         Change return type to 'int'.
14521         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
14522         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
14523         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
14524         upon out-of-memory.
14525         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
14526         upon out-of-memory.
14527         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
14528         out-of-memory.
14529         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
14530         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
14531         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
14532         Update.
14533         (gl_carray_list_implementation): Update.
14534         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
14535         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
14536         gl_linked_create_empty. Return NULL upon out-of-memory.
14537         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
14538         out-of-memory.
14539         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
14540         Change return type to 'int'. Return -1 upon out-of-memory.
14541         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
14542         out-of-memory.
14543         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
14544         upon out-of-memory.
14545         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
14546         upon out-of-memory.
14547         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
14548         NULL upon out-of-memory.
14549         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
14550         upon out-of-memory.
14551         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
14552         out-of-memory.
14553         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
14554         Update.
14555         * lib/gl_linked_list.c: Don't include xalloc.h.
14556         (gl_linked_list_implementation): Update.
14557         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
14558         (add_to_bucket): Change return type to 'int'.
14559         (gl_linkedhash_list_implementation): Update.
14560         * lib/gl_anytree_list1.h (free_subtree): New function.
14561         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
14562         gl_tree_create_empty. Return NULL upon out-of-memory.
14563         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
14564         Change return type to 'int'. Return -1 upon out-of-memory.
14565         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
14566         out-of-memory.
14567         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
14568         (gl_tree_remove_node): New function, moved here from
14569         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
14570         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
14571         Update.
14572         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
14573         malloc, not xmalloc. Return NULL upon out-of-memory.
14574         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
14575         out-of-memory.
14576         (gl_tree_remove_node_from_tree): New function, extracted from
14577         gl_tree_remove_node.
14578         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
14579         upon out-of-memory.
14580         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
14581         out-of-memory.
14582         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
14583         upon out-of-memory.
14584         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
14585         upon out-of-memory.
14586         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
14587         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
14588         not xmalloc. Return NULL upon out-of-memory.
14589         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
14590         out-of-memory.
14591         (gl_tree_remove_node_from_tree): New function, extracted from
14592         gl_tree_remove_node.
14593         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
14594         upon out-of-memory.
14595         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
14596         out-of-memory.
14597         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
14598         upon out-of-memory.
14599         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
14600         upon out-of-memory.
14601         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
14602         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
14603         gl_anytree_list1.h before gl_anyavltree_list2.h.
14604         (gl_avltree_list_implementation): Update.
14605         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
14606         gl_anytree_list1.h before gl_anyavltree_list2.h.
14607         (gl_rbtree_list_implementation): Update.
14608         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
14609         Change return type to 'int'. Return -1 upon out-of-memory. Use
14610         __builtin_expect.
14611         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
14612         (gl_avltreehash_list_implementation): Update.
14613         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
14614         (gl_rbtreehash_list_implementation): Update.
14615         * modules/array-list (Depends-on): Remove xalloc.
14616         * modules/carray-list (Depends-on): Likewise.
14617         * modules/linked-list (Depends-on): Likewise.
14618         * modules/linkedhash-list (Depends-on): Likewise.
14619         * modules/avltree-list (Depends-on): Likewise.
14620         * modules/rbtree-list (Depends-on): Likewise.
14621         * modules/avltreehash-list (Depends-on): Likewise.
14622         * modules/rbtreehash-list (Depends-on): Likewise.
14623
14624         * modules/xsublist: New file.
14625         * lib/gl_xsublist.h: New file.
14626         * lib/gl_xsublist.c: New file.
14627         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
14628         (gl_sublist_nx_create): New declaration.
14629         * lib/gl_sublist.c: Don't include xalloc.h.
14630         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
14631         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
14632         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
14633         Change return type to 'int'. Return -1 upon out-of-memory.
14634         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
14635         upon out-of-memory.
14636         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
14637         NULL upon out-of-memory.
14638         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
14639         upon out-of-memory.
14640         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
14641         NULL upon out-of-memory.
14642         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
14643         NULL upon out-of-memory.
14644         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
14645         upon out-of-memory.
14646         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
14647         (gl_sublist_list_implementation): Update.
14648         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
14649         upon out-of-memory.
14650         * modules/sublist (Depends-on): Remove xalloc.
14651
14652         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
14653         * tests/test-carray_list.c: Likewise.
14654         * tests/test-linked_list.c: Likewise.
14655         * tests/test-linkedhash_list.c: Likewise.
14656         * tests/test-avltree_list.c: Likewise.
14657         * tests/test-rbtree_list.c: Likewise.
14658         * tests/test-avltreehash_list.c: Likewise.
14659         * tests/test-rbtreehash_list.c: Likewise.
14660         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
14661         * modules/carray-list-tests (Makefile.am): Likewise.
14662         * modules/linked-list-tests (Makefile.am): Likewise.
14663         * modules/linkedhash-list-tests (Makefile.am): Likewise.
14664         * modules/avltree-list-tests (Makefile.am): Likewise.
14665         * modules/rbtree-list-tests (Makefile.am): Likewise.
14666         * modules/avltreehash-list-tests (Makefile.am): Likewise.
14667         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
14668
14669         * NEWS: Mention the changes.
14670
14671         * lib/clean-temp.c: Include gl_xlist.h.
14672         * modules/clean-temp (Depends-on): Add xlist.
14673
14674         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
14675         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
14676
14677         * tests/test-array_oset.c: Include gl_xlist.h.
14678         * modules/array-oset-tests (Depends-on): Add xlist.
14679
14680         Reported by José E. Marchesi <jemarch@gnu.org>.
14681
14682 2009-12-13  Bruno Haible  <bruno@clisp.org>
14683
14684         Move the malloc checking from module 'oset' to new module 'xoset'.
14685         * modules/xoset: New file.
14686         * lib/gl_xoset.h: New file.
14687         * lib/gl_xoset.c: New file.
14688         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
14689         declarations.
14690         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
14691         (struct gl_oset_implementation): Rename and change methods accordingly.
14692         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
14693         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
14694         'int'. Mark as __warn_unused_result__.
14695         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
14696         gl_oset_create_empty.
14697         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
14698         'int'.
14699         * lib/gl_array_oset.c: Don't include xalloc.h.
14700         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
14701         malloc, not xmalloc.
14702         (grow): Change return type to 'int'. Don't call xalloc_die.
14703         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
14704         to 'int'.
14705         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
14706         'int'.
14707         (gl_array_oset_implementation): Update.
14708         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
14709         gl_tree_create_empty.
14710         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
14711         'int'.
14712         * lib/gl_avltree_oset.c: Don't include xalloc.h.
14713         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
14714         xmalloc.
14715         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
14716         not xmalloc.
14717         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
14718         xmalloc.
14719         (gl_avltree_oset_implementation): Update.
14720         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
14721         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
14722         xmalloc.
14723         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
14724         not xmalloc.
14725         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
14726         xmalloc.
14727         (gl_rbtree_oset_implementation): Update.
14728         * modules/array-oset (Depends-on): Remove xalloc.
14729         * modules/avltree-oset (Depends-on): Likewise.
14730         * modules/rbtree-oset (Depends-on): Likewise.
14731         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
14732         * tests/test-avltree_oset.c: Likewise.
14733         * tests/test-rbtree_oset.c: Likewise.
14734         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
14735         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
14736         * modules/rbtree-oset-tests (Makefile.am): Likewise.
14737         * NEWS: Mention the change.
14738
14739 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
14740
14741         maint.mk: allow a project to override release-prep commands
14742         * top/maint.mk (alpha, beta, stable): Move release-preparatory
14743         commands into a new rule.
14744         (release-prep): New rule.
14745         (release-prep-hook): New overridable variable.
14746
14747 2009-12-13  Bruno Haible  <bruno@clisp.org>
14748
14749         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
14750
14751 2009-12-13  Jim Meyering  <meyering@redhat.com>
14752
14753         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
14754         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
14755
14756 2009-12-12  Bruno Haible  <bruno@clisp.org>
14757
14758         duplocale: Tweak.
14759         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
14760
14761 2009-12-12  Karl Berry  <karl@gnu.org>
14762
14763         * config/srclist.txt (strtoll.c): tab changes, no more sync.
14764
14765 2009-12-12  Bruno Haible  <bruno@clisp.org>
14766
14767         * m4/po.m4: Undo incorrect untabification.
14768
14769 2009-12-12  Bruno Haible  <bruno@clisp.org>
14770
14771         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
14772         * modules/c-strtod (Depends-on): Add locale.
14773         * modules/c-strtold (Depends-on): Likewise.
14774
14775 2009-12-12  Bruno Haible  <bruno@clisp.org>
14776
14777         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
14778
14779 2009-12-11  Eric Blake  <ebb9@byu.net>
14780
14781         setenv: relax requirement in light of POSIX ruling
14782         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
14783         not NULL.
14784         * tests/test-setenv.c (main): Relax test.
14785         * tests/test-unsetenv.c (main): Likewise.
14786         * doc/posix-functions/setenv.texi (setenv): Document this.
14787         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
14788
14789 2009-12-11  Bruno Haible  <bruno@clisp.org>
14790
14791         New module 'fd-safer-flag'.
14792         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
14793         * lib/dup-safer.c (dup_safer_flag): Remove function.
14794         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
14795         * lib/fd-safer.c (fd_safer_flag): Remove function.
14796         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
14797         * modules/cloexec (configure.ac): Drop indicator macro.
14798         * modules/fd-safer-flag: New file.
14799         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
14800         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
14801         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
14802
14803 2009-12-11  Bruno Haible  <bruno@clisp.org>
14804
14805         Tests for module 'nl_langinfo'.
14806         * modules/nl_langinfo-tests: New file.
14807         * tests/test-nl_langinfo.sh: New file.
14808         * tests/test-nl_langinfo.c: New file.
14809
14810         New module 'nl_langinfo'.
14811         * lib/nl_langinfo.c: New file.
14812         * m4/nl_langinfo.m4: New file.
14813         * modules/nl_langinfo: New file.
14814         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
14815
14816 2009-12-11  Bruno Haible  <bruno@clisp.org>
14817
14818         Tests for module 'langinfo'.
14819         * modules/langinfo-tests: New file.
14820         * tests/test-langinfo.c: New file.
14821
14822         New module 'langinfo'.
14823         * lib/langinfo.in.h: New file.
14824         * m4/langinfo_h.m4: New file.
14825         * modules/langinfo: New file.
14826         * doc/posix-headers/langinfo.texi: Mention the new module.
14827
14828 2009-12-11  Bruno Haible  <bruno@clisp.org>
14829
14830         * lib/config.charset: Untabify.
14831
14832 2009-12-11  Bruno Haible  <bruno@clisp.org>
14833
14834         * modules/unistd-safer (configure.ac): Drop indicator macro.
14835
14836 2009-12-11  Bruno Haible  <bruno@clisp.org>
14837
14838         Move pipe2-safer code to its own file.
14839         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
14840         * lib/pipe-safer.c (pipe2_safer): Remove function.
14841         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
14842         (Makefile.am): Add it to lib_SOURCES.
14843
14844 2009-12-10  Bruno Haible  <bruno@clisp.org>
14845
14846         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
14847
14848 2009-12-10  Bruno Haible  <bruno@clisp.org>
14849
14850         Declare which arguments expect non-NULL values, for GCC and clang.
14851         * build-aux/arg-nonnull.h: New file.
14852         * modules/arg-nonnull: New file.
14853         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
14854         (inet_ntop, inet_pton): Use it.
14855         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
14856         (closedir, dirfd, opendir, scandir, alphasort): Use it.
14857         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
14858         (open, openat): Use it.
14859         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
14860         (fnmatch): Use it.
14861         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
14862         (getopt, getopt_long, getopt_long_only): Use it.
14863         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
14864         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
14865         Use it.
14866         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
14867         (iconv_open): Use it.
14868         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
14869         (strtoimax, strtoumax): Use it.
14870         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
14871         (duplocale): Use it.
14872         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
14873         (frexp, frexpl): Use it.
14874         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
14875         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
14876         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
14877         (tsearch, tfind, tdelete, twalk): Use it.
14878         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
14879         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
14880         sigpending): Use it.
14881         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
14882         (posix_spawn, posix_spawnp, posix_spawnattr_init,
14883         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
14884         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
14885         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
14886         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
14887         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
14888         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
14889         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
14890         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
14891         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
14892         Use it.
14893         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
14894         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
14895         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
14896         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
14897         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
14898         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
14899         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
14900         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
14901         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
14902         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
14903         strtoull, unsetenv): Use it.
14904         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
14905         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
14906         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
14907         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
14908         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
14909         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
14910         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
14911         (strcasecmp, strncasecmp): Use it.
14912         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
14913         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
14914         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
14915         rpl_setsockopt): Use it.
14916         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
14917         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
14918         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
14919         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
14920         (gettimeofday): Use it.
14921         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
14922         (times): Use it.
14923         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
14924         (uname): Use it.
14925         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
14926         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
14927         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
14928         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
14929         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
14930         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
14931         unlinkat, write): Use it.
14932         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
14933         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
14934         * lib/argv-iter.h: Include arg-nonnull.h.
14935         (_ATTRIBUTE_NONNULL_): Remove macro.
14936         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
14937         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
14938         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
14939         optimization.
14940         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
14941         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
14942         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
14943         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
14944         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
14945         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
14946         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
14947         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
14948         * modules/arpa_inet (Depends-on): Add arg-nonnull.
14949         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
14950         * modules/dirent (Depends-on): Add arg-nonnull.
14951         (Makefile.am): Insert arg-nonnull.h into dirent.h.
14952         * modules/fcntl-h (Depends-on): Add arg-nonnull.
14953         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
14954         * modules/fnmatch (Depends-on): Add arg-nonnull.
14955         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
14956         * modules/getopt-posix (Depends-on): Add arg-nonnull.
14957         (Makefile.am): Insert arg-nonnull.h into getopt.h.
14958         * modules/glob (Depends-on): Add arg-nonnull.
14959         (Makefile.am): Insert arg-nonnull.h into glob.h.
14960         * modules/iconv_open (Depends-on): Add arg-nonnull.
14961         (Makefile.am): Insert arg-nonnull.h into iconv.h.
14962         * modules/inttypes (Depends-on): Add arg-nonnull.
14963         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
14964         * modules/locale (Depends-on): Add arg-nonnull.
14965         (Makefile.am): Insert arg-nonnull.h into locale.h.
14966         * modules/math (Depends-on): Add arg-nonnull.
14967         (Makefile.am): Insert arg-nonnull.h into math.h.
14968         * modules/netdb (Depends-on): Add arg-nonnull.
14969         (Makefile.am): Insert arg-nonnull.h into netdb.h.
14970         * modules/search (Depends-on): Add arg-nonnull.
14971         (Makefile.am): Insert arg-nonnull.h into search.h.
14972         * modules/signal (Depends-on): Add arg-nonnull.
14973         (Makefile.am): Insert arg-nonnull.h into signal.h.
14974         * modules/spawn (Depends-on): Add arg-nonnull.
14975         (Makefile.am): Insert arg-nonnull.h into spawn.h.
14976         * modules/stdio (Depends-on): Add arg-nonnull.
14977         (Makefile.am): Insert arg-nonnull.h into stdio.h.
14978         * modules/stdlib (Depends-on): Add arg-nonnull.
14979         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
14980         * modules/string (Depends-on): Add arg-nonnull.
14981         (Makefile.am): Insert arg-nonnull.h into string.h.
14982         * modules/strings (Depends-on): Add arg-nonnull.
14983         (Makefile.am): Insert arg-nonnull.h into strings.h.
14984         * modules/sys_socket (Depends-on): Add arg-nonnull.
14985         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
14986         * modules/sys_stat (Depends-on): Add arg-nonnull.
14987         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
14988         * modules/sys_time (Depends-on): Add arg-nonnull.
14989         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
14990         * modules/sys_times (Depends-on): Add arg-nonnull.
14991         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
14992         * modules/sys_utsname (Depends-on): Add arg-nonnull.
14993         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
14994         * modules/time (Depends-on): Add arg-nonnull.
14995         (Makefile.am): Insert arg-nonnull.h into time.h.
14996         * modules/unistd (Depends-on): Add arg-nonnull.
14997         (Makefile.am): Insert arg-nonnull.h into unistd.h.
14998         * modules/wchar (Depends-on): Add arg-nonnull.
14999         (Makefile.am): Insert arg-nonnull.h into wchar.h.
15000         * modules/argv-iter (Depends-on): Add arg-nonnull.
15001         * tests/test-canonicalize.c (null_ptr): New function.
15002         (main): Use it.
15003         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
15004         (main): Use it.
15005         * tests/test-memmem.c (null_ptr): New function.
15006         (main): Use it.
15007         Reported by Jim Meyering.
15008
15009 2009-12-10  Bruno Haible  <bruno@clisp.org>
15010
15011         Use spaces for indentation, not tabs.
15012         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
15013         * m4/*.m4: Untabify.
15014         * build-aux/*.h: Untabify.
15015         * tests/**/*.[hc]: Untabify.
15016         * README: New section "Indent with spaces, not TABs", based on
15017         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
15018         * NEWS: Mention the change.
15019
15020 2009-12-10  Bruno Haible  <bruno@clisp.org>
15021
15022         pty test: Fix link error.
15023         * modules/pty-tests (Makefile.am): Add the default LDADD value to
15024         test_pty_LDADD.
15025
15026 2009-12-07  Simon Josefsson  <simon@josefsson.org>
15027
15028         * modules/pty: New file.
15029         * modules/pty-tests: New file.
15030         * m4/pty.m4: New file.
15031         * tests/test-pty.c: New file.
15032         * doc/glibc-headers/pty.texi: Modified.
15033         * doc/glibc-functions/forkpty.texi: Modified.
15034         * doc/glibc-functions/openpty.texi: Modified.
15035
15036 2009-12-10  Bruno Haible  <bruno@clisp.org>
15037
15038         Avoid syntax error in C++ mode.
15039         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
15040
15041 2009-12-10  Bruno Haible  <bruno@clisp.org>
15042
15043         Use sed with option -e.
15044         * gnulib-tool (func_version, func_emit_copyright_notice,
15045         func_emit_initmacro_end, func_import, func_create_testdir): Pass
15046         option -e to sed.
15047         * modules/link-warning (Makefile.am): Likewise.
15048
15049 2009-12-10  Jim Meyering  <meyering@redhat.com>
15050
15051         mgetgroups: do not write bytes beyond end of malloc'd buffer
15052         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
15053         username, we call getgroups with a one-element-shorter buffer,
15054         but still told it the length was original, max_n_groups.
15055
15056 2009-12-09  Eric Blake  <ebb9@byu.net>
15057
15058         cloexec: relax license
15059         * modules/cloexec (Maintainer): Add myself.
15060         (License): Use LGPL, not GPL.
15061
15062         link-warning: optimize generation
15063         * modules/link-warning (Makefile.am): Reduce process usage.
15064
15065 2009-12-09  Bruno Haible  <bruno@clisp.org>
15066
15067         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
15068         workaround was added on 2009-11-17.
15069
15070 2009-12-09  Jim Meyering  <meyering@redhat.com>
15071             Bruno Haible  <bruno@clisp.org>
15072
15073         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
15074         * modules/link-warning (Makefile.am): Make the comment-removing sed
15075         command more robust in the face of bootstrap-prepended comment lines.
15076
15077 2009-12-09  Bruno Haible  <bruno@clisp.org>
15078
15079         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
15080         most one group.
15081
15082 2009-12-09  Simon Josefsson <simon@josefsson.org>
15083             Bruno Haible  <bruno@clisp.org>
15084
15085         * build-aux/link-warning.h: Add copyright notice.
15086         * modules/link-warning (Makefile.am): Generate link-warning.h from
15087         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
15088         * NEWS: Mention change in link-warning module.
15089         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
15090         * modules/dirent (Makefile.am): Add dependency to dirent.h.
15091         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
15092         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
15093         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
15094         * modules/math (Makefile.am): Add dependency to math.h.
15095         * modules/search (Makefile.am): Add dependency to search.h.
15096         * modules/signal (Makefile.am): Add dependency to signal.h.
15097         * modules/spawn (Makefile.am): Add dependency to spawn.h.
15098         * modules/stdio (Makefile.am): Add dependency to stdio.h.
15099         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
15100         * modules/string (Makefile.am): Add dependency to string.h.
15101         * modules/strings (Makefile.am): Add dependency to strings.h.
15102         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
15103         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
15104         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
15105         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
15106         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
15107         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
15108         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
15109         * modules/unistd (Makefile.am): Add dependency to unistd.h.
15110         * modules/wchar (Makefile.am): Add dependency to wchar.h.
15111
15112 2009-12-09  Bruno Haible  <bruno@clisp.org>
15113
15114         fchdir: Optimize away rpl_fstat when possible.
15115         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
15116         REPLACE_OPEN_DIRECTORY.
15117         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
15118
15119 2009-12-09  Bruno Haible  <bruno@clisp.org>
15120
15121         * lib/fchdir.c: Update comment.
15122
15123 2009-12-09  Bruno Haible  <bruno@clisp.org>
15124
15125         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
15126
15127 2009-12-08  Eric Blake  <ebb9@byu.net>
15128
15129         fchdir: avoid memory leak on re-registration.
15130         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
15131
15132 2009-12-08  Jim Meyering  <meyering@redhat.com>
15133
15134         init.sh: avoid Solaris 10 /bin/sh portability problem
15135         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
15136         sourced script:
15137           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
15138           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
15139           bar
15140         tests/init.sh relied on that, accepting a --set-path=DIR argument,
15141         and two tests used that idiom.
15142         * tests/init.sh: Update suggested usage comments.
15143         (path_prepend_): New function, to be used in place
15144         of the --src-path=DIR option.
15145         (setup_): Move PATH-prepending code into path_prepend_.
15146         * tests/test-pread.sh: Adapt to new usage.
15147         * tests/test-xalloc-die.sh: Likewise.
15148
15149 2009-12-08  Simon Josefsson  <simon@josefsson.org>
15150
15151         * doc/gnulib.texi (Glibc pty.h): Add.
15152         * doc/glibc-functions/forkpty.texi: Add.
15153         * doc/glibc-functions/openpty.texi: Add.
15154         Suggested by Bruno Haible.
15155
15156 2009-12-08  Eric Blake  <ebb9@byu.net>
15157
15158         fchdir: fix logic bugs
15159         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
15160         * tests/test-fchdir.c (main): Enhance test.
15161         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
15162         is in use.
15163
15164         dup2: fix logic bugs
15165         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
15166         REPLACE_DUP2 to decide when rpl_dup2 is needed.
15167         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
15168         exists.
15169         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
15170
15171 2009-12-07  Eric Blake  <ebb9@byu.net>
15172
15173         unlink: fix m4 detection
15174         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
15175
15176         unistd-safer: add unit test
15177         * modules/unistd-safer-tests: New file.
15178         * tests/test-dup-safer.c: Likewise.
15179         * tests/test-cloexec.c (setmode): Avoid compiler warning.
15180         * tests/test-dup2.c (setmode): Likewise.
15181         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
15182
15183         cloexec: preserve text vs. binary across dup_cloexec
15184         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
15185         mode.
15186         * modules/dup2-tests (Depends-on): Add binary-io.
15187         * modules/cloexec-tests (Depends-on): Likewise.
15188         * tests/test-dup2.c (setmode, is_mode): New helpers.
15189         (main): Add tests that translation mode is preserved.
15190         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
15191         Reported by Bruno Haible.
15192
15193         mgetgroups: reduce duplicate listings
15194         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
15195         resulting array.
15196         * tests/test-chown.h (test_chown): Simplify client.
15197         * tests/test-lchown.h (test_lchown): Likewise.
15198
15199 2009-12-06  Bruno Haible  <bruno@clisp.org>
15200
15201         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
15202         value.
15203
15204 2009-12-06  Bruno Haible  <bruno@clisp.org>
15205
15206         * lib/progname.c: Include stdio.h, stdlib.h.
15207         (set_program_name): Reject a NULL argument.
15208
15209 2009-12-05  Eric Blake  <ebb9@byu.net>
15210
15211         pipe2-safer: new module
15212         * modules/pipe2-safer: New file.
15213         * lib/unistd-safer.h (pipe2_safer): New prototype.
15214         * lib/unistd--.h (pipe2): New wrapper.
15215         * lib/pipe-safer.c (pipe2_safer): New function.
15216         * modules/pipe (Depends-on): Add pipe2-safer.
15217         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
15218
15219         stdlib-safer: preserve cloexec flag for mkostemp[s]
15220         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
15221         fd_safer_flag.
15222
15223         unistd-safer: allow preservation of cloexec status via flag
15224         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
15225         prototypes.
15226         * lib/dup-safer.c (dup_safer_flag): New function.
15227         * lib/fd-safer.c (fd_safer_flag): Likewise.
15228         * modules/cloexec (configure.ac): Set witness.
15229
15230         test-dup2: enhance test
15231         * modules/dup2-tests (Depends-on): Add cloexec.
15232         * tests/test-dup2.c (main): Enhance test.
15233
15234         cloexec: add dup_cloexec
15235         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
15236         header and comments.
15237         * lib/cloexec.c (set_cloexec_flag): Add comments.
15238         (dup_cloexec): New function, with mingw implementation borrowed
15239         from...
15240         * lib/w32spawn.h (dup_noinherit): ...here.
15241         * modules/execute (Depends-on): Add cloexec.
15242         * modules/pipe (Depends-on): Likewise.
15243         * modules/cloexec (Depends-on): Add dup2.
15244         * modules/cloexec-tests (Files): New file.
15245         * tests/test-cloexec.c: Likewise.
15246
15247         test-xalloc-die: fix test for mingw
15248         * modules/xalloc-die-tests (Files): Add tests/init.sh.
15249         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
15250         directory and .exe suffix off argv[0] output.
15251
15252         test-fseeko: fix test for mingw
15253         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
15254         than undefining fseek, so test will pass on mingw.
15255
15256 2009-12-05  Bruno Haible  <bruno@clisp.org>
15257
15258         * lib/progname.h (set_program_name): Clarify specification.
15259         * lib/progname.c (set_program_name): Likewise.
15260         Reported by Jim Meyering.
15261
15262 2009-12-05  Jim Meyering  <meyering@redhat.com>
15263
15264         maint.mk: backslash-escape parens in default regexp
15265         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
15266         backslash-escape the literal parentheses.
15267
15268         maint.mk: news-date-check: use grep -E
15269         * top/maint.mk (today): Define a Make variable, not a...
15270         (news-date-check): ...shell variable.
15271         (news-date-regexp): Use the Make variable.
15272         Use grep's -E option.  Change the failing diagnostic to mention
15273         the variable, $(news-date-regexp).
15274
15275 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
15276
15277         maintainer-makefile: allow customization of NEWS entry format
15278         * top/maint.mk (news-date-regexp): New overridable variable.
15279         (news-date-check): Use it.
15280
15281 2009-12-04  Eric Blake  <ebb9@byu.net>
15282
15283         mgetgroups: add xgetgroups, and avoid ENOSYS failures
15284         * lib/mgetgroups.h (xgetgroups): New prototype.
15285         * lib/mgetgroups.c (xgetgroups): New wrapper.
15286         (mgetgroups): Handle ENOSYS.
15287         * modules/mgetgroups (Depends-on): Add realloc.
15288         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
15289
15290         mgetgroups: avoid argument promotion issues with -1
15291         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
15292         for invalid gid_t.
15293         * tests/test-chown.h (getegid, test_chown): Likewise.
15294         * tests/test-lchown.h (getegid, test_lchown): Likewise.
15295
15296 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
15297
15298         exclude: Fix header file problems.
15299         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
15300
15301 2009-12-01  Jim Meyering  <meyering@redhat.com>
15302
15303         fts: fts_open: do not let an empty string cause immediate failure
15304         This is required in support of GNU rm, for which the command
15305         "rm A '' B" must process and remove both A and B, in spite of
15306         the empty string argument.
15307         * lib/fts.c (fts_open): Do not let the presence of an empty string
15308         cause fts_open to fail immediately.  Most fts-using tools must be
15309         able to process all arguments, in order, and can be expected to
15310         diagnose such arguments themselves.
15311
15312 2009-11-30  Eric Blake  <ebb9@byu.net>
15313
15314         utimens: fix compilation error
15315         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
15316         Declare variable at right scope.
15317
15318 2009-11-29  Jim Meyering  <meyering@redhat.com>
15319
15320         bootstrap: handle perl-5.11's changed --version output
15321         * build-aux/bootstrap (get_version): Handle perl separately,
15322         since perl-5.11's --version output is different.
15323
15324 2009-11-28  Jim Meyering  <meyering@redhat.com>
15325
15326         userspec: depend on the inttostr module, too
15327         * modules/userspec (Depends-on): Add inttostr.
15328
15329         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
15330         * lib/userspec.c (parse_with_separator): Do not accept a user ID
15331         number of MAXUID when it evaluates to (uid_t) -1.
15332         Likewise for group ID.  Reported by Matt McCutchen in
15333         <http://savannah.gnu.org/bugs/?28113>
15334
15335         userspec: reformat to use spaces, not TABs
15336         * lib/userspec.c: Expand TABs to spaces.
15337         Add Emacs' "indent-tabs-mode: nil" hint.
15338
15339 2009-11-27  Eric Blake  <ebb9@byu.net>
15340
15341         getopt-gnu: flush out another BSD bug
15342         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
15343         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
15344         flush out BSD bug.
15345         * tests/test-getopt.h (test_getopt): End lists with NULL.
15346         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15347         (test_getopt_long_posix): Enhance test.
15348         * modules/getopt-posix-tests (Depends-on): Add stdbool.
15349         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
15350         getopt-gnu.
15351         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
15352         Likewise.
15353
15354 2009-11-27  Simon Josefsson  <simon@josefsson.org>
15355
15356         * modules/idpriv-droptemp-tests (Notice): Fix text.
15357
15358 2009-11-27  Jim Meyering  <meyering@redhat.com>
15359
15360         test-xalloc-die: avoid spurious failure due to libtool argv difference
15361         In a libtool-enabled project, this test would fail due to a difference
15362         in the emitted program name, e.g.,
15363         -test-xalloc-die: memory exhausted
15364         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
15365         Use program to avoid that.
15366         * modules/xalloc-die-tests (Depends-on): Add progname.
15367         * tests/test-xalloc-die.c: Include progname.h".
15368         (program_name): Remove decl.
15369         (main): Call set_program_name.
15370         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
15371
15372 2009-11-26  Richard Jones  <rjones@redhat.com>
15373
15374         w32sock: leave win32 error in place.
15375         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
15376
15377 2009-11-26  Eric Blake  <ebb9@byu.net>
15378
15379         init.sh: suggest to use skip_ and fail_ functions in comments
15380         * tests/init.sh: Add a sentence.
15381
15382 2009-11-25  Bruno Haible  <bruno@clisp.org>
15383
15384         init.sh: add documentation in comments
15385         * tests/init.sh: Add some developer and user documentation.
15386
15387 2009-11-26  Jim Meyering  <meyering@redhat.com>
15388
15389         init.sh: accommodate even those who specify bogus srcdir manually
15390         * tests/init.sh: Normally, srcdir is guaranteed by automake and
15391         configure-time tests to be sanitized, so that there is no need to
15392         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
15393         (with no double quotes) suffices.  However, since tests may be
15394         invoked manually, and since you may explicitly set srcdir to the
15395         name of a directory containing spaces, do quote its uses here.
15396         * tests/test-pread.sh: Likewise.
15397         Suggested by Bruno Haible.
15398
15399         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
15400         * tests/test-pread.sh: Write no data into the pipe, because
15401         test-pread actually reads none.  This avoids a diagnostic,
15402         "bash: echo: write error: Broken pipe", that arises in the unusual
15403         event something is ignoring SIGPIPE, and might be interpreted
15404         as some sort of failure.  Reported by Bruno Haible.
15405
15406 2009-11-25  Jim Meyering  <meyering@redhat.com>
15407
15408         test-pread: cover failure with ESPIPE and EINVAL
15409         * tests/test-pread.c (main): Test for failure, too.
15410         * tests/test-pread.sh: Invoke with stdin on a pipe.
15411         Suggested by Eric Blake.
15412
15413         pread: improvement and fix
15414         * modules/pread (Depends-on): Depend on lseek, for portability to
15415         e.g., mingw.  Suggested by Eric Blake.
15416         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
15417
15418         unistd.in.h: correct declaration of pread
15419         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
15420         Reported by Richard W.M. Jones.
15421
15422         test-pread.sh: distribute the test script
15423         * modules/pread-tests (Files): Include test-pread.sh.
15424
15425         test-pread.sh: clean up
15426         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
15427         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
15428         That is unnecessary, since it's always ".".
15429         Suggestion from Eric Blake.
15430
15431         test-pread.sh: make executable
15432         * tests/test-pread.sh: Set executable bit.
15433         Reported by Eric Blake.
15434
15435         correct typo in test-pread.sh
15436         * tests/test-pread.sh: Add #! line.
15437
15438         test pread
15439         * tests/test-pread.c: New file.
15440         * tests/test-pread.sh: Likewise.
15441         * modules/pread-tests: Likewise.
15442
15443         pread: new module
15444         * modules/pread: New file.
15445         * lib/unistd.in.h (pread): Define/declare.
15446         * lib/pread.c (pread): New file.
15447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
15448         * modules/unistd (Makefile.am): Substitute witnesses.
15449         * doc/posix-functions/pread.texi (pread): Update.
15450         * MODULES.html.sh: Add pread.
15451
15452 2009-11-25  Jim Meyering  <meyering@redhat.com>
15453
15454         tests/init.sh: new file to be used via most *.sh tests
15455         * tests/init.sh: New file.
15456
15457 2009-11-25  Eric Blake  <ebb9@byu.net>
15458
15459         utimens: work around older Linux failure with symlinks
15460         * lib/utimens.c (lutimensat_works_really): New variable.
15461         (fdutimens, lutimens): Use it to manage kernels that support
15462         nanosecond times on files, but not on symlinks.
15463         Reported by OndÅ™ej Vašík.
15464
15465         utimes: fix configure grammar
15466         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
15467
15468 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
15469
15470         regex: Fix fastmap for multibyte character ranges.
15471         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
15472         characters when a multibyte character range is included.
15473
15474 2009-11-22  Andy Wingo  <wingo@pobox.com>
15475
15476         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
15477         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
15478
15479 2009-11-24  Bruno Haible  <bruno@clisp.org>
15480
15481         doc: Most *_l functions exist in MacOS X 10.5.
15482         * doc/posix-functions/duplocale.texi: Update platforms list.
15483         * doc/posix-functions/freelocale.texi: Likewise.
15484         * doc/posix-functions/newlocale.texi: Likewise.
15485         * doc/posix-functions/uselocale.texi: Likewise.
15486         * doc/posix-functions/isalnum_l.texi: Likewise.
15487         * doc/posix-functions/isalpha_l.texi: Likewise.
15488         * doc/posix-functions/isblank_l.texi: Likewise.
15489         * doc/posix-functions/iscntrl_l.texi: Likewise.
15490         * doc/posix-functions/isdigit_l.texi: Likewise.
15491         * doc/posix-functions/isgraph_l.texi: Likewise.
15492         * doc/posix-functions/islower_l.texi: Likewise.
15493         * doc/posix-functions/isprint_l.texi: Likewise.
15494         * doc/posix-functions/ispunct_l.texi: Likewise.
15495         * doc/posix-functions/isspace_l.texi: Likewise.
15496         * doc/posix-functions/isupper_l.texi: Likewise.
15497         * doc/posix-functions/iswalnum_l.texi: Likewise.
15498         * doc/posix-functions/iswalpha_l.texi: Likewise.
15499         * doc/posix-functions/iswblank_l.texi: Likewise.
15500         * doc/posix-functions/iswcntrl_l.texi: Likewise.
15501         * doc/posix-functions/iswctype_l.texi: Likewise.
15502         * doc/posix-functions/iswdigit_l.texi: Likewise.
15503         * doc/posix-functions/iswgraph_l.texi: Likewise.
15504         * doc/posix-functions/iswlower_l.texi: Likewise.
15505         * doc/posix-functions/iswprint_l.texi: Likewise.
15506         * doc/posix-functions/iswpunct_l.texi: Likewise.
15507         * doc/posix-functions/iswspace_l.texi: Likewise.
15508         * doc/posix-functions/iswupper_l.texi: Likewise.
15509         * doc/posix-functions/iswxdigit_l.texi: Likewise.
15510         * doc/posix-functions/isxdigit_l.texi: Likewise.
15511         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
15512         * doc/posix-functions/strcasecmp_l.texi: Likewise.
15513         * doc/posix-functions/strcoll_l.texi: Likewise.
15514         * doc/posix-functions/strfmon_l.texi: Likewise.
15515         * doc/posix-functions/strftime_l.texi: Likewise.
15516         * doc/posix-functions/strncasecmp_l.texi: Likewise.
15517         * doc/posix-functions/strxfrm_l.texi: Likewise.
15518         * doc/posix-functions/tolower_l.texi: Likewise.
15519         * doc/posix-functions/toupper_l.texi: Likewise.
15520         * doc/posix-functions/towctrans_l.texi: Likewise.
15521         * doc/posix-functions/towlower_l.texi: Likewise.
15522         * doc/posix-functions/towupper_l.texi: Likewise.
15523         * doc/posix-functions/wcscoll_l.texi: Likewise.
15524         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
15525         * doc/posix-functions/wctrans_l.texi: Likewise.
15526         * doc/posix-functions/wctype_l.texi: Likewise.
15527         * doc/glibc-functions/strptime_l.texi: Likewise.
15528         * doc/glibc-functions/strtod_l.texi: Likewise.
15529         * doc/glibc-functions/strtof_l.texi: Likewise.
15530         * doc/glibc-functions/strtol_l.texi: Likewise.
15531         * doc/glibc-functions/strtold_l.texi: Likewise.
15532         * doc/glibc-functions/strtoll_l.texi: Likewise.
15533         * doc/glibc-functions/strtoul_l.texi: Likewise.
15534         * doc/glibc-functions/strtoull_l.texi: Likewise.
15535         * doc/glibc-functions/wcsftime_l.texi: Likewise.
15536         * doc/glibc-functions/wcstod_l.texi: Likewise.
15537         * doc/glibc-functions/wcstof_l.texi: Likewise.
15538         * doc/glibc-functions/wcstol_l.texi: Likewise.
15539         * doc/glibc-functions/wcstold_l.texi: Likewise.
15540         * doc/glibc-functions/wcstoll_l.texi: Likewise.
15541         * doc/glibc-functions/wcstoul_l.texi: Likewise.
15542         * doc/glibc-functions/wcstoull_l.texi: Likewise.
15543
15544 2009-11-24  Bruno Haible  <bruno@clisp.org>
15545
15546         duplocale: Fix logic bug.
15547         * lib/duplocale.c: Don't include <langinfo.h>.
15548         (_NL_LOCALE_NAME): Remove macro.
15549         (rpl_duplocale): Use setlocale instead of nl_langinfo.
15550         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
15551
15552 2009-11-23  Jim Meyering  <meyering@redhat.com>
15553
15554         test-update-copyright: don't hard-code /usr/bin/perl
15555         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
15556         perl to print the current year.  Gilles Espinasse reported that
15557         the replaced use of perl was hard-coded as /usr/bin/perl.
15558
15559 2009-11-23  Bruno Haible  <bruno@clisp.org>
15560
15561         duplocale: Add support for glibc 2.3.x.
15562         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
15563
15564 2009-11-22  Bruno Haible  <bruno@clisp.org>
15565
15566         vasnprintf: Tiny optimization.
15567         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
15568         MacOS X.
15569
15570 2009-11-22  Bruno Haible  <bruno@clisp.org>
15571
15572         Tests for module 'duplocale'.
15573         * modules/duplocale-tests: New file.
15574         * tests/test-duplocale.c: New file.
15575
15576         New module 'duplocale'.
15577         * m4/duplocale.m4: New file.
15578         * lib/locale.in.h (duplocale): New declaration.
15579         * lib/duplocale.c: New file.
15580         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
15581         gl_LOCALE_H_DEFAULTS): New macros.
15582         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
15583         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
15584         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
15585         REPLACE_DUPLOCALE.
15586         * modules/duplocale: New file.
15587         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
15588
15589 2009-11-22  Bruno Haible  <bruno@clisp.org>
15590
15591         * modules/locale-tests (configure.ac): Test for newlocale function.
15592         * tests/test-locale.c: When the system has extended locale functions,
15593         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
15594
15595         locale: Make locale_t available when possible.
15596         * lib/locale.in.h: Include <xlocale.h> when it exists.
15597         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
15598         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
15599         * modules/locale (Depends-on): Add extensions.
15600         (Makefile.am): Also substitute HAVE_XLOCALE_H.
15601         * doc/posix-headers/locale.texi: Document the problem with locale_t.
15602
15603 2009-11-22  Bruno Haible  <bruno@clisp.org>
15604
15605         Add comments.
15606         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
15607         invocation.
15608         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
15609         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
15610         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
15611
15612 2009-11-22  Bruno Haible  <bruno@clisp.org>
15613
15614         error: account for the possibility of freopen (stdout).
15615         * lib/error.c: Include <unistd.h>.
15616         (flush_stdout): New function, extracted from error and error_at_line.
15617         Determine stdout's fd dynamically.
15618         (error, error_at_line): Invoke flush_stdout.
15619         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
15620         * modules/error (Depends-on): Add unistd.
15621
15622 2009-11-22  Bruno Haible  <bruno@clisp.org>
15623
15624         diffseq: Add comment.
15625         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
15626
15627 2009-11-22  Jim Meyering  <meyering@redhat.com>
15628
15629         c-stack: avoid defining an unused static function
15630         * lib/c-stack.c (find_stack_direction): Do not define this function
15631         when it will not be used.
15632
15633         diffseq: avoid spurious gcc warnings
15634         * lib/diffseq.h (IF_LINT2): Define.
15635         (compareseq): Use it to initialize two members of "part".
15636         This avoids two used-uninitialized warnings.
15637
15638 2009-11-21  Jim Meyering  <meyering@redhat.com>
15639
15640         c-stack: avoid "ignoring return value of `write'" warning
15641         * lib/c-stack.c: Include "ignore-value.h".
15642         (die): Explicitly ignore each write return value.
15643         * modules/c-stack (Depends-on): Add ignore-value.
15644
15645 2009-11-21  Bruno Haible  <bruno@clisp.org>
15646
15647         diffseq: reduce scope of variable 'best'.
15648         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
15649         variable, earlier used for two different purposes.
15650
15651 2009-11-21  Jim Meyering  <meyering@redhat.com>
15652
15653         diffseq: remove useless assignment to "best"
15654         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
15655         assignment.  At that point "best" is already guaranteed to be zero.
15656
15657 2009-11-20  Eric Blake  <ebb9@byu.net>
15658
15659         build: mention ftp redirector in release announcements
15660         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
15661         values that used to come from cfg.mk; mention FTP redirect URL.
15662         * build-aux/announce-gen: Mention the mirror list.
15663         Suggested by Karl Berry.
15664
15665         nanosleep: improve port to mingw
15666         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
15667         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
15668         LIB_NANOSLEEP, but only when needed.
15669         * modules/select (Link): Document LIBSOCKET.
15670         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
15671         enough.
15672
15673         nanosleep: work around cygwin bug
15674         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
15675         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
15676         bug.
15677         (getnow): Delete, not needed.
15678         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
15679         LIB_CLOCK_GETTIME.
15680         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
15681         clock-time, gettime.
15682         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
15683         bug.
15684         * modules/nanosleep-tests: New test.
15685         * tests/test-nanosleep.c: New file.
15686
15687         sleep: work around cygwin bug
15688         * lib/sleep.c (rpl_sleep): Work around the bug.
15689         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
15690         (gl_PREREQ_SLEEP): Delete unused macro.
15691         * modules/sleep (Depends-on): Add verify.
15692         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
15693         * modules/unistd (Makefile.am): Substitute witness.
15694         * lib/unistd.in.h (sleep): Update prototype.
15695         * doc/posix-functions/sleep.texi (sleep): Document the bug.
15696         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
15697         * modules/sleep-tests (Depends-on): Check for alarm.
15698
15699 2009-11-20  Jim Meyering  <meyering@redhat.com>
15700
15701         maint.mk: improve sc_prohibit_magic_number_exit
15702         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
15703         so it does not match uses like System.exit(1).
15704         Add comments showing how to correct all offenders.
15705
15706 2009-11-19  Eric Blake  <ebb9@byu.net>
15707
15708         xalloc-die-tests: add missing library
15709         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
15710
15711         test-xvasprintf: silence compiler warnings
15712         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
15713         empty string from gcc.
15714
15715 2009-11-19  Jim Meyering  <meyering@redhat.com>
15716
15717         xfreopen: new module, from coreutils
15718         * modules/xfreopen: New module.
15719         * lib/xfreopen.c: New file.
15720         * lib/xfreopen.h: New file.
15721         * MODULES.html.sh (File stream based Input/Output"): Add it.
15722
15723 2009-11-19  Eric Blake  <ebb9@byu.net>
15724
15725         manywarnings: depend on warnings
15726         * modules/manywarnings (Depends-on): Add warnings.
15727
15728         build: avoid compiler warnings
15729         * lib/select.c (rpl_select): Delete unused variable.
15730         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
15731
15732 2009-11-18  Eric Blake  <ebb9@byu.net>
15733
15734         tests: avoid false negative with --with-packager
15735         * tests/test-version-etc.sh: Discard packager information.
15736         * tests/test-argp-version-etc-1.sh: Likewise.
15737         Reported by Mike Frysinger.
15738
15739         utimens: fix regression on Solaris
15740         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
15741         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
15742         can only change fd timestamps via futimesat.  Instead, use an
15743         additional witness macro to avoid BSD bug.
15744         Reported by Jim Meyering.
15745
15746 2009-11-17  Eric Blake  <ebb9@byu.net>
15747
15748         usleep: use it to simplify tests
15749         * modules/stat-time-tests (Depends-on): Add usleep.
15750         (configure.ac): Drop usleep check.
15751         * modules/chown-tests (Depends-on, configure.ac): Likewise.
15752         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
15753         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
15754         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
15755         * modules/openat-tests (Depends-on, configure.ac): Likewise.
15756         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
15757         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
15758         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
15759         Likewise.
15760         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
15761         * tests/test-lchown.h (nap): Likewise.
15762         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
15763         * tests/test-stat-time.c (nap): Likewise.
15764         * tests/test-utimens-common.h (nap): Update comments.
15765
15766         usleep: new module
15767         * modules/usleep: New file.
15768         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
15769         * lib/usleep.c (usleep): Likewise.
15770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15771         * modules/unistd (Makefile.am): Substitute witnesses.
15772         * lib/unistd.in.h (usleep): Add declaration.
15773         * doc/pastposix-functions/usleep.texi (usleep): Document this.
15774         * MODULES.html.sh (Date and time): Likewise.
15775         * modules/usleep-tests (Depends-on): New test.
15776         * tests/test-usleep.c: New file.
15777
15778         chown: work around OpenBSD bug
15779         * lib/chown.c (rpl_chown): Work around the bug.
15780         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
15781         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
15782         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
15783         * modules/chown (Depends-on): Add stdbool.
15784         * modules/lchown (Depends-on): Likewise.
15785         * doc/posix-functions/chown.texi (chown): Document the bug.
15786         * doc/posix-functions/lchown.texi (lchown): Likewise.
15787         * tests/test-lchown.h (test_chown): Relax test.
15788
15789         mkstemp: avoid conflict with C++ keyword template
15790         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
15791         * lib/mkostemp.c (mkostemp): Likewise.
15792         * lib/mkostemps.c (mkostemps): Likewise.
15793         * lib/mkstemp.c (mkstemp): Likewise.
15794         * lib/mkstemps.c (mkstemps): Likewise.
15795
15796         xalloc-die-tests: optimize
15797         * tests/test-xalloc-die.sh: Reduce number of processes.
15798
15799 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15800
15801         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
15802         patch from ludo@gnu.org (Ludovic Courtès).
15803
15804 2009-11-17  Jim Meyering  <meyering@redhat.com>
15805
15806         version-etc: use proper license string
15807         * modules/version-etc (License): Use LGPL, not LGPLv3+.
15808         * modules/version-etc-fsf: Likewise.
15809
15810 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15811
15812         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
15813         printed to stdout.  Deal with EOL differences.
15814
15815 2009-11-17  Eric Blake  <ebb9@byu.net>
15816
15817         unsetenv: work around Solaris bug
15818         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
15819         * lib/unsetenv.c (rpl_unsetenv): Work around it.
15820         Reported by Jim Meyering.
15821
15822         vasnprintf: avoid compiler warnings
15823         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
15824         variables.
15825         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
15826
15827 2009-11-17  Simon Josefsson  <simon@josefsson.org>
15828
15829         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
15830         settings since xalloc-die is no longer the self test,
15831         xalloc-die.sh is.
15832
15833 2009-11-17  Jim Meyering  <meyering@redhat.com>
15834
15835         test-xalloc-die.sh: make the code agree with the commit log
15836         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
15837         at the end, just in case you happen to have a test-xalloc-die
15838         program in some other PATH directory.
15839
15840         test-xalloc-die.sh: fix a portability bug
15841         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
15842         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
15843         Otherwise, argv[0] (as often seen in diagnostics) would be too
15844         system-dependent, sometimes with, and sometimes without the leading "./".
15845
15846         version-etc-fsf: relax license to LGPLv3+
15847         * modules/version-etc-fsf (License): Relax license.
15848
15849 2009-11-16  Eric Blake  <ebb9@byu.net>
15850
15851         xalloc-die-tests: avoid printing null pointer
15852         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
15853         shell script.
15854         * tests/test-xalloc-die.c (program_name): Declare.
15855         * tests/test-xalloc-die.sh (tmpfiles): New file.
15856
15857         setenv, unsetenv: work around various bugs
15858         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
15859         (setenv) [HAVE_SETENV]: Work around bugs.
15860         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
15861         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
15862         for bugs.
15863         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
15864         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
15865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
15866         * modules/stdlib (Makefile.am): Update substitutions.
15867         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
15868         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
15869         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
15870         * modules/setenv-tests: New test.
15871         * modules/unsetenv-tests: Likewise.
15872         * tests/test-setenv.c: New file.
15873         * tests/test-unsetenv.c: Likewise.
15874
15875 2009-11-16  Jim Meyering  <meyering@redhat.com>
15876
15877         version-etc: relax license to LGPLv3+
15878         * modules/version-etc (License): Relax license.
15879
15880         better AC_REQUIRE expanded-before-required-warning avoidance
15881         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
15882         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
15883         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
15884         which is no longer needed.
15885
15886 2009-11-16  Eric Blake  <ebb9@byu.net>
15887
15888         test-freading: clean up temporary file
15889         * tests/test-freading.c (main): Remove file on success, and use
15890         ASSERT more liberally.
15891         Reported by Jim Meyering.
15892
15893 2009-11-16  Jim Meyering  <meyering@redhat.com>
15894
15895         avoid new AC_REQUIRE expanded-before-required warnings
15896         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
15897         merely using it.
15898         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
15899         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
15900
15901 2009-11-15  Simon Josefsson  <simon@josefsson.org>
15902
15903         * tests/test-xalloc-die.c: New file.
15904         * modules/xalloc-die-tests: New file.
15905         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
15906         XFAIL_TESTS so it can be appended by modules.
15907
15908 2009-11-15  Simon Josefsson  <simon@josefsson.org>
15909
15910         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
15911         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
15912
15913 2009-11-14  Eric Blake  <ebb9@byu.net>
15914
15915         fnmatch: avoid compiler warning
15916         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
15917         to silence compiler warning about mismatch signedness in ?:.
15918         Reported by Robert Millan.
15919
15920         intprops: add double-inclusion guard
15921         * lib/intprops.h: Allow idempotent includes.
15922         Suggested by Bruce Korb.
15923
15924         openat: detect Solaris fchownat bug
15925         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
15926         penalizing glibc chownat when only lchownat is broken.
15927         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
15928         trailing slash bugs.
15929         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
15930         * modules/openat-tests (Files): Include more files.
15931         (Depends-on): Add mgetgroups, sleep, stat-time.
15932         (configure.ac): Add additional checks.
15933         (Makefile.am): Build new test.
15934         * tests/test-fchownat.c: New file.
15935
15936         lchown: detect Solaris and FreeBSD bug
15937         * lib/lchown.c (rpl_lchown): Work around bug.
15938         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
15939         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15940         * modules/unistd (Makefile.am): Populate it.
15941         * lib/unistd.in.h (lchown): Update declaration.
15942         * doc/posix-functions/lchown.texi (lchown): Document the bug.
15943         * modules/lchown-tests: New file.
15944         * tests/test-lchown.h (test_lchown): Likewise.
15945         * tests/test-lchown.c (main): Likewise.
15946
15947         chown: detect Solaris and FreeBSD bug
15948         * lib/chown.c (rpl_chown): Work around bug.
15949         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
15950         (gl_PREREQ_CHOWN): Delete.
15951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15952         * modules/unistd (Makefile.am): Populate it.
15953         * lib/unistd.in.h (chown): Update declaration.
15954         * lib/lchown.c (chown): Update client.
15955         * modules/lchown (Depends-on): Add lstat.
15956         * doc/posix-functions/chown.texi (chown): Document the bug.
15957         * doc/posix-functions/getgroups.texi (getgroups): Document
15958         getgroups pitfall.
15959         * modules/chown-tests: New file.
15960         * tests/test-chown.h (test_chown): Likewise.
15961         * tests/test-chown.c (main): Likewise.
15962
15963 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
15964
15965         gnulib-tool: correctly detect absence of m4 directories
15966         * gnulib-tool: Avoid extra newline on data passed to wc -l.
15967
15968 2009-11-14  Jim Meyering  <meyering@redhat.com>
15969
15970         maint.mk: Prohibit inclusion of "xalloc.h" without use.
15971         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
15972
15973 2009-11-14  John W. Eaton  <jwe@gnu.org>
15974
15975         strftime.h: wrap funtion declaration in extern "C" block
15976         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
15977
15978 2009-11-13  Eric Blake  <ebb9@byu.net>
15979
15980         getgroups: avoid compiler warning
15981         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
15982
15983         getgroups: work around FreeBSD bug
15984         * lib/getgroups.c (rpl_getgroups): Work around the bug.
15985         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
15986         * doc/posix-functions/getgroups.texi (getgroups): Document it.
15987         * tests/test-getgroups.c (main): Fix buffer overrun.
15988
15989         getgroups: avoid compilation failure
15990         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
15991         * modules/getgroups (Depends-on): Add stdint.
15992
15993 2009-11-13  Jim Meyering  <meyering@redhat.com>
15994
15995         test-getgroups: avoid compilation failure
15996         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
15997
15998 2009-11-13  Eric Blake  <ebb9@byu.net>
15999
16000         mgetgroups: new module, taken from coreutils
16001         * modules/mgetgroups: New file.
16002         * lib/mgetgroups.h: Likewise.
16003         * lib/mgetgroups.c (mgetgroups): Likewise.
16004         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
16005         * MODULES.html.sh (Users and groups): Mention it.
16006
16007         getgroups: don't expose GETGROUPS_T to user
16008         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
16009         an element at a time if GETGROUPS_T is wrong size.
16010         * lib/getugroups.h (getugroups): Change signature.
16011         * lib/unistd.in.h (getgroups): Likewise.
16012         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
16013         signature needs fixing.
16014         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
16015         AC_TYPE_GETGROUPS.
16016         * modules/group-member (Depends-on): Add getgroups.
16017         * lib/group-member.c (group_info, get_group_info): Use gid_t.
16018         (group_member): Rely on getgroups replacement.
16019         * lib/getugroups.c (getugroups): Use gid_t.
16020         * tests/test-getgroups.c (main): Likewise.
16021         * NEWS: Mention the signature change.
16022         * doc/posix-functions/getgroups.texi (getgroups): Mention the
16023         problem with signature.
16024         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
16025         GETGROUPS_T is still useful for setgroups.
16026
16027         getgroups, getugroups: provide stubs for mingw
16028         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
16029         * lib/getugroups.c (getugroups): Likewise.
16030         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
16031         function.  Modernize replacement scheme.
16032         (gl_PREREQ_GETGROUPS): Delete.
16033         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
16034         * modules/getgroups (configure.ac): Declare witness.
16035         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
16036         * modules/unistd (Depends-on): Substitute witness.
16037         * lib/unistd.in.h (getgroups): Declare replacement.
16038
16039         getgroups: avoid calling exit
16040         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
16041         drop xalloc.
16042         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
16043         dependencies.
16044         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
16045         exiting, in the rare case of malloc failure.
16046
16047         getgroups: fix logic error
16048         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
16049         has more than 20 groups.
16050         * modules/getgroups-tests: New test.
16051         * tests/test-getgroups.c: New file.
16052
16053 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16054
16055         * tests/test-base64.c: Improve.
16056
16057 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16058
16059         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
16060         Blake <ebb9@byu.net>.
16061
16062 2009-11-13  Simon Josefsson  <simon@josefsson.org>
16063
16064         * tests/test-xvasprintf.c: Add %s%s related checks.
16065
16066 2009-11-12  Eric Blake  <ebb9@byu.net>
16067
16068         version-etc: match standards.texi style
16069         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
16070         and use <> only for URLs.
16071
16072 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
16073
16074         fts: do not fail on a submount during traversal
16075         * lib/fts.c (fts_build): Read the stat info again after opening
16076         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
16077         Original report at http://bugzilla.redhat.com/501848.
16078
16079 2009-11-12  Jim Meyering  <meyering@redhat.com>
16080
16081         bootstrap: sync from coreutils
16082         * build-aux/bootstrap (bootstrap_epilogue): New function.
16083         Use git_modules_config in one more place.  This make bootstrap's
16084         --gnulib-srcdir option more useful for testing.
16085
16086         bootstrap: generalize autoheader check
16087         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
16088         AC_CONFIG_HEADERS.
16089
16090 2009-11-11  Eric Blake  <ebb9@byu.net>
16091
16092         mkfifoat: use new modules for Solaris and BSD bugs
16093         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
16094         * lib/mkfifoat.c (mknodat): Split...
16095         * lib/mknodat.c (mknodat): ...into new file.
16096         * modules/mkfifoat (Files): Ship new file.
16097         (Depends-on): Add mkfifo, mknod.
16098         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
16099         (Depends-on): Add symlink.
16100         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
16101         redundant with test_mkfifo.h.
16102         (do_mkfifoat, do_mknodat): New helpers.
16103
16104         mknod: new module
16105         * modules/mknod: New file.
16106         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
16107         * lib/mknod.c (mknod): Likewise.
16108         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
16109         defaults.
16110         * modules/sys_stat (Makefile.am): Substitute them.
16111         * lib/sys_stat.in.h (mknod): Declare replacement.
16112         * MODULES.html.sh (Support for systems lacking POSIX:2008):
16113         Document it.
16114         * doc/posix-functions/mknod.texi (mknod): Likewise.
16115         * modules/mknod-tests: New test.
16116         * tests/test-mknod.c: Likewise.
16117
16118         mkfifo: new module
16119         * modules/mkfifo: New file.
16120         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
16121         * lib/mkfifo.c (mkfifo): Likewise.
16122         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
16123         defaults.
16124         * modules/sys_stat (Makefile.am): Substitute them.
16125         * lib/sys_stat.in.h (mkfifo): Declare replacement.
16126         * MODULES.html.sh (Support for systems lacking POSIX:2008):
16127         Document it.
16128         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
16129         * modules/mkfifo-tests: New test.
16130         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
16131         from test-mkfifoat.c.
16132         * tests/test-mkfifo.c: New file.
16133
16134         readlink: detect FreeBSD bug
16135         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
16136         slash on symlink.
16137         * doc/posix-functions/readlink.texi (readlink): Document the bug.
16138         * tests/test-readlink.h (test_readlink): Enhance test.
16139
16140         symlink: detect FreeBSD bug
16141         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
16142         slash on symlink.
16143         * doc/posix-functions/symlink.texi (symlink): Document the bug.
16144         * tests/test-symlink.h (test_symlink): Enhance test.
16145
16146 2009-11-10  Eric Blake  <ebb9@byu.net>
16147
16148         link: detect FreeBSD bug
16149         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
16150         symlink.
16151         * doc/posix-functions/link.texi (link): Document the bug.
16152         * tests/test-link.h (test_link): Enhance test.
16153         * tests/test-linkat.c (main): Update caller.
16154
16155         unlink, remove: detect FreeBSD bug
16156         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
16157         slash on symlink.
16158         * doc/posix-functions/unlink.texi (unlink): Document the bug.
16159         * doc/posix-functions/remove.texi (remove): Likewise.
16160         * tests/test-unlink.h (test_unlink): Enhance test.
16161         * tests/test-remove.c (main): Likewise.
16162
16163 2009-11-09  Eric Blake  <ebb9@byu.net>
16164
16165         rename: detect FreeBSD bug
16166         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
16167         slash on symlink.
16168         * modules/renameat-tests (Depends-on): Add filenamecat.
16169         * tests/test-rename.h (test_rename): Allow one more errno.
16170         * tests/test-renameat.c (main): Likewise.
16171         * doc/posix-functions/rename.texi (rename): Document the bug.
16172
16173         open: detect FreeBSD bug
16174         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
16175         symlink.
16176         * doc/posix-functions/open.texi (open): Document the bug.
16177         * doc/posix-functions/utimes.texi (utimes): Likewise.
16178         * tests/test-open.h (test_open): Add parameters, and test symlink
16179         handling.
16180         * tests/test-open.c (main): Adjust caller.
16181         * tests/test-fcntl-safer.c (main): Likewise.
16182         * modules/open-tests (Depends-on): Add stdbool, symlink.
16183         * modules/fcntl-safer-tests (Depends-on): Likewise.
16184         * tests/test-openat.c (main): Add test-open tests.
16185
16186         stat: detect FreeBSD bug
16187         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
16188         symlink.
16189         * doc/posix-functions/stat.texi (stat): Document the bug.
16190         * tests/test-stat.h (test_stat_func): Add argument.
16191         * tests/test-stat.c (main): Adjust caller.
16192         * tests/test-fstatat.c (main): Likewise.
16193         * modules/stat-tests (Depends-on): Add stdbool, symlink.
16194         Reported by Jim Meyering.
16195
16196 2009-11-09  James Youngman  <jay@gnu.org>
16197
16198         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
16199         * lib/strftime.c: Correct placement of #include "ignore-value.h".
16200
16201 2009-11-08  Jim Meyering  <meyering@redhat.com>
16202
16203         utimens: remove invalid futimesat call
16204         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
16205         It used the file descriptor of the target file as the DIR_FD
16206         parameter and NULL as the file name.  That caused failure with
16207         errno == EFAULT on FreeBSD-8.0-rc2
16208
16209 2009-11-07  Eric Blake  <ebb9@byu.net>
16210
16211         fflush, freadseek: use fseeko, not fseek
16212         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
16213         (clear_ungetc_buffer): Avoid potential problems on large files.
16214         * lib/freadseek.c (freadseek): Likewise.
16215         * modules/freadseek (Depends-on): Add fseeko.
16216         * modules/fseek (configure.ac): Set a witness.
16217         * tests/test-fflush.c (main): Use fseeko.
16218         * tests/test-fpurge.c (fseek): Disable link warning.
16219         * tests/test-freadable.c (fseek): Likewise.
16220         * tests/test-freading.c (fseek): Likewise.
16221         * tests/test-fseeko.c (fseek): Likewise.
16222         * tests/test-ftell.c (fseek): Likewise.
16223         * tests/test-ftello.c (fseek): Likewise.
16224         * tests/test-fwritable.c (fseek): Likewise.
16225         * tests/test-fwriting.c (fseek): Likewise.
16226
16227 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16228
16229         * modules/memchr (Depends-on): Drop getpagesize dependency.
16230
16231 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16232
16233         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
16234         Reported by Ludovic Courtès.
16235         * build-aux/pmccabe2html: Improve example usage.
16236         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
16237
16238 2009-11-06  Jim Meyering  <meyering@redhat.com>
16239
16240         do-release-commit-and-tag: New module.
16241         Automate the release-commit and tag process.
16242         * build-aux/do-release-commit-and-tag: New script, from coreutils.
16243         * modules/do-release-commit-and-tag: New file.
16244         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16245
16246 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16247
16248         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
16249         because test-select.c uses inet_pton.
16250
16251 2009-11-06  Simon Josefsson  <simon@josefsson.org>
16252
16253         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
16254         GETADDRINFO_LIB.  Bump serial number.
16255         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
16256         Suggested by Eric Blake <ebb9@byu.net>.
16257
16258 2009-11-05  Eric Blake  <ebb9@byu.net>
16259
16260         strtod: detect darwin bug
16261         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
16262         Reported by Leo Davis.
16263
16264         freopen-safer: new module
16265         * modules/freopen-safer: New module.
16266         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
16267         * lib/freopen-safer.c (freopen_safer): New file.
16268         * lib/stdio-safer.h (freopen_safer): New declaration.
16269         * lib/stdio--.h (freopen): New override.
16270         * MODULES.html.sh (File stream based Input/Output): Mention it.
16271         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
16272         freopen-safer module.
16273         * doc/posix-functions/stderr.texi (stderr): Likewise.
16274         * doc/posix-functions/stdin.texi (stdin): Likewise.
16275         * doc/posix-functions/stdout.texi (stdout): Likewise.
16276         * modules/freopen-safer-tests: New test.
16277         * tests/test-reopen-safer.c: New file.
16278
16279 2009-11-05  Jim Meyering  <meyering@redhat.com>
16280
16281         maint.mk: Prohibit inclusion of "close-stream.h" without use.
16282         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
16283
16284 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16285
16286         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
16287
16288 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16289
16290         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
16291
16292 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16293
16294         Fix link error.
16295         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
16296         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16297
16298 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16299
16300         * tests/test-func.c: Also test value of __func__.
16301
16302 2009-11-05  Simon Josefsson  <simon@josefsson.org>
16303
16304         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
16305         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
16306
16307 2009-11-05  Bruno Haible  <bruno@clisp.org>
16308
16309         Fix link error.
16310         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
16311         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16312         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
16313
16314 2009-11-05  Bruno Haible  <bruno@clisp.org>
16315
16316         Tests for module 'inet_pton'.
16317         * modules/inet_pton-tests: New file.
16318         * tests/test-inet_pton.c: New file.
16319
16320 2009-11-05  Bruno Haible  <bruno@clisp.org>
16321
16322         Tests for module 'inet_ntop'.
16323         * modules/inet_ntop-tests: New file.
16324         * tests/test-inet_ntop.c: New file.
16325
16326 2009-11-04  Eric Blake  <ebb9@byu.net>
16327
16328         stdlib-safer: wrap all mkstemp variants
16329         * modules/mkostemp (configure.ac): Set witness.
16330         * modules/mkostemps (configure.ac): Likewise.
16331         * modules/mkstemps (configure.ac): Likewise.
16332         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
16333         (mkstemps_safer): Wrap more functions.
16334         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
16335         wrapping.
16336         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
16337         (mkstemps_safer): Implement the wrappers.
16338
16339         mkstemps, mkostemps: new modules
16340         * modules/mkostemps: New module.
16341         * modules/mkstemps: Likewise.
16342         * lib/mkostemps.c (mkostemps): New file.
16343         * lib/mkstemps.c (mkstemps): Likewise.
16344         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
16345         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
16346         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
16347         * modules/stdlib (Makefile.am): Substitute them.
16348         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
16349         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
16350         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
16351         * doc/gnulib.texi (Glibc stdlib.h): Include them.
16352         * MODULES.html.sh (File system functions): Mention them.
16353
16354         tempname: resync from glibc
16355         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
16356         same values for __GT_FILE as glibc.  Abort even when assertions
16357         are disabled.
16358         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
16359         match its value otherwise.  Allow idempotent inclusion.
16360         * lib/mkdtemp.c (mkdtemp): Adjust caller.
16361         * lib/mkostemp.c (mkostemp): Likewise.
16362         * lib/mkstemp.c (mkstemp): Likewise.
16363         * lib/tmpfile.c (tmpfile): Likewise.
16364         * NEWS: Document this.
16365
16366         utimens: fix use of futimens on older Linux
16367         * lib/utimens.c (fdutimens): Use updated, rather than original,
16368         timespec to avoid bug in older Linux kernel.
16369         Reported by Simon Josefsson.
16370
16371 2009-11-04  Bruno Haible  <bruno@clisp.org>
16372
16373         Make num_processors more flexible and consistent.
16374         * lib/nproc.h (enum nproc_query): New type.
16375         (num_processors): Add a 'query' argument.
16376         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
16377         (num_processors): Add a 'query' argument. Test the value of the
16378         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
16379         mingw, count the number of CPUs available for the current process.
16380         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
16381         Check for sched_getaffinity and sched_getaffinity_np.
16382         * modules/nproc (Depends-on): Add c-ctype, extensions.
16383         * NEWS: Mention the change.
16384
16385 2009-11-03  Bruno Haible  <bruno@clisp.org>
16386
16387         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
16388
16389 2009-11-03  Jim Meyering  <meyering@redhat.com>
16390
16391         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
16392         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
16393         if it is defined.
16394
16395 2009-11-02  Eric Blake  <ebb9@byu.net>
16396
16397         mktime, timegm: share common declaration
16398         * lib/mktime-internal.h: New file.
16399         * lib/mktime.c: Use it rather than open-coding a declaration.
16400         * lib/timegm.c: Likewise.
16401         * modules/mktime (Files): Ship it.
16402         * modules/timegm (Files): Likewise.
16403         Suggested by Bruno Haible.
16404
16405         test-update-copyright: update test to match script changes
16406         * tests/test-update-copyright.sh: Avoid hard-coding perl
16407         location.  Don't update *.bak created by earlier runs.
16408
16409 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
16410             Simon Josefsson  <simon@josefsson.org>
16411             Bruno Haible  <bruno@clisp.org>
16412
16413         Fix link error on Solaris 8.
16414         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
16415         also in libnsl. Define also INET_PTON_LIB.
16416         * modules/inet_pton (Link): New section.
16417
16418 2009-11-02  Simon Josefsson  <simon@josefsson.org>
16419             Bruno Haible  <bruno@clisp.org>
16420
16421         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
16422         * modules/inet_ntop (Link): New section.
16423         Reported by Boyan Kasarov <bkasarov@gmail.com>.
16424
16425 2009-11-02  Eric Blake  <ebb9@byu.net>
16426
16427         maint: avoid compiler warnings in m4 macros
16428         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
16429         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
16430
16431 2009-11-02  Simon Josefsson  <simon@josefsson.org>
16432
16433         * m4/pmccabe2html.m4: Remove file.
16434         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
16435         function.  Change maintainer.
16436         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
16437         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
16438         Courtès).
16439
16440 2009-10-31  Eric Blake  <ebb9@byu.net>
16441
16442         fseeko: fix m4 regression
16443         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
16444         regression from 2009-10-27.
16445         Reported by Ralf Wildenhues.
16446
16447 2009-10-31  Jim Meyering  <meyering@redhat.com>
16448
16449         inttostr: aesthetics and improved (compile-time) safety
16450         Define inttype_is_signed rather than inttype_is_unsigned,
16451         since the sole use is via "#if inttype_is_signed".
16452         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
16453         inttype_is_unsigned.
16454         * lib/offtostr.c (inttype_is_signed): Likewise.
16455         * lib/uinttostr.c (inttype_is_signed): Likewise.
16456         * lib/umaxtostr.c (inttype_is_signed): Likewise.
16457         * lib/inttostr.c (inttostr): Use verify to cross-check the
16458         inttype_is_signed value and the signedness of the actual type.
16459         * modules/inttostr (Depends-on): Add verify.
16460
16461 2009-10-30  Eric Blake  <ebb9@byu.net>
16462
16463         build: avoid compiler warnings
16464         * lib/fchmodat.c (lchmod): Mark unused variables.
16465         * lib/getopt.c (_getopt_initialize): Likewise.
16466         * lib/mktime.c (__mktime_internal): Provide prototype.
16467         * lib/inttostr.c (inttostr): Avoid compiler warning even with
16468         older gcc that do not understand #pragma GCC diagnostic.
16469         * lib/uinttostr.c (inttype_is_unsigned): Define.
16470         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
16471
16472 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
16473
16474         stat: fix compilation on AIX
16475         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
16476         only see struct stat64.
16477
16478 2009-10-30  Eric Blake  <ebb9@byu.net>
16479
16480         exclude: make more robust
16481         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
16482         rather than masking a coding bug.
16483         Suggested by Bruno Haible.
16484
16485 2009-10-30  Jim Meyering  <meyering@redhat.com>
16486
16487         perl scripts: remove #!/usr/bin/perl in favor of more portable...
16488         Rather than putting #!/usr/bin/perl on the first line,
16489         start with a variant of what's recommended by "man perlrun" that
16490         invokes the first "perl" program from your shell's search path.
16491         * build-aux/gitlog-to-changelog: Replace #!... as above.
16492         Add a "Local Variables" perl mode setting.
16493         Prompted by a patch from Ludovic Courtès.
16494         Improved by Eric Blake.
16495         * build-aux/useless-if-before-free: Likewise.
16496         * build-aux/announce-gen: Likewise.
16497         * build-aux/update-copyright: Likewise.
16498
16499 2009-10-29  Eric Blake  <ebb9@byu.net>
16500
16501         filenamecat-lgpl: adjust clients
16502         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
16503         filenamecat.
16504         * modules/renameat (Depends-on): Likewise.
16505
16506         filenamecat: split into filenamecat-lgpl
16507         * modules/filenamecat-lgpl: New module.
16508         * modules/filenamecat (Files): Move library-safe files into
16509         filenamecat-lgpl.
16510         (Depends-on): Add filenamecat-lgpl.
16511         (configure.ac): Declare witness.
16512         * lib/filenamecat.h (file_name_concat): Only declare when using
16513         GPL module.
16514         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
16515         Move...
16516         * lib/filenamecat-lgpl.c: ...into new file.
16517         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
16518         (gl_FILE_NAME_CONCAT): Use it.
16519         * MODULES.html.sh (File system functions): Mention new module.
16520
16521         argp: avoid memory leak
16522         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
16523         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
16524         base_name, since the latter malloc()s and can call exit().
16525         Leak introduced 2006-07-03.
16526
16527         dirname-lgpl: adjust clients that don't need full dirname
16528         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
16529         * modules/filenamecat (Depends-on): Likewise.
16530         * modules/linkat (Depends-on): Likewise.
16531         * modules/mkancesdirs (Depends-on): Likewise.
16532         * modules/mkdir (Depends-on): Likewise.
16533         * modules/openat (Depends-on): Likewise.
16534         * modules/savewd (Depends-on): Likewise.
16535         * modules/rename (Depends-on): Likewise.
16536         (License): Relax license.
16537         * modules/mkdir-tests (Depends-on): Drop progname.
16538         (Makefile.am): Delete unneeded LDADD.
16539         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
16540
16541         dirname: split into dirname-lgpl
16542         * modules/dirname-lgpl: New module.
16543         * modules/dirname (Files): Move library-safe files into
16544         dirname-lgpl.
16545         (Depends-on): Add dirname-lgpl.
16546         (configure.ac): Declare witness.
16547         * modules/double-slash-root (License): Relax license.
16548         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
16549         module.
16550         * lib/dirname.c (dir_len, mdir_name): Move...
16551         * lib/dirname-lgpl.c: ...into new file.
16552         * lib/basename.c (last_component, base_len): Move...
16553         * lib/basename-lgpl.c: ...into new file.
16554         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
16555         (gl_DIRNAME): Use it.
16556         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
16557         Mention new module.
16558         * modules/dirname-tests (Depends-on): Add progname.
16559         * tests/test-dirname.c (program_name): Delete.
16560
16561         mkdir: make safe for libraries
16562         * modules/mkdir (Depends-on): Drop xalloc.
16563         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
16564         exit.
16565
16566         tests: avoid some compiler warnings
16567         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
16568         literals.
16569         * tests/test-memchr.c (main): Avoid type mismatch.
16570         * tests/test-arpa_inet.c (main): Avoid unused parameters.
16571         * tests/test-base64.c (main): Likewise.
16572         * tests/test-getdelim.c (main): Likewise.
16573         * tests/test-gethostname.c (main): Likewise.
16574         * tests/test-getline.c (main): Likewise.
16575         * tests/test-netinet_in.c (main): Likewise.
16576         * tests/test-select.c (open_server_socket, main): Likewise.
16577         * tests/test-select-stdin.c (main): Likewise.
16578         * tests/test-sockets.c (main): Likewise.
16579         * tests/test-strsignal.c (main): Likewise.
16580         * tests/test-sys_select.c (main): Likewise.
16581         * tests/test-sys_socket.c (main): Likewise.
16582         * tests/test-u64.c (main): Likewise.
16583         * tests/test-xfprintf-posix.c (main): Likewise.
16584         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
16585
16586         sockets: avoid compiler warning
16587         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
16588
16589         maint: detect usage(1) and other suspicious exits
16590         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
16591
16592 2009-10-29  Jim Meyering  <meyering@redhat.com>
16593
16594         timespec: long-to-int truncation could make timespec_cmp malfunction
16595         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
16596         a multiple of 2^32 nanoseconds as no difference.
16597
16598 2009-10-28  Jim Meyering  <meyering@redhat.com>
16599
16600         fprintftime: wrap macro code argument in "do {...} while(0)"
16601         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
16602         cpy macro must be a statement that can be followed by a semicolon.
16603         Now that the else clause contains a comment and is hence longer
16604         than one line, I require curly braces.  That in turn requires
16605         that we wrap this code block in the standard do...while(0).
16606
16607         fprintftime: remove stray semicolon from previous change
16608         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
16609
16610         fprintftime: avoid a warning about ignored fwrite return value
16611         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
16612         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
16613         that is unsafe.
16614         * modules/fprintftime (Depends-on): Add ignore-value.
16615
16616         exclude: avoid an unwarranted warning
16617         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
16618
16619 2009-10-27  Eric Blake  <ebb9@byu.net>
16620
16621         fseek: avoid compilation failure when fflush is replaced
16622         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
16623         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
16624         module is in use.
16625         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
16626         module is not in use; since REPLACE_FSEEK worked otherwise.
16627         (GNULIB_FTELLO): Likewise for ftell.
16628         Reported by Ian Beckwith and others.
16629
16630 2009-10-27  Bruno Haible  <bruno@clisp.org>
16631
16632         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
16633         Reported by Jim Meyering.
16634
16635 2009-10-27  Jim Meyering  <jim@meyering.net>
16636             Bruno Haible  <bruno@clisp.org>
16637
16638         Avoid warning despite dropping the return value of fwrite.
16639         * lib/unicodeio.c: Include ignore-value.h.
16640         (fwrite_success_callback): Explicitly ignore fwrite's return value.
16641         * modules/unicodeio (Depends-on): Add ignore-value.
16642
16643 2009-10-26  Eric Blake  <ebb9@byu.net>
16644
16645         areadlinkat: fix fallback path
16646         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
16647         pointer and zero.
16648
16649 2009-10-22  Pádraig Brady  <P@draigBrady.com>
16650
16651         Use a better IO block size for modern systems
16652         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
16653         * lib/md2.c: Likewise.
16654         * lib/md4.c: Likewise.
16655         * lib/md5.c: Likewise.
16656         * lib/sha1.c: Likewise.
16657         * lib/sha256.c: Likewise.
16658         * lib/sha512.c: Likewise.
16659
16660 2009-10-22  Eric Blake  <ebb9@byu.net>
16661
16662         tests: avoid several compiler warnings
16663         * tests/test-getcwd.c (main): Avoid buffer underflow.
16664         * tests/test-getdate.c (main): String literals are not safe with
16665         putenv, so use setenv.  Declare unused argument.
16666         * modules/getdate-tests (Depends-on): Add setenv.
16667         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
16668         problems with string literals in char *.
16669         * tests/test-hash.c (main): Avoid shadowing declaration.
16670         (insert_new): Treat string literals as char const *.
16671         * tests/test-getopt.h (test_getopt): Likewise.
16672         (getopt_loop): Alter types to minimize casting elsewhere.
16673         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
16674         (test_getopt_long_posix): Likewise.
16675         (do_getopt_long): Add wrapper to minimize casting.
16676         * tests/test-atexit.c (clear_temp_file): Use void.
16677         * tests/test-areadlink-with-size.c (main): Declare unused
16678         arguments.
16679         * tests/test-areadlink.c (main): Likewise.
16680         * tests/test-areadlinkat-with-size.c (main): Likewise.
16681         * tests/test-areadlinkat.c (main): Likewise.
16682         * tests/test-canonicalize-lgpl.c (main): Likewise.
16683         * tests/test-canonicalize.c (main): Likewise.
16684         * tests/test-dirent-safer.c (main): Likewise.
16685         * tests/test-dirname.c (main): Likewise.
16686         * tests/test-dup2.c (main): Likewise.
16687         * tests/test-fchdir.c (main): Likewise.
16688         * tests/test-fcntl-h.c (main): Likewise.
16689         * tests/test-fcntl-safer.c (main): Likewise.
16690         * tests/test-fdopendir.c (main): Likewise.
16691         * tests/test-fdutimensat.c (main): Likewise.
16692         * tests/test-fflush.c (main): Likewise.
16693         * tests/test-filenamecat.c (main): Likewise.
16694         * tests/test-filevercmp.c (main): Likewise.
16695         * tests/test-fopen-safer.c (main): Likewise.
16696         * tests/test-fopen.c (main): Likewise.
16697         * tests/test-fpending.c (main): Likewise.
16698         * tests/test-fpurge.c (main): Likewise.
16699         * tests/test-freading.c (main): Likewise.
16700         * tests/test-fstatat.c (main): Likewise.
16701         * tests/test-fsync.c (main): Likewise.
16702         * tests/test-futimens.c (main): Likewise.
16703         * tests/test-getndelim2.c (main): Likewise.
16704         * tests/test-gettimeofday.c (main): Likewise.
16705         * tests/test-getopt.c (main): Likewise.
16706         * tests/test-i-ring.c (main): Likewise.
16707         * tests/test-inttypes.c (main): Likewise.
16708         * tests/test-link.c (main): Likewise.
16709         * tests/test-lstat.c (main): Likewise.
16710         * tests/test-math.c (main): Likewise.
16711         * tests/test-md5.c (main): Likewise.
16712         * tests/test-memchr2.c (main): Likewise.
16713         * tests/test-memrchr.c (main): Likewise.
16714         * tests/test-mkdir.c (main): Likewise.
16715         * tests/test-mkdirat.c (main): Likewise.
16716         * tests/test-mkfifoat.c (main): Likewise.
16717         * tests/test-open.c (main): Likewise.
16718         * tests/test-openat-safer.c (main): Likewise.
16719         * tests/test-openat.c (main): Likewise.
16720         * tests/test-quotearg.c (main): Likewise.
16721         * tests/test-rawmemchr.c (main): Likewise.
16722         * tests/test-readlink.c (main): Likewise.
16723         * tests/test-remove.c (main): Likewise.
16724         * tests/test-rename.c (main): Likewise.
16725         * tests/test-renameat.c (main): Likewise.
16726         * tests/test-rmdir.c (main): Likewise.
16727         * tests/test-sha1.c (main): Likewise.
16728         * tests/test-signal.c (main): Likewise.
16729         * tests/test-sigaction.c (main): Likewise.
16730         * tests/test-stat.c (main): Likewise.
16731         * tests/test-stat-time.c (main): Likewise.
16732         * tests/test-stddef.c (main): Likewise.
16733         * tests/test-stdint.c (main): Likewise.
16734         * tests/test-stdio.c (main): Likewise.
16735         * tests/test-stdlib.c (main): Likewise.
16736         * tests/test-strchrnul.c (main): Likewise.
16737         * tests/test-strerror.c (main): Likewise.
16738         * tests/test-string.c (main): Likewise.
16739         * tests/test-strtod.c (main): Likewise.
16740         * tests/test-strverscmp.c (main): Likewise.
16741         * tests/test-symlink.c (main): Likewise.
16742         * tests/test-symlinkat.c (main): Likewise.
16743         * tests/test-sys_stat.c (main): Likewise.
16744         * tests/test-sys_time.c (main): Likewise.
16745         * tests/test-time.c (main): Likewise.
16746         * tests/test-unistd.c (main): Likewise.
16747         * tests/test-unlink.c (main): Likewise.
16748         * tests/test-unlinkat.c (main): Likewise.
16749         * tests/test-utimens.c (main): Likewise.
16750         * tests/test-utimensat.c (main): Likewise.
16751         * tests/test-version-etc.c (main): Likewise.
16752         * tests/test-wchar.c (main): Likewise.
16753         * tests/test-wctype.c (main): Likewise.
16754         * tests/test-xprintf-posix.c (main): Likewise.
16755         * tests/test-posixtm.c (main): Likewise.
16756         (STREQ): Delete unused macro.
16757         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
16758         shadowed variables.
16759         * tests/test-memchr.c (main): Likewise.
16760
16761 2009-10-21  Eric Blake  <ebb9@byu.net>
16762
16763         areadlinkat: avoid failure on older glibc
16764         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
16765         rather than mis-comparing 0 against FUNC_RESULT of char*.
16766
16767 2009-10-21  Bruno Haible  <bruno@clisp.org>
16768
16769         * modules/stpncpy (License): Relicense under LGPLv2+.
16770         Reported by David Lutterkort <lutter@redhat.com>.
16771
16772 2009-10-20  Eric Blake  <ebb9@byu.net>
16773
16774         utimensat: work around Solaris 9 bug
16775         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
16776         has trailing slash bugs.
16777         * tests/test-lutimens.h (test_lutimens): Enhance test.
16778         * tests/test-utimens.h (test_utimens): Likewise.
16779         * doc/posix-functions/utime.texi (utime): Enhance documentation.
16780         * doc/posix-functions/utimes.texi (utimes): Likewise.
16781         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16782         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
16783         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
16784         * doc/posix-functions/futimens.texi (futimens): Likewise.
16785
16786         fdutimensat: new module
16787         * modules/fdutimensat: New file.
16788         * lib/fdutimensat.c (fdutimensat): Likewise.
16789         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
16790         * MODULES.html.sh (File system functions): Mention module.
16791         * modules/fdutimensat-tests: New test.
16792         * tests/test-fdutimensat.c: Likewise.
16793
16794         doc: regenerate INSTALL
16795         * doc/INSTALL: Reflect recent autoconf update.
16796         * doc/INSTALL.ISO: Likewise.
16797         * doc/INSTALL.UTF-8: Likewise.
16798
16799 2009-10-20  Pádraig Brady  <P@draigBrady.com>
16800
16801         acl: warn if ACL support is not detected
16802         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
16803
16804 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
16805
16806         * lib/nproc.h: Add extern "C" block for C++.
16807
16808 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
16809             Bruno Haible  <bruno@clisp.org>
16810
16811         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
16812         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
16813         * doc/posix-functions/isalpha.texi: Likewise.
16814         * doc/posix-functions/isblank.texi: Likewise.
16815         * doc/posix-functions/iscntrl.texi: Likewise.
16816         * doc/posix-functions/isdigit.texi: Likewise.
16817         * doc/posix-functions/isgraph.texi: Likewise.
16818         * doc/posix-functions/islower.texi: Likewise.
16819         * doc/posix-functions/isprint.texi: Likewise.
16820         * doc/posix-functions/ispunct.texi: Likewise.
16821         * doc/posix-functions/isspace.texi: Likewise.
16822         * doc/posix-functions/isupper.texi: Likewise.
16823         * doc/posix-functions/isxdigit.texi: Likewise.
16824
16825 2009-10-18  Bruno Haible  <bruno@clisp.org>
16826
16827         Tests for module 'isblank'.
16828         * modules/isblank-tests: New file.
16829         * tests/test-isblank.c: New file.
16830
16831         New module 'isblank'.
16832         * lib/isblank.c: New file.
16833         * m4/isblank.m4: New file.
16834         * modules/isblank: New file.
16835         * doc/posix-functions/isblank.texi: Mention the new module.
16836
16837 2009-10-18  Bruno Haible  <bruno@clisp.org>
16838
16839         New module 'ctype'.
16840         * lib/ctype.in.h: New file.
16841         * m4/ctype.m4: New file.
16842         * modules/ctype: New file.
16843         * doc/posix-headers/ctype.texi: Mention the new module.
16844
16845 2009-10-18  Jim Meyering  <meyering@redhat.com>
16846
16847         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
16848         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
16849         right after its initialization, rather than farther down.
16850         Keeping these in close proximity makes it easier to ensure
16851         that each such variable is initialized.  E.g.,
16852
16853             LIB_CLOCK_GETTIME=
16854             AC_SUBST([LIB_CLOCK_GETTIME])
16855
16856         This change also increments these serial numbers.
16857         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
16858         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16859         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16860
16861 2009-10-18  Bruno Haible  <bruno@clisp.org>
16862
16863         Don't let environment variables perturb build.
16864         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
16865         (gl_PREREQ_GETHRXTIME): ... not here.
16866
16867 2009-10-18  Bruno Haible  <bruno@clisp.org>
16868
16869         Avoid symlink attack in localcharset module.
16870         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
16871         (O_NOFOLLOW): Define fallback.
16872         (get_charset_aliases): Don't open the file if it is a symbolic link.
16873         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
16874         gl_FCNTL_H.
16875         (gl_FCNTL_H): Require it.
16876         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
16877         * modules/localcharset (Files): Add m4/fcntl_h.m4.
16878         Reported by Fergal Glynn <fglynn@veracode.com>.
16879
16880 2009-10-18  Bruno Haible  <bruno@clisp.org>
16881
16882         Implement nproc for mingw.
16883         * lib/nproc.c: Include <windows.h>
16884         (num_processors): On native Windows platforms, try GetSystemInfo.
16885
16886 2009-10-18  Bruno Haible  <bruno@clisp.org>
16887
16888         Implement nproc for IRIX.
16889         * lib/nproc.c: Include <sys/sysmp.h>.
16890         (num_processors): On IRIX systems, try sysmp.
16891         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
16892
16893 2009-10-18  Bruno Haible  <bruno@clisp.org>
16894
16895         Implement nproc for HP-UX.
16896         * lib/nproc.c: Include <sys/pstat.h>
16897         (num_processors): On HP-UX systems, try pstat_getdynamic.
16898         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
16899         pstat_getdynamic.
16900
16901 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
16902             Bruno Haible  <bruno@clisp.org>
16903
16904         Implement nproc for NetBSD, OpenBSD.
16905         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
16906         (ARRAY_SIZE): New macro.
16907         (num_processors): On BSD systems, try sysctl of HW_NCPU.
16908         * m4/nproc.m4: New file.
16909         * modules/nproc (Files): Add m4/nproc.m4.
16910         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
16911         (Makefile.am): Instead, augment lib_SOURCES.
16912
16913 2009-10-18  Bruno Haible  <bruno@clisp.org>
16914
16915         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
16916         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
16917         sys/param.h.
16918
16919 2009-10-16  Eric Blake  <ebb9@byu.net>
16920
16921         utimensat: new module
16922         * modules/utimensat: New file.
16923         * lib/utimensat.c (utimensat): Likewise.
16924         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
16925         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
16926         so we can work around Linux bugs.
16927         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16928         * modules/sys_stat (Makefile.am): Substitute them.
16929         * lib/sys_stat.in.h (utimensat): Declare it.
16930         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16931         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
16932         * modules/utimensat-tests: New test.
16933         * tests/test-utimensat.c: Likewise.
16934
16935         utimens: let lutimens work on non-symlinks
16936         * lib/utimens.c (lutimens): Fall back to utimens rather than
16937         failing with ENOSYS, when file is not a symlink.
16938         (utimens): Reduce redirection.
16939         * tests/test-lutimens.h (test_lutimens): Update test to cover
16940         non-symlinks.
16941         * tests/test-utimens.h (test_utimens): Update test to cover
16942         symlinks.
16943         * tests/test-utimens.c (main): Update caller.
16944
16945         utimens: cache whether utimensat syscall works
16946         * lib/utimens.c (utimensat_works_really): New cache variable.
16947         (fdutimens, lutimens): Use it to avoid failing syscall.
16948
16949         test-stat-time, test-utimens: improve portability
16950         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
16951         ext4 on alpha, and for cygwin.
16952         * tests/test-utimens-common.h: New file.
16953         (nap): Factor delays into single function.
16954         * tests/test-lutimens.h (test_lutimens): Use new header.
16955         * tests/test-futimens.h (test_futimens): Likewise.
16956         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
16957         timestamps to occur from same machine, as was done previously for
16958         test_utimens.
16959         * modules/utimens-tests (Files): Ship new file.
16960         * modules/futimens-tests (Files): Likewise.
16961         Reported in part by Jim Meyering.
16962
16963         sys_stat: sort replacement declarations
16964         * lib/sys_stat.in.h: Sort declarations.
16965         * lib/futimens.c (futimens): Fix typo.
16966
16967 2009-10-15  Jim Meyering  <meyering@redhat.com>
16968
16969         don't let environment settings perturb build
16970         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
16971         could cause a configure-time and/or build-time malfunction.
16972         Typically, a configure-time function-in-library test is performed
16973         via code like this:
16974
16975           LIB_VAR=
16976           AC_SUBST([LIB_VAR])
16977           prefix_saved_LIBS=$LIBS
16978             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
16979                        [test "$ac_cv_search_FUNC" = "none required" ||
16980                         LIB_VAR=$ac_cv_search_FUNC])
16981           LIBS=$prefix_saved_LIBS
16982
16983         However, in each of the files affected by this change, the LIB_VAR=
16984         initialization was omitted.  Thus, when set in the environment, its
16985         value would propagate into generated Makefiles when FUNC is not found
16986         in LIB_NAME.
16987         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
16988         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
16989         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
16990
16991 2009-10-14  Eric Blake  <ebb9@byu.net>
16992
16993         fchdir: avoid infinite recursion in mingw
16994         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
16995         recursing.
16996
16997         test-stat-time: port to mingw
16998         * tests/test-stat-time.c (force_unlink): Return a value.
16999         (test_ctime) [W32]: Fix compilation error.
17000         (nap): Don't call usleep with too large an argument.  Use
17001         force_unlink.
17002         * doc/pastposix-functions/usleep.texi (usleep): Document the
17003         portability issue.
17004
17005 2009-10-13  Jim Meyering  <meyering@redhat.com>
17006
17007         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
17008         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
17009         * modules/pipe-filter-ii: Likewise.
17010         * modules/sys_socket-tests: Likewise.
17011         * modules/tsearch-tests: Likewise.
17012         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
17013         (check): Depend on it.
17014
17015 2009-10-12  Eric Blake  <ebb9@byu.net>
17016
17017         utimens-tests: port to NFS file systems
17018         * tests/test-utimens.h (test_utimens): Refactor utimecmp
17019         comparisons to avoid spurious failures from timestamp drift
17020         between NFS machines.
17021
17022 2009-10-12  Eric Blake  <ebb9@byu.net>
17023
17024         stat-time-tests: minor cleanups
17025         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
17026         * tests/test-stat-time.c (nap): Separate assignment from call.
17027         Suggested by Paolo Bonzini and Bruno Haible.
17028
17029         sys_stat: guarantee struct timespec
17030         * lib/sys_stat.in.h (includes): Always include <time.h>
17031         * modules/sys_stat (Depends-on): Add time.
17032         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
17033         mode_t permission values.
17034         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
17035         get at subsecond timestamps.
17036
17037 2009-10-10  Eric Blake  <ebb9@byu.net>
17038
17039         futimens: new module
17040         * modules/futimens: New file.
17041         * lib/futimens.c (futimens): Likewise.
17042         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
17043         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
17044         we can work around Linux bugs.
17045         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17046         * modules/sys_stat (Makefile.am): Substitute them.
17047         * lib/sys_stat.in.h (futimens): Declare it.
17048         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17049         * doc/posix-functions/futimens.texi (futimens): Likewise.
17050         * modules/futimens-tests: New test.
17051         * tests/test-futimens.c: Likewise.
17052
17053         utimens: introduce fdutimens
17054         * lib/utimens.h (fdutimens): New prototype.
17055         * lib/utimens.c (gl_futimens): Move guts...
17056         (fdutimens): ...to new interface.
17057         * tests/test-utimens.c (do_fdutimens): Use it.
17058
17059         utimens: add UTIME_NOW and UTIME_OMIT support
17060         * lib/utimens.c (validate_timespec, update_timespec): New helper
17061         functions.
17062         (gl_futimens, lutimens): Use them.
17063         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
17064         stdbool, sys_stat.
17065         (Link): Mention resulting library dependency.
17066         * modules/utimecmp (Link): Likewise.
17067         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
17068         (Makefile.am): Pick up library dependency.
17069         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
17070         definition.
17071         * tests/test-sys_stat.c: Test the definitions.
17072         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
17073         * NEWS: Document library dependency.
17074
17075         utimecmp: support symlink timestamps
17076         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
17077         hashing when possible.  Use pathconf when available.
17078         (SYSCALL_RESOLUTION): Recognize tighter resolution.
17079         * modules/utimecmp (Depends-on): Add lstat.
17080
17081         utimens: add lutimens interface
17082         * lib/utimens.c (lutimens): New function.
17083         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
17084         * lib/utimens.h (lutimens): Declare new interface.
17085         * tests/test-utimens.c (main): Enhance test.
17086         * tests/test-lutimens.h (test_lutimens): New file.
17087         * modules/utimens-tests (Files): Distribute it.
17088         (Depends-on): Add symlink.
17089         (configure.ac): Check for usleep.
17090
17091         utimens: validate futimens usage
17092         * lib/utimens.c (gl_futimens): Require valid fd up front, using
17093         fewer syscalls on failure later on.  Avoid compiler warning on
17094         mingw.
17095         * modules/utimens (Depends-on): Add dup2.
17096
17097         utimens: add test
17098         * modules/utimens-tests: New test.
17099         * tests/test-utimens.h: New file.
17100         * tests/test-futimens.h: Likewise.
17101         * tests/test-utimens.c: Likewise.
17102
17103         doc: mention timestamp portability issues
17104         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
17105         instead.
17106         * doc/posix-functions/utime.texi (utime): Likewise.
17107         * doc/posix-functions/utimes.texi (utimes): Likewise.
17108         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
17109         instead.
17110         * doc/posix-functions/futimens.texi (futimens): Mention utimens
17111         module.
17112         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
17113         Mention weakness with symlink timestamps.
17114         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
17115         to utimensat/futimens instead.
17116         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
17117
17118         test-dup2: enhance test
17119         * tests/test-dup2.c (main): Also check AT_FDCWD.
17120
17121         test-stat-time: avoid more spurious failures
17122         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
17123         xfs; and avoid race if the two timestamps cross quantization edge.
17124
17125         relocatable: prefer 'file system' over 'filesystem'
17126         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
17127         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
17128         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
17129         * doc/relocatable.texi (Enabling Relocatability): Likewise.
17130         * lib/relocatable.c (compute_curr_prefix): Likewise.
17131
17132 2009-10-10  Jim Meyering  <meyering@redhat.com>
17133
17134         stat-time-tests: check for the usleep function
17135         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
17136
17137 2009-10-10  Bruno Haible  <bruno@clisp.org>
17138
17139         * modules/xnanosleep: Put the Link section after the Include section.
17140
17141 2009-10-09  Eric Blake  <ebb9@byu.net>
17142
17143         dup2: work around FreeBSD 6.1 bug
17144         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
17145         * doc/posix-functions/dup2.texi (dup2): Document it.
17146         Reported by Nelson H. F. Beebe and Jim Meyering.
17147
17148         test-stat-time: port to buggy NFS clients
17149         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
17150         (test_ctime): Also skip test if mtime and ctime are skewed.
17151
17152         maint: prefer 'file system' over 'filesystem'
17153         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
17154         * doc/posix-functions/lstat.texi (lstat): Likewise.
17155         * lib/file-has-acl.c (file_has_acl): Likewise.
17156         * lib/fwriteerror.c [TEST]: Likewise.
17157         * tests/test-areadlink.h (test_areadlink): Likewise.
17158         * tests/test-areadlinkat-with-size.c (main): Likewise.
17159         * tests/test-areadlinkat.c (main): Likewise.
17160         * tests/test-canonicalize-lgpl.c (main): Likewise.
17161         * tests/test-canonicalize.c (main): Likewise.
17162         * tests/test-fstatat.c (main): Likewise.
17163         * tests/test-linkat.c (main): Likewise.
17164         * tests/test-lstat.h (test_lstat_func): Likewise.
17165         * tests/test-mkdir.h (test_mkdir): Likewise.
17166         * tests/test-readlink.h (test_readlink): Likewise.
17167         * tests/test-remove.c (main): Likewise.
17168         * tests/test-rename.h (test_rename): Likewise.
17169         * tests/test-renameat.c (main): Likewise.
17170         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17171         * tests/test-symlink.h (test_symlink): Likewise.
17172         * tests/test-symlinkat.c (main): Likewise.
17173         * tests/test-unlink.h (test_unlink_func): Likewise.
17174         * tests/test-unlinkat.c (main): Likewise.
17175
17176         maint: make realtime library usage explicit
17177         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
17178         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
17179         * modules/settime (Link): Likewise.
17180         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
17181
17182         test-stat-time: speed up execution
17183         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
17184         warning on mingw.
17185         (nap): New helper function.
17186         (prepare_test): Use it to reduce sleep time.
17187         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
17188         execution.
17189         * modules/stat-time-tests (configure.ac): Check for usleep.
17190
17191 2009-10-09  Jim Meyering  <meyering@redhat.com>
17192
17193         selinux-h: always use getfilecon wrappers
17194         * lib/getfilecon.c: New file.
17195         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
17196         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
17197         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
17198         (fgetfilecon): Provide a stub.
17199         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
17200         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
17201         file unconditionally.
17202         When <selinux/selinux.h> is found, arrange to use wrappers.
17203         * modules/selinux-h (Files): Add getfilecon.c.
17204         (Makefile.am): Substitute include-next-related bits
17205         into the now-always-generated selinux/selinux.h file.
17206         * doc/glibc-functions/lgetfilecon.texi: New file.
17207         * doc/glibc-functions/fgetfilecon.texi: New file.
17208         * doc/glibc-functions/getfilecon.texi: New file.
17209         * doc/glibc-functions/getfilecon-desc.texi: New file.
17210         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
17211         which to pull in the new files.
17212         * MODULES.html.sh (Misc): Add selinux-h.
17213
17214 2009-10-08  Jim Meyering  <meyering@redhat.com>
17215
17216         unistd: fix comment typo
17217         * lib/unistd.in.h (euidaccess): Fix a comment typo.
17218
17219 2009-10-08  Eric Blake  <ebb9@byu.net>
17220
17221         areadlink: use SIZE_MAX consistently
17222         * modules/areadlink (Depends-on): Add stdint.
17223         * modules/areadlink-with-size (Depends-on): Likewise.
17224         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
17225         gives NULL; drop sys/types, since unistd gives size_t; and add
17226         stdint for SIZE_MAX.
17227         (SIZE_MAX): Rely on headers.
17228         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
17229         and add stdint.
17230         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
17231         (SIZE_MAX): Likewise.
17232         (INITIAL_BUF_SIZE): Turn into enum.
17233         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
17234
17235 2009-10-08  Jim Meyering  <meyering@redhat.com>
17236
17237         areadlinkat: avoid compilation failure
17238         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
17239         Fix typo in comment.
17240
17241 2009-10-07  Eric Blake  <ebb9@byu.net>
17242
17243         areadlinkat-with-size: new module
17244         * modules/areadlinkat-with-size: New module.
17245         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
17246         * lib/areadlink.h (areadlinkat): Declare it.
17247         * MODULES.html.sh (File system functions): Mention it.
17248         * modules/areadlinkat-with-size-tests: New test.
17249         * tests/test-areadlinkat-with-size.c: New file.
17250
17251         xreadlinkat: new module
17252         * modules/xreadlinkat: New module.
17253         * lib/xreadlinkat.c (xreadlinkat): New file.
17254         * lib/xreadlink.h (xreadlinkat): Declare it.
17255         * MODULES.html.sh (File system functions): Mention it.
17256
17257         areadlinkat: new module
17258         * lib/at-func.c (FUNC_FAIL): New define.
17259         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
17260         * modules/areadlinkat: New module.
17261         * lib/linkat.c (areadlinkat): Move...
17262         * lib/areadlinkat.c (areadlinkat): ...to new file.
17263         * lib/areadlink.h (areadlinkat): Declare it.
17264         * modules/linkat (Depends-on): Add areadlinkat.
17265         * MODULES.html.sh (File system functions): Mention it.
17266         * modules/areadlinkat-tests: New test.
17267         * tests/test-areadlinkat.c: New file.
17268
17269         areadlink, areadlink-with-size: add tests
17270         * modules/areadlink-tests: New test.
17271         * modules/areadlink-with-size-tests: Likewise.
17272         * tests/test-areadlink.h: New file.
17273         * tests/test-areadlink.c: Likewise.
17274         * tests/test-areadlink-with-size.c: Likewise.
17275
17276         maint: minor cleanups
17277         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
17278         _UNUSED_PARAMETER_ instead.
17279         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
17280         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
17281         * modules/linkat-tests (Files): Distribute test-link.h.
17282
17283         openat, utimens: whitespace cleanup
17284         * lib/openat.c: Prefer space throughout, rather than mix of 8
17285         spaces vs. tabs.
17286         * lib/at-func.c: Likewise.
17287         * lib/utimens.c: Likewise.
17288
17289         openat: avoid using wrong fd
17290         * lib/openat.c (openat_permissive): Reject user's fd if saving the
17291         working directory chooses same fd.
17292         * lib/at-func.c (AT_FUNC_NAME): Likewise.
17293
17294         mkdir, mkdirat: fix cygwin 1.5.x bug
17295         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
17296         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
17297         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
17298         bug.
17299         (gl_PREREQ_MKDIR): Delete unused macro.
17300         * modules/mkdir (Files): Track file rename.
17301         (configure.ac): Update macro name.
17302         * modules/openat (Depends-on): Add mkdir.
17303         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
17304
17305         mkdir, mkdirat: add tests
17306         * modules/mkdir-tests: New test.
17307         * tests/test-mkdir.h: New file.
17308         * tests/test-mkdir.c: Likewise.
17309         * tests/test-mkdirat.c: Likewise.
17310         * modules/openat-tests (Files): Add new files.
17311         (Makefile.am): Run new test.
17312
17313 2009-10-06  Eric Blake  <ebb9@byu.net>
17314
17315         doc: tweak *at function documentation
17316         * doc/posix-functions/faccessat.texi (faccessat): Mention
17317         known issue with replacement.
17318         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
17319         * doc/posix-functions/linkat.texi (linkat): Likewise.
17320         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
17321         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
17322         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17323         * doc/posix-functions/renameat.texi (renameat): Likewise.
17324         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
17325
17326         openat: fix GNU/Hurd bug in unlinkat
17327         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
17328         broken.
17329         * doc/posix-functions/unlink.texi (unlink): Document this.
17330         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
17331
17332         fdopendir: fix GNU/Hurd bug
17333         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
17334         allowing non-directory fds.
17335         * lib/fdopendir.c (rpl_fdopendir): Work around it.
17336         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
17337         * modules/dirent (Makefile.am): Substitute it.
17338         * lib/dirent.in.h (fdopendir): Declare replacement.
17339         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
17340         * tests/test-fdopendir.c (main): Test something other than
17341         /dev/null, since on Hurd that behaves like a directory.
17342
17343         test-symlink: port to GNU/Hurd
17344         * tests/test-symlink.h (test_symlink): Relax expected errno.
17345
17346         doc: tweak more cygwin information
17347         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
17348         now compatible with glibc.
17349         * doc/posix-functions/getopt.texi (getopt): Likewise.
17350
17351         getopt-gnu: add another test
17352         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
17353         guarantee behavior relied on by m4.
17354         * tests/test-getopt.c (main): Use it.
17355         * modules/getopt-posix-tests (Depends-on): Add setenv.
17356         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
17357
17358         getopt: fix compilation on darwin
17359         * lib/getopt.in.h (includes): Leave breadcrumbs during system
17360         include.
17361         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
17362         Reported by Ludovic Courtès.
17363
17364 2009-10-06  Bruno Haible  <bruno@clisp.org>
17365
17366         * modules/size_max (Description): Discourage its use.
17367         Reported by Simon Josefsson.
17368
17369 2009-10-06  Jim Meyering  <meyering@redhat.com>
17370
17371         linkat: avoid compilation failure
17372         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
17373
17374 2009-10-05  Eric Blake  <ebb9@byu.net>
17375
17376         linkat: support Linux 2.6.17
17377         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
17378         linkat on Linux, but allow cache variable override.
17379         * lib/linkat.c (rpl_linkat): Define override.
17380         * modules/linkat (Depends-on): Add symlinkat.
17381         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
17382         * modules/unistd (Makefile.am): Substitute it.
17383         * lib/unistd.in.h (linkat): Declare replacement.
17384         Reported by Pádraig Brady.
17385
17386         quotearg: port test to systems with C.UTF-8 locale
17387         * tests/test-quotearg.c (struct result_strings): Add another
17388         member, differentiating between C.ASCII and C.UTF-8 handling.
17389         (compare_strings): Add parameter.
17390         (main): Adjust all callers.
17391
17392         getopt: avoid clash with FreeBSD _getopt_internal
17393         * lib/getopt.in.h (_getopt_internal): Override the name.
17394         * lib/getopt_int.h (includes): Pick up any overrides.
17395         Reported by Reuben Thomas.
17396
17397         hash: allow C89 compilation
17398         * lib/hash.c (check_tuning): Move declaration before statement.
17399         Reported by Reuben Thomas.
17400
17401 2009-10-05  Karl Berry  <karl@gnu.org>
17402
17403         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
17404
17405 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
17406             Bruno Haible  <bruno@clisp.org>
17407
17408         * lib/uname.c (uname): Use a table-driven algorithm to compute
17409         Windows NT versions.
17410
17411 2009-10-04  Bruno Haible  <bruno@clisp.org>
17412
17413         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
17414         program_invocation_short_name.
17415         * modules/progname (configure.ac): Test for presence of
17416         program_invocation_short_name.
17417         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
17418
17419 2009-10-04  Bruno Haible  <bruno@clisp.org>
17420
17421         * lib/progname.c (set_program_name): Fix comment.
17422         Reported by Jim Meyering.
17423
17424 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
17425             Bruno Haible  <bruno@clisp.org>
17426
17427         * lib/uname.c: Include <string.h>.
17428         (uname): Do only one call to GetVersionEx in the common case.
17429
17430 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
17431             Bruno Haible  <bruno@clisp.org>
17432
17433         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
17434         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
17435         (uname): Add support for Windows CE and various non-x86 CPU types.
17436
17437 2009-10-03  Bruno Haible  <bruno@clisp.org>
17438
17439         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
17440         invocation to tests/configure.ac.
17441         Reported by Ian Beckwith <ianb@erislabs.net>.
17442
17443 2009-10-02  Eric Blake  <ebb9@byu.net>
17444
17445         fchdir: avoid compiler warning
17446         * lib/fchdir.c (canonicalize_file_name)
17447         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
17448
17449         test-open: support mingw errno values
17450         * tests/test-open.h (test_open): Relax test.
17451         * tests/test-fopen.h (test_fopen): Likewise.
17452         * tests/test-openat-safer.c (main): Likewise.
17453
17454         open: fix opening directory on mingw
17455         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
17456
17457         test-open: on GNU/Hurd, /dev/null is a directory
17458         * tests/test-fopen.h (main): Rename...
17459         (test_fopen): ...to this.  Use a guaranteed non-directory when
17460         confirming open behavior on trailing slash.
17461         * tests/test-openat-safer.c (main): Likewise.
17462         * tests/test-open.h (main): Likewise....
17463         (test_open): ...to this.
17464         * tests/test-fopen.c (main): Adjust caller.
17465         * tests/test-fopen-safer.c (main): Likewise.
17466         * tests/test-open.c (main): Likewise.
17467         * tests/test-fcntl-safer.c (main): Likewise.
17468         Reported by Samuel Thibault.
17469
17470         rename, fchdir: don't ignore chdir failure
17471         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
17472         * lib/rename.c (rpl_rename) [W32]: Likewise.
17473         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
17474         an empty destination directory if source cannot be renamed,
17475         although there is still possibility for failure.
17476         * doc/posix-functions/rename.texi (rename): Document the race.
17477         Reported by Jim Meyering.
17478
17479         maint: cleanup whitespace in recent commits
17480         * lib/rename.c (rpl_rename): Remove tabs.
17481         * tests/test-link.h (test_link): Likewise.
17482         * lib/fchdir.c (get_name): Likewise.
17483         Reported by Jim Meyering.
17484
17485 2009-10-02  Ben Pfaff  <blp@gnu.org>
17486
17487         relocatable-prog-wrapper: Add missing dependency on
17488         double-slash-root.
17489         * modules/relocatable-prog-wrapper: Add dependency.
17490         Reported by Ian Beckwith <ianb@erislabs.net>.
17491
17492 2009-10-02  Eric Blake  <ebb9@byu.net>
17493
17494         renameat: fix Solaris bugs
17495         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
17496         needed fixing.
17497         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
17498         * modules/stdio (Makefile.am): Substitute it.
17499         * lib/stdio.in.h (renameat): Declare replacement.
17500         * lib/renameat.c (rpl_renameat): Implement fix.
17501
17502         renameat: new module
17503         * modules/renameat: New file.
17504         * lib/renameat.c (renameat): Likewise.
17505         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
17506         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
17507         * modules/stdio (Makefile.am): Substitute them.
17508         * lib/stdio.in.h (renameat): Declare it.
17509         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17510         * doc/posix-functions/renameat.texi (renameat): Likewise.
17511         * modules/renameat-tests: New test.
17512         * tests/test-renameat.c: Likewise.
17513
17514         rename: fix mingw bugs
17515         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
17516         directory overwrite bugs.
17517
17518         rename: fix another cygwin 1.5 bug
17519         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
17520         checks.
17521         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
17522         unnecessary cygwin workarounds.  Also work around bug with moving
17523         full directory onto an empty one.
17524         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
17525
17526         rename-dest-slash: merge into rename module
17527         * modules/rename-dest-slash (Status): Mark obsolete.
17528         (Depends-on): Add rename.
17529         (Files): Let rename do it all.
17530         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
17531         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
17532         * m4/rename-dest-slash.m4: ...so this file can be deleted.
17533         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
17534         * lib/rename.c (rpl_rename): Update comments.
17535
17536         rename: fix cygwin 1.5.x bugs
17537         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
17538         * lib/rename.c (rpl_rename): Work around them.
17539         * modules/rename (Depends-on): Add same-inode.
17540
17541         rename: fix Solaris 10 bug
17542         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
17543         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
17544         was the only bug.
17545
17546         rename: fix Solaris 9 bug
17547         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
17548         on non-directory.  Avoid calling exit.
17549         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
17550         strdup.
17551         * modules/rename-tests (Depends-on): Drop lstat.
17552         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
17553         (gl_PREREQ_RENAME): Delete unused macro.
17554
17555         rename-dest-slash: fix NetBSD bug
17556         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
17557         links.
17558         * modules/rename-dest-slash (Depends-on): Add same-inode.
17559
17560         rename-tests: new test, exposes several platform bugs
17561         * modules/rename-tests: New file.
17562         * tests/test-rename.h: Likewise.
17563         * tests/test-rename.c: Likewise.
17564         * doc/posix-functions/rename.texi (rename): Improve documentation,
17565         including bugs that will eventually be fixed in gnulib.
17566
17567 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
17568
17569         * lib/uname.c: Include <stdlib.h>
17570         (uname): Assume version info is available.
17571
17572 2009-10-02  Jim Meyering  <meyering@redhat.com>
17573
17574         gnu-web-doc-update: correct --help output
17575         * build-aux/gnu-web-doc-update: Make --help output relevant.
17576
17577         gnu-web-doc-update: add standard options
17578         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
17579
17580         gnu-web-doc-update: New module.
17581         Use this script to automatically update the on-line web documentation
17582         for your GNU project at http://www.gnu.org/software/$pkg/manual/
17583         * modules/gnu-web-doc-update: New file, from coreutils.
17584         * build-aux/gnu-web-doc-update: New script.
17585
17586 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
17587
17588         link: LoadLibrary is not needed.
17589         * lib/link.c: Use GetModuleHandle.
17590
17591 2009-10-01  Eric Blake  <ebb9@byu.net>
17592
17593         getopt: bump serial number
17594         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
17595         change.
17596
17597         tests: tighten link, rmdir, and remove tests
17598         * tests/test-link.h (includes): No need to use <config.h> here.
17599         Clean up if directory hard link was created, otherwise test for
17600         trailing '.'.
17601         * tests/test-linkat.c (main): Simplify.
17602         * tests/test-remove.c (main): Enhance test for trailing '.'.
17603         * tests/test-rmdir.h (test_rmdir_func): Likewise.
17604
17605 2009-10-01  Jim Meyering  <meyering@redhat.com>
17606
17607         maint.mk: requiring "make major" was annoying, for a "minor" release.
17608         What is intended is "stable", to contrast with alpha and beta,
17609         so require "make stable", not "make major".
17610         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
17611         (get_tool_versions): Likewise.
17612         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
17613
17614 2009-09-30  Ben Pfaff  <blp@gnu.org>
17615
17616         Fix broken build of replacement for Windows tmpfile().
17617         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
17618         flags argument added along with the 'mkostemp' module.
17619
17620 2009-09-28  Bruno Haible  <bruno@clisp.org>
17621
17622         Avoid identifier clash with POSIX function 'remove' defined as a macro.
17623         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
17624         to 'remove_elt'.
17625         (gl_list_remove): Update.
17626         * lib/gl_list.c (gl_list_remove): Update.
17627         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
17628         to 'remove_elt'.
17629         (gl_oset_remove): Update.
17630         * lib/gl_list.c (gl_oset_remove): Update.
17631         Reported by Eric Blake.
17632
17633 2009-09-28  Eric Blake  <ebb9@byu.net>
17634
17635         doc: mention yet more cygwin 1.7 status
17636         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
17637         cygwin.
17638         * doc/glibc-functions/execvpe.texi (execvpe): New file.
17639         * doc/gnulib.texi (Glibc unistd.h): Mention it.
17640
17641         argp: fix test failure
17642         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
17643         that are not upper-case.  Pass correct range to tolower.
17644
17645 2009-09-27  Jim Meyering  <meyering@redhat.com>
17646
17647         test-yesno: work around sparc-dash here-document infelicity
17648         Without this change, the literal \177 byte in a here document
17649         would make dash 0.5.5.1-3 access uninitialized memory.
17650         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
17651         Instead, use a marker, "@", and filter through tr to create the desired
17652         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
17653
17654 2009-09-27  Bruno Haible  <bruno@clisp.org>
17655
17656         Disable untested support for new flavours of ACLs on AIX.
17657         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
17658         progress.
17659         * lib/set-mode-acl.c (qset_acl): Likewise.
17660
17661 2008-12-07  Bruno Haible  <bruno@clisp.org>
17662
17663         Add support for new flavours of ACLs on AIX. (Untested.)
17664         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
17665         (file_has_acl): Add support for newer AIX.
17666         * lib/set-mode-acl.c (qset_acl): Likewise.
17667         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
17668         Rainer Tammer <tammer@tammer.net>.
17669
17670 2009-09-26  Eric Blake  <ebb9@byu.net>
17671
17672         argp: fix compilation of getopt
17673         * lib/getopt.in.h (includes): Use different guard than glibc.
17674         Reported by Sergey Poznyakoff.
17675
17676         doc: mention more cygwin 1.7 status
17677         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
17678         bug.
17679         * doc/posix-functions/execl.texi (execl): Likewise.
17680         * doc/posix-functions/execle.texi (execle): Likewise.
17681         * doc/posix-functions/execlp.texi (execlp): Likewise.
17682         * doc/posix-functions/execv.texi (execv): Likewise.
17683         * doc/posix-functions/execve.texi (execve): Likewise.
17684         * doc/posix-functions/execvp.texi (execvp): Likewise.
17685         * doc/glibc-functions/canonicalize_file_name.texi
17686         (canonicalize_file_name): Cygwin 1.7 now provides this.
17687         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
17688         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
17689         on AT_SYMLINK_NOFOLLOW.
17690
17691 2009-09-24  Eric Blake  <ebb9@byu.net>
17692
17693         test-linkat: make test more robust
17694         * tests/test-linkat.c (main): Avoid collision with EEXIST.
17695
17696         getopt: fix inclusion guards for cygwin
17697         * modules/getopt-posix (Depends-on): Add include-next.
17698         (Makefile.am): Substitute more items in replacement header.
17699         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
17700         <getopt.h>.
17701         * lib/getopt.in.h (includes): Use split inclusion guard, and
17702         prefer <getopt.h> over include <unistd.h> when one is present.
17703         (option): Also override name of 'struct option'.
17704
17705         same-inode: revert prior change; it is not yet ready
17706         * NEWS: Undo mention of this change.
17707         * lib/same-inode.h (same-inode.h): Undo tri-state change.
17708         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
17709         * lib/cycle-check.c (cycle_check): Likewise.
17710         * lib/same.c (same_name): Likewise.
17711         * lib/at-func2.c (at_func2): Likewise.
17712
17713 2009-09-23  Eric Blake  <ebb9@byu.net>
17714
17715         linkat: new module
17716         * modules/linkat: New file.
17717         * lib/at-func2.c (at_func2): Likewise.
17718         * lib/linkat.c (linkat): Likewise.
17719         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
17720         * lib/openat-priv.h (at_func2): Add declaration.
17721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17722         * modules/unistd (Makefile.am): Substitute them.
17723         * lib/unistd.in.h (linkat): Declare it.
17724         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17725         * doc/posix-functions/linkat.texi (linkat): Likewise.
17726         * doc/posix-functions/link.texi (link): Tweak wording.
17727         * tests/test-link.c (main): Move guts...
17728         * tests/test-link.h (test_link): ...into new file.
17729         * modules/linkat-tests: New test.
17730         * tests/test-linkat.c: Likewise.
17731         * modules/link-tests (Files): Ship new file.
17732         (Depends-on): Add stdbool.
17733
17734         dirname: add library-safe mdir_name
17735         * lib/dirname.h (mdir_name): New prototype.
17736         * lib/dirname.c (dir_name): Move guts...
17737         (mdir_name): ...to new function that avoids xalloc_die.
17738
17739         fchdir: another mingw fix
17740         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
17741         * lib/fchdir.c (get_name): New helper method; skips canonicalize
17742         on mingw (where it has not yet been ported), and make it optional
17743         elsewhere.
17744         (_gl_register_fd): Use it.
17745
17746         same-inode: make SAME_INODE tri-state, to port to mingw
17747         * NEWS: Mention this change.
17748         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
17749         st_ino always being 0.
17750         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
17751         * lib/cycle-check.c (cycle_check): Likewise.
17752         * lib/same.c (same_name): Likewise.
17753
17754         lstat: avoid mingw compilation error
17755         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
17756         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
17757         lstat ourselves.
17758         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
17759         was adequate.
17760         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
17761         the checks for lstat.
17762         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
17763
17764         link: fix test failure on Solaris 9
17765         * lib/link.c (rpl_link): Don't assume link will catch bogus
17766         trailing slash on source.
17767
17768         test-symlinkat: enhance test
17769         * tests/test-readlink.c (main): Move guts...
17770         * tests/test-readlink.h (test_readlink): ...into new file.
17771         * tests/test-symlink.c (main): Move guts...
17772         * tests/test-symlink.h (test_symlink): ...into new file.
17773         * tests/test-symlinkat.c (main): Use new files for further
17774         coverage.
17775         (do_symlink, do_readlink): New helper functions.
17776         * modules/symlink-tests (Files): Ship new file.
17777         (Depends-on): Add stdbool.
17778         * modules/readlink-tests (Files): Ship new file.
17779         (Depends-on): Add stdbool.
17780         * modules/symlinkat-tests (Files): Use new files.
17781
17782 2009-09-23  Eric Blake  <ebb9@byu.net>
17783
17784         readlink: document portability issue with symlink length
17785         * doc/posix-functions/lstat.texi (lstat): Mention that some file
17786         systems have bogus st_size on symlinks, and mention the
17787         areadlink-with-size module.
17788         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
17789         * doc/posix-functions/readlink.texi (readlink): Mention the
17790         areadlink module, and ERANGE failure.
17791         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17792         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
17793
17794         readlink: fix Solaris 9 bug with trailing slash
17795         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
17796         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
17797         * doc/posix-functions/readlink.texi (readlink): Document this.
17798         * modules/readlink-tests: New test.
17799         * tests/test-readlink.c: Likewise.
17800
17801         readlink: fix cygwin 1.5.x bug with return type
17802         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
17803         * lib/unistd.in.h (readlink): Use ssize_t.
17804         * lib/readlink.c (readlink): Likewise.
17805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17806         * modules/unistd (Makefile.am): Substitute it.
17807         * lib/unistd.in.h (readlink): Declare replacement.
17808         * doc/posix-functions/readlink.texi (readlink): Document this.
17809
17810         symlink: use throughout gnulib
17811         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
17812         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
17813         symlink is not used.
17814         * modules/symlinkat (Depends-on): Add symlink.
17815         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
17816         * modules/canonicalize-tests (Depends-on): Likewise.
17817         * modules/lstat-tests (Depends-on): Likewise.
17818         * modules/openat-tests (Depends-on): Likewise.
17819         * modules/remove-tests (Depends-on): Likewise.
17820         * modules/rmdir-tests (Depends-on): Likewise.
17821         * modules/unlink-tests (Depends-on): Likewise.
17822         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
17823         * tests/test-canonicalize.c (symlink): Likewise.
17824         * tests/test-fstatat.c (symlink): Likewise.
17825         * tests/test-lstat.c (symlink): Likewise.
17826         * tests/test-remove.c (symlink): Likewise.
17827         * tests/test-rmdir.c (symlink): Likewise.
17828         * tests/test-unlink.c (symlink): Likewise.
17829         * tests/test-unlinkat.c (symlink): Likewise.
17830
17831         symlink: new module, for Solaris 9 bug
17832         * modules/symlink: New file.
17833         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
17834         * lib/symlink.c: Likewise.
17835         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
17836         * modules/unistd (Makefile.am): Substitute them.
17837         * lib/unistd.in.h (symlink): Declare replacement.
17838         * MODULES.html.sh (File system functions): Mention it.
17839         * doc/posix-functions/symlink.texi (symlink): Likewise.
17840         * modules/symlink-tests: New test.
17841         * tests/test-symlink.c: Likewise.
17842
17843 2009-09-23  Bruno Haible  <bruno@clisp.org>
17844
17845         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
17846         when needed.
17847         Test case: gnulib-tool --import --with-tests atexit inttypes.
17848         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
17849
17850 2009-09-23  Bruno Haible  <bruno@clisp.org>
17851
17852         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
17853         subcommand, not in a subshell.
17854
17855 2009-09-22  Eric Blake  <ebb9@byu.net>
17856
17857         unistd: sort replacement declarations
17858         * lib/unistd.in.h: Sort declarations.
17859
17860         open, openat: minor optimization
17861         * lib/open.c (open): If open succeeded, len is non-zero.
17862         * lib/openat.c (rpl_openat): Likewise.
17863
17864         link-follow: ensure correct result
17865         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
17866         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
17867         distinguish between possible failures.
17868
17869 2009-09-21  Eric Blake  <ebb9@byu.net>
17870
17871         fts: avoid compiler warning
17872         * lib/fts.c (dirent_inode_sort_may_be_useful)
17873         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
17874
17875 2009-09-19  Bruno Haible  <bruno@clisp.org>
17876
17877         * lib/progreloc.c (canonicalize_file_name): New declaration.
17878
17879 2009-09-19  Eric Blake  <ebb9@byu.net>
17880
17881         link: fix quoting
17882         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
17883
17884         openat: fix openat bugs on Solaris 9
17885         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
17886         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
17887         * modules/openat (Depends-on): Add open.
17888         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
17889         * modules/fcntl-h (Makefile.am): Substitute it.
17890         * lib/fcntl.in.h (openat): Declare replacement.
17891         * doc/posix-functions/openat.texi (openat): Document this.
17892
17893         openat: move fstatat and unlinkat into correct files
17894         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
17895         compiled.
17896         * lib/openat.c (fstatat, unlinkat): Move...
17897         * lib/fstatat.c (fstatat): ...into correct files.
17898         * lib/unlinkat.c (unlinkat): Likewise.
17899
17900         openat: fix unlinkat bugs on Solaris 9
17901         * lib/unlinkat.c (unlinkat): New file.
17902         * modules/openat (Depends-on): Add unlink.
17903         (Files): Distribute it.
17904         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
17905         trailing slash behavior is broken.
17906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
17907         * modules/unistd (Makefile.am): Substitute it.
17908         * lib/unistd.in.h (unlinkat): Declare replacement.
17909         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
17910
17911         openat: fix fstatat bugs on Solaris 9
17912         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
17913         stat.
17914         * doc/posix-functions/fstatat.texi (fstatat): Document this.
17915
17916         test-unlinkat: enhance test, to expose Solaris 9 bug
17917         * tests/test-unlink.c (main): Factor guts...
17918         * tests/test-unlink.h (test_rmdir_func): ...into new file.
17919         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
17920         * tests/test-rmdir.c (main): Adjust caller.
17921         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
17922         (unlinker): New helper function.
17923         (rmdirat): Enhance check.
17924         * modules/rmdir-tests (Depends-on): Add stdbool.
17925         * modules/unlink-tests (Depends-on): Likewise.
17926         (Files): Add test-unlink.h.
17927         * modules/openat-tests (Files): Likewise.
17928         (Depends-on): Add unlinkdir.
17929
17930         test-fstatat: new test, to expose Solaris 9 bugs
17931         * tests/test-stat.c (main): Factor guts...
17932         * tests/test-stat.h (test_stat_func): ...into new file.
17933         * tests/test-lstat.c (main): Factor guts...
17934         * tests/test-lstat.h (test_lstat_func): ...into new file.
17935         * tests/test-fstatat.c: New file.
17936         * modules/stat-tests (Files): Add test-stat.h.
17937         * modules/lstat-tests (Files): Add test-lstat.h.
17938         (Depends-on): Add stdbool.
17939         * modules/openat-tests (Depends-on): Add pathmax.
17940         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
17941         (Makefile.am): Run new test.
17942
17943         remove: new module, for mingw and Solaris 9 bugs
17944         * modules/remove: New file.
17945         * lib/remove.c: Likewise.
17946         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
17947         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
17948         * modules/stdio (Makefile.am): Use them.
17949         * lib/stdio.in.h (remove): Declare replacement.
17950         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17951         * doc/posix-functions/remove.texi (remove): Likewise.
17952         * modules/remove-tests: New test.
17953         * tests/test-remove.c: Likewise.
17954
17955         unlink: new module, for Solaris 9 bug
17956         * modules/unlink: New file.
17957         * lib/unlink.c: Likewise.
17958         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
17959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
17960         * modules/unistd (Makefile.am): Use them.
17961         * lib/unistd.in.h (stat): Declare replacement.
17962         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
17963         * doc/posix-functions/unlink.texi (unlink): Likewise.
17964         * modules/unlink-tests: New test.
17965         * tests/test-unlink.c: Likewise.
17966
17967         lstat: fix Solaris 9 bug
17968         * lib/lstat.c (lstat): Also check for trailing slash on
17969         non-symlink, non-directories.  Use stat module to simplify logic.
17970         * doc/posix-functions/lstat.texi (lstat): Document it.
17971         * modules/lstat-tests (Depends-on): Add errno, same-inode.
17972         (configure.ac): Check for symlink.
17973         * tests/test-lstat.c (main): Add more tests.
17974
17975         stat: add as dependency to other modules
17976         * modules/chown (Depends-on): Add stat.
17977         * modules/euidaccess (Depends-on): Likewise.
17978         * modules/fchdir (Depends-on): Likewise.
17979         * modules/isdir (Depends-on): Likewise.
17980         * modules/link (Depends-on): Likewise.
17981         * modules/lstat (Depends-on): Likewise.
17982         * modules/mkdir-p (Depends-on): Likewise.
17983         * modules/modechange (Depends-on): Likewise.
17984         * modules/open (Depends-on): Likewise.
17985         * modules/readlink (Depends-on): Likewise.
17986         * modules/same (Depends-on): Likewise.
17987
17988         stat: fix Solaris 9 bug
17989         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
17990         slash.
17991         * lib/stat.c (rpl_stat): Work around it.
17992         * doc/posix-functions/stat.texi (stat): Update documentation.
17993
17994         stat: new module, for mingw bug
17995         * modules/stat: New file.
17996         * lib/stat.c: Likewise.
17997         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
17998         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
17999         * modules/sys_stat (Makefile.am): Use them.
18000         * lib/sys_stat.in.h (stat): Declare replacement.
18001         * lib/openat.c (fstatat): Deal with lstat and stat being function
18002         macros.
18003         * modules/openat (Depends-on): Add inline.
18004         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
18005         * doc/posix-functions/stat.texi (stat): Likewise.
18006         * modules/stat-tests: New test.
18007         * tests/test-stat.c: Likewise.
18008
18009 2009-09-19  Jim Meyering  <meyering@redhat.com>
18010
18011         syntax-check: detect unnecessary inclusion of canonicalize.h
18012         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
18013
18014 2009-09-19  Eric Blake  <ebb9@byu.net>
18015
18016         canonicalize-lgpl: adjust clients to use correct header
18017         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
18018         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
18019         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
18020         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
18021         * lib/progreloc.c (includes): Likewise.
18022
18023 2009-09-19  Jim Meyering  <meyering@redhat.com>
18024
18025         test-posixtm.c: correct a comment
18026         * tests/test-posixtm.c: Correct first-line comment.
18027         Spotted by Eric Blake.
18028
18029 2009-09-16  Jim Meyering  <meyering@redhat.com>
18030
18031         posixtm-tests: make T const-correct; add a test case
18032         * tests/test-posixtm.c (T): Declare const.
18033         Add a test for -(2^31+1).
18034         Remove useless can-succeed-only-in-2002 test.
18035
18036         posixtm-tests: adjust the sole failing test
18037         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
18038         expected output matches what mktime now produces.  Cross-checked via
18039         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
18040
18041         posixtm: move #ifdef'd tests into a new module
18042         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
18043         * tests/test-posixtm.c: ... this new file.
18044         * modules/posixtm-tests: New module.
18045
18046 2009-09-19  Eric Blake  <ebb9@byu.net>
18047
18048         openat: simplify use of at-func.c
18049         * lib/at-func.c (includes): Include prerequisites here, to
18050         simplify requirements on client files.
18051         * lib/openat-priv.h: Add double-inclusion guard.
18052         * lib/faccessat.c (includes): Simplify.
18053         * lib/fchmodat.c (includes): Likewise.
18054         * lib/fchownat.c (includes): Likewise.
18055         * lib/mkdirat.c (includes): Likewise.
18056         * lib/mkfifoat.c (includes): Likewise.
18057         * lib/symlinkat.c (includes): Likewise.
18058
18059         openat: allow return of fd 0
18060         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
18061         * modules/save-cwd (Depends-on): Replace fcntl-safer with
18062         unistd-safer.
18063         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
18064         <fcntl.h>; this module does not leak fds.
18065         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
18066         must be allowed to return 0, leaving openat_safer to add the
18067         safety.
18068         (openat_permissive): Avoid writing to just-opened fd 2 if
18069         restoring the current directory fails.
18070         * lib/openat-die.c (openat_restore_fail): Add comment.
18071         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
18072         (save_cwd): Guarantee safe fd, but without use of open_safer.
18073         * tests/test-openat.c: New test.
18074         * modules/openat-tests (Files, Makefile.am): Distribute and build
18075         new file.
18076
18077         relocatable-prog-wrapper: fix build
18078         * modules/relocatable-prog-wrapper (Files): Update name of
18079         canonicalize m4 file, broken on 2009-09-17.
18080         Reported by emad hajjar <aleppos@hotmail.com>.
18081
18082 2009-09-19  Bruno Haible  <bruno@clisp.org>
18083
18084         * lib/safe-alloc.h: Use the standard header with GPL copyright.
18085         * lib/safe-alloc.c: Likewise.
18086         Reported by Ian Beckwith <ianb@erislabs.net>.
18087
18088 2009-09-18  Bruno Haible  <bruno@clisp.org>
18089
18090         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
18091         Reported by <erobles@sensacd.com.mx>.
18092
18093 2009-09-17  Eric Blake  <ebb9@byu.net>
18094
18095         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
18096         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
18097         slashes when checking if last component is missing.
18098         * tests/test-canonicalize.c (main): Test this.
18099
18100         canonicalize, canonicalize-lgpl: honor // if distinct from /
18101         * modules/canonicalize (Files): Add double-slash-root.m4.
18102         * modules/canonicalize-lgpl (Files): Likewise.
18103         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
18104         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
18105         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
18106         fallback definition.
18107         (canonicalize_filename_mode): Use it to protect //.
18108         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
18109         (__realpath): Likewise.
18110         * tests/test-canonicalize.c (main): Test this.
18111         * tests/test-canonicalize-lgpl.c (main): Likewise.
18112         * modules/canonicalize-tests (Depends-on): Add same-inode.
18113         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
18114
18115         canonicalize-lgpl: fix glibc bug with trailing slash
18116         * m4/canonicalize-lgpl.m4: Move contents...
18117         * m4/canonicalize.m4: ...here.
18118         (gl_CANONICALIZE_LGPL): Factor realpath check...
18119         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
18120         glibc 2.3.5 bug, fixed 2005-04-27.
18121         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
18122         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
18123         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
18124         * modules/canonicalize-lgpl (Files): Manage file rename.
18125         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
18126         * modules/stdlib (Makefile.am): Substitute witness.
18127         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
18128         is needed.
18129         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
18130         replacement is required.
18131         * lib/canonicalize.c (canonicalize_file_name): Likewise.
18132         * doc/glibc-functions/canonicalize_file_name.texi
18133         (canonicalize_file_name): Document this.
18134         * doc/posix-functions/realpath.texi (realpath): Likewise.
18135
18136         canonicalize-lgpl: reject non-directory with trailing slash
18137         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
18138         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
18139         catches failures in glibc 2.3.5.
18140         * tests/test-canonicalize.c (main): Likewise.
18141
18142         canonicalize-lgpl: use native realpath if it works
18143         * lib/canonicalize-lgpl.c (realpath): Guard with
18144         FUNC_REALPATH_WORKS.
18145         * lib/stdlib.in.h (realpath): Make declaration optional based on
18146         HAVE_REALPATH.
18147         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
18148         native realpath works.
18149         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
18150         * modules/stdlib (Makefile.am): Substitute witness.
18151
18152         canonicalize, canonicalize-lgpl: use <stdlib.h>
18153         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
18154         (Include): Mention <stdlib.h>.
18155         (configure.ac): Mention functions we provide.
18156         * modules/canonicalize (configure.ac): Likewise.
18157         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
18158         realpath if canonicalize_file_name is missing.
18159         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
18160         * modules/stdlib (Makefile.am): Substitute witnesses.
18161         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
18162         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
18163         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
18164         * NEWS: Document this.
18165         * doc/glibc-functions/canonicalize_file_name.texi
18166         (canonicalize_file_name): Likewise.
18167         * doc/posix-functions/realpath.texi (realpath): Likewise.
18168         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
18169
18170         test-canonicalize: consolidate into single C program
18171         * tests/test-canonicalize.sh: Delete; move setup into...
18172         * tests/test-canonicalize.c (main): ...the program, making it
18173         easier to run in debugger.  Add some tests.
18174         * modules/canonicalize-tests (Files): Remove unused file.
18175         (Depends-on): Add progname.
18176         (configure.ac, Makefile.am): Simplify.
18177
18178         test-canonicalize-lgpl: consolidate into single C program
18179         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
18180         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
18181         easier to run in debugger.  Add some tests.
18182         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
18183         (configure.ac, Makefile.am): Simplify.
18184
18185         canonicalize: avoid resolvepath
18186         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
18187         unnecessary checks.
18188         * lib/canonicalize.c (includes): Simplify.
18189         (canonicalize_file_name): Drop resolvepath implementation.
18190         * modules/canonicalize (Depends-on): Drop filenamecat.
18191
18192         canonicalize: don't lose errno
18193         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
18194         over calls to free.
18195
18196         canonicalize: simplify errno handling
18197         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
18198         assignment.
18199
18200         canonicalize, canonicalize-lgpl: update module dependencies
18201         * modules/canonicalize (Depends-on): Add extensions, lstat,
18202         pathmax, stdlib.
18203         (Files): Drop pathmax.h.
18204         (configure.ac): Adjust macro name.
18205         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
18206         lstat, stdlib, sys_stat.
18207         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
18208         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
18209         extensions.
18210         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
18211         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
18212         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
18213         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
18214         declaration, if available.
18215         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
18216         we can rely on the readlink module.
18217         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
18218         (includes): Use <unistd.h> unconditionally.
18219
18220 2009-09-17  Eric Blake  <ebb9@byu.net>
18221
18222         maint: make Include sections of modules consistent
18223         * modules/alloca: Use only header name; no need to list #include.
18224         * modules/alloca-opt: Likewise.
18225         * modules/arpa_inet: Likewise.
18226         * modules/canon-host: Likewise.
18227         * modules/configmake: Likewise.
18228         * modules/dirent: Likewise.
18229         * modules/eealloc: Likewise.
18230         * modules/environ: Likewise.
18231         * modules/fchdir: Likewise.
18232         * modules/fcntl: Likewise.
18233         * modules/fcntl-h: Likewise.
18234         * modules/gethrxtime: Likewise.
18235         * modules/gettime: Likewise.
18236         * modules/ignore-value: Likewise.
18237         * modules/inet_ntop: Likewise.
18238         * modules/inet_pton: Likewise.
18239         * modules/inttypes: Likewise.
18240         * modules/isnand-nolibm: Likewise.
18241         * modules/isnanf-nolibm: Likewise.
18242         * modules/mbchar: Likewise.
18243         * modules/mbfile: Likewise.
18244         * modules/mbiter: Likewise.
18245         * modules/mbuiter: Likewise.
18246         * modules/netdb: Likewise.
18247         * modules/netinet_in: Likewise.
18248         * modules/nproc: Likewise.
18249         * modules/pagealign_alloc: Likewise.
18250         * modules/poll: Likewise.
18251         * modules/printf-frexp: Likewise.
18252         * modules/pthread: Likewise.
18253         * modules/putenv: Likewise.
18254         * modules/random_r: Likewise.
18255         * modules/relocatable-prog: Likewise.
18256         * modules/search: Likewise.
18257         * modules/select: Likewise.
18258         * modules/selinux-h: Likewise.
18259         * modules/settime: Likewise.
18260         * modules/signal: Likewise.
18261         * modules/size_max: Likewise.
18262         * modules/socklen: Likewise.
18263         * modules/ssize_t: Likewise.
18264         * modules/stdarg: Likewise.
18265         * modules/stdbool: Likewise.
18266         * modules/stddef: Likewise.
18267         * modules/stdint: Likewise.
18268         * modules/stdio: Likewise.
18269         * modules/stdlib: Likewise.
18270         * modules/string: Likewise.
18271         * modules/strings: Likewise.
18272         * modules/sys_file: Likewise.
18273         * modules/sys_ioctl: Likewise.
18274         * modules/sys_select: Likewise.
18275         * modules/sys_socket: Likewise.
18276         * modules/sys_stat: Likewise.
18277         * modules/sys_time: Likewise.
18278         * modules/sys_times: Likewise.
18279         * modules/sys_utsname: Likewise.
18280         * modules/sys_wait: Likewise.
18281         * modules/sysexits: Likewise.
18282         * modules/time: Likewise.
18283         * modules/times: Likewise.
18284         * modules/tmpfile: Likewise.
18285         * modules/trim: Likewise.
18286         * modules/unistd: Likewise.
18287         * modules/wchar: Likewise.
18288         * modules/wctype: Likewise.
18289
18290 2009-09-17  Bruno Haible  <bruno@clisp.org>
18291
18292         Make getdate.y compile on QNX and NetBSD 5 / i386.
18293         * m4/getdate.m4 (gl_GETDATE): Conditionally define
18294         TIME_T_FITS_IN_LONG_INT.
18295         * lib/getdate.y (long_time_t): New type.
18296         (relative_time): Change type of 'seconds' field to long_time_t.
18297         (get_date): Update types of local variables. Check against overflow
18298         during conversion from long_time_t to time_t.
18299         Reported by Matt Kraai <kraai@ftbfs.org>
18300         and Hasso Tepper <hasso@netbsd.org>.
18301
18302 2009-09-17  Bruno Haible  <bruno@clisp.org>
18303
18304         * modules/COPYING: Update copyright years.
18305         * modules/README: Likeiwse.
18306         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
18307         Reported by Ian Beckwith <ianb@erislabs.net>.
18308
18309 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
18310
18311         * users.txt: Update references for gnuit package.
18312
18313 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
18314
18315         * m4/getdelim.m4: Fix typo in copyright line.
18316
18317 2009-09-17  Bruno Haible  <bruno@clisp.org>
18318
18319         * lib/atoll.c: Use the standard header with GPL copyright.
18320         * lib/argz.in.h: Likewise.
18321         * lib/glob.c: Likewise.
18322         * lib/glob-libc.h: Likewise.
18323         * lib/random_r.c: Likewise.
18324         * lib/siglist.h: Likewise.
18325         * lib/strsignal.c: Likewise.
18326         Reported by Ian Beckwith <ianb@erislabs.net>.
18327
18328 2009-09-17  Eric Blake  <ebb9@byu.net>
18329
18330         rmdir: ensure correct dependency order
18331         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
18332
18333 2009-09-17  Bruno Haible  <bruno@clisp.org>
18334
18335         Disable assertion that fails on NetBSD 5 / i386.
18336         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
18337         Reported by Sam Steingold <sds@gnu.org>
18338         and Hasso Tepper <hasso@netbsd.org>.
18339
18340 2009-09-16  Eric Blake  <ebb9@byu.net>
18341
18342         unlinkdir: port to mingw
18343         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
18344         on which no one can unlink a directory.
18345
18346         stdlib: sort witness names
18347         * modules/stdlib (Makefile.am): Sort replacements.
18348         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
18349         * lib/stdlib.in.h: Likewise.
18350
18351         parse-duration-tests: avoid link failure
18352         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
18353         LIBINTL.
18354         Reported by Tom G. Christensen.
18355
18356         openat-tests: ensure unlinkat behaves like rmdir
18357         * tests/test-rmdir.c (main): Factor guts...
18358         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
18359         * modules/rmdir-tests (Files): Ship new file.
18360         * modules/openat-tests: New test.
18361         * tests/test-unlinkat.c: Likewise.
18362
18363         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
18364         * modules/rmdir-errno (Status, Notice): Now obsolete.
18365
18366         rmdir: work around cygwin 1.5.x and mingw bugs
18367         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
18368         * lib/rmdir.c (rmdir): Work around it.
18369         * modules/rmdir (Status, Notice): No longer obsolete.
18370         (Files): Add dos.m4.
18371         (Depends-on): Add unistd.
18372         (configure.ac): Set witnesses.
18373         (License): Relax to LGPLv2+.
18374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
18375         * modules/unistd (Makefile.am): Substitute witnesses.
18376         * lib/unistd.in.h (rmdir): Declare replacement.
18377         * doc/posix-functions/rmdir.texi (rmdir): Document this.
18378         * modules/rmdir-tests: New tests.
18379         * tests/test-rmdir.c: Likewise.
18380
18381 2009-09-15  Eric Blake  <ebb9@byu.net>
18382
18383         fchdir: improve use of replacement functions
18384         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
18385         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
18386         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
18387         REPLACE_CLOSEDIR.
18388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
18389         * modules/sys_stat (Makefile.am): Substitute correct witness.
18390         * modules/dirent (Makefile.am): Likewise.
18391         * modules/unistd (Makefile.am): Likewise.
18392         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
18393         * lib/unistd.in.h (dup): Likewise.
18394         * lib/sys_stat.in.h (fstat): Likewise.
18395
18396         maint: ignore gnulib-tool temp files
18397         * .gitignore: Ignore files created during gnulib-tool --test.
18398
18399 2009-09-13  Jim Meyering  <meyering@redhat.com>
18400
18401         posixtm: don't reject a time that specify "60" as the number of seconds
18402         * lib/posixtm.c (posixtime): The code to reject invalid dates
18403         would also reject a time specified with the .60 suffix.
18404         But POSIX allows that, in order to accommodate leap seconds.
18405         So don't reject it.
18406         (main): Adjust tests accordingly.
18407         * modules/posixtm (Depends-on): Add stpcpy.
18408
18409 2009-09-11  Jim Meyering  <meyering@redhat.com>
18410
18411         announce-gen: include [$release_type] in emitted Subject:
18412         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
18413         e.g., [stable] in the emitted Subject: line.
18414
18415 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18416
18417         Remove obsolete macros from several modules.
18418         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
18419         obsolete Autoconf macros with their modern counterparts.
18420         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
18421         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
18422         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
18423         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
18424         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
18425         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
18426         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
18427         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
18428         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
18429         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
18430         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
18431         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
18432         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
18433         * m4/sockets.m4 (gl_SOCKETS): Likewise.
18434         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
18435         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
18436         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
18437         * m4/time_r.m4 (gl_TIME_R): Likewise.
18438         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
18439         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
18440         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
18441
18442         Fix copyright header in build-aux scripts.
18443         * build-aux/git-version-gen: Fix copyright header to match GPLv3
18444         recommendation.
18445         * build-aux/ncftpput-ftp: Likewise.
18446         * build-aux/update-copyright: Likewise.
18447
18448 2009-09-09  Eric Blake  <ebb9@byu.net>
18449
18450         test-link: allow Linux choice of errno
18451         * tests/test-link.c (main): Relax test for alternate error.
18452
18453         strndup: fix improper m4 caching
18454         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
18455         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
18456         (gl_PREREQ_STRNDUP): Delete.
18457         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
18458         * modules/string (Makefile.am): Substitute it.
18459         * lib/string.in.h (strndup): Modernize prototype.
18460
18461         getcwd: port to mingw
18462         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
18463         different from the POSIX assumptions made throughout the getcwd
18464         module; fortunately, the mingw getcwd does not need replacement.
18465         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
18466         * modules/getcwd-tests: New test.
18467         * tests/test-getcwd.c: Likewise.
18468
18469         link: fix platform bugs
18470         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
18471         * lib/link.c (link): Work around them.  Fix related mingw bug.
18472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
18473         * modules/unistd (Makefile.am): Substitute it.
18474         * lib/unistd.in.h (link): Declare replacement.
18475         * doc/posix-functions/link.texi (link): Document this.
18476         * modules/link (Depends-on): Add strdup-posix, sys_stat.
18477
18478         test-link: consolidate into single C program, test more cases
18479         * tests/test-link.sh: Delete.
18480         * tests/test-link.c: Test more error conditions.  Exposes bugs on
18481         at least Cygwin and Solaris.
18482         * modules/link-tests (Files): Remove unused file.
18483         (Depends-on): Add errno, sys_stat.
18484         (Makefile.am): Simplify.
18485
18486 2009-09-08  Bruno Haible  <bruno@clisp.org>
18487
18488         Work around towlower, towupper bug on mingw.
18489         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
18490         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
18491         * doc/posix-functions/towlower.texi: Mention the mingw bug.
18492         * doc/posix-functions/towupper.texi: Likewise.
18493         Reported by Eric Blake.
18494
18495 2009-09-08  Jim Meyering  <meyering@redhat.com>
18496
18497         build: don't try to run autoheader if we don't use it
18498         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
18499         is not used in configure.ac.
18500
18501 2009-09-08  Eric Blake  <ebb9@byu.net>
18502
18503         euidaccess: fix compilation error
18504         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
18505
18506         rawmemchr: relax license
18507         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
18508         okay.
18509         Reported by Jim Meyering.
18510
18511         mkfifoat: new module
18512         * modules/mkfifoat: New file.
18513         * lib/mkfifoat.c: Likewise.
18514         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
18515         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
18516         * modules/sys_stat (Makefile.am): Use them.
18517         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
18518         * MODULES.html.sh (File system functions): Mention module.
18519         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
18520         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
18521         * modules/mkfifoat-tests: New test.
18522         * tests/test-mkfifoat.c: Likewise.
18523
18524         strchrnul: relax license
18525         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
18526         okay.
18527         Reported by Jim Meyering.
18528
18529 2009-09-08  Eric Blake  <ebb9@byu.net>
18530
18531         fstatat: fix compilation on Solaris
18532         * lib/fstatat.c (includes): Add fcntl.h.
18533         Reported by Pádraig Brady.
18534
18535 2009-09-07  Eric Blake  <ebb9@byu.net>
18536
18537         rename: modernize replacement
18538         * modules/rename (Depends-on): Add stdio.
18539         (configure.ac): Declare witness.
18540         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
18541         stdio take care of replacement.
18542         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
18543         * modules/stdio (Makefile.am): Substitute them.
18544         * lib/stdio.in.h (rename): Declare replacement.
18545         * lib/rename.c (includes): Allow cross-compilation to non-windows
18546         machines.
18547         * doc/posix-functions/rename.texi (rename): Improve
18548         documentation.
18549
18550         stdio: sort witness names
18551         * modules/stdio (Makefile.am): Sort replacements.
18552         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18553         * lib/stdio.in.h: Likewise.
18554
18555         getcwd: minor cleanups
18556         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
18557         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
18558
18559         openat: provide more convenience names
18560         * modules/faccessat (configure.ac): Add C witness.
18561         * lib/unistd.in.h (readlinkat): Fix typo.
18562         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
18563         convenience wrappers.
18564         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
18565         wrappers in syntax checks.
18566
18567 2009-09-06  Eric Blake  <ebb9@byu.net>
18568
18569         doc: fix comments in recent patches
18570         * lib/faccessat.c: Mention correct function.
18571         * lib/fchmodat.c: Likewise.
18572         * lib/fchownat.c: Likewise.
18573         * lib/symlinkat.c: Likewise.
18574         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
18575         constants.
18576
18577         faccessat, symlinkat: continue cleanup of previous patch
18578         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
18579         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
18580         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
18581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
18582         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
18583         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
18584         set.
18585
18586 2009-09-06  Bruno Haible  <bruno@clisp.org>
18587
18588         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
18589         (fstatat): Declare if GNULIB_FSTATAT is set.
18590         (mkdirat): Declare if GNULIB_MKDIRAT is set.
18591         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
18592         (unlinkat): Declare if GNULIB_UNLINKAT is set.
18593         * modules/fcntl-h (Files): Remove m4/openat.m4.
18594         * modules/sys_stat (Files): Remove m4/openat.m4.
18595         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
18596         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
18597         * modules/unistd (Files): Remove m4/openat.m4.
18598         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
18599         GNULIB_OPENAT.
18600         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
18601         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
18602         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
18603         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
18604         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
18605         gl_OPENAT_DEFAULTS.
18606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
18607         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
18608         Don't require gl_OPENAT_DEFAULTS.
18609         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
18610         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
18611         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
18612         (gl_OPENAT_DEFAULTS): Remove macro.
18613
18614 2009-09-06  Bruno Haible  <bruno@clisp.org>
18615
18616         * modules/openat (configure.ac): Remove unneeded witness.
18617
18618 2009-09-06  Bruno Haible  <bruno@clisp.org>
18619
18620         Set errno to ENOSYS when a function is entirely unsupported.
18621         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
18622         EOPNOTSUPP.
18623         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
18624         * modules/chown (Depends-on): Remove errno.
18625
18626 2009-09-06  Bruno Haible  <bruno@clisp.org>
18627
18628         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
18629
18630 2009-09-06  Bruno Haible  <bruno@clisp.org>
18631
18632         * lib/sys_stat.in.h: Fix preprocessor command indentation.
18633
18634 2009-09-06  Ben Pfaff  <blp@gnu.org>
18635             Bruno Haible  <bruno@clisp.org>
18636
18637         Work around a glibc bug in strtok_r.
18638         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
18639         Undefine if UNDEFINE_STRTOK_R is set.
18640         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
18641         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18642         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
18643         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
18644         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
18645         UNDEFINE_STRTOK_R.
18646         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
18647
18648 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
18649
18650         exclude: minor fix
18651         * lib/exclude.c: Include wctype.h
18652
18653 2009-09-06  Akim Demaille  <demaille@gostai.com>
18654
18655         bootstrap: improve error message
18656         * build-aux/bootstrap (find_tool): Upon failure, report the list
18657         of candidates.
18658         Honor the initial value of the envvar.
18659
18660 2009-09-05  Eric Blake  <ebb9@byu.net>
18661
18662         symlinkat: new module
18663         * modules/symlinkat: New file.
18664         * lib/symlinkat.c: Likewise.
18665         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
18666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
18667         * modules/unistd (Makefile.am): Use them.
18668         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
18669         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
18670         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
18671         * MODULES.html.sh (File system functions): Mention module.
18672         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
18673         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
18674         * modules/symlinkat-tests: New test.
18675         * tests/test-symlinkat.c: Likewise.
18676
18677         test-openat-safer: add more checks
18678         * tests/test-openat-safer.c (main): Check more code paths.
18679
18680 2009-09-05  Jim Meyering  <meyering@redhat.com>
18681
18682         syntax-check: detect unnecessary inclusion of openat.h
18683         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
18684
18685 2009-09-05  Bruno Haible  <bruno@clisp.org>
18686
18687         Support towlower, towupper.
18688         * doc/posix-functions/towlower.texi: Mention module wctype.
18689         * doc/posix-functions/towupper.texi: Likewise.
18690         * lib/wctype.in.h (towlower, towupper): New functions.
18691         * tests/test-wctype.c: Include stdio.h, stdlib.h.
18692         (ASSERT): New macro.
18693         (e): New variable.
18694         (main): Test also towlower, towupper. Test WEOF argument.
18695         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
18696
18697 2009-09-05  Bruno Haible  <bruno@clisp.org>
18698
18699         Fix conversion behaviour when the input is invalid.
18700         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
18701         mark occurring in first pass of indirect conversion.
18702         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
18703         input.
18704         Found by clang's static analyzer.
18705
18706 2009-09-05  Bruno Haible  <bruno@clisp.org>
18707
18708         * tests/test-striconveh.c (main): Test indirect conversion on platforms
18709         where direct conversion is possible.
18710
18711 2009-09-04  Eric Blake  <ebb9@byu.net>
18712
18713         openat: fail with ENOENT on empty name
18714         * lib/openat-proc.c (openat_proc_name): Special-case the empty
18715         buffer.
18716
18717         link-follow: fix logic bug in prior patch
18718         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
18719         reversed sense of yes and no in prior patch.  Avoid confusing
18720         compilation failure with desired semantics.
18721
18722         link-follow: accomodate mingw and cross-compilation
18723         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
18724         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
18725         cross-compilation results to -1, to make linkat easier to
18726         implement when cross-compiling.  Trivially support mingw.
18727         * modules/link-follow (configure.ac): Call new name.
18728         * NEWS: Mention this.
18729
18730 2009-09-03  Eric Blake  <ebb9@byu.net>
18731
18732         faccessat: compile replacement
18733         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
18734         needed.
18735
18736         fts: fix compilation error
18737         * lib/fts.c (includes): Re-add "openat.h", for
18738         openat_needs_fchdir.
18739
18740         faccessat: new module
18741         * modules/faccessat: New file.
18742         * lib/faccessat.c: Likewise.
18743         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
18744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18745         * modules/unistd (Makefile.am): Use it.
18746         * lib/unistd.in.h (faccessat): Declare it.
18747         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
18748         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
18749         * MODULES.html.sh (File system functions): Mention it.
18750         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
18751         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
18752
18753         euidaccess: prefer POSIX over non-standard implementation
18754         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
18755         * lib/euidaccess.c (euidaccess): Use it if available.
18756
18757         openat: make template easier to use
18758         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
18759         AT_FUNC_F2 to be undefined.
18760         (VALIDATE_FLAG): New macro; use it to reject bad flags.
18761         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
18762         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
18763         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
18764         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
18765         Likewise.
18766         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
18767         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
18768         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
18769         Likewise.
18770
18771         openat: declare in POSIX headers
18772         * NEWS: Mention this.
18773         * modules/openat (configure.ac): Declare witnesses.
18774         (Depends-on): Add fcntl-h, sys_stat, unistd.
18775         (Include): Mention correct headers.
18776         * modules/fcntl-h (Depends-on): Add link-warning.
18777         (Files): Add openat.m4.
18778         (Makefile.am): Substitute witnesses.
18779         * modules/sys_stat (Files, Makefile.am): Likewise.
18780         * modules/unistd (Files, Makefile.am): Likewise.
18781         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
18782         (gl_OPENAT_DEFAULTS): New macro.
18783         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
18784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
18785         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
18786         (SYS_STAT_H): Remove unused variable.
18787         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
18788         * lib/fcntl--.h (includes): Remove unneeded header.
18789         * lib/openat-safer.c (includes): Likewise.
18790         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
18791         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
18792         appropriate headers.
18793         (__OPENAT_PREFIX): Delete.
18794         * lib/fcntl.in.h (openat): Provide declaration.
18795         (AT_FDCWD): Fix Solaris bug.
18796         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
18797         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
18798         * lib/fchmodat.c (includes):  Adjust to find declaration.
18799         * lib/fchownat.c (includes): Likewise.
18800         * lib/mkdirat.c (includes): Likewise.
18801         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
18802         still visible.
18803
18804 2009-09-02  Eric Blake  <ebb9@byu.net>
18805
18806         errno: use consistently
18807         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
18808         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
18809         * lib/canonicalize.c (ELOOP): Likewise.
18810         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
18811         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
18812         * lib/lchown.c (EOPNOTSUPP): Likewise.
18813         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
18814         * lib/savewd.c (ESTALE): Likewise.
18815         * lib/settime.c (ENOSYS): Likewise.
18816         * lib/utimens.c (ENOSYS): Likewise.
18817         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
18818         * lib/chdir-safer.c (ELOOP): Likewise.
18819         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
18820         * modules/c-stack (Depends-on): Add errno.
18821         * modules/canonicalize (Depends-on): Likewise.
18822         * modules/chdir-safer (Depends-on): Likewise.
18823         * modules/fdopendir (Depends-on): Likewise.
18824         * modules/inet_ntop (Depends-on): Likewise.
18825         * modules/inet_pton (Depends-on): Likewise.
18826         * modules/lchown (Depends-on): Likewise.
18827         * modules/openat (Depends-on): Likewise.
18828         * modules/savewd (Depends-on): Likewise.
18829         * modules/settime (Depends-on): Likewise.
18830         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
18831
18832         fts: avoid leaking fds
18833         * modules/fts (Depends-on): Add cloexec.
18834         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
18835         flag.
18836
18837         fts: make directory fds more robust
18838         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
18839         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
18840
18841         backupfile, chdir-long, fts, savedir: make safer
18842         * lib/backupfile.c (includes): Use "dirent--.h", since
18843         numbered_backup can write to stderr during readdir.
18844         * lib/savedir.c (includes): Likewise.
18845         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
18846         emulation can write to stderr on failure.
18847         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
18848         * lib/getcwd.c: Document why opendir_safer is unused.
18849         * lib/glob.c: Likewise.
18850         * lib/scandir.c: Likewise.
18851         * lib/openat-proc.c: Likewise, for open_safer.
18852         * modules/backupfile (Depends-on): Add dirent-safer.
18853         * modules/savedir (Depends-on): Likewise.
18854         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
18855         * modules/chdir-long (Depends-on): Add openat-safer.
18856
18857         openat-safer: new module
18858         * modules/openat-safer: New file.
18859         * lib/openat-safer.c: Likewise.
18860         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
18861         * lib/fcntl-safer.h (openat_safer): Declare.
18862         * lib/fcntl--.h (openat): Override.
18863         * MODULES.html.sh (File descriptor based I/O): Mention it.
18864         * lib/openat.h: Add double-inclusion guards.
18865         * lib/openat.c (includes): Only include "fcntl-safer.h", not
18866         "fcntl--.h", so we can implement openat.
18867         * modules/openat-safer-tests: New test.
18868         * tests/test-openat-safer.c: New file.
18869
18870         dirent-safer: new module
18871         * modules/dirent-safer: New file.
18872         * lib/dirent--.h: Likewise.
18873         * lib/dirent-safer.h: Likewise.
18874         * lib/opendir-safer.c: Likewise.
18875         * m4/dirent-safer.m4: Likewise.
18876         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
18877         * modules/dirent-safer-tests: New test.
18878         * tests/test-dirent-safer.c: New file.
18879         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
18880
18881         fdopendir: optimize on mingw
18882         * lib/unistd.in.h (_gl_directory_name): New prototype.
18883         * lib/fchdir.c (_gl_directory_name): Implement it.
18884         (fchdir): Use it to simplify implementation.
18885         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
18886         fchdir, when available, to avoid calling [f]chdir().
18887
18888         fdopendir: split into its own module
18889         * lib/openat.c (fdopendir): Move...
18890         * lib/fdopendir.c: ...into new file.
18891         * modules/fdopendir: New module.
18892         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
18893         * modules/openat (Depends-on): Add fdopendir.
18894         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
18895         fdopendir here.
18896         * modules/savedir (Depends-on): Only need fdopendir, not full
18897         openat.
18898         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
18899         * lib/openat.h (fdopendir): Drop prototype.
18900         * lib/dirent.in.h (fdopendir): Provide prototype.
18901         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
18902         * modules/dirent (Makefile.am): Substitute them.
18903         * MODULES.html.sh (File system functions): Mention it.
18904         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
18905         * modules/fdopendir-tests: New file.
18906         * tests/test-fdopendir.c: Likewise.
18907
18908         fchdir: use more consistent macro convention
18909         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
18910         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
18911         REPLACE_FCHDIR, rather than relying on config.h macros.
18912         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
18913         inside a single make-time REPLACE_FCHDIR block, rather than using
18914         the config.h FCHDIR_REPLACEMENT.
18915         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
18916         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
18917         Manage fstat replacement.
18918         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
18919         REPLACE_FCHDIR.
18920         * modules/sys_stat (Files): Add m4/unistd_h.m4.
18921         (Makefile.am): Substitute REPLACE_FCHDIR.
18922         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
18923         FCHDIR_REPLACEMENT.
18924         * lib/dup-safer.c (dup_safer): Likewise.
18925         * lib/dup2.c (rpl_dup2): Likewise.
18926         * lib/dup3.c (rpl_dup3): Likewise.
18927         * lib/open.c (rpl_open): Likewise.
18928
18929         fchdir: simplify error handling, and support dup3
18930         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
18931         stdbool, malloc-posix, realloc-posix.
18932         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
18933         (ensure_dirs_slot): Return false on allocation failure.
18934         (rpl_dup2): Delete.
18935         (_gl_register_dup): New function.
18936         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
18937         (_gl_register_fd): Close fd on allocation failure.
18938         * lib/fcntl.in.h (_gl_register_fd): Update signature.
18939         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
18940         prototype.
18941         (rpl_dup2_fchdir): Delete prototype.
18942         * lib/open.c (open): Update caller.
18943         * lib/dup2.c (dup2): Track fchdir metadata.
18944         * lib/dup3.c (dup3): Likewise.
18945         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
18946         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
18947
18948 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18949
18950         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
18951         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
18952         don't pass arguments to AC_OUTPUT.
18953
18954 2009-09-02  Bruno Haible  <bruno@clisp.org>
18955
18956         * modules/mkdtemp (License): Relicense under LGPLv2+.
18957         Reported by Paolo Bonzini.
18958
18959 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18960
18961         Replace uses of obsolete autoconf macros in Jim's modules.
18962         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
18963         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
18964         can evoke a warning from autoconf when run with -Wobsolete
18965         enabled.  They were declared obsolete for good reasons (see
18966         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
18967         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
18968         should not continue using the deprecated macros.
18969         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
18970         obsolete Autoconf macros with modern counterparts.
18971         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
18972         * m4/dos.m4 (gl_AC_DOS): Likewise.
18973         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
18974         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
18975         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
18976         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
18977         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
18978         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
18979         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
18980         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
18981         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
18982         Likewise.
18983         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
18984         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
18985         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
18986         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
18987         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
18988         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
18989
18990 2009-09-01  Eric Blake  <ebb9@byu.net>
18991
18992         fchdir: fix off-by-one bug in previous patch
18993         * lib/fchdir.c (rpl_fstat): Use correct bounds.
18994         (_gl_unregister_fd): Delete useless if.
18995
18996 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
18997
18998         maint.mk: sort the list of syntax-check rules
18999         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
19000         easier to get a sense of progress when the rules are run sequentially
19001         and take a long time.
19002
19003 2009-09-01  Simon Josefsson  <simon@josefsson.org>
19004
19005         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
19006         * modules/netinet_in: Likewise.
19007         * modules/sys_file: Likewise.
19008         * modules/sys_ioctl: Likewise.
19009         * modules/sys_select: Likewise.
19010         * modules/sys_socket: Likewise.
19011         * modules/sys_stat: Likewise.
19012         * modules/sys_time: Likewise.
19013         * modules/sys_times: Likewise.
19014         * modules/sys_utsname: Likewise.
19015         * modules/sys_wait: Likewise.
19016
19017 2009-09-01  Jim Meyering  <meyering@redhat.com>
19018
19019         fts: help ensure that return values are not ignored
19020         * lib/fts_.h (__GNUC_PREREQ): Define.
19021         (__attribute_warn_unused_result__): Define.
19022         (fts_children, fts_close, fts_open, fts_read): Declare with
19023         __attribute_warn_unused_result__.
19024
19025         fts: fts_close now fails also when closing a dir file descriptor fails
19026         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
19027         and propagate to caller, along with errno.
19028
19029         announce-gen: correct formatting in --help output
19030         * build-aux/announce-gen (usage): Move the one-line description in
19031         --help output "up", to where it belongs, just after Usage:.
19032
19033 2009-08-31  Eric Blake  <ebb9@byu.net>
19034
19035         fchdir: port to mingw
19036         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
19037         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
19038         opened, then use a substitute.
19039         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
19040         replacement.
19041         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
19042         (_gl_register_fd): No need to check stat if open already filters
19043         all directories.
19044         (fchdir): Fix error condition to match POSIX.
19045         * modules/fchdir (Depends-on): Add sys_stat.
19046         * doc/posix-functions/open.texi (open): Document the limitation.
19047         * modules/fchdir-tests: New file.
19048         * tests/test-fchdir.c: Likewise.
19049
19050         canonicalize: allow cross-testing from cygwin to mingw
19051         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
19052         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
19053         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
19054         Likewise.
19055         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
19056         target does not support symlinks.
19057         * tests/test-canonicalize-lgpl.sh: Likewise.
19058
19059         chown: avoid compilation warning on mingw
19060         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
19061         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
19062         mingw.
19063         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
19064         * modules/chown (Depends-on): Add errno.
19065
19066 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
19067
19068         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
19069         command.
19070
19071 2009-08-31  Jim Meyering  <meyering@redhat.com>
19072
19073         canonicalize: remove useless initialization
19074         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
19075         initialization of local, "end".
19076
19077 2009-08-30  Bruno Haible  <bruno@clisp.org>
19078
19079         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
19080         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
19081         ENOSYS.
19082
19083 2009-08-30  Bruno Haible  <bruno@clisp.org>
19084
19085         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
19086         /usr/xpg4/bin/tr when it exists.
19087         * tests/test-pipe-filter-gi1.sh: Likewise.
19088
19089 2009-08-30  Bruno Haible  <bruno@clisp.org>
19090
19091         Work around deficient /usr/bin/id program on Solaris.
19092         * tests/test-file-has-acl.sh (ID): New variable.
19093         * tests/test-set-mode-acl.sh (ID): Likewise.
19094         * tests/test-copy-acl.sh (ID): Likewise.
19095         * tests/test-copy-file.sh (ID): Likewise.
19096
19097 2009-08-30  Bruno Haible  <bruno@clisp.org>
19098
19099         New module 'xstriconveh'.
19100         * lib/xstriconveh.h: New file.
19101         * lib/xstriconveh.c: New file.
19102         * modules/xstriconveh: New file.
19103
19104 2009-08-30  Bruno Haible  <bruno@clisp.org>
19105
19106         Make it easier to use mem_cd_iconveh.
19107         * lib/striconveh.h (iconveh_t): New type.
19108         (iconveh_open, iconveh_close): New declarations.
19109         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
19110         with a single 'const iconveh_t *' argument.
19111         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
19112         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
19113         with a single 'const iconveh_t *' argument.
19114         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
19115         * tests/test-striconveh.c (main): Update.
19116         * NEWS: Mention the change.
19117
19118 2009-08-30  Bruno Haible  <bruno@clisp.org>
19119
19120         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
19121         problem.
19122
19123 2009-08-30  Bruno Haible  <bruno@clisp.org>
19124
19125         Work around iconv_open problem on Solaris.
19126         * lib/iconv_open-solaris.gperf: New file.
19127         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
19128         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
19129         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
19130         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
19131         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
19132         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
19133
19134 2009-08-29  Jim Meyering  <meyering@redhat.com>
19135
19136         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
19137         * top/maint.mk (cvs-check): Remove target; it was just an alias
19138         to the better-named vc-diff-check.
19139         (maintainer-distcheck): Remove rule.  It was used only from
19140         the (alpha/beta/major) target, and all of its commands but one
19141         were coreutils-specific.
19142         (vc-dist): Remove rule.
19143         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
19144         Run vc-diff-check, not vc-dist.
19145         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
19146
19147 2009-08-27  Bruno Haible  <bruno@clisp.org>
19148
19149         * tests/test-bitrotate.c (main): Remove test that uses a shift count
19150         of 0.
19151
19152 2009-08-27  Bruno Haible  <bruno@clisp.org>
19153
19154         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
19155         compilers.
19156         * doc/func.texi: Document the SunPRO C bug.
19157
19158 2009-08-27  Bruno Haible  <bruno@clisp.org>
19159
19160         Fix link error on Solaris.
19161         * tests/test-parse-duration.c (xstrdup): Remove function.
19162
19163 2009-08-26  Pádraig Brady  <P@draigbrady.com>
19164
19165         ignore-value: handle pointer types, too
19166         * lib/ignore-value.h (__attribute__): Remove definition.
19167         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
19168         of a more concise and more-often effective "(void) i" statement.
19169         (ignore_ptr): New function to suppress warnings from functions that
19170         return pointers, and to make it explicit that one function doesn't
19171         handle all cases.
19172
19173 2009-08-25  Bruno Haible  <bruno@clisp.org>
19174
19175         dup2: work around a Linux bug.
19176         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
19177         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
19178         * doc/posix-functions/dup2.texi: Mention the Linux bug.
19179         Reported by Simon Josefsson.
19180
19181 2009-08-25  Jim Meyering  <meyering@redhat.com>
19182
19183         libguestfs uses gnulib
19184         * users.txt: Add libguestfs.
19185
19186 2009-08-24  Eric Blake  <ebb9@byu.net>
19187
19188         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
19189         * lib/pipe2.c (includes): Add binary-io.h.
19190         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
19191
19192 2009-08-24  Bruno Haible  <bruno@clisp.org>
19193
19194         Tolerate declared but missing accept4 syscall.
19195         * lib/accept4.c (accept4): Invoke original accept4 function first, if
19196         available.
19197         * lib/sys_socket.in.h (accept4): If the function is already present,
19198         override it.
19199         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
19200         * modules/accept4 (Makefile.am): Compile accept4.c always.
19201         Reported by Paolo Bonzini and Eric Blake.
19202
19203 2009-08-23  Bruno Haible  <bruno@clisp.org>
19204
19205         New module 'accept4'.
19206         * lib/sys_socket.in.h (accept4): New declaration.
19207         * lib/accept4.c: New file.
19208         * m4/accept4.m4: New file.
19209         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
19210         GNULIB_ACCEPT4, HAVE_ACCEPT4.
19211         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
19212         HAVE_ACCEPT4.
19213         * modules/accept4: New file.
19214         * doc/glibc-functions/accept4.texi: Mention the new module.
19215
19216 2009-08-24  Jim Meyering  <meyering@redhat.com>
19217
19218         progname: also set global program_invocation_name, when possible
19219         Before this change, a libtool-enabled program that calls glibc's
19220         error function would report the program name as
19221         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
19222         * modules/progname (configure.ac): Check for a declaration of
19223         program_invocation_name.
19224         * lib/progname.c:  Include <errno.h>.
19225         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
19226         Set program_invocation_name.
19227
19228 2009-08-23  Bruno Haible  <bruno@clisp.org>
19229
19230         * lib/dup3.c: Include <string.h>.
19231
19232 2009-08-23  Bruno Haible  <bruno@clisp.org>
19233
19234         * lib/dup3.c (dup3): Test only once whether the system actually exists.
19235         * lib/pipe2.c (pipe2): Likewise.
19236         Suggested by Eric Blake.
19237
19238 2009-08-23  Bruno Haible  <bruno@clisp.org>
19239
19240         Tolerate declared but missing dup3 syscall.
19241         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
19242         * lib/unistd.in.h (dup3): If the function is already present,
19243         override it.
19244         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
19245         * modules/dup3 (Makefile.am): Compile dup3.c always.
19246         Reported by Paolo Bonzini.
19247
19248 2009-08-23  Bruno Haible  <bruno@clisp.org>
19249
19250         Tolerate declared but missing pipe2 syscall.
19251         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
19252         available.
19253         * lib/unistd.in.h (pipe2): If the function is already present,
19254         override it.
19255         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
19256         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
19257         Reported by Paolo Bonzini.
19258
19259 2009-08-23  Bruno Haible  <bruno@clisp.org>
19260
19261         * lib/pipe2.c (pipe2): Move #ifs inside function.
19262
19263 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19264
19265         quotearg: document limitations of quote_these_too
19266         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
19267         those limitations are created.
19268         * lib/quotearg.h (set_char_quoting): Document that digits and
19269         letters that are special after backslash are not permitted.
19270         (quotearg_char): Cross-reference set_char_quoting documentation.
19271
19272 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
19273
19274         quotearg: implement custom_quoting_style
19275         * lib/quotearg.c: (struct quoting_options): Add left_quote and
19276         right_quote fields.
19277         (set_custom_quoting): New public function.
19278         (quotearg_buffer_restyled): Add left_quote and right_quote
19279         arguments, handle them very much like locale quoting, and update
19280         all uses.
19281         (quotearg_n_custom): New public function.
19282         (quotearg_n_custom_mem): New public function.
19283         (quotearg_custom): New public function.
19284         (quotearg_custom_mem): New public function.
19285         * lib/quotearg.h: Prototype and document new public functions.
19286         (enum quoting_style): For escape_quoting_style and
19287         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
19288         ignored even though they're otherwise like c_quoting_style.
19289         Add custom_quoting_style member and document with comparison to
19290         clocale_quoting_style.
19291         * tests/test-quotearg.c (custom_quotes): New array.
19292         (custom_results): New array.
19293         (main): Extend to test custom quoting.
19294
19295 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19296
19297         quotearg: fix right quote escaping when it's in quote_these_too
19298         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
19299         quote, be sure to prepend only one backslash.
19300         * tests/test-quotearg.c (use_quote_double_quotes): New function.
19301         (main): Test it.
19302
19303 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
19304
19305         quotearg-tests: test escaping of embedded locale quotes
19306         * tests/test-quotearg.c (struct result_strings): Add member for
19307         new input.
19308         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
19309         (inputs): Add new input.
19310         (results_g): Add expected results.
19311         (flag_results): Likewise.
19312         (locale_results): Likewise.
19313         (compare_strings): Check those.
19314
19315 2009-08-23  Bruno Haible  <bruno@clisp.org>
19316
19317         Tests for module 'dup3'.
19318         * modules/dup3-tests: New file.
19319         * tests/test-dup3.c: New file.
19320
19321         New module 'dup3'.
19322         * lib/unistd.in.h (dup3): New declaration.
19323         * lib/dup3.c: New file.
19324         * m4/dup3.m4: New file.
19325         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
19326         HAVE_DUP3.
19327         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
19328         * modules/dup3: New file.
19329         * doc/glibc-functions/dup3.texi: Mention the new module.
19330
19331 2009-08-23  Bruno Haible  <bruno@clisp.org>
19332
19333         Tweak the dup2 test.
19334         * tests/test-dup2.c (main): Create the test file empty. Verify that an
19335         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
19336         the test file is still empty. Fix argument order of lseek.
19337
19338 2009-08-23  Bruno Haible  <bruno@clisp.org>
19339
19340         Avoid test link errors when the modules getopt-gnu, gettext are used.
19341         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
19342         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19343
19344 2009-08-23  Bruno Haible  <bruno@clisp.org>
19345
19346         Fix getdtablesize() on mingw.
19347         * lib/getdtablesize.c (getdtablesize): Implement differently.
19348         * lib/unistd.in.h (getdtablesize): Improve comment.
19349
19350 2009-08-23  Bruno Haible  <bruno@clisp.org>
19351
19352         New module 'mkostemp'.
19353         Based on Ulrich Drepper's 2007-08-10 change in glibc.
19354         * lib/stdlib.in.h (mksotemp): New declaration.
19355         * lib/mkostemp.c: New file, from glibc with modifications.
19356         * lib/tempname.h (GT_FILE): Remove outdated comment.
19357         (gen_tempname): Add flags argument.
19358         * lib/tempname.c (__GT_BIGFILE): Remove macro.
19359         (__GT_FILE): Map to 1.
19360         (small_open, large_open): Remove macros.
19361         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
19362         * lib/mkstemp.c (mkstemp): Update.
19363         * lib/mkdtemp.c (mkdtemp): Likewise.
19364         * m4/mkostemp.m4: New file.
19365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
19366         HAVE_MKOSTEMP.
19367         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
19368         HAVE_MKOSTEMP.
19369         * modules/mkostemp: New file, based on modules/mkstemp.
19370         * doc/glibc-functions/mkostemp.texi: Mention the new module.
19371         * NEWS: Mention the change.
19372
19373 2009-08-23  Bruno Haible  <bruno@clisp.org>
19374
19375         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
19376         Reported by Eric Blake.
19377
19378 2009-08-23  Bruno Haible  <bruno@clisp.org>
19379
19380         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
19381         Reported by Eric Blake.
19382
19383 2009-08-23  Bruno Haible  <bruno@clisp.org>
19384
19385         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
19386         * modules/pipe2 (Depends-on): Likewise.
19387
19388 2009-08-23  Eric Blake  <ebb9@byu.net>
19389
19390         fcntl-h: add O_TTY_INIT support
19391         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
19392         * tests/test-fcntl-h.c (o): Test it.
19393         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19394
19395         fcntl-h: rename from fcntl, in preparation for fcntl(2)
19396         * modules/fcntl: Move <fcntl.h> header replacement...
19397         * modules/fcntl-h: ...to new name, so as not to collide with
19398         like-named function.
19399         * tests/test-fcntl.c: Rename...
19400         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
19401         * modules/fcntl-tests: Rename...
19402         * modules/fcntl-h-tests: ...to this.  Update test file name.
19403         * modules/chdir-long (Depends-on): Update clients.
19404         * modules/chdir-safer (Depends-on): Likewise.
19405         * modules/fcntl-safer (Depends-on): Likewise.
19406         * modules/fts (Depends-on): Likewise.
19407         * modules/mkancesdirs (Depends-on): Likewise.
19408         * modules/mkdir-p (Depends-on): Likewise.
19409         * modules/open (Depends-on): Likewise.
19410         * modules/savewd (Depends-on): Likewise.
19411         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
19412         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
19413
19414 2009-08-22  Bruno Haible  <bruno@clisp.org>
19415
19416         * modules/binary-io (License): Relicense under LGPL.
19417         * modules/pipe2 (License): Likewise.
19418
19419 2009-08-22  Bruno Haible  <bruno@clisp.org>
19420
19421         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
19422         return value.
19423         * lib/pipe-filter-gi.c (filter_init): Likewise.
19424         Reported by Eric Blake.
19425
19426 2009-08-22  Bruno Haible  <bruno@clisp.org>
19427
19428         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
19429         * modules/pipe (Depends-on): Add pipe2.
19430
19431 2009-08-22  Bruno Haible  <bruno@clisp.org>
19432
19433         Tests for module 'pipe2'.
19434         * modules/pipe2-tests: New file.
19435         * tests/test-pipe2.c: New file.
19436
19437         New module 'pipe2'.
19438         * lib/unistd.in.h (pipe2): New declaration.
19439         * lib/pipe2.c: New file.
19440         * m4/pipe2.m4: New file.
19441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
19442         HAVE_PIPE2.
19443         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
19444         * modules/pipe2: New file.
19445         * doc/glibc-functions/pipe2.texi: Mention the new module.
19446
19447 2009-08-22  Bruno Haible  <bruno@clisp.org>
19448
19449         Reference some new glibc functions.
19450         * doc/glibc-functions/accept4.texi: New file.
19451         * doc/glibc-functions/dup3.texi: New file.
19452         * doc/glibc-functions/mkostemp.texi: New file.
19453         * doc/glibc-functions/pipe2.texi: New file.
19454         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
19455         (Glibc sys/socket.h): Refer to accept4.
19456         (Glibc unistd.h): Refer to dup3, pipe2.
19457         Reported by Eric Blake.
19458
19459 2009-08-22  Jim Meyering  <meyering@redhat.com>
19460             Bruno Haible  <bruno@clisp.org>
19461
19462         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
19463         This makes it so packages using automake-1.11's silent-rules option
19464         can print e.g., a single "GEN    configmake.h" line, rather than
19465         the 30+ statements that perform the job.  If you want to see the
19466         actual commands, you can still run "make V=1".
19467         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
19468         so that make output is abbreviated when those variables are defined
19469         appropriately.
19470         * modules/argz: Likewise.
19471         * modules/arpa_inet: Likewise.
19472         * modules/byteswap: Likewise.
19473         * modules/configmake: Likewise.
19474         * modules/dirent: Likewise.
19475         * modules/errno: Likewise.
19476         * modules/fcntl: Likewise.
19477         * modules/float: Likewise.
19478         * modules/fnmatch: Likewise.
19479         * modules/getopt-posix: Likewise.
19480         * modules/glob: Likewise.
19481         * modules/iconv_open: Likewise.
19482         * modules/inttypes: Likewise.
19483         * modules/localcharset: Likewise.
19484         * modules/locale: Likewise.
19485         * modules/math: Likewise.
19486         * modules/netdb: Likewise.
19487         * modules/netinet_in: Likewise.
19488         * modules/poll: Likewise.
19489         * modules/posix_spawnp-tests: Likewise.
19490         * modules/sched: Likewise.
19491         * modules/search: Likewise.
19492         * modules/selinux-h: Likewise.
19493         * modules/signal: Likewise.
19494         * modules/spawn: Likewise.
19495         * modules/stdarg: Likewise.
19496         * modules/stdbool: Likewise.
19497         * modules/stddef: Likewise.
19498         * modules/stdint: Likewise.
19499         * modules/stdio: Likewise.
19500         * modules/stdlib: Likewise.
19501         * modules/string: Likewise.
19502         * modules/strings: Likewise.
19503         * modules/sys_file: Likewise.
19504         * modules/sys_ioctl: Likewise.
19505         * modules/sys_select: Likewise.
19506         * modules/sys_socket: Likewise.
19507         * modules/sys_stat: Likewise.
19508         * modules/sys_time: Likewise.
19509         * modules/sys_times: Likewise.
19510         * modules/sys_utsname: Likewise.
19511         * modules/sys_wait: Likewise.
19512         * modules/sysexits: Likewise.
19513         * modules/time: Likewise.
19514         * modules/unistd: Likewise.
19515         * modules/wchar: Likewise.
19516         * modules/wctype: Likewise.
19517
19518 2009-08-22  Jim Meyering  <meyering@redhat.com>
19519
19520         announce-gen: detect write failure
19521         * build-aux/announce-gen: Add Coda at end.
19522         Remove equivalent-but-more-verbose block at top.
19523
19524 2009-08-19  Akim Demaille  <demaille@gostai.com>
19525
19526         bootstrap: --help to stdout.
19527         * bootstrap (usage): Don't send --help to stderr.
19528         Use a here doc instead of a long string.
19529
19530 2009-08-21  Eric Blake  <ebb9@byu.net>
19531
19532         test-popen-safer: split from test-popen
19533         * tests/test-popen.c (main): Move...
19534         * tests/test-popen.h: ...into new file.
19535         * tests/test-popen-safer2.c: New file.
19536         * modules/popen-tests (Files): Add test-popen.h.
19537         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
19538         Suggested by Bruno Haible.
19539
19540         test-fcntl-safer: split from test-open
19541         * tests/test-open.c (main): Move...
19542         * tests/test-open.h: ...into new file.
19543         * tests/test-fcntl-safer.c: New file.
19544         * modules/open-tests (Files): Add test-open.h.
19545         * modules/fcntl-safer-tests: New file.
19546         Suggested by Bruno Haible.
19547
19548         test-fopen-safer: split from test-fopen
19549         * tests/test-fopen.c (main): Move...
19550         * tests/test-fopen.h: ...into new file.
19551         * tests/test-fopen-safer.c: New file.
19552         * modules/fopen-tests (Files): Add test-fopen.h.
19553         * modules/fopen-safer-tests: New file.
19554         Suggested by Bruno Haible.
19555
19556 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
19557
19558         popen-safer: test O_CLOEXEC at run-time.
19559         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
19560
19561 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
19562
19563         fcntl: move more flags to the header
19564         * lib/cloexec.c: Do not define FD_CLOEXEC here.
19565         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
19566         * lib/fcntl.in.h: Do both things here.
19567
19568 2009-08-21  Jim Meyering  <meyering@redhat.com>
19569
19570         consistently remove $@-t before redirecting to it
19571         * modules/argz: Remove $@-t and $@ before redirecting to the former.
19572         * modules/alloca-opt: Likewise.
19573         * modules/byteswap: Likewise.
19574         * modules/fnmatch: Likewise.
19575         * modules/getopt-posix: Likewise.
19576         * modules/glob: Likewise.
19577         * modules/poll: Likewise.
19578         * modules/posix_spawnp-tests: Likewise.
19579         * modules/sys_socket: Likewise.
19580         * modules/sysexits: Likewise.
19581
19582 2009-08-21  Eric Blake  <ebb9@byu.net>
19583
19584         popen: simplify access to original popen
19585         * lib/popen.c (rpl_popen): No need to worry about popen being a
19586         macro.
19587         Reported by Bruno Haible.
19588
19589 2009-08-20  Eric Blake  <ebb9@byu.net>
19590
19591         build: avoid some compiler warnings
19592         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
19593         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
19594         type.
19595         (new_exclude_segment, excluded_file_pattern_p)
19596         (excluded_file_name_p): Reduce scope.
19597         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
19598         old-style declaration.
19599
19600 2009-08-20  Simon Josefsson  <simon@josefsson.org>
19601
19602         * tests/test-exclude1.sh: Handle Windows EOL.
19603         * tests/test-exclude2.sh: Likewise.
19604         * tests/test-exclude3.sh: Likewise.
19605         * tests/test-exclude4.sh: Likewise.
19606         * tests/test-exclude5.sh: Likewise.
19607         * tests/test-exclude6.sh: Likewise.
19608         * tests/test-exclude7.sh: Likewise.
19609
19610 2009-08-19  Akim Demaille  <demaille@gostai.com>
19611
19612         bootstrap: find sha1sum when named gsha1sum.
19613         * bootstrap (find_tool): New.
19614         ($SHA1SUM): New.
19615         Use it.
19616
19617 2009-08-20  Jim Meyering  <meyering@redhat.com>
19618
19619         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
19620         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
19621         expression that converts "." in a file name to "\." in the resulting
19622         regexp.  Start with a dummy statement, so that prior shell variable
19623         definitions are expanded portably.  Reported by Simon Josefsson.
19624
19625 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
19626
19627         Fix polling for writeability of a screen buffer.
19628         * lib/poll.c: Distinguish input and screen buffers for the
19629         Win32 implementation.
19630         * lib/select.c: Likewise.
19631
19632 2009-08-19  Eric Blake  <ebb9@byu.net>
19633
19634         popen-safer: prevent popen from clobbering std descriptors
19635         * modules/popen-safer: New file.
19636         * lib/popen-safer.c: Likewise.
19637         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
19638         * lib/stdio--.h (popen): Provide override.
19639         * lib/stdio-safer.h (popen_safer): Provide declaration.
19640         * tests/test-popen.c (includes): Partially test this.
19641         * modules/popen-safer-tests: New file, for more tests.
19642         * tests/test-popen-safer.c: Likewise.
19643         * MODULES.html.sh (file stream based Input/Output): Mention it.
19644
19645         tests: test some of the *-safer modules
19646         * modules/fopen-safer (Depends-on): Add fopen.
19647         * modules/fcntl-safer (Depends-on): Add fcntl.
19648         * modules/stdlib-safer (Depends-on): Add stdlib.
19649         (configure.ac): Set indicator.
19650         * modules/unistd-safer (configure.ac): Likewise.
19651         * modules/tmpfile-safer (configure.ac): Likewise.
19652         (Depends-on): Add tmpfile.
19653         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
19654         active.
19655         * tests/test-fopen.c (includes): Test safer versions when they are
19656         in use.
19657         * tests/test-open.c (includes): Likewise.
19658
19659         popen: fix cygwin 1.5 bug when stdin closed
19660         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
19661         * modules/popen: New file.
19662         * modules/popen-tests: Likewise.
19663         * tests/test-popen.c: Likewise.
19664         * m4/popen.m4: Likewise.
19665         * lib/popen.c: Likewise.
19666         * lib/stdio.in.h (popen): New declaration.
19667         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
19668         * modules/stdio (Makefile.am): Likewise.
19669         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
19670
19671 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
19672
19673         maint.mk: give full control over update-copyright exclusions
19674         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
19675         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
19676         (update-copyright): Don't force inclusion of top-level
19677         ChangeLog.  Don't force exclusion of all COPYING files, but make
19678         them the default exclusion instead.
19679
19680 2009-08-16  Bruno Haible  <bruno@clisp.org>
19681
19682         Fix test failures on Solaris 10.
19683         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
19684         tests when Solaris iconv() is used.
19685         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
19686         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
19687         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
19688         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
19689         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
19690
19691 2009-08-16  Bruno Haible  <bruno@clisp.org>
19692
19693         Fix test failures on Solaris 10.
19694         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
19695         'tr' program and pass it as first argument.
19696         * tests/test-pipe-filter-gi1.sh: Likewise.
19697         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
19698         program as first argument.
19699         * tests/test-pipe-filter-gi1.c (main): Likewise.
19700
19701 2009-08-16  Eric Blake  <ebb9@byu.net>
19702
19703         fpurge: fix previous commits
19704         * modules/fpurge (Makefile.am): Make replacement conditional,
19705         partially reverting 2007-04-29 change; missed in previous
19706         attempt.
19707         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
19708         is missing.
19709
19710 2009-08-16  Bruno Haible  <bruno@clisp.org>
19711
19712         Clarify fpurge's effect on the file position.
19713         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
19714         * tests/test-fpurge.c (main): Make a second pass for checking the file
19715         position.
19716
19717 2009-08-16  Bruno Haible  <bruno@clisp.org>
19718
19719         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
19720         declaration of fpurge is missing.
19721         * tests/test-fpurge.c (main): Check that the file has not more contents
19722         than expected. Close the file before removing it.
19723
19724 2009-08-15  Eric Blake  <ebb9@byu.net>
19725
19726         fpurge: don't wrap working cygwin implementation
19727         * lib/fpurge.c (fpurge): Fix comment typo.
19728         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
19729         1.7 to avoid replacement.
19730         * tests/test-fpurge.c (main): Enhance test.
19731
19732 2009-08-15  Eric Blake  <ebb9@byu.net>
19733         and Jim Meyering  <meyering@redhat.com>
19734
19735         test-update-copyright: skip if perl is insufficient
19736         * tests/test-update-copyright.sh: Failure to run maintainer tool
19737         should not cause testsuite failure on cygwin 1.5.
19738
19739 2009-08-14  Eric Blake  <ebb9@byu.net>
19740
19741         doc: mention more functions added in cygwin 1.7.0
19742         * doc/posix-headers/limits.texi (limits.h): Update for recent
19743         cygwin additions.
19744         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
19745         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
19746         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
19747         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
19748         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
19749
19750 2009-08-14  Eric Blake  <ebb9@byu.net>
19751
19752         maint.mk: simplify update-copyright rule
19753         * top/maint.mk (update-copyright-local): Delete, and document how
19754         to do it in cfg.mk instead.
19755         (update-copyright-exclude-regexp): Delete, and document how to do
19756         it in .x-update-copyright instead.
19757         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
19758         exclude ChangeLog.
19759
19760 2009-08-14  Bruno Haible  <bruno@clisp.org>
19761
19762         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
19763
19764 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19765
19766         maint.mk: support update-copyright-env
19767         * top/maint.mk (update-copyright-env): Define place-holder.
19768         (update-copyright): Expand $(update-copyright-env) before
19769         invoking update-copyright.
19770
19771 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19772
19773         update-copyright: implement forced reformatting
19774         * build-aux/update-copyright: Implement and document
19775         UPDATE_COPYRIGHT_FORCE.
19776         * tests/test-update-copyright.sh: Test it.
19777
19778 2009-08-14  Eric Blake  <ebb9@byu.net>
19779         and Bruno Haible  <bruno@clisp.org>
19780
19781         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
19782         * tests/test-locale.c: Revert previous patch related to NULL.
19783         * tests/test-stdio.c: Likewise.
19784         * tests/test-stdlib.c: Likewise.
19785         * tests/test-string.c: Likewise.
19786         * tests/test-unistd.c: Likewise.
19787         * modules/time-tests (Depends-on): Add verify.
19788         * modules/wchar-tests (Depends-on): Likewise.
19789         * tests/test-time.c: Test for NULL compliance.
19790         * tests/test-wchar.c: Likewise.
19791         * modules/locale (Depends-on): Add stddef.
19792         * modules/stdio (Depends-on): Likewise.
19793         * modules/stdlib (Depends-on): Likewise.
19794         * modules/string (Depends-on): Likewise.
19795         * modules/time (Depends-on): Likewise.
19796         * modules/unistd (Depends-on): Likewise.
19797         * modules/wchar (Depends-on): Likewise.
19798         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
19799         * lib/stdlib.in.h (includes): Likewise.
19800         * lib/string.in.h (includes): Likewise.
19801         * lib/time.in.h (includes): Likewise.
19802         * lib/unistd.in.h (includes): Likewise.
19803         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
19804         replaced.
19805         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
19806         * m4/stddef_h.m4: New file.
19807         * modules/stddef: Likewise.
19808         * lib/stddef.in.h: Likewise.
19809         * modules/stddef-tests: Likewise.
19810         * tests/test-stddef.c: Likewise.
19811         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
19812         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
19813         * doc/posix-headers/locale.texi (locale.h): Likewise.
19814         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
19815         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
19816         * doc/posix-headers/string.texi (string.h): Likewise.
19817         * doc/posix-headers/time.texi (time.h): Likewise.
19818         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
19819         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
19820
19821 2009-08-14  Eric Blake  <ebb9@byu.net>
19822
19823         doc: improve git diff of texinfo files
19824         * .gitattributes: Add rule for *.texi files, with hint on how to
19825         use it.
19826         Copied from m4, and based on a report by Bruno Haible.
19827
19828 2009-08-14  Bruno Haible  <bruno@clisp.org>
19829
19830         Disable multithread support by default on Cygwin 1.5.x for real.
19831         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
19832
19833 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
19834
19835         update-copyright: much ado about intervals
19836         * build-aux/update-copyright: Implement and document
19837         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
19838         of copyright year intervals.
19839         Also, document UPDATE_COPYRIGHT_YEAR.
19840         * tests/test-update-copyright.sh: Test it.
19841
19842         update-copyright: convert 2-digit to 4-digit years
19843         * build-aux/update-copyright: Implement and document.
19844         * tests/test-update-copyright.sh: Update.
19845
19846 2009-08-14  Jim Meyering  <meyering@redhat.com>
19847
19848         test-exclude: avoid coreutils "make check" failure
19849         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
19850         just as in test-argmatch.c.
19851
19852 2009-08-13  Eric Blake  <ebb9@byu.net>
19853
19854         test-dup2: fix bad assumption
19855         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
19856         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
19857
19858         test-version-etc: fix CRLF portability issue
19859         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
19860         recognize \r.
19861         * tests/test-argp-version-etc-1.sh: Likewise.
19862
19863         getopt: update client modules
19864         * modules/argp (Depends-on): Use getopt-gnu.
19865         * modules/git-merge-changelog (Depends-on): Likewise.
19866         * modules/long-options (Depends-on): Likewise.
19867         * modules/xstrtol (Depends-on): Likewise.
19868
19869 2009-08-13  Simon Josefsson  <simon@josefsson.org>
19870
19871         * tests/test-version-etc.sh: Don't fail on different
19872         project/version.  Don't fail on CRLF differences.  Rewrite to use
19873         multiple -e instead of multiple sed forks, suggested by Eric Blake
19874         <ebb9@byu.net>.
19875         * tests/test-argp-version-etc-1.sh: Likewise.
19876
19877 2009-08-13  Simon Josefsson  <simon@josefsson.org>
19878
19879         * tests/test-version-etc.sh: Don't fail on different
19880         project/version.
19881
19882 2009-08-12  Bruno Haible  <bruno@clisp.org>
19883
19884         Tests for modules 'getopt-posix', 'getopt-gnu'.
19885         * modules/getopt-posix-tests: New file.
19886         * tests/test-getopt.c: New file.
19887         * tests/test-getopt.h: New file.
19888         * tests/test-getopt_long.h: New file.
19889
19890         New modules 'getopt-posix', 'getopt-gnu'.
19891         * modules/getopt-gnu: New file, renamed from modules/getopt.
19892         * modules/getopt-posix: New file.
19893         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
19894         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
19895         (gl_GETOPT): Remove macro.
19896         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
19897         Disable the test against BSD systems that declare optreset. Test
19898         against mingw bug. Test against lack of support of optional arguments
19899         on many platforms.
19900         * doc/glibc-headers/getopt.texi: Update module name and list of
19901         relevant platforms.
19902         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
19903         'getopt-gnu' and more portability problems.
19904         * NEWS: Mention the changes.
19905
19906 2009-08-12  Bruno Haible  <bruno@clisp.org>
19907
19908         Ensure that optarg etc. get declared by <unistd.h>.
19909         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
19910         AC_USE_SYSTEM_EXTENSIONS.
19911         * modules/getopt (Depends-on): Add 'extensions'.
19912
19913 2009-08-12  Bruno Haible  <bruno@clisp.org>
19914
19915         Avoid test link errors.
19916         * modules/pipe-filter-ii-tests (Makefile.am): Define
19917         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
19918         * modules/pipe-filter-gi-tests (Makefile.am): Define
19919         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
19920         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
19921
19922 2009-08-12  Bruno Haible  <bruno@clisp.org>
19923
19924         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
19925         gl_GETOPT_SUBSTITUTE before.
19926         (gl_GETOPT): Use it.
19927         * m4/argp.m4 (gl_ARGP): Update.
19928         Reported by Sergey Poznyakoff.
19929
19930         * m4/getopt.m4: Reorder macros.
19931         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
19932         (gl_GETOPT_SUBSTITUTE): Remove macro.
19933
19934 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19935
19936         Minor improvement in gitlog-to-changelog
19937
19938         * build-aux/gitlog-to-changelog: New option `--format' makes
19939         output format string configurable.
19940
19941 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
19942
19943         Optimize exclude: use hash tables for non-wildcard patterns.
19944
19945         * lib/exclude.c: Include hash.h and mbuiter.h
19946         (struct exclude_pattern, exclude_segment): New data types.
19947         (struct exclude): Rewrite.
19948         (fnmatch_pattern_has_wildcards): New function.
19949         (new_exclude_segment, free_exclude_segment): New functions.
19950         (excluded_file_pattern_p, excluded_file_name_p): New functions.
19951         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
19952         * lib/exclude.h (is_fnmatch_pattern): New prototype.
19953         * modules/exclude: Depend on hash and mbuiter.
19954
19955         * modules/exclude-tests: New file.
19956         * tests/test-exclude.c: New file.
19957         * tests/test-exclude1.sh: New file.
19958         * tests/test-exclude2.sh: New file.
19959         * tests/test-exclude3.sh: New file.
19960         * tests/test-exclude4.sh: New file.
19961         * tests/test-exclude5.sh: New file.
19962         * tests/test-exclude6.sh: New file.
19963         * tests/test-exclude7.sh: New file.
19964
19965 2009-08-12  Bruno Haible  <bruno@clisp.org>
19966
19967         Ensure that getopt() gets declared by <unistd.h>.
19968         * lib/unistd.in.h: Conditionally include getopt.h.
19969         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
19970         Set GNULIB_UNISTD_H_GETOPT.
19971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19972         GNULIB_UNISTD_H_GETOPT.
19973         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
19974
19975 2009-08-12  Bruno Haible  <bruno@clisp.org>
19976
19977         Clarify logic.
19978         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
19979         gl_replace_getopt instead of GETOPT_H.
19980
19981 2009-08-12  Bruno Haible  <bruno@clisp.org>
19982
19983         * m4/getopt.m4: Add comments.
19984
19985 2009-08-12  Bruno Haible  <bruno@clisp.org>
19986
19987         Disable multithread support by default on Cygwin 1.5.x.
19988         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
19989         set gl_use_threads=no if not specified otherwise.
19990
19991 2009-08-11  Bruno Haible  <bruno@clisp.org>
19992
19993         Avoid compilation error on NetBSD 5.0.
19994         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
19995         * tests/test-stdio.c: Likewise.
19996         * tests/test-stdlib.c: Likewise.
19997         * tests/test-string.c: Likewise.
19998         * tests/test-unistd.c: Likewise.
19999         Reported by Greg Troxel <gdt@ir.bbn.com>
20000         at <https://savannah.gnu.org/support/?106973>.
20001
20002 2009-08-11  Bruno Haible  <bruno@clisp.org>
20003
20004         * modules/dup2-tests (Depends-on): Remove close.
20005
20006         Undo 2009-07-19 commit.
20007         * modules/acl-tests (Depends-on): Remove close.
20008         * modules/binary-io-tests (Depends-on): Likewise.
20009         * modules/closein-tests (Depends-on): Likewise.
20010         * modules/flock-tests (Depends-on): Likewise.
20011         * modules/fsync-tests (Depends-on): Likewise.
20012         * modules/lseek-tests (Depends-on): Likewise.
20013         * modules/pipe-tests (Depends-on): Likewise.
20014         * modules/posix_spawn-tests (Depends-on): Likewise.
20015         * modules/posix_spawnp-tests (Depends-on): Likewise.
20016         * modules/stat-time-tests (Depends-on): Likewise.
20017         * modules/yesno-tests (Depends-on): Likewise.
20018
20019 2009-08-10  Bruno Haible  <bruno@clisp.org>
20020
20021         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
20022
20023 2009-08-10  Bruno Haible  <bruno@clisp.org>
20024
20025         Fix a gcc warning.
20026         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
20027
20028 2009-08-10  Bruno Haible  <bruno@clisp.org>
20029
20030         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
20031         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
20032         not only the first time.
20033         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
20034         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
20035         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
20036         is 1, not only the the first time.
20037
20038 2009-08-10  Bruno Haible  <bruno@clisp.org>
20039
20040         Make it possible to use module 'gethostname' without module 'close'.
20041         * lib/unistd.in.h (close): Evoke a link error only if
20042         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
20043         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20044         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20045         * modules/unistd (Makefile.am): Substitute
20046         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20047         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
20048         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
20049         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
20050         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20051         * modules/sys_ioctl (Makefile.am): Substitute
20052         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20053         * modules/socket (configure.ac): On native Windows, set
20054         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
20055         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
20056         Reported by Sam Steingold <sds@gnu.org>.
20057
20058 2009-08-10  Bruno Haible  <bruno@clisp.org>
20059
20060         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
20061         * modules/ioctl (configure.ac): Likewise.
20062
20063 2009-08-10  Bruno Haible  <bruno@clisp.org>
20064
20065         Avoid collision between gnulib wrapper and libintl wrapper.
20066         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
20067         already defined in intl/printf.c.
20068         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
20069         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
20070
20071 2009-08-09  Bruno Haible  <bruno@clisp.org>
20072
20073         Make <sys/select.h> really self-contained, also on Solaris 10.
20074         * lib/sys_select.in.h: Include <string.h>.
20075         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
20076         Solaris 10 problem.
20077         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
20078         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
20079         Reported by Jim Meyering.
20080
20081 2009-08-09  Bruno Haible  <bruno@clisp.org>
20082
20083         Avoid warnings from 'aclocal' that are due to a use of macro name
20084         AM_XGETTEXT_OPTION that is not defined in automake.
20085         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
20086         automake.
20087         * modules/error (configure.ac): Likewise.
20088         * modules/propername (configure.ac): Likewise.
20089         * modules/vasprintf (configure.ac): Likewise.
20090         * modules/verror (configure.ac): Likewise.
20091         * modules/xprintf (configure.ac): Likewise.
20092         * modules/xvasprintf (configure.ac): Likewise.
20093
20094 2009-08-08  Bruno Haible  <bruno@clisp.org>
20095
20096         Avoid compilation error in C++ mode.
20097         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
20098         Reported by Sam Steingold <sds@gnu.org>.
20099
20100 2009-08-08  Bruno Haible  <bruno@clisp.org>
20101
20102         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
20103         for the various Unix platforms.
20104         * doc/posix-headers/limits.texi: Update platforms list regarding
20105         HOST_NAME_MAX.
20106         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20107
20108 2009-08-07  Jim Meyering  <meyering@redhat.com>
20109
20110         selinux-at: fix typo in a comment
20111         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
20112         Spotted by Paolo Bonzini.
20113
20114         selinux-at: remove redundant m4 code, add documentation
20115         * modules/selinux-at (configure.ac): Remove redundant code.
20116         LIB_SELINUX is already set via the dependent module, selinux-h.
20117         (Include): Add quotes around selinux-at.h.
20118         * lib/selinux-at.h: Add documentation.
20119         Reported by Bruno Haible in
20120         http://marc.info/?l=gnulib-bug&m=124958988300749
20121
20122 2009-08-07  Bruno Haible  <bruno@clisp.org>
20123
20124         Avoid link error on MacOS X 10.3 and 10.4.
20125         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
20126         on non-ELF systems.
20127         * lib/argp-pv.c (argp_program_version): Likewise.
20128         Reported by Simon Josefsson.
20129
20130 2009-08-07  Simon Josefsson  <simon@josefsson.org>
20131
20132         * tests/test-version-etc.sh: Use $EXEEXT.
20133
20134 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
20135
20136         update-copyright: update documentation to point to maint.mk
20137         * build-aux/update-copyright: Here.
20138
20139 2009-08-06  Jim Meyering  <meyering@redhat.com>
20140
20141         maint.mk: support update-copyright-local
20142         * top/maint.mk (update-copyright-local): Define place-holder.
20143         (update-copyright): Depend on $(update-copyright-local).
20144
20145 2009-08-06  Jim Meyering  <meyering@redhat.com>
20146
20147         selinux-at: new module
20148         Initially written for coreutils, this module will soon be
20149         used by findutils, too.
20150         * MODULES.html.sh [Misc]: Add selinux-at.
20151         * lib/selinux-at.h: New file, from coreutils.
20152         * lib/selinux-at.c: Likewise.
20153         * modules/selinux-at: Likewise.
20154         (License): Change from LGPL to GPL, since it depends
20155         on the GPL'd openat module.
20156
20157         doc: update README
20158         * README: Remove references to cogito.
20159         Remove cvs-repo-updating instructions from 2007.
20160         Don't imply that CVS is better if you have limited disk space.
20161
20162 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20163
20164         update-copyright: support C-style comments
20165         * build-aux/update-copyright: Implement and document.
20166         * tests/test-update-copyright.sh: Test.
20167
20168 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20169
20170         update-copyright: support omitted "(C)"
20171         * build-aux/update-copyright: Implement and document.  Also,
20172         allow variable whitespace before "(C)".
20173         * tests/test-update-copyright.sh: Test.
20174
20175 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20176
20177         update-copyright: don't trip on non-FSF copyright statements
20178         * build-aux/update-copyright: Fix so that the first correctly
20179         formatted FSF copyright statement is recognized no matter what
20180         appears before it.  Update documentation.
20181         * tests/test-update-copyright.sh: Test that.
20182
20183 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20184
20185         update-copyright: clean up code a little
20186         * build-aux/update-copyright: Append "_re" to the name of any
20187         variable holding a regular expression.
20188         Replace "old" and "new" with "stmt" in variable names.
20189         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
20190         handled correctly.
20191         Format code more consistently.
20192
20193 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
20194
20195         update-copyright-tests: improve portability
20196         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
20197         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
20198
20199 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
20200
20201         update-copyright: support @copyright{} and &copy;
20202         * build-aux/update-copyright: Implement and document.
20203         * tests/test-update-copyright.sh: Test.
20204
20205 2009-08-04  Jim Meyering  <meyering@redhat.com>
20206
20207         update-copyright-tests: correctly test EOL=\r\n handling
20208         * tests/test-update-copyright.sh: Put \r at the end of some lines
20209         for the dos-eol tests.  Based on a patch by Joel E. Denny.
20210
20211         maint.mk: make update-copyright exclusion list more configurable
20212         * top/maint.mk (update-copyright): Default to excluding COPYING,
20213         but allow an override, in case someone does want to update that file.
20214
20215         maint.mk: don't update copyright date in COPYING
20216         * top/maint.mk (update-copyright): Exclude COPYING.
20217
20218         maint.mk: add a copyright-updating rule
20219         * top/maint.mk (update-copyright): New rule.
20220         Derived from coreutils/Makefile.am.
20221
20222         update-copyright: rename some variables
20223         * build-aux/update-copyright: Rename a few variables for clarity.
20224         Tweak syntax.  List Joel E. Denny as coauthor.
20225
20226 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
20227
20228         update-copyright: fix bug for 2-digit last year and add tests
20229         * build-aux/update-copyright: Fix bug.
20230         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
20231         specified.
20232         * modules/update-copyright-tests: New
20233         * tests/test-update-copyright.sh: New.
20234
20235 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20236
20237         update-copyright: handle leading tabs in line prefix
20238         * build-aux/update-copyright: Count leading tabs as 8 spaces
20239         when computing margin.  This helps with the formatting of
20240         ChangeLogs, for example.
20241         Fix documentation a little.
20242
20243 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20244
20245         update-copyright: support EOL=\r\n
20246         * build-aux/update-copyright: Implement that.
20247
20248 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
20249
20250         update-copyright: automatically format copyright statements
20251         * build-aux/update-copyright: Implement that.
20252         Also, be a little more predictable and safer by always failing
20253         when the full copyright format is not perfectly recognized as an
20254         unbroken whole.  Discussed at
20255         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
20256         Rewrite documentation.
20257
20258 2009-08-03  Bruno Haible  <bruno@clisp.org>
20259
20260         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
20261
20262 2009-08-02  Bruno Haible  <bruno@clisp.org>
20263
20264         Tests for module 'uname'.
20265         * modules/uname-tests: New file.
20266         * tests/test-uname.c: New file.
20267
20268         New module 'uname'.
20269         * lib/uname.c: New file.
20270         * m4/uname.m4: New file.
20271         * modules/uname: New file.
20272         * doc/posix-functions/uname.texi: Mention the new module.
20273
20274 2009-08-02  Bruno Haible  <bruno@clisp.org>
20275
20276         Tests for module 'sys_utsname'.
20277         * modules/sys_utsname-tests: New file.
20278         * tests/test-sys_utsname.c: New file.
20279
20280         New module 'sys_utsname'.
20281         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
20282         * m4/sys_utsname_h.m4: New file.
20283         * modules/sys_utsname: New file.
20284         * doc/posix-headers/sys_utsname.texi: Mention the new module.
20285
20286 2009-08-02  Bruno Haible  <bruno@clisp.org>
20287
20288         Implicitly initialize the sockets library.
20289         * lib/gethostname.c: Include sockets.h.
20290         (rpl_gethostname): Invoke gl_sockets_startup.
20291         * lib/socket.c: Include sockets.h.
20292         (rpl_socket): Invoke gl_sockets_startup.
20293         * modules/gethostname (Depends-on): Add sockets.
20294         * modules/socket (Depends-on): Likewise.
20295         * tests/test-poll.c: Don't include sockets.h.
20296         (main): Don't invoke gl_sockets_startup.
20297         * tests/test-select.c: Don't include sockets.h.
20298         (main): Don't invoke gl_sockets_startup.
20299
20300 2009-08-02  Bruno Haible  <bruno@clisp.org>
20301
20302         Allow multiple calls to gl_sockets_startup.
20303         * lib/sockets.c (initialized_sockets_version): New variable.
20304         (gl_sockets_startup): Do nothing if already called for this or a higher
20305         version.
20306         (gl_sockets_cleanup): Reset initialized_sockets_version.
20307
20308 2009-08-03  Simon Josefsson  <simon@josefsson.org>
20309
20310         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
20311         different project/version.
20312
20313 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
20314             Bruno Haible  <bruno@clisp.org>
20315
20316         Tests for module 'pipe-filter-gi'.
20317         * modules/pipe-filter-gi-tests: New file.
20318         * tests/test-pipe-filter-gi1.sh: New file.
20319         * tests/test-pipe-filter-gi1.c: New file.
20320         * tests/test-pipe-filter-gi2.sh: New file.
20321         * tests/test-pipe-filter-gi2-main.c: New file.
20322         * tests/test-pipe-filter-gi2-child.c: New file.
20323
20324         New module 'pipe-filter-gi'.
20325         * lib/pipe-filter-gi.c: New file.
20326         * modules/pipe-filter-gi: New file.
20327
20328 2009-08-02  Bruno Haible  <bruno@clisp.org>
20329             Paolo Bonzini  <bonzini@gnu.org>
20330
20331         Tests for module 'pipe-filter-ii'.
20332         * modules/pipe-filter-ii-tests: New file.
20333         * tests/test-pipe-filter-ii1.sh: New file.
20334         * tests/test-pipe-filter-ii1.c: New file.
20335         * tests/test-pipe-filter-ii2.sh: New file.
20336         * tests/test-pipe-filter-ii2-main.c: New file.
20337         * tests/test-pipe-filter-ii2-child.c: New file.
20338
20339         New module 'pipe-filter-ii'.
20340         * lib/pipe-filter.h: New file.
20341         * lib/pipe-filter-ii.c: New file.
20342         * lib/pipe-filter-aux.h: New file.
20343         * modules/pipe-filter-ii: New file.
20344
20345 2009-08-02  Simon Josefsson  <simon@josefsson.org>
20346
20347         * lib/gc-libgcrypt.c: Change copyright to FSF.
20348         * lib/gc-gnulib.c: Likewise.
20349
20350 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
20351
20352         * lib/gethostname.c: Include limits.h.
20353
20354 2009-08-02  Simon Josefsson  <simon@josefsson.org>
20355             Bruno Haible  <bruno@clisp.org>
20356
20357         Ensure HOST_NAME_MAX as part of the gethostname module.
20358         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
20359         define also HOST_NAME_MAX.
20360         * tests/test-gethostname.c: Include <limits.h>.
20361         (main): Check also HOST_NAME_MAX.
20362         * doc/posix-headers/limits.texi: Document the mingw problem.
20363
20364 2009-08-02  Bruno Haible  <bruno@clisp.org>
20365
20366         * lib/gethostname.c (gethostname): Fix handling of large len argument.
20367         Add comments.
20368
20369 2009-03-31  Simon Josefsson  <simon@josefsson.org>
20370
20371         * lib/gethostname.c: Add Windows wrapper.
20372         * m4/gethostname.m4: Look for gethostname in -lws2_32.
20373         * modules/gethostname: Depend on sys_socket & errno, for also
20374         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
20375         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
20376
20377 2009-07-31  Jim Meyering  <meyering@redhat.com>
20378
20379         getloadavg: fix symbol name in comment
20380         * lib/getloadavg.c: Correct a typo I introduced when adding
20381         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
20382         Matt Kraai spotted the problem.
20383
20384 2009-07-29  Matt Kraai  <mkraai@beckman.com>
20385
20386         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
20387         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
20388         code also if ! defined N_NAME_POINTER.
20389         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
20390         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
20391         but the n_name member is a 12-byte array.
20392
20393 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
20394
20395         update-copyright: generalize comment handling
20396         * build-aux/update-copyright: Handle copyright statements
20397         within more comment styles.
20398         Document usage.
20399         Report any file with an external copyright holder or parse failure.
20400
20401 2009-07-29  Jim Meyering  <meyering@redhat.com>
20402
20403         mktime: correct setting of REPLACE_MKTIME
20404         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
20405
20406         update-copyright: new module
20407         * modules/update-copyright: New file.
20408         * build-aux/update-copyright: New file.
20409         * MODULES.html.sh (maint+release support): Add update-copyright.
20410
20411 2009-07-27  Bruno Haible  <bruno@clisp.org>
20412
20413         Fix compilation error when <ctime> is used and mktime is replaced.
20414         * lib/time.in.h (mktime): New declaration.
20415         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
20416         REPLACE_MKTIME instead of defining mktime in config.h.
20417         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
20418         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
20419         Reported by Ross McFarland <rwmcfa1@neces.com>.
20420
20421 2009-07-27  Bruno Haible  <bruno@clisp.org>
20422
20423         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
20424         Reported by Matt Kraai <mkraai@beckman.com>.
20425
20426 2009-07-25  Jim Meyering  <meyering@redhat.com>
20427
20428         maint.mk: avoid warnings about missing files
20429         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
20430         diagnostic when .prev-version does not exist.
20431         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
20432         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
20433         nonexistent cfg.mk.
20434         Suggestions from Simon Josefsson.
20435
20436 2009-07-25  Bruno Haible  <bruno@clisp.org>
20437
20438         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
20439         defined as macros. Needed on QNX 6.4.1.
20440         Reported by Matt Kraai <mkraai@beckman.com>.
20441
20442 2009-07-23  Jim Meyering  <meyering@redhat.com>
20443
20444         maint.mk: invoke "make dist" with a working value of XZ_OPT
20445         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
20446
20447 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
20448
20449         Make fseeko.c compile on QNX.
20450         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
20451
20452 2009-07-22  Peter Simons  <simons@cryp.to>
20453
20454         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
20455         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
20456         * lib/md4.h: Likewise.
20457         * lib/md5.h: Likewise.
20458         * lib/sha1.h: Likewise.
20459         * lib/sha256.h: Likewise.
20460         * lib/sha512.h: Likewise.
20461
20462         tests-sha1: don't assign literal string to 'char *' variable
20463         * tests/test-sha1.c (main): Declare locals with "const" to match
20464         attributes of the right hand side.
20465
20466 2009-07-21  Eric Blake  <ebb9@byu.net>
20467
20468         dup2: fix more mingw problems
20469         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
20470         fd to itself.
20471         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20472         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
20473         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
20474         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
20475         care of mingw bugs.
20476
20477 2009-07-21  Jim Meyering  <meyering@redhat.com>
20478
20479         vc-list-files: avoid failure when /bin/sh is dash
20480         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
20481         On some Debian based systems, /bin/sh is a symlink to dash, and running
20482         this command would omit the "/" following each 'tests' prefix:
20483           dash -x build-aux/vc-list-files -C . tests
20484         That is because bash and dash work differently:
20485           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
20486           bash ok
20487           dash odd
20488
20489 2009-07-21  Eric Blake  <ebb9@byu.net>
20490
20491         dup2-tests: test previous patch
20492         * modules/dup2-tests: New file.
20493         * tests/test-dup2.c: Likewise.
20494         * tests/test-open.c (main): Avoid unspecified behavior.
20495         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
20496         test.
20497
20498         dup2: work around mingw and cygwin 1.5 bug
20499         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
20500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
20501         * modules/unistd (Makefile.am): Substitute it.
20502         * lib/unistd.in.h (dup2): Declare the replacement.
20503         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
20504         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
20505         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
20506         * modules/execute (Depends-on): Add dup2.
20507         * modules/fseterr (Depends-on): Likewise.
20508         * modules/pipe (Depends-on): Likewise.
20509         * modules/posix_spawn-internal (Depends-on): Likewise.
20510
20511 2009-07-21  Bruno Haible  <bruno@clisp.org>
20512
20513         * modules/.gitattributes: New file.
20514
20515 2009-07-20  Bruno Haible  <bruno@clisp.org>
20516
20517         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
20518         (main): Use it.
20519
20520 2009-07-20  Eric Blake  <ebb9@byu.net>
20521
20522         test-pipe: make a bit more robust.
20523         * tests/test-pipe.c (myerr): Allow error messages regardless of
20524         what we do to stderr.
20525         (test_pipe): Rearrange to avoid deadlock.
20526         (child_main): Try a larger read, to ensure we avoided deadlock.
20527         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
20528         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
20529         if misused.
20530
20531 2009-07-19  Jim Meyering  <meyering@redhat.com>
20532
20533         fts: avoid false-positive cycle-detection
20534         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
20535         for each new command line argument.
20536
20537 2009-07-19  Bruno Haible  <bruno@clisp.org>
20538
20539         Fix build error on mingw with the modules sys_select and unistd.
20540         * modules/acl-tests (Depends-on): Add close.
20541         * modules/binary-io-tests (Depends-on): Likewise.
20542         * modules/closein-tests (Depends-on): Likewise.
20543         * modules/flock-tests (Depends-on): Likewise.
20544         * modules/fsync-tests (Depends-on): Likewise.
20545         * modules/lseek-tests (Depends-on): Likewise.
20546         * modules/pipe-tests (Depends-on): Likewise.
20547         * modules/posix_spawn-tests (Depends-on): Likewise.
20548         * modules/posix_spawnp-tests (Depends-on): Likewise.
20549         * modules/stat-time-tests (Depends-on): Likewise.
20550         * modules/yesno-tests (Depends-on): Likewise.
20551
20552 2009-07-19  Bruno Haible  <bruno@clisp.org>
20553
20554         Unify conditionals.
20555         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
20556         macros, not at the compiler macros.
20557         * lib/pipe.c: Likewise.
20558         * lib/execute.c: Likewise.
20559         * lib/spawni.c: Likewise.
20560
20561 2009-07-19  Bruno Haible  <bruno@clisp.org>
20562
20563         Fix handling of closed stdin/stdout/stderr on mingw.
20564         * lib/w32spawn.h: Include unistd.h.
20565         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
20566         file descriptor with O_NOINHERIT flag.
20567         (fd_safer_noinherit): New function, based on fd-safer.c.
20568         (dup_safer_noinherit): New function, based on dup-safer.c.
20569         (undup_safer_noinherit): New function.
20570         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
20571         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
20572         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
20573         instead of fd_safer.
20574         * tests/test-pipe.c: Include <windows.h>.
20575         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
20576
20577         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
20578         from main.
20579         (test_pipe): Pass an extra argument for disambiguation.
20580         (main): Invoke parent_main or child_main.
20581
20582         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
20583         consistently.
20584
20585 2009-07-18  Eric Blake  <ebb9@byu.net>
20586
20587         test-pipe: fix mingw build
20588         * tests/test-pipe.c (main): Avoid fcntl on mingw.
20589
20590 2009-07-18  Bruno Haible  <bruno@clisp.org>
20591
20592         * modules/pipe-tests (Makefile.am): Fix typo.
20593
20594 2009-07-18  Eric Blake  <ebb9@byu.net>
20595
20596         error: fix mingw build
20597         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
20598         Reported by Bruno Haible.
20599
20600         error: avoid undefined use of stdout
20601         * lib/error.c (error, error_at_line): Check that fd 1 is open
20602         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
20603         is handling faults and the close_stdout module wants to report the
20604         detection of closed stdout as an error.
20605
20606 2009-07-17  Eric Blake  <ebb9@byu.net>
20607
20608         pipe: be robust in face of closed fds
20609         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
20610         should cause child to misbehave.
20611         * modules/pipe-tests: New module.
20612         * tests/test-pipe.c: New file.
20613         * tests/test-pipe.sh: New file.
20614         Reported by Akim Demaille.
20615
20616 2009-07-14  Bruno Haible  <bruno@clisp.org>
20617
20618         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
20619         Reported by anonymous kc.
20620
20621 2009-07-07  Jim Meyering  <meyering@redhat.com>
20622
20623         maint.mk: don't look for translatable strings in *.m4 or *.mk
20624         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
20625         when searching for translatable strings.
20626
20627 2009-07-05  Jim Meyering  <meyering@redhat.com>
20628
20629         remove superfluous parentheses in STREQ definition
20630         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
20631         * lib/getugroups.c (STREQ): Likewise.
20632         * lib/fnmatch.c (STREQ): Likewise.
20633         Spotted by Bruno Haible.
20634
20635 2009-07-04  Jim Meyering  <meyering@redhat.com>
20636
20637         argv-iter: new module
20638         * MODULES.html.sh: Add argv-iter.
20639         * lib/argv-iter.c, lib/argv-iter.h: New files.
20640         * modules/argv-iter: New file.
20641         * modules/argv-iter-tests: New file.
20642         * tests/test-argv-iter.c: Test it.
20643
20644 2009-07-04  Bruno Haible  <bruno@clisp.org>
20645
20646         Fix assertion.
20647         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
20648         contains more exact copies of a given entry than file2, leave the extra
20649         copies unpaired rather than aborting.
20650         Reported by Eric Blake.
20651
20652 2009-07-02  Bruno Haible  <bruno@clisp.org>
20653
20654         Speedup git-merge-changelog for git cherry-pick.
20655         * lib/git-merge-changelog.c (struct entries_mapping): New type.
20656         (entries_mapping_get): New function, extracted from compute_mapping.
20657         (entries_mapping_reverse_get): New function.
20658         (compute_mapping): Add a 'full' argument. Return the result in a
20659         'struct entries_mapping'.
20660         (main): Update. Access the mappings through entries_mapping_get.
20661         Reported by Eric Blake.
20662
20663 2009-07-02  Bruno Haible  <bruno@clisp.org>
20664
20665         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
20666         best_i.
20667
20668 2009-07-02  Bruno Haible  <bruno@clisp.org>
20669
20670         Speed up approximate search for matching ChangeLog entries.
20671         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
20672         argument. Call fstrcmp_bounded instead of fstrcmp.
20673         (compute_mapping, try_split_merged_entry, main): Update callers.
20674
20675 2009-07-02  Bruno Haible  <bruno@clisp.org>
20676
20677         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
20678
20679 2009-06-30  Bruno Haible  <bruno@clisp.org>
20680
20681         Reduce the number of uc_is_cased calls.
20682         * lib/unicase.h (casing_suffix_context_t): Add
20683         'first_char_except_ignorable' field.
20684         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
20685         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
20686         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
20687         Update initializer.
20688         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
20689         case-ignorable characters.
20690         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
20691         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
20692         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
20693         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
20694         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
20695
20696 2009-06-30  Bruno Haible  <bruno@clisp.org>
20697
20698         Tests for module 'unicase/ignorable'.
20699         * modules/unicase/ignorable-tests: New file.
20700         * tests/unicase/test-ignorable.c: New file, generated by
20701         gen-uni-tables.
20702
20703         Tests for module 'unicase/cased'.
20704         * modules/unicase/cased-tests: New file.
20705         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
20706         * tests/unicase/test-predicate-part1.h: New file, derived from
20707         tests/unictype/test-predicate-part1.h.
20708         * tests/unicase/test-predicate-part2.h: New file, same as
20709         tests/unictype/test-predicate-part2.h.
20710
20711         Fix evaluation of "Before C" condition of FINAL_SIGMA.
20712         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
20713         (output_casing_properties): New function.
20714         (main): Call it.
20715         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
20716         * lib/unicase/cased.c: Include unictype/bitmap.h.
20717         (uc_is_cased): Define through a bitmap lookup.
20718         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
20719         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
20720         (uc_is_case_ignorable): Define through a bitmap lookup.
20721         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
20722         lib/unictype/bitmap.h.
20723         (Depends-on): Add inline. Clean up.
20724         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
20725         lib/unictype/bitmap.h.
20726         (Depends-on): Add inline. Clean up.
20727         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
20728         recognition.
20729         * tests/unicase/test-u16-tolower.c (main): Likewise.
20730         * tests/unicase/test-u32-tolower.c (main): Likewise.
20731
20732 2009-06-30  Bruno Haible  <bruno@clisp.org>
20733
20734         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
20735         * lib/unicase/u16-casemap.c: Likewise.
20736         * lib/unicase/u32-casemap.c: Likewise.
20737
20738 2009-06-29  Bruno Haible  <bruno@clisp.org>
20739
20740         Define u32_casefold as a wrapper around u32_ct_casefold.
20741         * lib/unicase/u32-casefold.c: Update.
20742         * modules/unicase/u32-casefold (Depends-on): Add
20743         unicase/u32-ct-casefold, unicase/empty-prefix-context,
20744         unicase/empty-suffix-context. Clean up.
20745
20746         Define u16_casefold as a wrapper around u16_ct_casefold.
20747         * lib/unicase/u16-casefold.c: Update.
20748         * modules/unicase/u16-casefold (Depends-on): Add
20749         unicase/u16-ct-casefold, unicase/empty-prefix-context,
20750         unicase/empty-suffix-context. Clean up.
20751
20752         Define u8_casefold as a wrapper around u8_ct_casefold.
20753         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
20754         * lib/unicase/u8-casefold.c: Update.
20755         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
20756         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20757
20758         Define u32_totitle as a wrapper around u32_ct_totitle.
20759         * lib/unicase/u32-totitle.c: Update.
20760         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
20761         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20762
20763         Define u16_totitle as a wrapper around u16_ct_totitle.
20764         * lib/unicase/u16-totitle.c: Update.
20765         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
20766         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20767
20768         Define u8_totitle as a wrapper around u8_ct_totitle.
20769         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
20770         functions.
20771         (FUNC): Delegate to U_CT_TOTITLE.
20772         * lib/unicase/u8-totitle.c: Update.
20773         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
20774         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
20775
20776         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
20777         invocation.
20778         * modules/unicase/u32-tolower (Depends-on): Add
20779         unicase/empty-prefix-context, unicase/empty-suffix-context.
20780
20781         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
20782         invocation.
20783         * modules/unicase/u16-tolower (Depends-on): Add
20784         unicase/empty-prefix-context, unicase/empty-suffix-context.
20785
20786         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
20787         * modules/unicase/u8-tolower (Depends-on): Add
20788         unicase/empty-prefix-context, unicase/empty-suffix-context.
20789
20790         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
20791         invocation.
20792         * modules/unicase/u32-toupper (Depends-on): Add
20793         unicase/empty-prefix-context, unicase/empty-suffix-context.
20794
20795         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
20796         invocation.
20797         * modules/unicase/u16-toupper (Depends-on): Add
20798         unicase/empty-prefix-context, unicase/empty-suffix-context.
20799
20800         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
20801         * modules/unicase/u8-toupper (Depends-on): Add
20802         unicase/empty-prefix-context, unicase/empty-suffix-context.
20803
20804         New module 'unicase/u32-ct-casefold'.
20805         * lib/unicase/u32-ct-casefold.c: New file.
20806         * modules/unicase/u32-ct-casefold: New file.
20807
20808         New module 'unicase/u16-ct-casefold'.
20809         * lib/unicase/u16-ct-casefold.c: New file.
20810         * modules/unicase/u16-ct-casefold: New file.
20811
20812         New module 'unicase/u8-ct-casefold'.
20813         * lib/unicase/u8-ct-casefold.c: New file.
20814         * lib/unicase/u-ct-casefold.h: New file, derived from
20815         lib/unicase/u-casefold.h.
20816         * modules/unicase/u8-ct-casefold: New file.
20817
20818         New module 'unicase/u32-ct-totitle'.
20819         * lib/unicase/u32-ct-totitle.c: New file.
20820         * modules/unicase/u32-ct-totitle: New file.
20821
20822         New module 'unicase/u16-ct-totitle'.
20823         * lib/unicase/u16-ct-totitle.c: New file.
20824         * modules/unicase/u16-ct-totitle: New file.
20825
20826         New module 'unicase/u8-ct-totitle'.
20827         * lib/unicase/u8-ct-totitle.c: New file.
20828         * lib/unicase/u-ct-totitle.h: New file, derived from
20829         lib/unicase/u-totitle.h.
20830         * modules/unicase/u8-ct-totitle: New file.
20831
20832         New module 'unicase/u32-ct-tolower'.
20833         * lib/unicase/u32-ct-tolower.c: New file.
20834         * modules/unicase/u32-ct-tolower: New file.
20835
20836         New module 'unicase/u16-ct-tolower'.
20837         * lib/unicase/u16-ct-tolower.c: New file.
20838         * modules/unicase/u16-ct-tolower: New file.
20839
20840         New module 'unicase/u8-ct-tolower'.
20841         * lib/unicase/u8-ct-tolower.c: New file.
20842         * modules/unicase/u8-ct-tolower: New file.
20843
20844         New module 'unicase/u32-ct-toupper'.
20845         * lib/unicase/u32-ct-toupper.c: New file.
20846         * modules/unicase/u32-ct-toupper: New file.
20847
20848         New module 'unicase/u16-ct-toupper'.
20849         * lib/unicase/u16-ct-toupper.c: New file.
20850         * modules/unicase/u16-ct-toupper: New file.
20851
20852         New module 'unicase/u8-ct-toupper'.
20853         * lib/unicase/u8-ct-toupper.c: New file.
20854         * modules/unicase/u8-ct-toupper: New file.
20855
20856         Add context arguments to u*_casemap functions.
20857         * lib/unicase/unicasemap.h: Include unicase.h.
20858         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
20859         suffix_context arguments.
20860         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
20861         functions.
20862         (FUNC): Add prefix_context and suffix_context arguments. Use
20863         uc_is_cased and uc_is_case_ignorable.
20864         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
20865         * lib/unicase/u16-casemap.c: Likewise.
20866         * lib/unicase/u32-casemap.c: Likewise.
20867         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
20868         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20869         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
20870         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20871         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
20872         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
20873
20874         New module 'unicase/u32-suffix-context'.
20875         * lib/unicase/u32-suffix-context.c: New file.
20876         * modules/unicase/u32-suffix-context: New file.
20877
20878         New module 'unicase/u16-suffix-context'.
20879         * lib/unicase/u16-suffix-context.c: New file.
20880         * modules/unicase/u16-suffix-context: New file.
20881
20882         New module 'unicase/u8-suffix-context'.
20883         * lib/unicase/u8-suffix-context.c: New file.
20884         * lib/unicase/u-suffix-context.h: New file.
20885         * modules/unicase/u8-suffix-context: New file.
20886
20887         New module 'unicase/empty-suffix-context'.
20888         * lib/unicase/empty-suffix-context.c: New file.
20889         * modules/unicase/empty-suffix-context: New file.
20890
20891         New module 'unicase/u32-prefix-context'.
20892         * lib/unicase/u32-prefix-context.c: New file.
20893         * modules/unicase/u32-prefix-context: New file.
20894
20895         New module 'unicase/u16-prefix-context'.
20896         * lib/unicase/u16-prefix-context.c: New file.
20897         * modules/unicase/u16-prefix-context: New file.
20898
20899         New module 'unicase/u8-prefix-context'.
20900         * lib/unicase/u8-prefix-context.c: New file.
20901         * lib/unicase/u-prefix-context.h: New file.
20902         * lib/unicase/context.h: New file.
20903         * modules/unicase/u8-prefix-context: New file.
20904
20905         New module 'unicase/empty-prefix-context'.
20906         * lib/unicase/empty-prefix-context.c: New file.
20907         * modules/unicase/empty-prefix-context: New file.
20908
20909         New module 'unicase/ignorable'.
20910         * lib/unicase/ignorable.c: New file.
20911         * modules/unicase/ignorable: New file.
20912
20913         New module 'unicase/cased'.
20914         * lib/unicase/caseprop.h: New file.
20915         * lib/unicase/cased.c: New file.
20916         * modules/unicase/cased: New file.
20917
20918         New functions for case mapping of substrings.
20919         * lib/unicase.h (casing_prefix_context_t): New type.
20920         (unicase_empty_prefix_context): New variable.
20921         (u8_casing_prefix_context, u16_casing_prefix_context,
20922         u32_casing_prefix_context, u8_casing_prefixes_context,
20923         u16_casing_prefixes_context, u32_casing_prefixes_context): New
20924         declarations.
20925         (casing_suffix_context_t): New type.
20926         (unicase_empty_suffix_context): New variable.
20927         (u8_casing_suffix_context, u16_casing_suffix_context,
20928         u32_casing_suffix_context, u8_casing_suffixes_context,
20929         u16_casing_suffixes_context, u32_casing_suffixes_context,
20930         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
20931         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
20932         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
20933         declarations.
20934
20935 2009-06-28  Jim Meyering  <meyering@redhat.com>
20936
20937         boostrap: indent only with spaces
20938         * build-aux/bootstrap: Indent only with spaces, never TABs.
20939
20940         bootstrap: split long lines
20941         * build-aux/bootstrap: Keep line length < 80.
20942
20943         bootstrap: sync from coreutils
20944         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
20945         just as autoreconf does.  Verify a list of prerequisite
20946         package-name,version-number pairs if defined in bootstrap.conf.
20947         Refer to README-prereq, if prerequisites are not satisfied.
20948
20949 2009-06-27  Eric Blake  <ebb9@byu.net>
20950
20951         tests: add test for bogus NULL definition
20952         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
20953         * tests/test-stdlib.c: Likewise.
20954         * tests/test-string.c: Likewise.
20955         * tests/test-locale.c: Likewise.
20956         * tests/test-unistd.c: Likewise.
20957         * modules/stdio-tests (Depends-on): Add verify.
20958         * modules/stdlib-tests (Depends-on): Likewise.
20959         * modules/string-tests (Depends-on): Likewise.
20960         * modules/locale-tests (Depends-on): Likewise.
20961         * modules/unistd-tests (Depends-on): Likewise.
20962
20963 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
20964
20965         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
20966         self-explaining comment.
20967         * m4/selinux-selinux-h: Update serial.
20968         (gl_LIBSELINUX): New macro, adding a warning for missing development
20969         packages to code extracted from...
20970         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
20971         Add warning for missing development packages here, too.
20972
20973 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
20974
20975         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
20976
20977 2009-06-25  Eric Blake  <ebb9@byu.net>
20978
20979         version-etc: fix regression
20980         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
20981         gcc.
20982         (version_etc): Use it, to catch bugs with trailing NULL.
20983         * lib/version-etc.c (version_etc_arn): Delete unused argument.
20984         (version_etc_va): Fix logic bug.
20985         * modules/version-etc-tests: Add test.
20986         * tests/test-version-etc.c: New file.
20987         * tests/test-version-etc.sh: Likewise.
20988
20989 2009-06-25  Sam Steingold  <sds@gnu.org>
20990
20991         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
20992         mbtowc declaration.
20993
20994 2009-06-25  Eric Blake  <ebb9@byu.net>
20995
20996         fpurge: migrate into <stdio.h>
20997         * lib/fpurge.h: Delete...
20998         * lib/stdio.in.h (fpurge): ...and declare here, instead.
20999         * lib/fpurge.c (fpurge): Change declaring header.
21000         * modules/fpurge (Files): Drop deleted file.
21001         (Depends-on): Add stdio.
21002         (configure.ac): Set witness.
21003         * modules/stdio (Makefile.am): Support fpurge macros.
21004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
21005         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
21006         * lib/fflush.c: Update client.
21007         * tests/test-fpurge.c: Likewise.
21008         * NEWS: Mention the change.
21009
21010 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21011
21012         * lib/argp-version-etc.c (program_authors): Add const
21013         qualifier.
21014         * lib/version-etc.c: Fix typos in the comments.
21015         * modules/argp-version-etc: Depends on version-etc.
21016
21017 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21018
21019         argp-version-etc: new module.
21020
21021         * lib/argp-version-etc.c: New file.
21022         * lib/argp-version-etc.h: New file.
21023         * modules/argp-version-etc: New file.
21024         * modules/argp-version-etc-tests: New file.
21025         * tests/test-argp-version-etc.c: New test.
21026         * tests/test-argp-version-etc-1.sh: New test.
21027
21028 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
21029
21030         Provide additional interfaces and documentation for version-etc
21031         module.
21032
21033         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
21034         interfaces.
21035         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
21036         prototypes.
21037
21038 2009-06-24  Bruno Haible  <bruno@clisp.org>
21039
21040         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
21041         HAVE_LIB${NAME} macro.
21042         Reported by Sam Steingold <sds@gnu.org>.
21043
21044 2009-06-23  Simon Josefsson  <simon@josefsson.org>
21045
21046         * modules/hash-tests (test_hash_LDADD): Link to libintl when
21047         needed.
21048
21049 2009-06-21  Bruno Haible  <bruno@clisp.org>
21050
21051         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
21052         work.
21053         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
21054         together with LIB${NAME}, LTLIB${NAME}.
21055         Reported by Sam Steingold <sds@gnu.org>.
21056
21057 2009-06-20  Jim Meyering  <meyering@redhat.com>
21058
21059         tests: make sc_require_test_exit_idiom more generic
21060         * top/maint.mk (Exit_witness_file): New overridable variable.
21061         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
21062         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
21063
21064 2009-06-19  Jim Meyering  <meyering@redhat.com>
21065
21066         hash: reverse order of src/dst parameters in an internal interface
21067         * lib/hash.c (transfer_entries): Reverse order of parameters to
21068         put DST before SRC.  Adjust callers.
21069
21070         tests: test-hash: avoid wholesale duplication
21071         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
21072         Instead, use a loop and add a single conditional.
21073
21074         tests: test-hash: allow seed selection via a command line argument
21075         * tests/test-hash.c (get_seed): New function.
21076         (main): Use it.
21077
21078 2009-06-19  Eric Blake  <ebb9@byu.net>
21079
21080         hash: avoid memory leak on allocation failure
21081         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
21082         failure.  Factor repeated algorithm...
21083         (transfer_entries): ...into new helper routine.
21084         (hash_delete): React to hash_rehash return value.
21085
21086         hash: reduce memory pressure in hash_rehash no-op case
21087         * lib/hash.c (next_prime): Avoid overflow.
21088         (hash_initialize): Factor bucket size computation...
21089         (compute_bucket_size): ...into new helper function.
21090         (hash_rehash): Use new function and open coding to reduce memory
21091         pressure, and avoid a memory leak in USE_OBSTACK code.
21092         Reported by Jim Meyering.
21093
21094 2009-06-18  Eric Blake  <ebb9@byu.net>
21095
21096         hash: make rotation more obvious
21097         * modules/hash (Depends-on): Add bitrotate and stdint.
21098         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
21099         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
21100         (SIZE_MAX): Rely on headers for definition.
21101         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
21102         (raw_hasher): Use rotr_sz.
21103         Suggested by Jim Meyering.
21104
21105         hash: fix memory leak in last patch
21106         * lib/hash.c (hash_rehash): Avoid memory leak.
21107
21108         hash: avoid no-op rehashing
21109         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
21110
21111         hash: provide default callback functions
21112         * lib/hash.c (raw_hasher, raw_comparator): New functions.
21113         (hash_initialize): Use them as defaults.
21114         * tests/test-hash.c (main): Test this.
21115
21116         hash: minor optimization
21117         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
21118         when possible.
21119         (hash_initialize): Document this promise.
21120         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
21121         * tests/test-hash.c (hash_compare_strings): Test this.
21122
21123 2009-06-18  Bruno Haible  <bruno@clisp.org>
21124
21125         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
21126         going to be replaced anyway.
21127
21128 2009-06-18  Bruno Haible  <bruno@clisp.org>
21129
21130         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
21131         in one place.
21132         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
21133         be replaced anyway.
21134
21135 2009-06-18  Eric Blake  <ebb9@byu.net>
21136
21137         hash: check for resize before insertion
21138         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
21139         threshold before insertion, so that a pathological hash_rehash
21140         that fills every bucket can still trigger another rehash.
21141
21142 2009-06-18  Jim Meyering  <meyering@redhat.com>
21143
21144         hash-tests: add a loop around the small tests
21145         * tests/test-hash.c (main): Repeat small tests with selected
21146         small initial table sizes.
21147
21148 2009-06-17  Eric Blake  <ebb9@byu.net>
21149
21150         hash: minor cleanups
21151         * lib/hash.h (hash_entry): Make opaque, by moving...
21152         * lib/hash.c (hash_entry): ...here.
21153         (hash_insert): Clarify restrictions on what can be inserted.
21154         (hash_get_next): Clarify when it is safe to remove an element
21155         during traversal.
21156         (check_tuning): Skip verification when tuning is known safe.
21157         (hash_initialize): Clarify restrictions on tuning.
21158
21159 2009-06-17  Jim Meyering  <jim@meyering.net>
21160         and Eric Blake  <ebb9@byu.net>
21161
21162         hash-tests: new module
21163         * modules/hash-tests: New file.
21164         * tests/test-hash.c: New file.
21165
21166 2009-06-17  Eric Blake  <ebb9@byu.net>
21167
21168         strstr-simple: document new module
21169         * MODULES.html.sh: Document new module.
21170
21171         strstr, strcasestr: replace on platforms with broken memchr
21172         * modules/strstr: Split into...
21173         * modules/strstr-simple: ...new module that does not care about
21174         performance, but does care about glibc bug.
21175         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
21176         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
21177         if platform memchr is broken, per Debian bug 521737.
21178         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
21179         memchr.
21180         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
21181         * doc/posix-functions/strstr.texi (strstr): Document the fix.
21182         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21183         * modules/mountlist (Depends-on): Add strstr-simple.
21184         * modules/gen-uni-tables (Depends-on): Likewise.
21185         * modules/argz (Depends-on): Add strstr.
21186
21187 2009-06-17  Bruno Haible  <bruno@clisp.org>
21188
21189         * modules/posix_spawn-internal (Depends-on): Add errno.
21190
21191 2009-06-17  Bruno Haible  <bruno@clisp.org>
21192
21193         Define missing ESTALE on Interix 3.5.
21194         * lib/errno.in.h (ESTALE): Assign a value if missing.
21195         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
21196         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
21197         missing.
21198         * doc/posix-headers/errno.texi: Mention the Interix bug.
21199         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
21200
21201 2009-06-15  Eric Blake  <ebb9@byu.net>
21202
21203         memchr, memchr2: add valgrind exception
21204         * lib/memchr.valgrind: New file.
21205         * lib/memchr2.valgrind: New file.
21206         * modules/memchr (Files): Distribute valgrind file.
21207         * modules/memchr2 (Files): Likewise.
21208
21209         docs: memchr is no longer obsolete
21210         * MODULES.html.sh: Move memchr from obsolete to string.h section.
21211         * lib/string.in.h (memchr): Simplify logic.
21212
21213 2009-06-14  Jim Meyering  <meyering@redhat.com>
21214
21215         link-follow: fix the "checking..." message to not mention trailing slash
21216         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
21217         never considered trailing slashes.
21218
21219 2009-06-14  Bruno Haible  <bruno@clisp.org>
21220
21221         * m4/memchr.m4: Mention also the bug on IA-64.
21222         * doc/posix-functions/memchr.texi: Likewise.
21223
21224 2009-06-12  Eric Blake  <ebb9@byu.net>
21225
21226         memchr: detect broken x86_64 and alpha implementations
21227         * modules/memchr-tests (Depends-on): Move mmap detection...
21228         * modules/memchr (Depends-on): ...here.
21229         (configure.ac): Set indicator.
21230         * lib/string.in.h (memchr): Declare replacement.
21231         * modules/string (Makefile.am): Trigger replacement.
21232         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
21233         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
21234         bugs.
21235         * doc/posix-functions/memchr.texi (memchr): Document the bug.
21236         * modules/getpagesize (License): Relax license.
21237
21238 2009-06-11  Bruno Haible  <bruno@clisp.org>
21239
21240         * lib/idpriv.h: Add more references.
21241
21242 2009-06-08  Bruno Haible  <bruno@clisp.org>
21243
21244         Tests for module 'idpriv-droptemp'.
21245         * modules/idpriv-droptemp-tests: New file.
21246         * tests/test-idpriv-droptemp.sh: New file.
21247         * tests/test-idpriv-droptemp.su.sh: New file.
21248         * tests/test-idpriv-droptemp.c: New file.
21249
21250         New module 'idpriv-droptemp'.
21251         * lib/idpriv-droptemp.c: New file.
21252         * modules/idpriv-droptemp: New file.
21253
21254 2009-06-08  Bruno Haible  <bruno@clisp.org>
21255
21256         Tests for module 'idpriv-drop'.
21257         * modules/idpriv-drop-tests: New file.
21258         * tests/test-idpriv-drop.sh: New file.
21259         * tests/test-idpriv-drop.su.sh: New file.
21260         * tests/test-idpriv-drop.c: New file.
21261
21262         New module 'idpriv-drop'.
21263         * lib/idpriv.h: New file.
21264         * lib-idpriv-drop.c: New file.
21265         * m4/idpriv.m4: New file.
21266         * modules/idpriv-drop: New file.
21267
21268 2009-06-08  Bruno Haible  <bruno@clisp.org>
21269
21270         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
21271         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21272         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21273         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21274         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21275         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21276         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21277
21278 2009-06-08  Eric Blake  <ebb9@byu.net>
21279
21280         test-strstr: use memory fence, when possible
21281         * tests/test-strstr.c (main): Use memory fence, in order to be
21282         more likely to trigger Debian bug 521737.
21283         * modules/strstr-tests (Files): Pull in additional files.
21284
21285         memchr: no longer obsolete, for wider field testing
21286         * modules/memchr (Status, Notice): Delete, this module is no
21287         longer obsolete.
21288         * modules/vasnprintf (Depends-on): Add memchr.
21289
21290 2009-06-07  Jim Meyering  <meyering@redhat.com>
21291
21292         hash: declare some functions with the warn_unused_result attribute
21293         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
21294
21295 2009-06-07  Bruno Haible  <bruno@clisp.org>
21296
21297         * tests/test-alignof.c: Don't test int64_t if it does not exist.
21298         Reported by Eric Blake.
21299
21300 2009-06-06  Eric Blake  <ebb9@byu.net>
21301
21302         test-alignof: fix typo with long double
21303         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
21304         compiler error.
21305
21306 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
21307
21308         Escape non-texinfo { and }s.
21309         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
21310         markup error.
21311
21312 2009-06-04  Jim Meyering  <meyering@redhat.com>
21313
21314         gitlog-to-changelog: don't infloop on an empty commit log
21315         * build-aux/gitlog-to-changelog: Warn about an empty log message.
21316         Reported by Boris Petersen <transacid@centerim.org>.
21317
21318 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
21319
21320         version-etc: extend for packagers
21321         Add three new configure options, intended for packagers:
21322           --with-packager="packager name"
21323           --with-packager-version="packager-specific version"
21324           --with-packager-bug-reports="packager bug reporting"
21325         An example with coreutils:
21326           $ ./configure \
21327             --with-packager=Gentoo \
21328             --with-packager-bug-report=http://bugs.gentoo.org/ \
21329             --with-packager-version="patchset 1.6"
21330           $ ./src/ls --version | head -n2
21331           ls (GNU coreutils) 7.1-dirty
21332           Packaged by Gentoo (patchset 1.6)
21333         Note that the bug reporting info via --help doesn't show up because
21334         coreutils uses its own custom emit_bug_reporting_address() implementation
21335         in src/system.h.  If it didn't, it'd look like:
21336           $ ./src/ls --help | tail -n4
21337           Report bugs to <bug-coreutils@gnu.org>.
21338           Report Gentoo bugs to <http://bugs.gentoo.org/>.
21339           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
21340           General help using GNU software: <http://www.gnu.org/gethelp/>.
21341         * lib/version-etc.c: Print new information, if provided.
21342         * m4/version-etc.m4: New file.
21343         * modules/version-etc (Files): Add m4/version-etc.m4.
21344         (configure.ac): Add gl_VERSION_ETC.
21345
21346 2009-05-31  Bruno Haible  <bruno@clisp.org>
21347
21348         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
21349         and 'int64_t'.
21350         * modules/alignof-tests (Dependencies): Add stdint.
21351         Reported by Eric Blake.
21352
21353 2009-05-31  Bruno Haible  <bruno@clisp.org>
21354
21355         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
21356         restriction due to compiler bugs.
21357         Reported by Eric Blake.
21358
21359 2009-05-31  Simon Josefsson  <simon@josefsson.org>
21360             Bruno Haible  <bruno@clisp.org>
21361
21362         Fix test-alignof failure.
21363         * lib/alignof.h (alignof_slot): New macro.
21364         (alignof_type): New macro, with the same semantics as the previous
21365         'alignof'.
21366         (alignof): Alias to alignof_slot.
21367         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
21368         check that the results are usable as constant expressions.
21369
21370 2009-05-31  Bruno Haible  <bruno@clisp.org>
21371
21372         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
21373         * tests/test-memchr.c (main): Check that memchr does not read past the
21374         first occurrence of the byte.
21375         * tests/test-strstr.c (main): Update comment.
21376         Suggested by Eric Blake.
21377
21378 2009-05-30  Bruno Haible  <bruno@clisp.org>
21379
21380         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
21381         detail how to use dumpbin.
21382         Reported by David Byron <dbyron@dbyron.com>.
21383
21384 2009-06-02  Simon Josefsson  <simon@josefsson.org>
21385
21386         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
21387
21388 2009-06-02  Simon Josefsson  <simon@josefsson.org>
21389
21390         * m4/manywarnings.m4: Add GCC 4.4 warnings.
21391
21392 2009-05-28  Bruno Haible  <bruno@clisp.org>
21393
21394         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
21395         build-aux/ files.
21396
21397 2009-05-28  Simon Josefsson  <simon@josefsson.org>
21398
21399         * gnulib-tool (func_import): Transform license on build-aux/ files too.
21400
21401 2009-05-27  Simon Josefsson  <simon@josefsson.org>
21402
21403         * gnulib-tool (sed_transform_main_lib_file)
21404         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
21405         regexps.
21406
21407 2009-05-26  Simon Josefsson  <simon@josefsson.org>
21408
21409         * tests/test-strstr.c: Add another self-test.
21410         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
21411         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
21412
21413 2009-05-23  Bruno Haible  <bruno@clisp.org>
21414
21415         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
21416         change.
21417
21418 2009-05-21  Bruno Haible  <bruno@clisp.org>
21419
21420         Simplify use of mode_t varargs.
21421         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
21422         uses 'mode_t' or 'int'.
21423         * lib/openat.c (openat): Likewise.
21424         * lib/open-safer.c (open_safer): Likewise.
21425         * m4/mode_t.m4: New file.
21426         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
21427         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
21428         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
21429         * modules/open (Files): Add m4/mode_t.m4.
21430         * modules/openat (Files): Likewise.
21431         * modules/fcntl-safer (Files): Likewise.
21432         Suggested by Eric Blake.
21433
21434 2009-05-21  Pádraig Brady  <P@draigbrady.com>
21435
21436         * doc/glibc-functions/fallocate.texi: New file.
21437         * doc/gnulib.texi: Include it.
21438
21439 2009-05-21  Eric Blake  <ebb9@byu.net>
21440             Bruno Haible  <bruno@clisp.org>
21441
21442         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
21443         invocations.
21444         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
21445
21446 2009-05-21  Eric Blake  <ebb9@byu.net>
21447             Bruno Haible  <bruno@clisp.org>
21448
21449         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
21450         include_next. Fix of 2008-11-20 commit.
21451         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
21452         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
21453         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
21454         NEXT_MATH_H.
21455         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
21456         instead of NEXT_MATH_H.
21457
21458 2009-05-21  Bruno Haible  <bruno@clisp.org>
21459
21460         Avoid redefinition warnings for SIZE_MAX.
21461         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
21462         Reported by Simon Josefsson.
21463
21464 2009-05-21  Bruno Haible  <bruno@clisp.org>
21465
21466         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
21467         AC_CACHE_VAL.
21468
21469 2009-05-20  Bruno Haible  <bruno@clisp.org>
21470
21471         Make zeroptr.h work on mingw.
21472         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
21473         mprotect.
21474         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
21475         * modules/memchr2-tests (configure.ac): Likewise.
21476         * modules/memcmp-tests (configure.ac): Likewise.
21477         * modules/memmem-tests (configure.ac): Likewise.
21478         * modules/memrchr-tests (configure.ac): Likewise.
21479         Reported by Simon Josefsson.
21480
21481 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21482
21483         * tests/test-glob.c: Include string.h for strcmp prototype.
21484
21485 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21486
21487         * modules/getdelim (Depends-on): Add explicit stdint, although it
21488         was implicitly already pulled in via realloc-posix.
21489         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
21490
21491 2009-05-20  Simon Josefsson  <simon@josefsson.org>
21492
21493         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
21494         G. Christensen" <tgc@jupiterrise.com>.
21495         * m4/sys_socket_h.m4: Check for sa_family_t.
21496         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
21497         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
21498         * tests/test-sys_socket.c: Check that sa_family_t works.
21499
21500 2009-05-18  Eric Blake  <ebb9@byu.net>
21501
21502         maint.mk: allow gnulib_dir in VPATH build
21503         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
21504
21505 2009-05-15  Jim Meyering  <meyering@redhat.com>
21506
21507         maint.mk: Give gnulib_dir a default definition.
21508         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
21509         Thus, most packages no longer need to specify this variable in cfg.mk
21510
21511 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
21512
21513         rename.m4: fix typos that would make non-mingw cross-configure fail
21514         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
21515
21516 2009-05-13  Eric Blake  <ebb9@byu.net>
21517
21518         mmap-anon: avoid out-of-order autoconf expansion
21519         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
21520         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
21521         * modules/memchr-tests (Depends-on): Add extensions.
21522         * modules/memchr2-tests (Depends-on): Add extensions.
21523         * modules/memcmp-tests (Depends-on): Add extensions.
21524         * modules/memmem-tests (Depends-on): Add extensions.
21525         * modules/memrchr-tests (Depends-on): Add extensions.
21526
21527 2009-05-13  Bruno Haible  <bruno@clisp.org>
21528
21529         Make some tests ISO C 99 compliant.
21530         * tests/zerosize-ptr.h: New file.
21531         * tests/test-memchr.c: Include zerosize-ptr.h.
21532         (main): Use a zero-size object pointer instead of NULL.
21533         * tests/test-memchr2.c: Include zerosize-ptr.h.
21534         (main): Use a zero-size object pointer instead of NULL.
21535         * tests/test-memcmp.c: Include zerosize-ptr.h.
21536         (main): Use a zero-size object pointer instead of NULL.
21537         * tests/test-memmem.c: Include zerosize-ptr.h.
21538         (main): Use a zero-size object pointer instead of NULL.
21539         * tests/test-memrchr.c: Include zerosize-ptr.h.
21540         (main): Use a zero-size object pointer instead of NULL.
21541         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
21542         m4/mmap-anon.m4.
21543         (Depends-on): Add getpagesize.
21544         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21545         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
21546         m4/mmap-anon.m4.
21547         (Depends-on): Add getpagesize.
21548         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21549         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
21550         m4/mmap-anon.m4.
21551         (Depends-on): Add getpagesize.
21552         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21553         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
21554         m4/mmap-anon.m4.
21555         (Depends-on): Add getpagesize.
21556         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21557         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
21558         m4/mmap-anon.m4.
21559         (Depends-on): Add getpagesize.
21560         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
21561
21562 2009-05-12  Bruno Haible  <bruno@clisp.org>
21563
21564         Tests for module 'alignof'.
21565         * modules/alignof-tests: New file.
21566         * tests/test-alignof.c: New file.
21567
21568 2009-05-12  Bruno Haible  <bruno@clisp.org>
21569
21570         Fix alignof macro.
21571         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
21572         vendor compilers that are always correct.
21573
21574 2009-05-12  Bruno Haible  <bruno@clisp.org>
21575
21576         Make the MAP_ANONYMOUS detection work on HP-UX 11.
21577         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
21578         not whether its fully works.
21579
21580 2009-05-12  Bruno Haible  <bruno@clisp.org>
21581
21582         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
21583
21584 2009-05-12  Jim Meyering  <meyering@redhat.com>
21585
21586         * top/maint.mk: Adjust backslash alignment.
21587
21588 2009-05-11  Simon Josefsson  <simon@josefsson.org>
21589
21590         * top/maint.mk: Make $(srcdir)/build-aux configurable.
21591
21592 2009-05-11  Eric Blake  <ebb9@byu.net>
21593
21594         argp: avoid undefined behavior
21595         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
21596         macros.
21597
21598 2009-05-08  Simon Josefsson  <simon@josefsson.org>
21599
21600         * tests/test-vc-list-files-git.sh: Do git config of user.email and
21601         user.name to prevent git commit from complaining.
21602
21603 2009-05-10  Bruno Haible  <bruno@clisp.org>
21604
21605         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
21606         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
21607         it rewrites every file name only once.
21608         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
21609
21610 2009-05-08  Bruno Haible  <bruno@clisp.org>
21611
21612         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
21613         instead of 'max'.
21614
21615 2009-05-08  Simon Josefsson  <simon@josefsson.org>
21616
21617         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
21618         sockaddr_storage test.
21619
21620 2009-05-07  Simon Josefsson  <simon@josefsson.org>
21621
21622         * modules/sys_socket (Makefile.am): Substitute
21623         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
21624         * m4/sys_socket_h.m4: Check for sockaddr_storage.
21625         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
21626         * tests/test-sys_socket.c: Check sockaddr_storage.
21627
21628 2009-05-08  Bruno Haible  <bruno@clisp.org>
21629
21630         New module 'alignof'.
21631         * lib/alignof.h: New file.
21632         * modules/alignof: New file.
21633
21634 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21635             Bruno Haible  <bruno@clisp.org>
21636
21637         Fix test-file-has-acl on FreeBSD.
21638         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
21639         mask is implicitly added.
21640         * tests/test-file-has-acl.c: Include <signal.h>.
21641         (main): Terminate the test after 5 seconds.
21642         * modules/acl-tests (configure.ac): Check for alarm function.
21643
21644 2009-05-04  Bruno Haible  <bruno@clisp.org>
21645
21646         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
21647         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
21648         * modules/errno (configure.ac): Drop AC_REQUIRE.
21649         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
21650         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
21651
21652 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21653
21654         * modules/glob-tests: New module.
21655         * tests/test-glob.c: Add.
21656
21657 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21658
21659         * modules/fnmatch-tests: New module.
21660         * tests/test-fnmatch.c: Add.
21661
21662 2009-05-04  Eric Blake  <ebb9@byu.net>
21663
21664         maint: make the new no-submodule-changes rule VPATH-safe
21665         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
21666
21667 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21668             Bruno Haible  <bruno@clisp.org>
21669
21670         acl: Fix infinite loop on FreeBSD.
21671         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
21672         of return value from acl_get_entry.
21673         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
21674         Likewise.
21675
21676 2009-05-03  Bruno Haible  <bruno@clisp.org>
21677
21678         * lib/acl-internal.h (acl_entries): Clarify return value.
21679         * lib/acl_entries.c (acl_entries): Likewise.
21680
21681 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21682
21683         Bug fix in acl module.
21684         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
21685
21686 2009-05-03  Bruno Haible  <bruno@clisp.org>
21687
21688         Create gperf-generated file in the source dir, not in the build dir.
21689         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
21690         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
21691         * modules/unicase/locale-language (unicase/locale-languages.h):
21692         Likewise.
21693         * modules/unicase/special-casing (unicase/special-casing-table.h):
21694         Likewise.
21695         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
21696         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
21697         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
21698         Reported by Ralf Wildenhues.
21699
21700 2009-05-03  Bruno Haible  <bruno@clisp.org>
21701
21702         * modules/fnmatch (Description, configure.ac): Taken from
21703         fnmatch-posix.
21704         * modules/fnmatch-posix: Turn into a symbolic reference to the
21705         'fnmatch' module, and deprecate.
21706         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
21707
21708 2009-05-03  Bruno Haible  <bruno@clisp.org>
21709
21710         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
21711         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
21712         Reported by Ralf Wildenhues.
21713
21714 2009-05-04  Simon Josefsson  <simon@josefsson.org>
21715
21716         * m4/fnmatch.m4: Fix fnmatch re-define.
21717
21718 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
21719
21720         priv-set: new module and tests; adapt write-any-file
21721         * lib/priv-set.c: New file.
21722         * lib/priv-set.h: New file.
21723         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
21724         * lib/write-any-file.c: Simplify by using priv-set module.
21725         * m4/priv-set.m4: New file.
21726         * modules/priv-set: New file.
21727         * modules/unlinkdir: Add dependency on priv-set module.
21728         * modules/write-any-file: Likewise.
21729
21730         Tests for module 'priv-set'.
21731         * modules/priv-set-tests: New file.
21732         * tests/test-priv-set.c: New file.
21733
21734 2009-05-03  Jim Meyering  <meyering@redhat.com>
21735             Bruno Haible  <bruno@clisp.org>
21736
21737         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
21738         use the converted UTF-8 variant of the name instead.
21739
21740 2009-05-03  Jim Meyering  <meyering@redhat.com>
21741
21742         tests: tighten some getdate tests
21743         * tests/test-getdate.c (main): Tighten tests: require equality,
21744         not just greater than.  Set TZ envvar to UTC0.
21745
21746 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
21747
21748         getdate: correctly interpret "next monday" when run on a Monday
21749         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
21750         that e.g., "next tues" (when run on a tuesday) results in a date
21751         that is one week in the future, and not today's date.
21752         I.e., add a week when the wday is the same as the current one.
21753         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
21754         and earlier by Martin Bernreuther and Jan Minář.
21755         * tests/test-getdate.c (main): Check that "next DAY" is always in
21756         the future and that "last DAY" is always in the past.
21757
21758 2009-05-02  Jim Meyering  <meyering@redhat.com>
21759
21760         build: ensure that a release build fails when a submodule is unclean
21761         * top/maint.mk (no-submodule-changes): New rule.
21762         (alpha beta major): Depend on it.
21763
21764 2009-05-02  Bruno Haible  <bruno@clisp.org>
21765
21766         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
21767         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
21768         shell variable gl_fnmatch_required to detect which variant is
21769         requested.
21770         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
21771         gl_FUNC_FNMATCH_POSIX.
21772         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
21773         exclude fnmatch-posix.
21774
21775 2009-05-02  Bruno Haible  <bruno@clisp.org>
21776
21777         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
21778         * modules/mbsrtowcs (License): Change to LGPLv2+.
21779         * modules/strnlen1 (License): Likewise.
21780         Reported by Simon Josefsson.
21781
21782 2009-05-02  Bruno Haible  <bruno@clisp.org>
21783
21784         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
21785         "cross".
21786         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
21787         gnulib-tool was called with option --source-base=lib.
21788
21789 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21790
21791         Use automake *-local hooks without commands, for extensibility.
21792         * modules/localcharset (Makefile.am): Rename install-exec-local
21793         rule to install-exec-localcharset, and make it a prerequisite of
21794         install-exec-local.  Likewise, rename the uninstall-local rule to
21795         uninstall-localcharset, and make it a prerequisite of the former.
21796
21797 2009-05-01  Bruno Haible  <bruno@clisp.org>
21798
21799         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
21800         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
21801         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
21802         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
21803         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
21804         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
21805         m4/locale-zh.m4, m4/codeset.m4.
21806
21807         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
21808         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
21809         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
21810         m4/locale-zh.m4.
21811
21812         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
21813         REPLACE_WCRTOMB if mbstate_t must be replaced.
21814         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
21815         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
21816
21817 2009-05-01  Bruno Haible  <bruno@clisp.org>
21818
21819         Avoid compiler warnings when redefining macros defined by <libintl.h>.
21820         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
21821         dngettext, dcngettext, textdomain, bindtextdomain,
21822         bind_textdomain_codeset): Undefine before redefining.
21823
21824 2009-04-30  Bruno Haible  <bruno@clisp.org>
21825
21826         Fix bug introduced on 2009-04-25.
21827         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
21828         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
21829         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
21830         is defined.
21831         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
21832         is defined.
21833         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
21834         is defined.
21835         Reported by Elbert_Pol <elbert.pol@gmail.com>.
21836
21837 2009-04-28  Bruno Haible  <bruno@clisp.org>
21838
21839         Comment tweaks.
21840         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
21841         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
21842         * lib/unicase.h (u*_casexfrm): Likewise.
21843         Reported by Paolo Bonzini.
21844
21845 2009-04-28  Bruno Haible  <bruno@clisp.org>
21846
21847         Fix a compilation error.
21848         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
21849         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
21850         Reported by Jim Meyering.
21851
21852 2009-04-27  Bruno Haible  <bruno@clisp.org>
21853
21854         New module 'libunistring'.
21855         * modules/libunistring: New file.
21856         * m4/libunistring.m4: New file.
21857         * MODULES.html.sh (Unicode string functions): Add it.
21858
21859 2009-04-27  Eric Blake  <ebb9@byu.net>
21860
21861         maint.mk: allow package-specific header to provide <config.h>
21862         * top/maint.mk (sc_require_config_h): New variable.
21863         (sc_require_config_h, sc_require_config_h_first): Use it.
21864
21865 2009-04-27  Simon Josefsson  <simon@josefsson.org>
21866
21867         * top/maint.mk (sc_avoid_if_before_free): Except
21868         useless-if-before-free script.
21869
21870 2009-04-27  Eric Blake  <ebb9@byu.net>
21871
21872         maintainer-makefile: depend on all required helper scripts
21873         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
21874         useless-if-before-free.
21875         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
21876         version, rather than assuming gnulib checkout is available.
21877         Reported by Simen Josefsson.
21878
21879 2009-04-26  Bruno Haible  <bruno@clisp.org>
21880
21881         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
21882         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
21883         "../" or "..".
21884
21885 2009-04-26  Bruno Haible  <bruno@clisp.org>
21886
21887         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
21888         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
21889         AC_LIB_HAVE_LINKFLAGS.
21890
21891 2009-04-26  Bruno Haible  <bruno@clisp.org>
21892
21893         Simplify calling convention of u*_conv_from_encoding.
21894         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
21895         u32_conv_from_encoding): Expect a resultbuf argument and return the
21896         result directly as a pointer.
21897         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
21898         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
21899         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
21900         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
21901         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
21902         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
21903         Update.
21904         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
21905         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
21906         * lib/vasnprintf.c (VASNPRINTF): Update.
21907         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
21908         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
21909         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
21910         * NEWS: Mention the change.
21911
21912 2009-04-26  Bruno Haible  <bruno@clisp.org>
21913
21914         Simplify calling convention of u*_conv_to_encoding.
21915         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
21916         u32_conv_to_encoding): Expect a resultbuf argument and return the
21917         result directly as a pointer.
21918         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
21919         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
21920         freeing scaled_offsets if mem_iconveha failed.
21921         * lib/unicase/u-casexfrm.h (FUNC): Update.
21922         * lib/uninorm/u-normxfrm.h (FUNC): Update.
21923         * lib/vasnprintf.c (VASNPRINTF): Update.
21924         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
21925         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
21926         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
21927         * NEWS: Mention the change.
21928
21929 2009-04-26  Bruno Haible  <bruno@clisp.org>
21930
21931         Avoid test failures on AIX and OSF/1.
21932         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
21933         malloc(0).
21934         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
21935         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
21936         Likewise.
21937         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
21938         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
21939         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
21940         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
21941         * doc/posix-functions/malloc.texi: Document the portability problem
21942         related to malloc(0).
21943
21944 2009-04-26  Bruno Haible  <bruno@clisp.org>
21945
21946         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
21947         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
21948         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
21949
21950 2009-04-25  Bruno Haible  <bruno@clisp.org>
21951
21952         Avoid link error when creating a namespace clean library.
21953         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
21954         as macro with arguments if already defined as an alias.
21955         * lib/signbitf.c (gl_signbitf): Don't undefine.
21956         * lib/signbitd.c (gl_signbitd): Don't undefine.
21957         * lib/signbitl.c (gl_signbitl): Don't undefine.
21958
21959 2009-04-25  Jim Meyering  <meyering@redhat.com>
21960
21961         vc-list-files: fix another quoting bug
21962         * build-aux/vc-list-files: Avoid sed backslash expansion
21963         of pathological directory names.
21964
21965 2009-04-25  Eric Blake  <ebb9@byu.net>
21966
21967         vc-list-files: fix shell quoting error
21968         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
21969         timestamp.
21970
21971 2009-04-25  Jim Meyering  <meyering@redhat.com>
21972
21973         vc-list-files: restore lost functionality with subdir argument
21974         * build-aux/vc-list-files: When given a non-"." sub-directory
21975         argument, substitute the $dir/ prefix back onto each resulting name.
21976         Otherwise, coreutils' root_tests check would fail.
21977
21978 2009-04-24  Eric Blake  <ebb9@byu.net>
21979
21980         vc-list-files: ignore git symlinks
21981         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
21982         than ls-files, to ignore git symlinks.
21983
21984         maint.mk: import improvements from m4
21985         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
21986         (move_if_change): Delete unused macro.
21987         (news-date-check, vc-diff-check): Support VPATH builds.
21988         (announcement): Likewise.  Split --bootstrap-tools list...
21989         (boostrap-tools): ...into separate list, which can be overridden
21990         in cfg.mk.
21991         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
21992         requiring dependency on useless-if-before-free module.
21993         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
21994         Support VPATH builds.
21995
21996 2009-04-24  Jim Meyering  <meyering@redhat.com>
21997
21998         maint.mk: remove coreutils-specific rules and variables
21999         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
22000         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
22001         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
22002
22003         maint.mk: remove obsolete rule
22004         * top/maint.mk (rel-check): Remove rule.
22005         (WGET, WGETFLAGS): Remove now-unused variables.
22006
22007 2009-04-24  Simon Josefsson  <simon@josefsson.org>
22008
22009         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
22010         consistency.
22011
22012         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
22013         '$(PATH_SEPARATOR)' instead of ':'.
22014
22015 2009-04-24  Simon Josefsson  <simon@josefsson.org>
22016
22017         * lib/getopt1.c (main): Use 'const' for static array.
22018
22019 2009-04-24  Simon Josefsson  <simon@josefsson.org>
22020
22021         * top/maint.mk: Sync with coreutils.
22022         * NEWS: Explain incompatibilities.
22023
22024 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
22025             Bruno Haible  <bruno@clisp.org>
22026
22027         Fix cross-compilation results.
22028         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
22029         statement, as third argument of AC_TRY_RUN.
22030         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22031         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
22032         Likewise.
22033         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22034         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22035         Likewise.
22036         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22037         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
22038         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
22039
22040 2009-04-20  Bruno Haible  <bruno@clisp.org>
22041
22042         Avoid test failure on mingw.
22043         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
22044
22045 2009-04-20  Bruno Haible  <bruno@clisp.org>
22046
22047         Avoid compilation error on mingw.
22048         * modules/localename-tests (Depends-on): Add locale.
22049
22050 2009-04-19  Bruno Haible  <bruno@clisp.org>
22051
22052         Support for building a shared library on Windows platforms.
22053         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
22054         (main): Test the presence of UNINORM_NFC here.
22055         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
22056         (main): Test the presence of UNINORM_NFD here.
22057         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
22058         (main): Test the presence of UNINORM_NFKC here.
22059         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
22060         (main): Test the presence of UNINORM_NFKD here.
22061
22062 2009-04-19  Bruno Haible  <bruno@clisp.org>
22063
22064         Avoid a compiler warning.
22065         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
22066         Change type of variable 'sequence'.
22067
22068 2009-04-19  Bruno Haible  <bruno@clisp.org>
22069
22070         * modules/configmake (Makefile.am): When the contents of configmake.h
22071         does not change, arrange to preserve its modification time.
22072
22073 2009-04-17  Simon Josefsson  <simon@josefsson.org>
22074
22075         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
22076         gettext domain.
22077
22078 2009-04-16  Jim Meyering  <meyering@redhat.com>
22079
22080         useless-if-before-free: improve conversion code
22081         * build-aux/useless-if-before-free: Adjust code-in-comment to match
22082         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
22083
22084 2009-04-14  Bruno Haible  <bruno@clisp.org>
22085
22086         * modules/fcntl (Depends-on): Add extensions.
22087         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
22088
22089 2009-04-12  Ben Pfaff  <blp@gnu.org>
22090
22091         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
22092         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
22093
22094 2009-03-20  Ben Pfaff  <blp@gnu.org>
22095
22096         Make rename replace existing destinations on Windows.
22097         * m4/rename.m4: Add test for Mingw.
22098         * lib/rename.c: Add rename replacement that uses MoveFileEx with
22099         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
22100         * doc/posix-functions/rename.texi: Document.
22101
22102 2009-04-10  Bruno Haible  <bruno@clisp.org>
22103
22104         New include file "iconveh.h".
22105         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
22106         * lib/striconveh.h: Include it.
22107         (enum iconv_ilseq_handler): Remove definition.
22108         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
22109         striconveh.h.
22110         * lib/striconveha.c: Include striconveh.h.
22111         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
22112         * modules/striconveh (Files): Add lib/iconveh.h.
22113         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
22114         lib/striconveh.h.
22115
22116 2009-04-10  Bruno Haible  <bruno@clisp.org>
22117
22118         * lib/uniconv.h: Update comment.
22119
22120 2009-04-10  Bruno Haible  <bruno@clisp.org>
22121
22122         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
22123         always.
22124         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
22125         * lib/unistr/u16-mbtouc-aux.c: Likewise.
22126         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
22127         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
22128         "unistring-notinline.h", so that the function gets defined always.
22129         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
22130         * lib/unistr/u8-uctomb.c: Likewise.
22131         * lib/unistr/u16-mbtouc.c: Likewise.
22132         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
22133         * lib/unistr/u16-uctomb.c: Likewise.
22134         * lib/unistr/u32-mbtouc.c: Likewise.
22135         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
22136         * lib/unistr/u32-uctomb.c: Likewise.
22137
22138 2009-04-10  Bruno Haible  <bruno@clisp.org>
22139
22140         Mark 'utime' obsolete.
22141         * modules/utime (Status, Notice): New sections.
22142         Suggested by Jim Meyering.
22143
22144         Fix cross-compile guess for utime test.
22145         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
22146         autoconf.
22147         * doc/posix-functions/utime.texi: Give more precisions.
22148         Reported by Jan <ipif@ymail.com>.
22149
22150 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
22151
22152         filevercmp: correct today's change
22153         * lib/filevercmp.c: Also handle coreutils' test inputs.
22154         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
22155
22156         Fix regression in 'filevercmp' module. Thanks Sven Joachim
22157         for reporting it.
22158         * lib/filevercmp.c: Special handle for "", "." and "..".
22159         * tests/test-filevercmp.c: Enlarge the set suite.
22160
22161 2009-04-07  Jim Meyering  <meyering@redhat.com>
22162
22163         useless-if-before-free: show how to remove braced useless free, too
22164         * build-aux/useless-if-before-free: still only in a comment, though.
22165
22166 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
22167
22168         maint.mk: import changes to syntax-check macros from coreutils
22169         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
22170         Use them in the relevant macros.
22171
22172 2009-04-06  Bruno Haible  <bruno@clisp.org>
22173
22174         Fix unportable use of bit-fields.
22175         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
22176         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
22177         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
22178
22179 2009-04-06  Bruno Haible  <bruno@clisp.org>
22180
22181         Avoid test failures on AIX and OSF/1.
22182         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
22183         that malloc(0) = NULL.
22184         * tests/unicase/test-u8-tolower.c (check): Likewise.
22185         * tests/unicase/test-u8-totitle.c (check): Likewise.
22186         * tests/unicase/test-u8-toupper.c (check): Likewise.
22187         * tests/unicase/test-u16-casefold.c (check): Likewise.
22188         * tests/unicase/test-u16-tolower.c (check): Likewise.
22189         * tests/unicase/test-u16-totitle.c (check): Likewise.
22190         * tests/unicase/test-u16-toupper.c (check): Likewise.
22191         * tests/unicase/test-u32-casefold.c (check): Likewise.
22192         * tests/unicase/test-u32-tolower.c (check): Likewise.
22193         * tests/unicase/test-u32-totitle.c (check): Likewise.
22194         * tests/unicase/test-u32-toupper.c (check): Likewise.
22195         * tests/uninorm/test-u8-nfc.c (check): Likewise.
22196         * tests/uninorm/test-u8-nfd.c (check): Likewise.
22197         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
22198         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
22199         * tests/uninorm/test-u16-nfc.c (check): Likewise.
22200         * tests/uninorm/test-u16-nfd.c (check): Likewise.
22201         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
22202         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
22203         * tests/uninorm/test-u32-nfc.c (check): Likewise.
22204         * tests/uninorm/test-u32-nfd.c (check): Likewise.
22205         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
22206         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
22207
22208 2009-04-05  Bruno Haible  <bruno@clisp.org>
22209
22210         Work around an autoconf limitation.
22211         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
22212         comment line if it would be longer than 3 KB.
22213
22214 2009-04-05  Bruno Haible  <bruno@clisp.org>
22215
22216         Avoid test failure with libiconv-1.13.
22217         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
22218         of the expected test results.
22219
22220 2009-04-05  Bruno Haible  <bruno@clisp.org>
22221
22222         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
22223         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
22224         that it should be installed.
22225
22226 2009-04-05  Bruno Haible  <bruno@clisp.org>
22227
22228         * gnulib-tool: New option --copy-file.
22229         (func_usage): Document it.
22230         (func_dest_tmpfilename): Moved out of func_import.
22231         (func_add_file, func_update_file): New functions, extracted from
22232         func_import.
22233         (func_import): Update.
22234
22235 2009-04-05  Karl Berry  <karl@gnu.org>
22236
22237         * README: prominently mention gnulib-tool.
22238         Rearrange sections so getting the code is near the top.
22239
22240 2009-04-05  Bruno Haible  <bruno@clisp.org>
22241
22242         * lib/unicase.h: Mention u*_cmp2.
22243         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
22244         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
22245         * lib/unicase/ulc-casecmp.c: Likewise.
22246         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
22247         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
22248         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
22249         unistr/u8-cmp.
22250         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
22251         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
22252         unistr/u16-cmp.
22253         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
22254         unistr/u32-cmp.
22255
22256         * lib/uninorm.h: Mention u*_cmp2.
22257         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
22258         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
22259         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
22260         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
22261         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
22262         unistr/u8-cmp.
22263         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
22264         unistr/u16-cmp.
22265         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
22266         unistr/u32-cmp.
22267
22268         New module 'unistr/u32-cmp2'.
22269         * lib/unistr/u32-cmp2.c: New file.
22270         * modules/unistr/u32-cmp2: New file.
22271
22272         New module 'unistr/u16-cmp2'.
22273         * lib/unistr/u16-cmp2.c: New file.
22274         * modules/unistr/u16-cmp2: New file.
22275
22276         New module 'unistr/u8-cmp2'.
22277         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
22278         * lib/unistr/u8-cmp2.c: New file.
22279         * lib/unistr/u-cmp2.h: New file.
22280         * modules/unistr/u8-cmp2: New file.
22281
22282 2009-04-05  Bruno Haible  <bruno@clisp.org>
22283
22284         * lib/unictype.h (uc_property_is_valid): New macro.
22285         * tests/unictype/test-pr_byname.c (main): Use it.
22286
22287         * lib/unistr.h: Doc fixes.
22288         * lib/uniconv.h: Doc fixes.
22289         * lib/unictype.h: Doc fixes.
22290
22291 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
22292
22293         Port coreutils 7.2 to Solaris 8.
22294
22295         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
22296         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
22297         for Solaris 8.  This is a bit of a hack, as it means it's the
22298         caller's responsibility to add -lnsl if needed, but most likely it
22299         won't be needed since only getaddrinfo uses this and getaddrinfo
22300         isn't needed on Solaris 8.
22301
22302         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
22303         problem to Solaris 8 encountered with coreutils 7.2, which
22304         resulted in a message "fnmatch.c:292: warning: passing argument 4
22305         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
22306         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
22307
22308 2009-04-03  Simon Josefsson  <simon@josefsson.org>
22309
22310         * m4/ld-version-script.m4: Add FIXME comment.
22311
22312 2009-04-02  Simon Josefsson  <simon@josefsson.org>
22313
22314         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
22315         SOVERSION variable.
22316
22317 2009-04-02  Bruno Haible  <bruno@clisp.org>
22318
22319         * Makefile (info, html, dvi, pdf): Combine the rules.
22320         Suggested by Jim Meyering.
22321
22322 2009-04-01  Bruno Haible  <bruno@clisp.org>
22323
22324         * Makefile (info, html, dvi, pdf): New targets.
22325         Reported by Reuben Thomas <rrt@sc3d.org>.
22326
22327 2009-04-01  Bruno Haible  <bruno@clisp.org>
22328
22329         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
22330         can be put into PATH.
22331         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
22332
22333 2009-04-01  Bruno Haible  <bruno@clisp.org>
22334
22335         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
22336
22337 2009-04-01  Bruno Haible  <bruno@clisp.org>
22338
22339         Rename module 'visibility'.
22340         * modules/lib-symbol-visibility: Renamed from modules/visibility.
22341         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
22342         * doc/gnulib.texi: Update.
22343         * MODULES.html.sh (Misc): Update.
22344         * NEWS: Mention the change.
22345
22346 2009-04-01  Simon Josefsson  <simon@josefsson.org>
22347
22348         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
22349         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
22350         Eric Blake <ebb9@byu.net> for review.
22351         * MODULES.html.sh: Add lib-msvc-compat.
22352         * doc/gnulib.texi: Link to new section.
22353         * m4/ld-output-def.m4: New file.
22354         * doc/ld-output-def.texi: New file.
22355
22356 2009-04-01  Simon Josefsson  <simon@josefsson.org>
22357
22358         Rename ld-version-script to lib-symbol-versions.  Suggested by
22359         Bruno Haible <bruno@clisp.org>.
22360         * modules/ld-version-script: Renamed to lib-symbol-versions.
22361         * doc/ld-version-script.texi: Fix module name.
22362         * MODULES.html.sh: Add lib-symbol-versions.
22363
22364 2009-03-31  Simon Josefsson  <simon@josefsson.org>
22365
22366         * modules/u64-tests: New file.
22367         * tests/test-u64.c: New file.
22368
22369 2009-03-04  Simon Josefsson  <simon@josefsson.org>
22370
22371         * MODULES.html.sh: Mention u64.
22372         * modules/u64: New module.
22373         * modules/crypto/sha512: Depend on u64 module instead of providing
22374         u64.h.
22375
22376 2009-03-27  Eric Blake  <ebb9@byu.net>
22377
22378         test-strerror: make debugging EAI_SYSTEM easier
22379         * modules/getaddrinfo-tests (Depends-on): Add strerror.
22380         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
22381         failure was EAI_SYSTEM.
22382
22383 2009-03-25  Bruno Haible  <bruno@clisp.org>
22384
22385         Fix a problem with --enable-relocatable on Solaris 7.
22386         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
22387         since 2008-02-24.
22388
22389 2009-03-25  Eric Blake  <ebb9@byu.net>
22390
22391         test-sockets: avoid gcc warning
22392         * tests/test-sockets.c (main): Silence compiler warning.
22393
22394 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
22395
22396         New modules nproc, pthread, contributed by Glen Lenker.
22397
22398         * MODULES.html.sh: Add pthread, nproc.
22399         * lib/nproc.c: New file.
22400         * lib/nproc.h: New file.
22401         * lib/pthread.in.h: New file.
22402         * m4/pthread.m4: New file.
22403         * modules/nproc: New file.
22404         * modules/pthread: New file.
22405
22406 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22407
22408         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
22409         New variable.
22410
22411 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
22412
22413         filevercmp: handle simple~ and numbered.~3~ backup suffixes
22414         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
22415         * tests/test-filevercmp.c: Add tests for backup suffixes.
22416
22417 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22418
22419         * modules/stdlib (Depends-on): Add stdint, needed when defining
22420         struct random_data on, for example, HP-UX 10.20.  Reported by
22421         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22422
22423 2009-03-24  Simon Josefsson  <simon@josefsson.org>
22424
22425         * lib/readline.c (readline): Call fflush on stdout after printing
22426         prompt.
22427
22428 2009-03-20  Bruno Haible  <bruno@clisp.org>
22429
22430         Remove dependency from 'close' module to -lws2_32 on native Windows.
22431         * lib/close-hook.h: New file.
22432         * lib/close-hook.c: New file.
22433         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
22434         w32sock.h.
22435         (_gl_close_fd_maybe_socket): Remove function.
22436         (rpl_close): Invoke execute_all_close_hooks instead of
22437         _gl_close_fd_maybe_socket.
22438         * lib/sockets.c: Include close-hook.h, w32sock.h.
22439         (close_fd_maybe_socket): New function, essentially from lib/close.c.
22440         (close_sockets_hook): New variable.
22441         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
22442         (gl_sockets_cleanup): Unregister it.
22443         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
22444         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
22445         * modules/close-hook: New file.
22446         * modules/close (Files): Remove lib/w32sock.h.
22447         (Depends-on): Add close-hook.
22448         (Link): Remove section.
22449         * modules/sockets (Files): Add lib/w32sock.h.
22450         (Depends-on): Add close-hook.
22451         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
22452         invocation.
22453         * NEWS: Mention that LIB_CLOSE is gone.
22454
22455 2009-03-23  Eric Blake  <ebb9@byu.net>
22456
22457         signal-tests: test previous patch
22458         * tests/test-signal.c: New file.
22459         * modules/signal-tests: Likewise.
22460
22461         signal.h: always support 'volatile sig_atomic_t'
22462         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
22463         (gl_SIGNAL_H_DEFAULTS): Add a default.
22464         * modules/signal (Makefile.am): Substitute if needed.
22465         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
22466         users can blindly add volatile.
22467         * doc/posix-headers/signal.texi (signal.h): Document it.
22468         Reported by Matthew Woehlke.
22469
22470 2009-03-23  Jim Meyering  <meyering@redhat.com>
22471
22472         pathmax: PATH_MAX: use pathconf only when available
22473         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
22474         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
22475         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
22476         This avoids a link failure in a PSP cross-compilation environment
22477         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
22478
22479         * lib/vasnprintf.c (divide): Fix typo in comment.
22480
22481 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22482
22483         * gnulib-tool (func_filter_filelist): Fix comment.
22484
22485 2009-03-20  Bruno Haible  <bruno@clisp.org>
22486
22487         Make sockets.h self-contained.
22488         * lib/sockets.c: Include sockets.h first.
22489         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
22490
22491 2009-03-19  Eric Blake  <ebb9@byu.net>
22492
22493         doc: mention more functions added in cygwin 1.7.0
22494         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
22495         addition.
22496         * doc/posix-functions/log2f.texi: Likewise.
22497
22498 2009-03-19  Jim Meyering  <meyering@redhat.com>
22499
22500         fsusage: avoid syntax error due to statement-before-declaration
22501         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
22502         after all declarations.  Reported by Matthew Woehlke in
22503         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
22504
22505 2009-03-18  Eric Blake  <ebb9@byu.net>
22506
22507         build-aux/compile: sync from automake
22508         * build-aux/compile: New file, from automake.
22509         * config/srclist.txt: Mention build-aux/compile.
22510
22511 2009-03-17  Bruno Haible  <bruno@clisp.org>
22512
22513         * lib/git-merge-changelog.c: Fix typo in comment.
22514         Reported by Reuben Thomas <rrt@sc3d.org>.
22515
22516 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
22517
22518         * m4/regex.m4: update and improve help for
22519         --without-included-regex.
22520
22521 2009-03-17  Simon Josefsson  <simon@josefsson.org>
22522
22523         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
22524         failure on missing include files.
22525
22526 2009-03-17  Eric Blake  <ebb9@byu.net>
22527
22528         doc: mention more functions added in cygwin 1.7.0
22529         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
22530         addition.
22531         * doc/posix-functions/fwscanf.texi: Likewise.
22532         * doc/posix-functions/swprintf.texi: Likewise.
22533         * doc/posix-functions/swscanf.texi: Likewise.
22534         * doc/posix-functions/vfwprintf.texi: Likewise.
22535         * doc/posix-functions/vfwscanf.texi: Likewise.
22536         * doc/posix-functions/vswprintf.texi: Likewise.
22537         * doc/posix-functions/vswscanf.texi: Likewise.
22538         * doc/posix-functions/vwprintf.texi: Likewise.
22539         * doc/posix-functions/vwscanf.texi: Likewise.
22540         * doc/posix-functions/wcscasecmp.texi: Likewise.
22541         * doc/posix-functions/wcsdup.texi: Likewise.
22542         * doc/posix-functions/wcsftime.texi: Likewise.
22543         * doc/posix-functions/wcsncasecmp.texi: Likewise.
22544         * doc/posix-functions/wprintf.texi: Likewise.
22545         * doc/posix-functions/wscanf.texi: Likewise.
22546         * doc/glibc-functions/gethostbyname2.texi: Likewise.
22547
22548 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22549
22550         maint.mk: really add $(AM_MAKEFLAGS)
22551         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
22552         was inadvertently omitted in the last commit.
22553         Spotted by Bruno Haible.
22554
22555         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
22556         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
22557         $(AM_MAKEFLAGS)' rather than plain `make'.
22558
22559         gnulib-tool: execute $MAKE not make
22560         * gnulib-tool: Default $MAKE to 'make'.
22561         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
22562         than make.  Initialize $MAKE in the do-autobuild script.
22563
22564         gnulib-tool: use $MAKE not make in generated files
22565         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
22566         make, in generated files.  Initialize $MAKE in the do-autobuild
22567         script.
22568
22569         * top/GNUmakefile (_have-git-version-gen): Fix typo.
22570
22571         GNUmakefile: disable parallelism only for multiple, recursive targets
22572         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
22573         additions in the Makefile.
22574         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
22575         by Automake.
22576         (.NOTPARALLEL): Only disable parallel builds if multiple targets
22577         are listed on the command line and at least one of them is
22578         listed in $(ALL_RECURSIVE_TARGETS).
22579
22580 2009-03-14  Bruno Haible  <bruno@clisp.org>
22581
22582         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
22583         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
22584         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
22585         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
22586         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
22587         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
22588         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
22589         unistr/u8-uctomb.
22590         * modules/unistr/u8-strchr (Depends-on): Likewise.
22591         * modules/unistr/u8-strrchr (Depends-on): Likewise.
22592         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
22593         unistr/u16-uctomb.
22594         * modules/unistr/u16-strchr (Depends-on): Likewise.
22595         * modules/unistr/u16-strrchr (Depends-on): Likewise.
22596
22597 2009-03-12  Bruno Haible  <bruno@clisp.org>
22598
22599         Work around select() bug on Interix 3.5.
22600         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
22601         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
22602         * m4/select.m4: New file.
22603         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
22604         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
22605         * modules/select (Files): Add m4/select.m4.
22606         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
22607         * modules/nanosleep (Depends-on): Add select.
22608         * modules/poll (Depends-on): Likewise.
22609         * doc/posix-functions/select.texi: Mention the Interix bug.
22610         Reported by Markus Duft <mduft@gentoo.org>.
22611
22612         * lib/select.c: Renamed from lib/winsock-select.c.
22613         * modules/select (Files): Add lib/select.c, remove
22614         lib/winsock-select.c.
22615         (configure.ac): Update.
22616
22617 2009-03-12  Jim Meyering  <meyering@redhat.com>
22618
22619         avoid gcc warnings about unused macro definitions
22620         * lib/readtokens.c (STREQ): Remove unused definition.
22621         * lib/xmalloc.c (SIZE_MAX): Likewise.
22622         * lib/openat-die.c (N_): Likewise.
22623         * lib/mountlist.c (SIZE_MAX): Remove definition.
22624         Instead, include <stdint.h>.
22625         * lib/readutmp.c: Likewise.
22626         * modules/readutmp (Depends-on): Add stdint.
22627         * modules/mountlist (Depends-on): Add stdint.
22628         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
22629
22630 2009-03-10  Bruno Haible  <bruno@clisp.org>
22631
22632         Tests for module 'mbmemcasecoll'.
22633         * modules/mbmemcasecoll-tests: New file.
22634         * tests/test-mbmemcasecoll1.sh: New file.
22635         * tests/test-mbmemcasecoll2.sh: New file.
22636         * tests/test-mbmemcasecoll3.sh: New file.
22637         * tests/test-mbmemcasecoll.c: New file.
22638
22639         New module 'mbmemcasecoll'.
22640         * lib/mbmemcasecoll.h: New file.
22641         * lib/mbmemcasecoll.c: New file.
22642         * modules/mbmemcasecoll: New file.
22643
22644         * tests/test-mbmemcasecmp.h: New file, extracted from
22645         tests/test-mbmemcasecmp.c.
22646         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
22647         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
22648         (main): Update.
22649         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
22650
22651 2009-03-09  Bruno Haible  <bruno@clisp.org>
22652
22653         Tests for module 'mbmemcasecmp'.
22654         * modules/mbmemcasecmp-tests: New file.
22655         * tests/test-mbmemcasecmp1.sh: New file.
22656         * tests/test-mbmemcasecmp2.sh: New file.
22657         * tests/test-mbmemcasecmp3.sh: New file.
22658         * tests/test-mbmemcasecmp.c: New file.
22659
22660         New module 'mbmemcasecmp'.
22661         * lib/mbmemcasecmp.h: New file.
22662         * lib/mbmemcasecmp.c: New file.
22663         * modules/mbmemcasecmp: New file.
22664
22665 2009-03-09  Bruno Haible  <bruno@clisp.org>
22666
22667         Tests for module 'unicase/ulc-casecoll'.
22668         * modules/unicase/ulc-casecoll-tests: New file.
22669         * tests/unicase/test-ulc-casecoll1.sh: New file.
22670         * tests/unicase/test-ulc-casecoll2.sh: New file.
22671         * tests/unicase/test-ulc-casecoll.c: New file.
22672
22673         New module 'unicase/ulc-casecoll'.
22674         * lib/unicase.h (ulc_casecoll): New declaration.
22675         * lib/unicase/ulc-casecoll.c: New file.
22676         * modules/unicase/ulc-casecoll: New file.
22677
22678         New module 'unicase/ulc-casexfrm'.
22679         * lib/unicase.h (ulc_casexfrm): New declaration.
22680         * lib/unicase/ulc-casexfrm.c: New file.
22681         * modules/unicase/ulc-casexfrm: New file.
22682
22683 2009-03-09  Bruno Haible  <bruno@clisp.org>
22684
22685         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
22686         invocations.
22687
22688         * m4/mbscasecmp.m4: Remove file.
22689         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
22690         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
22691
22692         * m4/mbscasestr.m4: Remove file.
22693         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
22694         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
22695
22696         * m4/mbschr.m4: Remove file.
22697         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
22698         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
22699
22700         * m4/mbscspn.m4: Remove file.
22701         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
22702         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
22703
22704         * m4/mbslen.m4: Remove file.
22705         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
22706         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
22707
22708         * m4/mbsncasecmp.m4: Remove file.
22709         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
22710         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
22711
22712         * m4/mbsnlen.m4: Remove file.
22713         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
22714         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
22715
22716         * m4/mbspbrk.m4: Remove file.
22717         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
22718         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
22719
22720         * m4/mbspcasecmp.m4: Remove file.
22721         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
22722         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
22723
22724         * m4/mbsrchr.m4: Remove file.
22725         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
22726         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
22727
22728         * m4/mbssep.m4: Remove file.
22729         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
22730         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
22731
22732         * m4/mbsspn.m4: Remove file.
22733         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
22734         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
22735
22736         * m4/mbsstr.m4: Remove file.
22737         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
22738         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
22739
22740         * m4/mbstok_r.m4: Remove file.
22741         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
22742         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
22743
22744         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
22745
22746         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
22747         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
22748
22749         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
22750
22751 2009-03-08  Bruno Haible  <bruno@clisp.org>
22752
22753         Tests for module 'unicase/ulc-casecmp'.
22754         * modules/unicase/ulc-casecmp-tests: New file.
22755         * tests/unicase/test-ulc-casecmp1.sh: New file.
22756         * tests/unicase/test-ulc-casecmp2.sh: New file.
22757         * tests/unicase/test-ulc-casecmp.c: New file.
22758
22759         New module 'unicase/ulc-casecmp'.
22760         * lib/unicase.h (ulc_casecmp): New declaration.
22761         * lib/unicase/ulc-casecmp.c: New file.
22762         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
22763         'const SRC_UNIT *'.
22764         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
22765         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
22766         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
22767         * modules/unicase/ulc-casecmp: New file.
22768
22769         Tests for module 'unicase/u32-is-cased'.
22770         * modules/unicase/u32-is-cased-tests: New file.
22771         * tests/unicase/test-u32-is-cased.c: New file.
22772
22773         Tests for module 'unicase/u16-is-cased'.
22774         * modules/unicase/u16-is-cased-tests: New file.
22775         * tests/unicase/test-u16-is-cased.c: New file.
22776
22777         Tests for module 'unicase/u8-is-cased'.
22778         * modules/unicase/u8-is-cased-tests: New file.
22779         * tests/unicase/test-u8-is-cased.c: New file.
22780         * tests/unicase/test-is-cased.h: New file.
22781
22782         New module 'unicase/u32-is-cased'.
22783         * lib/unicase/u32-is-cased.c: New file.
22784         * modules/unicase/u32-is-cased: New file.
22785
22786         New module 'unicase/u16-is-cased'.
22787         * lib/unicase/u16-is-cased.c: New file.
22788         * modules/unicase/u16-is-cased: New file.
22789
22790         New module 'unicase/u8-is-cased'.
22791         * lib/unicase/u8-is-cased.c: New file.
22792         * lib/unicase/u-is-cased.h: New file.
22793         * modules/unicase/u8-is-cased: New file.
22794
22795         Tests for module 'unicase/u32-is-casefolded'.
22796         * modules/unicase/u32-is-casefolded-tests: New file.
22797         * tests/unicase/test-u32-is-casefolded.c: New file.
22798
22799         Tests for module 'unicase/u16-is-casefolded'.
22800         * modules/unicase/u16-is-casefolded-tests: New file.
22801         * tests/unicase/test-u16-is-casefolded.c: New file.
22802
22803         Tests for module 'unicase/u8-is-casefolded'.
22804         * modules/unicase/u8-is-casefolded-tests: New file.
22805         * tests/unicase/test-u8-is-casefolded.c: New file.
22806         * tests/unicase/test-is-casefolded.h: New file.
22807
22808         New module 'unicase/u32-is-casefolded'.
22809         * lib/unicase/u32-is-casefolded.c: New file.
22810         * modules/unicase/u32-is-casefolded: New file.
22811
22812         New module 'unicase/u16-is-casefolded'.
22813         * lib/unicase/u16-is-casefolded.c: New file.
22814         * modules/unicase/u16-is-casefolded: New file.
22815
22816         New module 'unicase/u8-is-casefolded'.
22817         * lib/unicase/u8-is-casefolded.c: New file.
22818         * modules/unicase/u8-is-casefolded: New file.
22819
22820         Tests for module 'unicase/u32-is-titlecase'.
22821         * modules/unicase/u32-is-titlecase-tests: New file.
22822         * tests/unicase/test-u32-is-titlecase.c: New file.
22823
22824         Tests for module 'unicase/u16-is-titlecase'.
22825         * modules/unicase/u16-is-titlecase-tests: New file.
22826         * tests/unicase/test-u16-is-titlecase.c: New file.
22827
22828         Tests for module 'unicase/u8-is-titlecase'.
22829         * modules/unicase/u8-is-titlecase-tests: New file.
22830         * tests/unicase/test-u8-is-titlecase.c: New file.
22831         * tests/unicase/test-is-titlecase.h: New file.
22832
22833         New module 'unicase/u32-is-titlecase'.
22834         * lib/unicase/u32-is-titlecase.c: New file.
22835         * modules/unicase/u32-is-titlecase: New file.
22836
22837         New module 'unicase/u16-is-titlecase'.
22838         * lib/unicase/u16-is-titlecase.c: New file.
22839         * modules/unicase/u16-is-titlecase: New file.
22840
22841         New module 'unicase/u8-is-titlecase'.
22842         * lib/unicase/u8-is-titlecase.c: New file.
22843         * modules/unicase/u8-is-titlecase: New file.
22844
22845         Tests for module 'unicase/u32-is-lowercase'.
22846         * modules/unicase/u32-is-lowercase-tests: New file.
22847         * tests/unicase/test-u32-is-lowercase.c: New file.
22848
22849         Tests for module 'unicase/u16-is-lowercase'.
22850         * modules/unicase/u16-is-lowercase-tests: New file.
22851         * tests/unicase/test-u16-is-lowercase.c: New file.
22852
22853         Tests for module 'unicase/u8-is-lowercase'.
22854         * modules/unicase/u8-is-lowercase-tests: New file.
22855         * tests/unicase/test-u8-is-lowercase.c: New file.
22856         * tests/unicase/test-is-lowercase.h: New file.
22857
22858         New module 'unicase/u32-is-lowercase'.
22859         * lib/unicase/u32-is-lowercase.c: New file.
22860         * modules/unicase/u32-is-lowercase: New file.
22861
22862         New module 'unicase/u16-is-lowercase'.
22863         * lib/unicase/u16-is-lowercase.c: New file.
22864         * modules/unicase/u16-is-lowercase: New file.
22865
22866         New module 'unicase/u8-is-lowercase'.
22867         * lib/unicase/u8-is-lowercase.c: New file.
22868         * modules/unicase/u8-is-lowercase: New file.
22869
22870         Tests for module 'unicase/u32-is-uppercase'.
22871         * modules/unicase/u32-is-uppercase-tests: New file.
22872         * tests/unicase/test-u32-is-uppercase.c: New file.
22873
22874         Tests for module 'unicase/u16-is-uppercase'.
22875         * modules/unicase/u16-is-uppercase-tests: New file.
22876         * tests/unicase/test-u16-is-uppercase.c: New file.
22877
22878         Tests for module 'unicase/u8-is-uppercase'.
22879         * modules/unicase/u8-is-uppercase-tests: New file.
22880         * tests/unicase/test-u8-is-uppercase.c: New file.
22881         * tests/unicase/test-is-uppercase.h: New file.
22882
22883         New module 'unicase/u32-is-uppercase'.
22884         * lib/unicase/u32-is-uppercase.c: New file.
22885         * modules/unicase/u32-is-uppercase: New file.
22886
22887         New module 'unicase/u16-is-uppercase'.
22888         * lib/unicase/u16-is-uppercase.c: New file.
22889         * modules/unicase/u16-is-uppercase: New file.
22890
22891         New module 'unicase/u8-is-uppercase'.
22892         * lib/unicase/u8-is-uppercase.c: New file.
22893         * modules/unicase/u8-is-uppercase: New file.
22894
22895         New module 'unicase/u32-is-invariant'.
22896         * lib/unicase/u32-is-invariant.c: New file.
22897         * modules/unicase/u32-is-invariant: New file.
22898
22899         New module 'unicase/u16-is-invariant'.
22900         * lib/unicase/u16-is-invariant.c: New file.
22901         * modules/unicase/u16-is-invariant: New file.
22902
22903         New module 'unicase/u8-is-invariant'.
22904         * lib/unicase/u8-is-invariant.c: New file.
22905         * lib/unicase/invariant.h: New file.
22906         * lib/unicase/u-is-invariant.h: New file.
22907         * modules/unicase/u8-is-invariant: New file.
22908
22909         Tests for module 'unicase/u32-casecoll'.
22910         * modules/unicase/u32-casecoll-tests: New file.
22911         * tests/unicase/test-u32-casecoll.c: New file.
22912
22913         Tests for module 'unicase/u16-casecoll'.
22914         * modules/unicase/u16-casecoll-tests: New file.
22915         * tests/unicase/test-u16-casecoll.c: New file.
22916
22917         Tests for module 'unicase/u8-casecoll'.
22918         * modules/unicase/u8-casecoll-tests: New file.
22919         * tests/unicase/test-u8-casecoll.c: New file.
22920
22921         New module 'unicase/u32-casecoll'.
22922         * lib/unicase/u32-casecoll.c: New file.
22923         * modules/unicase/u32-casecoll: New file.
22924
22925         New module 'unicase/u16-casecoll'.
22926         * lib/unicase/u16-casecoll.c: New file.
22927         * modules/unicase/u16-casecoll: New file.
22928
22929         New module 'unicase/u8-casecoll'.
22930         * lib/unicase/u8-casecoll.c: New file.
22931         * lib/unicase/u-casecoll.h: New file.
22932         * modules/unicase/u8-casecoll: New file.
22933
22934         New module 'unicase/u32-casexfrm'.
22935         * lib/unicase/u32-casexfrm.c: New file.
22936         * modules/unicase/u32-casexfrm: New file.
22937
22938         New module 'unicase/u16-casexfrm'.
22939         * lib/unicase/u16-casexfrm.c: New file.
22940         * modules/unicase/u16-casexfrm: New file.
22941
22942         New module 'unicase/u8-casexfrm'.
22943         * lib/unicase/u8-casexfrm.c: New file.
22944         * lib/unicase/u-casexfrm.h: New file.
22945         * modules/unicase/u8-casexfrm: New file.
22946
22947         Tests for module 'unicase/u32-casecmp'.
22948         * modules/unicase/u32-casecmp-tests: New file.
22949         * tests/unicase/test-u32-casecmp.c: New file.
22950
22951         Tests for module 'unicase/u16-casecmp'.
22952         * modules/unicase/u16-casecmp-tests: New file.
22953         * tests/unicase/test-u16-casecmp.c: New file.
22954
22955         Tests for module 'unicase/u8-casecmp'.
22956         * modules/unicase/u8-casecmp-tests: New file.
22957         * tests/unicase/test-u8-casecmp.c: New file.
22958         * tests/unicase/test-casecmp.h: New file.
22959
22960         New module 'unicase/u32-casecmp'.
22961         * lib/unicase/u32-casecmp.c: New file.
22962         * modules/unicase/u32-casecmp: New file.
22963
22964         New module 'unicase/u16-casecmp'.
22965         * lib/unicase/u16-casecmp.c: New file.
22966         * modules/unicase/u16-casecmp: New file.
22967
22968         New module 'unicase/u8-casecmp'.
22969         * lib/unicase/u8-casecmp.c: New file.
22970         * lib/unicase/u-casecmp.h: New file.
22971         * modules/unicase/u8-casecmp: New file.
22972
22973         Tests for module 'unicase/u32-casefold'.
22974         * modules/unicase/u32-casefold-tests: New file.
22975         * tests/unicase/test-u32-casefold.c: New file.
22976
22977         Tests for module 'unicase/u16-casefold'.
22978         * modules/unicase/u16-casefold-tests: New file.
22979         * tests/unicase/test-u16-casefold.c: New file.
22980
22981         Tests for module 'unicase/u8-casefold'.
22982         * modules/unicase/u8-casefold-tests: New file.
22983         * tests/unicase/test-u8-casefold.c: New file.
22984
22985         New module 'unicase/u32-casefold'.
22986         * lib/unicase/u32-casefold.c: New file.
22987         * modules/unicase/u32-casefold: New file.
22988
22989         New module 'unicase/u16-casefold'.
22990         * lib/unicase/u16-casefold.c: New file.
22991         * modules/unicase/u16-casefold: New file.
22992
22993         New module 'unicase/u8-casefold'.
22994         * lib/unicase/u8-casefold.c: New file.
22995         * lib/unicase/u-casefold.h: New file.
22996         * modules/unicase/u8-casefold: New file.
22997
22998         New module 'unicase/tocasefold'.
22999         * lib/unicase/casefold.h: New file.
23000         * lib/unicase/tocasefold.c: New file.
23001         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
23002         * modules/unicase/tocasefold: New file.
23003
23004         Tests for module 'unicase/u32-totitle'.
23005         * modules/unicase/u32-totitle-tests: New file.
23006         * tests/unicase/test-u32-totitle.c: New file.
23007
23008         Tests for module 'unicase/u16-totitle'.
23009         * modules/unicase/u16-totitle-tests: New file.
23010         * tests/unicase/test-u16-totitle.c: New file.
23011
23012         Tests for module 'unicase/u8-totitle'.
23013         * modules/unicase/u8-totitle-tests: New file.
23014         * tests/unicase/test-u8-totitle.c: New file.
23015
23016         New module 'unicase/u32-totitle'.
23017         * lib/unicase/u32-totitle.c: New file.
23018         * modules/unicase/u32-totitle: New file.
23019
23020         New module 'unicase/u16-totitle'.
23021         * lib/unicase/u16-totitle.c: New file.
23022         * modules/unicase/u16-totitle: New file.
23023
23024         New module 'unicase/u8-totitle'.
23025         * lib/unicase/u8-totitle.c: New file.
23026         * lib/unicase/u-totitle.h: New file.
23027         * modules/unicase/u8-totitle: New file.
23028
23029         Tests for module 'unicase/u32-tolower'.
23030         * modules/unicase/u32-tolower-tests: New file.
23031         * tests/unicase/test-u32-tolower.c: New file.
23032
23033         Tests for module 'unicase/u16-tolower'.
23034         * modules/unicase/u16-tolower-tests: New file.
23035         * tests/unicase/test-u16-tolower.c: New file.
23036
23037         Tests for module 'unicase/u8-tolower'.
23038         * modules/unicase/u8-tolower-tests: New file.
23039         * tests/unicase/test-u8-tolower.c: New file.
23040
23041         New module 'unicase/u32-tolower'.
23042         * lib/unicase/u32-tolower.c: New file.
23043         * modules/unicase/u32-tolower: New file.
23044
23045         New module 'unicase/u16-tolower'.
23046         * lib/unicase/u16-tolower.c: New file.
23047         * modules/unicase/u16-tolower: New file.
23048
23049         New module 'unicase/u8-tolower'.
23050         * lib/unicase/u8-tolower.c: New file.
23051         * modules/unicase/u8-tolower: New file.
23052
23053         Tests for module 'unicase/u32-toupper'.
23054         * modules/unicase/u32-toupper-tests: New file.
23055         * tests/unicase/test-u32-toupper.c: New file.
23056
23057         Tests for module 'unicase/u16-toupper'.
23058         * modules/unicase/u16-toupper-tests: New file.
23059         * tests/unicase/test-u16-toupper.c: New file.
23060
23061         Tests for module 'unicase/u8-toupper'.
23062         * modules/unicase/u8-toupper-tests: New file.
23063         * tests/unicase/test-u8-toupper.c: New file.
23064
23065         New module 'unicase/u32-toupper'.
23066         * lib/unicase/u32-toupper.c: New file.
23067         * modules/unicase/u32-toupper: New file.
23068
23069         New module 'unicase/u16-toupper'.
23070         * lib/unicase/u16-toupper.c: New file.
23071         * modules/unicase/u16-toupper: New file.
23072
23073         New module 'unicase/u8-toupper'.
23074         * lib/unicase/u8-toupper.c: New file.
23075         * modules/unicase/u8-toupper: New file.
23076
23077         New module 'unicase/u32-casemap'.
23078         * lib/unicase/u32-casemap.c: New file.
23079         * modules/unicase/u32-casemap: New file.
23080
23081         New module 'unicase/u16-casemap'.
23082         * lib/unicase/u16-casemap.c: New file.
23083         * modules/unicase/u16-casemap: New file.
23084
23085         New module 'unicase/u8-casemap'.
23086         * lib/unicase/unicasemap.h: New file.
23087         * lib/unicase/u8-casemap.c: New file.
23088         * lib/unicase/u-casemap.h: New file.
23089         * modules/unicase/u8-casemap: New file.
23090
23091         New module 'unicase/special-casing'.
23092         * lib/unicase/special-casing.h: New file.
23093         * lib/unicase/special-casing.c: New file.
23094         * lib/unicase/special-casing-table.gperf: New file, generated by
23095         gen-uni-tables.c.
23096         * modules/unicase/special-casing: New file.
23097
23098         Tests for module 'unicase/locale-language'.
23099         * modules/unicase/locale-language-tests: New file.
23100         * tests/unicase/test-locale-language.sh: New file.
23101         * tests/unicase/test-locale-language.c: New file.
23102
23103         New module 'unicase/locale-language'.
23104         * lib/unicase/locale-language.c: New file.
23105         * lib/unicase/locale-languages.gperf: New file.
23106         * modules/unicase/locale-language: New file.
23107
23108         Generate more tables for case conversion and case folding.
23109         * lib/gen-uni-tables.c (SCC_*): New enum items.
23110         (struct special_casing_rule): New type.
23111         (casing_rules, num_casing_rules, allocated_casing_rules): New
23112         variables.
23113         (add_casing_rule, fill_casing_rules): New functions.
23114         (struct casefold_rule): New type.
23115         (casefolding_rules, num_casefolding_rules,
23116         allocated_casefolding_rules): New variables.
23117         (fill_casefolding_rules): New function.
23118         (unicode_casefold): New variable.
23119         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
23120         sort_casing_rules, output_casing_rules): New functions.
23121         (main): Accept to more arguments: SpecialCasing.txt and
23122         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
23123         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
23124         Output mapping for casefolding.
23125
23126         * lib/unicase.h: Include stdbool.h, uninorm.h.
23127         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
23128         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
23129         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
23130         arguments.
23131         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
23132         resultp arguments.
23133         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
23134         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
23135         resultp arguments.
23136         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
23137         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
23138         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
23139         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
23140         declarations.
23141         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
23142
23143 2009-03-08  Bruno Haible  <bruno@clisp.org>
23144
23145         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
23146         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
23147         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
23148         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
23149
23150 2009-03-07  Bruno Haible  <bruno@clisp.org>
23151
23152         Adjust u*_normcmp, u*_normcoll API.
23153         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
23154         u16_normcoll, u32_normcoll): Change failure conventions.
23155         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
23156         errno and return -1.
23157         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
23158
23159 2009-03-07  Bruno Haible  <bruno@clisp.org>
23160
23161         Tests for module 'uninorm/u32-normcoll'.
23162         * modules/uninorm/u32-normcoll-tests: New file.
23163         * tests/uninorm/test-u32-normcoll.c: New file.
23164
23165         Tests for module 'uninorm/u16-normcoll'.
23166         * modules/uninorm/u16-normcoll-tests: New file.
23167         * tests/uninorm/test-u16-normcoll.c: New file.
23168
23169         Tests for module 'uninorm/u8-normcoll'.
23170         * modules/uninorm/u8-normcoll-tests: New file.
23171         * tests/uninorm/test-u8-normcoll.c: New file.
23172
23173 2009-03-07  Bruno Haible  <bruno@clisp.org>
23174
23175         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
23176         tests/uninorm/test-u32-normcmp.c.
23177         * tests/uninorm/test-u32-normcmp.c: Include it.
23178         (test_nonascii): New function, extracted from main. Add some more
23179         tests.
23180         (main): Invoke test_ascii and test_nonascii.
23181         * modules/uninorm/u32-normcmp-tests (Files): Add
23182         tests/uninorm/test-u32-normcmp.h.
23183         (Depends-on): Remove uninorm/u32-normcmp.
23184
23185         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
23186         tests/uninorm/test-u16-normcmp.c.
23187         * tests/uninorm/test-u16-normcmp.c: Include it.
23188         (test_nonascii): New function, extracted from main. Add some more
23189         tests.
23190         (main): Invoke test_ascii and test_nonascii.
23191         * modules/uninorm/u16-normcmp-tests (Files): Add
23192         tests/uninorm/test-u16-normcmp.h.
23193         (Depends-on): Remove uninorm/u16-normcmp.
23194
23195         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
23196         tests/uninorm/test-u8-normcmp.c.
23197         * tests/uninorm/test-u8-normcmp.c: Include it.
23198         (test_nonascii): New function, extracted from main. Add some more
23199         tests.
23200         (main): Invoke test_ascii and test_nonascii.
23201         * modules/uninorm/u8-normcmp-tests (Files): Add
23202         tests/uninorm/test-u8-normcmp.h.
23203         (Depends-on): Remove uninorm/u8-normcmp.
23204
23205 2009-03-07  Bruno Haible  <bruno@clisp.org>
23206
23207         New module 'uninorm/u32-normcoll'.
23208         * lib/uninorm/u32-normcoll.c: New file.
23209         * modules/uninorm/u32-normcoll: New file.
23210
23211         New module 'uninorm/u16-normcoll'.
23212         * lib/uninorm/u16-normcoll.c: New file.
23213         * modules/uninorm/u16-normcoll: New file.
23214
23215         New module 'uninorm/u8-normcoll'.
23216         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
23217         declarations.
23218         * lib/uninorm/u8-normcoll.c: New file.
23219         * lib/uninorm/u-normcoll.h: New file.
23220         * modules/uninorm/u8-normcoll: New file.
23221
23222         New module 'uninorm/u32-normxfrm'.
23223         * lib/uninorm/u32-normxfrm.c: New file.
23224         * modules/uninorm/u32-normxfrm: New file.
23225
23226         New module 'uninorm/u16-normxfrm'.
23227         * lib/uninorm/u16-normxfrm.c: New file.
23228         * modules/uninorm/u16-normxfrm: New file.
23229
23230         New module 'uninorm/u8-normxfrm'.
23231         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
23232         declarations.
23233         * lib/uninorm/u8-normxfrm.c: New file.
23234         * lib/uninorm/u-normxfrm.h: New file.
23235         * modules/uninorm/u8-normxfrm: New file.
23236
23237 2009-03-07  Bruno Haible  <bruno@clisp.org>
23238
23239         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
23240         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
23241         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
23242
23243 2009-03-07  Bruno Haible  <bruno@clisp.org>
23244
23245         New module 'memxfrm'.
23246         * lib/memxfrm.h: New file.
23247         * lib/memxfrm.c: New file.
23248         * modules/memxfrm: New file.
23249
23250 2009-03-07  Bruno Haible  <bruno@clisp.org>
23251
23252         New module 'memcmp2'.
23253         * lib/memcmp2.h: New file.
23254         * lib/memcmp2.c: New file.
23255         * modules/memcmp2: New file.
23256
23257 2009-03-07  Bruno Haible  <bruno@clisp.org>
23258
23259         Tests for module 'uninorm/decomposing-form'.
23260         * modules/uninorm/decomposing-form-tests: New file.
23261         * tests/uninorm/test-decomposing-form.c: New file.
23262
23263         New module 'uninorm/decomposing-form'.
23264         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
23265         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
23266         Add 'decomposing_variant' field.
23267         * lib/uninorm/decomposing-form.c: New file.
23268         * lib/uninorm/nfc.c (uninorm_nfc): Update.
23269         * lib/uninorm/nfd.c (uninorm_nfd): Update.
23270         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
23271         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
23272         * modules/uninorm/decomposing-form: New file.
23273         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
23274         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
23275
23276 2009-03-07  Bruno Haible  <bruno@clisp.org>
23277
23278         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
23279         strings.
23280
23281 2009-03-06  Bruno Haible  <bruno@clisp.org>
23282
23283         Tests for module 'uninorm/u32-normcmp'.
23284         * tests/uninorm/test-u32-normcmp.c: New file.
23285         * modules/uninorm/u32-normcmp-tests: New file.
23286
23287         Tests for module 'uninorm/u16-normcmp'.
23288         * tests/uninorm/test-u16-normcmp.c: New file.
23289         * modules/uninorm/u16-normcmp-tests: New file.
23290
23291         Tests for module 'uninorm/u8-normcmp'.
23292         * tests/uninorm/test-u8-normcmp.c: New file.
23293         * modules/uninorm/u8-normcmp-tests: New file.
23294
23295         New module 'uninorm/u32-normcmp'.
23296         * lib/uninorm/u32-normcmp.c: New file.
23297         * modules/uninorm/u32-normcmp: New file.
23298
23299         New module 'uninorm/u16-normcmp'.
23300         * lib/uninorm/u16-normcmp.c: New file.
23301         * modules/uninorm/u16-normcmp: New file.
23302
23303         New module 'uninorm/u8-normcmp'.
23304         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
23305         declarations.
23306         * lib/uninorm/u8-normcmp.c: New file.
23307         * lib/uninorm/u-normcmp.h: New file.
23308         * modules/uninorm/u8-normcmp: New file.
23309
23310 2009-03-06  Bruno Haible  <bruno@clisp.org>
23311
23312         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
23313         Reported by Eric Blake.
23314
23315 2009-03-06  Eric Blake  <ebb9@byu.net>
23316             Bruno Haible  <bruno@clisp.org>
23317
23318         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
23319         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
23320         condition.
23321         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
23322         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
23323         condition.
23324         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
23325
23326 2009-03-06  Eric Blake  <ebb9@byu.net>
23327
23328         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
23329         to avoid compiler warnings.
23330         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
23331
23332 2009-03-05  Bruno Haible  <bruno@clisp.org>
23333
23334         * tests/test-ftell.c (main): Disable test beyond end of file on
23335         FreeMiNT.
23336         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
23337
23338 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
23339
23340         * lib/filevercmp.c: Move hidden files up in ordering.
23341         * tests/test-filevercmp.c: Add tests for hidden files.
23342
23343 2009-03-04  Bruno Haible  <bruno@clisp.org>
23344
23345         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
23346         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
23347         AM_CFLAGS.
23348         Reported by Simon Josefsson.
23349
23350 2009-03-03  Bruno Haible  <bruno@clisp.org>
23351
23352         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
23353         Reported by Simon Josefsson.
23354
23355         * doc/ld-version-script.texi: Update node reference.
23356
23357 2009-03-03  Bruno Haible  <bruno@clisp.org>
23358
23359         * modules/visibility (License): Change to 'unlimited'.
23360         Suggested by Simon Josefsson.
23361
23362 2009-03-03  Jim Meyering  <meyering@redhat.com>
23363
23364         unlinkdir: cannot_unlink_dir may modify process state
23365         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
23366         it's neither thread-safe nor appropriate for use in a library.
23367
23368 2009-03-03  Eric Blake  <ebb9@byu.net>
23369
23370         test-closein: silence test under Darwin
23371         * tests/test-closein.sh: Ignore stderr from cat, since we don't
23372         care if it dies from EPIPE or EBADF.
23373
23374 2009-03-03  Bruno Haible  <bruno@clisp.org>
23375
23376         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
23377         earlier.
23378         * doc/visibility.texi: Fix @node and @section.
23379
23380 2009-03-03  Simon Josefsson  <simon@josefsson.org>
23381
23382         * doc/gnulib.texi: Link to sections for ld version script and
23383         visibility.
23384         * doc/visibility.texi: Add @node and @section.
23385         * modules/ld-version-script: New module.
23386         * m4/ld-version-script.m4: New file.
23387         * doc/ld-version-script.texi: New file.
23388
23389 2009-03-02  David Lutterkort  <lutter@redhat.com>
23390
23391         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
23392         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23393
23394 2009-03-02  Bruno Haible  <bruno@clisp.org>
23395
23396         * doc/visibility.texi: Mention libtool's -export-symbols option.
23397
23398 2009-03-02  Jim Meyering  <meyering@redhat.com>
23399
23400         announce-gen: new option: --no-print-checksums
23401         * build-aux/announce-gen (usage): Describe it.
23402         (print_checksums): Print a newline here, not in the [*] footnote.
23403         (main): Honor it.
23404
23405 2009-03-01  Bruno Haible  <bruno@clisp.org>
23406
23407         Use socklen_t in the native Windows replacements prototypes.
23408         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
23409         instead of 'int'.
23410         * lib/getsockopt.c (rpl_getsockopt): Likewise.
23411         * lib/setsockopt.c (rpl_setsockopt): Likewise.
23412         * modules/getsockopt (Depends-on): Add socklen.
23413         * modules/setsockopt (Depends-on): Add socklen.
23414
23415 2009-03-01  Bruno Haible  <bruno@clisp.org>
23416
23417         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
23418         least 4.2.
23419
23420 2009-03-01  Eric Blake  <ebb9@byu.net>
23421             Bruno Haible  <bruno@clisp.org>
23422
23423         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
23424         error messages.
23425         * lib/wait-process.c (wait_subprocess): Omit error message about
23426         deadly signal sent to the child of termsigp != NULL.
23427
23428 2009-03-01  Eric Blake  <ebb9@byu.net>
23429
23430         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
23431
23432 2009-03-01  Bruno Haible  <bruno@clisp.org>
23433
23434         Avoid a gcc warning.
23435         * tests/test-sched.c (b): Make global.
23436         Reported by Eric Blake.
23437
23438 2009-01-19  Martin Lambers  <marlam@marlam.de>
23439
23440         Provide POSIX semantics for socket timeout options on W32.
23441         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
23442         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
23443         * modules/setsockopt: Depend on sys_time module for struct timeval.
23444         * modules/getsockopt: Depend on sys_time module for struct timeval.
23445
23446 2009-03-01  Simon Josefsson  <simon@josefsson.org>
23447
23448         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
23449         __USE_GNU, for consistency with netdb.in.h.
23450         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23451
23452 2009-03-01  Bruno Haible  <bruno@clisp.org>
23453
23454         More support for FreeMiNT.
23455         * lib/fseeko.c (rpl_fseeko): Complete last commit.
23456         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23457
23458 2009-03-01  Bruno Haible  <bruno@clisp.org>
23459
23460         More support for FreeMiNT.
23461         * lib/fpurge.c (fpurge): Correct last commit.
23462         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23463
23464 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23465
23466         Fix unportable awk script in vc-list-files.
23467         * build-aux/vc-list-files: In the replacement awk script, use
23468         substr with a second argument of 1, not zero.
23469         Report by Simon Josefsson.
23470
23471 2009-02-28  Bruno Haible  <bruno@clisp.org>
23472
23473         More support for FreeMiNT.
23474         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
23475         to FreeMiNT today.
23476         * lib/fwriting.c (fwriting): Likewise.
23477         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
23478
23479 2009-02-28  Bruno Haible  <bruno@clisp.org>
23480
23481         * tests/test-freadseek.c (main): Disable test beyond end of file on
23482         FreeMiNT.
23483         * tests/test-ftello.c (main): Likewise.
23484         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
23485
23486 2009-02-28  Bruno Haible  <bruno@clisp.org>
23487
23488         Add tentative support for FreeMiNT.
23489         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
23490         * lib/fpurge.c (fpurge): Likewise.
23491         * lib/freadable.c (freadable): Likewise.
23492         * lib/freading.c (freading): Likewise.
23493         * lib/freadptr.c (freadptr): Likewise.
23494         * lib/freadseek.c (freadptrinc): Likewise.
23495         * lib/fseeko.c (rpl_fseeko): Likewise.
23496         * lib/fseterr.c (fseterr): Likewise.
23497         * lib/fwritable.c (fwritable): Likewise.
23498         * lib/fwriting.c (fwriting): Likewise.
23499         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
23500         Hourihane.
23501         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
23502
23503 2009-02-28  Bruno Haible  <bruno@clisp.org>
23504
23505         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
23506         SIGCHLD.
23507         Reported by Jim Meyering.
23508
23509 2009-02-28  Bruno Haible  <bruno@clisp.org>
23510
23511         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
23512         Mention the results of these tests on various platforms.
23513         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
23514         order.
23515         * doc/posix-functions/printf.texi: Likewise.
23516         * doc/posix-functions/snprintf.texi: Likewise.
23517         * doc/posix-functions/sprintf.texi: Likewise.
23518         * doc/posix-functions/vfprintf.texi: Likewise.
23519         * doc/posix-functions/vprintf.texi: Likewise.
23520         * doc/posix-functions/vsnprintf.texi: Likewise.
23521         * doc/posix-functions/vsprintf.texi: Likewise.
23522         * doc/glibc-functions/obstack_printf.texi: Likewise.
23523         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23524
23525 2009-02-28  Bruno Haible  <bruno@clisp.org>
23526
23527         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
23528         Reported by Loïc Minier <lool@dooz.org>.
23529
23530 2009-02-27  Bruno Haible  <bruno@clisp.org>
23531
23532         * gnulib-tool (func_import): Make the sed expression used to create the
23533         sed script for updating the .gitignore file POSIX compliant.
23534         Reported by Eric Blake.
23535
23536 2009-02-27  Bruno Haible  <bruno@clisp.org>
23537
23538         * gnulib-tool (sed): Don't alias as "sed --posix".
23539         Reported by Eric Blake.
23540
23541 2009-02-27  Bruno Haible  <bruno@clisp.org>
23542
23543         Avoid test link errors.
23544         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
23545         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
23546         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
23547         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
23548         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23549
23550 2009-02-27  Bruno Haible  <bruno@clisp.org>
23551
23552         Avoid spurious "(cached)" in configure output.
23553         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
23554         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
23555         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
23556         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
23557         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
23558         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
23559         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
23560         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23561         Reported by Eric Blake.
23562
23563 2009-02-27  Eric Blake  <ebb9@byu.net>
23564
23565         printf: fix regression in previous patch
23566         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
23567
23568 2009-02-27  Bruno Haible  <bruno@clisp.org>
23569
23570         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
23571         value.
23572         * lib/stdint.in.h: Likewise.
23573         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
23574
23575 2009-02-27  Eric Blake  <ebb9@byu.net>
23576
23577         doc: mention more functions added in cygwin 1.7.0
23578         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
23579         addition.
23580         * doc/posix-functions/open_wmemstream.texi: Likewise.
23581         * doc/posix-functions/wcsnlen.texi: Likewise.
23582         * doc/posix-functions/wcsnrtombs.texi: Likewise.
23583         * doc/posix-functions/wcstod.texi: Likewise.
23584         * doc/posix-functions/wcstof.texi: Likewise.
23585         * doc/posix-functions/wcstoimax.texi: Likewise.
23586         * doc/posix-functions/wcstok.texi: Likewise.
23587         * doc/posix-functions/wcstoumax.texi: Likewise.
23588
23589         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
23590         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
23591         * doc/posix-functions/fprintf.texi: Update.
23592         * doc/posix-functions/printf.texi: Update.
23593         * doc/posix-functions/snprintf.texi: Update.
23594         * doc/posix-functions/sprintf.texi: Update.
23595         * doc/posix-functions/vfprintf.texi: Update.
23596         * doc/posix-functions/vprintf.texi: Update.
23597         * doc/posix-functions/vsnprintf.texi: Update.
23598         * doc/posix-functions/vsprintf.texi: Update.
23599         * doc/glibc-functions/obstack_printf.texi: Update.
23600         * doc/glibc-functions/obstack_vprintf.texi: Update.
23601
23602 2009-02-26  Eric Blake  <ebb9@byu.net>
23603
23604         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
23605         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
23606         compilation bug by using runtime conversion.
23607         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
23608         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
23609         * modules/ceill-tests (Files): Use nan.h.
23610         * modules/floorl-tests (Files): Likewise.
23611         * modules/frexpl-tests (Files): Likewise.
23612         * modules/isnanl-tests (Files): Likewise.
23613         * modules/ldexpl-tests (Files): Likewise.
23614         * modules/roundl-tests (Files): Likewise.
23615         * modules/truncl-tests (Files): Likewise.
23616         * tests/test-ceill.c (main): Use a working NaN.
23617         * tests/test-floorl.c (main): Likewise.
23618         * tests/test-frexpl.c (main): Likewise.
23619         * tests/test-isnan.c (test_long_double): Likewise.
23620         * tests/test-isnanl.h (main): Likewise.
23621         * tests/test-ldexpl.h (main): Likewise.
23622         * tests/test-roundl.h (main): Likewise.
23623         * tests/test-truncl.h (main): Likewise.
23624         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
23625
23626 2009-02-26  Eric Blake  <ebb9@byu.net>
23627             Bruno Haible  <bruno@clisp.org>
23628
23629         Work around a *printf bug with %ls on Solaris.
23630         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
23631         precision is specified, sprintf stops converting the wide string
23632         argument when the number of bytes that have been produced by this
23633         conversion equals or exceeds the precision.
23634         * doc/posix-functions/fprintf.texi: Update.
23635         * doc/posix-functions/printf.texi: Update.
23636         * doc/posix-functions/snprintf.texi: Update.
23637         * doc/posix-functions/sprintf.texi: Update.
23638         * doc/posix-functions/vfprintf.texi: Update.
23639         * doc/posix-functions/vprintf.texi: Update.
23640         * doc/posix-functions/vsnprintf.texi: Update.
23641         * doc/posix-functions/vsprintf.texi: Update.
23642         * doc/glibc-functions/obstack_printf.texi: Update.
23643         * doc/glibc-functions/obstack_vprintf.texi: Update.
23644
23645 2009-02-26  Eric Blake  <ebb9@byu.net>
23646
23647         stdlib: favor compiler check of random.h
23648         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
23649         to avoid an ObjC random.h installed by Swarm.
23650
23651 2009-02-26  Bruno Haible  <bruno@clisp.org>
23652
23653         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
23654         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
23655         Reported by Gary V. Vaughan <gary@gnu.org>.
23656
23657 2009-02-26  Bruno Haible  <bruno@clisp.org>
23658
23659         Fix *printf behaviour regarding the %ls directive.
23660         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
23661         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
23662         NEED_PRINTF_DIRECTIVE_LS.
23663         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
23664         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
23665         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23666         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
23667         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
23668         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
23669         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
23670         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23671         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23672         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23673         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23674         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
23675         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23676         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23677         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23678         * doc/posix-functions/fprintf.texi: Update.
23679         * doc/posix-functions/printf.texi: Update.
23680         * doc/posix-functions/snprintf.texi: Update.
23681         * doc/posix-functions/sprintf.texi: Update.
23682         * doc/posix-functions/vfprintf.texi: Update.
23683         * doc/posix-functions/vprintf.texi: Update.
23684         * doc/posix-functions/vsnprintf.texi: Update.
23685         * doc/posix-functions/vsprintf.texi: Update.
23686         * doc/glibc-functions/obstack_printf.texi: Update.
23687         * doc/glibc-functions/obstack_vprintf.texi: Update.
23688         Reported by Eric Blake.
23689
23690 2009-02-25  Bruno Haible  <bruno@clisp.org>
23691
23692         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
23693         with known value.
23694         Reported by Gary V. Vaughan <gary@gnu.org>.
23695
23696 2009-02-25  Bruno Haible  <bruno@clisp.org>
23697
23698         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
23699         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
23700         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
23701         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
23702         Reported by Gary V. Vaughan <gary@gnu.org>.
23703
23704 2009-02-25  Bruno Haible  <bruno@clisp.org>
23705
23706         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
23707         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
23708         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
23709         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
23710         Reported by Gary V. Vaughan <gary@gnu.org>.
23711
23712 2009-02-25  Eric Blake  <ebb9@byu.net>
23713
23714         tests: skip fseek/ftell tests if ungetc is broken
23715         * m4/ungetc.m4: New file.
23716         * modules/fseek-tests: Split test, so ungetc dependency is
23717         separate from rest of test.
23718         * modules/fseeko-tests: Likewise.
23719         * modules/ftell-tests: Likewise.
23720         * modules/ftello-tests: Likewise.
23721         * tests/test-fseek.c (main): Isolate ungetc dependency.
23722         * tests/test-fseeko.c (main): Likewise.
23723         * tests/test-ftell.c (main): Likewise.
23724         * tests/test-ftello.c (main): Likewise.
23725         * tests/test-fseek2.sh: New file.
23726         * tests/test-fseeko2.sh: Likewise.
23727         * tests/test-ftell2.sh: Likewise.
23728         * tests/test-ftello2.sh: Likewise.
23729
23730 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
23731
23732         test-getaddrinfo: fix usage of skip return code 77
23733         * tests/test-gettaddrinfo.c: Return skip code 77 only
23734         for first occurance of skip (4x77 is not 77)
23735
23736 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
23737
23738         strtod: avoid C99 decl-after-statement
23739         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
23740
23741 2009-02-24  Eric Blake  <ebb9@byu.net>
23742
23743         strtod: detect HP-UX 11.31 bug
23744         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
23745         Reported by Gary V. Vaughan.
23746
23747 2009-02-23  Bruno Haible  <bruno@clisp.org>
23748
23749         Fix invalid read past end of memory block.
23750         * lib/vasnprintf.c (DCHAR_SET): Define.
23751         (local_wcslen): Define only when needed.
23752         (local_strnlen, local_wcsnlen): New functions.
23753         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
23754         directives that involve a conversion ourselves.
23755         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
23756         wcsnlen, mbrtowc, wcrtomb.
23757         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
23758         * tests/test-vasprintf-posix.c (test_function): Likewise.
23759         * tests/test-snprintf-posix.h (test_function): Likewise.
23760         * tests/test-sprintf-posix.h (test_function): Likewise.
23761         Reported by Ben Pfaff <blp@cs.stanford.edu>.
23762
23763 2009-02-22  Bruno Haible  <bruno@clisp.org>
23764
23765         Implement new clarified decomposition of Hangul syllables.
23766         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
23767         of type LTV, return only a pairwise decomposition.
23768         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
23769         Likewise.
23770         * tests/uninorm/test-decomposition.c (main): Updated expected result.
23771         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
23772         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
23773
23774 2009-02-22  Bruno Haible  <bruno@clisp.org>
23775
23776         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
23777         zero-length results and shrink excess allocated memory.
23778         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
23779         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
23780         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
23781         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
23782         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
23783         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
23784         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
23785         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
23786         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
23787         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
23788         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
23789         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
23790
23791 2009-02-21  Bruno Haible  <bruno@clisp.org>
23792
23793         * doc/gnulib.texi: Include safe-alloc.texi earlier.
23794         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
23795         spaces after a period. Put a space between a macro name and its
23796         argument list. Trivial rewordings.
23797         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
23798         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
23799         (main): Return 0 explicitly.
23800
23801 2009-02-21  Bruno Haible  <bruno@clisp.org>
23802
23803         Tests for module 'uninorm/filter'.
23804         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
23805         * modules/uninorm/filter-tests: New file.
23806
23807         New module 'uninorm/filter'.
23808         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
23809         uninorm_filter_flush, uninorm_filter_free): New declarations.
23810         * lib/uninorm/uninorm-filter.c: New file.
23811         * modules/uninorm/filter: New file.
23812
23813 2009-02-21  Bruno Haible  <bruno@clisp.org>
23814
23815         Tests for module 'uninorm/nfkc'.
23816         * tests/uninorm/test-nfkc.c: New file.
23817         * tests/uninorm/test-u8-nfkc.c: New file.
23818         * tests/uninorm/test-u16-nfkc.c: New file.
23819         * tests/uninorm/test-u32-nfkc.c: New file.
23820         * tests/uninorm/test-u32-nfkc-big.sh: New file.
23821         * tests/uninorm/test-u32-nfkc-big.c: New file.
23822         * modules/uninorm/nfkc-tests: New file.
23823
23824         New module 'uninorm/nfkc'.
23825         * lib/uninorm/nfkc.c: New file.
23826         * modules/uninorm/nfkc: New file.
23827
23828         Tests for module 'uninorm/nfkd'.
23829         * tests/uninorm/test-nfkd.c: New file.
23830         * tests/uninorm/test-u8-nfkd.c: New file.
23831         * tests/uninorm/test-u16-nfkd.c: New file.
23832         * tests/uninorm/test-u32-nfkd.c: New file.
23833         * tests/uninorm/test-u32-nfkd-big.sh: New file.
23834         * tests/uninorm/test-u32-nfkd-big.c: New file.
23835         * modules/uninorm/nfkd-tests: New file.
23836
23837         New module 'uninorm/nfkd'.
23838         * lib/uninorm/nfkd.c: New file.
23839         * modules/uninorm/nfkd: New file.
23840
23841         Tests for module 'uninorm/nfc'.
23842         * tests/uninorm/test-nfc.c: New file.
23843         * tests/uninorm/test-u8-nfc.c: New file.
23844         * tests/uninorm/test-u16-nfc.c: New file.
23845         * tests/uninorm/test-u32-nfc.c: New file.
23846         * tests/uninorm/test-u32-nfc-big.sh: New file.
23847         * tests/uninorm/test-u32-nfc-big.c: New file.
23848         * modules/uninorm/nfc-tests: New file.
23849
23850         New module 'uninorm/nfc'.
23851         * lib/uninorm/nfc.c: New file.
23852         * modules/uninorm/nfc: New file.
23853
23854         Tests for module 'uninorm/nfd'.
23855         * tests/uninorm/test-nfd.c: New file.
23856         * tests/uninorm/test-u8-nfd.c: New file.
23857         * tests/uninorm/test-u16-nfd.c: New file.
23858         * tests/uninorm/test-u32-nfd.c: New file.
23859         * tests/uninorm/test-u32-nfd-big.sh: New file.
23860         * tests/uninorm/test-u32-nfd-big.c: New file.
23861         * tests/uninorm/test-u32-normalize-big.h: New file.
23862         * tests/uninorm/test-u32-normalize-big.c: New file.
23863         * tests/uninorm/NormalizationTest.txt: New file, created from
23864         Unicode 5.1.0 NormalizationTest.txt.
23865         * modules/uninorm/nfd-tests: New file.
23866
23867         New module 'uninorm/nfd'.
23868         * lib/uninorm/nfd.c: New file.
23869         * modules/uninorm/nfd: New file.
23870
23871         New module 'uninorm/u32-normalize'.
23872         * lib/uninorm/u32-normalize.c: New file.
23873         * modules/uninorm/u32-normalize: New file.
23874
23875         New module 'uninorm/u16-normalize'.
23876         * lib/uninorm/u16-normalize.c: New file.
23877         * modules/uninorm/u16-normalize: New file.
23878
23879         New module 'uninorm/u8-normalize'.
23880         * lib/uninorm/u8-normalize.c: New file.
23881         * lib/uninorm/normalize-internal.h: New file.
23882         * lib/uninorm/u-normalize-internal.h: New file.
23883         * modules/uninorm/u8-normalize: New file.
23884
23885         New module 'uninorm/decompose-internal'.
23886         * lib/uninorm/decompose-internal.c: New file.
23887         * modules/uninorm/decompose-internal: New file.
23888
23889         Tests for module 'uninorm/composition'.
23890         * tests/uninorm/test-composition.c: New file.
23891         * modules/uninorm/composition-tests: New file.
23892
23893         New module 'uninorm/composition'.
23894         * lib/uninorm/composition.c: New file.
23895         * lib/uninorm/composition-table.gperf: New file, generated by
23896         gen-uni-tables.
23897         * modules/uninorm/composition: New file.
23898
23899         Tests for module 'uninorm/compat-decomposition'.
23900         * tests/uninorm/test-compat-decomposition.c: New file.
23901         * modules/uninorm/compat-decomposition-tests: New file.
23902
23903         New module 'uninorm/compat-decomposition'.
23904         * lib/uninorm/decompose-internal.h: New file.
23905         * lib/uninorm/compat-decomposition.c: New file.
23906         * modules/uninorm/compat-decomposition: New file.
23907
23908         Tests for module 'uninorm/canonical-decomposition'.
23909         * tests/uninorm/test-canonical-decomposition.c: New file.
23910         * modules/uninorm/canonical-decomposition-tests: New file.
23911
23912         New module 'uninorm/canonical-decomposition'.
23913         * lib/uninorm/canonical-decomposition.c: New file.
23914         * modules/uninorm/canonical-decomposition: New file.
23915
23916         Tests for module 'uninorm/decomposition'.
23917         * tests/uninorm/test-decomposition.c: New file.
23918         * modules/uninorm/decomposition-tests: New file.
23919
23920         New module 'uninorm/decomposition'.
23921         * lib/uninorm/decomposition.c: New file.
23922         * modules/uninorm/decomposition: New file.
23923
23924         New module 'uninorm/decomposition-table'.
23925         * lib/uninorm/decomposition-table.h: New file.
23926         * lib/uninorm/decomposition-table.c: New file.
23927         * lib/uninorm/decomposition-table1.h: New file, generated by
23928         gen-uni-tables.
23929         * lib/uninorm/decomposition-table2.h: New file, generated by
23930         gen-uni-tables.
23931         * modules/uninorm/decomposition-table: New file.
23932
23933         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
23934         (UC_DECOMP_*): New enumeration items.
23935         (get_decomposition): New function.
23936         (struct decomp_table): New type.
23937         (output_decomposition, output_decomposition_tables): New functions.
23938         (unicode_composition_exclusions): New variable.
23939         (fill_composition_exclusions, debug_output_composition_tables): New
23940         functions.
23941         (main): Accept one more argument. Invoke fill_composition_exclusions.
23942         Output decomposition and composition tables.
23943
23944         New module 'uninorm/base'.
23945         * lib/uninorm.h: New file.
23946         * lib/unictype.h: Update comment.
23947         * modules/uninorm/base: New file.
23948
23949 2009-02-21  David Lutterkort  <lutter@redhat.com>
23950
23951         Tests for module 'safe-alloc'.
23952         * tests/test-safe-alloc.c: New file.
23953         * modules/safe-alloc-tests: New file.
23954
23955         New module 'safe-alloc'.
23956         * lib/safe-alloc.h: New file.
23957         * lib/safe-alloc.c: New file.
23958         * m4/safe-alloc.m4: New file.
23959         * modules/safe-alloc: New file.
23960         * doc/safe-alloc.texi: New file.
23961         * doc/gnulib.texi: Include it.
23962         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
23963         safe-alloc.
23964
23965 2009-02-18  Bruno Haible  <bruno@clisp.org>
23966
23967         Fix link error on non-glibc systems.
23968         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
23969         variable.
23970         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23971
23972 2009-02-18  Jim Meyering  <meyering@redhat.com>
23973
23974         fts: avoid used-uninitialized error due to recent change
23975         * lib/fts.c (fts_read): Guard uses of the new member,
23976         parent->fts_n_dirs_remaining, since it's not relevant for
23977         the parent of a directory specified on the command-line.
23978
23979 2009-02-17  James Youngman  <jay@gnu.org>
23980             Bruno Haible  <bruno@clisp.org>
23981
23982         * m4/include_next.m4: Reformulate comment.
23983
23984 2009-02-16  Jim Meyering  <meyering@redhat.com>
23985
23986         fts: add #if guards so that the fts_lgpl module still builds
23987         * lib/fts.c: Guard just-added hash-table-using parts with
23988         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
23989         Reported by Simon Josefsson.
23990
23991 2009-02-15  Bruno Haible  <bruno@clisp.org>
23992
23993         * modules/array-mergesort-tests: New file.
23994         * tests/test-array-mergesort.c: New file.
23995
23996         New module 'array-mergesort'.
23997         * modules/array-mergesort: New file.
23998         * lib/array-mergesort.h: New file.
23999
24000 2009-02-15  Bruno Haible  <bruno@clisp.org>
24001
24002         Fix 2009-02-07 commit.
24003         * lib/gen-uni-tables.c (output_predicate, output_category,
24004         output_combclass, output_bidi_category, output_decimal_digit,
24005         output_digit, output_numeric, output_mirror, output_scripts,
24006         output_ident_category, output_simple_mapping): Fix format directives.
24007         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
24008
24009 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
24010
24011         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
24012         fixes are available from IBM.
24013
24014 2009-02-13  Jim Meyering  <meyering@redhat.com>
24015
24016         fts: arrange not to stat non-directories in more cases
24017         This makes GNU find (when it doesn't need to stat each file)
24018         *much* more efficient at traversing reiserfs file systems.
24019         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
24020         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
24021         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
24022         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
24023         (leaf_optimization_applies): New function.
24024         (LCO_hash, LCO_compare): New helper functions.
24025         (link_count_optimize_ok): New function.
24026         (fts_stat): Initialize new member (if dir).
24027         (fts_read): Decrement parent's fts_n_dirs_remaining count if
24028         we've just stat'ed a directory.  Skip the stat call when possible.
24029         ---
24030         Note this AFS-related exchange:
24031         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
24032         and note find's pioctl call in find/fstype.c.
24033         But that is necessary only if you want to enable the
24034         optimization for AFS, and for now, I don't.
24035
24036         fts: move a function definition "up" (no semantic change)
24037         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
24038         "up" to precede upcoming use of a related function.
24039
24040 2009-02-11  Jim Meyering  <meyering@redhat.com>
24041
24042         fts: correct internal computation of nlinks (optimization-related)
24043         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
24044         whether the current entry is a directory, so don't test it.
24045
24046 2009-02-10  Bruno Haible  <bruno@clisp.org>
24047
24048         Tests for module 'uniwbrk/ulc-wordbreaks'.
24049         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
24050         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
24051         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
24052
24053         Tests for module 'uniwbrk/u32-wordbreaks'.
24054         * modules/uniwbrk/u32-wordbreaks-tests: New file.
24055         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
24056
24057         Tests for module 'uniwbrk/u16-wordbreaks'.
24058         * modules/uniwbrk/u16-wordbreaks-tests: New file.
24059         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
24060
24061         Tests for module 'uniwbrk/u8-wordbreaks'.
24062         * modules/uniwbrk/u8-wordbreaks-tests: New file.
24063         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
24064
24065 2009-02-10  Bruno Haible  <bruno@clisp.org>
24066
24067         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
24068         property.
24069         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
24070         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
24071         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
24072
24073 2009-02-10  Simon Josefsson  <simon@josefsson.org>
24074
24075         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
24076         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
24077
24078 2009-02-10  Bruno Haible  <bruno@clisp.org>
24079
24080         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
24081         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
24082         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
24083         * lib/unilbrk/u8-possible-linebreaks.c: Update.
24084         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
24085         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
24086
24087 2009-02-09  Simon Josefsson  <simon@josefsson.org>
24088
24089         * lib/sockets.h (gl_fd_to_handle): New function.
24090
24091         * tests/test-sockets.c: Call gl_fd_to_handle.
24092
24093 2009-02-09  Bruno Haible  <bruno@clisp.org>
24094
24095         * doc/havelib.texi: Document the conventions on bi-arch systems.
24096
24097 2009-02-08  Bruno Haible  <bruno@clisp.org>
24098
24099         Document the AC_LIB_LINKFLAGS macro.
24100         * doc/havelib.texi: New file, mostly written on 2005-05-24.
24101         * doc/gnulib.texi: Include it.
24102
24103 2009-02-08  Bruno Haible  <bruno@clisp.org>
24104
24105         Fix wrong order of sections, compared to TOC.
24106         * doc/gnulib.texi: Include relocatable-maint.texi after the
24107         "Regular expressions" node, not before.
24108
24109 2009-02-08  Bruno Haible  <bruno@clisp.org>
24110
24111         Tests for module 'unicase/totitle'.
24112         * modules/unicase/totitle-tests: New file.
24113
24114         Tests for module 'unicase/tolower'.
24115         * modules/unicase/tolower-tests: New file.
24116
24117         Tests for module 'unicase/toupper'.
24118         * modules/unicase/toupper-tests: New file.
24119         * tests/unicase/test-mapping-part1.h: New file.
24120         * tests/unicase/test-mapping-part2.h: New file.
24121
24122         New module 'unicase/totitle'.
24123         * modules/unicase/totitle: New file.
24124         * lib/unicase/totitle.c: New file.
24125
24126         New module 'unicase/tolower'.
24127         * modules/unicase/tolower: New file.
24128         * lib/unicase/tolower.c: New file.
24129
24130         New module 'unicase/toupper'.
24131         * modules/unicase/toupper: New file.
24132         * lib/unicase/toupper.c: New file.
24133         * lib/unicase/simple-mapping.h: New file.
24134
24135         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
24136         (mapping_table): New structure.
24137         (output_simple_mapping): New function.
24138         (main): Invoke output_simple_mapping_test and output_simple_mapping.
24139         * modules/gen-uni-tables (Description): Update.
24140         * lib/unicase/toupper.h: New file, automatically generated by
24141         gen-uni-tables.
24142         * lib/unicase/tolower.h: New file, automatically generated by
24143         gen-uni-tables.
24144         * lib/unicase/totitle.h: New file, automatically generated by
24145         gen-uni-tables.
24146         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
24147         gen-uni-tables.
24148         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
24149         gen-uni-tables.
24150         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
24151         gen-uni-tables.
24152
24153         New module 'unicase/base'.
24154         * modules/unicase/base: New file.
24155         * lib/unicase.h: New file.
24156
24157 2009-02-08  Bruno Haible  <bruno@clisp.org>
24158
24159         New module 'uniwbrk/ulc-wordbreaks'.
24160         * modules/uniwbrk/ulc-wordbreaks: New file.
24161         * lib/uniwbrk/ulc-wordbreaks.c: New file.
24162
24163         New module 'uniwbrk/u32-wordbreaks'.
24164         * modules/uniwbrk/u32-wordbreaks: New file.
24165         * lib/uniwbrk/u32-wordbreaks.c: New file.
24166
24167         New module 'uniwbrk/u16-wordbreaks'.
24168         * modules/uniwbrk/u16-wordbreaks: New file.
24169         * lib/uniwbrk/u16-wordbreaks.c: New file.
24170
24171         New module 'uniwbrk/u8-wordbreaks'.
24172         * modules/uniwbrk/u8-wordbreaks: New file.
24173         * lib/uniwbrk/u8-wordbreaks.c: New file.
24174         * lib/uniwbrk/u-wordbreaks.h: New file.
24175
24176         New module 'uniwbrk/table'.
24177         * modules/uniwbrk/table: New file.
24178         * lib/uniwbrk/wbrktable.h: New file.
24179         * lib/uniwbrk/wbrktable.c: New file.
24180
24181         New module 'uniwbrk/wordbreak-property'.
24182         * modules/uniwbrk/wordbreak-property: New file.
24183         * lib/uniwbrk/wordbreak-property.c: New file.
24184
24185         * lib/gen-uni-tables.c (WBP_*): New enum items.
24186         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
24187         (unicode_org_wbp): New variable.
24188         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
24189         New functions.
24190         (wbp_table): New structure.
24191         (output_wbp, output_wbrk_tables): New functions.
24192         (main): Accept additional argument. Invoke fill_org_wbp,
24193         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
24194         output_wbrk_tables.
24195         * modules/gen-uni-tables (Description): Update.
24196         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
24197         gen-uni-tables.
24198
24199         New module 'uniwbrk/base'.
24200         * modules/uniwbrk/base: New file.
24201         * lib/uniwbrk.h: New file.
24202
24203 2009-02-08  Bruno Haible  <bruno@clisp.org>
24204
24205         Update to Unicode 5.1.0.
24206         * lib/gen-uni-tables.c (is_property_alphabetic): Include
24207         U+2185..U+2188.
24208         (is_property_default_ignorable_code_point): Don't include characters
24209         of category Cc or Cs and not-a-characters.
24210         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
24211         U+0D79, U+109E, U+109F, U+A60C.
24212         * lib/unictype/bidi_of.h: Regenerated.
24213         * lib/unictype/blocks.h: Regenerated.
24214         * lib/unictype/categ_C.h: Regenerated.
24215         * lib/unictype/categ_Cf.h: Regenerated.
24216         * lib/unictype/categ_Cn.h: Regenerated.
24217         * lib/unictype/categ_L.h: Regenerated.
24218         * lib/unictype/categ_Ll.h: Regenerated.
24219         * lib/unictype/categ_Lm.h: Regenerated.
24220         * lib/unictype/categ_Lo.h: Regenerated.
24221         * lib/unictype/categ_Lu.h: Regenerated.
24222         * lib/unictype/categ_M.h: Regenerated.
24223         * lib/unictype/categ_Mc.h: Regenerated.
24224         * lib/unictype/categ_Me.h: Regenerated.
24225         * lib/unictype/categ_Mn.h: Regenerated.
24226         * lib/unictype/categ_N.h: Regenerated.
24227         * lib/unictype/categ_Nd.h: Regenerated.
24228         * lib/unictype/categ_Nl.h: Regenerated.
24229         * lib/unictype/categ_No.h: Regenerated.
24230         * lib/unictype/categ_P.h: Regenerated.
24231         * lib/unictype/categ_Pd.h: Regenerated.
24232         * lib/unictype/categ_Pe.h: Regenerated.
24233         * lib/unictype/categ_Pf.h: Regenerated.
24234         * lib/unictype/categ_Pi.h: Regenerated.
24235         * lib/unictype/categ_Po.h: Regenerated.
24236         * lib/unictype/categ_Ps.h: Regenerated.
24237         * lib/unictype/categ_S.h: Regenerated.
24238         * lib/unictype/categ_Sk.h: Regenerated.
24239         * lib/unictype/categ_Sm.h: Regenerated.
24240         * lib/unictype/categ_So.h: Regenerated.
24241         * lib/unictype/categ_of.h: Regenerated.
24242         * lib/unictype/combining.h: Regenerated.
24243         * lib/unictype/ctype_alnum.h: Regenerated.
24244         * lib/unictype/ctype_alpha.h: Regenerated.
24245         * lib/unictype/ctype_graph.h: Regenerated.
24246         * lib/unictype/ctype_lower.h: Regenerated.
24247         * lib/unictype/ctype_print.h: Regenerated.
24248         * lib/unictype/ctype_punct.h: Regenerated.
24249         * lib/unictype/ctype_upper.h: Regenerated.
24250         * lib/unictype/decdigit.h: Regenerated.
24251         * lib/unictype/digit.h: Regenerated.
24252         * lib/unictype/mirror.h: Regenerated.
24253         * lib/unictype/numeric.h: Regenerated.
24254         * lib/unictype/pr_alphabetic.h: Regenerated.
24255         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
24256         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
24257         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
24258         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
24259         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
24260         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
24261         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
24262         * lib/unictype/pr_combining.h: Regenerated.
24263         * lib/unictype/pr_dash.h: Regenerated.
24264         * lib/unictype/pr_decimal_digit.h: Regenerated.
24265         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
24266         * lib/unictype/pr_deprecated.h: Regenerated.
24267         * lib/unictype/pr_diacritic.h: Regenerated.
24268         * lib/unictype/pr_extender.h: Regenerated.
24269         * lib/unictype/pr_format_control.h: Regenerated.
24270         * lib/unictype/pr_grapheme_base.h: Regenerated.
24271         * lib/unictype/pr_grapheme_extend.h: Regenerated.
24272         * lib/unictype/pr_grapheme_link.h: Regenerated.
24273         * lib/unictype/pr_id_continue.h: Regenerated.
24274         * lib/unictype/pr_id_start.h: Regenerated.
24275         * lib/unictype/pr_ideographic.h: Regenerated.
24276         * lib/unictype/pr_ignorable_control.h: Regenerated.
24277         * lib/unictype/pr_lowercase.h: Regenerated.
24278         * lib/unictype/pr_math.h: Regenerated.
24279         * lib/unictype/pr_numeric.h: Regenerated.
24280         * lib/unictype/pr_other_alphabetic.h: Regenerated.
24281         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
24282         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
24283         * lib/unictype/pr_other_id_continue.h: Regenerated.
24284         * lib/unictype/pr_other_lowercase.h: Regenerated.
24285         * lib/unictype/pr_other_math.h: Regenerated.
24286         * lib/unictype/pr_punctuation.h: Regenerated.
24287         * lib/unictype/pr_sentence_terminal.h: Regenerated.
24288         * lib/unictype/pr_soft_dotted.h: Regenerated.
24289         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
24290         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
24291         * lib/unictype/pr_unified_ideograph.h: Regenerated.
24292         * lib/unictype/pr_uppercase.h: Regenerated.
24293         * lib/unictype/pr_xid_continue.h: Regenerated.
24294         * lib/unictype/pr_xid_start.h: Regenerated.
24295         * lib/unictype/pr_zero_width.h: Regenerated.
24296         * lib/unictype/scripts.h: Regenerated.
24297         * lib/unictype/scripts_byname.gperf: Regenerated.
24298         * lib/unictype/sy_java_ident.h: Regenerated.
24299         * lib/unilbrk/lbrkprop1.h: Regenerated.
24300         * lib/unilbrk/lbrkprop2.h: Regenerated.
24301         * tests/unictype/test-categ_C.c: Regenerated.
24302         * tests/unictype/test-categ_Cf.c: Regenerated.
24303         * tests/unictype/test-categ_Cn.c: Regenerated.
24304         * tests/unictype/test-categ_L.c: Regenerated.
24305         * tests/unictype/test-categ_Ll.c: Regenerated.
24306         * tests/unictype/test-categ_Lm.c: Regenerated.
24307         * tests/unictype/test-categ_Lo.c: Regenerated.
24308         * tests/unictype/test-categ_Lu.c: Regenerated.
24309         * tests/unictype/test-categ_M.c: Regenerated.
24310         * tests/unictype/test-categ_Mc.c: Regenerated.
24311         * tests/unictype/test-categ_Me.c: Regenerated.
24312         * tests/unictype/test-categ_Mn.c: Regenerated.
24313         * tests/unictype/test-categ_N.c: Regenerated.
24314         * tests/unictype/test-categ_Nd.c: Regenerated.
24315         * tests/unictype/test-categ_Nl.c: Regenerated.
24316         * tests/unictype/test-categ_No.c: Regenerated.
24317         * tests/unictype/test-categ_P.c: Regenerated.
24318         * tests/unictype/test-categ_Pd.c: Regenerated.
24319         * tests/unictype/test-categ_Pe.c: Regenerated.
24320         * tests/unictype/test-categ_Pf.c: Regenerated.
24321         * tests/unictype/test-categ_Pi.c: Regenerated.
24322         * tests/unictype/test-categ_Po.c: Regenerated.
24323         * tests/unictype/test-categ_Ps.c: Regenerated.
24324         * tests/unictype/test-categ_S.c: Regenerated.
24325         * tests/unictype/test-categ_Sk.c: Regenerated.
24326         * tests/unictype/test-categ_Sm.c: Regenerated.
24327         * tests/unictype/test-categ_So.c: Regenerated.
24328         * tests/unictype/test-ctype_alnum.c: Regenerated.
24329         * tests/unictype/test-ctype_alpha.c: Regenerated.
24330         * tests/unictype/test-ctype_graph.c: Regenerated.
24331         * tests/unictype/test-ctype_lower.c: Regenerated.
24332         * tests/unictype/test-ctype_print.c: Regenerated.
24333         * tests/unictype/test-ctype_punct.c: Regenerated.
24334         * tests/unictype/test-ctype_upper.c: Regenerated.
24335         * tests/unictype/test-decdigit.h: Regenerated.
24336         * tests/unictype/test-digit.h: Regenerated.
24337         * tests/unictype/test-numeric.h: Regenerated.
24338         * tests/unictype/test-pr_alphabetic.c: Regenerated.
24339         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
24340         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
24341         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
24342         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
24343         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
24344         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
24345         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
24346         * tests/unictype/test-pr_combining.c: Regenerated.
24347         * tests/unictype/test-pr_dash.c: Regenerated.
24348         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
24349         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
24350         * tests/unictype/test-pr_deprecated.c: Regenerated.
24351         * tests/unictype/test-pr_diacritic.c: Regenerated.
24352         * tests/unictype/test-pr_extender.c: Regenerated.
24353         * tests/unictype/test-pr_format_control.c: Regenerated.
24354         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
24355         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
24356         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
24357         * tests/unictype/test-pr_id_continue.c: Regenerated.
24358         * tests/unictype/test-pr_id_start.c: Regenerated.
24359         * tests/unictype/test-pr_ideographic.c: Regenerated.
24360         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
24361         * tests/unictype/test-pr_lowercase.c: Regenerated.
24362         * tests/unictype/test-pr_math.c: Regenerated.
24363         * tests/unictype/test-pr_numeric.c: Regenerated.
24364         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
24365         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
24366         Regenerated.
24367         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
24368         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
24369         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
24370         * tests/unictype/test-pr_other_math.c: Regenerated.
24371         * tests/unictype/test-pr_punctuation.c: Regenerated.
24372         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
24373         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
24374         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
24375         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
24376         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
24377         * tests/unictype/test-pr_uppercase.c: Regenerated.
24378         * tests/unictype/test-pr_xid_continue.c: Regenerated.
24379         * tests/unictype/test-pr_xid_start.c: Regenerated.
24380         * tests/unictype/test-pr_zero_width.c: Regenerated.
24381
24382         Update to Unicode 5.1.0.
24383         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
24384         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
24385         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
24386         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
24387         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
24388         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
24389         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
24390         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
24391         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
24392         (nonspacing_table_ind): Update.
24393         * tests/uniwidth/test-uc_width2.sh: Update expected result.
24394
24395         Update to Unicode 5.1.0.
24396         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
24397         code transform.
24398         * lib/uniname/uniname.c (unicode_character_name,
24399         unicode_name_character): Add the range 0x1Fxxx to the code transform.
24400         * lib/uniname/uninames.h: Regenerated.
24401         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
24402
24403 2009-02-07  Bruno Haible  <bruno@clisp.org>
24404
24405         Merge gen-ctype and gen-lbrk into a single program.
24406         * lib/gen-uni-tables.c: New file, incorporating
24407         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
24408         Add directory prefixes to the names of the generated files.
24409         * lib/unictype/gen-ctype.c: Remove file.
24410         * lib/unilbrk/gen-lbrk.c: Remove file.
24411         * modules/gen-uni-tables: New file.
24412         * modules/unictype/gen-ctype: Remove file.
24413         * modules/unilbrk/gen-lbrk: Remove file.
24414
24415 2009-02-07  Bruno Haible  <bruno@clisp.org>
24416
24417         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
24418
24419         New module 'unistr/u32-strcoll'.
24420         * modules/unistr/u32-strcoll: New file.
24421         * lib/unistr/u32-strcoll.c: New file.
24422
24423         New module 'unistr/u16-strcoll'.
24424         * modules/unistr/u16-strcoll: New file.
24425         * lib/unistr/u16-strcoll.c: New file.
24426
24427         New module 'unistr/u8-strcoll'.
24428         * modules/unistr/u8-strcoll: New file.
24429         * lib/unistr/u8-strcoll.c: New file.
24430         * lib/unistr/u-strcoll.h: New file.
24431
24432 2009-02-07  Bruno Haible  <bruno@clisp.org>
24433
24434         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
24435         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
24436         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
24437         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
24438         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
24439         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
24440
24441 2009-02-07  Bruno Haible  <bruno@clisp.org>
24442
24443         Make 64-bit clean.
24444         * lib/unictype/gen-ctype.c (output_predicate, output_category,
24445         output_combclass, output_bidi_category, output_decimal_digit,
24446         output_digit, output_numeric, output_mirror, output_scripts,
24447         output_ident_category): Use proper width specifier in format strings.
24448
24449 2009-02-07  Bruno Haible  <bruno@clisp.org>
24450
24451         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
24452         failure behaviour.
24453
24454 2009-02-07  Jim Meyering  <meyering@redhat.com>
24455
24456         regex: avoid compilation failure with upcoming gcc-4.4
24457         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
24458         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
24459         "... error: integer overflow in preprocessor expression".
24460
24461 2009-02-05  Ben Pfaff  <blp@gnu.org>
24462
24463         Fix link errors on Windows when close module is used.
24464         * modules/close: Add $(LIB_CLOSE) to Link section.
24465         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
24466         $(LIB_CLOSE) on Windows.
24467
24468 2009-02-05  Jim Meyering  <meyering@redhat.com>
24469
24470         still avoid unused-parameter warnings, but do it cleanly
24471         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
24472         (get_fs_usage): Cast to void instead.
24473         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
24474         (dev_from_mount_options, read_file_system_list): Cast to void.
24475         Prompted by Bruno Haible.
24476
24477 2009-02-04  Jim Meyering  <meyering@redhat.com>
24478
24479         fsusage.c: correct copyright year
24480         * lib/fsusage.c: Reflect year in which the change is pushed into
24481
24482         avoid misc. warnings
24483         * lib/fsusage.c (UNUSED_PARAM): Define.
24484         (get_fs_usage): Mark parameter "disk" as unused.
24485         * lib/getugroups.c (getgrent): Use "void" in prototype.
24486         * lib/mountlist.c: Mark unused parameters.
24487         (read_file_system_list): Declare a local with "const".
24488         * lib/nanosleep.c (getnow): Declare static.
24489         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
24490
24491         dirfd: set errno upon failure
24492         * lib/dirfd.c: Include <errno.h>.
24493         Set errno to ENOTSUP when returning -1.
24494         * modules/dirfd (Depends-on): Add errno.
24495         Suggested by John Kodis <kodis@comcast.net>.
24496
24497 2009-02-01  Bruno Haible  <bruno@clisp.org>
24498
24499         Don't assume sizeof (long) >= sizeof (void *).
24500         * lib/memcmp.c: Include stdint.h.
24501         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
24502         srcp2 to 'const byte *'.
24503         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
24504         types to uintptr_t.
24505         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
24506         * modules/memcmp (Depends-on): Add stdint.
24507         Reported by Ozkan Sezer <sezeroz@gmail.com>.
24508
24509 2009-01-30  Eric Blake  <ebb9@byu.net>
24510
24511         fix more require-before-expand issues
24512         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
24513         expand, AC_PROG_AWK.
24514         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
24515
24516 2009-01-28  Eric Blake  <ebb9@byu.net>
24517
24518         version-etc: use consistent URL formatting
24519         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
24520         Improve formatting.  Use fputs for string without %.
24521
24522 2009-01-28  Jim Meyering  <meyering@redhat.com>
24523
24524         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
24525         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
24526         "underquoted definition of NAME" from autoconf-2.59.
24527
24528 2009-01-28  Bruno Haible  <bruno@clisp.org>
24529
24530         * doc/gnulib.texi: Add "Obsolete modules" to index.
24531
24532 2009-01-28  Jim Meyering  <meyering@redhat.com>
24533
24534         useless-if-before-free: recognize more variants
24535         * build-aux/useless-if-before-free: Also recognize e.g.,
24536         if (NULL != p) free (p);
24537
24538 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
24539
24540         test-getaddrinfo: skip (don't fail) this test when there's no network
24541         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
24542         on the presumption that it means you lack network access.
24543
24544 2009-01-26  Jim Meyering  <meyering@redhat.com>
24545
24546         fflush: avoid warnings on modern systems
24547         * lib/fflush.c (rpl_fflush): Move declarations of locals,
24548         pos and result, into scopes where they're used.
24549
24550 2009-01-26  Eric Blake  <ebb9@byu.net>
24551
24552         Silence warning reintroduced by recent extensions patch.
24553         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
24554         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
24555         autoconf.
24556
24557         Backport improved autoconf semantics of AC_DEFUN_ONCE.
24558         * m4/00gnulib.m4: New file.
24559         * gnulib-tool (func_get_filelist): Always use it.
24560         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
24561         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
24562
24563 2009-01-25  Bruno Haible  <bruno@clisp.org>
24564
24565         Make test-quotearg work on MacOS X and AIX.
24566         * tests/test-quotearg.sh: New file.
24567         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
24568         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
24569         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
24570         include <libintl.h>.
24571         (fake_locale): Remove variable.
24572         (gettext, dgettext, dcgettext): Remove functions.
24573         (main): Instead of setting a fake locale, set a real locale. Call
24574         textdomain and bindtextdomain.
24575         * modules/quotearg-tests (Files): Add the new files.
24576         (Depends-on): Add gettext, setenv, unsetenv.
24577         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
24578         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
24579         Augment TESTS_ENVIRONMENT.
24580
24581 2009-01-25  Bruno Haible  <bruno@clisp.org>
24582
24583         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
24584         fr_FR.ISO8859-1 locale on MacOS X.
24585         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
24586         ja_JP.eucJP locale on MacOS X.
24587         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
24588         zh_CN.GB18030 locale on MacOS X.
24589
24590 2009-01-25  Bruno Haible  <bruno@clisp.org>
24591
24592         Avoid link errors on MacOS X 10.3.
24593         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
24594         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
24595
24596 2009-01-25  Bruno Haible  <bruno@clisp.org>
24597
24598         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
24599         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
24600         * modules/pipe (Files): Remove m4/posix_spawn.m4.
24601         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
24602         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
24603         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
24604         posix_spawnattr_init, posix_spawnattr_setsigmask,
24605         posix_spawnattr_setflags, posix_spawnattr_destroy.
24606
24607         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
24608         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
24609         * modules/execute (Files): Remove m4/posix_spawn.m4.
24610         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
24611         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
24612         posix_spawnattr_init, posix_spawnattr_setsigmask,
24613         posix_spawnattr_setflags, posix_spawnattr_destroy.
24614
24615 2009-01-25  Bruno Haible  <bruno@clisp.org>
24616
24617         * lib/glthread/threadlib.c: Include <stdlib.h>.
24618
24619 2009-01-25  Bruno Haible  <bruno@clisp.org>
24620
24621         * lib/glthread/threadlib.c (dummy): New declaration.
24622
24623 2009-01-25  Bruno Haible  <bruno@clisp.org>
24624
24625         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
24626         multibyte characters also for the GB18030 encoding. Don't crash when
24627         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
24628
24629 2009-01-25  Bruno Haible  <bruno@clisp.org>
24630
24631         Avoid redefining 'struct random_data' on OSF/1 5.1.
24632         * lib/stdlib.in.h: Include <random.h> if it exists.
24633         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
24634         HAVE_RANDOM_H. Include <random.h> when testing whether
24635         'struct random_data' exists.
24636         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
24637
24638 2009-01-25  Bruno Haible  <bruno@clisp.org>
24639
24640         Don't install charset.alias on MacOS X >= 10.3.
24641         * lib/localcharset.c (DARWIN7): New macro.
24642         (get_charset_aliases): Hardcode the result for Darwin7.
24643         * modules/localcharset (install-exec-local): Don't install
24644         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
24645
24646 2009-01-25  Bruno Haible  <bruno@clisp.org>
24647
24648         Don't install charset.alias on mingw and Cygwin.
24649         * modules/localcharset (install-exec-local): Don't install
24650         charset.alias on mingw and Cygwin, if the file does not yet exist.
24651         The result for these platforms is hardcoded in localcharset.c.
24652
24653 2009-01-25  Bruno Haible  <bruno@clisp.org>
24654
24655         Make it possible again to use AC_GNU_SOURCE together with gnulib.
24656         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
24657         before requiring AC_USE_SYSTEM_EXTENSIONS.
24658
24659 2009-01-25  Jim Meyering  <meyering@redhat.com>
24660
24661         c-strtod: avoid warnings
24662         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
24663         "assignment discards qualifiers from pointer target type" warnings.
24664
24665 2009-01-24  Bruno Haible  <bruno@clisp.org>
24666
24667         Add support for non-UTF-8 locales on MacOS X.
24668         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
24669         canonical encodings. For Darwin 7 and newer, don't map traditional
24670         encodings to UTF-8.
24671         Reported by Vincent Lefevre <vincent@vinc17.org>
24672         at <http://savannah.gnu.org/bugs/?25235>.
24673
24674 2009-01-24  Bruno Haible  <bruno@clisp.org>
24675
24676         * doc/gnulib.texi (Obsolete modules): New section.
24677         Reported by Mike Frysinger <vapier@gentoo.org>.
24678
24679 2009-01-24  Bruno Haible  <bruno@clisp.org>
24680
24681         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
24682         (%.dvi): New rule.
24683
24684 2009-01-24  Bruno Haible  <bruno@clisp.org>
24685
24686         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
24687         Reported by Eric Blake.
24688
24689 2009-01-24  Bruno Haible  <bruno@clisp.org>
24690
24691         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
24692         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
24693         Reported by Gary V. Vaughan <gary@gnu.org>.
24694
24695 2009-01-24  Bruno Haible  <bruno@clisp.org>
24696
24697         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
24698
24699 2009-01-23  Bruno Haible  <bruno@clisp.org>
24700
24701         Make c-strtod, c-strtold usable in libraries.
24702         * lib/c-strtod.c: Include string.h instead of xalloc.h.
24703         (C_STRTOD): Call strdup instead of xstrdup.
24704         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
24705         * modules/c-strtold (Depends-on): Likewise.
24706         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
24707         * NEWS: Mention the change.
24708         Reported by Michael Gold <mgold@ncf.ca>.
24709
24710 2009-01-23  Jim Meyering  <meyering@redhat.com>
24711
24712         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
24713         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
24714         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
24715
24716 2009-01-23  Simon Josefsson  <simon@josefsson.org>
24717
24718         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
24719         GNU CoreUtils.
24720         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
24721         * modules/version-etc (Description): Update.
24722
24723 2009-01-22  Bruno Haible  <bruno@clisp.org>
24724
24725         Cache the C locale object.
24726         * lib/c-strtod.c (c_locale_cache): New variable.
24727         (c_locale): New function.
24728         (C_STRTOD): Use it, and don't call freelocale.
24729         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
24730         Suggested by Paolo Bonzini.
24731
24732 2009-01-21  Bruno Haible  <bruno@clisp.org>
24733
24734         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
24735         conditions other than overflow.
24736
24737 2009-01-21  Bruno Haible  <bruno@clisp.org>
24738
24739         * lib/c-strtod.c: Include errno.h.
24740         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
24741         value from STRTOD_L and STRTOD.
24742
24743 2009-01-21  Bruno Haible  <bruno@clisp.org>
24744         and Jim Meyering  <meyering@redhat.com>
24745
24746         nanosleep: skip configure test (fail it) for apple universal builds
24747         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
24748         universal builds, assume that nanosleep does not work.
24749         * modules/nanosleep (Depends-on): Add multiarch.
24750
24751         mktime: skip configure test (fail it) for apple universal builds
24752         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
24753         universal builds, assume that mktime does not work.
24754         * modules/mktime (Depends-on): Add multiarch.
24755
24756 2009-01-21  Eric Blake  <ebb9@byu.net>
24757
24758         multiarch: avoid expand-before-require warning
24759         * modules/multiarch (configure.ac): Require, rather than expand,
24760         gl_MULTIARCH.
24761         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
24762         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
24763         enforce that all clients require it.  Partial reversion of
24764         2008-12-29 patch.
24765
24766         error: avoid expand-before-require warning
24767         * modules/errno (configure.ac): Require, rather than expand,
24768         gl_HEADER_ERRNO_H.
24769         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
24770         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
24771         enforce that all clients require it.
24772
24773         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
24774         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
24775         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
24776         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
24777
24778 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
24779
24780         Revert:
24781         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
24782
24783         regex: do not depend on obsolete modules.
24784         * modules/regex: Remove memcmp and memmove.
24785
24786 2009-01-20  Bruno Haible  <bruno@clisp.org>
24787
24788         Make the 'link' module link on Windows NT 4.
24789         * lib/link.c (_WIN32_WINNT): Don't define.
24790         (CreateHardLinkFuncType): New type.
24791         (CreateHardLinkFunc, initialized): New variables.
24792         (initialize): New function.
24793         (link): Invoke CreateHardLink indirectly through the function pointer.
24794
24795 2009-01-20  Bruno Haible  <bruno@clisp.org>
24796
24797         Fix compilation failure on mingw.
24798         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
24799
24800 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
24801
24802         * doc/c-strtod.texi: Mention a couple of restrictions.
24803
24804 2009-01-20  Jim Meyering  <meyering@redhat.com>
24805
24806         gettimeofday: move more declarations out of functions
24807         * lib/gettimeofday.c: Move extern declarations of tzset and
24808         gmtime out of containing functions.  Prompted by Bruno Haible.
24809
24810 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
24811
24812         regex: do not depend on obsolete modules.
24813         * modules/regex: Remove memcmp and memmove.
24814
24815 2009-01-19  Bruno Haible  <bruno@clisp.org>
24816
24817         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
24818         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
24819         gl_BIGENDIAN, not AC_C_BIGENDIAN.
24820         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
24821         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
24822
24823 2009-01-19  Bruno Haible  <bruno@clisp.org>
24824
24825         * tests/test-link.c: Include <errno.h>.
24826         (main): Exit with code 77 when a hard link cannot be created due to
24827         the file system.
24828         * tests/test-link.sh: Skip test when a hard link cannot be created due
24829         to the file system.
24830         Suggested by Eric Blake.
24831
24832 2009-01-19  Martin Lambers  <marlam@marlam.de>
24833
24834         * modules/link-tests: New file.
24835         * tests/test-link.sh: New file.
24836         * tests/test-link.c: New file.
24837
24838 2009-01-19  Eric Blake  <ebb9@byu.net>
24839
24840         doc: mention another function added in cygwin 1.7.0
24841         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
24842         Another new function in cygwin 1.7.
24843
24844 2009-01-19  Bruno Haible  <bruno@clisp.org>
24845
24846         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
24847         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
24848         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
24849         gl_BIGENDIAN, not AC_C_BIGENDIAN.
24850         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
24851         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
24852         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
24853         * m4/md4.m4 (gl_MD4): Likewise.
24854         * m4/md5.m4 (gl_MD5): Likewise.
24855         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
24856         * m4/sha1.m4 (gl_SHA1): Likewise.
24857         * m4/sha256.m4 (gl_SHA256): Likewise.
24858         * m4/sha512.m4 (gl_SHA512): Likewise.
24859
24860 2009-01-19  Bruno Haible  <bruno@clisp.org>
24861
24862         * modules/uniname/uniname-tests (Depends-on): Add progname.
24863         * tests/uniname/test-uninames.c: Include progname.h.
24864         (main): Call set_program_name.
24865
24866         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
24867         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
24868         (main): Call set_program_name.
24869
24870         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
24871         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
24872         (main): Call set_program_name.
24873
24874         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
24875         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
24876         (main): Call set_program_name.
24877
24878         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
24879         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
24880         (main): Call set_program_name.
24881
24882         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
24883         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
24884         (main): Call set_program_name.
24885
24886         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
24887         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
24888         (main): Call set_program_name.
24889
24890         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
24891         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
24892         (main): Call set_program_name.
24893
24894         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
24895         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
24896         (main): Call set_program_name.
24897
24898 2009-01-19  Eric Blake  <ebb9@byu.net>
24899
24900         test-unistd: test previous patch
24901         * tests/test-unistd.c: Test *_FILENO macros.
24902
24903         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
24904         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24905         Guarantee a definition.
24906         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
24907         * modules/unistd-safer (Depends-on): Add dependency on unistd.
24908         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
24909         * lib/dup-safer.c (STDERR_FILENO): Likewise.
24910         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24911         Likewise.
24912         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
24913         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
24914         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
24915         Likewise.
24916         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
24917         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
24918         (STDERR_FILENO): Likewise.
24919         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
24920         (STDERR_FILENO): Likewise.
24921         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
24922         (STDERR_FILENO): Likewise.
24923         Reported by Elbert Pol.
24924
24925 2009-01-19  Eric Blake  <ebb9@byu.net>
24926
24927         doc: mention more functions added in cygwin 1.7.0
24928         * doc/posix-functions/abort.texi (abort): Update wording related
24929         to cygwin.
24930         * doc/posix-functions/daylight.texi (daylight): Likewise.
24931         * doc/posix-functions/optarg.texi (optarg): Likewise.
24932         * doc/posix-functions/optarg.texi (opterr): Likewise.
24933         * doc/posix-functions/optarg.texi (optind): Likewise.
24934         * doc/posix-functions/optarg.texi (optopt): Likewise.
24935         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
24936         worked in 1.5.x, and was withdrawn in 1.7.
24937         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
24938         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
24939         cygwin versions.
24940         * doc/posix-functions/perror.texi (perror): Likewise.
24941         * doc/posix-functions/printf.texi (printf): Likewise.
24942         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
24943         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
24944         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
24945         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
24946         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24947         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
24948         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
24949         Likewise.
24950         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
24951         Likewise.
24952         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
24953         this function.
24954         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
24955         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
24956         Likewise.
24957         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
24958         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
24959         * doc/posix-functions/confstr.texi (confstr): Likewise.
24960         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
24961         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
24962         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
24963         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
24964         * doc/posix-functions/fputws.texi (fputws): Likewise.
24965         * doc/posix-functions/fwide.texi (fwide): Likewise.
24966         * doc/posix-functions/getwc.texi (getwc): Likewise.
24967         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
24968         * doc/posix-functions/putwc.texi (putwc): Likewise.
24969         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
24970         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
24971         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
24972         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
24973         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
24974         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
24975         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
24976         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
24977         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
24978         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
24979         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
24980
24981 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
24982
24983         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
24984         * lib/ioctl.c: Include <sys/ioctl.h>.
24985
24986 2009-01-19  Simon Josefsson  <simon@josefsson.org>
24987
24988         * modules/getdate-tests (Depends-on): Add progname.
24989         * tests/test-getdate.c: Use progname module, to avoid link errors
24990         on non-glibc systems.
24991
24992 2009-01-18  Simon Josefsson  <simon@josefsson.org>
24993
24994         * modules/filenamecat-tests (Depends-on): Add progname.
24995         * modules/fstrcmp-tests (Depends-on): Likewise.
24996
24997         * tests/test-filenamecat.c: Use progname module, to avoid link
24998         errors on non-glibc systems.
24999         * tests/test-fstrcmp.c: Likewise.
25000
25001 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
25002
25003         gettimeofday: avoid warning: nested extern declaration of 'localtime'
25004         * lib/gettimeofday.c: Move extern declaration out of function.
25005
25006 2009-01-18  Bruno Haible  <bruno@clisp.org>
25007
25008         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
25009         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
25010         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
25011
25012 2009-01-18  Bruno Haible  <bruno@clisp.org>
25013
25014         * lib/strftime.c (MEMPCPY): Remove unused macro.
25015         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
25016
25017 2009-01-18  Martin Lambers  <marlam@marlam.de>
25018
25019         New module 'link'.
25020         * lib/unistd.in.h (link): New declaration.
25021         * lib/link.c: New file.
25022         * m4/link.m4: New file.
25023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
25024         HAVE_LINK.
25025         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
25026         * modules/link: New file.
25027         * doc/posix-functions/link.texi: Mention the new module.
25028
25029 2009-01-18  Bruno Haible  <bruno@clisp.org>
25030
25031         * tests/test-avltree_list.c (main): Call set_program_name.
25032         * tests/test-avltree_oset.c (main): Likewise.
25033         * tests/test-obstack-printf.c: Include progname.h.
25034         (main): Call set_program_name.
25035         * tests/test-quotearg.c: Include progname.h.
25036         (main): Call set_program_name.
25037         * tests/test-xmemdup0.c: Include progname.h.
25038         (main): Call set_program_name.
25039
25040 2009-01-18  Bruno Haible  <bruno@clisp.org>
25041
25042         New module 'alphasort'.
25043         * lib/dirent.in.h (alphasort): New declaration.
25044         * lib/alphasort.c: New file, from glibc with modifications.
25045         * m4/alphasort.m4: New file.
25046         * modules/alphasort: New file.
25047         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
25048         HAVE_ALPHASORT.
25049         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
25050         HAVE_ALPHASORT.
25051         * doc/posix-functions/alphasort.texi: Mention the new module and the
25052         portability problems.
25053
25054 2009-01-18  Bruno Haible  <bruno@clisp.org>
25055
25056         New module 'scandir'.
25057         * lib/dirent.in.h (scandir): New declaration.
25058         * lib/scandir.c: New file, from glibc with modifications.
25059         * m4/scandir.m4: New file.
25060         * modules/scandir: New file.
25061         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
25062         HAVE_SCANDIR.
25063         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
25064         HAVE_SCANDIR.
25065         * doc/posix-functions/scandir.texi: Mention the new module and the
25066         portability problems.
25067
25068 2009-01-17  Bruno Haible  <bruno@clisp.org>
25069
25070         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
25071         Update documentation.
25072         (func_remove_suffix): Escape all dots in the suffix. Update
25073         documentation.
25074         (func_filter_filelist): Update documentation.
25075         Reported by Ralf Wildenhues.
25076
25077 2009-01-17  Bruno Haible  <bruno@clisp.org>
25078
25079         * modules/dprintf-posix-tests: New file.
25080         * tests/test-dprintf-posix.sh: New file.
25081         * tests/test-dprintf-posix.c: New file.
25082
25083         New modules 'dprintf', 'dprintf-posix'.
25084         * lib/stdio.in.h (dprintf): New declaration.
25085         * lib/dprintf.c: New file.
25086         * m4/dprintf.m4: New file.
25087         * m4/dprintf-posix.m4: New file.
25088         * modules/dprintf: New file.
25089         * modules/dprintf-posix: New file.
25090         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
25091         HAVE_DPRINTF, REPLACE_DPRINTF.
25092         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
25093         HAVE_DPRINTF, REPLACE_DPRINTF.
25094         * doc/posix-functions/dprintf.texi: Mention the new modules.
25095
25096 2009-01-17  Bruno Haible  <bruno@clisp.org>
25097
25098         * modules/vdprintf-posix-tests: New file.
25099         * tests/test-vdprintf-posix.sh: New file.
25100         * tests/test-vdprintf-posix.c: New file.
25101
25102         New modules 'vdprintf', 'vdprintf-posix'.
25103         * lib/stdio.in.h (vdprintf): New declaration.
25104         * lib/vdprintf.c: New file.
25105         * m4/vdprintf.m4: New file.
25106         * m4/vdprintf-posix.m4: New file.
25107         * modules/vdprintf: New file.
25108         * modules/vdprintf-posix: New file.
25109         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
25110         HAVE_VDPRINTF, REPLACE_VDPRINTF.
25111         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
25112         HAVE_VDPRINTF, REPLACE_VDPRINTF.
25113         * doc/posix-functions/vdprintf.texi: Mention the new modules.
25114
25115 2009-01-17  Bruno Haible  <bruno@clisp.org>
25116
25117         Fix replacement of fopen on mingw.
25118         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
25119         mingw.
25120
25121 2009-01-17  Bruno Haible  <bruno@clisp.org>
25122
25123         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
25124         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
25125
25126 2009-01-17  Bruno Haible  <bruno@clisp.org>
25127
25128         Avoid test-fflush2.sh failure on mingw.
25129         * tests/test-fflush2.c: Include binary-io.h.
25130         (main): Put standard input into binary mode.
25131         * modules/fflush-tests (Depends-on): Add binary-io.
25132
25133 2009-01-17  Bruno Haible  <bruno@clisp.org>
25134
25135         * lib/wchar.in.h: In another particular situation, include only the
25136         system's <wchar.h> file.
25137         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
25138         Reported by Albert Chin-A-Young <china@thewrittenword.com>
25139         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
25140
25141 2009-01-17  Bruno Haible  <bruno@clisp.org>
25142
25143         Support for stripping executables in --enable-relocatable.
25144         * build-aux/install-reloc: Expect one more argument, or an environment
25145         variable RELOC_STRIP_PROG. If set, strip the destination program and
25146         its wrapper.
25147         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
25148         RELOC_STRIP_PROG.
25149         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
25150         to set RELOCATABLE_STRIP.
25151         * NEWS: Mention the new Makefile requirement.
25152
25153 2009-01-17  Bruno Haible  <bruno@clisp.org>
25154
25155         * build-aux/install-reloc: Remove debugging information left over by
25156         C compiler on MacOS X.
25157
25158 2009-01-17  Bruno Haible  <bruno@clisp.org>
25159
25160         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
25161         * lib/progreloc.c (find_executable): Fix type of pointer passed to
25162         _NSGetExecutablePath.
25163
25164 2009-01-16  Jim Meyering  <meyering@redhat.com>
25165
25166         strerror: avoid warnings about discarding "const"
25167         * lib/strerror.c (rpl_strerror): Instead of returning a const
25168         string from each and every "case", use a variable, and add a single
25169         cast after the switch.
25170
25171 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
25172
25173         * lib/arpa_inet.in.h: Add extern "C" block for C++.
25174
25175 2009-01-16  Bruno Haible  <bruno@clisp.org>
25176
25177         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
25178         array initializer syntax that also works in C++ mode.
25179         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25180
25181 2009-01-16  Jim Meyering  <meyering@redhat.com>
25182
25183         poll: suppress a warning
25184         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
25185         to ignore "...unsigned expression < 0 is always false" warnings.
25186
25187 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
25188
25189         poll: remove declarations of unused variables
25190         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
25191         sockbuf and optlen.
25192
25193 2009-01-15  Bruno Haible  <bruno@clisp.org>
25194
25195         Make fflush-after-ungetc POSIX compliant on BSD systems.
25196         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
25197         (clear_ungetc_buffer): Implement also for other systems.
25198         (rpl_fflush): On glibc systems, invoke
25199         clear_ungetc_buffer_preserving_position. Otherwise, invoke
25200         clear_ungetc_buffer after fetching the stream's position, not before.
25201
25202 2009-01-15  Bruno Haible  <bruno@clisp.org>
25203
25204         Make fflush-after-ungetc POSIX compliant on glibc systems.
25205         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
25206         after ungetc.
25207         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
25208         (rpl_fflush): On glibc systems, simply call the system's fflush
25209         function after clearing the ungetc buffer.
25210         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
25211         Instead, lseek only to the end of file, then use the system's fseeko
25212         for the rest. On glibc systems, reset the EOF indicator bit.
25213
25214 2009-01-15  Jim Meyering  <meyering@redhat.com>
25215
25216         openmp.m4: revert quote-adding change, for portability to older autoconf
25217         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
25218         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
25219         Simon Josefsson noticed the problem when using autoconf-2.61.
25220
25221 2009-01-15  Bruno Haible  <bruno@clisp.org>
25222
25223         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
25224         * tests/test-fflush2.c (ASSERT): Always fail.
25225         (main): Add two tests for fflush() after ungetc(), taking into account
25226         the Austin Group's clarification.
25227         Suggested by Eric Blake.
25228
25229 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
25230
25231         mktime.m4: remove K&R-style function prototypes
25232         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
25233         for the Sun C++ compiler.
25234
25235 2009-01-14  Bruno Haible  <bruno@clisp.org>
25236
25237         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
25238         while including <wchar.h>.
25239         * lib/wchar.in.h: In two particular situations on HP-UX, include only
25240         the system's <wchar.h> file.
25241         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25242
25243 2009-01-14  Bruno Haible  <bruno@clisp.org>
25244
25245         * m4/csharp.m4: Don't mention gettext on the serial number line.
25246         * m4/csharpexec.m4: Likewise.
25247         * m4/eaccess.m4: Likewise.
25248         * m4/javaexec.m4: Likewise.
25249         * m4/sig_atomic_t.m4: Likewise.
25250         * m4/tmpdir.m4: Likewise.
25251         * m4/intldir.m4: Bump gettext version.
25252         * m4/lib-ld.m4: Likewise.
25253
25254 2009-01-14  Bruno Haible  <bruno@clisp.org>
25255
25256         * lib/progname.c (set_program_name): Add more comments.
25257         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
25258
25259 2009-01-14  Simon Josefsson  <simon@josefsson.org>
25260
25261         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
25262         were sys/stat.h does not define it.
25263
25264 2009-01-14  Jim Meyering  <meyering@redhat.com>
25265
25266         many *.m4 files: improve m4 quoting
25267         99% of this change was performed by running the following commands:
25268         git ls-files | grep '\.m4$' | xargs perl -pi \
25269           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
25270           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
25271           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
25272           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
25273         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
25274         The remainder were to add Copyright dates, increment serial numbers,
25275         undo some changes in comments, exclude m4/intl.m4, and add quotes
25276         around the "1" in ",1" where the unusual spacing prohibited the
25277         above regexps from doing the job.  For more details, see
25278         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
25279         * m4/acl.m4: Modified.
25280         * m4/afs.m4: Likewise.
25281         * m4/alloca.m4: Likewise.
25282         * m4/argp.m4: Likewise.
25283         * m4/argz.m4: Likewise.
25284         * m4/atexit.m4: Likewise.
25285         * m4/bison-i18n.m4: Likewise.
25286         * m4/bison.m4: Likewise.
25287         * m4/byteswap.m4: Likewise.
25288         * m4/c-stack.m4: Likewise.
25289         * m4/c-strtod.m4: Likewise.
25290         * m4/calloc.m4: Likewise.
25291         * m4/canonicalize-lgpl.m4: Likewise.
25292         * m4/chown.m4: Likewise.
25293         * m4/clock_time.m4: Likewise.
25294         * m4/codeset.m4: Likewise.
25295         * m4/copy-file.m4: Likewise.
25296         * m4/csharp.m4: Likewise.
25297         * m4/csharpcomp.m4: Likewise.
25298         * m4/csharpexec.m4: Likewise.
25299         * m4/d-ino.m4: Likewise.
25300         * m4/d-type.m4: Likewise.
25301         * m4/dirfd.m4: Likewise.
25302         * m4/double-slash-root.m4: Likewise.
25303         * m4/eaccess.m4: Likewise.
25304         * m4/eealloc.m4: Likewise.
25305         * m4/environ.m4: Likewise.
25306         * m4/errno_h.m4: Likewise.
25307         * m4/euidaccess.m4: Likewise.
25308         * m4/execute.m4: Likewise.
25309         * m4/fatal-signal.m4: Likewise.
25310         * m4/fchdir.m4: Likewise.
25311         * m4/fcntl_h.m4: Likewise.
25312         * m4/fileblocks.m4: Likewise.
25313         * m4/filenamecat.m4: Likewise.
25314         * m4/findprog.m4: Likewise.
25315         * m4/flexmember.m4: Likewise.
25316         * m4/fnmatch.m4: Likewise.
25317         * m4/fopen.m4: Likewise.
25318         * m4/fpending.m4: Likewise.
25319         * m4/fprintf-posix.m4: Likewise.
25320         * m4/free.m4: Likewise.
25321         * m4/frexp.m4: Likewise.
25322         * m4/frexpl.m4: Likewise.
25323         * m4/fsusage.m4: Likewise.
25324         * m4/ftruncate.m4: Likewise.
25325         * m4/gc-camellia.m4: Likewise.
25326         * m4/gc-random.m4: Likewise.
25327         * m4/gc.m4: Likewise.
25328         * m4/getaddrinfo.m4: Likewise.
25329         * m4/getcwd-abort-bug.m4: Likewise.
25330         * m4/getcwd-path-max.m4: Likewise.
25331         * m4/getdate.m4: Likewise.
25332         * m4/getdomainname.m4: Likewise.
25333         * m4/getgroups.m4: Likewise.
25334         * m4/gethostname.m4: Likewise.
25335         * m4/gethrxtime.m4: Likewise.
25336         * m4/getline.m4: Likewise.
25337         * m4/getloadavg.m4: Likewise.
25338         * m4/getndelim2.m4: Likewise.
25339         * m4/getpass.m4: Likewise.
25340         * m4/gettext.m4: Likewise.
25341         * m4/gettime.m4: Likewise.
25342         * m4/gettimeofday.m4: Likewise.
25343         * m4/gnulib-common.m4: Likewise.
25344         * m4/group-member.m4: Likewise.
25345         * m4/host-os.m4: Likewise.
25346         * m4/iconv.m4: Likewise.
25347         * m4/iconv_open.m4: Likewise.
25348         * m4/inet_ntop.m4: Likewise.
25349         * m4/inet_pton.m4: Likewise.
25350         * m4/inline.m4: Likewise.
25351         * m4/intldir.m4: Likewise.
25352         * m4/intlmacosx.m4: Likewise.
25353         * m4/intmax.m4: Likewise.
25354         * m4/intmax_t.m4: Likewise.
25355         * m4/inttypes.m4: Likewise.
25356         * m4/inttypes_h.m4: Likewise.
25357         * m4/inttypes-pri.m4: Likewise.
25358         * m4/isapipe.m4: Likewise.
25359         * m4/isnand.m4: Likewise.
25360         * m4/isnanf.m4: Likewise.
25361         * m4/isnanl.m4: Likewise.
25362         * m4/javacomp.m4: Likewise.
25363         * m4/javaexec.m4: Likewise.
25364         * m4/jm-winsz1.m4: Likewise.
25365         * m4/jm-winsz2.m4: Likewise.
25366         * m4/lchown.m4: Likewise.
25367         * m4/lcmessage.m4: Likewise.
25368         * m4/ldexpl.m4: Likewise.
25369         * m4/lib-ld.m4: Likewise.
25370         * m4/lib-link.m4: Likewise.
25371         * m4/libsigsegv.m4: Likewise.
25372         * m4/link-follow.m4: Likewise.
25373         * m4/localcharset.m4: Likewise.
25374         * m4/locale-fr.m4: Likewise.
25375         * m4/locale-ja.m4: Likewise.
25376         * m4/locale-tr.m4: Likewise.
25377         * m4/locale-zh.m4: Likewise.
25378         * m4/lock.m4: Likewise.
25379         * m4/longlong.m4: Likewise.
25380         * m4/ls-mntd-fs.m4: Likewise.
25381         * m4/lstat.m4: Likewise.
25382         * m4/malloc.m4: Likewise.
25383         * m4/mathl.m4: Likewise.
25384         * m4/mbrtowc.m4: Likewise.
25385         * m4/mbstate_t.m4: Likewise.
25386         * m4/mbswidth.m4: Likewise.
25387         * m4/memchr.m4: Likewise.
25388         * m4/memcmp.m4: Likewise.
25389         * m4/memcpy.m4: Likewise.
25390         * m4/memmem.m4: Likewise.
25391         * m4/memmove.m4: Likewise.
25392         * m4/mempcpy.m4: Likewise.
25393         * m4/memrchr.m4: Likewise.
25394         * m4/memset.m4: Likewise.
25395         * m4/minmax.m4: Likewise.
25396         * m4/mkdir-slash.m4: Likewise.
25397         * m4/mkdtemp.m4: Likewise.
25398         * m4/mktime.m4: Likewise.
25399         * m4/mmap-anon.m4: Likewise.
25400         * m4/mountlist.m4: Likewise.
25401         * m4/nanosleep.m4: Likewise.
25402         * m4/nls.m4: Likewise.
25403         * m4/nocrash.m4: Likewise.
25404         * m4/open.m4: Likewise.
25405         * m4/openat.m4: Likewise.
25406         * m4/openmp.m4: Likewise.
25407         * m4/pathmax.m4: Likewise.
25408         * m4/perl.m4: Likewise.
25409         * m4/physmem.m4: Likewise.
25410         * m4/pipe.m4: Likewise.
25411         * m4/po.m4: Likewise.
25412         * m4/poll.m4: Likewise.
25413         * m4/posixtm.m4: Likewise.
25414         * m4/posixver.m4: Likewise.
25415         * m4/printf-frexp.m4: Likewise.
25416         * m4/printf-frexpl.m4: Likewise.
25417         * m4/printf-posix.m4: Likewise.
25418         * m4/printf-posix-rpl.m4: Likewise.
25419         * m4/printf.m4: Likewise.
25420         * m4/progtest.m4: Likewise.
25421         * m4/putenv.m4: Likewise.
25422         * m4/readline.m4: Likewise.
25423         * m4/readlink.m4: Likewise.
25424         * m4/readutmp.m4: Likewise.
25425         * m4/realloc.m4: Likewise.
25426         * m4/regex.m4: Likewise.
25427         * m4/relocatable.m4: Likewise.
25428         * m4/relocatable-lib.m4: Likewise.
25429         * m4/rename-dest-slash.m4: Likewise.
25430         * m4/rename.m4: Likewise.
25431         * m4/rmdir-errno.m4: Likewise.
25432         * m4/rmdir.m4: Likewise.
25433         * m4/roundf.m4: Likewise.
25434         * m4/roundl.m4: Likewise.
25435         * m4/rpmatch.m4: Likewise.
25436         * m4/save-cwd.m4: Likewise.
25437         * m4/selinux-selinux-h.m4: Likewise.
25438         * m4/setenv.m4: Likewise.
25439         * m4/settime.m4: Likewise.
25440         * m4/sig2str.m4: Likewise.
25441         * m4/sig_atomic_t.m4: Likewise.
25442         * m4/signalblocking.m4: Likewise.
25443         * m4/signbit.m4: Likewise.
25444         * m4/sigpipe.m4: Likewise.
25445         * m4/sockets.m4: Likewise.
25446         * m4/sockpfaf.m4: Likewise.
25447         * m4/st_dm_mode.m4: Likewise.
25448         * m4/stat-time.m4: Likewise.
25449         * m4/stdbool.m4: Likewise.
25450         * m4/stdint.m4: Likewise.
25451         * m4/stdint_h.m4: Likewise.
25452         * m4/stpcpy.m4: Likewise.
25453         * m4/stpncpy.m4: Likewise.
25454         * m4/strcase.m4: Likewise.
25455         * m4/strchrnul.m4: Likewise.
25456         * m4/strcspn.m4: Likewise.
25457         * m4/strdup.m4: Likewise.
25458         * m4/strftime.m4: Likewise.
25459         * m4/strndup.m4: Likewise.
25460         * m4/strnlen.m4: Likewise.
25461         * m4/strpbrk.m4: Likewise.
25462         * m4/strptime.m4: Likewise.
25463         * m4/strsep.m4: Likewise.
25464         * m4/strtod.m4: Likewise.
25465         * m4/strtoimax.m4: Likewise.
25466         * m4/strtok_r.m4: Likewise.
25467         * m4/strtol.m4: Likewise.
25468         * m4/strtoll.m4: Likewise.
25469         * m4/strtoul.m4: Likewise.
25470         * m4/strtoull.m4: Likewise.
25471         * m4/strtoumax.m4: Likewise.
25472         * m4/strverscmp.m4: Likewise.
25473         * m4/threadlib.m4: Likewise.
25474         * m4/timegm.m4: Likewise.
25475         * m4/tm_gmtoff.m4: Likewise.
25476         * m4/tmpdir.m4: Likewise.
25477         * m4/tmpfile.m4: Likewise.
25478         * m4/tzset.m4: Likewise.
25479         * m4/uintmax_t.m4: Likewise.
25480         * m4/unlinkdir.m4: Likewise.
25481         * m4/unlocked-io.m4: Likewise.
25482         * m4/uptime.m4: Likewise.
25483         * m4/userspec.m4: Likewise.
25484         * m4/utimbuf.m4: Likewise.
25485         * m4/utime.m4: Likewise.
25486         * m4/utimes-null.m4: Likewise.
25487         * m4/utimes.m4: Likewise.
25488         * m4/vararrays.m4: Likewise.
25489         * m4/vasnprintf.m4: Likewise.
25490         * m4/vfprintf-posix.m4: Likewise.
25491         * m4/vprintf-posix.m4: Likewise.
25492         * m4/wait-process.m4: Likewise.
25493         * m4/wchar_t.m4: Likewise.
25494         * m4/wint_t.m4: Likewise.
25495         * m4/write-any-file.m4: Likewise.
25496         * m4/yield.m4: Likewise.
25497
25498 2009-01-13  Bruno Haible  <bruno@clisp.org>
25499
25500         Avoid test-copy-file.sh failures when ACL support insufficient.
25501         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
25502         TESTS_ENVIRONMENT.
25503         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
25504         Reported by Jim Meyering.
25505
25506 2009-01-13  Bruno Haible  <bruno@clisp.org>
25507
25508         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
25509         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
25510         * modules/unistdio/u8-printf-parse (Files): Likewise.
25511         * modules/unistdio/u32-printf-parse (Files): Likewise.
25512         * modules/unistdio/ulc-printf-parse (Files): Likewise.
25513
25514 2009-01-13  Simon Josefsson  <simon@josefsson.org>
25515
25516         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
25517         and m4/inttypes_h.m4 too.
25518
25519 2009-01-12  Eric Blake  <ebb9@byu.net>
25520
25521         tests: IRIX 6.2 cc can't compile -0.0 into .data
25522         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
25523         rather than at compile-time.
25524         * tests/test-floorl.c (minus_zero): Likewise.
25525         * tests/test-frexpl.c (minus_zero): Likewise.
25526         * tests/test-isnan.c (minus_zerol): Likewise.
25527         * tests/test-isnanl.h (minus_zero): Likewise.
25528         * tests/test-ldexpl.c (minus_zero): Likewise.
25529         * tests/test-roundl.c (minus_zero): Likewise.
25530         * tests/test-signbit.c (minus_zerol): Likewise.
25531         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25532         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25533         * tests/test-truncl.c (minus_zero): Likewise.
25534         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25535         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25536         Reported by Tom G. Christensen and Nelson H. F. Beebe.
25537
25538 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25539
25540         regex: fix glibc bug 9697
25541         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
25542         handling.
25543
25544 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25545
25546         regex: fix glibc bug 697
25547         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
25548         being NULL also if there are no backreferences.
25549
25550 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
25551
25552         regex: merge glibc changes
25553         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
25554         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
25555         re_string_skip_chars, re_string_reconstruct): Likewise.
25556         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
25557
25558 2009-01-07  Jim Meyering  <meyering@redhat.com>
25559
25560         poll: filter through cppi
25561         * lib/poll.c: Indent cpp directives to reflect nesting.
25562
25563 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
25564
25565         poll: don't return uninitialized
25566         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
25567
25568 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
25569
25570         avoid compile failure on AIX 6.1
25571         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
25572         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
25573
25574 2009-01-04  Jim Meyering  <meyering@redhat.com>
25575
25576         remove duplicate inclusion of <stdio.h>
25577         * tests/test-fprintf-posix.c: Likewise.
25578         * tests/test-printf-posix.c: Likewise.
25579         * tests/test-snprintf-posix.c: Likewise.
25580         * tests/test-sprintf-posix.c: Likewise.
25581         * tests/test-vasprintf-posix.c: Likewise.
25582         * tests/test-vfprintf-posix.c: Likewise.
25583         * tests/test-vprintf-posix.c: Likewise.
25584         * tests/test-vsnprintf-posix.c: Likewise.
25585         * tests/test-vsprintf-posix.c: Likewise.
25586
25587 2009-01-03  Jim Meyering  <meyering@redhat.com>
25588
25589         gnulib-tool: fix sed-based filtering
25590         * gnulib-tool (func_filter_filelist): Remove extra backslash
25591         in sed_fff_filter definition.
25592
25593 2009-01-02  Jim Meyering  <meyering@redhat.com>
25594
25595         strftime: avoid compilation failure on Solaris 2.6
25596         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
25597         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
25598         Don't #define mbrlen or mbsinit, since now they're guaranteed to
25599         be available.  Reported by Tom G. Christensen.  Details in
25600         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
25601
25602 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25603             Bruno Haible  <bruno@clisp.org>
25604
25605         Speed up gnulib-tool by doing more string processing through shell
25606         built-ins.
25607         * gnulib-tool (fast_func_append): New variable.
25608         (func_remove_prefix, func_remove_suffix): New functions.
25609         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
25610         (func_filter_filelist): New function.
25611         (func_get_dependencies): Use func_remove_suffix instead of sed.
25612         (func_get_automake_snippet): Use func_filter_filelist instead of a
25613         subshell and sed invocation.
25614
25615 2009-01-01  Bruno Haible  <bruno@clisp.org>
25616
25617         Fix a security bug.
25618         * gnulib-tool (func_import, import, update): Don't allow the characters
25619         '"', '$', '`', '\' in macro arguments that become part of commands that
25620         are evaluated.
25621
25622 2009-01-01  Bruno Haible  <bruno@clisp.org>
25623
25624         * gnulib-tool (func_reset_sigpipe): Add more comments.
25625
25626 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25627
25628         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
25629         func_emit_tests_Makefile_am, func_import): Abort loops early if we
25630         already know the answer.
25631
25632 2009-01-01  Jim Meyering  <meyering@redhat.com>
25633
25634         * lib/version-etc.c (version_etc_va): Update copyright year.
25635
25636 2008-12-30  Bruno Haible  <bruno@clisp.org>
25637
25638         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
25639         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
25640         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
25641
25642 2008-12-29  Eric Blake  <ebb9@byu.net>
25643
25644         multiarch: avoid autoconf AC_REQUIRE bug
25645         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
25646         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
25647         2.63 and older.
25648         Reported by Bruno Haible, and analyzed in
25649         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
25650
25651 2008-12-29  Bruno Haible  <bruno@clisp.org>
25652
25653         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
25654         files in subdirectories correctly.
25655         Reported by Ralf Wildenhues.
25656
25657 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25658
25659         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
25660         rather than 'join FILE -', for Solaris join.
25661
25662 2008-12-29  Bruno Haible  <bruno@clisp.org>
25663
25664         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
25665         quoting.
25666         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25667         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25668         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25669         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
25670         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25671         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25672         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25673         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25674         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25675         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25676         * m4/nls.m4 (AM_NLS): Likewise.
25677         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
25678         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25679         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25680         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25681         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25682         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25683         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
25684         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25685         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25686         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25687         * m4/xsize.m4 (gl_XSIZE): Likewise.
25688         Suggested by Jim Meyering.
25689
25690 2008-11-17  Bruce Korb  <bkorb@gnu.org>
25691
25692         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
25693         * lib/parse-duration.c: use a switch instead of cascading if's.
25694
25695 2008-12-29  Eric Blake  <ebb9@byu.net>
25696
25697         wchar.h: supply WEOF on Irix 5.3
25698         * lib/wchar.in.h (wint_t): Also supply WEOF.
25699         * lib/wctype.in.h (wint_t): Likewise.
25700         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
25701         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
25702         Reported by Tom G. Christensen.
25703
25704 2008-12-26  Bruno Haible  <bruno@clisp.org>
25705
25706         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
25707         i486, i586, i686.
25708
25709 2008-12-26  Bruno Haible  <bruno@clisp.org>
25710
25711         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
25712
25713 2008-12-26  Bruno Haible  <bruno@clisp.org>
25714
25715         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
25716         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
25717         not __STDC_CONSTANT_MACROS.
25718         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25719
25720 2008-12-25  Bruno Haible  <bruno@clisp.org>
25721
25722         Add support for universal builds to vasnprintf.
25723         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
25724         universal builds, guess no.
25725         * modules/vasnprintf-posix (Depends-on): Add multiarch.
25726         * modules/vasprintf-posix (Depends-on): Likewise.
25727         * modules/fprintf-posix (Depends-on): Likewise.
25728         * modules/vfprintf-posix (Depends-on): Likewise.
25729         * modules/snprintf-posix (Depends-on): Likewise.
25730         * modules/vsnprintf-posix (Depends-on): Likewise.
25731         * modules/sprintf-posix (Depends-on): Likewise.
25732         * modules/vsprintf-posix (Depends-on): Likewise.
25733         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25734         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25735         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25736         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25737         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25738         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25739         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25740
25741         Add support for universal builds to <inttypes.h>.
25742         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
25743         _SCNu64_PREFIX): In Apple
25744         universal builds, define directly, using _LP64.
25745         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
25746         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
25747         * modules/inttypes (Depends-on): Add multiarch.
25748         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
25749
25750         Add support for universal builds to <stdint.h>.
25751         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
25752         universal builds, define directly, using _LP64.
25753         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
25754         Apple universal builds, don't test for the size and suffix of ptrdiff_t
25755         and size_t.
25756         * modules/stdint (Depends-on): Add multiarch.
25757         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
25758
25759         New module 'multiarch'.
25760         * modules/multiarch: New file.
25761         * m4/multiarch.m4: New file.
25762
25763 2008-12-25  Bruno Haible  <bruno@clisp.org>
25764
25765         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
25766
25767 2008-12-25  Bruno Haible  <bruno@clisp.org>
25768
25769         * modules/btowc (License): Relicense under LGPLv2+.
25770         * modules/mbsinit (License): Likewise.
25771         * modules/mbrtowc (License): Likewise.
25772         * modules/wcrtomb (License): Likewise.
25773         * modules/streq (License): Likewise.
25774         Reported by David Lutterkort <lutter@redhat.com>.
25775
25776 2008-12-23  Bruno Haible  <bruno@clisp.org>
25777
25778         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
25779
25780 2008-12-23  Bruno Haible  <bruno@clisp.org>
25781
25782         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
25783         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
25784         GETADDRINFO_LIB, not in LIBS.
25785         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
25786         * modules/canon-host (Link): Likewise.
25787         * NEWS: Mention the change.
25788         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
25789         GETADDRINFO_LIB.
25790
25791 2008-12-22  Bruno Haible  <bruno@clisp.org>
25792
25793         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
25794         * doc/posix-functions/iswalpha_l.texi: Likewise.
25795         * doc/posix-functions/iswblank_l.texi: Likewise.
25796         * doc/posix-functions/iswcntrl_l.texi: Likewise.
25797         * doc/posix-functions/iswctype_l.texi: Likewise.
25798         * doc/posix-functions/iswdigit_l.texi: Likewise.
25799         * doc/posix-functions/iswgraph_l.texi: Likewise.
25800         * doc/posix-functions/iswlower_l.texi: Likewise.
25801         * doc/posix-functions/iswprint_l.texi: Likewise.
25802         * doc/posix-functions/iswpunct_l.texi: Likewise.
25803         * doc/posix-functions/iswspace_l.texi: Likewise.
25804         * doc/posix-functions/iswupper_l.texi: Likewise.
25805         * doc/posix-functions/iswxdigit_l.texi: Likewise.
25806         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
25807         * doc/posix-functions/open_wmemstream.texi: Likewise.
25808         * doc/posix-functions/swscanf.texi: Likewise.
25809         * doc/posix-functions/towctrans_l.texi: Likewise.
25810         * doc/posix-functions/towlower.texi: Likewise.
25811         * doc/posix-functions/towlower_l.texi: Likewise.
25812         * doc/posix-functions/towupper.texi: Likewise.
25813         * doc/posix-functions/towupper_l.texi: Likewise.
25814         * doc/posix-functions/vfwprintf.texi: Likewise.
25815         * doc/posix-functions/vfwscanf.texi: Likewise.
25816         * doc/posix-functions/vswscanf.texi: Likewise.
25817         * doc/posix-functions/vwprintf.texi: Likewise.
25818         * doc/posix-functions/vwscanf.texi: Likewise.
25819         * doc/posix-functions/wcpcpy.texi: Likewise.
25820         * doc/posix-functions/wcpncpy.texi: Likewise.
25821         * doc/posix-functions/wcscasecmp.texi: Likewise.
25822         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
25823         * doc/posix-functions/wcscoll_l.texi: Likewise.
25824         * doc/posix-functions/wcsdup.texi: Likewise.
25825         * doc/posix-functions/wcsncasecmp.texi: Likewise.
25826         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
25827         * doc/posix-functions/wcsnlen.texi: Likewise.
25828         * doc/posix-functions/wcsnrtombs.texi: Likewise.
25829         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
25830         * doc/posix-functions/wctrans_l.texi: Likewise.
25831         * doc/posix-functions/wctype_l.texi: Likewise.
25832         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
25833         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
25834         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
25835         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
25836         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
25837         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
25838         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
25839         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
25840         * doc/glibc-functions/wcschrnul.texi: Likewise.
25841         * doc/glibc-functions/wcsftime_l.texi: Likewise.
25842         * doc/glibc-functions/wcstod_l.texi: Likewise.
25843         * doc/glibc-functions/wcstof_l.texi: Likewise.
25844         * doc/glibc-functions/wcstol_l.texi: Likewise.
25845         * doc/glibc-functions/wcstold_l.texi: Likewise.
25846         * doc/glibc-functions/wcstoll_l.texi: Likewise.
25847         * doc/glibc-functions/wcstoq.texi: Likewise.
25848         * doc/glibc-functions/wcstoul_l.texi: Likewise.
25849         * doc/glibc-functions/wcstoull_l.texi: Likewise.
25850         * doc/glibc-functions/wcstouq.texi: Likewise.
25851         * doc/glibc-functions/wmempcpy.texi: Likewise.
25852
25853 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
25854             Eric Blake  <ebb9@byu.net>
25855             Paolo Bonzini  <bonzini@gnu.org>
25856             Bruno Haible  <bruno@clisp.org>
25857
25858         Make c-stack work on Haiku.
25859         * lib/c-stack.c (SA_ONSTACK): Define fallback.
25860         (c_stack_action): Use SA_ONSTACK flag.
25861
25862 2008-12-22  Bruno Haible  <bruno@clisp.org>
25863
25864         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
25865
25866 2008-12-22  Bruno Haible  <bruno@clisp.org>
25867
25868         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
25869         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
25870         being overridden.
25871         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
25872         New macros.
25873         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
25874         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
25875         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
25876         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
25877
25878 2008-12-22  Bruno Haible  <bruno@clisp.org>
25879
25880         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
25881         from test code.
25882
25883 2008-12-22  Eric Blake  <ebb9@byu.net>
25884
25885         Avoid gcc warnings on cygwin.
25886         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
25887         Avoid unused variable.
25888         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
25889         Likewise.
25890
25891 2008-12-22  Bruno Haible  <bruno@clisp.org>
25892
25893         Remove HAVE_MBRTOWC conditionals.
25894         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
25895         (mbscasecmp): Assume mbrtowc function.
25896         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
25897         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
25898         * lib/mbschr.c: Include mbuiter.h unconditionally.
25899         (mbschr): Assume mbrtowc function.
25900         * lib/mbscspn.c: Include mbuiter.h unconditionally.
25901         (mbscspn): Assume mbrtowc function.
25902         * lib/mbslen.c: Include mbuiter.h unconditionally.
25903         (mbslen): Assume mbrtowc function.
25904         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
25905         (mbsncasecmp): Assume mbrtowc function.
25906         * lib/mbsnlen.c: Include mbiter.h unconditionally.
25907         (mbsnlen): Assume mbrtowc function.
25908         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
25909         (mbspbrk): Assume mbrtowc function.
25910         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
25911         (mbspcasecmp): Assume mbrtowc function.
25912         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
25913         (mbsrchr): Assume mbrtowc function.
25914         * lib/mbssep.c: Include mbuiter.h unconditionally.
25915         (mbssep): Assume mbrtowc function.
25916         * lib/mbsspn.c: Include mbuiter.h unconditionally.
25917         (mbsspn): Assume mbrtowc function.
25918         * lib/mbsstr.c: Include mbuiter.h unconditionally.
25919         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
25920         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
25921         (mbstok_r): Assume mbrtowc function.
25922         * lib/propername.c: Include mbuiter.h unconditionally.
25923         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
25924         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
25925         (trim2): Assume mbrtowc function.
25926         * lib/mbswidth.c (mbsinit): Remove fallback definition.
25927         (mbsnwidth): Assume mbrtowc function.
25928         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
25929         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
25930         fallback definitions.
25931         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
25932
25933 2008-12-22  Bruno Haible  <bruno@clisp.org>
25934
25935         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
25936
25937 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
25938
25939         * modules/regex: Request emulations for the mb*/wc* functions we need.
25940         * m4/regex.m4: Don't look for those functions here.
25941         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
25942
25943 2008-12-22  Bruno Haible  <bruno@clisp.org>
25944
25945         * modules/fnmatch (Depends-on): Remove duplicated dependency.
25946
25947 2008-12-21  Bruno Haible  <bruno@clisp.org>
25948
25949         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
25950         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
25951         (Include): Remove conditionalization.
25952         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
25953         (Include): Remove conditionalization.
25954         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
25955         (Include): Remove conditionalization.
25956         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
25957         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25958         * NEWS: Mention the change.
25959         Reported by Alan Hourihane <alanh@fairlite.co.uk>
25960         via Sergey Poznyakoff <gray@gnu.org.ua>.
25961
25962 2008-12-21  Bruno Haible  <bruno@clisp.org>
25963
25964         * MODULES.html.sh (Extended multibyte and wide character utilities
25965         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
25966         wcrtomb, wcsrtombs.
25967         (Support for systems lacking POSIX:2008): Add accept, bind, close,
25968         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
25969         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
25970         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
25971
25972 2008-12-21  Bruno Haible  <bruno@clisp.org>
25973
25974         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
25975
25976 2008-12-21  Bruno Haible  <bruno@clisp.org>
25977
25978         * modules/wcsnrtombs-tests: New file.
25979         * tests/test-wcsnrtombs1.sh: New file.
25980         * tests/test-wcsnrtombs2.sh: New file.
25981         * tests/test-wcsnrtombs3.sh: New file.
25982         * tests/test-wcsnrtombs4.sh: New file.
25983         * tests/test-wcsnrtombs.c: New file.
25984
25985         New module 'wcsnrtombs'.
25986         * lib/wchar.in.h (wcsnrtombs): New declaration.
25987         * lib/wcsnrtombs.c: New file.
25988         * lib/wcsrtombs-state.c: New file.
25989         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
25990         (internal_state): Remove variable.
25991         * m4/wcsnrtombs.m4: New file.
25992         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
25993         compilation units.
25994         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
25995         HAVE_WCSNRTOMBS.
25996         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
25997         HAVE_WCSNRTOMBS.
25998         * modules/wcsnrtombs: New file.
25999         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
26000         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
26001
26002 2008-12-21  Bruno Haible  <bruno@clisp.org>
26003
26004         * modules/wcsrtombs-tests: New file.
26005         * tests/test-wcsrtombs1.sh: New file.
26006         * tests/test-wcsrtombs2.sh: New file.
26007         * tests/test-wcsrtombs3.sh: New file.
26008         * tests/test-wcsrtombs4.sh: New file.
26009         * tests/test-wcsrtombs.c: New file.
26010
26011         New module 'wcsrtombs'.
26012         * lib/wchar.in.h (wcsrtombs): New declaration.
26013         * lib/wcsrtombs.c: New file.
26014         * m4/wcsrtombs.m4: New file.
26015         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
26016         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
26017         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
26018         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
26019         * modules/wcsrtombs: New file.
26020         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
26021         bugs.
26022
26023 2008-12-21  Bruno Haible  <bruno@clisp.org>
26024
26025         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
26026         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
26027         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
26028         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
26029         if not correct.
26030         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
26031         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
26032         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26033         m4/locale-zh.m4, m4/codeset.m4.
26034         * doc/posix-functions/wcrtomb.texi: Document the bug.
26035
26036 2008-12-21  Bruno Haible  <bruno@clisp.org>
26037
26038         Work around a btowc() bug on IRIX 6.5.
26039         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
26040         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
26041         REPLACE_WTOBC if not.
26042         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
26043         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
26044         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
26045
26046 2008-12-21  Bruno Haible  <bruno@clisp.org>
26047
26048         * modules/wcrtomb-tests: New file.
26049         * tests/test-wcrtomb.sh: New file.
26050         * tests/test-wcrtomb.c: New file.
26051
26052         New module 'wcrtomb'.
26053         * lib/wchar.in.h (wcrtomb): New declaration.
26054         * lib/wcrtomb.c: New file.
26055         * m4/wcrtomb.m4: New file.
26056         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
26057         HAVE_WCRTOMB.
26058         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
26059         HAVE_WCRTOMB.
26060         * modules/wcrtomb: New file.
26061         * doc/posix-functions/wcrtomb.texi: Mention the new module.
26062
26063 2008-12-21  Bruno Haible  <bruno@clisp.org>
26064
26065         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
26066         * modules/mbsrtowcs (Files): Likewise.
26067         * modules/wctob (Files): Likewise.
26068         * modules/c-strcase-tests (Files): Likewise.
26069         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26070         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26071         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26072         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26073         * modules/vasnprintf-posix-tests (Files): Likewise.
26074
26075 2008-12-21  William Pursell  <bill.pursell@gmail.com>
26076
26077         gitlog-to-changelog: pass all command-line arguments to git-log
26078         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
26079         it is sometimes convenient to filter the commits in various ways.
26080         gitlog-to-changelog only allows --since to specify a start date,
26081         but git-log itself supports many other filtering mechanisms.
26082         At the moment, I want to filter by branch name.  Rather than
26083         adding a --branch option to gitlog-to-changelog, it seems more
26084         flexible to simply pass all options directly to git-log and let
26085         git do the work.  Notice that this effectively makes --since a
26086         redundant option for gitlog-to-changelog, but removing it would
26087         require current usage to change since calls would then require
26088         an additional '--'.
26089
26090 2008-12-21  Bruno Haible  <bruno@clisp.org>
26091
26092         * modules/mbsnrtowcs-tests: New file.
26093         * tests/test-mbsnrtowcs1.sh: New file.
26094         * tests/test-mbsnrtowcs2.sh: New file.
26095         * tests/test-mbsnrtowcs3.sh: New file.
26096         * tests/test-mbsnrtowcs4.sh: New file.
26097         * tests/test-mbsnrtowcs.c: New file.
26098
26099         New module 'mbsnrtowcs'.
26100         * lib/wchar.in.h (mbsnrtowcs): New declaration.
26101         * lib/mbsnrtowcs.c: New file.
26102         * lib/mbsrtowcs-state.c: New file.
26103         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
26104         (internal_state): Remove variable.
26105         * m4/mbsnrtowcs.m4: New file.
26106         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
26107         compilation units.
26108         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
26109         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
26110         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
26111         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
26112         * modules/mbsnrtowcs: New file.
26113         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
26114         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
26115         portability problem.
26116
26117 2008-12-21  Bruno Haible  <bruno@clisp.org>
26118
26119         Work around mbsrtowcs bug.
26120         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
26121         (gl_FUNC_MBSRTOWCS): Invoke it.
26122         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26123         m4/locale-zh.m4.
26124         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
26125
26126 2008-12-21  Bruno Haible  <bruno@clisp.org>
26127
26128         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
26129
26130 2008-12-21  Bruno Haible  <bruno@clisp.org>
26131
26132         Update doc for AIX.
26133         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
26134         16-bit wchar_t type.
26135         * doc/posix-functions/btowc.texi: Likewise.
26136         * doc/posix-functions/fgetwc.texi: Likewise.
26137         * doc/posix-functions/fgetws.texi: Likewise.
26138         * doc/posix-functions/fputwc.texi: Likewise.
26139         * doc/posix-functions/fputws.texi: Likewise.
26140         * doc/posix-functions/fwide.texi: Likewise.
26141         * doc/posix-functions/fwprintf.texi: Likewise.
26142         * doc/posix-functions/fwscanf.texi: Likewise.
26143         * doc/posix-functions/getwchar.texi: Likewise.
26144         * doc/posix-functions/getwc.texi: Likewise.
26145         * doc/posix-functions/iswalnum.texi: Likewise.
26146         * doc/posix-functions/iswalpha.texi: Likewise.
26147         * doc/posix-functions/iswblank.texi: Likewise.
26148         * doc/posix-functions/iswcntrl.texi: Likewise.
26149         * doc/posix-functions/iswctype.texi: Likewise.
26150         * doc/posix-functions/iswdigit.texi: Likewise.
26151         * doc/posix-functions/iswgraph.texi: Likewise.
26152         * doc/posix-functions/iswlower.texi: Likewise.
26153         * doc/posix-functions/iswprint.texi: Likewise.
26154         * doc/posix-functions/iswpunct.texi: Likewise.
26155         * doc/posix-functions/iswspace.texi: Likewise.
26156         * doc/posix-functions/iswupper.texi: Likewise.
26157         * doc/posix-functions/iswxdigit.texi: Likewise.
26158         * doc/posix-functions/mbrtowc.texi: Likewise.
26159         * doc/posix-functions/mbsrtowcs.texi: Likewise.
26160         * doc/posix-functions/mbstowcs.texi: Likewise.
26161         * doc/posix-functions/mbtowc.texi: Likewise.
26162         * doc/posix-functions/putwchar.texi: Likewise.
26163         * doc/posix-functions/putwc.texi: Likewise.
26164         * doc/posix-functions/swprintf.texi: Likewise.
26165         * doc/posix-functions/tolower.texi: Likewise.
26166         * doc/posix-functions/toupper.texi: Likewise.
26167         * doc/posix-functions/towctrans.texi: Likewise.
26168         * doc/posix-functions/ungetwc.texi: Likewise.
26169         * doc/posix-functions/vswprintf.texi: Likewise.
26170         * doc/posix-functions/wcrtomb.texi: Likewise.
26171         * doc/posix-functions/wcscat.texi: Likewise.
26172         * doc/posix-functions/wcschr.texi: Likewise.
26173         * doc/posix-functions/wcscmp.texi: Likewise.
26174         * doc/posix-functions/wcscoll.texi: Likewise.
26175         * doc/posix-functions/wcscpy.texi: Likewise.
26176         * doc/posix-functions/wcscspn.texi: Likewise.
26177         * doc/posix-functions/wcsftime.texi: Likewise.
26178         * doc/posix-functions/wcslen.texi: Likewise.
26179         * doc/posix-functions/wcsncat.texi: Likewise.
26180         * doc/posix-functions/wcsncmp.texi: Likewise.
26181         * doc/posix-functions/wcsncpy.texi: Likewise.
26182         * doc/posix-functions/wcspbrk.texi: Likewise.
26183         * doc/posix-functions/wcsrchr.texi: Likewise.
26184         * doc/posix-functions/wcsrtombs.texi: Likewise.
26185         * doc/posix-functions/wcsspn.texi: Likewise.
26186         * doc/posix-functions/wcsstr.texi: Likewise.
26187         * doc/posix-functions/wcstod.texi: Likewise.
26188         * doc/posix-functions/wcstof.texi: Likewise.
26189         * doc/posix-functions/wcstoimax.texi: Likewise.
26190         * doc/posix-functions/wcstok.texi: Likewise.
26191         * doc/posix-functions/wcstold.texi: Likewise.
26192         * doc/posix-functions/wcstoll.texi: Likewise.
26193         * doc/posix-functions/wcstol.texi: Likewise.
26194         * doc/posix-functions/wcstombs.texi: Likewise.
26195         * doc/posix-functions/wcstoull.texi: Likewise.
26196         * doc/posix-functions/wcstoul.texi: Likewise.
26197         * doc/posix-functions/wcstoumax.texi: Likewise.
26198         * doc/posix-functions/wcswidth.texi: Likewise.
26199         * doc/posix-functions/wcsxfrm.texi: Likewise.
26200         * doc/posix-functions/wctob.texi: Likewise.
26201         * doc/posix-functions/wctomb.texi: Likewise.
26202         * doc/posix-functions/wctrans.texi: Likewise.
26203         * doc/posix-functions/wctype.texi: Likewise.
26204         * doc/posix-functions/wcwidth.texi: Likewise.
26205         * doc/posix-functions/wmemchr.texi: Likewise.
26206         * doc/posix-functions/wmemcmp.texi: Likewise.
26207         * doc/posix-functions/wmemcpy.texi: Likewise.
26208         * doc/posix-functions/wmemmove.texi: Likewise.
26209         * doc/posix-functions/wmemset.texi: Likewise.
26210         * doc/posix-functions/wprintf.texi: Likewise.
26211         * doc/posix-functions/wscanf.texi: Likewise.
26212
26213 2008-12-21  Bruno Haible  <bruno@clisp.org>
26214
26215         Update doc for HP-UX 11.11.
26216         * doc/posix-functions/btowc.texi: Clarify that the function is missing
26217         in HP-UX version 11.00, not in all versions of HP-UX 11.
26218         * doc/posix-functions/fwide.texi: Likewise.
26219         * doc/posix-functions/fwprintf.texi: Likewise.
26220         * doc/posix-functions/fwscanf.texi: Likewise.
26221         * doc/posix-functions/inet_ntop.texi: Likewise.
26222         * doc/posix-functions/inet_pton.texi: Likewise.
26223         * doc/posix-functions/mbrlen.texi: Likewise.
26224         * doc/posix-functions/mbrtowc.texi: Likewise.
26225         * doc/posix-functions/mbsinit.texi: Likewise.
26226         * doc/posix-functions/mbsrtowcs.texi: Likewise.
26227         * doc/posix-functions/swprintf.texi: Likewise.
26228         * doc/posix-functions/swscanf.texi: Likewise.
26229         * doc/posix-functions/towctrans.texi: Likewise.
26230         * doc/posix-functions/vfwprintf.texi: Likewise.
26231         * doc/posix-functions/vswprintf.texi: Likewise.
26232         * doc/posix-functions/vwprintf.texi: Likewise.
26233         * doc/posix-functions/wcrtomb.texi: Likewise.
26234         * doc/posix-functions/wcsrtombs.texi: Likewise.
26235         * doc/posix-functions/wcsstr.texi: Likewise.
26236         * doc/posix-functions/wctob.texi: Likewise.
26237         * doc/posix-functions/wctrans.texi: Likewise.
26238         * doc/posix-functions/wmemchr.texi: Likewise.
26239         * doc/posix-functions/wmemcmp.texi: Likewise.
26240         * doc/posix-functions/wmemcpy.texi: Likewise.
26241         * doc/posix-functions/wmemmove.texi: Likewise.
26242         * doc/posix-functions/wmemset.texi: Likewise.
26243         * doc/posix-functions/wprintf.texi: Likewise.
26244         * doc/posix-functions/wscanf.texi: Likewise.
26245
26246 2008-12-21  Bruno Haible  <bruno@clisp.org>
26247
26248         Work around a portability problem.
26249         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
26250         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
26251
26252 2008-12-20  Bruno Haible  <bruno@clisp.org>
26253
26254         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
26255         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
26256         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
26257         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
26258         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
26259
26260         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
26261         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
26262         set.
26263         (GNULIB_defined_mbstate_t): New macro.
26264         (mbsinit): Redefine if REPLACE_MBSINIT is set.
26265         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
26266         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
26267         reuses the system's mbrtowc function but works around the bugs.
26268         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
26269         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
26270         macros.
26271         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
26272         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
26273         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
26274         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
26275         REPLACE_MBSINIT if mbsinit needs to be overridden.
26276         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
26277         REPLACE_MBSINIT, REPLACE_MBRTOWC.
26278         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
26279         REPLACE_MBSINIT, REPLACE_MBRTOWC.
26280         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
26281         m4/locale-zh.m4.
26282         (Depends): Add mbsinit.
26283         * modules/mbsinit (Depends): Add mbrtowc.
26284         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
26285
26286 2008-12-20  Bruno Haible  <bruno@clisp.org>
26287
26288         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
26289         so that there are no conversion errors on AIX.
26290         * tests/test-mbsrtowcs.c (main): LIkewise.
26291
26292 2008-12-20  Bruno Haible  <bruno@clisp.org>
26293
26294         Work around wctob bug on Solaris <= 9.
26295         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
26296         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
26297         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
26298         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
26299         * modules/wctob (Files): Add m4/locale-fr.m4.
26300         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
26301
26302 2008-12-20  Bruno Haible  <bruno@clisp.org>
26303
26304         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
26305         /dev/null.
26306         * tests/test-select-in.sh: Likewise.
26307         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
26308
26309 2008-12-20  Bruno Haible  <bruno@clisp.org>
26310
26311         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
26312         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
26313         Cygwin 1.5.x.
26314
26315 2008-12-20  Bruno Haible  <bruno@clisp.org>
26316
26317         Ensure mbstate_t is defined on HP-UX 11.11.
26318         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
26319         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
26320         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
26321         AC_USE_SYSTEM_EXTENSIONS.
26322         * modules/fnmatch (Depends-on): Add extensions.
26323         * modules/mbrlen (Depends-on): Likewise.
26324         * modules/mbrtowc (Depends-on): Likewise.
26325         * modules/mbsinit (Depends-on): Likewise.
26326         * modules/mbsrtowcs (Depends-on): Likewise.
26327         * modules/mbswidth (Depends-on): Likewise.
26328         * modules/quotearg (Depends-on): Likewise.
26329         * modules/strftime (Depends-on): Likewise.
26330
26331 2008-12-20  Bruno Haible  <bruno@clisp.org>
26332
26333         Ensure wctob is declared on IRIX 6.5.
26334         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
26335         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
26336         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
26337         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
26338         of HAVE_WCTOB.
26339         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
26340         HAVE_WCTOB.
26341         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
26342
26343 2008-12-19  Bruno Haible  <bruno@clisp.org>
26344
26345         * modules/mbsrtowcs-tests: New file.
26346         * tests/test-mbsrtowcs1.sh: New file.
26347         * tests/test-mbsrtowcs2.sh: New file.
26348         * tests/test-mbsrtowcs3.sh: New file.
26349         * tests/test-mbsrtowcs4.sh: New file.
26350         * tests/test-mbsrtowcs.c: New file.
26351
26352         New module 'mbsrtowcs'.
26353         * lib/wchar.in.h (mbsrtowcs): New declaration.
26354         * lib/mbsrtowcs.c: New file.
26355         * m4/mbsrtowcs.m4: New file.
26356         * modules/mbsrtowcs: New file.
26357         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
26358         HAVE_MBSRTOWCS.
26359         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
26360         HAVE_MBSRTOWCS.
26361         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
26362
26363 2008-12-19  Bruno Haible  <bruno@clisp.org>
26364
26365         New module 'mbrlen'.
26366         * lib/wchar.in.h (mbrlen): New declaration.
26367         * lib/mbrlen.c: New file.
26368         * m4/mbrlen.m4: New file.
26369         * modules/mbrlen: New file.
26370         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
26371         HAVE_MBRLEN.
26372         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
26373         HAVE_MBRLEN.
26374         * doc/posix-functions/mbrlen.texi: Document the new module.
26375
26376 2008-12-19  Bruno Haible  <bruno@clisp.org>
26377
26378         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
26379         * modules/mbrtowc (Depends-on): Add verify.
26380         Suggested by Paul Eggert.
26381
26382 2008-12-18  Bruno Haible  <bruno@clisp.org>
26383
26384         * modules/mbsinit-tests: New file.
26385         * tests/test-mbsinit.sh: New file.
26386         * tests/test-mbsinit.c: New file.
26387
26388 2008-12-18  Bruno Haible  <bruno@clisp.org>
26389
26390         * modules/mbrtowc-tests: New file.
26391         * tests/test-mbrtowc1.sh: New file.
26392         * tests/test-mbrtowc2.sh: New file.
26393         * tests/test-mbrtowc3.sh: New file.
26394         * tests/test-mbrtowc4.sh: New file.
26395         * tests/test-mbrtowc.c: New file.
26396
26397         New module 'mbrtowc'.
26398         * lib/wchar.in.h (mbstate_t): Override when the system does not have
26399         mbsinit and mbrtowc.
26400         (mbrtowc): New declaration.
26401         * lib/mbrtowc.c: New file.
26402         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
26403         * modules/mbrtowc: New file.
26404         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
26405         HAVE_MBRTOWC.
26406         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
26407         HAVE_MBRTOWC.
26408         * doc/posix-functions/mbrtowc.texi: Document the new module.
26409
26410 2008-12-18  Bruno Haible  <bruno@clisp.org>
26411
26412         New module 'wctob'.
26413         * lib/wchar.in.h (wctob): New declaration.
26414         * lib/wctob.c: New file.
26415         * m4/wctob.m4: New file.
26416         * modules/wctob: New file.
26417         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
26418         HAVE_WCTOB.
26419         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
26420         * doc/posix-functions/wctob.texi: Document the new module.
26421
26422 2008-12-18  Bruno Haible  <bruno@clisp.org>
26423
26424         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
26425         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
26426
26427 2008-12-18  Simon Josefsson  <simon@josefsson.org>
26428
26429         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
26430         G. Christensen" <tgc@jupiterrise.com>.
26431
26432         * lib/flock.c: Need to include errno.h.  Reported by "Tom
26433         G. Christensen" <tgc@jupiterrise.com>.
26434
26435         * lib/flock.c: Need to include string.h.  Reported by "Tom
26436         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
26437         <ebb9@byu.net>.
26438
26439 2008-12-18  Bruno Haible  <bruno@clisp.org>
26440
26441         * m4/locale-ja.m4: New file, from GNU gettext.
26442
26443 2008-12-17  Bruno Haible  <bruno@clisp.org>
26444
26445         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
26446         Suggested by Eric Blake.
26447
26448 2008-12-17  Bruno Haible  <bruno@clisp.org>
26449
26450         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
26451
26452 2008-12-17  Bruno Haible  <bruno@clisp.org>
26453
26454         * lib/mbsinit.c: Include verify.h. Verify an assumption.
26455         * modules/mbsinit (Depends-on): Add verify.
26456         Suggested by Paul Eggert.
26457
26458 2008-12-17  Bruno Haible  <bruno@clisp.org>
26459
26460         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
26461         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
26462         gl_FUNC_MBRTOWC.
26463         * m4/mbiter.m4 (gl_MBITER): LIkewise.
26464         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
26465         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
26466         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
26467         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
26468         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
26469         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
26470         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
26471         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
26472         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
26473         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
26474         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
26475         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
26476         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
26477         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
26478         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
26479         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
26480         * modules/trim (configure.ac): Likewise.
26481
26482 2008-12-17  Bruno Haible  <bruno@clisp.org>
26483
26484         * modules/btowc-tests: New file.
26485         * tests/test-btowc1.sh: New file.
26486         * tests/test-btowc2.sh: New file.
26487         * tests/test-btowc.c: New file.
26488
26489         New module 'btowc'.
26490         * lib/wchar.in.h (btowc): New declaration.
26491         * lib/btowc.c: New file.
26492         * m4/btowc.m4: New file.
26493         * modules/btowc: New file.
26494         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
26495         HAVE_BTOWC.
26496         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
26497         * doc/posix-functions/btowc.texi: Document the new module.
26498
26499 2008-12-17  Bruno Haible  <bruno@clisp.org>
26500
26501         New module 'mbsinit'.
26502         * lib/wchar.in.h (mbsinit): New declaration.
26503         * lib/mbsinit.c: New file.
26504         * m4/mbsinit.m4: New file.
26505         * modules/mbsinit: New file.
26506         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
26507         HAVE_MBSINIT.
26508         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
26509         HAVE_MBSINIT.
26510         * doc/posix-functions/mbsinit.texi: Document the new module.
26511
26512 2008-12-16  Bruno Haible  <bruno@clisp.org>
26513
26514         * lib/unistd.in.h: Add comment.
26515         * tests/test-environ.c: Don't include <stdlib.h>.
26516
26517 2008-12-16  Bruno Haible  <bruno@clisp.org>
26518
26519         * lib/parse-duration.h (parse_duration): Document return value
26520         convention.
26521         * lib/parse-duration.c: Include specification header first. Add
26522         comments.
26523         (_): Remove macro.
26524         (parse_year_month_day, parse_hour_minute_second): Move side effects
26525         outside of strchr call.
26526         (parse_non_iso8601): Move side effects outside of isspace call.
26527         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
26528         call.
26529
26530 2008-12-16  Bruno Haible  <bruno@clisp.org>
26531
26532         * tests/test-parse-duration.sh: Produce no output when the test
26533         succeeds.
26534
26535 2008-12-16  Bruno Haible  <bruno@clisp.org>
26536
26537         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
26538         expressions.
26539
26540 2008-12-15  Bruno Haible  <bruno@clisp.org>
26541
26542         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
26543         * doc/glibc-functions/flistxattr.texi: Likewise.
26544         * doc/glibc-functions/fopencookie.texi: Likewise.
26545         * doc/glibc-functions/fremovexattr.texi: Likewise.
26546         * doc/glibc-functions/fsetxattr.texi: Likewise.
26547         * doc/glibc-functions/getxattr.texi: Likewise.
26548         * doc/glibc-functions/lgetxattr.texi: Likewise.
26549         * doc/glibc-functions/listxattr.texi: Likewise.
26550         * doc/glibc-functions/llistxattr.texi: Likewise.
26551         * doc/glibc-functions/lremovexattr.texi: Likewise.
26552         * doc/glibc-functions/lsetxattr.texi: Likewise.
26553         * doc/glibc-functions/removexattr.texi: Likewise.
26554         * doc/glibc-functions/setxattr.texi: Likewise.
26555         * doc/posix-functions/open_memstream.texi: Likewise.
26556
26557 2008-12-15  Eric Blake  <ebb9@byu.net>
26558
26559         Update doc for cygwin 1.7.
26560         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
26561         functions.
26562         * doc/posix-functions/fchmodat.texi: Likewise.
26563         * doc/posix-functions/fchownat.texi: Likewise.
26564         * doc/posix-functions/fdopendir.texi: Likewise.
26565         * doc/posix-functions/fmemopen.texi: Likewise.
26566         * doc/posix-functions/freeaddrinfo.texi: Likewise.
26567         * doc/posix-functions/fstatat.texi: Likewise.
26568         * doc/posix-functions/futimens.texi: Likewise.
26569         * doc/posix-functions/gai_strerror.texi: Likewise.
26570         * doc/posix-functions/getaddrinfo.texi: Likewise.
26571         * doc/posix-functions/getnameinfo.texi: Likewise.
26572         * doc/posix-functions/if_freenameindex.texi: Likewise.
26573         * doc/posix-functions/if_indextoname.texi: Likewise.
26574         * doc/posix-functions/if_nameindex.texi: Likewise.
26575         * doc/posix-functions/if_nametoindex.texi: Likewise.
26576         * doc/posix-functions/insque.texi: Likewise.
26577         * doc/posix-functions/linkat.texi: Likewise.
26578         * doc/posix-functions/llrint.texi: Likewise.
26579         * doc/posix-functions/llrintf.texi: Likewise.
26580         * doc/posix-functions/llrintl.texi: Likewise.
26581         * doc/posix-functions/lockf.texi: Likewise.
26582         * doc/posix-functions/lrintl.texi: Likewise.
26583         * doc/posix-functions/mkdirat.texi: Likewise.
26584         * doc/posix-functions/mkfifoat.texi: Likewise.
26585         * doc/posix-functions/mknodat.texi: Likewise.
26586         * doc/posix-functions/mq_close.texi: Likewise.
26587         * doc/posix-functions/mq_getattr.texi: Likewise.
26588         * doc/posix-functions/mq_notify.texi: Likewise.
26589         * doc/posix-functions/mq_open.texi: Likewise.
26590         * doc/posix-functions/mq_receive.texi: Likewise.
26591         * doc/posix-functions/mq_send.texi: Likewise.
26592         * doc/posix-functions/mq_setattr.texi: Likewise.
26593         * doc/posix-functions/mq_timedreceive.texi: Likewise.
26594         * doc/posix-functions/mq_timedsend.texi: Likewise.
26595         * doc/posix-functions/mq_unlink.texi: Likewise.
26596         * doc/posix-functions/open_memstream.texi: Likewise.
26597         * doc/posix-functions/openat.texi: Likewise.
26598         * doc/posix-functions/posix_fadvise.texi: Likewise.
26599         * doc/posix-functions/posix_fallocate.texi: Likewise.
26600         * doc/posix-functions/posix_madvise.texi: Likewise.
26601         * doc/posix-functions/posix_memalign.texi: Likewise.
26602         * doc/posix-functions/posix_openpt.texi: Likewise.
26603         * doc/posix-functions/readlinkat.texi: Likewise.
26604         * doc/posix-functions/remque.texi: Likewise.
26605         * doc/posix-functions/renameat.texi: Likewise.
26606         * doc/posix-functions/rintl.texi: Likewise.
26607         * doc/posix-functions/sem_unlink.texi: Likewise.
26608         * doc/posix-functions/shm_open.texi: Likewise.
26609         * doc/posix-functions/shm_unlink.texi: Likewise.
26610         * doc/posix-functions/signgam.texi: Likewise.
26611         * doc/posix-functions/sigset.texi: Likewise.
26612         * doc/posix-functions/stpcpy.texi: Likewise.
26613         * doc/posix-functions/stpncpy.texi: Likewise.
26614         * doc/posix-functions/strerror.texi: Likewise.
26615         * doc/posix-functions/strtod.texi: Likewise.
26616         * doc/posix-functions/symlinkat.texi: Likewise.
26617         * doc/posix-functions/unlinkat.texi: Likewise.
26618         * doc/posix-functions/utimensat.texi: Likewise.
26619         * doc/glibc-functions/bindresvport.texi: Likewise.
26620         * doc/glibc-functions/dn_expand.texi: Likewise.
26621         * doc/glibc-functions/exp10.texi: Likewise.
26622         * doc/glibc-functions/exp10f.texi: Likewise.
26623         * doc/glibc-functions/fgetxattr.texi: Likewise.
26624         * doc/glibc-functions/flistxattr.texi: Likewise.
26625         * doc/glibc-functions/fopencookie.texi: Likewise.
26626         * doc/glibc-functions/freeifaddrs.texi: Likewise.
26627         * doc/glibc-functions/fremovexattr.texi: Likewise.
26628         * doc/glibc-functions/fsetxattr.texi: Likewise.
26629         * doc/glibc-functions/getifaddrs.texi: Likewise.
26630         * doc/glibc-functions/getxattr.texi: Likewise.
26631         * doc/glibc-functions/lgetxattr.texi: Likewise.
26632         * doc/glibc-functions/listxattr.texi: Likewise.
26633         * doc/glibc-functions/llistxattr.texi: Likewise.
26634         * doc/glibc-functions/lremovexattr.texi: Likewise.
26635         * doc/glibc-functions/lsetxattr.texi: Likewise.
26636         * doc/glibc-functions/pow10.texi: Likewise.
26637         * doc/glibc-functions/pow10f.texi: Likewise.
26638         * doc/glibc-functions/rcmd_af.texi: Likewise.
26639         * doc/glibc-functions/removexattr.texi: Likewise.
26640         * doc/glibc-functions/res_init.texi: Likewise.
26641         * doc/glibc-functions/res_mkquery.texi: Likewise.
26642         * doc/glibc-functions/res_query.texi: Likewise.
26643         * doc/glibc-functions/res_querydomain.texi: Likewise.
26644         * doc/glibc-functions/res_send.texi: Likewise.
26645         * doc/glibc-functions/rresvport_af.texi: Likewise.
26646         * doc/glibc-functions/setxattr.texi: Likewise.
26647         * doc/glibc-functions/strcasestr.texi: Likewise.
26648
26649 2008-12-15  Bruno Haible  <bruno@clisp.org>
26650
26651         Fix compilation error on OSF/1 4.0.
26652         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
26653         <sys/time.h>, simply delegate to the system header.
26654         Reported by Daniel Richard G. <oss@teragram.com>.
26655
26656 2008-12-15  Bruno Haible  <bruno@clisp.org>
26657
26658         * doc/posix-functions/openat.texi: Mention the 'openat' module.
26659         * doc/posix-functions/fchmodat.texi: Likewise.
26660         * doc/posix-functions/fchownat.texi: Likewise.
26661         * doc/posix-functions/fdopendir.texi: Likewise.
26662         * doc/posix-functions/fstatat.texi: Likewise.
26663         * doc/posix-functions/mkdirat.texi: Likewise.
26664         * doc/posix-functions/unlinkat.texi: Likewise.
26665
26666 2008-12-14  Bruno Haible  <bruno@clisp.org>
26667
26668         Update doc for POSIX:2008.
26669         * doc/posix-functions/faccessat.texi: New file.
26670         * doc/posix-functions/fchmodat.texi: New file.
26671         * doc/posix-functions/fchownat.texi: New file.
26672         * doc/posix-functions/fdopendir.texi: New file.
26673         * doc/posix-functions/fstatat.texi: New file.
26674         * doc/posix-functions/futimens.texi: New file.
26675         * doc/posix-functions/linkat.texi: New file.
26676         * doc/posix-functions/mkdirat.texi: New file.
26677         * doc/posix-functions/mkfifoat.texi: New file.
26678         * doc/posix-functions/mknodat.texi: New file.
26679         * doc/posix-functions/open_wmemstream.texi: New file.
26680         * doc/posix-functions/openat.texi: New file.
26681         * doc/posix-functions/psiginfo.texi: New file.
26682         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
26683         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
26684         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
26685         * doc/posix-functions/readlinkat.texi: New file.
26686         * doc/posix-functions/renameat.texi: New file.
26687         * doc/posix-functions/strerror_l.texi: New file.
26688         * doc/posix-functions/symlinkat.texi: New file.
26689         * doc/posix-functions/unlinkat.texi: New file.
26690         * doc/posix-functions/utimensat.texi: New file.
26691         * doc/gnulib.texi (Function Substitutes): Add these subsections.
26692
26693 2008-12-14  Bruno Haible  <bruno@clisp.org>
26694
26695         Update doc for POSIX:2008.
26696         * doc/posix-functions/alphasort.texi: Renamed from
26697         doc/glibc-functions/alphasort.texi.
26698         * doc/posix-functions/dirfd.texi: Renamed from
26699         doc/glibc-functions/dirfd.texi.
26700         * doc/posix-functions/dprintf.texi: Renamed from
26701         doc/glibc-functions/dprintf.texi.
26702         * doc/posix-functions/duplocale.texi: Renamed from
26703         doc/glibc-functions/duplocale.texi.
26704         * doc/posix-functions/fexecve.texi: Renamed from
26705         doc/glibc-functions/fexecve.texi.
26706         * doc/posix-functions/fmemopen.texi: Renamed from
26707         doc/glibc-functions/fmemopen.texi.
26708         * doc/posix-functions/freelocale.texi: Renamed from
26709         doc/glibc-functions/freelocale.texi.
26710         * doc/posix-functions/getdate_err.texi: Renamed from
26711         doc/glibc-functions/getdate_err.texi.
26712         * doc/posix-functions/isalnum_l.texi: Renamed from
26713         doc/glibc-functions/isalnum_l.texi.
26714         * doc/posix-functions/isalpha_l.texi: Renamed from
26715         doc/glibc-functions/isalpha_l.texi.
26716         * doc/posix-functions/isblank_l.texi: Renamed from
26717         doc/glibc-functions/isblank_l.texi.
26718         * doc/posix-functions/iscntrl_l.texi: Renamed from
26719         doc/glibc-functions/iscntrl_l.texi.
26720         * doc/posix-functions/isdigit_l.texi: Renamed from
26721         doc/glibc-functions/isdigit_l.texi.
26722         * doc/posix-functions/isgraph_l.texi: Renamed from
26723         doc/glibc-functions/isgraph_l.texi.
26724         * doc/posix-functions/islower_l.texi: Renamed from
26725         doc/glibc-functions/islower_l.texi.
26726         * doc/posix-functions/isprint_l.texi: Renamed from
26727         doc/glibc-functions/isprint_l.texi.
26728         * doc/posix-functions/ispunct_l.texi: Renamed from
26729         doc/glibc-functions/ispunct_l.texi.
26730         * doc/posix-functions/isspace_l.texi: Renamed from
26731         doc/glibc-functions/isspace_l.texi.
26732         * doc/posix-functions/isupper_l.texi: Renamed from
26733         doc/glibc-functions/isupper_l.texi.
26734         * doc/posix-functions/iswalnum_l.texi: Renamed from
26735         doc/glibc-functions/iswalnum_l.texi.
26736         * doc/posix-functions/iswalpha_l.texi: Renamed from
26737         doc/glibc-functions/iswalpha_l.texi.
26738         * doc/posix-functions/iswblank_l.texi: Renamed from
26739         doc/glibc-functions/iswblank_l.texi.
26740         * doc/posix-functions/iswcntrl_l.texi: Renamed from
26741         doc/glibc-functions/iswcntrl_l.texi.
26742         * doc/posix-functions/iswctype_l.texi: Renamed from
26743         doc/glibc-functions/iswctype_l.texi.
26744         * doc/posix-functions/iswdigit_l.texi: Renamed from
26745         doc/glibc-functions/iswdigit_l.texi.
26746         * doc/posix-functions/iswgraph_l.texi: Renamed from
26747         doc/glibc-functions/iswgraph_l.texi.
26748         * doc/posix-functions/iswlower_l.texi: Renamed from
26749         doc/glibc-functions/iswlower_l.texi.
26750         * doc/posix-functions/iswprint_l.texi: Renamed from
26751         doc/glibc-functions/iswprint_l.texi.
26752         * doc/posix-functions/iswpunct_l.texi: Renamed from
26753         doc/glibc-functions/iswpunct_l.texi.
26754         * doc/posix-functions/iswspace_l.texi: Renamed from
26755         doc/glibc-functions/iswspace_l.texi.
26756         * doc/posix-functions/iswupper_l.texi: Renamed from
26757         doc/glibc-functions/iswupper_l.texi.
26758         * doc/posix-functions/iswxdigit_l.texi: Renamed from
26759         doc/glibc-functions/iswxdigit_l.texi.
26760         * doc/posix-functions/isxdigit_l.texi: Renamed from
26761         doc/glibc-functions/isxdigit_l.texi.
26762         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
26763         doc/glibc-functions/mbsnrtowcs.texi.
26764         * doc/posix-functions/mkdtemp.texi: Renamed from
26765         doc/glibc-functions/mkdtemp.texi.
26766         * doc/posix-functions/newlocale.texi: Renamed from
26767         doc/glibc-functions/newlocale.texi.
26768         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
26769         doc/glibc-functions/nl_langinfo_l.texi.
26770         * doc/posix-functions/open_memstream.texi: Renamed from
26771         doc/glibc-functions/open_memstream.texi.
26772         * doc/posix-functions/opterr.texi: Renamed from
26773         doc/glibc-functions/opterr.texi.
26774         * doc/posix-functions/optind.texi: Renamed from
26775         doc/glibc-functions/optind.texi.
26776         * doc/posix-functions/optopt.texi: Renamed from
26777         doc/glibc-functions/optopt.texi.
26778         * doc/posix-functions/psignal.texi: Renamed from
26779         doc/glibc-functions/psignal.texi.
26780         * doc/posix-functions/scandir.texi: Renamed from
26781         doc/glibc-functions/scandir.texi.
26782         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
26783         doc/glibc-functions/sched_get_priority_min.texi.
26784         * doc/posix-functions/signgam.texi: Renamed from
26785         doc/glibc-functions/signgam.texi.
26786         * doc/posix-functions/stpcpy.texi: Renamed from
26787         doc/glibc-functions/stpcpy.texi.
26788         * doc/posix-functions/stpncpy.texi: Renamed from
26789         doc/glibc-functions/stpncpy.texi.
26790         * doc/posix-functions/strcasecmp_l.texi: Renamed from
26791         doc/glibc-functions/strcasecmp_l.texi.
26792         * doc/posix-functions/strcoll_l.texi: Renamed from
26793         doc/glibc-functions/strcoll_l.texi.
26794         * doc/posix-functions/strfmon_l.texi: Renamed from
26795         doc/glibc-functions/strfmon_l.texi.
26796         * doc/posix-functions/strftime_l.texi: Renamed from
26797         doc/glibc-functions/strftime_l.texi.
26798         * doc/posix-functions/strncasecmp_l.texi: Renamed from
26799         doc/glibc-functions/strncasecmp_l.texi.
26800         * doc/posix-functions/strndup.texi: Renamed from
26801         doc/glibc-functions/strndup.texi.
26802         * doc/posix-functions/strnlen.texi: Renamed from
26803         doc/glibc-functions/strnlen.texi.
26804         * doc/posix-functions/strsignal.texi: Renamed from
26805         doc/glibc-functions/strsignal.texi.
26806         * doc/posix-functions/strxfrm_l.texi: Renamed from
26807         doc/glibc-functions/strxfrm_l.texi.
26808         * doc/posix-functions/timer_gettime.texi: Renamed from
26809         doc/glibc-functions/timer_gettime.texi.
26810         * doc/posix-functions/tolower_l.texi: Renamed from
26811         doc/glibc-functions/tolower_l.texi.
26812         * doc/posix-functions/toupper_l.texi: Renamed from
26813         doc/glibc-functions/toupper_l.texi.
26814         * doc/posix-functions/towctrans_l.texi: Renamed from
26815         doc/glibc-functions/towctrans_l.texi.
26816         * doc/posix-functions/towlower_l.texi: Renamed from
26817         doc/glibc-functions/towlower_l.texi.
26818         * doc/posix-functions/towupper_l.texi: Renamed from
26819         doc/glibc-functions/towupper_l.texi.
26820         * doc/posix-functions/uselocale.texi: Renamed from
26821         doc/glibc-functions/uselocale.texi.
26822         * doc/posix-functions/vdprintf.texi: Renamed from
26823         doc/glibc-functions/vdprintf.texi.
26824         * doc/posix-functions/wcpcpy.texi:
26825         Renamed from doc/glibc-functions/wcpcpy.texi.
26826         * doc/posix-functions/wcpncpy.texi: Renamed from
26827         doc/glibc-functions/wcpncpy.texi.
26828         * doc/posix-functions/wcscasecmp.texi: Renamed from
26829         doc/glibc-functions/wcscasecmp.texi.
26830         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
26831         doc/glibc-functions/wcscasecmp_l.texi.
26832         * doc/posix-functions/wcscoll_l.texi: Renamed from
26833         doc/glibc-functions/wcscoll_l.texi.
26834         * doc/posix-functions/wcsdup.texi: Renamed from
26835         doc/glibc-functions/wcsdup.texi.
26836         * doc/posix-functions/wcsncasecmp.texi: Renamed from
26837         doc/glibc-functions/wcsncasecmp.texi.
26838         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
26839         doc/glibc-functions/wcsncasecmp_l.texi.
26840         * doc/posix-functions/wcsnlen.texi: Renamed from
26841         doc/glibc-functions/wcsnlen.texi.
26842         * doc/posix-functions/wcsnrtombs.texi: Renamed from
26843         doc/glibc-functions/wcsnrtombs.texi.
26844         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
26845         doc/glibc-functions/wcsxfrm_l.texi.
26846         * doc/posix-functions/wctrans_l.texi: Renamed from
26847         doc/glibc-functions/wctrans_l.texi.
26848         * doc/posix-functions/wctype_l.texi: Renamed from
26849         doc/glibc-functions/wctype_l.texi.
26850         * doc/gnulib.texi (Function Substitutes): Add these subsections.
26851         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
26852         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
26853         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
26854         these subsections.
26855         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
26856         Remove sections.
26857
26858 2008-12-14  Bruno Haible  <bruno@clisp.org>
26859
26860         Update doc for POSIX:2008.
26861         * doc/posix-functions/*.texi: Update URL of POSIX specification.
26862
26863 2008-12-14  Bruno Haible  <bruno@clisp.org>
26864
26865         Update doc for POSIX:2008.
26866         * doc/pastposix-functions/bcmp.texi: Renamed from
26867         doc/posix-functions/bcmp.texi.
26868         * doc/pastposix-functions/bcopy.texi: Renamed from
26869         doc/posix-functions/bcopy.texi.
26870         * doc/pastposix-functions/bsd_signal.texi: Renamed from
26871         doc/posix-functions/bsd_signal.texi.
26872         * doc/pastposix-functions/bzero.texi: Renamed from
26873         doc/posix-functions/bzero.texi.
26874         * doc/pastposix-functions/ecvt.texi: Renamed from
26875         doc/posix-functions/ecvt.texi.
26876         * doc/pastposix-functions/fcvt.texi: Renamed from
26877         doc/posix-functions/fcvt.texi.
26878         * doc/pastposix-functions/ftime.texi: Renamed from
26879         doc/posix-functions/ftime.texi.
26880         * doc/pastposix-functions/gcvt.texi: Renamed from
26881         doc/posix-functions/gcvt.texi.
26882         * doc/pastposix-functions/getcontext.texi: Renamed from
26883         doc/posix-functions/getcontext.texi.
26884         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
26885         doc/posix-functions/gethostbyaddr.texi.
26886         * doc/pastposix-functions/gethostbyname.texi: Renamed from
26887         doc/posix-functions/gethostbyname.texi.
26888         * doc/pastposix-functions/getwd.texi: Renamed from
26889         doc/posix-functions/getwd.texi.
26890         * doc/pastposix-functions/h_errno.texi: Renamed from
26891         doc/posix-functions/h_errno.texi.
26892         * doc/pastposix-functions/index.texi: Renamed from
26893         doc/posix-functions/index.texi.
26894         * doc/pastposix-functions/makecontext.texi: Renamed from
26895         doc/posix-functions/makecontext.texi.
26896         * doc/pastposix-functions/mktemp.texi: Renamed from
26897         doc/posix-functions/mktemp.texi.
26898         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
26899         doc/posix-functions/pthread_attr_getstackaddr.texi.
26900         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
26901         doc/posix-functions/pthread_attr_setstackaddr.texi.
26902         * doc/pastposix-functions/rindex.texi: Renamed from
26903         doc/posix-functions/rindex.texi.
26904         * doc/pastposix-functions/scalb.texi: Renamed from
26905         doc/posix-functions/scalb.texi.
26906         * doc/pastposix-functions/setcontext.texi: Renamed from
26907         doc/posix-functions/setcontext.texi.
26908         * doc/pastposix-functions/swapcontext.texi: Renamed from
26909         doc/posix-functions/swapcontext.texi.
26910         * doc/pastposix-functions/ualarm.texi: Renamed from
26911         doc/posix-functions/ualarm.texi.
26912         * doc/pastposix-functions/usleep.texi: Renamed from
26913         doc/posix-functions/usleep.texi.
26914         * doc/pastposix-functions/vfork.texi: Renamed from
26915         doc/posix-functions/vfork.texi.
26916         * doc/pastposix-functions/wcswcs.texi: Renamed from
26917         doc/posix-functions/wcswcs.texi.
26918         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
26919         (Function Substitutes): Update.
26920
26921 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26922
26923         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
26924         m4/strerror.m4.
26925
26926 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26927             Bruno Haible  <bruno@clisp.org>
26928
26929         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
26930
26931 2008-12-13  Bruno Haible  <bruno@clisp.org>
26932
26933         * modules/strtoull (Depends-on): Remove unistd.
26934
26935 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26936
26937         * modules/strtoull (Depends-on): Add stdlib.
26938
26939 2008-12-11  Simon Josefsson  <simon@josefsson.org>
26940
26941         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
26942
26943 2008-12-10  Jim Meyering  <meyering@redhat.com>
26944
26945         gl_ASSERT: don't say assertions are disabled when they're not
26946         * m4/assert.m4 (gl_ASSERT): Do not make configure report
26947         "checking whether to enable assertions... no", when they are in
26948         fact enabled.  This is solely a bug in the output of configure.
26949         In spite of saying "no", NDEBUG was not defined in that case.
26950         Also, as noted by Eric Blake, leave assertions enabled upon
26951         --enable-assert=INVALID.
26952
26953 2008-12-10  Bruno Haible  <bruno@clisp.org>
26954
26955         Change MODULES.html to refer to POSIX:2008 where possible.
26956         * MODULES.html.sh (POSIX2008_URL): New variable.
26957         (posix_headers): Remove sys/timeb, ucontext.
26958         (posix2001_headers): New variable.
26959         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
26960         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
26961         index, makecontext, mktemp, pthread_attr_getstackaddr,
26962         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
26963         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
26964         (posix2001_functions): New variable.
26965         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
26966         otherwise.
26967
26968 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26969
26970         add missing include to parse-duration.c
26971         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
26972         * modules/parse-duration (Depends-on): Add xalloc.
26973
26974         fix sed script reading maint.mk
26975         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
26976         (syntax-check-rules): Use it.
26977
26978 2008-12-09  Bruno Haible  <bruno@clisp.org>
26979
26980         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
26981         MacOS X 10.4/PowerPC.
26982         Reported by Simon Josefsson.
26983
26984 2008-12-08  Jim Meyering  <meyering@redhat.com>
26985
26986         work around mingw's lack of some S_IF definitions
26987         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
26988         Reported by Simon Josefsson.
26989
26990 2008-12-08  Bruno Haible  <bruno@clisp.org>
26991
26992         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
26993         applied to variables. Needed on MacOS X 10.4/PowerPC.
26994         Reported by Simon Josefsson.
26995
26996 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
26997         and Eric Blake  <ebb9@byu.net>
26998
26999         assert: honor --enable-assert
27000         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
27001         order to honor --enable-assert, rather than treating it as a
27002         synonym for --disable-assert.
27003
27004 2008-12-08  Jim Meyering  <meyering@redhat.com>
27005
27006         * lib/posixtm.c: Remove now-useless declaration of mktime.
27007
27008         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
27009
27010 2008-12-07  Bruno Haible  <bruno@clisp.org>
27011
27012         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
27013         test_once): Mark functions as static.
27014         * tests/test-tls.c (test_tls): Likewise.
27015
27016 2008-12-07  Bruno Haible  <bruno@clisp.org>
27017
27018         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
27019         iconv_register_autodetect.
27020
27021 2008-12-07  Jim Meyering  <meyering@redhat.com>
27022
27023         posixtm.c: avoid a warning
27024         * lib/posixtm.c (posixtime): Don't initialize tm0.
27025         It's no longer needed to placate gcc4's -Wuninitialized,
27026         and the attempt to placate would elicit a new warning.
27027
27028         unicodeio.c: mark unused parameters
27029         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
27030         (fallback_failure_callback): Likewise.
27031
27032 2008-12-07  Bruno Haible  <bruno@clisp.org>
27033
27034         * gnulib-tool (func_create_testdir): When building the tests
27035         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
27036         Reported by Simon Josefsson.
27037
27038 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27039
27040         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
27041
27042 2008-12-06  Bruno Haible  <bruno@clisp.org>
27043
27044         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
27045         Suggested by Eric Blake.
27046
27047 2008-12-06  Bruno Haible  <bruno@clisp.org>
27048
27049         Fix a c-stack test failure on MacOS X.
27050         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
27051         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
27052         handler for SIGBUS as well.
27053         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
27054         install a signal handler for SIGBUS as well.
27055         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
27056
27057 2008-12-06  Bruno Haible  <bruno@clisp.org>
27058
27059         Advocacy documentation.
27060         * doc/gnulib-intro.texi (Benefits): New section.
27061         * doc/gnulib.texi: Update.
27062
27063 2008-12-06  Bruno Haible  <bruno@clisp.org>
27064
27065         Document the 'manywarnings' module.
27066         * doc/manywarnings.texi: New file.
27067         * doc/gnulib.texi: Include it.
27068
27069 2008-12-05  Eric Blake  <ebb9@byu.net>
27070
27071         tests: silence some gcc warnings
27072         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
27073         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
27074         type mismatches.
27075
27076 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27077             Bruno Haible  <bruno@clisp.org>
27078
27079         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
27080
27081 2008-11-29  Jim Meyering  <meyering@redhat.com>
27082
27083         unicodeio.c: mark unused parameters
27084         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
27085         (fallback_failure_callback): Likewise.
27086
27087         fts: fix a thinko
27088         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
27089         (set_stat_type): Return S_IF*-valued "type" directly.
27090         Prompted by James Youngman's spotting a related bug.
27091         Confirmed by further testing through find.
27092
27093         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
27094         * lib/fts.c (D_TYPE): Define.
27095         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
27096         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
27097         (s_ifmt_shift_bits): New function.
27098         (set_stat_type): New function.
27099         (fts_build): When not calling fts_stat, call set_stat_type
27100         to propagate dirent.d_type info to fts_read caller.
27101         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
27102         fts_statp->st_mode type information may be valid.
27103
27104 2008-11-28  Simon Josefsson  <simon@josefsson.org>
27105
27106         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
27107         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
27108         <sds@gnu.org>.
27109
27110 2008-11-20  Bruno Haible  <bruno@clisp.org>
27111
27112         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
27113         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
27114         INCLUDE_NEXT.
27115         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
27116         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
27117         * modules/math (Makefile.am): Substitute
27118         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
27119         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27120
27121 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
27122             Bruno Haible  <bruno@clisp.org>
27123
27124         * lib/stdint.in.h: Define all type macros so that their expansion is
27125         a single typedef'ed token. Fixes a compilation failure in Boost which
27126         does "using ::int8_t;".
27127
27128 2008-11-18  Simon Josefsson  <simon@josefsson.org>
27129
27130         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
27131         gl_MANYWARN_ALL_GCC.
27132         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
27133         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
27134         * modules/manywarnings: New file.
27135         * MODULES.html.sh: Mention manywarnings module.
27136
27137 2008-11-18  Bruno Haible  <bruno@clisp.org>
27138
27139         * doc/gnulib-tool.texi (Unit tests): New section.
27140
27141 2008-11-18  Simon Josefsson  <simon@josefsson.org>
27142
27143         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
27144         paths like 'lib/po/foo.po'.
27145
27146 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27147
27148         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
27149         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
27150
27151 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27152
27153         * m4/warnings.m4: Use CPPFLAGS to really check whether the
27154         parameter works.
27155
27156 2008-11-17  Simon Josefsson  <simon@josefsson.org>
27157
27158         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
27159
27160 2008-11-17  Bruce Korb  <bkorb@gnu.org>
27161
27162         * modules/parse-duration-tests: New file.
27163         * tests/test-parse-duration.sh: New file.
27164         * tests/test-parse-duration.c: New file.
27165
27166         New module 'parse-duration'.
27167         * lib/parse-duration.h: New file.
27168         * lib/parse-duration.c: New file.
27169         * modules/parse-duration: New file.
27170
27171 2008-11-17  Bruno Haible  <bruno@clisp.org>
27172
27173         * tests/test-select-out.sh: Comment out the first pipe test.
27174         Reported by Simon Josefsson.
27175
27176 2008-11-17  Bruno Haible  <bruno@clisp.org>
27177
27178         * modules/getaddrinfo (Depends-on): Add servent, hostent.
27179         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
27180         gl_HOSTENT.
27181
27182 2008-11-17  Bruno Haible  <bruno@clisp.org>
27183
27184         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
27185         -lnetwork and -lnet. Needed for Haiku and BeOS.
27186
27187 2008-11-16  Bruno Haible  <bruno@clisp.org>
27188
27189         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
27190
27191 2008-11-16  Bruno Haible  <bruno@clisp.org>
27192
27193         Avoid test failure on Haiku.
27194         * tests/test-fsync.c: Include <errno.h>.
27195         (main): Don't require that fsync (0) fails.
27196
27197 2008-11-15  Bruno Haible  <bruno@clisp.org>
27198
27199         New module 'hostent'.
27200         * modules/hostent: New file.
27201         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
27202
27203 2008-11-15  Bruno Haible  <bruno@clisp.org>
27204
27205         New module 'servent'.
27206         * modules/servent: New file.
27207         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
27208
27209 2008-11-15  Bruno Haible  <bruno@clisp.org>
27210
27211         Avoid generating same test program with two different rules.
27212         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
27213         test-frexp to test-frexp-nolibm.
27214         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
27215         test-frexpl to test-frexpl-nolibm.
27216
27217 2008-11-15  Bruno Haible  <bruno@clisp.org>
27218
27219         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
27220         $(FREXPL_LIBM).
27221
27222 2008-11-15  Bruno Haible  <bruno@clisp.org>
27223
27224         * lib/netdb.in.h: Activate the definitions also when the system's
27225         <netdb.h> has 'struct addrinfo'.
27226         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
27227         EAI_OVERFLOW or AI_NUMERICSERV.
27228         * doc/posix-headers/netdb.texi: Document the problem.
27229
27230 2008-11-15  Bruno Haible  <bruno@clisp.org>
27231
27232         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
27233
27234         Make the 'sched' module work on platforms where <sched.h> exists but
27235         is incomplete (such as Haiku).
27236         * lib/sched.in.h; Include the system's <sched.h> if it exists.
27237         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
27238         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
27239         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
27240         HAVE_STRUCT_SCHED_PARAM.
27241         * modules/sched (Depends-on): Add include_next.
27242         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
27243         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
27244         * doc/posix-headers/sched.texi: Document the issue.
27245
27246 2008-11-13  Jim Meyering  <meyering@redhat.com>
27247
27248         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
27249         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
27250         test would fail due to the difference in the Report bugs to ...
27251         line.  The expected address is empty, "<>", while the actual
27252         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
27253
27254 2008-11-12  Bruno Haible  <bruno@clisp.org>
27255
27256         lstat: don't compile lstat.c on systems lacking lstat
27257         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
27258         which don't have lstat; this is handled by lib/sys_stat.in.h already.
27259         Reported by Daniel P. Berrange via Jim Meyering.
27260
27261 2008-11-12  Jim Meyering  <meyering@redhat.com>
27262
27263         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
27264
27265 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27266
27267         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
27268         instead.
27269
27270 2008-11-12  Bruno Haible  <bruno@clisp.org>
27271
27272         * lib/unicodeio.c: Include unistr.h.
27273         (utf8_wctomb): Remove function.
27274         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
27275
27276 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27277
27278         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
27279         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
27280         <bruno@clisp.org>.
27281         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
27282
27283 2008-11-12  Simon Josefsson  <simon@josefsson.org>
27284
27285         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
27286         * doc/gnulib.texi: Add section for warnings.
27287
27288 2008-11-11  Bruno Haible  <bruno@clisp.org>
27289
27290         * lib/sockets.h: Add a comment.
27291
27292 2008-11-11  Karl Berry  <karl@gnu.org>
27293
27294         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
27295
27296 2008-11-11  Eric Blake  <ebb9@byu.net>
27297
27298         fdl.texi: avoid git symlinks
27299         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
27300
27301 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27302
27303         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
27304
27305 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27306
27307         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
27308         (gl_WARN_ADD): Substitute $2 if literal.
27309
27310 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27311
27312         * m4/warning.m4: Remove.
27313
27314 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
27315
27316         * m4/warnings.m4: Almost complete rewrite. :-)
27317
27318 2008-11-10  Simon Josefsson  <simon@josefsson.org>
27319
27320         * modules/warnings: New module.
27321         * m4/warnings.m4: New file.
27322         * MODULES.html.sh: Mention warnings module.
27323         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
27324         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27325
27326 2008-11-10  Eric Blake  <ebb9@byu.net>
27327
27328         fdl.texi: make a symlink to the latest version
27329         * doc/standards.texi: Revert today's earlier change.
27330         * doc/fdl-1.2.texi: Rename from old fdl.texi...
27331         * doc/fdl.texi: ...and replace this with a symlink to the newer
27332         fdl-1.3.texi.
27333
27334 2008-11-10  Bruno Haible  <bruno@clisp.org>
27335
27336         * tests/test-select-fd.c (main): Accept the result file name as fourth
27337         argument.
27338         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
27339         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
27340
27341 2008-11-10  Bruno Haible  <bruno@clisp.org>
27342
27343         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
27344         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
27345         as autoconf-substituted macros.
27346         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
27347         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
27348         gl_NETDB_H_DEFAULTS. Set these variables.
27349         * modules/netdb (Makefile.am): Substitute these variables.
27350
27351 2008-11-10  Eric Blake  <ebb9@byu.net>
27352
27353         standards.texi: include correct file for FDL 1.3
27354         * doc/standards.texi (GNU Free Documentation License): Change
27355         include file to pull in FDL 1.3, not 1.2.
27356
27357         fdl.texi: revert accidental change to license
27358         * doc/fdl.texi: This is FDL 1.2, not 1.3.
27359
27360 2008-11-10  Bruno Haible  <bruno@clisp.org>
27361
27362         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
27363         cross-compiling guesses also when the native compile gives no result.
27364
27365 2008-11-10  Bruno Haible  <bruno@clisp.org>
27366
27367         * lib/spawni.c (__spawni): Force variable into the stack.
27368
27369 2008-11-10  Bruno Haible  <bruno@clisp.org>
27370
27371         Add support for Haiku.
27372         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
27373         glibc and BeOS, but also on Haiku.
27374         * lib/fpurge.c (fpurge): Likewise.
27375         * lib/freadable.c (freadable): Likewise.
27376         * lib/freadahead.c (freadahead): Likewise.
27377         * lib/freading.c (freading): Likewise.
27378         * lib/freadptr.c (freadptr): Likewise.
27379         * lib/freadseek.c (freadptrinc): Likewise.
27380         * lib/fseeko.c (rpl_fseeko): Likewise.
27381         * lib/fseterr.c (fseterr): Likewise.
27382         * lib/fwritable.c (fwritable): Likewise.
27383         * lib/fwriting.c (fwriting): Likewise.
27384         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
27385
27386 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
27387
27388         * lib/config.charset: Treat Haiku like BeOS.
27389
27390 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
27391
27392         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
27393         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
27394
27395 2008-11-08  Bruno Haible  <bruno@clisp.org>
27396
27397         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
27398         AC_CACHE_CHECK.
27399
27400 2008-11-08  Bruno Haible  <bruno@clisp.org>
27401
27402         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
27403
27404 2008-11-08  Bruno Haible  <bruno@clisp.org>
27405
27406         * tests/test-select-fd.c: New file.
27407         * tests/test-select-in.sh: New file.
27408         * tests/test-select-out.sh: New file.
27409         * tests/test-select-stdin.c: New file.
27410         * modules/select-tests (Files): Add the new files.
27411         (Depends-on): Add gettimeofday.
27412         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
27413         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
27414         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
27415
27416 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
27417             Bruno Haible  <bruno@clisp.org>
27418
27419         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
27420
27421 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
27422
27423         * build-aux/pmccabe2html: Added support for C++ source files.
27424
27425 2008-11-05  Ben Pfaff  <blp@gnu.org>
27426
27427         Fix lib/close.c build on Windows.
27428         * modules/close (Files): Add lib/w32sock.h.
27429
27430 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
27431
27432         Accept Bison's NEWS format.
27433         * build-aux/announce-gen (print_news_deltas): Tweak
27434         $re_prefix.
27435
27436 2008-11-04  Bruno Haible  <bruno@clisp.org>
27437
27438         * modules/random_r (Maintainer): Add glibc.
27439
27440 2008-11-04  Simon Josefsson  <simon@josefsson.org>
27441
27442         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
27443         by karl@freefriends.org (Karl Berry).
27444         * doc/alloca.texi: Likewise.
27445         * doc/c-ctype.texi: Likewise.
27446         * doc/c-strcase.texi: Likewise.
27447         * doc/c-strcaseeq.texi: Likewise.
27448         * doc/c-strcasestr.texi: Likewise.
27449         * doc/c-strstr.texi: Likewise.
27450         * doc/c-strtod.texi: Likewise.
27451         * doc/c-strtold.texi: Likewise.
27452         * doc/ctime.texi: Likewise.
27453         * doc/error.texi: Likewise.
27454         * doc/fdl.texi: Likewise.
27455         * doc/gcd.texi: Likewise.
27456         * doc/getdate.texi: Likewise.
27457         * doc/gnulib-intro.texi: Likewise.
27458         * doc/gnulib-tool.texi: Likewise.
27459         * doc/gnulib.texi: Likewise.
27460         * doc/inet_ntoa.texi: Likewise.
27461         * doc/maintain.texi: Likewise.
27462         * doc/make-stds.texi: Likewise.
27463         * doc/quote.texi: Likewise.
27464         * doc/regexprops-generic.texi: Likewise.
27465         * doc/standards.texi: Likewise.
27466         * doc/verify.texi: Likewise.
27467         * doc/visibility.texi: Likewise.
27468         * doc/gnulib.texi (GNU Free Documentation License): Include
27469         fdl-1.3.texi instead of fdl.texi.
27470
27471 2008-11-04  Simon Josefsson  <simon@josefsson.org>
27472
27473         * doc/fdl-1.3.texi: New file, from
27474         <http://www.gnu.org/licenses/fdl-1.3.texi>.
27475         * modules/fdl-1.3: Add.
27476         * MODULES.html.sh: Add fdl-1.3.
27477
27478 2008-11-03  Bruno Haible  <bruno@clisp.org>
27479
27480         Make determination of absolute name of header file work with AIX xlc.
27481         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
27482         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
27483         preprocessing.
27484         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
27485         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
27486
27487 2008-11-03  Simon Josefsson  <simon@josefsson.org>
27488
27489         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
27490         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
27491         <ludo@gnu.org>.
27492
27493 2008-11-02  Bruno Haible  <bruno@clisp.org>
27494
27495         Mark 'strpbrk' obsolete.
27496         * modules/strpbrk (Status, Notice): New sections.
27497         * modules/strtok_r (Depends-on): Add strpbrk.
27498
27499 2008-11-02  Bruno Haible  <bruno@clisp.org>
27500
27501         Mark 'strdup' obsolete.
27502         * modules/strdup (Status, Notice): New sections.
27503         * modules/findprog (Depends-on): Add strdup.
27504         * modules/getaddrinfo (Depends-on): Likewise.
27505         * modules/localename (Depends-on): Likewise.
27506         * modules/relocatable-lib (Depends-on): Likewise.
27507         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
27508         * modules/relocatable-prog (Depends-on): Likewise.
27509         * modules/trim (Depends-on): Likewise.
27510         * modules/unictype/gen-ctype (Depends-on): Likewise.
27511         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
27512
27513 2008-11-02  Bruno Haible  <bruno@clisp.org>
27514
27515         Mark 'strcspn' obsolete.
27516         * modules/strcspn (Status, Notice): New sections.
27517
27518 2008-11-02  Bruno Haible  <bruno@clisp.org>
27519
27520         Mark 'rmdir' obsolete.
27521         * modules/rmdir (Status, Notice): New sections.
27522         * modules/clean-temp (Depends-on): Add rmdir.
27523         * modules/openat (Depends-on): Likewise.
27524
27525 2008-11-02  Bruno Haible  <bruno@clisp.org>
27526
27527         Mark 'raise' obsolete.
27528         * modules/raise (Status, Notice): New sections.
27529         (Include): Specify <signal.h>.
27530         * modules/stdio (Depends-on): Add raise.
27531         * modules/write (Depends-on): Likewise.
27532
27533 2008-11-02  Bruno Haible  <bruno@clisp.org>
27534
27535         Mark 'memset' obsolete.
27536         * modules/memset (Status, Notice): New sections.
27537
27538 2008-11-02  Bruno Haible  <bruno@clisp.org>
27539
27540         Mark 'memmove' obsolete.
27541         * modules/memmove (Status, Notice): New sections.
27542         * modules/argp (Depends-on): Add memmove.
27543         * modules/argz (Depends-on): Likewise.
27544         * modules/canonicalize (Depends-on): Likewise.
27545         * modules/canonicalize-lgpl (Depends-on): Likewise.
27546         * modules/fts (Depends-on): Likewise.
27547         * modules/getcwd (Depends-on): Likewise.
27548         * modules/human (Depends-on): Likewise.
27549         * modules/regex (Depends-on): Likewise.
27550         * modules/striconveh (Depends-on): Likewise.
27551         * modules/trim (Depends-on): Likewise.
27552         * modules/unistr/u8-move (Depends-on): Likewise.
27553         * modules/unistr/u16-move (Depends-on): Likewise.
27554         * modules/unistr/u32-move (Depends-on): Likewise.
27555
27556 2008-11-02  Bruno Haible  <bruno@clisp.org>
27557
27558         Mark 'memcpy' obsolete.
27559         * modules/memcpy (Status, Notice): New sections.
27560
27561 2008-11-02  Bruno Haible  <bruno@clisp.org>
27562
27563         Mark 'memcmp' obsolete.
27564         * modules/memcmp (Status, Notice): New sections.
27565         * modules/argmatch (Depends-on): Add memchr.
27566         * modules/backupfile (Depends-on): Likewise.
27567         * modules/c-strcasestr (Depends-on): Likewise.
27568         * modules/crypto/des (Depends-on): Likewise.
27569         * modules/csharpcomp (Depends-on): Likewise.
27570         * modules/fnmatch (Depends-on): Likewise.
27571         * modules/git-merge-changelog (Depends-on): Likewise.
27572         * modules/isnand (Depends-on): Likewise.
27573         * modules/isnand-nolibm (Depends-on): Likewise.
27574         * modules/isnanf (Depends-on): Likewise.
27575         * modules/isnanf-nolibm (Depends-on): Likewise.
27576         * modules/isnanl (Depends-on): Likewise.
27577         * modules/isnanl-nolibm (Depends-on): Likewise.
27578         * modules/mbchar (Depends-on): Likewise.
27579         * modules/memcoll (Depends-on): Likewise.
27580         * modules/quotearg (Depends-on): Likewise.
27581         * modules/regex (Depends-on): Likewise.
27582         * modules/relocatable-prog (Depends-on): Likewise.
27583         * modules/same (Depends-on): Likewise.
27584         * modules/signbit (Depends-on): Likewise.
27585         * modules/strcasestr-simple (Depends-on): Likewise.
27586         * modules/unictype/gen-ctype (Depends-on): Likewise.
27587         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
27588         * modules/uniname/uniname (Depends-on): Likewise.
27589         * modules/unistr/u8-cmp (Depends-on): Likewise.
27590
27591 2008-11-02  Bruno Haible  <bruno@clisp.org>
27592
27593         Mark 'memchr' obsolete.
27594         * modules/memchr (Status, Notice): New sections.
27595         * modules/argp (Depends-on): Add memchr.
27596         * modules/base64 (Depends-on): Likewise.
27597         * modules/c-strcasestr (Depends-on): Likewise.
27598         * modules/chdir-long (Depends-on): Likewise.
27599         * modules/fnmatch (Depends-on): Likewise.
27600         * modules/getsubopt (Depends-on): Likewise.
27601         * modules/git-merge-changelog (Depends-on): Likewise.
27602         * modules/glob (Depends-on): Likewise.
27603         * modules/strcasestr-simple (Depends-on): Likewise.
27604         * modules/strnlen (Depends-on): Likewise.
27605
27606 2008-11-02  Bruno Haible  <bruno@clisp.org>
27607
27608         Mark 'atexit' obsolete.
27609         * modules/atexit (Status, Notice): New sections.
27610         * modules/chdir-long (Depends-on): Add atexit.
27611         * modules/wait-process (Depends-on): Likewise.
27612
27613 2008-11-02  Bruno Haible  <bruno@clisp.org>
27614
27615         * gnulib-tool: New option --with-obsolete.
27616         (func_usage): Document it.
27617         (func_modules_transitive_closure): Drop obsolete dependencies if
27618         incobsolete is not true.
27619         (func_import): Read and save the incobsolete variable to the cache.
27620
27621 2008-11-02  Bruno Haible  <bruno@clisp.org>
27622
27623         * modules/TEMPLATE-EXTENDED: New field 'Status'.
27624         * gnulib-tool: New option --extract-status.
27625         (func_usage): Document it.
27626         (sed_extract_prog): Recognize it.
27627         (func_get_status): New function.
27628
27629 2008-10-30  Simon Josefsson  <simon@josefsson.org>
27630
27631         * modules/sockets (License): Change from LGPL to LGPLv2+.
27632
27633 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27634
27635         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
27636
27637 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27638
27639         * MODULES.html.sh (Support for systems lacking POSIX:2001):
27640         Mention times and sys_times.
27641         * modules/sys_times, modules/sys_times-tests: New modules.
27642         * modules/times, modules/times-tests: Likewise
27643         * m4/sys_times_h.m4: New file.
27644         * lib/sys_times.in.h: Likewise
27645         * lib/times.c: Likewise.
27646         * tests/test-sys_times.c: Likewise.
27647         * tests/test-times.c: Likewise.
27648         * doc/posix-headers/sys_times.texi: Update.
27649         * doc/posix-functions/times.texi: Update.
27650
27651 2008-10-28  Jim Meyering  <meyering@redhat.com>
27652
27653         * modules/tempname (Depends-on): Add lstat.
27654
27655         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
27656
27657 2008-10-28  Simon Josefsson  <simon@josefsson.org>
27658
27659         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
27660         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
27661         using idiom used elsewhere in gnulib.
27662
27663 2008-10-27  Jim Meyering  <meyering@redhat.com>
27664
27665         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
27666
27667 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27668
27669         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
27670         TESTS_ENVIRONMENT, for shell scripts that needs to call built
27671         programs.
27672         * tests/test-argp-2.sh: Use $EXEEXT when needed.
27673
27674 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27675
27676         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
27677
27678 2008-10-27  Bruno Haible  <bruno@clisp.org>
27679
27680         * tests/test-lstat.c: Include <stdio.h>.
27681
27682 2008-10-27  Simon Josefsson  <simon@josefsson.org>
27683
27684         * modules/lstat-tests: New module.
27685         * tests/test-lstat.c: New file.
27686
27687 2008-10-26  Jim Meyering  <meyering@redhat.com>
27688
27689         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
27690
27691 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27692             Bruno Haible  <bruno@clisp.org>
27693
27694         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
27695         * modules/configmake (Include): Add a note that the include must come
27696         after all system headers.
27697         * lib/javaversion.c: Include configmake.h after all other includes.
27698
27699 2008-10-26  Bruno Haible  <bruno@clisp.org>
27700
27701         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
27702         HAVE_STRUCT_RANDOM_DATA to 1.
27703         (gl_STDLIB_H): Simplify.
27704
27705 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27706
27707         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
27708         substitute HAVE_STRUCT_RANDOM_DATA.
27709         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
27710         random_data.
27711         * modules/stdlib (Makefile.am): Substitute
27712         HAVE_STRUCT_RANDOM_DATA.
27713
27714 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27715
27716         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
27717         * doc/gnulib-intro.texi (Copyright): Likewise.
27718
27719 2008-10-26  Simon Josefsson  <simon@josefsson.org>
27720
27721         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
27722         findings.
27723
27724 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
27725             Bruno Haible  <bruno@clisp.org>
27726
27727         * lib/unistd.in.h: Include <winsock2.h>.
27728         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
27729         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
27730         Provide dummy declarations.
27731         (gethostname): Override.
27732         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
27733         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
27734         gl_PREREQ_SYS_H_WINSOCK2.
27735         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
27736         * doc/posix-functions/gethostname.texi: More details.
27737
27738 2008-10-25  Bruno Haible  <bruno@clisp.org>
27739
27740         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
27741         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
27742         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
27743
27744         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
27745         here ...
27746         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
27747         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
27748         gl_UNISTD_H_DEFAULTS.
27749
27750 2008-10-25  Eric Blake  <ebb9@byu.net>
27751
27752         signbit: avoid spurious compiler failure
27753         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
27754         declarations inside function.
27755
27756 2008-10-24  Simon Josefsson  <simon@josefsson.org>
27757             Bruno Haible  <bruno@clisp.org>
27758
27759         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
27760         * modules/random_r (Depends-on): Add stdint.
27761
27762 2008-10-24  Bruno Haible  <bruno@clisp.org>
27763
27764         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
27765         Eggert.
27766         * modules/strerror (License): Likewise.
27767
27768 2008-10-24  Jim Meyering  <meyering@redhat.com>
27769
27770         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
27771         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
27772
27773 2008-10-24  Eric Blake  <ebb9@byu.net>
27774
27775         getgroups: fix compilation when getgroups is available
27776         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
27777         but with <config.h> override of getgroups disabled.
27778
27779 2008-10-24  Simon Josefsson  <simon@josefsson.org>
27780
27781         * doc/gnulib.texi (Header files): Add note about C++ problems.
27782         Explained by Bruno Haible <bruno@clisp.org>.
27783
27784 2008-10-23  Bruno Haible  <bruno@clisp.org>
27785
27786         Define a dummy SA_NODEFER macro on Interix.
27787         * lib/signal.in.h (SA_NODEFER): Define fallback.
27788         Reported by Aleksey Cheusov <cheusov@tut.by> via
27789         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
27790
27791 2008-10-23  Bruno Haible  <bruno@clisp.org>
27792
27793         * modules/freadahead (License): Change to LGPLv2+.
27794         Suggested by Simon Josefsson.
27795
27796 2008-10-23  Jim Meyering  <meyering@redhat.com>
27797
27798         random_r: new module
27799         * modules/random_r: New file.
27800         * m4/random_r.m4: New file.
27801         * lib/random_r.c: New file, from glibc.
27802         * modules/random_r-tests: New file.
27803         * tests/test-random_r.c: New file.
27804         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
27805          Declare.
27806         (RAND_MAX): Define.
27807         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
27808         * modules/stdlib: Substitute them, too.
27809         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
27810         * doc/glibc-functions/initstate_r.texi: Mention the new module.
27811         * doc/glibc-functions/random_r.texi: Likewise.
27812         * doc/glibc-functions/setstate_r.texi: Likewise.
27813         * doc/glibc-functions/srandom_r.texi: Likewise.
27814         * config/srclist.txt: Mention it.
27815
27816 2008-10-23  David Lutterkort  <lutter@redhat.com>
27817
27818         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
27819         link requirement
27820
27821 2008-10-23  Jim Meyering  <meyering@redhat.com>
27822
27823         selinux-h: mark parameters of stub functions as intentionally unused
27824         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
27825         * lib/se-context.in.h: Likewise.
27826
27827 2008-10-22  Simon Josefsson  <simon@josefsson.org>
27828
27829         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
27830
27831 2008-10-22  Simon Josefsson  <simon@josefsson.org>
27832
27833         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
27834
27835 2008-10-22  Eric Blake  <ebb9@byu.net>
27836
27837         glthread/thread: avoid compiler warning
27838         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
27839         Add unreachable abort to silence compiler.
27840
27841 2008-10-22  Eric Blake  <ebb9@byu.net>
27842
27843         netdb: also supply struct addrinfo for cygwin 1.5.x
27844         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
27845         older cygwin.
27846         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
27847         cygwin.
27848         * doc/posix-headers/netdb.texi (netdb.h): Document this.
27849
27850 2008-10-22  Bruno Haible  <bruno@clisp.org>
27851
27852         * users.txt: Update entry about pspp.
27853
27854 2008-10-21  Bruno Haible  <bruno@clisp.org>
27855
27856         Simplification.
27857         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
27858         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
27859
27860         Simplification.
27861         * lib/ioctl.c (ioctl): Don't undefine.
27862         * lib/socket.c (socket): Don't undefine.
27863
27864         Remove unused module indicator macros.
27865         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
27866         GNULIB_$1 as a C macro.
27867
27868         * doc/posix-functions/close.texi: Undo last change.
27869         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
27870         Windows platforms.
27871
27872 2008-10-21  Bruno Haible  <bruno@clisp.org>
27873
27874         Add gethostname() declaration to <unistd.h>.
27875         * lib/unistd.in.h (gethostname): New declaration.
27876         * lib/gethostname.c: Include <unistd.h>.
27877         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
27878         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
27879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
27880         and HAVE_GETHOSTNAME.
27881         * modules/gethostname (Depends-on): Add unistd.
27882         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
27883         (Include): Specify <unistd.h>.
27884         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
27885         HAVE_GETHOSTNAME.
27886         * tests/test-gethostname.c: Include <unistd.h> first.
27887
27888 2008-10-21  Bruno Haible  <bruno@clisp.org>
27889
27890         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
27891         * modules/select-tests (Depends-on): Likewise.
27892         Reported by Simon Josefsson.
27893
27894 2008-10-21  Simon Josefsson  <simon@josefsson.org>
27895
27896         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
27897         * lib/accept.c: New file, based on winsock.c.
27898         * lib/bind.c: New file, based on winsock.c.
27899         * lib/connect.c: New file, based on winsock.c.
27900         * lib/getpeername.c: New file, based on winsock.c.
27901         * lib/getsockname.c: New file, based on winsock.c.
27902         * lib/getsockopt.c: New file, based on winsock.c.
27903         * lib/ioctl.c: New file, based on winsock.c.
27904         * lib/listen.c: New file, based on winsock.c.
27905         * lib/recv.c: New file, based on winsock.c.
27906         * lib/recvfrom.c: New file, based on winsock.c.
27907         * lib/send.c: New file, based on winsock.c.
27908         * lib/sendto.c: New file, based on winsock.c.
27909         * lib/setsockopt.c: New file, based on winsock.c.
27910         * lib/shutdown.c: New file, based on winsock.c.
27911         * lib/socket.c: New file, based on winsock.c.
27912         * lib/w32sock.h: New file, based on winsock.c.
27913         * lib/winsock.c: Remove file.
27914         * modules/accept: Likewise.
27915         * modules/bind: Likewise.
27916         * modules/connect: Likewise.
27917         * modules/getpeername: Likewise.
27918         * modules/getsockname: Likewise.
27919         * modules/getsockopt: Likewise.
27920         * modules/ioctl: Likewise.
27921         * modules/listen: Likewise.
27922         * modules/recv: Likewise.
27923         * modules/recvfrom: Likewise.
27924         * modules/send: Likewise.
27925         * modules/sendto: Likewise.
27926         * modules/setsockopt: Likewise.
27927         * modules/shutdown: Likewise.
27928         * modules/socket: Use socket.c instead of winsock.c.
27929         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
27930         * doc/posix-functions/accept.texi: Doc fix.
27931         * doc/posix-functions/bind.texi: Doc fix.
27932         * doc/posix-functions/close.texi: Doc fix.
27933         * doc/posix-functions/connect.texi: Doc fix.
27934         * doc/posix-functions/getpeername.texi: Doc fix.
27935         * doc/posix-functions/getsockname.texi: Doc fix.
27936         * doc/posix-functions/getsockopt.texi: Doc fix.
27937         * doc/posix-functions/ioctl.texi: Doc fix.
27938         * doc/posix-functions/listen.texi: Doc fix.
27939         * doc/posix-functions/recv.texi: Doc fix.
27940         * doc/posix-functions/recvfrom.texi: Doc fix.
27941         * doc/posix-functions/send.texi: Doc fix.
27942         * doc/posix-functions/sendto.texi: Doc fix.
27943         * doc/posix-functions/setsockopt.texi: Doc fix.
27944         * doc/posix-functions/shutdown.texi: Doc fix.
27945         * doc/posix-functions/socket.texi: Doc fix.
27946
27947 2008-10-20  Bruno Haible  <bruno@clisp.org>
27948
27949         Take into account the role of SIGABRT_COMPAT on Windows 2008.
27950         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
27951         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
27952         as an alias for SIGABRT.
27953         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
27954         (sigaction): Map it to SIGABRT.
27955         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
27956
27957 2008-10-20  Bruno Haible  <bruno@clisp.org>
27958
27959         * lib/fts.c: Don't include lstat.h.
27960         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
27961
27962         Move the lstat() declaration to <sys/stat.h>.
27963         * lib/lstat.h: Remove file.
27964         * lib/sys_stat.in.h: Add special invocation convention.
27965         (lstat): New declaration.
27966         * lib/lstat.c (orig_lstat): New function.
27967         (rpl_lstat): Use orig_lstat instead of lstat.
27968         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
27969         AC_C_INLINE. Set REPLACE_LSTAT.
27970         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
27971         and REPLACE_LSTAT.
27972         * modules/lstat (Files): Remove lib/lstat.h.
27973         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
27974         (Include): Specify <sys/stat.h> instead of lstat.h.
27975         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
27976         REPLACE_LSTAT.
27977         * NEWS: Mention the change.
27978
27979 2008-10-20  Bruno Haible  <bruno@clisp.org>
27980
27981         * modules/posix_spawn-tests: New file.
27982         * tests/test-posix_spawn3.c: New file.
27983
27984 2008-10-20  Bruno Haible  <bruno@clisp.org>
27985
27986         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
27987         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
27988         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
27989         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
27990         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
27991
27992 2008-10-20  Bruno Haible  <bruno@clisp.org>
27993
27994         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
27995         of posix_spawn on AIX 5.3.
27996
27997 2008-10-20  Bruno Haible  <bruno@clisp.org>
27998
27999         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
28000
28001 2008-10-20  Bruno Haible  <bruno@clisp.org>
28002
28003         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
28004         of AC_LANG_PROGRAM.
28005
28006 2008-10-20  Simon Josefsson  <simon@josefsson.org>
28007
28008         * lib/netdb.in.h: Don't define GNU specific constants until they
28009         are supported or needed.  Reported by Bruno Haible
28010         <bruno@clisp.org>.
28011
28012 2008-10-20  Simon Josefsson  <simon@josefsson.org>
28013
28014         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
28015
28016 2008-10-20  Simon Josefsson  <simon@josefsson.org>
28017
28018         * lib/getaddrinfo.h: Remove file.
28019         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
28020         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
28021         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
28022         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
28023         * modules/netdb: Substitute GNULIB_GETADDRINFO.
28024         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
28025         * tests/test-getaddrinfo.c: Likewise.
28026         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
28027         * NEWS: Mention change.
28028
28029 2008-10-19  Bruno Haible  <bruno@clisp.org>
28030
28031         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
28032
28033 2008-10-19  Bruno Haible  <bruno@clisp.org>
28034
28035         * lib/wait-process.c: Include simply <sys/wait.h>.
28036         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
28037         WIFSTOPPED): Remove fallback definitions.
28038         * modules/wait-process (Depends-on): Add sys_wait.
28039
28040         New module 'sys_wait'.
28041         * modules/sys_wait: New file.
28042         * lib/sys_wait.in.h: New file, partially copied from
28043         lib/wait-process.c.
28044         * m4/sys_wait_h.m4: New file.
28045         * doc/posix-headers/sys_wait.texi: Mention the new module.
28046
28047 2008-10-19  Bruno Haible  <bruno@clisp.org>
28048
28049         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
28050
28051 2008-10-19  Bruno Haible  <bruno@clisp.org>
28052
28053         Assume that waitpid() fills an 'int' status, not a 'union wait'.
28054         * lib/wait-process.c (WAIT_T): Remove type.
28055         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
28056         (wait_subprocess): Update.
28057
28058 2008-10-19  Bruno Haible  <bruno@clisp.org>
28059
28060         New module 'atoll'.
28061         * modules/atoll: New file.
28062         * lib/stdlib.in.h (atoll): New declaration.
28063         * lib/atoll.c: New file, from glibc with modifications.
28064         * m4/atoll.m4: New file.
28065         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
28066         HAVE_ATOLL.
28067         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
28068         * doc/posix-functions/atoll.texi: Mention the new module.
28069
28070 2008-10-19  Bruno Haible  <bruno@clisp.org>
28071
28072         Add strtoull() declaration to <stdlib.h>.
28073         * lib/stdlib.in.h (strtoull): New declaration.
28074         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
28075         Set HAVE_STRTOULL.
28076         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
28077         HAVE_STRTOULL.
28078         * modules/strtoull (Depends-on): Add stdlib.
28079         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28080         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
28081         HAVE_STRTOULL.
28082
28083 2008-10-19  Bruno Haible  <bruno@clisp.org>
28084
28085         Add strtoll() declaration to <stdlib.h>.
28086         * lib/stdlib.in.h (strtoll): New declaration.
28087         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
28088         Set HAVE_STRTOLL.
28089         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
28090         HAVE_STRTOLL.
28091         * modules/strtoll (Depends-on): Add stdlib.
28092         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28093         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
28094
28095 2008-10-19  Bruno Haible  <bruno@clisp.org>
28096
28097         * modules/bcopy (Depends-on): Add strings.
28098         (Include): Specify <strings.h>.
28099
28100 2008-10-19  Bruno Haible  <bruno@clisp.org>
28101
28102         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
28103
28104 2008-10-19  Bruno Haible  <bruno@clisp.org>
28105
28106         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
28107         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
28108         mingw.
28109
28110 2008-10-19  Bruno Haible  <bruno@clisp.org>
28111
28112         * lib/atanl.c: Don't include isnanl.h.
28113         * lib/cosl.c: Likewise.
28114         * lib/ldexpl.c: Likewise.
28115         * lib/logl.c: Likewise.
28116         * lib/sinl.c: Likewise.
28117         * lib/sqrtl.c: Likewise.
28118         * lib/tanl.c: Likewise.
28119
28120         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
28121         * lib/isnanf.h: Remove file.
28122         * lib/isnand.h: Remove file.
28123         * lib/isnanl.h: Remove file.
28124         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
28125         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
28126         macros.
28127         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
28128         HAVE_ISNANF, don't define it as a C macro.
28129         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
28130         HAVE_ISNAND, don't define it as a C macro.
28131         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
28132         HAVE_ISNANL, don't define it as a C macro.
28133         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
28134         HAVE_ISNAN[FDL].
28135         * modules/isnanf (Files): Remove lib/isnanf.h.
28136         (Depends-on): Add math.
28137         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28138         (Include): Specify <math.h> instead of isnanf.h.
28139         * modules/isnand (Files): Remove lib/isnand.h.
28140         (Depends-on): Add math.
28141         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28142         (Include): Specify <math.h> instead of isnand.h.
28143         * modules/isnanl (Files): Remove lib/isnanl.h.
28144         (Depends-on): Add math.
28145         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
28146         (Include): Specify <math.h> instead of isnanl.h.
28147         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
28148         HAVE_ISNAN[FDL].
28149         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
28150         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
28151         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
28152         * NEWS: Mention the change.
28153
28154 2008-10-18  Bruno Haible  <bruno@clisp.org>
28155
28156         Add getusershell(), setusershell(), endusershell() declarations to
28157         <unistd.h>.
28158         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
28159         declarations.
28160         * lib/getusershell.c: Include unistd.h.
28161         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
28162         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
28163         HAVE_GETUSERSHELL.
28164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
28165         and HAVE_GETUSERSHELL.
28166         * modules/getusershell (Depends-on): Add unistd, extensions.
28167         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28168         (Include): Specify <unistd.h>.
28169         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
28170         HAVE_GETUSERSHELL.
28171
28172 2008-10-18  Bruno Haible  <bruno@clisp.org>
28173
28174         Add a getloadavg() declaration to <stdlib.h>.
28175         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
28176         getloadavg declaration.
28177         (getloadavg): New declaration.
28178         * lib/getloadavg.c: Include <stdlib.h> first.
28179         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
28180         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
28181         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
28182         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
28183         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
28184         * modules/getloadavg (Depends-on): Add stdlib, extensions.
28185         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28186         (Include): Specify <stdlib.h>.
28187         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
28188         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
28189
28190 2008-10-18  Bruno Haible  <bruno@clisp.org>
28191
28192         * lib/dirchownmod.c: Don't include lchmod.h.
28193
28194         Move the lchmod() declaration to <sys/stat.h>.
28195         * lib/lchmod.h: Remove file.
28196         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
28197         (lchmod): New declaration, moved here from lib/lchown.h.
28198         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
28199         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
28200         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
28201         and HAVE_LCHMOD.
28202         * modules/lchmod (Files): Remove lib/lchmod.h.
28203         (Depends-on): Add sys_stat, extensions.
28204         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
28205         (Include): Specify <sys/stat.h> instead of lchmod.h.
28206         * modules/sys_stat (Depends-on): Add link-warning.
28207         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
28208         definition of GL_LINK_WARNING.
28209         * NEWS: Mention the change.
28210
28211 2008-10-18  Bruno Haible  <bruno@clisp.org>
28212
28213         * lib/fchdir.c: Don't include dirfd.h.
28214         * lib/fts.c: Likewise.
28215         * lib/getcwd.c: Likewise.
28216         * lib/glob.c: Likewise.
28217
28218         Move the dirfd() declaration to <dirent.h>.
28219         * lib/dirfd.h: Remove file.
28220         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
28221         (dirfd): New declaration.
28222         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
28223         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
28224         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
28225         HAVE_DECL_DIRFD.
28226         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
28227         HAVE_DECL_DIRFD.
28228         * modules/dirfd (Files): Remove lib/dirfd.h.
28229         (Depends-on): Add dirent, extensions.
28230         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
28231         (Include): Specify <dirent.h> instead of dirfd.h.
28232         * modules/dirent (Depends-on): Add link-warning.
28233         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
28234         definition of GL_LINK_WARNING.
28235         * NEWS: Mention the change.
28236
28237 2008-10-18  Bruno Haible  <bruno@clisp.org>
28238
28239         Move the euidaccess() declaration to <unistd.h>.
28240         * lib/euidaccess.h: Remove file.
28241         * lib/unistd.in.h (euidaccess): New declaration.
28242         * lib/euidaccess.c: Don't include euidaccess.h.
28243         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
28244         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
28245         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
28246         and HAVE_EUIDACCESS.
28247         * modules/euidaccess (Files): Remove lib/euidaccess.h.
28248         (Depends-on): Add unistd.
28249         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28250         (Include): Specify <unistd.h> instead of euidaccess.h.
28251         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
28252         HAVE_EUIDACCESS.
28253         * NEWS: Mention the change.
28254
28255 2008-10-18  Bruno Haible  <bruno@clisp.org>
28256
28257         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
28258
28259         Move the getdomainname() declaration to <unistd.h>.
28260         * lib/getdomainname.h: Remove file.
28261         * lib/unistd.in.h (getdomainname): New declaration.
28262         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
28263         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
28264         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
28265         HAVE_GETDOMAINNAME.
28266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28267         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
28268         * modules/getdomainname (Files): Remove lib/getdomainname.h.
28269         (Depends-on): Add unistd, extensions.
28270         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28271         (Includes): Specify <unistd.h> instead of getdomainname.h.
28272         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
28273         HAVE_GETDOMAINNAME.
28274         * NEWS: Mention the change.
28275
28276 2008-10-18  Bruno Haible  <bruno@clisp.org>
28277
28278         * modules/dirent: New file.
28279         * m4/dirent_h.m4: New file.
28280         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
28281         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
28282         * modules/fchdir (Files): Remove lib/dirent.in.h.
28283         (Depends-on): Add dirent.
28284         (Makefile.am): Move rules to modules/dirent.
28285         * doc/posix-headers/dirent.texi: Mention the new module.
28286
28287 2008-10-18  Bruno Haible  <bruno@clisp.org>
28288
28289         Avoid -Wunused-parameter warnings in public gnulib header files.
28290         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
28291         macro.
28292         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
28293
28294 2008-10-18  Bruno Haible  <bruno@clisp.org>
28295
28296         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
28297         * doc/glibc-functions/error.texi: Mention the module 'error'.
28298         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
28299         * doc/glibc-functions/getdomainname.texi: Mention the module
28300         'getdomainname'.
28301         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
28302         * doc/glibc-functions/getpagesize.texi: Mention the module
28303         'getpagesize'.
28304         * doc/glibc-functions/getusershell.texi: Mention the module
28305         'getusershell'.
28306         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
28307         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
28308         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
28309         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
28310         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
28311         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
28312         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
28313         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
28314         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
28315         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
28316         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
28317         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
28318         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
28319         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
28320
28321 2008-10-17  Bruno Haible  <bruno@clisp.org>
28322
28323         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
28324         HP-UX and IRIX, use -0.0L.
28325         * tests/test-ceill.c (minus_zero): Likewise.
28326         * tests/test-floorl.c (minus_zero): Likewise.
28327         * tests/test-frexpl.c (minus_zero): Likewise.
28328         * tests/test-isnan.c (minus_zerol): Likewise.
28329         * tests/test-isnanl.h (minus_zero): Likewise.
28330         * tests/test-ldexpl.c (minus_zero): Likewise.
28331         * tests/test-roundl.c (minus_zero): Likewise.
28332         * tests/test-signbit.c (minus_zerol): Likewise.
28333         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
28334         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
28335         * tests/test-truncl.c (minus_zero): Likewise.
28336         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
28337         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
28338         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
28339         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
28340
28341 2008-10-17  Bruno Haible  <bruno@clisp.org>
28342
28343         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
28344         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
28345         that it gets activated only for gcc >= 3.0.
28346         * lib/dirent.in.h: Likewise.
28347         * lib/errno.in.h: Likewise.
28348         * lib/fcntl.in.h: Likewise.
28349         * lib/float.in.h: Likewise.
28350         * lib/iconv.in.h: Likewise.
28351         * lib/inttypes.in.h: Likewise.
28352         * lib/locale.in.h: Likewise.
28353         * lib/math.in.h: Likewise.
28354         * lib/netdb.in.h: Likewise.
28355         * lib/netinet_in.in.h: Likewise.
28356         * lib/search.in.h: Likewise.
28357         * lib/signal.in.h: Likewise.
28358         * lib/spawn.in.h: Likewise.
28359         * lib/stdarg.in.h: Likewise.
28360         * lib/stdint.in.h: Likewise.
28361         * lib/stdio.in.h: Likewise.
28362         * lib/stdlib.in.h: Likewise.
28363         * lib/string.in.h: Likewise.
28364         * lib/strings.in.h: Likewise.
28365         * lib/sys_file.in.h: Likewise.
28366         * lib/sys_ioctl.in.h: Likewise.
28367         * lib/sys_select.in.h: Likewise.
28368         * lib/sys_socket.in.h: Likewise.
28369         * lib/sys_stat.in.h: Likewise.
28370         * lib/sys_time.in.h: Likewise.
28371         * lib/sysexits.in.h: Likewise.
28372         * lib/time.in.h: Likewise.
28373         * lib/unistd.in.h: Likewise.
28374         * lib/wchar.in.h: Likewise.
28375         * lib/wctype.in.h: Likewise.
28376         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
28377
28378 2008-10-17  Jim Meyering  <meyering@redhat.com>
28379
28380         ignore-value: don't depend on inline module
28381         * modules/ignore-value (Depends-on): Remove 'inline'.
28382         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
28383         Suggestion from Bruno Haible.
28384
28385 2008-10-17  Bruno Haible  <bruno@clisp.org>
28386
28387         New implementation of condition variables for Win32.
28388         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
28389         (gl_linked_waitqueue_t): New type.
28390         (gl_cond_t): Use it.
28391         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
28392         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
28393         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
28394         (glthread_cond_init_func, glthread_cond_wait_func,
28395         glthread_cond_timedwait_func, glthread_cond_signal_func,
28396         glthread_cond_broadcast_func, glthread_cond_destroy_func):
28397         Reimplemented on the basis of gl_linked_waitqueue_t.
28398         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
28399         gl_waitqueue_t.
28400         (gl_rwlock_t): Update.
28401         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
28402
28403 2008-10-17  Simon Josefsson  <simon@josefsson.org>
28404
28405         * modules/recvfrom (Depends-on): Add dependency on getpeername.
28406         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28407
28408 2008-10-17  Jim Meyering  <meyering@redhat.com>
28409
28410         ignore-value: new module
28411         * modules/ignore-value: New file.
28412         * lib/ignore-value.h: New file.
28413         * MODULES.html.sh (Compiler warning management): New section,
28414         just for this module.  More to come.
28415
28416 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
28417
28418         open-safer.c: avoid 'signed and unsigned in conditional...' warning
28419         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
28420         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
28421
28422 2008-10-16  Jim Meyering  <meyering@redhat.com>
28423
28424         openat-die.c: avoid 'no previous prototype' warning
28425         * lib/openat-die.c: Include "openat.h".
28426         Reported by Reuben Thomas <rrt@sc3d.org>.
28427
28428 2008-10-16  Simon Josefsson  <simon@josefsson.org>
28429
28430         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
28431         * lib/netdb.in.h: Fix typo.
28432         Reported by Bruno Haible  <bruno@clisp.org>
28433
28434         * lib/netdb.in.h: Include sys/socket.h for platforms without
28435         netdb.h, to get structures like hostent on MinGW.
28436         * modules/netdb (Depends-on): Add sys_socket.
28437
28438 2008-10-15  Simon Josefsson  <simon@josefsson.org>
28439
28440         * modules/netdb, modules/netdb-tests: New file.
28441         * m4/netdb_h.m4: New file.
28442         * lib/netdb.in.h: Add, currently just an empty file pending
28443         definitions.
28444         * tests/test-netdb.c: New file.
28445         * doc/posix-headers/netdb.texi: Mention that we replace it if
28446         needed.
28447         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28448         netdb.
28449
28450 2008-10-15  Simon Josefsson  <simon@josefsson.org>
28451
28452         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
28453         with code.
28454
28455 2008-10-13  Bruno Haible  <bruno@clisp.org>
28456
28457         * lib/glthread/cond.c (glthread_cond_wait_func,
28458         glthread_cond_timedwait_func): Add a comment.
28459
28460 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28461
28462         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
28463         * tests/test-select.c: Likewise,
28464
28465 2008-10-13  Bruno Haible  <bruno@clisp.org>
28466
28467         * lib/glthread/cond.c (glthread_cond_wait_func,
28468         glthread_cond_timedwait_func): Fix variable name.
28469         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28470
28471 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
28472
28473         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
28474         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
28475         struct sockaddr.sa_len.
28476         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
28477
28478 2008-10-13  Simon Josefsson  <simon@josefsson.org>
28479
28480         * build-aux/pmccabe2html: Add css and css_url parameters.
28481
28482 2008-10-12  Bruno Haible  <bruno@clisp.org>
28483
28484         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
28485         calling aclx_get.
28486         Reported by Rainer Tammer <tammer@tammer.net>.
28487
28488 2008-10-12  Bruno Haible  <bruno@clisp.org>
28489
28490         Use msvcrt aware primitives for creation/termination of Win32 threads.
28491         * lib/glthread/thread.c: Include <process.h>.
28492         (glthread_create_func): Use _beginthreadex instead of CreateThread.
28493         (wrapper_func): Update signature.
28494         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
28495
28496 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
28497             Bruno Haible  <bruno@clisp.org>
28498
28499         Provide a Win32 implementation of the 'cond' module.
28500         * lib/glthread/cond.h [USE_WIN32]: New implementation.
28501         * lib/glthread/cond.c (glthread_cond_init_func,
28502         glthread_cond_wait_func, glthread_cond_timedwait_func,
28503         glthread_cond_signal_func, glthread_cond_broadcast_func,
28504         glthread_cond_destroy_func) [USE_WIN32]: New functions.
28505         * modules/cond (Dependencies): Add gettimeofday.
28506
28507 2008-10-11  Bruno Haible  <bruno@clisp.org>
28508
28509         Make sleep work on older versions of mingw.
28510         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
28511         only whether it exists.
28512         * doc/posix-functions/sleep.texi: Mention the problem with older
28513         versions of mingw.
28514
28515 2008-10-11  Bruno Haible  <bruno@clisp.org>
28516
28517         New module 'shutdown'.
28518         * modules/shutdown: New file.
28519         * lib/sys_socket.in.h (shutdown): New declaration.
28520         * lib/winsock.c (shutdown): New function.
28521         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
28522         GNULIB_SHUTDOWN.
28523         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
28524         * doc/posix-functions/shutdown.texi: Document the new module.
28525
28526 2008-10-11  Jim Meyering  <meyering@redhat.com>
28527
28528         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
28529
28530 2008-10-11  Bruno Haible  <bruno@clisp.org>
28531
28532         New module 'fclose'.
28533         * modules/fclose: New file.
28534         * lib/stdio.in.h (fclose): New declaration.
28535         * lib/fclose.c: New file.
28536         * m4/fclose.m4: New file.
28537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
28538         REPLACE_FCLOSE.
28539         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
28540         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
28541         REPLACE_FCLOSE.
28542         * modules/close (Depends-on): fclose.
28543         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
28544
28545 2008-10-11  Bruno Haible  <bruno@clisp.org>
28546
28547         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
28548         set errno and don't call _close.
28549
28550 2008-10-10  Bruno Haible  <bruno@clisp.org>
28551
28552         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
28553         ACL, not afterwards. Fixes test failure on Cygwin.
28554
28555 2008-10-09  Ben Pfaff  <blp@gnu.org>
28556
28557         * build-aux/announce-gen: Fix gnulib version related part of usage
28558         message.  Die with a useful error message if no tarballs are
28559         found.
28560
28561 2008-10-10  Jim Meyering  <meyering@redhat.com>
28562
28563         bootstrap: use git's --depth=N option only if it's supported
28564         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
28565         recognize the --depth option.  Reported by Pádraig Brady.
28566
28567 2008-10-09  Bruno Haible  <bruno@clisp.org>
28568
28569         New module 'ioctl'.
28570         * modules/ioctl: New file.
28571         * lib/sys_socket.in.h (ioctl): Remove declaration.
28572         * lib/winsock.c: Include <sys/ioctl.h>.
28573         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
28574         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
28575         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
28576         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
28577         * doc/posix-functions/ioctl.texi: Mention the new module.
28578
28579 2008-10-09  Bruno Haible  <bruno@clisp.org>
28580
28581         New module 'sys_ioctl'.
28582         * lib/sys_ioctl.in.h: New file.
28583         * m4/sys_ioctl_h.m4: New file.
28584         * modules/sys_ioctl: New file.
28585         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
28586
28587 2008-10-09  Bruno Haible  <bruno@clisp.org>
28588
28589         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
28590         * lib/winsock.c: Include <stdarg.h>.
28591         (rpl_ioctl): Change to second argument 'int' and then varargs.
28592
28593 2008-10-09  Bruno Haible  <bruno@clisp.org>
28594
28595         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
28596         when the sys_socket module is present and the system has <winsock2.h>.
28597
28598 2008-10-09  Bruno Haible  <bruno@clisp.org>
28599
28600         * doc/posix-functions/close.texi: Mention module 'close' instead of
28601         module 'sys_socket'.
28602
28603 2008-10-09  Bruno Haible  <bruno@clisp.org>
28604
28605         * doc/glibc-headers/sys_ioctl.texi: New file.
28606         * doc/gnulib.texi: Include it.
28607
28608 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28609             Bruno Haible  <bruno@clisp.org>
28610
28611         Combine the two replacements of 'close'.
28612         * lib/sys_socket.in.h (close): Define to a reminder to include
28613         <unistd.h>.
28614         (_gl_close_fd_maybe_socket): New declaration.
28615         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
28616         * lib/winsock.c (close): Remove undefinition.
28617         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
28618         needed for the gnulib module 'close'.
28619         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
28620         define to an error symbol or to a warning, if suitable.
28621         * lib/close.c: Include <sys/socket.h>.
28622         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
28623         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
28624         UNISTD_H_HAVE_WINSOCK2_H.
28625         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
28626         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28627         UNISTD_H_HAVE_WINSOCK2_H.
28628         * modules/sys_socket (Files): Add m4/unistd_h.m4.
28629         (configure.ac): Set a module indicator.
28630         (Makefile.am): Substitute GNULIB_CLOSE.
28631         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
28632         * modules/poll-tests (Depends-on): Add close.
28633         * modules/select-tests (Depends-on): Likewise.
28634
28635 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28636             Bruno Haible  <bruno@clisp.org>
28637
28638         New module 'close'.
28639         * modules/close: New file.
28640         * lib/unistd.in.h (close): Move declaration out of the
28641         FCHDIR_REPLACEMENT scope.
28642         (_gl_unregister_fd): New declaration.
28643         * lib/close.c: New file.
28644         * lib/fchdir.c (rpl_close): Remove function.
28645         * m4/close.m4: New file.
28646         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
28647         close.
28648         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
28649         REPLACE_CLOSE.
28650         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
28651         REPLACE_CLOSE.
28652         * modules/fchdir (Depends-on): Add close.
28653
28654 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28655             Bruno Haible  <bruno@clisp.org>
28656
28657         * lib/fcntl.in.h (open): Simplify conditionals.
28658         (_gl_register_fd): New declaration.
28659         * lib/fchdir.c (rpl_open): Remove function.
28660         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
28661         also.
28662         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
28663         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
28664         open.
28665
28666 2008-10-09  Jim Meyering  <meyering@redhat.com>
28667
28668         GNUmakefile: use the more name-space-friendly "_version"
28669         * top/GNUmakefile (_dummy): Update.
28670         (_version): Rename from "version".
28671
28672 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28673             Bruno Haible  <bruno@clisp.org>
28674
28675         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
28676         rpl_close.
28677         (_gl_register_fd): New function, extracted from rpl_open.
28678         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
28679         (rpl_open, rpl_opendir): Use _gl_register_fd.
28680
28681 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
28682
28683         Fix organization of 'open' replacement.
28684         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
28685         (gl_FUNC_OPEN): Use it.
28686         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
28687
28688 2008-10-08  Bruno Haible  <bruno@clisp.org>
28689
28690         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
28691
28692 2008-10-08  Simon Josefsson  <simon@josefsson.org>
28693
28694         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
28695         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
28696         listen).
28697
28698 2008-10-08  Eric Blake  <ebb9@byu.net>
28699
28700         GNUmakefile: add 'make version' target
28701         * top/GNUmakefile (_curr-ver): Split version update rules...
28702         (version): ...into a target.
28703
28704 2008-10-07  Bruno Haible  <bruno@clisp.org>
28705
28706         Use a more portable replacement expression for -0.0L.
28707         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
28708         instead of -0.0L. Fix m4 quotation.
28709
28710         * tests/test-signbit.c: Include <float.h>.
28711         (minus_zero): New variable.
28712         (test_signbitl): Use minus_zero instead of -zero.
28713         * modules/signbit-tests (Depends-on): Add float.
28714
28715         * tests/test-ceill.c: Include <float.h>.
28716         (zero): Remove variable.
28717         (minus_zero): New variable.
28718         (main): Use minus_zero instead of -zero.
28719         * modules/ceill-tests (Depends-on): Add float.
28720
28721         * tests/test-floorl.c: Include <float.h>.
28722         (zero): Remove variable.
28723         (minus_zero): New variable.
28724         (main): Use minus_zero instead of -zero.
28725         * modules/floorl-tests (Depends-on): Add float.
28726
28727         * tests/test-roundl.c: Include <float.h>.
28728         (zero): Remove variable.
28729         (minus_zero): New variable.
28730         (main): Use minus_zero instead of -zero.
28731         * modules/roundl-tests (Depends-on): Add float.
28732
28733         * tests/test-truncl.c: Include <float.h>.
28734         (zero): Remove variable.
28735         (minus_zero): New variable.
28736         (main): Use minus_zero instead of -zero.
28737         * modules/truncl-tests (Depends-on): Add float.
28738
28739         * tests/test-frexpl.c (zero): Remove variable.
28740         (minus_zero): New variable.
28741         (main): Use minus_zero instead of -zero.
28742         * modules/frexpl-tests (Depends-on): Add float.
28743
28744         * tests/test-isnan.c (zerol): Remove variable.
28745         (minus_zerol): New variable.
28746         (test_long_double): Use minus_zerol instead of -zerol.
28747         * modules/isnan-tests (Depends-on): Add float.
28748
28749         * tests/test-isnanl.h (zero): Remove variable.
28750         (minus_zero): New variable.
28751         (main): Use minus_zero instead of -zero.
28752         * modules/isnanl-nolibm-tests (Depends-on): Add float.
28753         * modules/isnanl-tests (Depends-on): Add float.
28754
28755         * tests/test-ldexpl.c (zero): Remove variable.
28756         (minus_zero): New variable.
28757         (main): Use minus_zero instead of -zero.
28758         * modules/ldexpl-tests (Depends-on): Add float.
28759
28760         * tests/test-snprintf-posix.h (zerol): Remove variable.
28761         (minus_zerol): New variable.
28762         (test_function): Use minus_zerol instead of -zerol.
28763         * modules/snprintf-posix-tests (Depends-on): Add float.
28764         * modules/vsnprintf-posix-tests (Depends-on): Add float.
28765
28766         * tests/test-sprintf-posix.h (zerol): Remove variable.
28767         (minus_zerol): New variable.
28768         (test_function): Use minus_zerol instead of -zerol.
28769         * modules/sprintf-posix-tests (Depends-on): Add float.
28770         * modules/vsprintf-posix-tests (Depends-on): Add float.
28771
28772         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
28773         (minus_zerol): New variable.
28774         (test_function): Use minus_zerol instead of -zerol.
28775         * modules/vasnprintf-posix-tests (Depends-on): Add float.
28776
28777         * tests/test-vasprintf-posix.c (zerol): Remove variable.
28778         (minus_zerol): New variable.
28779         (test_function): Use minus_zerol instead of -zerol.
28780         * modules/vasprintf-posix-tests (Depends-on): Add float.
28781
28782 2008-10-07  Simon Josefsson  <simon@josefsson.org>
28783
28784         * MODULES.html.sh (Support for building documentation): Mention
28785         pmccabe2html.  Sort entries.
28786
28787         Add pmccabe2html module, from gnupdf.
28788         * build-aux/pmccabe.css: New file.
28789         * build-aux/pmccabe2html: New file.
28790         * m4/pmccabe2html.m4: New file.
28791         * modules/pmccabe2html: New file.
28792
28793 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
28794
28795         flock: new module
28796         * MODULES.html.sh: Add to list of modules.
28797         * lib/flock.c: flock implementation for Windows and Unix systems
28798         which have fcntl.
28799         * doc/glibc-functions/flock.texi: Update documentation.
28800         * lib/sys_file.in.h: <sys/file.h> header file.
28801         * m4/flock.m4: M4 macros.
28802         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
28803         * modules/flock: flock module.
28804         * modules/flock-tests: flock tests module.
28805         * modules/sys_file: sys/file.h module.
28806         * tests/test-flock.c: test suite for flock.
28807
28808 2008-10-06  Jim Meyering  <meyering@redhat.com>
28809
28810         bootstrap: check for LT_INIT more portably still ;-)
28811         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
28812         Spotted by Bruno Haible.
28813
28814 2008-10-06  Eric Blake  <ebb9@byu.net>
28815
28816         test-signbit: avoid tripping Irix cc bug on -0.0L
28817         * tests/test-signbit.c (minus_zerol): Delete, and replace with
28818         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
28819         entire testsuite consistent and avoids an Irix 6.2 bug.
28820
28821 2008-10-05  Bruno Haible  <bruno@clisp.org>
28822             Jim Meyering  <jim@meyering.net>
28823
28824         Add an option for ignoring EPIPE during close_stdout.
28825         * lib/closeout.h: Include <stdbool.h>.
28826         (close_stdout_set_ignore_EPIPE): New declaration.
28827         * lib/closeout.c: Include <stdbool.h>.
28828         (ignore_EPIPE): New variable.
28829         (close_stdout_set_ignore_EPIPE): New function.
28830         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
28831         * lib/close-stream.c (close_stream): Mention the possible EPIPE
28832         failure.
28833         * modules/closeout (Depends-on): Add stdbool.
28834
28835 2008-10-05  Bruno Haible  <bruno@clisp.org>
28836
28837         * modules/accept: New file.
28838         * modules/bind: New file.
28839         * modules/connect: New file.
28840         * modules/getpeername: New file.
28841         * modules/getsockname: New file.
28842         * modules/getsockopt: New file.
28843         * modules/listen: New file.
28844         * modules/recv: New file.
28845         * modules/recvfrom: New file.
28846         * modules/send: New file.
28847         * modules/sendto: New file.
28848         * modules/setsockopt: New file.
28849         * modules/socket: New file.
28850         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
28851         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28852         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
28853         the particular module is requested. Add a link warning when the
28854         particular module is not requested.
28855         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
28856         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
28857         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
28858         the particular module is requested.
28859         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
28860         gl_SYS_SOCKET_H_DEFAULTS): New macros.
28861         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
28862         * modules/sys_socket (Depends-on): Add link-warning.
28863         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
28864         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
28865         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
28866         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
28867         GL_LINK_WARNING.
28868         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
28869         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
28870         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
28871         * doc/posix-functions/getpeername.texi: Mention the new module
28872         'getpeername'.
28873         * doc/posix-functions/getsockname.texi: Mention the new module
28874         'getsockname'.
28875         * doc/posix-functions/getsockopt.texi: Mention the new module
28876         'getsockopt'.
28877         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
28878         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
28879         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
28880         * doc/posix-functions/send.texi: Mention the new module 'send'.
28881         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
28882         * doc/posix-functions/setsockopt.texi: Mention the new module
28883         'setsockopt'.
28884         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
28885         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
28886         listen, connect, accept.
28887         * modules/select-tests (Depends-on): Likewise.
28888
28889 2008-10-05  Bruno Haible  <bruno@clisp.org>
28890
28891         * lib/winsock.c (strerror): Remove unused #undef.
28892         (rpl_close): Remove unused local variable.
28893
28894         * modules/sys_socket (Depends-on); Add errno.
28895
28896 2008-10-05  Bruno Haible  <bruno@clisp.org>
28897
28898         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
28899         (select): Add a link warning when the 'select' module is not used.
28900         * modules/sys_select (Depends-on): Add link-warning.
28901         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
28902         Suggested by Paolo Bonzini.
28903
28904 2008-10-05  Jim Meyering  <meyering@redhat.com>
28905
28906         bootstrap: check for LT_INIT more portably
28907         * build-aux/bootstrap: Avoid using grep -E, since it's not
28908         portable enough.  Suggestion from Bruno Haible.
28909
28910 2008-10-05  Bruno Haible  <bruno@clisp.org>
28911
28912         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
28913         as being fixed by gnulib.
28914
28915 2008-10-05  Bruno Haible  <bruno@clisp.org>
28916
28917         * modules/select-tests: New file, mostly copied from
28918         modules/sys_select-tests.
28919         * tests/test-select.c: New file, mostly copied from
28920         tests/test-sys_select.c.
28921         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
28922         * modules/sys_select-tests (Depends-on): Remove all dependencies.
28923         (Makefile.am): Remove test_sys_select_LDADD.
28924
28925         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
28926         to an undefined symbol, for an error message.
28927         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
28928         (gl_SYS_SELECT_H_DEFAULTS): New macro.
28929         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
28930         winsock-select.c here.
28931         * modules/sys_select (Files): Remove lib/winsock-select.c.
28932         (Depends-on): Remove alloca.
28933         (Makefile.am): Substitute GNULIB_SELECT.
28934         * modules/select: New file.
28935         * doc/posix-functions/select.texi: Update.
28936
28937 2008-10-05  Bruno Haible  <bruno@clisp.org>
28938
28939         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
28940         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
28941         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
28942         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
28943         getdtablesize.
28944         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
28945         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
28946
28947 2008-10-05  Bruno Haible  <bruno@clisp.org>
28948
28949         * modules/getdtablesize-tests: New file.
28950         * tests/test-getdtablesize.c: New file.
28951
28952         New module 'getdtablesize'.
28953         * lib/unistd.in.h (getdtablesize): New declaration.
28954         * lib/getdtablesize.c: New file.
28955         * m4/getdtablesize.m4: New file.
28956         * modules/getdtablesize: New file.
28957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28958         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
28959         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
28960         HAVE_GETDTABLESIZE.
28961         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
28962
28963 2008-10-05  Bruno Haible  <bruno@clisp.org>
28964
28965         * modules/sched (Makefile.am): Fix typo.
28966         Reported by Simon Josefsson.
28967
28968 2008-10-05  Jim Meyering  <meyering@redhat.com>
28969
28970         bootstrap: check for LT_INIT, too
28971         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
28972         are deprecated.  Suggestion from Ralf Wildenhues.
28973
28974 2008-10-05  Bruno Haible  <bruno@clisp.org>
28975
28976         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
28977         overriding them by ours.
28978         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
28979
28980 2008-10-05  Jim Meyering  <meyering@redhat.com>
28981
28982         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
28983         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
28984         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
28985
28986 2008-10-04  Bruno Haible  <bruno@clisp.org>
28987
28988         * modules/dup2 (License): Change to LGPLv2+.
28989         * modules/sleep (License): Likewise.
28990         * modules/perror (License): Likewise.
28991         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
28992         Blake.
28993         * modules/signal (License): Likewise.
28994         * modules/sigprocmask (License): Likewise.
28995         * modules/raise (License): Change to LGPLv2+, with approval by Jim
28996         Meyering.
28997
28998 2008-10-04  Bruno Haible  <bruno@clisp.org>
28999
29000         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
29001         Reported by Rainer Tammer <tammer@tammer.net>.
29002
29003 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
29004             Bruno Haible  <bruno@clisp.org>
29005
29006         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
29007         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
29008         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
29009
29010 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
29011
29012         filevercmp: new module
29013         * lib/filevercmp.h: New function filevercmp comparing version strings.
29014         * lib/filevercmp.c: Implementation of filevercmp function.
29015         * modules/filevercmp: Module metadata.
29016         * tests/test-filevercmp.c: Unit test for new module.
29017         * modules/filevercmp-tests: Unit test metadata.
29018         * MODULES.html.sh: Add filevercmp module.
29019
29020 2008-10-03  Bruno Haible  <bruno@clisp.org>
29021
29022         * lib/c-ctype.h: Add comment.
29023         Reported by Jim Meyering.
29024
29025 2008-10-02  Bruno Haible  <bruno@clisp.org>
29026
29027         * modules/posix_spawn-internal (Depends-on): Add 'open'.
29028
29029 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
29030
29031         * build-aux/bootstrap: Allow renaming bootstrap, and change the
29032         name of bootstrap.conf accordingly.
29033
29034 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
29035
29036         * build-aux/bootstrap: Install git-merge-changelog configuration
29037         items into .gitconfig if needed.
29038
29039 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
29040
29041         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
29042         git repository, and initialize/update it accordingly.
29043
29044 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
29045
29046         * modules/fsync-tests: New file.
29047         * tests/test-fsync.c: New file.
29048
29049         New module 'fsync'.
29050         * lib/fsync.c: New file.
29051         * m4/fsync.m4: New file.
29052         * modules/fsync: New file.
29053         * lib/unistd.in.h (fsync): New declaration.
29054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
29055         GNULIB_FSYNC and HAVE_FSYNC.
29056         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
29057         * MODULES.html.sh (posix_functions): Add fsync.
29058         * doc/posix-functions/fsync.texi: Mention the new module.
29059
29060 2008-10-02  Jim Meyering  <meyering@redhat.com>
29061
29062         fts.c: sync with similar code from coreutils' remove.c
29063         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
29064         Guard also with "#if defined __linux__", since for now at least,
29065         this code is Linux-kernel-specific.
29066
29067 2008-10-02  Jim Meyering  <meyering@redhat.com>
29068
29069         fts: bug fixes
29070         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
29071         Include <sys/vfs.h>, not <sys/statfs.h>.
29072
29073         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
29074         Include <sys/vfs.h>, not <sys/statfs.h>.
29075
29076 2008-10-01  Bruno Haible  <bruno@clisp.org>
29077
29078         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
29079         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
29080         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
29081         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
29082         * doc/posix-functions/posix_spawnp.texi: Likewise.
29083         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
29084         whether posix_spawn actually works.
29085         * m4/pipe.m4 (gl_PIPE): Likewise.
29086         * modules/execute (Files): Add m4/posix_spawn.m4.
29087         * modules/pipe (Files): Add m4/posix_spawn.m4.
29088         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
29089
29090 2008-10-01  Jim Meyering  <meyering@redhat.com>
29091
29092         remove trailing spaces
29093         * NEWS: Likewise.
29094         * lib/poll.c (poll): Likewise.
29095         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
29096         * lib/winsock.c (rpl_close): Likewise.
29097         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
29098         * modules/yield: Likewise.
29099         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
29100         * tests/test-sys_select.c (connect_to_socket): Likewise.
29101
29102         fts.c: adjust a new interface to be more generally useful
29103         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
29104         (fts_build): Adjust caller.
29105
29106 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29107
29108         * modules/cond-tests: New file.
29109         * tests/test-cond.c: New file.
29110
29111 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29112             Bruno Haible  <bruno@clisp.org>
29113
29114         * modules/cond (Dependencies): Add errno, time.
29115         * lib/glthread/cond.h: Include <time.h>.
29116         (gl_cond_define, gl_cond_define_initialized): Use the same definition
29117         across platforms.
29118
29119 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29120             Bruno Haible  <bruno@clisp.org>
29121
29122         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
29123
29124 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29125             Bruno Haible  <bruno@clisp.org>
29126
29127         * modules/tls-tests (Depends-on): Add thread, yield.
29128         (configure.ac): Remove all checks.
29129         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
29130         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
29131         gl_thread_self): Remove definitions. Include glthread/thread.h and
29132         glthread/yield.h instead.
29133         (test_tls): Pass an additional NULL argument to gl_thread_join.
29134
29135 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29136             Bruno Haible  <bruno@clisp.org>
29137
29138         * modules/lock-tests (Depends-on): Add thread, yield.
29139         (configure.ac): Remove all checks.
29140         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
29141         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
29142         gl_thread_self): Remove definitions. Include glthread/thread.h and
29143         glthread/yield.h instead.
29144         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
29145         additional NULL argument to gl_thread_join.
29146
29147 2008-09-30  Bruno Haible  <bruno@clisp.org>
29148
29149         Fix the Win32 implementation of the 'thread' module.
29150         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
29151         pointer type.
29152         (gl_thread_self): Invoke gl_thread_self_func.
29153         (gl_thread_self_func): New declaration.
29154         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
29155         (do_init_self_key, init_self_key): New functions.
29156         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
29157         Remove some fields.
29158         (running_threads, running_lock): Remove variables.
29159         (get_current_thread_handle): New function.
29160         (gl_thread_self_func, wrapper_func, glthread_create_func,
29161         glthread_join_func, gl_thread_exit_func): Largely rewritten and
29162         simplified.
29163
29164 2008-09-30  Bruno Haible  <bruno@clisp.org>
29165
29166         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
29167         files.
29168
29169 2008-09-30  Jim Meyering  <meyering@redhat.com>
29170
29171         fts.m4: correct the test for statfs.f_type
29172         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
29173         when checking for statfs.f_type.
29174
29175 2008-09-15  Simon Josefsson  <simon@josefsson.org>
29176
29177         tests: avoid some compiler warnings
29178         * tests/test-memchr.c (main): Pass NULL indirectly.
29179         * tests/test-getdate.c (main): Remove unused variable 'ret'.
29180
29181 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
29182
29183         getdate.y: disallow countable dayshifts like "4 yesterday ago"
29184         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
29185         exactly specified dayshifts.
29186         (dayshift): New rule.
29187         (rel): Add dayshift.
29188         (relative_time_table) [tomorrow, yesterday, today, now]:
29189         Use tDAY_SHIFT in place of tDAY_UNIT.
29190         * tests/test-getdate.c: Add tests for now-disallowed countable
29191         dayshifts, e.g., "4 yesterday ago".
29192
29193 2008-09-29  Bruno Haible  <bruno@clisp.org>
29194
29195         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
29196         * tests/test-posix_spawn1.in.sh: Renamed from
29197         tests/test-posix_spawn.in.sh.
29198         * tests/test-posix_spawn2.c: New file.
29199         * tests/test-posix_spawn2.in.sh: New file.
29200         * modules/posix_spawnp-tests (Files): Update.
29201         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
29202
29203 2008-09-29  Bruno Haible  <bruno@clisp.org>
29204
29205         Propagate effects of putenv/setenv/unsetenv to child processes.
29206         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
29207         * lib/pipe.c (create_pipe): Likewise.
29208
29209 2008-09-29  Bruno Haible  <bruno@clisp.org>
29210
29211         Enable use of shell scripts as executables in mingw.
29212         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
29213         run the program as a shell script.
29214         * lib/pipe.c (create_pipe): Likewise.
29215         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
29216         resulting array.
29217
29218 2008-09-29  Eric Blake  <ebb9@byu.net>
29219
29220         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
29221
29222 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
29223
29224         * doc/posix-functions/accept.texi: Update mingw problems.
29225         * doc/posix-functions/bind.texi: Update mingw problems.
29226         * doc/posix-functions/close.texi: Update mingw problems.
29227         * doc/posix-functions/connect.texi: Update mingw problems.
29228         * doc/posix-functions/getpeername.texi: Update mingw problems.
29229         * doc/posix-functions/getsockname.texi: Update mingw problems.
29230         * doc/posix-functions/getsockopt.texi: Update mingw problems.
29231         * doc/posix-functions/ioctl.texi: Update mingw problems.
29232         * doc/posix-functions/listen.texi: Update mingw problems.
29233         * doc/posix-functions/recv.texi: Update mingw problems.
29234         * doc/posix-functions/recvfrom.texi: Update mingw problems.
29235         * doc/posix-functions/select.texi: Update mingw problems.
29236         * doc/posix-functions/send.texi: Update mingw problems.
29237         * doc/posix-functions/sendto.texi: Update mingw problems.
29238         * doc/posix-functions/setsockopt.texi: Update mingw problems.
29239         * doc/posix-functions/socket.texi: Update mingw problems.
29240
29241 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
29242             Bruno Haible  <bruno@clisp.org>
29243
29244         * lib/sys_select.in.h: Include sys/time.h.
29245         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
29246         * modules/sys_select: Depend on sys_time.
29247         * tests/test-sys_select.c: Test that sys/select.h defines struct
29248         timeval fully.
29249
29250 2008-09-29  Bruno Haible  <bruno@clisp.org>
29251
29252         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
29253         * lib/sys_select.in.h: Likewise.
29254
29255 2008-09-29  Bruno Haible  <bruno@clisp.org>
29256
29257         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
29258
29259 2008-09-29  Bruno Haible  <bruno@clisp.org>
29260
29261         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
29262         Set LIBSOCKET instead of augmenting LIBS.
29263         * modules/sockets (Link): New section.
29264         * modules/sockets-tests (test_sockets_LDADD): New variable.
29265         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
29266         * modules/poll-tests (test_poll_LDADD): New variable.
29267         * NEWS: Document the change.
29268
29269 2008-09-29  Bruno Haible  <bruno@clisp.org>
29270
29271         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
29272         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
29273         ARPA_INET_H directly.
29274         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29275
29276 2008-09-28  Bruno Haible  <bruno@clisp.org>
29277
29278         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
29279         from gl_HEADER_SYS_SOCKET.
29280         (gl_HEADER_SYS_SOCKET): Invoke it.
29281         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
29282
29283 2008-09-28  Bruno Haible  <bruno@clisp.org>
29284
29285         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
29286         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
29287         Needed on OSF/1 4.0.
29288
29289 2008-09-28  Bruno Haible  <bruno@clisp.org>
29290
29291         Override open more carefully.
29292         * lib/open.c (orig_open): New function.
29293         (rpl_open): Use orig_open instead of open.
29294         * lib/fcntl.in.h: Add special invocation convention.
29295         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
29296         (gl_FUNC_OPEN): Invoke it.
29297
29298         Override freopen more carefully.
29299         * lib/freopen.c (orig_freopen): New function.
29300         (rpl_freopen): Use orig_freopen instead of freopen.
29301         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
29302         (gl_FUNC_FREOPEN): Invoke it.
29303
29304         Override fopen more carefully.
29305         * lib/fopen.c (orig_fopen): New function.
29306         (rpl_fopen): Use orig_fopen instead of fopen.
29307         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
29308         (gl_FUNC_FOPEN): Invoke it.
29309         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
29310
29311 2008-09-28  Bruno Haible  <bruno@clisp.org>
29312
29313         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
29314         SIGPIPE.
29315
29316 2008-09-28  Bruno Haible  <bruno@clisp.org>
29317
29318         * tests/test-sigaction.c (handler, main): Disable the check whether
29319         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
29320         glibc systems with LinuxThreads.
29321
29322 2008-09-28  Bruno Haible  <bruno@clisp.org>
29323
29324         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
29325
29326         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
29327         with AIX xlc.
29328         * lib/fcntl.in.h (open): Likewise.
29329         Reported by Rainer Tammer <tammer@tammer.net>.
29330
29331 2008-09-28  Bruno Haible  <bruno@clisp.org>
29332
29333         * modules/posix_spawnp-tests: New file.
29334         * tests/test-posix_spawn.c: New file.
29335         * tests/test-posix_spawn.in.sh: New file.
29336
29337         New module 'posix_spawnp'.
29338         * modules/posix_spawnp: New file.
29339         * lib/spawnp.c: New file, from GNU libc with modifications.
29340         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
29341
29342         New module 'posix_spawn'.
29343         * modules/posix_spawn: New file.
29344         * lib/spawn.c: New file, from GNU libc with modifications.
29345         * doc/posix-functions/posix_spawn.texi: Mention the new module.
29346
29347         New module 'posix_spawnattr_destroy'.
29348         * modules/posix_spawnattr_destroy: New file.
29349         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
29350         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
29351         module.
29352
29353         New module 'posix_spawnattr_setsigmask'.
29354         * modules/posix_spawnattr_setsigmask: New file.
29355         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
29356         modifications.
29357         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
29358         new module.
29359
29360         New module 'posix_spawnattr_getsigmask'.
29361         * modules/posix_spawnattr_getsigmask: New file.
29362         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
29363         modifications.
29364         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
29365         new module.
29366
29367         New module 'posix_spawnattr_setsigdefault'.
29368         * modules/posix_spawnattr_setsigdefault: New file.
29369         * lib/spawnattr_setdefault.c: New file, from GNU libc with
29370         modifications.
29371         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
29372         new module.
29373
29374         New module 'posix_spawnattr_getsigdefault'.
29375         * modules/posix_spawnattr_getsigdefault: New file.
29376         * lib/spawnattr_getdefault.c: New file, from GNU libc with
29377         modifications.
29378         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
29379         new module.
29380
29381         New module 'posix_spawnattr_setschedpolicy'.
29382         * modules/posix_spawnattr_setschedpolicy: New file.
29383         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
29384         modifications.
29385         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
29386         new module.
29387
29388         New module 'posix_spawnattr_getschedpolicy'.
29389         * modules/posix_spawnattr_getschedpolicy: New file.
29390         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
29391         modifications.
29392         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
29393         new module.
29394
29395         New module 'posix_spawnattr_setschedparam'.
29396         * modules/posix_spawnattr_setschedparam: New file.
29397         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
29398         modifications.
29399         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
29400         new module.
29401
29402         New module 'posix_spawnattr_getschedparam'.
29403         * modules/posix_spawnattr_getschedparam: New file.
29404         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
29405         modifications.
29406         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
29407         new module.
29408
29409         New module 'posix_spawnattr_setpgroup'.
29410         * modules/posix_spawnattr_setpgroup: New file.
29411         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
29412         modifications.
29413         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
29414         module.
29415
29416         New module 'posix_spawnattr_getpgroup'.
29417         * modules/posix_spawnattr_getpgroup: New file.
29418         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
29419         modifications.
29420         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
29421         module.
29422
29423         New module 'posix_spawnattr_setflags'.
29424         * modules/posix_spawnattr_setflags: New file.
29425         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
29426         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
29427         module.
29428
29429         New module 'posix_spawnattr_getflags'.
29430         * modules/posix_spawnattr_getflags: New file.
29431         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
29432         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
29433         module.
29434
29435         New module 'posix_spawnattr_init'.
29436         * modules/posix_spawnattr_init: New file.
29437         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
29438         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
29439         module.
29440
29441         New module 'posix_spawn_file_actions_destroy'.
29442         * modules/posix_spawn_file_actions_destroy: New file.
29443         * lib/spawn_faction_destroy.c: New file, from GNU libc with
29444         modifications.
29445         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
29446         the new module.
29447
29448         New module 'posix_spawn_file_actions_addopen'.
29449         * modules/posix_spawn_file_actions_addopen: New file.
29450         * lib/spawn_faction_addopen.c: New file, from GNU libc with
29451         modifications.
29452         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
29453         the new module.
29454
29455         New module 'posix_spawn_file_actions_adddup2'.
29456         * modules/posix_spawn_file_actions_adddup2: New file.
29457         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
29458         modifications.
29459         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
29460         the new module.
29461
29462         New module 'posix_spawn_file_actions_addclose'.
29463         * modules/posix_spawn_file_actions_addclose: New file.
29464         * lib/spawn_faction_addclose.c: New file, from GNU libc with
29465         modifications.
29466         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
29467         the new module.
29468
29469         New module 'posix_spawn_file_actions_init'.
29470         * modules/posix_spawn_file_actions_init: New file.
29471         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
29472         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
29473         new module.
29474
29475         New module 'posix_spawn-internal'.
29476         * modules/posix_spawn-internal: New file.
29477         * lib/spawn_int.h: New file, from GNU libc with modifications.
29478         * lib/spawni.c: New file, from GNU libc with modifications.
29479         * m4/posix_spawn.m4: New file.
29480
29481         New module 'spawn'.
29482         * modules/spawn: New file.
29483         * lib/spawn.in.h: New file, from GNU libc with modifications.
29484         * m4/spawn_h.m4: New file.
29485         * doc/posix-headers/spawn.texi: Mention the new module.
29486
29487 2008-09-28  Bruno Haible  <bruno@clisp.org>
29488
29489         * modules/sched-tests: New file.
29490         * tests/test-sched.c: New file.
29491
29492         New module 'sched'.
29493         * modules/sched: New file.
29494         * lib/sched.in.h: New file.
29495         * m4/sched_h.m4: New file.
29496         * doc/posix-headers/sched.texi: Mention the new module.
29497
29498 2008-09-27  Eric Blake  <ebb9@byu.net>
29499
29500         Fix previous patch, and tweak references to $0.
29501         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
29502         (func_version, func_gnulib_dir): Don't call this program
29503         gnulib-tool.
29504         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
29505         with using $0 in function.
29506         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
29507         (func_fatal_error): Reuse the name the user invoked us with.
29508
29509 2008-09-27  Bruno Haible  <bruno@clisp.org>
29510
29511         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
29512         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
29513         (gl_ICONV_H): Not here.
29514         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
29515         instead of assigning ICONV_H directly.
29516
29517         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
29518         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
29519         WCHAR_H directly.
29520
29521 2008-09-27  Bruno Haible  <bruno@clisp.org>
29522
29523         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
29524         * modules/arpa_inet (Depends-on): Add link-warning.
29525         (Makefile.am): Insert the definition of GL_LINK-WARNING.
29526         * modules/unistd (Makefile.am): Likewise.
29527
29528 2008-09-26  Bruno Haible  <bruno@clisp.org>
29529
29530         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
29531         variables.
29532         (func_version): Essentially copied from gnulib-tool.
29533         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
29534         func_readlink): Copied from gnulib-tool.
29535
29536 2008-09-26  Bruno Haible  <bruno@clisp.org>
29537
29538         * gnulib-tool (func_version): Change directory to $gnulib_dir before
29539         invoking git-version-gen.
29540
29541 2008-09-26  Bruno Haible  <bruno@clisp.org>
29542
29543         * posix-modules: Update to directory names changed on 2008-01-19.
29544         Remove commas in output before splitting into words. No more need to
29545         avoid 'ftruncate' since 2007-02-19.
29546
29547 2008-09-26  Bruno Haible  <bruno@clisp.org>
29548
29549         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
29550
29551 2008-09-26  Bruno Haible  <bruno@clisp.org>
29552
29553         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
29554         * modules/fwriteerror (Depends-on): Add errno.
29555
29556 2008-09-26  Bruno Haible  <bruno@clisp.org>
29557
29558         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
29559         * tests/test-vc-list-files-cvs.sh: Likewise.
29560
29561 2008-09-26  Bruno Haible  <bruno@clisp.org>
29562
29563         * doc/posix-headers/sys_resource.texi: Reorder items.
29564
29565 2008-09-26  Jim Meyering  <meyering@redhat.com>
29566
29567         fts: tweak inode comparison function
29568         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
29569         inode numbers, as documented.
29570
29571         fts: sort dirent entries on inode number before traversing
29572         This avoids a quadratic, seek-related performance penalty when
29573         operating on a directory containing many entries (measurable at 10k;
29574         3.5 hours at 2 million entries with a cold cache) on certain types
29575         of file systems, including ext3 and ext4, but not tmpfs.
29576         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
29577         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
29578         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
29579         (fs_handles_readdir_ordered_dirents_efficiently): New function.
29580         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
29581         (fts_build): Set the stat.st_ino member from D_INO.
29582         If it is likely to be useful, sort dirent entries on inode number.
29583
29584         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
29585         and the struct statfs.f_type member.
29586         * modules/fts (Depends-on): Add d-ino.
29587
29588 2008-09-26  Bruno Haible  <bruno@clisp.org>
29589
29590         * modules/sigpipe-die (Depends-on): Add sigpipe.
29591
29592         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
29593         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
29594         and GNULIB_STDIO_H_SIGPIPE are set.
29595         * lib/stdio-write.c: New file.
29596         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
29597         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29598         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29599         REPLACE_STDIO_WRITE_FUNCS.
29600         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
29601         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29602         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29603         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
29604         * modules/stdio (Files): Add lib/stdio-write.c.
29605         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
29606         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
29607         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
29608         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
29609         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
29610         REPLACE_FPRINTF_POSIX.
29611         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
29612         REPLACE_PRINTF_POSIX.
29613         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
29614         REPLACE_VFPRINTF_POSIX.
29615         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
29616         REPLACE_VPRINTF_POSIX.
29617         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
29618         SIGPIPE issue.
29619         * doc/posix-functions/fputc.texi: Likewise.
29620         * doc/posix-functions/fputs.texi: Likewise.
29621         * doc/posix-functions/fwrite.texi: Likewise.
29622         * doc/posix-functions/printf.texi: Likewise.
29623         * doc/posix-functions/putc.texi: Likewise.
29624         * doc/posix-functions/putchar.texi: Likewise.
29625         * doc/posix-functions/puts.texi: Likewise.
29626         * doc/posix-functions/vfprintf.texi: Likewise.
29627         * doc/posix-functions/vprintf.texi: Likewise.
29628
29629         * modules/safe-write (Depends-on): Add write.
29630
29631         * modules/sigpipe-tests: New file.
29632         * tests/test-sigpipe.c: New file.
29633         * tests/test-sigpipe.sh: New file.
29634
29635         * modules/write: New file.
29636         * lib/unistd.in.h: Include <sys/types.h>.
29637         (write): New declaration.
29638         * lib/write.c: New file.
29639         * m4/write.m4: New file.
29640         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29641         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
29642         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
29643         GNULIB_WRITE, REPLACE_WRITE.
29644         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
29645         and the SIGPIPE issue.
29646
29647         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
29648         (raise): New declaration.
29649         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
29650         (ext_signal): New function.
29651         (rpl_raise): New function.
29652         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
29653         GNULIB_SIGNAL_H_SIGPIPE.
29654         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
29655         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
29656
29657         * modules/sigpipe: New file.
29658         * m4/sigpipe.m4: New file.
29659
29660 2008-09-25  Derek Price  <derek@ximbiot.com>
29661             Bruno Haible  <bruno@clisp.org>
29662
29663         * gnulib-tool (func_import): Report all license incompatibilities, not
29664         just the first one.
29665
29666 2008-09-25  Bruno Haible  <bruno@clisp.org>
29667
29668         * gnulib-tool (func_import): When computing the edits, consider not
29669         only the Makefile.ams that exist but also those that will be generated.
29670
29671 2008-09-25  Simon Josefsson  <simon@josefsson.org>
29672
29673         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
29674         fixes gnulib-tool --test warning about duplicate dependency.
29675
29676 2008-09-25  Bruno Haible  <bruno@clisp.org>
29677
29678         * gnulib-tool: Don't ask the user to perform edits in the generated
29679         Makefile.ams.
29680         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
29681         apply to the Makefile.am being generated.
29682         (func_emit_tests_Makefile_am): Execute edits that apply to the
29683         Makefile.am being generated.
29684         (func_import): Setup list of Makefile.am edits before emitting the
29685         Makefile.ams, not at the end.
29686         (func_create_testdir): Update.
29687         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29688
29689 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29690
29691         * gnulib-tool (func_import): Store the --tests-base option in the
29692         comment in gnulib-cache.m4.
29693
29694 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
29695
29696         * NEWS: Document increased portability that sys_select now provides.
29697
29698         * lib/sys_select.in.h: Install select wrapper.
29699         * lib/sys_socket.in.h: Use more descriptive name when there is no
29700         select wrapper.
29701         * lib/winsock-select.c: New.
29702         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
29703         Require gl_HEADER_SYS_SOCKET.
29704         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
29705         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
29706         * tests/test-sys_select.c: Add functional tests.
29707
29708 2008-09-24  Eric Blake  <ebb9@byu.net>
29709
29710         open, fopen: close fd leak in last patch
29711         * lib/open.c (rpl_open): Close fd before returning error.
29712         * lib/fopen.c (rpl_fopen): Close fd before returning error.
29713         * doc/posix-functions/open.texi (open): Document that Irix also
29714         has the bug.
29715         * doc/posix-functions/fopen.texi (fopen): Likewise.
29716         Reported by Paolo Bonzini.
29717
29718 2008-09-24  Bruno Haible  <bruno@clisp.org>
29719
29720         Ensure that a filename ending in a slash cannot be used to access a
29721         non-directory.
29722         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
29723         to check whether it's really a directory.
29724         * lib/fopen.c: Include fcntl.h, unistd.h.
29725         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
29726         and fdopen().
29727         * modules/fopen (Depends-on): Add unistd.
29728         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
29729         * tests/test-fopen.c (main): Likewise.
29730         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
29731         * doc/posix-functions/fopen.texi: Likewise.
29732         Reported by Eric Blake.
29733
29734 2008-09-23  Eric Blake  <ebb9@byu.net>
29735
29736         c-stack: avoid compiler optimizations when provoking overflow
29737         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
29738         recursion harder to optimize, to ensure a stack overflow occurs.
29739         * tests/test-c-stack.c (recurse): Likewise.
29740         Borrowed from libsigsegv.
29741
29742         c-stack: work around Irix sigaltstack bug
29743         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
29744         whether sigaltstack uses wrong end of stack_t (copied in part from
29745         libsigsegv).
29746         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
29747         Irix bug, without requiring an over-allocation.
29748         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
29749         bug.
29750
29751         fopen: document mingw bug on directories
29752         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
29753         not allowing a stream visiting a directory, even though reading
29754         from such a stream is not portable.
29755
29756 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29757
29758         * lib/poll.c: Rewrite.
29759         * modules/poll: Depend on alloca.
29760
29761 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29762
29763         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
29764         instead define prototypes for a full set of wrappers.  Ensure
29765         that Cygwin does not use the compatibility code, which is only
29766         for MinGW.
29767         * lib/winsock.c: New.
29768         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
29769         * modules/sys_socket: Add lib/winsock.c.
29770
29771         * modules/poll-tests: Add errno and perror.
29772         * tests/test-poll.c: Use ioctl, not ioctlsocket.
29773
29774 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
29775
29776         * tests/test-poll.c: Downgrade minimum needed Winsock version.
29777
29778 2008-09-23  Bruno Haible  <bruno@clisp.org>
29779
29780         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
29781         * doc/glibc-functions/*: Likewise.
29782
29783 2008-09-23  Simon Josefsson  <simon@josefsson.org>
29784
29785         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
29786         success.
29787
29788 2008-09-22  Eric Blake  <ebb9@byu.net>
29789             Bruno Haible  <bruno@clisp.org>
29790
29791         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
29792         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
29793         supply %A but mishandle pseudo-NaN.
29794         Reported by Simon Josefsson.
29795
29796 2008-09-21  Bruno Haible  <bruno@clisp.org>
29797
29798         * tests/test-lock.c (main): Tweak skip message.
29799         * tests/test-tls.c (main): Likewise.
29800
29801 2008-09-21  Bruno Haible  <bruno@clisp.org>
29802
29803         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
29804         whether 'struct sigaction' has sa_sigaction here...
29805         (gl_PREREQ_SIG_HANDLER_H): ... not here.
29806         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
29807
29808 2008-09-21  Bruno Haible  <bruno@clisp.org>
29809
29810         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
29811         section.
29812         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
29813         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
29814         the new section.
29815         (Support for obsolete systems lacking POSIX:2001): New section.
29816         (String handling <string.h>): Move strdup to the new section.
29817         Suggested by Simon Josefsson and Paolo Bonzini.
29818
29819 2008-09-21  Bruno Haible  <bruno@clisp.org>
29820
29821         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
29822         exponents in %e and %g results on 'long double'. Needed for mingw's
29823         improved *printf functions.
29824         * tests/test-vasprintf-posix.c (test_function): Likewise.
29825         * tests/test-snprintf-posix.h (test_function): Likewise.
29826         * tests/test-sprintf-posix.h (test_function): Likewise.
29827         Reported by Eric Blake.
29828
29829 2008-09-21  Bruno Haible  <bruno@clisp.org>
29830
29831         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
29832         * tests/test-sprintf-posix.h (test_function): Likewise.
29833
29834 2008-09-21  Bruno Haible  <bruno@clisp.org>
29835
29836         * modules/getpass (Depends-on): Add strdup-posix.
29837
29838         New module 'strdup-posix'.
29839         * modules/strdup-posix: New file.
29840         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
29841         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
29842         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29843         REPLACE_STRDUP.
29844         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
29845         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
29846         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29847         strdup-posix.
29848
29849         * modules/strdup (Depends-on): Remove malloc-posix.
29850
29851 2008-09-20  Bruno Haible  <bruno@clisp.org>
29852
29853         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
29854         Wildenhues.
29855
29856 2008-09-20  Bruno Haible  <bruno@clisp.org>
29857
29858         Ensure that wint_t gets defined on IRIX 5.3.
29859         * lib/wchar.in.h (wint_t): Define if not defined by the system.
29860         * lib/wctype.in.h (wint_t): Likewise.
29861         (__wctype_wint_t): Remove type.
29862         (isw*): Use wint_t instead of __wctype_wint_t.
29863         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
29864         * modules/wchar (Files): Add m4/wint_t.m4.
29865         (Makefile.am): Substitute HAVE_WINT_T.
29866         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
29867         * tests/test-wctype.c: Check that wint_t is defined.
29868         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
29869         * doc/posix-headers/wctype.texi: Likewise.
29870         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29871
29872 2008-09-18  Bruno Haible  <bruno@clisp.org>
29873
29874         * gnulib-tool (func_exit): Update comment.
29875
29876 2008-09-18  Simon Josefsson  <simon@josefsson.org>
29877
29878         * modules/getaddrinfo (Depends-on): Remove strdup, this module
29879         assumes strdup exists and does not depend on strdup to return
29880         ENOMEM on out of memory conditions.
29881
29882 2008-09-18  Bruno Haible  <bruno@clisp.org>
29883
29884         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
29885         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
29886         digits for the exponent.
29887
29888 2008-09-18  Jim Meyering  <meyering@redhat.com>
29889             Bruno Haible  <bruno@clisp.org>
29890
29891         * lib/vasnprintf.c (decimal_point_char): Define also if
29892         NEED_PRINTF_INFINITE_LONG_DOUBLE.
29893
29894 2008-09-16  Bruno Haible  <bruno@clisp.org>
29895         and Eric Blake  <ebb9@byu.net>
29896
29897         vasnprintf: support Irix 5.3
29898         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
29899         that mishandle long double infinity.
29900         Reported by Tom G. Christensen.
29901
29902 2008-09-16  Bruno Haible  <bruno@clisp.org>
29903
29904         * doc/glibc-functions/scandir.texi: Mention the function is missing on
29905         Solaris 9.
29906         * doc/glibc-functions/alphasort.texi: Likewise.
29907         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
29908
29909 2008-09-16  Jim Meyering  <meyering@redhat.com>
29910
29911         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
29912         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
29913         a umask modification leak out of a subshell.  Otherwise, the
29914         opensolaris /bin/sh would be accepted and thus cause unwarranted
29915         failures in the coreutils test suite.
29916
29917 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
29918
29919         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
29920         to succeed.
29921
29922 2008-09-16  Jim Meyering  <meyering@redhat.com>
29923
29924         avoid spurious test failure when library is built without ACL support
29925         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
29926         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
29927         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
29928         * tests/test-copy-acl.sh: Likewise.
29929
29930 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29931
29932         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
29933         based on character occurrence counts.
29934
29935 2008-09-15  Eric Blake  <ebb9@byu.net>
29936
29937         tests: avoid some compiler warnings
29938         * tests/test-memchr.c (main): Pass NULL indirectly.
29939         * tests/test-closein.c (main): Avoid unused variable.
29940
29941 2008-09-15  Bruno Haible  <bruno@clisp.org>
29942
29943         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
29944         are missing on OpenBSD 4.0 individually.
29945         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
29946
29947 2008-09-15  Bruno Haible  <bruno@clisp.org>
29948
29949         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
29950         * doc/posix-functions/strerror.texi: Mention also Cygwin.
29951         * doc/posix-functions/perror.texi: Likewise.
29952         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
29953         is missing.
29954         Reported by Eric Blake.
29955
29956         * lib/errno.in.h: Use replacement values >= 2000.
29957         Reported by Eric Blake.
29958
29959 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29960
29961         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
29962         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
29963         limit.
29964         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
29965         compareseq was aborted.
29966
29967 2008-09-14  Bruno Haible  <bruno@clisp.org>
29968
29969         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
29970         yvec_edit_count.
29971         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
29972         (fstrcmp_bounded): Simplify result computation accordingly.
29973
29974 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29975
29976         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
29977         (fstrcmp): Define in terms of fstrcmp_bounded.
29978         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
29979         lower_bound argument.
29980         Return quickly if the result is certainly < lower_bound.
29981         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
29982
29983 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29984
29985         * lib/diffseq.h (EARLY_ABORT): New macro.
29986         (compareseq): Change return type to bool. Return true when EARLY_ABORT
29987         evaluates to true.
29988
29989 2008-09-14  Bruno Haible  <bruno@clisp.org>
29990
29991         * modules/perror-tests: New file.
29992         * tests/test-perror.sh: New file.
29993         * tests/test-perror.c: New file.
29994
29995         New module 'perror'.
29996         * lib/stdio.in.h (perror): New declaration.
29997         * lib/perror.c: New file.
29998         * m4/perror.m4: New file.
29999         * modules/perror: New file.
30000         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
30001         * doc/posix-functions/perror.texi: Mention the perror module.
30002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
30003         REPLACE_PERROR.
30004         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
30005         REPLACE_PERROR.
30006
30007 2008-09-14  Bruno Haible  <bruno@clisp.org>
30008
30009         * modules/stdio (Makefile.am): Reorder to match the order in
30010         lib/stdio.in.h.
30011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
30012
30013 2008-09-13  Bruno Haible  <bruno@clisp.org>
30014
30015         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
30016
30017 2008-09-13  Bruno Haible  <bruno@clisp.org>
30018
30019         Extend strerror to cover the added errno values.
30020         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
30021         (rpl_strerror): Provide error messages for the added errno values and
30022         for the WSA* values.
30023         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
30024         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
30025         strerror.
30026         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
30027         * modules/strerror (Depends-on): Add errno.
30028         * doc/posix-functions/strerror.texi: Document the change.
30029         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
30030         and EOVERFLOW.
30031
30032 2008-09-13  Bruno Haible  <bruno@clisp.org>
30033
30034         * modules/EOVERFLOW: Remove file.
30035         * m4/eoverflow.m4: Remove file.
30036         * modules/EOVERFLOW-tests: Remove file.
30037         * tests/test-EOVERFLOW.c: Remove file.
30038         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
30039         * modules/ftell (Depends-on): Likewise.
30040         * modules/getdelim (Depends-on): Likewise.
30041         * modules/getugroups (Depends-on): Likewise.
30042         * modules/poll (Depends-on): Likewise.
30043         * modules/snprintf (Depends-on): Likewise.
30044         * modules/sprintf-posix (Depends-on): Likewise.
30045         * modules/vasnprintf (Depends-on): Likewise.
30046         * modules/vasprintf (Depends-on): Likewise.
30047         * modules/vfprintf-posix (Depends-on): Likewise.
30048         * modules/vsnprintf (Depends-on): Likewise.
30049         * modules/vsprintf-posix (Depends-on): Likewise.
30050         * modules/xvasprintf (Depends-on): Likewise.
30051         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
30052         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
30053         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
30054         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
30055         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
30056         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
30057         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
30058         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
30059         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
30060         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
30061         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
30062         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
30063         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
30064         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
30065         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
30066         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
30067         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
30068         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
30069         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
30070         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
30071         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
30072         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
30073         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
30074         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
30075         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
30076         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
30077         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
30078         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
30079         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
30080         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
30081         * MODULES.html.sh: Remove EOVERFLOW.
30082         * NEWS: Mention the change.
30083
30084 2008-09-13  Bruno Haible  <bruno@clisp.org>
30085
30086         * modules/errno-tests: New file.
30087         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
30088
30089         * lib/errno.in.h: New file.
30090         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
30091         * modules/errno: New file.
30092         * doc/posix-headers/errno.texi: Update documentation.
30093         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
30094
30095 2008-09-13  Bruno Haible  <bruno@clisp.org>
30096
30097         * tests/test-poll.c: Use #if for native Windows, rather than testing
30098         __MSVCRT__.
30099
30100 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30101             Bruno Haible  <bruno@clisp.org>
30102
30103         * lib/glob.c: Don't include <pwd.h> on native Windows.
30104         (WINDOWS32): New macro.
30105         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
30106
30107 2008-09-13  Bruno Haible  <bruno@clisp.org>
30108
30109         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
30110         (ETIMEDOUT): Remove macro.
30111         (glthread_cond_timedwait_multithreaded): New declaration.
30112         (glthread_cond_timedwait): Use it.
30113         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
30114         (glthread_cond_timedwait_multithreaded): New function.
30115
30116 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30117
30118         * modules/poll-tests: Do not check for io.h.
30119         * tests/test-poll.c: Check for __MSVCRT__ instead.
30120
30121 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30122
30123         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
30124         * modules/poll-tests: Add inet_pton, stdbool, sockets.
30125         * tests/test-poll.c: Use them.  Use _pipe on Windows.
30126
30127 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
30128
30129         * modules/poll-tests: New.
30130         * tests/test-poll.c: New.
30131
30132 2008-09-12  Eric Blake  <ebb9@byu.net>
30133
30134         frexp: test for NetBSD failure on -0.0
30135         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
30136         not all, bugs from NetBSD 3.0 have been fixed.
30137         * doc/posix-functions/frexp.texi (frexp): Document bug.
30138         Reported by Thomas Klausner.
30139
30140         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
30141         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
30142         literal -0.0.
30143         Reported by Jonathan C. Patschke <jp@centtech.com>.
30144
30145 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30146
30147         * lib/glthread/cond.h: Use dummy implementation also if
30148         USE_WIN32_THREADS.
30149
30150 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30151
30152         * modules/fnmatch-posix (License): Change to LGPLv2+.
30153         * modules/fnmatch-gnu (License): Likewise.
30154
30155 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30156
30157         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
30158
30159 2008-09-11  Jim Meyering  <meyering@redhat.com>
30160
30161         * users.txt: Add gtk-vnc.
30162
30163 2008-09-08  Simon Josefsson  <simon@josefsson.org>
30164
30165         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
30166         rotate amounts.
30167
30168         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
30169         required for 16-bit and 8-bit rotates.
30170         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
30171         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
30172         UINT8_MAX instead of hard-coded constants.
30173         Suggested by Paul Eggert.
30174
30175 2008-09-07  Bruno Haible  <bruno@clisp.org>
30176
30177         * tests/test-striconveh.c (main): Check behaviour when converting from
30178         UTF-7.
30179
30180         Make striconveh work better with stateful encodings.
30181         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
30182         that iconv does not increment the inptr when returning -1/EINVAL.
30183
30184 2008-09-07  Bruno Haible  <bruno@clisp.org>
30185
30186         * build-aux/config.rpath: Update according to libtool-2.2.6.
30187         * build-aux/config.libpath: Likewise.
30188
30189 2008-09-06  Bruno Haible  <bruno@clisp.org>
30190
30191         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
30192         * lib/freadptr.c (freadptr): Likewise.
30193         * lib/freadseek.c (freadptrinc): Likewise.
30194         Reported by Simon Josefsson.
30195
30196 2008-09-06  Bruno Haible  <bruno@clisp.org>
30197
30198         * modules/freadptr (License): Change to LGPLv2+.
30199         * modules/freadseek (License): Likewise.
30200         Suggested by Eric Blake.
30201
30202         * modules/memchr2 (License): Change to LGPLv2+.
30203         Approved by Eric Blake.
30204
30205 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30206             Bruno Haible  <bruno@clisp.org>
30207
30208         Make gnulib-tool work with native 'sed' on AIX.
30209         * gnulib-tool (sed_noop): New variable.
30210         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
30211         func_add_or_update, func_create_testdir): Use it to initialize sed
30212         script variables.
30213         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
30214
30215 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
30216             Bruno Haible  <bruno@clisp.org>
30217
30218         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
30219         also works after #include directives.
30220
30221 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
30222
30223         getdate.y: reject an out-of-range timezone value
30224         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
30225         the range [-24...+24].  When specified with only one or two digits,
30226         * tests/test-getdate.c: Tests for the fix.
30227         * doc/getdate.texi: Document this change.
30228
30229 2008-09-03  Bruno Haible  <bruno@clisp.org>
30230
30231         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
30232
30233 2008-09-02  Simon Josefsson  <simon@josefsson.org>
30234
30235         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
30236         <bruce.korb@gmail.com> with ideas from Ben Pfaff
30237         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
30238         Blake <ebb9@byu.net>.
30239
30240         * tests/test-bitrotate.c: Add more test vectors.
30241
30242 2008-09-02  Eric Blake  <ebb9@byu.net>
30243
30244         vasnprintf-posix: handle large precision via %.*d
30245         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
30246         when handling it ourselves.
30247         * tests/test-vasnprintf-posix.c (test_function): Add test.
30248         * tests/test-snprintf-posix.h (test_function): Likewise.
30249         * tests/test-sprintf-posix.h (test_function): Likewise.
30250         * tests/test-vasprintf-posix.c (test_function): Likewise.
30251         Reported by Alain Guibert.
30252
30253 2008-09-01  Eric Blake  <ebb9@byu.net>
30254
30255         c-stack: make configure-time check more robust
30256         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
30257         successful sigaction call.
30258         Reported by Tom G. Christensen.
30259
30260 2008-09-01  Bruno Haible  <bruno@clisp.org>
30261
30262         New module 'findprog-lgpl'.
30263         * modules/findprog-lgpl: New file.
30264         * lib/findprog-lgpl.c: New file.
30265         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
30266         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
30267         to decide whether to use strdup or xstrdup, concatenated_filename or
30268         xconcatenated_filename.
30269
30270 2008-09-01  Bruno Haible  <bruno@clisp.org>
30271
30272         Split module 'concat-filename' into 'concat-filename' (LGPL) and
30273         'xconcat-filename' (GPL).
30274         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
30275         (License): Change to LGPLv2+.
30276         * modules/xconcat-filename: New file.
30277         * lib/concat-filename.h (concatenated_filename): Change specification.
30278         (xconcatenated_filename): New declaration.
30279         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
30280         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
30281         memory situations.
30282         * lib/xconcat-filename.c: New file.
30283         * NEWS: Mention the change.
30284         * lib/findprog.c: Include concat-filename.h, not filename.h.
30285         (find_in_path): Use xconcatenated_filename instead of
30286         concatenated_filename.
30287         * lib/javacomp.c: Include concat-filename.h, not filename.h.
30288         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
30289         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
30290         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
30291         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
30292         instead of concatenated_filename.
30293         * lib/javaexec.c: Include concat-filename.h, not filename.h.
30294         (execute_java_class): Use xconcatenated_filename instead of
30295         concatenated_filename.
30296         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
30297         * modules/javacomp (Depends-on): Likewise.
30298         * modules/javaexec (Depends-on): Likewise.
30299
30300 2008-09-01  Bruno Haible  <bruno@clisp.org>
30301
30302         Split module 'filename' into 'filename' and 'concat-filename'.
30303         * modules/filename: Keep only lib/filename.h.
30304         (License): Change to LGPLv2+.
30305         * modules/concat-filename: New file, extracted from modules/filename.
30306         * lib/filename.h (concatenated_filename): Remove declaration.
30307         * lib/concat-filename.h: New file, extracted from lib/filename.h.
30308         * lib/concat-filename.c: Include concat-filename.h.
30309         * NEWS: Mention the change.
30310
30311 2008-09-01  Simon Josefsson  <simon@josefsson.org>
30312
30313         * lib/bitrotate.h (rotl8, rotr8): Add.
30314
30315         * modules/bitrotate (configure.ac): Need
30316         AC_REQUIRE([AC_C_INLINE]).
30317         (Description): Mention stdint.h.  Reported by Bruno Haible
30318         <bruno@clisp.org>.
30319
30320         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
30321         Paolo Bonzini <bonzini@gnu.org>.
30322
30323 2008-08-31  Bruno Haible  <bruno@clisp.org>
30324
30325         Assume Solaris specific bi-arch conventions on Solaris systems.
30326         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
30327         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
30328         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
30329         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
30330         like acl_libdirstem.
30331         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
30332         acl_libdirstem.
30333         * NEWS: Mention the change.
30334         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
30335
30336 2008-08-31  Jim Meyering  <meyering@redhat.com>
30337
30338         * lib/strftime.h: Add comments describing the two added arguments.
30339
30340         remove duplicate #include directives
30341         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
30342         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
30343
30344 2008-08-31  Bruno Haible  <bruno@clisp.org>
30345
30346         New module 'sigpipe-die'.
30347         * modules/sigpipe-die: New file.
30348         * lib/sigpipe-die.h: New file.
30349         * lib/sigpipe-die.c: New file.
30350         * MODULES.html.sh (Signal handling): Add sigpipe-die.
30351
30352 2008-08-31  Bruno Haible  <bruno@clisp.org>
30353
30354         Don't override previously installed signal handlers.
30355         * lib/fatal-signal.c (saved_sigactions): New variable.
30356         (uninstall_handlers): Reset the signal to the saved handler, not
30357         to SIG_DFL (except when ignored).
30358         (install_handlers): Save the previous handlers.
30359
30360 2008-08-30  Bruno Haible  <bruno@clisp.org>
30361
30362         * gnulib-tool (func_reset_sigpipe): New function.
30363         (func_get_automake_snippet, func_modules_transitive_closure,
30364         func_import): Invoke it before a join command that reads from stdin,
30365         to avoid "echo: write error: Broken pipe" error messages on stderr.
30366         Reported by Sam Steingold <sds@gnu.org>.
30367
30368 2008-08-30  Bruno Haible  <bruno@clisp.org>
30369
30370         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
30371         Code copied from m4/open.m4.
30372         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
30373         access and the filename ends in a slash. Code copied from lib/open.c.
30374         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
30375         * tests/test-fopen.c (main): Check against bug with trailing slash.
30376
30377 2008-08-29  Bruno Haible  <bruno@clisp.org>
30378
30379         Avoid some "gcc -pedantic" warnings.
30380         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
30381         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
30382         * lib/dirent.in.h: Likewise.
30383         * lib/fcntl.in.h: Likewise.
30384         * lib/float.in.h: Likewise.
30385         * lib/iconv.in.h: Likewise.
30386         * lib/inttypes.in.h: Likewise.
30387         * lib/locale.in.h: Likewise.
30388         * lib/math.in.h: Likewise.
30389         * lib/netinet_in.in.h: Likewise.
30390         * lib/search.in.h: Likewise.
30391         * lib/signal.in.h: Likewise.
30392         * lib/stdarg.in.h: Likewise.
30393         * lib/stdint.in.h: Likewise.
30394         * lib/stdio.in.h: Likewise.
30395         * lib/stdlib.in.h: Likewise.
30396         * lib/string.in.h: Likewise.
30397         * lib/strings.in.h: Likewise.
30398         * lib/sys_select.in.h: Likewise.
30399         * lib/sys_socket.in.h: Likewise.
30400         * lib/sys_stat.in.h: Likewise.
30401         * lib/sys_time.in.h: Likewise.
30402         * lib/sysexits.in.h: Likewise.
30403         * lib/time.in.h: Likewise.
30404         * lib/unistd.in.h: Likewise.
30405         * lib/wchar.in.h: Likewise.
30406         * lib/wctype.in.h: Likewise.
30407         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
30408         * modules/fchdir (Makefile.am): Likewise.
30409         * modules/fcntl (Makefile.am): Likewise.
30410         * modules/float (Makefile.am): Likewise.
30411         * modules/iconv_open (Makefile.am): Likewise.
30412         * modules/inttypes (Makefile.am): Likewise.
30413         * modules/locale (Makefile.am): Likewise.
30414         * modules/math (Makefile.am): Likewise.
30415         * modules/netinet_in (Makefile.am): Likewise.
30416         * modules/search (Makefile.am): Likewise.
30417         * modules/signal (Makefile.am): Likewise.
30418         * modules/stdarg (Makefile.am): Likewise.
30419         * modules/stdint (Makefile.am): Likewise.
30420         * modules/stdio (Makefile.am): Likewise.
30421         * modules/stdlib (Makefile.am): Likewise.
30422         * modules/string (Makefile.am): Likewise.
30423         * modules/strings (Makefile.am): Likewise.
30424         * modules/sys_select (Makefile.am): Likewise.
30425         * modules/sys_socket (Makefile.am): Likewise.
30426         * modules/sys_stat (Makefile.am): Likewise.
30427         * modules/sys_time (Makefile.am): Likewise.
30428         * modules/sysexits (Makefile.am): Likewise.
30429         * modules/time (Makefile.am): Likewise.
30430         * modules/unistd (Makefile.am): Likewise.
30431         * modules/wchar (Makefile.am): Likewise.
30432         * modules/wctype (Makefile.am): Likewise.
30433         Reported by Reuben Thomas <rrt@sc3d.org>.
30434
30435 2008-08-29  Bruno Haible  <bruno@clisp.org>
30436
30437         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
30438         any more.
30439
30440 2008-08-29  Simon Josefsson  <simon@josefsson.org>
30441
30442         * MODULES.html.sh (Misc): Add bitrotate.
30443
30444         * modules/bitrotate: New file.
30445
30446         * lib/bitrotate.h: New file.
30447
30448         * modules/bitrotate-tests: New file.
30449
30450         * tests/test-bitrotate.c: New file.
30451
30452         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
30453         on the bitrotate module.
30454
30455         * lib/arctwo.c: Use new bitrotate module.
30456
30457 2008-08-29  Jim Meyering  <meyering@redhat.com>
30458
30459         bootstrap: merge changes from coreutils
30460         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
30461         of copied files.  Remove a kludge, now that this is fixed.
30462         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
30463         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
30464         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
30465
30466 2008-08-29  Bruno Haible  <bruno@clisp.org>
30467
30468         * MODULES.html.sh: Remove --cvs-urls option.
30469
30470 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
30471
30472         maint.mk: adjust to file name change
30473         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
30474
30475 2008-08-28  Jim Meyering  <meyering@redhat.com>
30476
30477         * modules/getndelim2 (License): Relicense to LGPLv2+.
30478         Approved by Richard Stallman for the version of 1995, and by
30479         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
30480
30481 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
30482
30483         * lib/getdelim.c (flockfile, funlockfile): Make all of them
30484         dummy if one is not available.  Do not touch them if
30485         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
30486         (getc_maybe_unlocked): New.
30487         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
30488
30489 2008-08-26  Eric Blake  <ebb9@byu.net>
30490
30491         doc/INSTALL: resync from autoconf
30492         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
30493         (INSTALL_PRELUDE): Delete; this is done more efficiently by
30494         moving...
30495         * install.texi [!autoconf]: ...here.  Resync from autoconf.
30496         * INSTALL: Regenerate.
30497         * INSTALL.ISO: New file.
30498         * INSTALL.UTF-8: Likewise.
30499
30500 2008-08-26  Jim Meyering  <meyering@redhat.com>
30501
30502         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
30503         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
30504         these definitions conditional, so that they may be overridden, too.
30505
30506 2008-08-26  Bruno Haible  <bruno@clisp.org>
30507
30508         Generate INSTALL file variants with prettier quotes.
30509         * doc/Makefile (INSTALL_PRELUDE): New macro.
30510         (INSTALL): Use it.
30511         (INSTALL.ISO, INSTALL.UTF-8): New rules.
30512
30513 2008-08-26  Bruno Haible  <bruno@clisp.org>
30514
30515         Run makeinfo in an English locale.
30516         * doc/Makefile (MAKEINFO): New variable.
30517
30518 2008-08-26  Bruno Haible  <bruno@clisp.org>
30519
30520         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
30521         Suggested by Eric Blake.
30522
30523 2008-08-25  Bruno Haible  <bruno@clisp.org>
30524
30525         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
30526
30527 2008-08-25  Eric Blake  <ebb9@byu.net>
30528
30529         c-stack: test that stack overflow can be caught
30530         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
30531         that platform allows handling stack overflow; at least OS/2 EMX
30532         has sigaltstack, but crashes before transferring control to
30533         handler on stack overflow.
30534         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
30535         check for HAVE_STACK_OVERFLOW_HANDLING.
30536         Reported by Elbert Pol.
30537
30538 2008-08-25  Bruno Haible  <bruno@clisp.org>
30539
30540         * doc/posix-functions/strftime.texi: Fix description of strftime
30541         module.
30542
30543 2008-08-24  Bruno Haible  <bruno@clisp.org>
30544
30545         * tests/uniwidth/test-uc_width2.c: New file.
30546         * tests/uniwidth/test-uc_width2.sh: New file.
30547         * modules/uniwidth/width-tests (Files): Add the new files.
30548         (TESTS): Add uniwidth/test-uc_width2.sh.
30549         (TESTS_ENVIRONMENT): New variable.
30550         (check_PROGRAMS): Add test-uc_width2.
30551         (test_uc_width2_SOURCES): New variable.
30552
30553         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
30554         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
30555         not 0x00AB.
30556         Reported by Alexander V. Lukyanov <lav@netis.ru>.
30557
30558 2008-08-22  Eric Blake  <ebb9@byu.net>
30559
30560         test-lock, test-tls: mention why a test is skipped
30561         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
30562         skipped.
30563         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
30564
30565         count-one-bits: relax license
30566         * modules/count-one-bits (License): Relicense to LGPLv2+.
30567         Suggested by Ludovic Courtès, approved by Ben Pfaff.
30568
30569 2008-08-22  Andreas Schwab  <schwab@suse.de>
30570
30571         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
30572         Remove spurious space in assignment.
30573
30574 2008-08-21  Simon Josefsson  <simon@josefsson.org>
30575
30576         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
30577         Paul Eggert <eggert@CS.UCLA.EDU>.
30578
30579 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
30580
30581         * modules/gettext: Add m4/threadlib.m4.
30582
30583 2008-08-19  Eric Blake  <ebb9@byu.net>
30584
30585         test-c-stack: fix compilation failure on FreeBSD 5.0
30586         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
30587         headers before <sys/resource.h>.
30588         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
30589         the bug.
30590         Reported by Nelson H. F. Beebe.
30591
30592         strverscmp: migrate from "strverscmp.h" to <string.h>
30593         * modules/string (Makefile.am): Add new hooks.
30594         * modules/strverscmp (Files): Remove strverscmp.h.
30595         (Depends-on): Add string.
30596         (configure.ac): Add indicator.
30597         (Include): Mention new header.
30598         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
30599         defaults.
30600         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
30601         results.
30602         * lib/strverscmp.h: Delete.
30603         * lib/string.in.h (strverscmp): Provide declaration, when needed.
30604         * tests/test-strverscmp.c (includes): Adjust client.
30605         * lib/check-version.c (includes): Likewise.
30606         * NEWS: Document the change.
30607
30608         strverscmp: add unit test
30609         * modules/strverscmp-tests: New file.
30610         * tests/test-strverscmp.c: Likewise.
30611
30612 2008-08-19  Simon Josefsson  <simon@josefsson.org>
30613
30614         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
30615         regarding Windows crypto stuff, from Mono.
30616
30617 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
30618
30619         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
30620         if present, for intel RND.  Return error on failures.
30621
30622 2008-08-18  Ben Pfaff  <blp@gnu.org>
30623
30624         gitlog-to-changelog: give better diagnostic for failed pipe-open
30625         * build-aux/gitlog-to-changelog: Improve error message: suggest
30626         that the version of Git may be too old.
30627
30628 2008-08-18  Simon Josefsson  <simon@josefsson.org>
30629
30630         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
30631         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
30632
30633 2008-08-18  Bruno Haible  <bruno@clisp.org>
30634
30635         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
30636         pthread_in_use().
30637
30638 2008-08-18  Bruno Haible  <bruno@clisp.org>
30639
30640         * lib/glthread/threadlib.c: Include <pthread.h>.
30641
30642 2008-08-18  Bruno Haible  <bruno@clisp.org>
30643
30644         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
30645         glthread_recursive_lock_* macros.
30646         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
30647         Fix syntax error.
30648
30649 2008-08-18  Bruno Haible  <bruno@clisp.org>
30650
30651         * lib/glthread/thread.c: Avoid forcing a context switch right after
30652         thread creation.
30653
30654 2008-08-17  Bruno Haible  <bruno@clisp.org>
30655
30656         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
30657         * lib/glthread/thread.h: Provide Win32 specific implementation.
30658         * modules/thread (Files): Add lib/glthread/thread.c.
30659         (Depends-on): Add lock.
30660         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
30661
30662 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30663
30664         New module 'yield'.
30665         * modules/yield: New file.
30666         * lib/glthread/yield.h: New file.
30667         * m4/yield.m4: New file.
30668         * MODULES.html.sh (Multithreading): Add yield.
30669
30670 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30671
30672         New module 'thread'.
30673         * modules/thread: New file.
30674         * lib/glthread/thread.h: New file.
30675         * m4/thread.m4: New file.
30676         * MODULES.html.sh (Multithreading): Add thread.
30677
30678 2008-08-17  Bruno Haible  <bruno@clisp.org>
30679
30680         * lib/glthread/lock.h: Include <stdlib.h> always.
30681         * lib/glthread/tls.h: Likewise.
30682         * lib/glthread/cond.h: Likewise.
30683
30684 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30685
30686         New module 'cond'.
30687         * modules/cond: New file.
30688         * lib/glthread/cond.h: New file.
30689         * lib/glthread/cond.c: New file.
30690         * m4/cond.m4: New file.
30691         * MODULES.html.sh (Multithreading): Add cond.
30692
30693 2008-08-16  Eric Blake  <ebb9@byu.net>
30694
30695         c-stack: fix regression on Irix 5.3 from 2008-06-21
30696         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
30697         sa_sigaction...
30698         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
30699         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
30700         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
30701         * modules/signal (Makefile.am): Use the value.
30702         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
30703         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
30704         * doc/posix-headers/signal.texi (signal.h): Document this
30705         portability issue.
30706         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
30707         Reported by Tom G. Christensen.
30708
30709 2008-08-17  Bruno Haible  <bruno@clisp.org>
30710
30711         New module 'threadlib'.
30712         * modules/threadlib: New file.
30713         * lib/glthread/threadlib.c: New file, extracted from
30714         lib/glthread/lock.c.
30715         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
30716         functions.
30717         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
30718         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
30719         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
30720         macros.
30721         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
30722         (gl_DISABLE_THREADS): Remove macro.
30723         * modules/lock (Files): Remove build-aux/config.rpath.
30724         (Depends-on): Remove havelib. Add threadlib.
30725         (configure.ac-early): Remove section.
30726         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
30727         * modules/tls (Depends-on): Remove lock. Add threadlib.
30728         (Link): New section, copied from threadlib.
30729         * MODULES.html.sh (Multithreading): Add threadlib.
30730
30731 2008-08-14  Bruno Haible  <bruno@clisp.org>
30732
30733         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
30734         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
30735         glthread_rwlock_unlock, glthread_rwlock_destroy,
30736         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
30737         glthread_recursive_lock_destroy): Define as macros always.
30738         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
30739         glthread_lock_lock.
30740         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
30741         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
30742         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
30743         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
30744         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
30745         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
30746         (glthread_recursive_lock_lock_func): Renamed from
30747         glthread_recursive_lock_lock.
30748         (glthread_recursive_lock_unlock_func): Renamed from
30749         glthread_recursive_lock_unlock.
30750         (glthread_recursive_lock_destroy_func): Renamed from
30751         glthread_recursive_lock_destroy.
30752
30753 2008-08-14  Bruno Haible  <bruno@clisp.org>
30754
30755         * lib/glthread/lock.h: Renamed from lib/lock.h.
30756         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
30757         * lib/glthread/tls.h: Renamed from lib/tls.h.
30758         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
30759         * lib/fstrcmp.c: Update includes.
30760         * lib/strsignal.c: Update includes.
30761         * modules/lock (Files, Makefile.am): Update.
30762         (Include): Change to "glthread/lock.h".
30763         * modules/tls (Files, Makefile.am): Update.
30764         (Include): Change to "glthread/tls.h".
30765         * tests/test-lock.c: Update includes.
30766         * tests/test-tls.c: Update includes.
30767         * NEWS: Mention the renamed header files.
30768
30769 2008-08-11  Jim Meyering  <meyering@redhat.com>
30770
30771         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
30772
30773 2008-08-11  Eric Blake  <ebb9@byu.net>
30774
30775         test-c-stack: avoid C99-ism
30776         * tests/test-c-stack.c (main): Fix whitespace, move declaration
30777         before statement.
30778         Reported by Alain Guibert.
30779
30780 2008-08-10  Jim Meyering  <meyering@redhat.com>
30781
30782         ensure that return value of uinttostr et al are not ignored
30783         * lib/inttostr.h (__GNUC_PREREQ): Define.
30784         (__attribute_warn_unused_result__): Define.
30785         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
30786
30787 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
30788
30789         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
30790         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
30791
30792 2008-08-07  Jim Meyering  <meyering@redhat.com>
30793
30794         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
30795
30796         * modules/mkstemp (License): Relicense under LGPLv2+.
30797         * modules/tempname (License): Likewise.
30798
30799 2008-08-06  Bruno Haible  <bruno@clisp.org>
30800
30801         * lib/poll.c (poll): Further micro-optimization.
30802
30803 2008-08-06  Jim Meyering  <meyering@redhat.com>
30804
30805         inet_pton.c: use locale-independent tolower
30806         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
30807         (inet_pton6): Use c_tolower rather than tolower.
30808         * modules/inet_pton (Depends-on): Add c-ctype.
30809
30810 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
30811
30812         * lib/poll.c (poll): Avoid division when timeout is 0, cache
30813         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
30814
30815 2008-08-06  Jim Meyering  <meyering@redhat.com>
30816
30817         * modules/inet_pton (License): Relicense under LGPLv2+.
30818
30819 2008-08-03  Bruno Haible  <bruno@clisp.org>
30820
30821         Additional non-aborting API for lock and tls.
30822         * lib/lock.h: Include <errno.h>.
30823         (glthread_lock_init): New macro/function.
30824         (gl_lock_init): Define as wrapper around glthread_lock_init.
30825         (glthread_lock_lock): New macro/function.
30826         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
30827         (glthread_lock_unlock): New macro/function.
30828         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
30829         (glthread_lock_destroy): New macro/function.
30830         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
30831         (glthread_rwlock_init): New macro/function.
30832         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
30833         (glthread_rwlock_rdlock): New macro/function.
30834         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
30835         (glthread_rwlock_wrlock): New macro/function.
30836         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
30837         (glthread_rwlock_unlock): New macro/function.
30838         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
30839         (glthread_rwlock_destroy): New macro/function.
30840         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
30841         (glthread_recursive_lock_init): New macro/function.
30842         (gl_recursive_lock_init): Define as wrapper around
30843         glthread_recursive_lock_init.
30844         (glthread_recursive_lock_lock): New macro/function.
30845         (gl_recursive_lock_lock): Define as wrapper around
30846         glthread_recursive_lock_lock.
30847         (glthread_recursive_lock_unlock): New macro/function.
30848         (gl_recursive_lock_unlock): Define as wrapper around
30849         glthread_recursive_lock_unlock.
30850         (glthread_recursive_lock_destroy): New macro/function.
30851         (gl_recursive_lock_destroy): Define as wrapper around
30852         glthread_recursive_lock_destroy.
30853         (glthread_once): New macro/function.
30854         (gl_once): Define as wrapper around glthread_once.
30855         Update function declarations.
30856         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
30857         glthread_rwlock_init. Return error code.
30858         (glthread_rwlock_rdlock_multithreaded): Renamed from
30859         glthread_rwlock_rdlock. Return error code.
30860         (glthread_rwlock_wrlock_multithreaded): Renamed from
30861         glthread_rwlock_wrlock. Return error code.
30862         (glthread_rwlock_unlock_multithreaded): Renamed from
30863         glthread_rwlock_unlock. Return error code.
30864         (glthread_rwlock_destroy_multithreaded): Renamed from
30865         glthread_rwlock_destroy. Return error code.
30866         (glthread_recursive_lock_init_multithreaded): Renamed from
30867         glthread_recursive_lock_init. Return error code.
30868         (glthread_recursive_lock_lock_multithreaded): Renamed from
30869         glthread_recursive_lock_lock. Return error code.
30870         (glthread_recursive_lock_unlock_multithreaded): Renamed from
30871         glthread_recursive_lock_unlock. Return error code.
30872         (glthread_recursive_lock_destroy_multithreaded): Renamed from
30873         glthread_recursive_lock_destroy. Return error code.
30874         (glthread_once_call): Make static.
30875         (glthread_once_multithreaded): Renamed from glthread_once.
30876         * lib/tls.h: Include <errno.h>.
30877         (glthread_tls_key_init): New macro/function.
30878         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
30879         (glthread_tls_set): New macro/function.
30880         (gl_tls_set): Define as wrapper around glthread_tls_set.
30881         (glthread_tls_key_destroy): New macro/function.
30882         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
30883         Update function declarations.
30884         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
30885         glthread_tls_get.
30886         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
30887
30888 2008-08-04  Eric Blake  <ebb9@byu.net>
30889
30890         gnumakefile: use space, not TAB, outside of targets
30891         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
30892
30893 2008-08-02  Jim Meyering  <meyering@redhat.com>
30894
30895         getdate.y: avoid locale-dependent date parsing failure
30896         In Turkish locales, getdate would fail to recognize keywords
30897         containing a lowercase "i".  The solution is not to rely on
30898         locale-sensitive case-conversion.
30899         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
30900         (lookup_word): Use c_toupper in place of toupper.
30901         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
30902         Reported by Vefa Bicakci <bicave@superonline.com> in
30903         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
30904         * modules/getdate (Depends-on): Add c-ctype.
30905
30906 2008-08-02  Bruno Haible  <bruno@clisp.org>
30907
30908         * gnulib-tool (func_import): When updating or creating a .gitignore
30909         file, prepend each added line with a slash, and ignore leading slashes
30910         from the existing lines.
30911         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
30912
30913 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30914
30915         Portability fix for GNU make 3.79.1.
30916         * top/GNUmakefile: Avoid 'else COND', which older GNU make
30917         versions do not understand.
30918
30919 2008-08-01  Bruno Haible  <bruno@clisp.org>
30920
30921         Work around bug of HP-UX 10.20 cc with -0.0 literal.
30922         * tests/test-isnanf.h (zero): New variable.
30923         (main): Avoid literal -0.0f.
30924         * tests/test-isnand.h (zero): New variable.
30925         (main): Avoid literal -0.0.
30926         * tests/test-isnanl.h (zero): New variable.
30927         (main): Avoid literal -0.0L.
30928         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
30929         (test_float, test_double, test_long_double): Avoid literals -0.0f,
30930         -0.0, -0.0L.
30931         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
30932         (test_signbitd): Avoid literal -0.0.
30933         (test_signbitl): Avoid literal -0.0L.
30934         * tests/test-ceilf1.c (zero): New variable.
30935         (main): Avoid literal -0.0f.
30936         * tests/test-ceill.c (zero): New variable.
30937         (main): Avoid literal -0.0L.
30938         * tests/test-floorf1.c (zero): New variable.
30939         (main): Avoid literal -0.0f.
30940         * tests/test-floorl.c (zero): New variable.
30941         (main): Avoid literal -0.0L.
30942         * tests/test-roundf1.c (zero): New variable.
30943         (main): Avoid literal -0.0f.
30944         * tests/test-round1.c (zero): New variable.
30945         (main): Avoid literal -0.0.
30946         * tests/test-roundl.c (zero): New variable.
30947         (main): Avoid literal -0.0L.
30948         * tests/test-truncf1.c (zero): New variable.
30949         (main): Avoid literal -0.0f.
30950         * tests/test-trunc1.c (zero): New variable.
30951         (main): Avoid literal -0.0.
30952         * tests/test-truncl.c (zero): New variable.
30953         (main): Avoid literal -0.0L.
30954         * tests/test-frexp.c (zero): New variable.
30955         (main): Avoid literal -0.0.
30956         * tests/test-frexpl.c (zero): New variable.
30957         (main): Avoid literal -0.0L.
30958         * tests/test-ldexpl.c (zero): New variable.
30959         (main): Avoid literal -0.0L.
30960         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
30961         (zerod, zerol): New variables.
30962         (test_function): Avoid literals -0.0, -0.0L.
30963         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
30964         (zerod, zerol): New variables.
30965         (test_function): Avoid literals -0.0, -0.0L.
30966         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
30967         (zerod, zerol): New variables.
30968         (test_function): Avoid literals -0.0, -0.0L.
30969         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
30970         (zerod, zerol): New variables.
30971         (test_function): Avoid literals -0.0, -0.0L.
30972         * tests/test-strtod.c (zero): New variable.
30973         (main): Avoid literal -0.0.
30974         Reported by Jonathan C. Patschke <jp@centtech.com>.
30975
30976 2008-07-31  Jim Meyering  <meyering@redhat.com>
30977
30978         sha256.h: correct definition of SHA224_DIGEST_SIZE
30979         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
30980         Reported by Paulie Pena IV <paulie4@gmail.com>.
30981         Define as 224 / 8, rather than as a literal.
30982         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
30983         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
30984         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
30985
30986 2008-07-31  Bruno Haible  <bruno@clisp.org>
30987
30988         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
30989         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
30990         Reported by Jonathan Patschke <jp@centtech.com>.
30991
30992 2008-07-31  Bruno Haible  <bruno@clisp.org>
30993
30994         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
30995         Reported by Paolo Bonzini <bonzini@gnu.org>.
30996
30997 2008-07-30  Eric Blake  <ebb9@byu.net>
30998
30999         test-strtod: allow compilation without -lm
31000         * tests/test-strtod.c (main): Avoid link dependence on fabs.
31001         Reported by Dennis Clarke <blastwave@gmail.com>.
31002
31003 2008-07-28  Jim Meyering  <meyering@redhat.com>
31004
31005         bootstrap: work also when there are no .po files in po/
31006         * build-aux/bootstrap (update_po_files): Complete the change
31007         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
31008
31009 2008-07-27  Jim Meyering  <meyering@redhat.com>
31010
31011         * users.txt: Add zile.
31012
31013 2008-07-26  Ben Pfaff  <blp@gnu.org>
31014
31015         Add missing dependencies on new m4/exponent[fdl].m4 files.
31016         * modules/isnanf-nolibm: Add m4/exponentf.m4.
31017         * modules/isnand-nolibm: Add m4/exponentd.m4.
31018         * modules/isnanl-nolibm: Add m4/exponentl.m4.
31019         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
31020         m4/isnan[fdl].m4, because the macros actually used moved.
31021         Reported by Jim Meyering.
31022
31023 2008-07-14  Ben Pfaff  <blp@gnu.org>
31024
31025         Add isinf module.
31026         * lib/isinf.c: New file.
31027         * lib/math.in.h: Define isinf macro if we have decided to replace
31028         it.
31029         * m4/isinf.m4: New file.
31030         * m4/math_h.m4: Initialize and substitute variables for isinf
31031         module.
31032         * modules/isinf: New file.
31033         * modules/isinf-tests: New file.
31034         * modules/math: Add substitutions for new module.
31035         * tests/test-isinf.c: New file.
31036         * doc/posix-functions/isinf.texi: Mention new module.
31037         * MODULES.html.sh: Mention new module.
31038
31039 2008-07-14  Ben Pfaff  <blp@gnu.org>
31040
31041         Factor out some macros for use by additional modules.
31042         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
31043         exponentf.m4.
31044         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
31045         exponentd.m4.
31046         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
31047         file exponentl.m4.
31048         * m4/exponentf.m4: New file.
31049         * m4/exponentd.m4: New file.
31050         * m4/exponentl.m4: New file.
31051         * modules/isnanf: Use new file m4/exponentf.m4.
31052         * modules/isnand: Use new file m4/exponentd.m4.
31053         * modules/isnanl: Use new file m4/exponentl.m4.
31054
31055 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
31056
31057         mktime.c: normalize tp->tm_isdst value to -1/0/1.
31058         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
31059         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
31060         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
31061
31062         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
31063         readlink on platforms without PATH_MAX.
31064
31065 2008-07-21  Eric Blake  <ebb9@byu.net>
31066
31067         Warn, not fail, on stale version.
31068         * top/GNUmakefile (_curr-ver): Tone down previous patch.
31069
31070         Don't allow installation with stale devel version number.
31071         * top/GNUmakefile (_is-install-target): New macro.
31072         (_curr-ver): Forbid installation with stale version number.
31073
31074 2008-07-20  Bruno Haible  <bruno@clisp.org>
31075
31076         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
31077         TESTS_ENVIRONMENT.
31078         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
31079
31080 2008-07-20  Bruno Haible  <bruno@clisp.org>
31081
31082         * lib/c-stack.h (c_stack_action): Add documentation.
31083         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
31084
31085 2008-07-20  Bruno Haible  <bruno@clisp.org>
31086
31087         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
31088         * modules/readlink (License): Likewise.
31089
31090 2008-07-17  Eric Blake  <ebb9@byu.net>
31091
31092         * modules/c-stack (Link): Fix typo.
31093
31094         Make c-stack use libsigsegv, when available.
31095         * modules/c-stack (Depends-on): Add libsigsegv.
31096         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
31097         needed.
31098         * lib/c-stack.c (SIGSTKSZ): Define fallback.
31099         (segv_handler, overflow_handler, c_stack_action)
31100         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
31101         implementation when libsigsegv is available, but only when using
31102         the library is necessary.
31103         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
31104         comment, explaining why XSI check fails on Linux.
31105         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
31106         * tests/test-c-stack2.sh: Tweak skip message.
31107         * NEWS: Document new link-time requirements.
31108
31109 2008-07-16  Eric Blake  <ebb9@byu.net>
31110
31111         c-stack: Expose false positives when not using libsigsegv.
31112         * modules/c-stack-tests (Files): Expand test.
31113         * tests/test-c-stack.c (main): Add means to conditionally trigger
31114         non-overflow SIGSEGV.
31115         * tests/test-c-stack2.sh: New file.
31116
31117 2008-07-14  Bruno Haible  <bruno@clisp.org>
31118
31119         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
31120         Reported by Eric Blake.
31121
31122 2008-07-14  Sam Steingold  <sds@gnu.org>
31123             Bruno Haible  <bruno@clisp.org>
31124
31125         New module libsigsegv.
31126         * modules/libsigsegv: New file.
31127         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
31128         modifications.
31129         * MODULES.html.sh (Signal handling): New section.
31130
31131 2008-07-14  Bruno Haible  <bruno@clisp.org>
31132
31133         * modules/unictype/ctype-* (Description): Add the word "function".
31134         Improves the resulting doc in MODULES.html.
31135
31136 2008-07-12  Ben Pfaff  <blp@gnu.org>
31137
31138         Add longlong module.
31139         * modules/longlong: New file.
31140
31141 2008-07-12  Bruno Haible  <bruno@clisp.org>
31142
31143         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
31144         to empty.
31145
31146 2008-07-10  Ben Pfaff  <blp@gnu.org>
31147
31148         Add isnan module.
31149         * doc/posix-functions/isnan.texi: Mention new module.
31150         * lib/math.in.h: Define isnan macro if we have decided to replace
31151         it.
31152         * m4/isnan.m4: New file.
31153         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
31154         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
31155         also.
31156         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
31157         redundancy.
31158         * m4/math_h.m4: Initialize and substitute variables for isnan
31159         module.
31160         * modules/isnan: New file.
31161         * modules/isnan-tests: New file.
31162         * modules/math: Add substitutions for new module.
31163         * tests/test-isnan.c: New file.
31164         * MODULES.html.sh: Mention new module.
31165
31166 2008-07-10  Ben Pfaff  <blp@gnu.org>
31167
31168         Add isnanf module.
31169         * lib/isnanf.m4: New file.
31170         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
31171         (gl_HAVE_ISNANF_IN_LIBM): New macro.
31172         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
31173         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
31174         * modules/isnanf: New file.
31175         * modules/isnanf-tests: New file.
31176         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
31177         files.
31178         * tests/test-isnanf-nolibm.c: factored most of its contents into
31179         new file tests/test-isnanf.h.
31180         * tests/test-isnanf.h: New file.
31181         * tests/test-isnanf.c: New file.
31182         * MODULES.html.sh: Mention new module.
31183         * doc/glibc-functions/isnanf.texi: Mention new module.
31184
31185 2008-07-10  Ben Pfaff  <blp@gnu.org>
31186
31187         Add isnand module.
31188         * lib/isnand.h: New file.
31189         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
31190         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
31191         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
31192         functionality also.
31193         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
31194         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
31195         (gl_HAVE_ISNAND_IN_LIBM): New macro.
31196         * modules/isnand: New file.
31197         * modules/isnand-tests: New file.
31198         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
31199         files.
31200         * tests/test-isnand-nolibm.c: factored most of its contents into
31201         new file tests/test-isnand.h.
31202         * tests/test-isnand.h: New file.
31203         * tests/test-isnand.c: New file.
31204         * MODULES.html.sh: Mention new module.
31205
31206 2008-07-10  Ben Pfaff  <blp@gnu.org>
31207
31208         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
31209         * lib/isnand.h: Rename lib/isnand-nolibm.h.
31210         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
31211         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
31212         * modules/isnanf-nolibm: Update references to renamed files.
31213         * modules/isnand-nolibm: Likewise.
31214         * modules/isnanf-nolibm-tests: Likewise.
31215         * modules/isnand-nolibm-tests: Likewise.
31216         * lib/frexp.c: Likewise.
31217         * lib/isfinite.c: Likewise.
31218         * lib/signbitd.c: Likewise.
31219         * lib/signbitf.c: Likewise.
31220         * lib/vasnprintf.c: Likewise.
31221         * tests/test-ceilf1.c: Likewise.
31222         * tests/test-ceilf2.c: Likewise.
31223         * tests/test-floorf1.c: Likewise.
31224         * tests/test-floorf2.c: Likewise.
31225         * tests/test-frexp.c: Likewise.
31226         * tests/test-round1.c: Likewise.
31227         * tests/test-round2.c: Likewise.
31228         * tests/test-roundf1.c: Likewise.
31229         * tests/test-strtod.c: Likewise.
31230         * tests/test-trunc1.c: Likewise.
31231         * tests/test-trunc2.c: Likewise.
31232         * tests/test-truncf1.c: Likewise.
31233         * tests/test-truncf2.c: Likewise.
31234         * NEWS: Mention the renamed header files.
31235
31236 2008-07-11  Jim Meyering  <meyering@redhat.com>
31237
31238         vc-list-files: make the last-resort awk code more portable
31239         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
31240         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
31241         does not support it.
31242
31243 2008-07-10  Eric Blake  <ebb9@byu.net>
31244
31245         Work with tar's bootstrap.
31246         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
31247         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
31248         an m4 comment.
31249
31250 2008-07-09  Jim Meyering  <meyering@redhat.com>
31251
31252         posix-shell.m4: fix typo that made this test malfunction
31253         * m4/posix-shell.m4: Remove capitalization in variable name.
31254
31255 2008-07-08  Bruno Haible  <bruno@clisp.org>
31256
31257         * m4/onceonly.m4: Update comments.
31258         Reported by Ben Pfaff <blp@cs.stanford.edu>.
31259
31260 2008-07-04  Jim Meyering  <meyering@redhat.com>
31261
31262         * users.txt: Add vc-dwim.
31263         (bison, coreutils): Use the gitweb URL.
31264
31265 2008-07-03  Jim Meyering  <meyering@redhat.com>
31266
31267         * users.txt: Add libffcall.  From Sam Steingold.
31268
31269 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
31270
31271         getdate.y: do not ignore TZ with relative day, month or year offset
31272         * lib/getdate.y (get_date): Move the tz-handling block to follow the
31273         relative-date-handling, since otherwise, the latter would clobber the
31274         sole output (an updated Start value) of the tz-handling block.
31275         * tests/test-getdate.c: Tests for the fix
31276
31277 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31278
31279         Recognize 'foo_LIBRARIES += libgnu.a'.
31280         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
31281         makefile snippet has already specified an installation location,
31282         also using '+='.
31283
31284 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
31285
31286         getdate.y: factor out common actions
31287         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
31288         Use them in place of open-coded actions.
31289
31290 2008-07-01  Simon Josefsson  <simon@josefsson.org>
31291
31292         Add self-test for getdate module.
31293         * modules/getdate-tests: New file.
31294         * tests/test-getdate.c: New file.
31295
31296 2008-06-29  Bruno Haible  <bruno@clisp.org>
31297
31298         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
31299         .gitignore.
31300         Reported by Sylvain Beucler <beuc@beuc.net>.
31301
31302 2008-06-29  Bruno Haible  <bruno@clisp.org>
31303
31304         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
31305         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
31306
31307 2008-06-29  Bruno Haible  <bruno@clisp.org>
31308
31309         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
31310         EXTRA_DIST.
31311         Reported by Sylvain Beucler <beuc@beuc.net>.
31312
31313 2008-06-26  Jim Meyering  <meyering@redhat.com>
31314
31315         make several modules depend on the "open" module
31316         This provides slightly increased consistency when opening-for-write
31317         the name of a non-directory spelled with a trailing slash.
31318         * modules/chdir-safer: Likewise.
31319         * modules/chown: Likewise.
31320         * modules/clean-temp: Likewise.
31321         * modules/copy-file: Likewise.
31322         * modules/fchdir: Likewise.
31323         * modules/fcntl-safer: Likewise.
31324         * modules/pipe: Likewise.
31325         * modules/utime: Likewise.
31326         Prompted by Eric Blake and Bruno Haible.
31327
31328 2008-06-24  Andreas Schwab  <schwab@suse.de>
31329
31330         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
31331         literals can be used as initializers for global variables.
31332
31333 2008-06-23  Eric Blake  <ebb9@byu.net>
31334
31335         Make gnulib-cache.m4 easier to diff.
31336         * gnulib-tool (func_import): Allow newlines when reading cached
31337         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
31338
31339 2008-06-23  Bruno Haible  <bruno@clisp.org>
31340
31341         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
31342         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
31343         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
31344         m4/signalblocking.m4.
31345         (gl_PREREQ_SIGACTION): Don't invoke it.
31346         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
31347         gl_PREREQ_SIG_HANDLER_H.
31348         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31349         Don't check for sigaction here.
31350
31351 2008-06-23  Bruno Haible  <bruno@clisp.org>
31352
31353         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
31354         (install_handlers): Don't set the SA_RESETHAND flag.
31355
31356 2008-06-23  Bruno Haible  <bruno@clisp.org>
31357
31358         * m4/sigaction.m4: Comment fixes.
31359         * lib/signal.in.h: Likewise.
31360
31361 2008-06-23  Eric Blake  <ebb9@byu.net>
31362
31363         Fix typo.
31364         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
31365
31366         Avoid SA_ namespace.
31367         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
31368         Reported by Ralf Wildenhues.
31369
31370         Avoid test failure due to SA_RESTORER.
31371         * tests/test-sigaction.c (SA_MASK): New macro.
31372         (main): Avoid failing due to extension flags being set.
31373         Reported by Jim Meyering.
31374
31375         Revert use of sig-handler.h in sigprocmask.c.
31376         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
31377         it requires the existence of struct sigaction.
31378         * lib/sigprocmask.c (handler_t): Restore typedef.
31379         (rpl_signal, old_handlers): Use local type.
31380
31381 2008-06-22  Bruno Haible  <bruno@clisp.org>
31382
31383         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
31384         conditionally.
31385         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
31386
31387 2008-06-22  Bruno Haible  <bruno@clisp.org>
31388
31389         * doc/posix-functions/siginterrupt.texi: Move note.
31390
31391         * lib/signal.in.h (SA_RESTART): New macro.
31392         * lib/sigaction.c: Update comment.
31393
31394         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
31395
31396         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
31397         (gl_PREREQ_SIGPROCMASK): Invoke it.
31398         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
31399
31400         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
31401
31402         * lib/sigprocmask.c: Update a comment.
31403
31404 2008-06-21  Eric Blake  <ebb9@byu.net>
31405
31406         Use sigaction module rather than signal().
31407         * modules/c-stack (Depends-on): Add sigaction.
31408         * modules/fatal-signal (Depends-on): Likewise.
31409         * modules/nanosleep (Depends-on): Likewise.
31410         * modules/sigprocmask (Files): Add sig-handler.h.
31411         * modules/sigaction (Files): Likewise.
31412         * lib/sig-handler.h (get_handler): New file, suggested by Paul
31413         Eggert.
31414         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
31415         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
31416         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
31417         (init_fatal_signals): Likewise.
31418         * lib/nanosleep.c (rpl_nanosleep): Likewise.
31419         (siginterrupt): Delete fallback.
31420         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
31421         instead.
31422         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
31423         siginterrupt.
31424
31425         New module sigaction, for mingw.
31426         * modules/sigaction: New module...
31427         * modules/sigaction-tests: ...and its test.
31428         * m4/sigaction.m4: New file.
31429         * lib/sigaction.c: Likewise.
31430         * tests/test-sigaction.c: Likewise.
31431         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
31432         * modules/signal (Makefile.am): Likewise.
31433         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
31434         needed.
31435         * doc/posix-headers/signal.texi (signal.h): Mention provided
31436         types.
31437         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
31438         that sigaction is preferable.
31439         * doc/posix-functions/sigaction.texi (sigaction): Mention new
31440         module.
31441         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
31442         sigaction.
31443
31444         Improve robustness of sigprocmask by overriding signal.
31445         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
31446         is in use.
31447         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
31448         (SIGKILL, SIGSTOP): Provide fallbacks.
31449         (rpl_signal): Implement.
31450         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
31451         signal can be called inside handlers.
31452
31453         Fix nanosleep module on mingw.
31454         * modules/nanosleep (Depends-on): Add sys_select.
31455         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
31456
31457         Fix licensing of sigprocmask.
31458         * modules/raise (License): Relicense as LGPL.
31459
31460 2008-06-21  Bruno Haible  <bruno@clisp.org>
31461
31462         * lib/propername.c (proper_name_utf8): Don't use the transliterated
31463         result if it contains question marks.
31464         Reported by Michael Geng <linux@michaelgeng.de>.
31465
31466 2008-06-19  Bruno Haible  <bruno@clisp.org>
31467
31468         Fix CVS-ism.
31469         * doc/gnulib.texi: Include updated-stamp.texi.
31470         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
31471         (updated-stamp.texi): New rule.
31472         (gnulib.info): Depend on it.
31473         * doc/.gitignore: Add updated-stamp.texi.
31474         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
31475
31476 2008-06-19  Bruno Haible  <bruno@clisp.org>
31477
31478         * doc/Makefile (gnulib.info): Update and simplify dependencies.
31479         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
31480
31481 2008-06-19  Eric Blake  <ebb9@byu.net>
31482
31483         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
31484         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
31485         Reported by Stepan Kasal.
31486
31487 2008-06-18  Bruno Haible  <bruno@clisp.org>
31488
31489         * lib/fatal-signal.c (init_fatal_signals): Add comment.
31490         Reported by Eric Blake.
31491
31492 2008-06-18  Eric Blake  <ebb9@byu.net>
31493
31494         Work around cygwin 1.5.25 strsignal bug.
31495         * tests/test-strsignal.c: Allow for const char *.
31496         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
31497
31498 2008-06-18  Simon Josefsson  <simon@josefsson.org>
31499
31500         * users.txt: Update URL to article and add author/date
31501         information.
31502
31503 2008-06-17  Bruno Haible  <bruno@clisp.org>
31504
31505         New macro gl_DISABLE_THREADS.
31506         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
31507         if the user did not pass --enable-threads or --disable-threads option.
31508         (gl_DISABLE_THREADS): New macro.
31509         Reported by Eric Blake <ebb9@byu.net>.
31510
31511 2008-06-17  Bruno Haible  <bruno@clisp.org>
31512
31513         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
31514         when the macro ignores it.
31515         Based on a patch by Eric Blake <ebb9@byu.net>.
31516
31517 2008-06-17  Bruno Haible  <bruno@clisp.org>
31518
31519         * modules/tls (License): Change to LGPLv2+.
31520         Reported by Eric Blake.
31521
31522 2008-06-17  Eric Blake  <ebb9@byu.net>
31523
31524         Simplify c-stack prerequisites.
31525         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
31526         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
31527         no longer requires <ucontext.h> to exist.  Optimize setrlimit
31528         check.
31529         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
31530         <sys/resource.h>.
31531
31532         Move c-stack test into testsuite.
31533         * modules/c-stack-tests: New file.
31534         * lib/c-stack.c [DEBUG]: Move test program...
31535         * tests/test-c-stack.c: ...into this new file.  Skip rather than
31536         fail test if sigaltstack is lacking.
31537         * tests/test-c-stack.sh: New driver file.
31538
31539 2008-06-16  Eric Blake  <ebb9@byu.net>
31540
31541         Use raise module consistently.
31542         * modules/fatal-signal (Depends-on): Add raise.
31543         * modules/sigprocmask (Depends-on): Likewise.
31544         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
31545         * lib/sigprocmask.c (sigprocmask): Likewise.
31546         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31547         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
31548
31549         Fix compliance bug in sigpending.
31550         * lib/sigprocmask.c (sigpending): Return pending array via
31551         parameter, not return value.
31552
31553 2008-06-14  Eric Blake  <ebb9@byu.net>
31554
31555         Improve obstack-printf test code.
31556         * tests/test-obstack-printf.c (test_function): Fix comment, and
31557         simplify usage of obstack_* in macros.  Add a test for coverage.
31558         Reported by Bruno Haible.
31559
31560 2008-06-14  Bruno Haible  <bruno@clisp.org>
31561
31562         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
31563         array size as a constant, not as a const variable.
31564         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
31565         AC_USE_SYSTEM_EXTENSIONS.
31566         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
31567         Test whether the obstack_printf function actually exists.
31568         * modules/obstack-printf (Depends-on): Add extensions.
31569         (Include): Remove obstack.h.
31570         * modules/obstack-printf-posix (Depends-on): Add extensions.
31571         (Include): Remove obstack.h.
31572
31573 2008-06-13  Eric Blake  <ebb9@byu.net>
31574
31575         Add obstack-printf and obstack-printf-posix modules.
31576         * modules/obstack-printf: New file.
31577         * modules/obstack-printf-posix: Likewise.
31578         * MODULES.html.sh (Misc): Mention them.
31579         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
31580         Likewise.
31581         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
31582         Likewise.
31583         * modules/stdio (Makefile.am): Accomodate new modules.
31584         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31585         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
31586         Declare.
31587         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
31588         functions.
31589         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
31590         (gl_REPLACE_OBSTACK_PRINTF): New macros
31591         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
31592         * tests/test-obstack-printf.c: New file.
31593         * modules/obstack-printf-tests: Likewise.
31594         * modules/obstack-printf-posix-tests: Likewise.
31595
31596 2008-06-11  Bruno Haible  <bruno@clisp.org>
31597
31598         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
31599         * lib/open.c: Include errno.h.
31600         (open): Fail when attempting to write to a file that has a trailing
31601         slash.
31602         * tests/test-open.c (main): Test against trailing slash bug.
31603         * doc/posix-functions/open.texi: Mention the trailing slash bug.
31604
31605 2008-06-10  Bruno Haible  <bruno@clisp.org>
31606
31607         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
31608         for $? to work inside the trap command, with various /bin/sh-s.
31609         * tests/test-vc-list-files-cvs.sh: Likewise.
31610
31611 2008-06-10  Bruno Haible  <bruno@clisp.org>
31612
31613         * lib/acl-internal.h: Don't include gettext.h here.
31614         * lib/set-mode-acl.c: Include gettext.h here.
31615         * lib/copy-acl.c: Likewise.
31616
31617 2008-06-10  Bruno Haible  <bruno@clisp.org>
31618
31619         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
31620         * lib/wait-process.c (wait_subprocess): Likewise.
31621         * lib/execute.h (execute): Add termsigp argument.
31622         * lib/execute.c (execute): Likewise.
31623         * lib/csharpcomp.c (compile_csharp_using_pnet,
31624         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
31625         * lib/csharpexec.c (execute_csharp_using_pnet,
31626         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
31627         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
31628         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
31629         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
31630         is_jikes_present): Update.
31631         * lib/javaexec.c (execute_java_class): Update.
31632         * lib/javaversion.c (execute_and_read_line): Update.
31633         * NEWS: Document the changes.
31634         Reported by Eric Blake.
31635
31636 2008-06-10  Eric Blake  <ebb9@byu.net>
31637
31638         Add missing include.
31639         * tests/test-strstr.c (includes): Add <signal.h>.
31640         * tests/test-strcasestr.c (includes): Likewise.
31641         * tests/test-memmem.c (includes): Likewise.
31642
31643 2008-06-10  Bruno Haible  <bruno@clisp.org>
31644
31645         * lib/wait-process.c (wait_subprocess): Add an assertion.
31646
31647 2008-06-10  Bruno Haible  <bruno@clisp.org>
31648
31649         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
31650
31651 2008-06-10  Bruno Haible  <bruno@clisp.org>
31652
31653         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
31654         using alarm().
31655         * tests/test-strcasestr.c (main): Likewise.
31656         * tests/test-strstr.c (main): Likewise.
31657
31658 2008-06-09  Bruno Haible  <bruno@clisp.org>
31659
31660         Work around the Solaris 10 ACE ACLs ABI change.
31661         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
31662         declare if ACL_NO_TRIVIAL is present.
31663         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
31664         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
31665         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
31666         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
31667         define if ACL_NO_TRIVIAL is present.
31668         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
31669         and use the current ABI.
31670         (file_has_acl): Use same #if condition as elsewhere.
31671         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
31672         in use, and use the current ABI.
31673         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
31674         Reported by Jim Meyering.
31675
31676 2008-06-09  Eric Blake  <ebb9@byu.net>
31677
31678         Work around environments that (stupidly) ignore SIGALRM.
31679         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
31680         before using alarm().
31681         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31682         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31683         Reported by Ian Beckwith <ianb@erislabs.net>.
31684
31685         Produce autobuild blurb earlier in log.
31686         * modules/autobuild (configure.ac-early): Move AB_INIT here.
31687
31688 2008-06-09  Jim Meyering  <meyering@redhat.com>
31689         and OndÅ™ej Vašík  <ovasik@redhat.com>
31690
31691         utimens.c: correct kernel bug work-around
31692         OndÅ™ej Vašík found that the invalid return value of 280 indicates
31693         failure, not success, and the kernel bug we're trying to work
31694         around affects not just the utimensat call, but also the fallback
31695         futimens call.
31696         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
31697         not success.
31698         [HAVE_FUTIMENS]: Use the same work-around, here.
31699
31700 2008-06-09  Jim Meyering  <meyering@redhat.com>
31701
31702         add more guards around definition of ACE_-related code
31703         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
31704         ALLOW and ACE_OWNER are also defined.
31705
31706 2008-06-08  Bruno Haible  <bruno@clisp.org>
31707
31708         * lib/acl-internal.h: Add me as co-author.
31709         * lib/file-has-acl.c: Likewise.
31710         * lib/set-mode-acl.c: Likewise.
31711         * lib/copy-acl.c: Likewise.
31712
31713 2008-06-08  Bruno Haible  <bruno@clisp.org>
31714
31715         Add support for AIX ACLs.
31716         * lib/acl-internal.h (acl_nontrivial): New declaration.
31717         * lib/file-has-acl.c (acl_nontrivial): New function.
31718         (file_has_acl): Add implementation using AIX 4 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         Add support for HP-UX ACLs.
31725         * lib/acl-internal.h (acl_nontrivial): New declaration.
31726         * lib/file-has-acl.c (acl_nontrivial): New function.
31727         (file_has_acl): Add implementation using HP-UX 11 ACL API.
31728         * lib/set-mode-acl.c (qset_acl): Likewise.
31729         * lib/copy-acl.c (qcopy_acl): Likewise.
31730
31731 2008-06-08  Bruno Haible  <bruno@clisp.org>
31732
31733         Add support for Cygwin ACLs.
31734         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
31735         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
31736         the chmod_or_fchmod call.
31737         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
31738
31739 2008-06-08  Bruno Haible  <bruno@clisp.org>
31740
31741         Fix bug with setuid modes in Solaris 10+ code.
31742         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
31743         succeeded, when the mode contains some special bits.
31744
31745 2008-06-08  Bruno Haible  <bruno@clisp.org>
31746
31747         Add support for Solaris 7..10 ACLs.
31748         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
31749         declarations.
31750         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
31751         functions.
31752         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
31753         * lib/set-mode-acl.c (qset_acl): Likewise.
31754         * lib/copy-acl.c (qcopy_acl): Likewise.
31755
31756 2008-06-08  Bruno Haible  <bruno@clisp.org>
31757
31758         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
31759         declaration.
31760         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
31761         (acl_access_nontrivial): Remove MacOS X case.
31762         (file_has_acl): Use acl_extended_nontrivial.
31763         * lib/copy-acl.c (qcopy_acl): Likewise.
31764
31765 2008-06-08  Bruno Haible  <bruno@clisp.org>
31766
31767         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
31768
31769 2008-06-08  Jim Meyering  <meyering@redhat.com>
31770
31771         * modules/acl (Maintainer): Add Bruno Haible.
31772
31773 2008-06-07  Bruno Haible  <bruno@clisp.org>
31774
31775         Improve support for Tru64 ACLs.
31776         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
31777         ACL on OSF/1.
31778
31779 2008-06-07  Bruno Haible  <bruno@clisp.org>
31780
31781         Add support for MacOS X ACLs.
31782         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
31783         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
31784         * lib/set-mode-acl.c (qset_acl): Likewise.
31785         * lib/copy-acl.c (qcopy_acl): Likewise.
31786
31787 2008-06-07  Bruno Haible  <bruno@clisp.org>
31788
31789         Fix memory leak introduced on 2008-05-22.
31790         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
31791         use.
31792
31793 2008-06-07  Bruno Haible  <bruno@clisp.org>
31794
31795         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
31796         to construct an empty ACL.
31797
31798 2008-06-07  Bruno Haible  <bruno@clisp.org>
31799
31800         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
31801         precisely.
31802         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
31803
31804 2008-06-07  Bruno Haible  <bruno@clisp.org>
31805
31806         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
31807         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
31808
31809 2008-06-07  Bruno Haible  <bruno@clisp.org>
31810
31811         * doc/posix-functions/_setjmp.texi: Explain the use of this function
31812         regardless of POSIX.
31813         * doc/posix-functions/_longjmp.texi: Likewise.
31814         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
31815         SystemV platform in this case.
31816
31817 2008-06-06  Eric Blake  <ebb9@byu.net>
31818
31819         Document abort() bugs.
31820         * doc/posix-functions/abort.texi (abort): Mention anomalies.
31821
31822         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
31823         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
31824         sigsetjmp.
31825         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
31826         siglongjmp, but only as a macro.
31827         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
31828         is obsolete.
31829         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
31830
31831         Tweak documentation to cover cygwin argz bugs.
31832         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
31833         argz bug fix; no code change needed since no cygwin releases
31834         occurred between the last fix and the bug being tested.
31835         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
31836         module and recently fixed cygwin bugs.
31837         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
31838         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
31839         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
31840         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
31841         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
31842         Likewise.
31843         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
31844         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
31845         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
31846         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
31847         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
31848         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
31849         Likewise.
31850
31851         Avoid gcc warning on cygwin.
31852         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
31853         !ACL_NO_TRIVIAL]: Avoid unused variable.
31854
31855 2008-06-05  Eric Blake  <ebb9@byu.net>
31856
31857         Be tolerant of UNKNOWN version in gnulib-tool test dir.
31858         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
31859         git-version-gen fails to come up with a version.
31860         Reported by Simon Josefsson.
31861
31862 2008-06-05  Jim Meyering  <meyering@redhat.com>
31863             Paul Eggert  <eggert@cs.ucla.edu>
31864
31865         utimens.c: work around a probable Linux kernel bug
31866         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
31867         appears to be a kernel bug that causes utimensat to return 280
31868         instead of 0, indicating success.
31869
31870 2008-06-04  Bruno Haible  <bruno@clisp.org>
31871
31872         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
31873         2008-06-01 commit.
31874
31875 2008-06-04  Bruno Haible  <bruno@clisp.org>
31876
31877         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
31878         * lib/file-has-acl.c (acl_access_nontrivial): New function.
31879         (file_has_acl): Use it. Save errno afterwards.
31880         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
31881
31882 2008-06-03  Bruno Haible  <bruno@clisp.org>
31883
31884         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
31885         draft code. Simplify #ifs.
31886         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
31887         Put Solaris code after POSIX-draft code. Fix comments regarding
31888         Solaris 10, HP-UX. Mention Cygwin.
31889         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
31890
31891 2008-06-03  Eric Blake  <ebb9@byu.net>
31892
31893         Provide fallback for older kernels.
31894         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
31895         Provide runtime fallback if kernel lacks support.
31896         Reported by Mike Frysinger.
31897
31898 2008-06-02  Bruno Haible  <bruno@clisp.org>
31899
31900         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
31901         it exists.
31902
31903 2008-06-02  Bruno Haible  <bruno@clisp.org>
31904
31905         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
31906         * lib/copy-acl.c (qcopy_acl): Update comment.
31907
31908 2008-06-02  Bruno Haible  <bruno@clisp.org>
31909
31910         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
31911         like ACL APIs.
31912
31913 2008-06-02  Bruno Haible  <bruno@clisp.org>
31914
31915         * tests/test-file-has-acl.sh: Use different code for Cygwin.
31916         * tests/test-set-mode-acl.sh: Likewise.
31917         * tests/test-copy-acl.sh: Likewise.
31918         * tests/test-copy-file.sh: Likewise.
31919
31920 2008-06-02  Bruno Haible  <bruno@clisp.org>
31921
31922         * tests/test-file-has-acl.sh: Remove unused code.
31923
31924 2008-06-01  Bruno Haible  <bruno@clisp.org>
31925
31926         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
31927         (copy_acl): Just a wrapper around qcopy_acl that emits the error
31928         messages.
31929         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
31930
31931 2008-06-01  Bruno Haible  <bruno@clisp.org>
31932
31933         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
31934         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
31935         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
31936         APIs.
31937         * modules/acl-tests (configure.ac): Remove tests now contained in
31938         m4/acl.m4.
31939
31940 2008-06-02  Jim Meyering  <meyering@redhat.com>
31941
31942         announce-gen: use a better key-server host name
31943         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
31944         it may be more consistently reliable.  Suggested by Werner Koch
31945         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
31946
31947 2008-06-01  Bruno Haible  <bruno@clisp.org>
31948
31949         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
31950         Reported by Voroskoi Andras <voroskoi@gmail.com>.
31951
31952 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
31953
31954         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
31955
31956 2008-06-01  Bruno Haible  <bruno@clisp.org>
31957
31958         New ACL tests.
31959         * tests/test-file-has-acl.sh: New file.
31960         * tests/test-file-has-acl.c: New file.
31961         * tests/test-set-mode-acl.sh: New file.
31962         * tests/test-set-mode-acl.c: New file.
31963         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
31964         * tests/test-copy-acl.c: New file.
31965         * modules/acl-tests: New file, based on modules/copy-file-tests.
31966         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
31967         (Depends-on): Add acl-tests.
31968         (configure.ac): Remove checks.
31969         (Makefile.am): Don't create test-sameacls program here any more.
31970
31971 2008-06-01  Bruno Haible  <bruno@clisp.org>
31972
31973         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
31974         * tests/test-sameacls.c: Include progname.h.
31975         (main): Invoke set_program_name. Portability fixes for MacOS X,
31976         Solaris, HP-UX.
31977
31978 2008-06-01  Bruno Haible  <bruno@clisp.org>
31979
31980         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
31981         function.
31982         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
31983
31984 2008-06-01  Bruno Haible  <bruno@clisp.org>
31985
31986         * modules/rpmatch (Depends-on): Add strdup.
31987
31988 2008-06-01  Bruno Haible  <bruno@clisp.org>
31989
31990         * lib/pipe.c: Include unistd-safer.h.
31991         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
31992         * modules/pipe (Depends-on): Add unistd-safer.
31993
31994 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31995
31996         * modules/autobuild (configure.ac): Call AB_INIT.
31997
31998 2008-05-30  Simon Josefsson  <simon@josefsson.org>
31999
32000         * tests/test-getaddrinfo.c: Don't print debug messages by default.
32001         Suggested by Bruno Haible <bruno@clisp.org>.
32002
32003 2008-05-30  Simon Josefsson  <simon@josefsson.org>
32004
32005         * tests/test-base64.c: Cast size_t to unsigned long when invoking
32006         printf.  Use %lu instead of %d.  Reported by Bruno Haible
32007         <bruno@clisp.org>.
32008
32009 2008-05-29  Eric Blake  <ebb9@byu.net>
32010
32011         Prefer new POSIX 200x interfaces over futimesat.
32012         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
32013         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
32014         when available.
32015         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
32016
32017 2008-05-28  Bruno Haible  <bruno@clisp.org>
32018
32019         * modules/stpcpy (License): Change to LGPLv2+.
32020         Requested by David Lutterkort <dlutter@redhat.com>.
32021
32022 2008-05-27  Bruno Haible  <bruno@clisp.org>
32023
32024         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
32025         current mingw.
32026         Reported by Jose E. Marchesi <jemarch@gnu.org>.
32027
32028 2008-05-27  Bruno Haible  <bruno@clisp.org>
32029
32030         * modules/iconv_open (Link): New section, from module 'iconv'.
32031         * modules/striconv (Link): Likewise.
32032         * modules/striconveh (Link): Likewise.
32033         * modules/xstriconv (Link): Likewise.
32034         * modules/unicodeio (Link): Likewise.
32035         * modules/propername (Link): Likewise.
32036         Reported by Jim Meyering.
32037
32038 2008-05-26  Jim Meyering  <meyering@redhat.com>
32039
32040         sha256: do not artificially restrict buffer length to be < 2^32
32041         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
32042         uint32_t to size_t.
32043         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
32044         to match.
32045
32046         avoid unaligned access errors, e.g., on sparc
32047         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
32048         direct access through a possibly-unaligned uint64* pointer.
32049         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
32050         direct access through a possibly-unaligned uint32* pointer.
32051         Prompted by this patch from Tom "spot" Callaway:
32052         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
32053
32054         sha512.c: fix typo in comment
32055         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
32056
32057 2008-05-25  Bruno Haible  <bruno@clisp.org>
32058
32059         * lib/set-mode-acl.c: Renamed from lib/acl.c.
32060         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
32061         (Makefile.am): Update lib_SOURCES.
32062
32063 2008-05-25  Bruno Haible  <bruno@clisp.org>
32064
32065         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
32066
32067 2008-05-25  Jim Meyering  <meyering@redhat.com>
32068
32069         useless-if-before-free: freed expr may have white-space differences
32070         * build-aux/useless-if-before-free: Recognize cases in which the
32071         freed expression differs from the tested one in embedded white
32072         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
32073         $1 was used, so we can't make any regexp shy.  Improved tests now
32074         detect this.
32075
32076         useless-if-before-free: accept white space in the expression.
32077         * build-aux/useless-if-before-free: For now, any white space
32078         in the expression must be identical in the free argument.
32079
32080         useless-if-before-free: efficiency tweak
32081         * build-aux/useless-if-before-free: Make the expression-matching
32082         regexp "shy".
32083         Make the *outer* regexp shy, not the expr-matching one.
32084
32085         update code-in-comment to accept cast of free arg
32086         * build-aux/useless-if-before-free: Update regexp.
32087
32088 2008-05-25  Bruno Haible  <bruno@clisp.org>
32089
32090         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
32091         * modules/copy-file-tests (Files, Makefile.am): Update.
32092         * tests/test-copy-file.c (func_test_copy): Update.
32093
32094 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
32095
32096         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
32097
32098 2008-05-23  Bruno Haible  <bruno@clisp.org>
32099
32100         Improve support for ACLs on OSF/1.
32101         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
32102         Remove fallback for unknown flavors of ACLs.
32103
32104 2008-05-22  Bruno Haible  <bruno@clisp.org>
32105
32106         Add support for ACLs on OSF/1.
32107         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
32108         replacements.
32109         (acl_free_text): New macro fallback.
32110         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
32111         acl_free.
32112         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
32113         acl_free_text function. Require AC_C_INLINE.
32114
32115 2008-05-22  Bruno Haible  <bruno@clisp.org>
32116
32117         Make copy_acl work on MacOS X 10.5.
32118         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
32119         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
32120         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
32121         If MODE_INSIDE_ACL, don't assume that every system has the same text
32122         representation for ACLs as FreeBSD.
32123         * lib/copy-acl.c (copy_acl): Add support for platforms with
32124         !MODE_INSIDE_ACL.
32125         * lib/file-has-acl.c (file_has_acl): Likewise.
32126         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
32127         FreeBSD, MacOS X, or IRIX, respectively.
32128
32129 2008-05-22  Bruno Haible  <bruno@clisp.org>
32130
32131         * lib/acl.h: Don't include <sys/acl.h>.
32132         (GETACLCNT): Move fallback to lib/acl-internal.h.
32133         * lib/acl-internal.h: Include <sys/acl.h> here.
32134         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
32135
32136 2008-05-22  Bruno Haible  <bruno@clisp.org>
32137
32138         Split off copy_acl function to separate file.
32139         * lib/copy-acl.c: New file, extracted from lib/acl.c.
32140         * lib/acl.c (copy_acl): Moved function to separate file.
32141         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
32142         * modules/acl (Files): Add lib/copy-acl.c.
32143         (Makefiles.am): Augment lib_SOURCES.
32144
32145 2008-05-22  Bruno Haible  <bruno@clisp.org>
32146
32147         * modules/copy-file-tests: New file.
32148         * tests/test-copy-file.sh: New file.
32149         * tests/test-copy-file.c: New file.
32150         * tests/test-copy-file-sameacls.c: New file.
32151
32152 2008-05-22  Eric Blake  <ebb9@byu.net>
32153
32154         Avoid gcc warning.
32155         * tests/test-memcmp.c (main): Pass NULL indirectly.
32156
32157 2008-05-21  Bruno Haible  <bruno@clisp.org>
32158
32159         Add reference doc about ACLs.
32160         * doc/acl-resources.txt: New file.
32161         * doc/acl-cygwin.txt: New file.
32162
32163 2008-05-21  Bruno Haible  <bruno@clisp.org>
32164
32165         Avoid one more warning from gcc.
32166         * lib/vasnprintf.c (IF_LINT): Update comments.
32167         (VASNPRINTF): Use it also for the 'prefix' array initializer.
32168
32169 2008-05-21  Jim Meyering  <meyering@redhat.com>
32170
32171         avoid a warning from gcc
32172         * lib/vasnprintf.c (IF_LINT): Define.
32173         (scale10_round_decimal_long_double):
32174         Use it to avoid a "may be used uninitialized" warning.
32175         (scale10_round_decimal_double): Likewise.
32176
32177 2008-05-21  Simon Josefsson  <simon@josefsson.org>
32178
32179         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
32180         declared.
32181
32182 2008-05-20  Bruno Haible  <bruno@clisp.org>
32183
32184         * tests/test-memcmp.c (main): Test also the sign of the result. Test
32185         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
32186
32187 2008-05-20  Simon Josefsson  <simon@josefsson.org>
32188
32189         * modules/memcmp-tests: New file.
32190         * tests/test-memcmp.c: New file.
32191
32192 2008-05-19  Bruno Haible  <bruno@clisp.org>
32193
32194         * modules/propername (Notice, configure.ac): Put quoted "..." into
32195         --keyword option.
32196         * lib/propername.h: Update comments accordingly.
32197         Reported by Eric Blake.
32198
32199 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
32200
32201         * modules/getpass-gnu (Depends-on): Add fseeko.
32202
32203 2008-05-19  Simon Josefsson  <simon@josefsson.org>
32204
32205         * modules/base64-tests: New file.
32206
32207 2008-05-19  Bo Borgerson <gigabo@gmail.com>
32208
32209         * lib/base64.c (base64_decode_ctx): If a decode context structure
32210         was passed in use it to ignore newlines.  If a context structure
32211         was _not_ passed in, continue to treat newlines as garbage (this
32212         is the historical behavior).  Formerly base64_decode.
32213         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
32214         takes a decode context structure.
32215         * lib/base64.h (base64_decode): Macro for four-argument calls.
32216         (base64_decode_alloc): Likewise.
32217         * lib/base64.c (base64_decode_ctx): If a decode context structure
32218         was passed in use it to ignore newlines.  If a context structure
32219         was _not_ passed in, continue to treat newlines as garbage (this
32220         is the historical behavior).  Formerly base64_decode.
32221         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
32222         takes a decode context structure.
32223         * lib/base64.h (base64_decode): Macro for four-argument calls.
32224         (base64_decode_alloc): Likewise.
32225
32226 2008-05-19  Jim Meyering  <meyering@redhat.com>
32227
32228         avoid a warning from gcc
32229         * lib/trim.c (IF_LINT): Define.
32230         (trim2): Use it to avoid a "may be used uninitialized" warning.
32231
32232         Fix doc typo.
32233         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
32234
32235 2008-05-19  Bruno Haible  <bruno@clisp.org>
32236
32237         * doc/glibc-functions/getpass.texi: Document limits of other
32238         implementations.
32239
32240 2008-05-19  Simon Josefsson  <simon@josefsson.org>
32241             Bruno Haible <bruno@clisp.org>
32242
32243         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
32244
32245 2008-05-18  Bruno Haible  <bruno@clisp.org>
32246
32247         * modules/propername: New file, from GNU gettext.
32248         * lib/propername.h: New file, from GNU gettext.
32249         * lib/propername.c: New file, from GNU gettext.
32250         * MODULES.html.sh (Internationalization functions): Add propername.
32251
32252 2008-05-16  Jim Meyering  <meyering@redhat.com>
32253             Bruno Haible  <bruno@clisp.org>
32254
32255         Avoid some warnings from "gcc -Wshadow".
32256         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
32257
32258 2008-05-15  Eric Blake  <ebb9@byu.net>
32259
32260         Extend previous patch to cygwin 1.7.0.
32261         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
32262         fast implementation in cygwin >= 1.7.0.
32263         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32264         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32265
32266 2008-05-15  Bruno Haible  <bruno@clisp.org>
32267
32268         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
32269         implementation in glibc >= 2.9.
32270         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
32271         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
32272
32273 2008-05-15  Bruno Haible  <bruno@clisp.org>
32274
32275         * MODULES.html.sh (Internationalization functions): Remove linebreak.
32276         (Unicode string functions): Add unilbrk/*.
32277         Reported by Karl Berry.
32278
32279 2008-05-15  Eric Blake  <ebb9@byu.net>
32280
32281         Fix violation of <stdbool.h> replacement in regex.
32282         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
32283         * lib/regexec.c (re_search_internal): Likewise.
32284         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
32285
32286 2008-05-15  Jim Meyering  <meyering@redhat.com>
32287
32288         avoid distracting test output when git or cvs is not found
32289         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
32290         * tests/test-vc-list-files-git.sh: Likewise.
32291
32292 2008-05-15  Eric Blake  <ebb9@byu.net>
32293
32294         Glibc finally accepted the memmem speedup code, bugzilla #5514.
32295         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
32296         glibc version.
32297         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
32298         * doc/posix-functions/strstr.texi (strstr): Likewise.
32299         * lib/str-two-way.h (MAX): Sychronize with glibc.
32300
32301 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
32302
32303         * lib/regcomp.c (optimize_utf8): Add a note on why we test
32304         opr.ctx_type.
32305         (calc_first): Initialize constraint field.
32306         (duplicate_node_closure): Use it instead of special casing ANCHORS.
32307         Fix grammar.
32308         (duplicate_node): Merge constraint field for all node types.
32309         (calc_eclosure_iter): Look at constraint field for all node types.
32310         * lib/regex_internal.c (create_cd_newstate): Don't look at
32311         opr.ctx_type.
32312
32313 2008-05-14  Bruno Haible  <bruno@clisp.org>
32314
32315         Help GCC to do better code generation.
32316         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
32317         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
32318         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
32319         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
32320         Declare with attribute 'malloc' if supported.
32321
32322 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
32323
32324         use "echo STR|wc -c" rather than unportable "expr length STR"
32325         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
32326         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
32327
32328 2008-05-14  Jim Meyering  <meyering@redhat.com>
32329
32330         use dd ibs=$n count=1 ... rather than less-portable head -c$n
32331         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
32332         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
32333         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
32334         via Collin Lasse.
32335
32336 2008-05-14  Eric Blake  <ebb9@byu.net>
32337
32338         Avoid quadratic growth in gl_LIBSOURCES.
32339         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
32340         Suggested by Bruno Haible.
32341
32342         Test xmemdup0.
32343         * modules/xmemdup0-tests: New file.
32344         * tests/test-xmemdup0.c: Likewise.
32345
32346 2008-05-13  Eric Blake  <ebb9@byu.net>
32347
32348         Split xmemdup0 into its own module.
32349         * modules/xmemdup0: New file.
32350         * lib/xmemdup0.h: Likewise.
32351         * lib/xmemdup0.c: Likewise.
32352         * MODULES.html.sh (Memory management functions): Add xmemdup0.
32353         * lib/xalloc.h (xmemdup0): Remove.
32354         * lib/xmalloc.c (xmemdup0): Likewise.
32355
32356 2008-05-13  Eric Blake  <ebb9@byu.net>
32357             Bruno Haible  <bruno@clisp.org>
32358
32359         Reduce number of forks required during autoconf.
32360         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
32361         and gl_LIBSOURCES_DIR.
32362         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
32363         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
32364         m4_syscmd per file.
32365         <m4_foreach_w>: Move...
32366         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
32367
32368 2008-05-13  Eric Blake  <ebb9@byu.net>
32369
32370         * gnulib-tool: Fix various comment typos.
32371
32372 2008-05-12  Bruno Haible  <bruno@clisp.org>
32373
32374         Tailor the linebreaking algorithm.
32375         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
32376
32377 2008-05-12  Bruno Haible  <bruno@clisp.org>
32378
32379         Update to Unicode 5.0.0.
32380         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
32381         LBP_JV, LBP_JT. Redistribute values.
32382         (unilbrk_table): Change size.
32383         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
32384         Unicode TR#14 rev. 22.
32385         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
32386         LBP_JV, LBP_JT. Redistribute values.
32387         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
32388         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
32389         Update.
32390         * lib/unilbrk/lbrkprop1.h: Regenerated.
32391         * lib/unilbrk/lbrkprop2.h: Regenerated.
32392         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
32393         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
32394         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
32395         Likewise.
32396         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
32397         Likewise.
32398         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
32399         result.
32400         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
32401         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
32402         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
32403         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
32404         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
32405         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
32406
32407 2008-05-11  Bruno Haible  <bruno@clisp.org>
32408
32409         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
32410
32411 2008-05-11  Bruno Haible  <bruno@clisp.org>
32412
32413         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
32414         * modules/unilbrk/gen-lbrk: New file.
32415
32416 2008-05-11  Bruno Haible  <bruno@clisp.org>
32417
32418         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
32419         * m4/sha512.m4 (gl_SHA512): Likewise.
32420
32421 2008-05-11  Jim Meyering  <meyering@redhat.com>
32422
32423         New modules: crypto/sha256, crypto/sha512 (from coreutils)
32424         * modules/crypto/sha256: New file.
32425         * modules/crypto/sha512: Likewise.
32426         * lib/sha256.c: Likewise.
32427         * lib/sha256.h: Likewise.
32428         * lib/sha512.c: Likewise.
32429         * lib/sha512.h: Likewise.
32430         * lib/u64.h: Likewise.
32431         * m4/sha256.m4: Likewise.
32432         * m4/sha512.m4: Likewise.
32433         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
32434
32435 2008-05-10  Bruno Haible  <bruno@clisp.org>
32436
32437         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
32438         (Input/Output <stdio.h>): Add xprintf.
32439         (Signal handling <signal.h>): Add strsignal.
32440         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
32441         (Core language properties): Add func.
32442         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
32443         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
32444         strings.
32445         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
32446         (Input/output): New section.
32447         (File system functions): Add openat-die, stat-macros.
32448         (Networking functions): Add sockets.
32449         (Unicode string functions): Add unictype/*.
32450         (Support for building libraries and executables): Add gperf.
32451         (Support for building documentation): Add agpl-3.0.
32452         (Misc): Add nocrash.
32453
32454 2008-05-10  Bruno Haible  <bruno@clisp.org>
32455
32456         * modules/unictype/gen-ctype: New file.
32457
32458 2008-05-10  Jim Meyering  <meyering@redhat.com>
32459
32460         Make chdir-safer.c more efficient on a system with no symlinks.
32461         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
32462         also if ELOOP is zero.  Suggested by Bruno Haible.
32463
32464         Make chdir-safer.c slightly safer.
32465         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
32466         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
32467
32468         Avoid compile failure on systems without ELOOP (like mingw).
32469         * lib/chdir-safer.c (ELOOP): Define if not already defined.
32470         Reported by Bruno Haible.
32471
32472 2008-05-10  Bruno Haible  <bruno@clisp.org>
32473
32474         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
32475         (is_utf8_encoding): Use a case-insensitive comparison.
32476         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
32477         streq.
32478
32479 2008-05-10  Bruno Haible  <bruno@clisp.org>
32480
32481         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
32482         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
32483         * lib/unilbrk/ulc-common.h (iconv_string_length,
32484         iconv_string_keeping_offsets): Remove declarations.
32485         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
32486         Don't include <iconv.h>, streq.h, xsize.h.
32487         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
32488         conversion.
32489         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
32490         <iconv.h>, streq.h, xsize.h.
32491         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
32492         conversion.
32493         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
32494         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
32495         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
32496         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
32497
32498 2008-05-10  Bruno Haible  <bruno@clisp.org>
32499
32500         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
32501         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
32502
32503         * modules/unilbrk/u32-width-linebreaks-tests: New file.
32504         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
32505
32506         * modules/unilbrk/u16-width-linebreaks-tests: New file.
32507         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
32508
32509         * modules/unilbrk/u8-width-linebreaks-tests: New file.
32510         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
32511
32512         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
32513         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
32514
32515         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
32516         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
32517
32518         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
32519         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
32520
32521         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
32522         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
32523
32524 2008-05-10  Bruno Haible  <bruno@clisp.org>
32525
32526         Split up 'linebreak' module.
32527         * lib/unilbrk.h: New file, based on lib/linebreak.h.
32528         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
32529         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
32530         modifications.
32531         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
32532         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
32533         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
32534         lib/linebreak.c.
32535         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
32536         lib/linebreak.c.
32537         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
32538         lib/linebreak.c.
32539         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
32540         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
32541         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
32542         lib/linebreak.c.
32543         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
32544         lib/linebreak.c.
32545         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
32546         lib/linebreak.c.
32547         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
32548         lib/linebreak.c.
32549         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
32550         lib/linebreak.c.
32551         * modules/unilbrk/base: New file.
32552         * modules/unilbrk/tables: New file.
32553         * modules/unilbrk/u8-possible-linebreaks: New file.
32554         * modules/unilbrk/u16-possible-linebreaks: New file.
32555         * modules/unilbrk/u32-possible-linebreaks: New file.
32556         * modules/unilbrk/ulc-common: New file.
32557         * modules/unilbrk/ulc-possible-linebreaks: New file.
32558         * modules/unilbrk/u8-width-linebreaks: New file.
32559         * modules/unilbrk/u16-width-linebreaks: New file.
32560         * modules/unilbrk/u32-width-linebreaks: New file.
32561         * modules/unilbrk/ulc-width-linebreaks: New file.
32562         * lib/linebreak.h: Remove file.
32563         * lib/linebreak.c: Remove file.
32564         * m4/linebreak.m4: Remove file.
32565         * modules/linebreak: Remove file.
32566         * NEWS: Mention the changes.
32567
32568 2008-05-09  Eric Blake  <ebb9@byu.net>
32569
32570         Add xmemdup0.
32571         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
32572         implementation.
32573         * lib/xmalloc.c (xmemdup0): New C implementation.
32574
32575 2008-05-08  Bruno Haible  <bruno@clisp.org>
32576
32577         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
32578
32579 2008-05-07  Eric Blake  <ebb9@byu.net>
32580
32581         Support cross-compilation of <wctype.h>.
32582         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
32583         AC_CACHE_CHECK.
32584
32585 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
32586
32587         * build-aux/vc-list-files: Add support for bzr.
32588
32589 2008-05-03  Jim Meyering  <meyering@redhat.com>
32590
32591         avoid failed assertion with tight malloc
32592         * tests/test-getndelim2.c: Correct an off-by-one assertion.
32593
32594 2008-05-03  Simon Josefsson  <simon@josefsson.org>
32595
32596         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
32597         are needed from arpa/inet.h.
32598         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
32599         Reported by Bruno Haible.
32600
32601 2008-05-02  Jim Meyering  <meyering@redhat.com>
32602
32603         avoid compilation error on FreeBSD 6
32604         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
32605
32606 2008-05-01  Jim Meyering  <meyering@redhat.com>
32607
32608         useless-if-before-free: correct --help's exit status description
32609         * build-aux/useless-if-before-free (usage): Like grep, exit 0
32610         for one or more matches, etc.  Reported by Bruno Haible.
32611
32612         vc-list-files: make the stand-alone gnulib test work
32613         * modules/vc-list-files-tests (configure.ac):
32614         Define and AC_SUBST abs_aux_dir.
32615         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
32616         $(abs_top_srcdir) to each script and having each of them
32617         duplicate the work of setting PATH, set PATH here, using
32618         the new variable, abs_aux_dir instead.
32619         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
32620         * tests/test-vc-list-files-git.sh: Likewise.
32621         Reported by Bruno Haible.
32622
32623 2008-05-01  Bruno Haible  <bruno@clisp.org>
32624
32625         * lib/getndelim2.c (getndelim2): Fix newsize computation during
32626         reallocation. Rename 'done' to 'found_delimiter'.
32627
32628 2008-05-01  Jim Meyering  <meyering@redhat.com>
32629
32630         vc-list-files: accommodate /bin/sh like the one from Solaris 10
32631         * build-aux/vc-list-files: Use `...`, not $(...).
32632
32633 2008-04-30  Jim Meyering  <meyering@redhat.com>
32634
32635         add tests for vc-list-files
32636         * modules/vc-list-files-tests: New module.
32637         * tests/test-vc-list-files-cvs.sh: New file.
32638         * tests/test-vc-list-files-git.sh: New file.
32639
32640         avoid a warning from gcc
32641         * lib/getndelim2.c (IF_LINT): Define.
32642         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
32643
32644         vc-list-files: work properly with build-aux/cvsu, too
32645         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
32646         to all cvs-based clauses.
32647
32648         vc-list-files: work properly in the CVS+awk case, too
32649         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
32650
32651         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
32652         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
32653         take more than one file argument, so .  Add quotes, just in case $dir
32654         ever contains a shell meta-character.  Prompted by Soren Hansen in
32655         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
32656
32657 2008-04-29  Eric Blake  <ebb9@byu.net>
32658
32659         Optimize getndelim2 to use block operations when possible.
32660         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
32661         freadseek, and memchr2.
32662         * lib/getndelim2.c (getndelim2): Use them for block reads.
32663
32664 2008-04-29  Bruno Haible  <bruno@clisp.org>
32665
32666         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
32667         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32668         * modules/inet_ntop (Depends-on): Add extensions.
32669         * modules/inet_pton (Depends-on): Likewise.
32670         Reported by Simon Josefsson.
32671
32672 2008-04-29  Jim Meyering  <meyering@redhat.com>
32673
32674         When the is more than one match in a block, match all of them.
32675         * build-aux/useless-if-before-free: Iterate through each block
32676         until there are no more matches.
32677
32678         Fix broken useless-if-before-free script.
32679         * build-aux/useless-if-before-free: Fix typo: missing "?" after
32680         the expression to match cast of argument to free-like function.
32681
32682 2008-04-29  Eric Blake  <ebb9@byu.net>
32683
32684         Use new header.
32685         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
32686
32687 2008-04-29  Jim Meyering  <meyering@redhat.com>
32688
32689         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
32690         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
32691         by gnulib to exist and to declare e.g., inet_ntop.
32692         Don't include "inet_ntop.h", now removed.
32693
32694         * m4/arpa_inet_h.m4: Remove trailing blanks.
32695
32696 2008-04-29  Eric Blake  <ebb9@byu.net>
32697
32698         Silence valgrind on safe reads beyond potential array bounds.
32699         * lib/rawmemchr.valgrind: New file.
32700         * lib/strchrnul.valgrind: Likewise.
32701         * modules/rawmemchr (Files): Distribute new file.
32702         * modules/strchrnul (Files): Likewise.
32703         Suggested by Bruno Haible.
32704
32705 2008-04-29  Bruno Haible  <bruno@clisp.org>
32706
32707         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
32708         (inet_ntop, inet_pton): Change portability warning's wording.
32709         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
32710         Invoke gl_CHECK_NEXT_HEADERS.
32711         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
32712         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
32713         set ARPA_INET_H.
32714         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
32715         * modules/arpa_inet (Description): No longer only for systems that
32716         lack it.
32717         (Depends-on): Add include_next.
32718         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
32719         HAVE_ARPA_INET_H.
32720
32721 2008-04-29  Jim Meyering  <meyering@redhat.com>
32722
32723         * modules/mkdir (License): Re-license as LGPLv2+.
32724
32725 2008-04-29  Bruno Haible  <bruno@clisp.org>
32726
32727         * modules/rawmemchr (Maintainer): Set to Eric.
32728         * modules/strchrnul (Maintainer): Likewise.
32729
32730 2008-04-29  Simon Josefsson  <simon@josefsson.org>
32731
32732         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
32733         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
32734
32735         * modules/arpa_inet (arpa/inet.h): Use them.
32736
32737 2008-04-28  Eric Blake  <ebb9@byu.net>
32738
32739         Test getndelim2.
32740         * modules/getndelim2-tests: New file.
32741         * tests/test-getndelim2.c: Likewise.
32742         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
32743         stream.
32744         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
32745
32746         * MODULES.html.sh: Document new module.
32747
32748 2008-04-20  Bruno Haible  <bruno@clisp.org>
32749
32750         * lib/c-stack.c (die): Use raise.
32751         * modules/c-stack (Depends-on): Add raise.
32752
32753 2008-04-28  Bruno Haible  <bruno@clisp.org>
32754
32755         Expect rpmatch to be declared.
32756         * lib/yesno.c (rpmatch): Remove declaration.
32757
32758         Declare rpmatch.
32759         * lib/stdlib.in.h (rpmatch): New declaration.
32760         * lib/rpmatch.c: Include <stdlib.h> first.
32761         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
32762         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
32763         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
32764         HAVE_RPMATCH.
32765         * modules/rpmatch (Depends-on): Add stdlib, extensions.
32766         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
32767         (Include): Set to <stdlib.h>.
32768         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
32769         HAVE_RPMATCH.
32770         * NEWS: Document the change.
32771
32772 2008-04-28  Bruno Haible  <bruno@clisp.org>
32773
32774         Change rpmatch to use nl_langinfo when appropriate.
32775         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
32776         (N_): New macro.
32777         (localized_pattern): New function/macro.
32778         (try): Remove match, nomatch arguments. Copy the pattern into safe
32779         memory before caching it.
32780         (rpmatch): Use localized_pattern. Add translator comments.
32781         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
32782         Suggested by Eric Blake.
32783         * modules/rpmatch (Depends-on): Add stdbool.
32784
32785 2008-04-28  Eric Blake  <ebb9@byu.net>
32786
32787         Add rawmemchr module, matching glibc.
32788         * modules/string (Makefile.am): New indicator.
32789         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
32790         * lib/string.in.h (rawmemchr): Declare when appropriate.
32791         * modules/rawmemchr: New file.
32792         * m4/rawmemchr.m4: Likewise.
32793         * lib/rawmemchr.c: Likewise.
32794         * modules/rawmemchr-tests: Likewise.
32795         * tests/test-rawmemchr.c: Likewise.
32796         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
32797         module.
32798         * modules/strchrnul (Depends-on): Add rawmemchr.
32799         * lib/strchrnul.c (strchrnul): Optimize a corner case.
32800
32801         Whitespace cleanup.
32802         * tests/test-strchrnul.c: Reindent.
32803         * lib/strchrnul.c: Likewise.
32804
32805         Optimize and test strchrnul.
32806         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
32807         * modules/strchrnul-tests: New file.
32808         * tests/test-strchrnul.c: Likewise.
32809
32810         Remove intprops dependency.
32811         * modules/memchr (Depends-on): Remove intprops.
32812         * modules/memrchr (Depends-on): Likewise.
32813         * modules/memchr2 (Depends-on): Likewise.
32814         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
32815         * lib/memrchr.c (__memrchr): Likewise.
32816         * lib/memrchr2.c (memchr2): Likewise.
32817         Reported by Simon Josefsson.
32818
32819 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32820
32821         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
32822         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32823
32824 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32825
32826         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
32827
32828         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
32829
32830         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
32831
32832         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
32833         declarations.
32834         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
32835
32836         * m4/inet_pton.m4: Don't check for header files.
32837
32838         * m4/inet_ntop.m4: Don't check for header files.
32839
32840 2008-04-28  Simon Josefsson  <simon@josefsson.org>
32841
32842         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
32843         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
32844         trigger for cygwin).
32845         Reported by Bruno Haible  <bruno@clisp.org>.
32846
32847 2008-04-28  Bruno Haible  <bruno@clisp.org>
32848
32849         * doc/posix-functions/strdup.texi: Mention mingw problem.
32850
32851 2008-04-27  Bruno Haible  <bruno@clisp.org>
32852
32853         * modules/stat-time-tests (Depends-on): Add sleep.
32854         * tests/test-stat-time.c (force_unlink): New function.
32855         (cleanup): Use it.
32856         (test_mtime): Remove the ctime related tests.
32857         (test_ctime): New function, containing the ctime related tests.
32858         (main): Call test_ctime, except on native Windows platforms.
32859
32860 2008-04-27  Bruno Haible  <bruno@clisp.org>
32861
32862         * lib/rpmatch.c (rpmatch): Add some comments.
32863         Reported by James Youngman <jay@gnu.org>.
32864
32865 2008-04-27  Bruno Haible  <bruno@clisp.org>
32866
32867         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
32868         quiet NaNs.
32869
32870 2008-04-27  Bruno Haible  <bruno@clisp.org>
32871
32872         Make test-yesno.sh work on mingw.
32873         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
32874         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
32875         (main): Set stdin to binary mode.
32876         * modules/yesno-tests (Depends-on): Add binary-io.
32877
32878 2008-04-27  Bruno Haible  <bruno@clisp.org>
32879
32880         Fix 'isfinite' on x86, x86_64, ia64 platforms.
32881         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
32882         argument that lie outside the IEEE 854 domain.
32883         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
32884         (gl_ISFINITE): Use it.
32885         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
32886
32887 2008-04-27  Bruno Haible  <bruno@clisp.org>
32888
32889         Allow local renaming in config.h.
32890         * lib/memrchr.c (memrchr): Don't undefine outside libc.
32891
32892 2008-04-27  Bruno Haible  <bruno@clisp.org>
32893
32894         * lib/memchr.c (__memchr): Change type of 'i'.
32895         * lib/memchr2.c (memchr2): Likewise.
32896
32897 2008-04-26  Eric Blake  <ebb9@byu.net>
32898         and Bruno Haible  <bruno@clisp.org>
32899
32900         Optimize and test memrchr.
32901         * modules/memrchr (Depends-on): Add intprops.
32902         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
32903         * modules/memrchr-tests: New file.
32904         * tests/test-memrchr.c: New file.
32905
32906 2008-04-26  Bruno Haible  <bruno@clisp.org>
32907
32908         Add tentative support for DragonFly BSD.
32909         * lib/stdio-impl.h: Add macros for DragonFly BSD.
32910         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
32911         fp.
32912         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
32913         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
32914         * lib/fpurge.c (fpurge): Likewise.
32915         * lib/freadable.c (freaadable): Likewise.
32916         * lib/freadahead.c (freadahead): Likewise.
32917         * lib/freading.c (freading): Likewise.
32918         * lib/freadptr.c (freadptr): Likewise.
32919         * lib/freadseek.c (freadptrinc): Likewise.
32920         * lib/fseeko.c (fseeko): Likewise.
32921         * lib/fseterr.c (fseterr): Likewise.
32922         * lib/fwritable.c (fwritable): Likewise.
32923         * lib/fwriting.c (fwriting): Likewise.
32924
32925 2008-04-26  Bruno Haible  <bruno@clisp.org>
32926
32927         * lib/stdio-impl.h: New file.
32928         * lib/fbufmode.c: Include stdio-impl.h.
32929         (fbufmode): Use fp_, remove redundant #defines.
32930         * lib/fflush.c: Include stdio-impl.h.
32931         (clear_ungetc_buffer): Remove redundant #defines.
32932         * lib/fpurge.c: Include stdio-impl.h.
32933         (fpurge): Remove redundant #defines.
32934         * lib/freadable.c: Include stdio-impl.h.
32935         (freadable): Remove redundant #defines.
32936         * lib/freadahead.c: Include stdio-impl.h.
32937         (freadahead): Remove redundant #defines.
32938         * lib/freading.c: Include stdio-impl.h.
32939         (freading): Remove redundant #defines.
32940         * lib/freadptr.c: Include stdio-impl.h.
32941         (freadptr): Remove redundant #defines.
32942         * lib/freadseek.c: Include stdio-impl.h.
32943         (freadptrinc): Remove redundant #defines.
32944         * lib/fseeko.c: Include stdio-impl.h.
32945         (rpl_fseeko): Remove redundant #defines.
32946         * lib/fseterr.c: Include stdio-impl.h.
32947         (fseterr): Remove redundant #defines.
32948         * lib/fwritable.c: Include stdio-impl.h.
32949         (fwritable: Remove redundant #defines.
32950         * lib/fwriting.c: Include stdio-impl.h.
32951         (fwriting): Remove redundant #defines.
32952         * modules/fbufmode (Files): Add lib/stdio-impl.h.
32953         * modules/fflush (Files): Likewise.
32954         * modules/fpurge (Files): Likewise.
32955         * modules/freadable (Files): Likewise.
32956         * modules/freadahead (Files): Likewise.
32957         * modules/freading (Files): Likewise.
32958         * modules/freadptr (Files): Likewise.
32959         * modules/freadseek (Files): Likewise.
32960         * modules/fseeko (Files): Likewise.
32961         * modules/fseterr (Files): Likewise.
32962         * modules/fwritable (Files): Likewise.
32963         * modules/fwriting (Files): Likewise.
32964
32965 2008-04-26  Bruno Haible  <bruno@clisp.org>
32966
32967         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
32968         restore_seek_optimization, update_fpos_cache): New functions, extracted
32969         from rpl_fflush.
32970         (rpl_fflush): Use them.
32971         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
32972         (gl_REPLACE_FFLUSH): Use it.
32973
32974 2008-04-26  Bruno Haible  <bruno@clisp.org>
32975
32976         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
32977         on Solaris.
32978         * tests/test-xstrtoimax.sh: Likewise.
32979         * tests/test-xstrtoumax.sh: Likewise.
32980         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32981
32982 2008-04-26  Bruno Haible  <bruno@clisp.org>
32983
32984         * modules/memchr-tests: New file.
32985         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
32986
32987 2008-04-26  Eric Blake  <ebb9@byu.net>
32988             Bruno Haible  <bruno@clisp.org>
32989
32990         * lib/memchr.c: Include intprops.h.
32991         (__memchr): Optimize parallel detection of matching bytes. Rename local
32992         variables. Add explanatory comments.
32993
32994 2008-04-26  Bruno Haible  <bruno@clisp.org>
32995
32996         Fix module 'memchr', broken since 2000-10-28.
32997         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
32998
32999 2008-04-26  Bruno Haible  <bruno@clisp.org>
33000
33001         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
33002         comments.
33003
33004 2008-04-25  Eric Blake  <ebb9@byu.net>
33005
33006         Use native fstatat on cygwin 1.7.0.
33007         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
33008         first.
33009
33010 2008-04-23  Eric Blake  <ebb9@byu.net>
33011
33012         Improve memchr2 performance.
33013         * lib/memchr2.c (memchr2): Further optimize parallel detection of
33014         NUL bytes.
33015         * modules/memchr2 (Depends-on): Use intprops.h.
33016
33017 2008-04-23  Simon Josefsson  <simon@josefsson.org>
33018
33019         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
33020         an inline function instead of a CPP macro.  Patch by Ben Pfaff
33021         <blp@cs.stanford.edu>.
33022
33023 2008-04-23  Simon Josefsson  <simon@josefsson.org>
33024
33025         * lib/arpa_inet.in.h: New file.
33026
33027         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
33028         (Makefile.am): Sed in substitute header file.
33029
33030         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
33031         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
33032
33033         * modules/inet_ntop (configure.ac): Use
33034         gl_ARPA_INET_MODULE_INDICATOR.
33035
33036         * modules/inet_pton (configure.ac): Use
33037         gl_ARPA_INET_MODULE_INDICATOR.
33038
33039 2008-04-22  Jim Meyering  <meyering@redhat.com>
33040
33041         * modules/verify (License): Re-license as LGPLv2+.
33042
33043 2008-04-22  Simon Josefsson  <simon@josefsson.org>
33044
33045         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
33046         parameter to void* as per POSIX standard (MinGW uses char*).
33047
33048 2008-04-21  Bruno Haible  <bruno@clisp.org>
33049
33050         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
33051         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
33052         Define to replacements if REPLACE_ISWCNTRL is 1.
33053         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
33054         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
33055         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
33056         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
33057         what it fixes.
33058         * doc/posix-functions/iswalpha.texi: Likewise.
33059         * doc/posix-functions/iswblank.texi: Likewise.
33060         * doc/posix-functions/iswcntrl.texi: Likewise.
33061         * doc/posix-functions/iswdigit.texi: Likewise.
33062         * doc/posix-functions/iswgraph.texi: Likewise.
33063         * doc/posix-functions/iswlower.texi: Likewise.
33064         * doc/posix-functions/iswprint.texi: Likewise.
33065         * doc/posix-functions/iswpunct.texi: Likewise.
33066         * doc/posix-functions/iswspace.texi: Likewise.
33067         * doc/posix-functions/iswupper.texi: Likewise.
33068         * doc/posix-functions/iswxdigit.texi: Likewise.
33069         Reported by Alain Guibert.
33070
33071 2008-04-21  Bruno Haible  <bruno@clisp.org>
33072
33073         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
33074         Patch by Alain Guibert.
33075
33076 2008-04-21  Bruno Haible  <bruno@clisp.org>
33077
33078         Fix test failures on mingw.
33079         * tests/test-xstrtol.c (print_no_progname): New function.
33080         (main): Install it in error_print_progname hook.
33081         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
33082         * tests/test-xstrtoimax.sh: Likewise.
33083         * tests/test-xstrtoumax.sh: Likewise.
33084
33085 2008-04-21  Bruno Haible  <bruno@clisp.org>
33086
33087         Fix test failure on mingw.
33088         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
33089
33090 2008-04-21  Bruno Haible  <bruno@clisp.org>
33091
33092         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
33093         Actually assign a value.
33094
33095 2008-04-20  Bruno Haible  <bruno@clisp.org>
33096
33097         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
33098         take 2.
33099         * lib/canonicalize.c (canonicalize_file_name): Elide if the
33100         'canonicalize-lgpl' module is also used.
33101         * lib/canonicalize-lgpl.c: Undo last change.
33102         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
33103
33104 2008-04-20  Bruno Haible  <bruno@clisp.org>
33105
33106         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
33107         config.h. Provide _mkdir based fallback for mingw.
33108         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
33109         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
33110         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
33111         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
33112         rather than defining mkdir in config.h.
33113         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
33114         (gl_SYS_STAT_H_DEFAULTS): New macro.
33115         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
33116         HAVE_IO_H any more.
33117         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
33118         HAVE_DECL_MKDIR and HAVE_IO_H.
33119
33120 2008-04-20  Bruno Haible  <bruno@clisp.org>
33121
33122         * lib/isapipe.c: Port to native Windows platforms.
33123
33124 2008-04-20  Bruno Haible  <bruno@clisp.org>
33125
33126         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
33127
33128 2008-04-21  Eric Blake  <ebb9@byu.net>
33129
33130         Work around preprocessors that don't handle UINTMAX_MAX.
33131         * lib/memchr2.c (memchr2): Avoid embedded #if.
33132         Reported by Alain Guibert, fix suggested by Bruno Haible.
33133
33134 2008-04-21  Simon Josefsson  <simon@josefsson.org>
33135
33136         * doc/posix-functions/strftime.texi (strftime): Explain better
33137         Windows incompatibility.  Suggested by Micah Cowan
33138         <micah@cowan.name>.
33139
33140 2008-04-20  Bruno Haible  <bruno@clisp.org>
33141
33142         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
33143         unistr/u8-mblen.
33144
33145 2008-04-20  Bruno Haible  <bruno@clisp.org>
33146
33147         Fix test failure on platforms with non-GNU iconv.
33148         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
33149         (U_TO_U8): Use it, rather than u16_to_u8.
33150         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
33151         units at the end of the input string.
33152         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
33153
33154 2008-04-20  Bruno Haible  <bruno@clisp.org>
33155
33156         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
33157         when the resulting length is 0.
33158         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
33159
33160 2008-04-20  Bruno Haible  <bruno@clisp.org>
33161
33162         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
33163         works.
33164         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
33165
33166 2008-04-20  Bruno Haible  <bruno@clisp.org>
33167
33168         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
33169         * modules/tsearch-tests (configure.ac): Test for initstate function.
33170
33171 2008-04-20  Bruno Haible  <bruno@clisp.org>
33172
33173         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
33174         for nlink_t if missing.
33175         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
33176
33177 2008-04-19  Bruno Haible  <bruno@clisp.org>
33178
33179         Work around snprintf bug on Linux libc5.
33180         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
33181         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33182         gl_SNPRINTF_SIZE1.
33183         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33184         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
33185         that test failed.
33186         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
33187         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
33188         * modules/snprintf (Files): Add m4/printf.m4.
33189         * modules/vsnprintf (Files): Likewise.
33190         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
33191         * doc/posix-functions/vsnprintf.texi: Likewise.
33192
33193 2008-04-19  Bruno Haible  <bruno@clisp.org>
33194
33195         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
33196         from 0.0058 to less than 10^-7.
33197
33198 2008-04-19  Bruno Haible  <bruno@clisp.org>
33199
33200         Fix rounding when a precision is given.
33201         * lib/vasnprintf.c (is_borderline): New function.
33202         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
33203         9...9x.
33204         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
33205         %e, %g.
33206         * tests/test-vasprintf-posix.c (test_function): Likewise.
33207         * tests/test-snprintf-posix.h (test_function): Likewise.
33208         * tests/test-sprintf-posix.h (test_function): Likewise.
33209         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
33210         * tests/test-printf-posix.h (test_function): Likewise.
33211         * tests/test-printf-posix.output: Update.
33212         Reported by John Darrington <john@darrington.wattle.id.au> via
33213         Ben Pfaff <blp@cs.stanford.edu>.
33214
33215 2008-04-18  Simon Josefsson  <simon@josefsson.org>
33216
33217         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
33218         Suggested by Bruno Haible <bruno@clisp.org>.
33219
33220 2008-04-17  Bruno Haible  <bruno@clisp.org>
33221
33222         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
33223         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
33224         implementation.
33225         Patch by Bruce Merry <bmerry@gmail.com>.
33226
33227 2008-04-17  Simon Josefsson  <simon@josefsson.org>
33228
33229         * doc/posix-functions/strftime.texi (strftime): Mention that %e
33230         doesn't work under Windows.
33231
33232 2008-04-16  Bruno Haible  <bruno@clisp.org>
33233
33234         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
33235         New macros.
33236         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
33237         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
33238         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
33239         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
33240         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
33241         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
33242         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
33243         macros.
33244         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
33245         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
33246         Northern Sotho, Uighur.
33247
33248 2008-04-16  Bruno Haible  <bruno@clisp.org>
33249
33250         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
33251         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
33252         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
33253         Reported by Daniel Bergström <daniel@octocode.com>.
33254
33255 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
33256             Bruno Haible  <bruno@clisp.org>
33257
33258         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
33259         function.
33260         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
33261         New functions, mostly extracted from gl_locale_name_default.
33262         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
33263
33264 2008-04-16  Eric Blake  <ebb9@byu.net>
33265
33266         Adjust strtod detection to catch glibc 2.7 bug.
33267         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
33268         Reported by John Gatewood Ham.
33269
33270 2008-04-16  Bruno Haible  <bruno@clisp.org>
33271
33272         Add tentative support for Linux libc5.
33273         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
33274         * lib/fpurge.c (fpurge): Likewise.
33275         * lib/freadable.c (freadable): Likewise.
33276         * lib/freadahead.c (freadahead): Likewise.
33277         * lib/freading.c (freading): Likewise.
33278         * lib/freadptr.c (freadptr): Likewise.
33279         * lib/freadseek.c (freadptrinc): Likewise.
33280         * lib/fseeko.c (rpl_fseeko): Likewise.
33281         * lib/fseterr.c (fseterr): Likewise.
33282         * lib/fwritable.c (fwritable): Likewise.
33283         * lib/fwriting.c (fwriting): Likewise.
33284         Reported by Alain Guibert <alguibert+bts@free.fr>.
33285
33286 2008-04-15  Bruno Haible  <bruno@clisp.org>
33287
33288         * modules/mathl (configure.ac): Define module indicator.
33289
33290 2008-04-15  Bruno Haible  <bruno@clisp.org>
33291
33292         * lib/logl.c (logl): Remove unused variables.
33293
33294 2008-04-15  Bruno Haible  <bruno@clisp.org>
33295
33296         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
33297         fails.
33298
33299 2008-04-15  Bruno Haible  <bruno@clisp.org>
33300
33301         * lib/trim.c (trim2): Fix argument of isspace() macro.
33302
33303 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
33304
33305         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
33306         to 0.
33307         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
33308
33309 2008-04-14  Bruno Haible  <bruno@clisp.org>
33310
33311         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
33312         AC_LANG_PROGRAM argument.
33313         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
33314         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
33315         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
33316         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
33317         * m4/math_h.m4 (gl_MATH_H): Likewise.
33318         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
33319         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
33320         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
33321         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
33322         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
33323         * m4/regex.m4 (gl_REGEX): Likewise.
33324         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
33325         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
33326         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
33327         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
33328         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
33329         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
33330         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33331         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
33332
33333 2008-04-14  Jim Meyering  <meyering@redhat.com>
33334
33335         test-strtod: fix typos: s/abs/fabs/
33336         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
33337
33338 2008-04-13  Bruno Haible  <bruno@clisp.org>
33339
33340         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
33341         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
33342         module is also used and while not building the reloc-wrapper.
33343
33344 2008-04-13  Bruno Haible  <bruno@clisp.org>
33345
33346         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
33347
33348 2008-04-13  Bruno Haible  <bruno@clisp.org>
33349
33350         Fix AIX compilation failure introduced on 2008-04-02.
33351         * tests/test-frexp.c (exp): Undefine before redefining.
33352         * tests/test-frexpl.c (exp): Likewise.
33353
33354 2008-04-13  Bruno Haible  <bruno@clisp.org>
33355
33356         Work around a HP-UX stdio bug.
33357         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
33358         * tests/test-ftello.c (main): Likewise.
33359         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
33360         * doc/posix-functions/ftello.texi: Likewise.
33361
33362 2008-04-13  Bruno Haible  <bruno@clisp.org>
33363
33364         Make test-signbit pass on HP-UX/hppa.
33365         * tests/test-signbit.c (minus_zerol): New variable.
33366         (test_signbitl): Use it.
33367
33368 2008-04-13  Bruno Haible  <bruno@clisp.org>
33369
33370         Make truncl work on OSF/1 4.0.
33371         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
33372         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
33373         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
33374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
33375         HAVE_DECL_TRUNCL.
33376         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
33377         HAVE_DECL_TRUNCL.
33378         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
33379
33380 2008-04-13  Bruno Haible  <bruno@clisp.org>
33381
33382         * lib/unictype.h: Remove trailing comma from enumeration definitions.
33383
33384 2008-04-13  Bruno Haible  <bruno@clisp.org>
33385
33386         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
33387         expression, so as to avoid HP-UX 11 cc compiler bug.
33388
33389 2008-04-13  Bruno Haible  <bruno@clisp.org>
33390
33391         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
33392
33393 2008-04-13  Bruno Haible  <bruno@clisp.org>
33394
33395         * lib/git-merge-changelog.c: Remove empty declaration outside of
33396         functions.
33397
33398 2008-04-13  Bruno Haible  <bruno@clisp.org>
33399
33400         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
33401
33402 2008-04-13  Bruno Haible  <bruno@clisp.org>
33403
33404         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
33405         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
33406         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
33407         also if it exists but lacks definitions of the SHUT_* macros.
33408         * modules/sys_socket (Description): Update.
33409         Reported by Elbert Pol <e.pol@chello.nl>.
33410
33411 2008-04-13  Bruno Haible  <bruno@clisp.org>
33412
33413         * lib/localcharset.c (OS2): Don't redefine if already defined.
33414         Reported by Elbert Pol <e.pol@chello.nl>.
33415
33416 2008-04-13  Bruno Haible  <bruno@clisp.org>
33417
33418         * lib/binary-io.h [__EMX__]: Include <io.h>.
33419         Reported by Elbert Pol <e.pol@chello.nl>.
33420
33421 2008-04-12  Bruno Haible  <bruno@clisp.org>
33422
33423         * lib/fpucw.h: Enable the definitions also for x86_64.
33424         Needed for NetBSD/x86_64.
33425         Reported by Thomas Klausner <tk@giga.or.at>.
33426
33427 2008-04-12  Bruno Haible  <bruno@clisp.org>
33428
33429         * tests/test-strtod.c: Include isnand.h.
33430         (main): Use isnand instead of isnan.
33431         Reported by Jim Meyering.
33432
33433 2008-04-12  Bruno Haible  <bruno@clisp.org>
33434
33435         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
33436         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
33437
33438 2008-04-12  Jim Meyering  <meyering@redhat.com>
33439
33440         * m4/math_h.m4 (gl_MATH_H): Fix typos.
33441
33442 2008-04-12  Bruno Haible  <bruno@clisp.org>
33443
33444         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
33445         Reported by Elbert Pol <e.pol@chello.nl>.
33446
33447 2008-04-12  Eric Blake  <ebb9@byu.net>
33448
33449         Work around Solaris 10 math.h bug.
33450         * m4/math_h.m4 (gl_MATH_H): Check for bug.
33451         (gl_MATH_H_DEFAULTS): Set up default.
33452         * modules/math (Makefile.am): Replace new indicators.
33453         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
33454         * tests/test-math.c (main): Test this.
33455         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
33456         * doc/posix-headers/math.texi (math.h): Mention bug.
33457         Reported by Nelson H. F. Beebe and Jim Meyering.
33458
33459 2008-04-11  Bruno Haible  <bruno@clisp.org>
33460
33461         Adapt to future versions of Apple GCC.
33462         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
33463         Reported by Peter O'Gorman <peter@pogma.com>.
33464
33465 2008-04-11  Bruno Haible  <bruno@clisp.org>
33466
33467         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
33468
33469 2008-04-11  Bruno Haible  <bruno@clisp.org>
33470
33471         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
33472
33473         * modules/getaddrinfo-tests (Makefile.am): Define
33474         test_getaddrinfo_LDADD.
33475
33476 2008-04-11  Bruno Haible  <bruno@clisp.org>
33477
33478         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
33479         (init): Fix syntax error.
33480         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
33481         is declared.
33482
33483 2008-04-11  Bruno Haible  <bruno@clisp.org>
33484
33485         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
33486         * modules/glob (Depends-on): Add stdbool.
33487
33488 2008-04-11  Bruno Haible  <bruno@clisp.org>
33489
33490         * lib/trim.c: Include <string.h>.
33491
33492 2008-04-11  Eric Blake  <ebb9@byu.net>
33493
33494         Avoid compile failure on OS/2.
33495         * lib/regex_internal.h (internal_function): Disable optimization
33496         on OS/2 (__EMX__), where it caused compiler error.
33497         Reported by Elbert Pol.
33498
33499 2008-04-11  Bruno Haible  <bruno@clisp.org>
33500
33501         Flush the standard error stream before aborting. Needed on mingw.
33502         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
33503         * tests/test-array_list.c (ASSERT): Likewise.
33504         * tests/test-array_oset.c (ASSERT): Likewise.
33505         * tests/test-avltree_list.c (ASSERT): Likewise.
33506         * tests/test-avltree_oset.c (ASSERT): Likewise.
33507         * tests/test-avltreehash_list.c (ASSERT): Likewise.
33508         * tests/test-binary-io.c (ASSERT): Likewise.
33509         * tests/test-byteswap.c (ASSERT): Likewise.
33510         * tests/test-c-ctype.c (ASSERT): Likewise.
33511         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
33512         * tests/test-c-strcasestr.c (ASSERT): Likewise.
33513         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
33514         * tests/test-c-strstr.c (ASSERT): Likewise.
33515         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
33516         * tests/test-canonicalize.c (ASSERT): Likewise.
33517         * tests/test-carray_list.c (ASSERT): Likewise.
33518         * tests/test-ceilf1.c (ASSERT): Likewise.
33519         * tests/test-ceilf2.c (ASSERT): Likewise.
33520         * tests/test-ceill.c (ASSERT): Likewise.
33521         * tests/test-count-one-bits.c (ASSERT): Likewise.
33522         * tests/test-fbufmode.c (ASSERT): Likewise.
33523         * tests/test-fflush2.c (ASSERT): Likewise.
33524         * tests/test-floorf1.c (ASSERT): Likewise.
33525         * tests/test-floorf2.c (ASSERT): Likewise.
33526         * tests/test-floorl.c (ASSERT): Likewise.
33527         * tests/test-fopen.c (ASSERT): Likewise.
33528         * tests/test-fpending.c (ASSERT): Likewise.
33529         * tests/test-fprintf-posix.c (ASSERT): Likewise.
33530         * tests/test-fpurge.c (ASSERT): Likewise.
33531         * tests/test-freadable.c (ASSERT): Likewise.
33532         * tests/test-freadahead.c (ASSERT): Likewise.
33533         * tests/test-freading.c (ASSERT): Likewise.
33534         * tests/test-freadptr.c (ASSERT): Likewise.
33535         * tests/test-freadptr2.c (ASSERT): Likewise.
33536         * tests/test-freadseek.c (ASSERT): Likewise.
33537         * tests/test-freopen.c (ASSERT): Likewise.
33538         * tests/test-frexp.c (ASSERT): Likewise.
33539         * tests/test-frexpl.c (ASSERT): Likewise.
33540         * tests/test-fseek.c (ASSERT): Likewise.
33541         * tests/test-fseeko.c (ASSERT): Likewise.
33542         * tests/test-fstrcmp.c (ASSERT): Likewise.
33543         * tests/test-ftell.c (ASSERT): Likewise.
33544         * tests/test-ftello.c (ASSERT): Likewise.
33545         * tests/test-func.c (ASSERT): Likewise.
33546         * tests/test-fwritable.c (ASSERT): Likewise.
33547         * tests/test-fwriting.c (ASSERT): Likewise.
33548         * tests/test-getdelim.c (ASSERT): Likewise.
33549         * tests/test-getline.c (ASSERT): Likewise.
33550         * tests/test-i-ring.c (ASSERT): Likewise.
33551         * tests/test-iconv-utf.c (ASSERT): Likewise.
33552         * tests/test-iconv.c (ASSERT): Likewise.
33553         * tests/test-isfinite.c (ASSERT): Likewise.
33554         * tests/test-isnand.c (ASSERT): Likewise.
33555         * tests/test-isnanf.c (ASSERT): Likewise.
33556         * tests/test-isnanl.h (ASSERT): Likewise.
33557         * tests/test-ldexpl.c (ASSERT): Likewise.
33558         * tests/test-linked_list.c (ASSERT): Likewise.
33559         * tests/test-linkedhash_list.c (ASSERT): Likewise.
33560         * tests/test-localename.c (ASSERT): Likewise.
33561         * tests/test-lseek.c (ASSERT): Likewise.
33562         * tests/test-mbscasecmp.c (ASSERT): Likewise.
33563         * tests/test-mbscasestr1.c (ASSERT): Likewise.
33564         * tests/test-mbscasestr2.c (ASSERT): Likewise.
33565         * tests/test-mbscasestr3.c (ASSERT): Likewise.
33566         * tests/test-mbscasestr4.c (ASSERT): Likewise.
33567         * tests/test-mbschr.c (ASSERT): Likewise.
33568         * tests/test-mbscspn.c (ASSERT): Likewise.
33569         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
33570         * tests/test-mbspbrk.c (ASSERT): Likewise.
33571         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
33572         * tests/test-mbsrchr.c (ASSERT): Likewise.
33573         * tests/test-mbsspn.c (ASSERT): Likewise.
33574         * tests/test-mbsstr1.c (ASSERT): Likewise.
33575         * tests/test-mbsstr2.c (ASSERT): Likewise.
33576         * tests/test-mbsstr3.c (ASSERT): Likewise.
33577         * tests/test-memchr2.c (ASSERT): Likewise.
33578         * tests/test-memmem.c (ASSERT): Likewise.
33579         * tests/test-open.c (ASSERT): Likewise.
33580         * tests/test-printf-frexp.c (ASSERT): Likewise.
33581         * tests/test-printf-frexpl.c (ASSERT): Likewise.
33582         * tests/test-printf-posix.c (ASSERT): Likewise.
33583         * tests/test-quotearg.c (ASSERT): Likewise.
33584         * tests/test-rbtree_list.c (ASSERT): Likewise.
33585         * tests/test-rbtree_oset.c (ASSERT): Likewise.
33586         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
33587         * tests/test-round1.c (ASSERT): Likewise.
33588         * tests/test-roundf1.c (ASSERT): Likewise.
33589         * tests/test-roundl.c (ASSERT): Likewise.
33590         * tests/test-signbit.c (ASSERT): Likewise.
33591         * tests/test-sleep.c (ASSERT): Likewise.
33592         * tests/test-snprintf-posix.c (ASSERT): Likewise.
33593         * tests/test-snprintf.c (ASSERT): Likewise.
33594         * tests/test-sprintf-posix.c (ASSERT): Likewise.
33595         * tests/test-stat-time.c (ASSERT): Likewise.
33596         * tests/test-strcasestr.c (ASSERT): Likewise.
33597         * tests/test-strerror.c (ASSERT): Likewise.
33598         * tests/test-striconv.c (ASSERT): Likewise.
33599         * tests/test-striconveh.c (ASSERT): Likewise.
33600         * tests/test-striconveha.c (ASSERT): Likewise.
33601         * tests/test-strsignal.c (ASSERT): Likewise.
33602         * tests/test-strstr.c (ASSERT): Likewise.
33603         * tests/test-strtod.c (ASSERT): Likewise.
33604         * tests/test-trunc1.c (ASSERT): Likewise.
33605         * tests/test-trunc2.c (ASSERT): Likewise.
33606         * tests/test-truncf1.c (ASSERT): Likewise.
33607         * tests/test-truncf2.c (ASSERT): Likewise.
33608         * tests/test-truncl.c (ASSERT): Likewise.
33609         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
33610         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
33611         * tests/test-vasnprintf.c (ASSERT): Likewise.
33612         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
33613         * tests/test-vasprintf.c (ASSERT): Likewise.
33614         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
33615         * tests/test-vprintf-posix.c (ASSERT): Likewise.
33616         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
33617         * tests/test-vsnprintf.c (ASSERT): Likewise.
33618         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
33619         * tests/test-wcwidth.c (ASSERT): Likewise.
33620         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
33621         * tests/test-xprintf-posix.c (ASSERT): Likewise.
33622         * tests/test-xvasprintf.c (ASSERT): Likewise.
33623         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
33624         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
33625         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
33626         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
33627         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
33628         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
33629         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
33630         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
33631         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
33632         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
33633         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
33634         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
33635         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
33636         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
33637         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
33638         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
33639         * tests/unictype/test-block_list.c (ASSERT): Likewise.
33640         * tests/unictype/test-block_of.c (ASSERT): Likewise.
33641         * tests/unictype/test-block_test.c (ASSERT): Likewise.
33642         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
33643         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
33644         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
33645         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
33646         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
33647         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
33648         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
33649         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
33650         * tests/unictype/test-combining.c (ASSERT): Likewise.
33651         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
33652         * tests/unictype/test-digit.c (ASSERT): Likewise.
33653         * tests/unictype/test-mirror.c (ASSERT): Likewise.
33654         * tests/unictype/test-numeric.c (ASSERT): Likewise.
33655         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
33656         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
33657         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
33658         * tests/unictype/test-scripts.c (ASSERT): Likewise.
33659         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
33660         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
33661         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
33662         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
33663         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
33664         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
33665         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
33666         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
33667         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
33668         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
33669         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
33670         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
33671         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
33672         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
33673         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
33674         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
33675         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
33676         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
33677         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
33678         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
33679         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
33680         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
33681         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
33682         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
33683         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
33684         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
33685         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
33686         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
33687         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
33688         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
33689         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
33690         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
33691         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
33692         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
33693         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
33694         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
33695         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
33696         Reported by Eric Blake.
33697
33698 2008-04-11  Bruno Haible  <bruno@clisp.org>
33699
33700         * lib/wchar.in.h: Tweak comment.
33701
33702 2008-04-11  Bruno Haible  <bruno@clisp.org>
33703
33704         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
33705         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
33706         gl_COMMON.
33707         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
33708
33709 2008-04-11  Bruno Haible  <bruno@clisp.org>
33710
33711         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
33712
33713 2008-04-11  Simon Josefsson  <simon@josefsson.org>
33714
33715         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
33716         of attempting to use non-existing /dev/*random.  Based on patch
33717         from Adam Strzelecki <ono@java.pl> in
33718         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
33719
33720 2008-04-08  Bruno Haible  <bruno@clisp.org>
33721
33722         Add tentative support for emx+gcc.
33723         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
33724         * lib/fpurge.c (fpurge): Likewise.
33725         * lib/freadable.c (freadable): Likewise.
33726         * lib/freadahead.c (freadahead): Likewise.
33727         * lib/freading.c (freading): Likewise.
33728         * lib/freadptr.c (freadptr): Likewise.
33729         * lib/freadseek.c (freadptrinc): Likewise.
33730         * lib/fseeko.c (rpl_fseeko): Likewise.
33731         * lib/fseterr.c (fseterr): Likewise.
33732         * lib/fwritable.c (fwritable): Likewise.
33733         * lib/fwriting.c (fwriting): Likewise.
33734         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
33735
33736 2008-04-09  Eric Blake  <ebb9@byu.net>
33737
33738         Avoid some autoconf warnings.
33739         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
33740         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
33741         * m4/afs.m4 (gl_AFS): Likewise.
33742         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
33743         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
33744         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
33745         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
33746         (gl_INTEGER_TYPE_SUFFIX): Likewise.
33747         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
33748         (AC_CHECK_DECLS_ONCE): Likewise.
33749         Rename file...
33750         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
33751         gnulib-tool requires autoconf 2.59 or better.
33752         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
33753
33754 2008-04-08  Eric Blake  <ebb9@byu.net>
33755
33756         Use 'git describe --match' if present (added in git 1.5.5).
33757         * build-aux/git-version-gen: Limit result to tags that match 'v*'
33758         if possible.
33759
33760 2008-04-08  Bruno Haible  <bruno@clisp.org>
33761
33762         Add tentative support for OpenServer.
33763         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
33764         _ptr, _cnt.
33765         * lib/fpurge.c (fpurge): Likewise.
33766         * lib/freadable.c (freadable): Likewise.
33767         * lib/freadahead.c (freadahead): Likewise.
33768         * lib/freading.c (freading): Likewise.
33769         * lib/freadptr.c (freadptr): Likewise.
33770         * lib/freadseek.c (freadptrinc): Likewise.
33771         * lib/fseeko.c (rpl_fseeko): Likewise.
33772         * lib/fseterr.c (fseterr): Likewise.
33773         * lib/fwritable.c (fwritable): Likewise.
33774         * lib/fwriting.c (fwriting): Likewise.
33775         Reported by Roger Cornelius <rac@tenzing.org> and
33776         Brian K. White <brian@aljex.com>.
33777
33778 2008-04-06  Jim Meyering  <meyering@redhat.com>
33779
33780         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
33781
33782 2008-04-06  Bruno Haible  <bruno@clisp.org>
33783
33784         Avoid possible error with non-ASCII bytes in UTF-8 locales.
33785         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
33786         * tests/test-printf-posix.sh: Likewise.
33787         * tests/test-vfprintf-posix.sh: Likewise.
33788         * tests/test-vprintf-posix.sh: Likewise.
33789         * tests/test-xprintf-posix.sh: Likewise.
33790
33791 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33792
33793         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
33794         hide error from 'ls', needed on OS/2.
33795         Report by Elbert Pol <elbert.pol@gmail.com>.
33796
33797 2008-04-04  Eric Blake  <ebb9@byu.net>
33798
33799         Make test-fseeko.c failures meaningful.
33800         * tests/test-fseeko.c: Print line number on failure.
33801         * tests/test-fseek.c: Likewise.
33802         Reported by Nelson H. F. Beebe.
33803
33804         Improve strtod bug detection check.
33805         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
33806         required for Solaris 10.
33807         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
33808
33809 2008-04-04  Bruno Haible  <bruno@clisp.org>
33810
33811         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
33812         by m4/setenv.m4.
33813
33814 2008-04-03  Eric Blake  <ebb9@byu.net>
33815
33816         Ensure sane .version contents.
33817         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
33818         version string.
33819         * build-aux/git-version-gen: Improve documentation.
33820
33821         Make GNU make output nicer.
33822         * top/GNUmakefile [!_have-Makefile]: Add dependency on
33823         MAKECMDGOALS to enforce message for all command line targets.  Set
33824         srcdir for use in maint.mk.
33825
33826         Another maintainer tweak.
33827         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
33828         a target that regenerates version.
33829
33830 2008-04-03  Jim Meyering  <meyering@redhat.com>
33831
33832         vc-list-files: don't cause coreutils "make po-check" failure
33833         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
33834
33835 2008-04-03  Eric Blake  <ebb9@byu.net>
33836
33837         Allow VPATH usage of vc-list-files.
33838         * build-aux/vc-list-files (scriptversion): Add timestamp.
33839         (options): Add --help, --version, -C.
33840         (CVS): Support installed cvsu.
33841
33842 2008-04-02  Bruno Haible  <bruno@clisp.org>
33843
33844         Avoid some "statement with no effect" warnings from gcc.
33845         * tests/test-wctype.c (main): Explicitly ignore unused values.
33846         Reported by Jim Meyering.
33847
33848 2008-04-02  Jim Meyering  <meyering@redhat.com>
33849
33850         Avoid some warnings from "gcc -Wshadow".
33851         * tests/test-frexp.c (exp): Define to a different identifier.
33852         * tests/test-frexpl.c (exp): Likewise.
33853
33854 2008-04-03  Jim Meyering  <meyering@redhat.com>
33855
33856         bootstrap: remove dangling *.[ch] symlinks from lib
33857         * build-aux/bootstrap [dangling symlink removal]: Move find's
33858         -depth option to precede all others, to avoid a warning.
33859         Remove *.[ch] files too, and from "$source_base" (usually lib/).
33860
33861 2008-04-02  Bruno Haible  <bruno@clisp.org>
33862
33863         Avoid some warnings from "gcc -Wshadow".
33864         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
33865         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
33866         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
33867         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
33868         Reported by Jim Meyering.
33869
33870 2008-04-01  Bruno Haible  <bruno@clisp.org>
33871
33872         Fix test to work on IRIX 6.5 with cc.
33873         * tests/test-math.c (numeric_equal): New function.
33874         (main): Use it.
33875
33876 2008-04-01  Bruno Haible  <bruno@clisp.org>
33877
33878         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
33879
33880 2008-04-01  Bruno Haible  <bruno@clisp.org>
33881
33882         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
33883         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33884         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
33885         (Depends-on): Remove math.
33886
33887         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
33888         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33889         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
33890         (Depends-on): Remove math.
33891
33892         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
33893         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33894         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
33895         (Depends-on): Remove math.
33896         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
33897         (Depends-on): Remove math.
33898
33899         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
33900         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
33901         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
33902         (Depends-on): Remove math.
33903         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
33904         (Depends-on): Remove math.
33905
33906         * tests/test-round1.c: Include nan.h.
33907         (main): Use NaNd instead of NAN.
33908         * modules/round-tests (Files): Add tests/nan.h.
33909
33910         * tests/test-trunc1.c: Include nan.h.
33911         (main): Use NaNd instead of NAN.
33912         * modules/trunc-tests (Files): Add tests/nan.h.
33913
33914         * tests/test-roundf1.c: Include nan.h.
33915         (main): Use NaNf instead of NAN.
33916         * modules/roundf-tests (Files): Add tests/nan.h.
33917
33918         * tests/test-truncf1.c: Include nan.h.
33919         (main): Use NaNf instead of NAN.
33920         * modules/truncf-tests (Files): Add tests/nan.h.
33921
33922         * tests/test-ceilf1.c: Include nan.h.
33923         (main): Use NaNf instead of NAN.
33924         * modules/ceilf-tests (Files): Add tests/nan.h.
33925
33926         * tests/test-floorf1.c: Include nan.h.
33927         (main): Use NaNf instead of NAN.
33928         * modules/floorf-tests (Files): Add tests/nan.h.
33929
33930         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
33931         (main): Use NaNf instead of NAN.
33932         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
33933
33934         * tests/test-isnand.c: Include nan.h instead of <math.h>.
33935         (main): Use NaNd instead of NAN.
33936         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
33937
33938         * tests/test-frexp.c: Include nan.h.
33939         (main): Use NaNd instead of NAN.
33940         * modules/frexp-tests (Files): Add tests/nan.h.
33941
33942         * lib/isnan.c: Don't include <math.h>.
33943         (FUNC): Don't use NAN macro.
33944         * modules/isnand-nolibm (Depends-on): Remove math.
33945         * modules/isnanf-nolibm (Depends-on): Remove math.
33946         * modules/isnanl (Depends-on): Remove math.
33947         * modules/isnanl-nolibm (Depends-on): Remove math.
33948
33949         * tests/nan.h: New file.
33950
33951 2008-04-01  Eric Blake  <ebb9@byu.net>
33952
33953         Fix typos.
33954         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
33955         values to be the right type.
33956
33957         For now, cater to gnulib strtod inaccuracies.
33958         * tests/test-strtod.c (main): Allow 1-ulp error on expected
33959         fractional results.  While not as nice from a QoI perspective, it
33960         is a quicker patch than correctly implementing decimal to binary
33961         rounding.
33962
33963 2008-03-31  Eric Blake  <ebb9@byu.net>
33964
33965         Guarantee a definition of NAN.
33966         * lib/math.in.h (NAN): Define if missing.
33967         * tests/test-math.c (main): Test it.
33968         * doc/posix-headers/math.texi (math.h): Document this.
33969         * lib/isnan.c (rpl_isnand): Use it.
33970         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
33971         * tests/test-floorf1.c (NaN): Likewise.
33972         * tests/test-frexp.c (NaN): Likewise.
33973         * tests/test-isnand.c (NaN): Likewise.
33974         * tests/test-isnanf.c (NaN): Likewise.
33975         * tests/test-round1.c (NaN): Likewise.
33976         * tests/test-roundf1.c (NaN): Likewise.
33977         * tests/test-snprintf-posix.h (NaN): Likewise.
33978         * tests/test-sprintf-posix.h (NaN): Likewise.
33979         * tests/test-trunc1.c (NaN): Likewise.
33980         * tests/test-truncf1.c (NaN): Likewise.
33981         * tests/test-vasnprintf-posix.c (NaN): Likewise.
33982         * tests/test-vasprintf-posix.c (NaN): Likewise.
33983         * modules/isnand-nolibm (Depends-on): Add math.
33984         * modules/isnanf-nolibm (Depends-on): Likewise.
33985         * modules/isnanl (Depends-on): Likewise.
33986         * modules/isnanl-nolibm (Depends-on): Likewise.
33987         * modules/snprintf-posix-tests (Depends-on): Likewise.
33988         * modules/sprintf-posix-tests (Depends-on): Likewise.
33989         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
33990         * modules/vsprintf-posix-tests (Depends-on): Likewise.
33991         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
33992         * modules/vasprintf-posix-tests (Depends-on): Likewise.
33993
33994 2008-03-31  Bruno Haible  <bruno@clisp.org>
33995
33996         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
33997         * doc/posix-functions/strtod.texi: Likewise.
33998
33999 2008-03-31  Bruno Haible  <bruno@clisp.org>
34000
34001         * tests/test-strtod.c (main): Don't use C99 syntax.
34002
34003 2008-03-31  Bruno Haible  <bruno@clisp.org>
34004
34005         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
34006         Reported by Eric Blake.
34007
34008 2008-03-31  Jim Meyering  <meyering@redhat.com>
34009
34010         Don't compare actual signbit return values.
34011         * tests/test-strtod.c (main): Rather, compare only their
34012         zero/non-zero nature.
34013
34014 2008-03-31  Eric Blake  <ebb9@byu.net>
34015
34016         More strtod documentation.
34017         * doc/posix-functions/strtod.texi (strtod): Interpret more test
34018         failures as distinct bugs.
34019
34020 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
34021
34022         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
34023         Problem reported by Erik Benada in
34024         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
34025
34026 2008-03-30  Bruno Haible  <bruno@clisp.org>
34027
34028         * tests/test-strtod.c: Add comments about which assertion fails on which
34029         platform.
34030         * doc/posix-functions/strtod.texi: Add info about many more platforms.
34031
34032 2008-03-30  Eric Blake  <ebb9@byu.net>
34033
34034         Test signbit behavior on zeros.
34035         * tests/test-signbit.c (test_signbitf): Add tests for zero.
34036         (test_signbitd, test_signbitl): Likewise.
34037
34038         More strtod touchups.
34039         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
34040         sign of negative underflow, for now.  Use .5, not .1.
34041         * doc/posix-functions/strtod.texi (strtod): Mention these
34042         limitations.
34043         Reported by Jim Meyering.
34044
34045 2008-03-30  Bruno Haible  <bruno@clisp.org>
34046
34047         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
34048         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
34049
34050 2008-03-30  Bruno Haible  <bruno@clisp.org>
34051
34052         Avoid failure when attempting to return empty iconv results on some
34053         platforms.
34054         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
34055         allocation, don't report ENOMEM when the resulting string is empty.
34056
34057 2008-03-30  Bruno Haible  <bruno@clisp.org>
34058
34059         Fix buffer overrun.
34060         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
34061         Don't consider the width for tmp_length. Check count against tmp_length
34062         before doing the padding. Ensure enough allocation during padding.
34063
34064 2008-03-30  Eric Blake  <ebb9@byu.net>
34065
34066         strtod touchups.
34067         * lib/strtod.c (strtod): Avoid compiler warnings.
34068         Reported by Jim Meyering.
34069
34070 2008-03-30  Bruno Haible  <bruno@clisp.org>
34071
34072         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
34073         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
34074         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
34075         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
34076         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
34077         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
34078         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
34079         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
34080
34081         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
34082         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
34083         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
34084         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
34085         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
34086         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
34087         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
34088         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
34089
34090         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
34091         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
34092         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
34093         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
34094         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
34095         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
34096         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
34097         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
34098
34099         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
34100         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
34101
34102         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
34103         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
34104
34105         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
34106         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
34107
34108         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
34109         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
34110         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
34111
34112         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
34113         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
34114         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
34115
34116         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
34117         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
34118         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
34119
34120         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
34121         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
34122         * modules/vasprintf (Depends-on): Add EOVERFLOW.
34123
34124         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
34125         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
34126         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
34127         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
34128         (Depends-on): Add EOVERFLOW.
34129         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
34130         (Depends-on): Add EOVERFLOW.
34131         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
34132         (Depends-on): Add EOVERFLOW.
34133         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
34134         (Depends-on): Add EOVERFLOW.
34135         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
34136         (Depends-on): Add EOVERFLOW.
34137         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
34138         (Depends-on): Add EOVERFLOW.
34139         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
34140         (Depends-on): Add EOVERFLOW.
34141         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
34142         (Depends-on): Add EOVERFLOW.
34143
34144         * lib/sprintf.c (EOVERFLOW): Remove fallback.
34145         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
34146         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
34147
34148         * lib/snprintf.c (EOVERFLOW): Remove fallback.
34149         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
34150         * modules/snprintf (Depends-on): Add EOVERFLOW.
34151
34152         * lib/poll.c (EOVERFLOW): Remove fallback.
34153         * modules/poll (Depends-on): Add EOVERFLOW.
34154
34155         * lib/getugroups.c (EOVERFLOW): Remove fallback.
34156         * modules/getugroups (Depends-on): Add EOVERFLOW.
34157
34158         * lib/getdelim.c (EOVERFLOW): Remove fallback.
34159         * modules/getdelim (Depends-on): Add EOVERFLOW.
34160
34161         * lib/ftell.c (EOVERFLOW): Remove fallback.
34162         * modules/ftell (Depends-on): Add EOVERFLOW.
34163
34164         * lib/fprintf.c (EOVERFLOW): Remove fallback.
34165         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
34166         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
34167
34168         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
34169
34170         * modules/EOVERFLOW-tests: New file.
34171         * tests/test-EOVERFLOW.c: New file.
34172
34173         * modules/EOVERFLOW: New file.
34174         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
34175
34176 2008-03-30  Bruno Haible  <bruno@clisp.org>
34177
34178         Fix bug introduced on 2007-06-10.
34179         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
34180         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
34181
34182 2008-03-30  Bruno Haible  <bruno@clisp.org>
34183
34184         Improve freadseek's efficiency after ungetc.
34185         * lib/freadseek.c: Include freadahead.h.
34186         (freadptrinc): New function, extracted from freadseek.
34187         (freadseek): Use it in a loop. Use freadahead to determine the number
34188         of loop iterations.
34189         * modules/freadseek (Depends-on): Add freadahead.
34190         (configure.ac): Require AC_C_INLINE.
34191
34192 2008-03-30  Bruno Haible  <bruno@clisp.org>
34193
34194         * lib/freadseek.c (freadseek): Don't ignore the return value of
34195         freadptr.
34196
34197 2008-03-29  Eric Blake  <ebb9@byu.net>
34198
34199         Add hex float support.
34200         * modules/strtod (Depends-on): Add c-ctype.
34201         (Link): Mention POW_LIB.
34202         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
34203         whitespace between 'e' and exponent.
34204         * tests/test-strtod.c (main): Enable hex float tests.
34205         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
34206         now provides.
34207
34208         Document various strtod bugs, with some fixes.
34209         * doc/posix-functions/strtod.texi (strtod): Document bugs with
34210         "-0x", "inf", "nan", and hex constants.
34211         * doc/posix-functions/atof.texi (atof): Likewise.
34212         * modules/stdlib (Makefile.am): Support strtod.
34213         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
34214         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
34215         detect additional strtod bugs.
34216         * lib/stdlib.in.h (rpl_strtod): Add declarations.
34217         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
34218         bool where appropriate.  Parse 'inf' and 'nan'.
34219         * tests/test-strtod.c: New file.
34220         * modules/strtod (Depends-on): Add stdbool, stdlib.
34221         (configure.ac): Turn on module indicator.
34222         * modules/strtod-tests: New module.
34223
34224 2008-03-29  Eric Blake  <ebb9@byu.net>
34225
34226         Fix ftell on mingw.
34227         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
34228         * modules/ftell-tests (Depends-on): Add binary-io.
34229         * modules/ftello-tests (Depends-on): Likewise.
34230         * tests/test-ftell.c (main): Enhance test to cover behavior after
34231         ungetc.  Enforce binary mode.
34232         * tests/test-ftello.c (main): Likewise.
34233
34234         Pass test-freadseek on cygwin.
34235         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
34236         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
34237         ungetc buffer.
34238
34239         * tests/test-fflush2.c (main): Fix typo.
34240
34241 2008-03-29  Bruno Haible  <bruno@clisp.org>
34242
34243         * tests/test-fflush2.c (main): Temporarily disable the contents of
34244         this test.
34245         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
34246         Reported by Eric Blake.
34247
34248 2008-03-28  Simon Josefsson  <simon@josefsson.org>
34249
34250         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
34251         (GC_SHA224_DIGEST_SIZE): Add.
34252
34253         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
34254         (gc_hash_digest_length): Likewise.
34255         (gc_hash_buffer): Likewise.
34256
34257 2008-03-25  Bruno Haible  <bruno@clisp.org>
34258
34259         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
34260         detail which gettext release to use.
34261         Reported by Simon Josefsson.
34262
34263 2008-03-26  Jim Meyering  <meyering@redhat.com>
34264
34265         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
34266         * modules/gnumakefile (clean-GNUmakefile): Also, use
34267         test ... && ... || : syntax rather than if-then ... fi.
34268
34269         gnumakefile: Don't double-quote-expand $(VPATH) value.
34270         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
34271
34272 2008-03-24  Eric Blake  <ebb9@byu.net>
34273
34274         Alter GNUmakefile to install into top directory.
34275         * modules/maintainer-makefile: Split, and add dependency...
34276         * modules/gnumakefile: to this new module.
34277         * build-aux/GNUmakefile: Move...
34278         * top/GNUmakefile: ...here.
34279         * build-aux/maint.mk: Move...
34280         * top/maint.mk: ...here.
34281         * MODULES.html.sh (Support for maintaining...): Document new
34282         module.
34283
34284 2008-03-23  Bruno Haible  <bruno@clisp.org>
34285
34286         * gnulib-tool: New options --vc-files, --no-vc-files.
34287         (func_usage): Document them.
34288         (vc_files): New variable.
34289         (func_import): Consider vc_files.
34290         (func_create_testdir): Set vc_files to empty.
34291         Suggested by Jim Meyering and Karl Berry.
34292
34293 2008-03-23  Bruno Haible  <bruno@clisp.org>
34294
34295         Fix regex compilation error on HP-UX 11.
34296         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
34297         * modules/regex (Files): Add m4/mbstate_t.m4.
34298         Reported by Ton Voon <ton.voon@altinity.com>.
34299
34300 2008-03-23  Bruno Haible  <bruno@clisp.org>
34301
34302         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
34303
34304 2008-03-23  Eric Blake  <ebb9@byu.net>
34305             Bruno Haible  <bruno@clisp.org>
34306
34307         Install files from top/ in the destination directory.
34308         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
34309         augmentation also for the files from top/.
34310         (func_import, func_create_testdir): Rewrite file names:
34311         top/filename -> filename.
34312
34313 2008-03-23  Bruno Haible  <bruno@clisp.org>
34314
34315         Tweak "gnulib --version" output.
34316         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
34317
34318 2008-03-23  Bruno Haible  <bruno@clisp.org>
34319
34320         Tweak "gnulib --version" output.
34321         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
34322         rather than contents of ChangeLog, when possible.
34323
34324 2008-03-21  Eric Blake  <ebb9@byu.net>
34325
34326         More --version tweaks.
34327         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
34328         date of last ChangeLog entry.
34329
34330 2008-03-21  Jim Meyering  <meyering@redhat.com>
34331
34332         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
34333
34334 2008-03-20  Eric Blake  <ebb9@byu.net>
34335
34336         VPATH fix.
34337         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
34338
34339 2008-03-20  Simon Josefsson  <simon@josefsson.org>
34340
34341         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
34342         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
34343
34344 2008-03-20  Eric Blake  <ebb9@byu.net>
34345
34346         Sync GNUmakefile with coreutils.
34347         * build-aux/GNUmakefile (have-Makefile): Rename...
34348         (_have-Makefile): ...to this, for namespace consideration.
34349         (GNUmakefile.cfg): Include, if present.
34350         (_autoreconf): Define a default.
34351         (_is-dist-target): New rule for rebuilds to pick up intra-release
34352         version.
34353         (maint-cfg.mk): Rename...
34354         (cfg.mk): ...to this.
34355
34356 2008-03-18  Jim Meyering  <meyering@redhat.com>
34357
34358         New script and module: mktempd
34359         * MODULES.html.sh (maint+release support): Add mktempd.
34360         * build-aux/mktempd: New file.
34361         * modules/mktempd: New file.
34362
34363 2008-03-15  Jim Meyering  <meyering@redhat.com>
34364
34365         Undo last change.
34366         * lib/sha1.c, lib/md5.c: 63 != ~63.
34367         Reported by Andreas Schwab.
34368
34369         sha1.c, md5.c: Hoist a redundant expression.
34370         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
34371         "ctx->buflen" only once, before calling *_process_block.
34372         * lib/md5.c (md5_process_bytes): Likewise.
34373
34374 2008-03-14  Eric Blake  <ebb9@byu.net>
34375
34376         Bump copyright year in files generated by gnulib-tool.
34377         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
34378         gnulib-tool, rather than hard-coding it.
34379
34380         Fix 'gnulib-tool --version' output to work with git.
34381         * gnulib-tool (func_gnulib_dir): New function, extracted from...
34382         (startup): ...here.
34383         (func_version): Use it to invoke git-version-gen, rather than
34384         relying on CVS keyword expansion.  Modernize wording.
34385         (cvsdatestamp, last_checkin_date, version): Kill unused
34386         variables.
34387
34388 2008-03-12  Jim Meyering  <meyering@redhat.com>
34389
34390         Recognize optional cast of the argument to free.
34391         * build-aux/useless-if-before-free: Update regexps.
34392
34393         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
34394
34395 2008-03-11  Bruno Haible  <bruno@clisp.org>
34396
34397         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
34398         by a single package.
34399         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
34400         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
34401         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
34402         Reported by Sam Steingold <sds@gnu.org>.
34403
34404 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34405
34406         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
34407         repositories.
34408
34409 2008-03-11  Bruno Haible  <bruno@clisp.org>
34410
34411         Avoid conflicts between local macro definitions.
34412         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
34413         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
34414
34415 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
34416             Bruno Haible  <bruno@clisp.org>
34417
34418         Make va_copy work with some version of xlc on AIX 5.1.
34419         * lib/stdarg.in.h: New file.
34420         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
34421         On AIX, use a <stdarg.h> file substitute.
34422         * modules/stdarg (Files): Add lib/stdarg.in.h.
34423         (Depends-on): Add include_next.
34424         (Makefile.am): Build a stdarg.h substitute if requested.
34425         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
34426
34427 2008-03-10  Bruno Haible  <bruno@clisp.org>
34428
34429         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
34430         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34431         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
34432
34433 2008-03-10  Bruno Haible  <bruno@clisp.org>
34434
34435         * modules/stdlib (Depends-on): Add include_next, remove
34436         absolute-header.
34437
34438 2008-03-09  Bruno Haible  <bruno@clisp.org>
34439
34440         * lib/freadahead.h (freadahead): Document more precisely.
34441         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
34442         the sum of both buffer sizes.
34443         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
34444         * NEWS: Document the change.
34445
34446 2008-03-09  Bruno Haible  <bruno@clisp.org>
34447
34448         Extend freadptr to return also the buffer size.
34449         * lib/freadptr.h (freadptr): Add sizep argument.
34450         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
34451         (freadptr): Add sizep argument. Determine buffer size like freadahead
34452         does.
34453         * tests/test-freadptr.c: Don't include freadahead.h.
34454         (main): Adapt for new calling convention of freadptr.
34455         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
34456         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
34457         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
34458         tests/test-freadptr2.sh.
34459         (Depends): Remove freadahead.
34460         (TESTS): Add test-freadptr2.sh.
34461         (check_PROGRAMS): Add test-freadptr2.
34462
34463 2008-03-09  Bruno Haible  <bruno@clisp.org>
34464
34465         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
34466         Report and solution by Simon Josefsson.
34467
34468 2008-03-06  Bruno Haible  <bruno@clisp.org>
34469
34470         Make fflush after ungetc work on BSD platforms.
34471         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
34472         * tests/test-fflush2.c: New file.
34473         * tests/test-fflush2.sh: New file.
34474         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
34475         tests/test-fflush2.c.
34476         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
34477         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
34478
34479 2008-03-06  Eric Blake  <ebb9@byu.net>
34480
34481         Likewise for ftello.
34482         * modules/ftello (Dependencies): Add extensions.
34483         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
34484
34485 2008-03-06  Bruno Haible  <bruno@clisp.org>
34486
34487         * modules/fseeko (Dependencies): Add extensions.
34488         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
34489         Needed on glibc systems.
34490
34491 2008-03-06  Bruno Haible  <bruno@clisp.org>
34492
34493         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
34494         email address.
34495         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34496
34497 2008-03-06  Bruno Haible  <bruno@clisp.org>
34498
34499         * users.txt: Add libgnupdf.
34500
34501 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
34502
34503         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
34504         (Header File Substitutes, Function Substitutes,
34505         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
34506         (Build robot for gnulib): Fix typo.
34507
34508 2008-03-06  Bruno Haible  <bruno@clisp.org>
34509
34510         * doc/gnulib-tool.texi (VCS Issues): Small updates.
34511         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
34512
34513 2008-03-06  Bruno Haible  <bruno@clisp.org>
34514
34515         * doc/func.texi: New file, extracted from doc/gnulib.texi.
34516         * doc/gnulib.texi: Include it.
34517
34518 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34519
34520         * modules/func (License): Change license to unlimited; there was
34521         no LGPL parts in the module anyway.
34522
34523 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34524
34525         * modules/__func__: Renamed to modules/func.
34526         * modules/__func__-tests: Renamed to modules/func-tests.
34527         * tests/test-__func__.c: Renamed to tests/test-func.c.
34528         * m4/__func__.m4: Renamed to m4/func.m4.
34529         * doc/gnulib.texi (__func__): Section renamed to func.
34530         Suggested by Eric Blake <ebb9@byu.net>.
34531
34532 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34533
34534         * doc/gnulib.texi (__func__): Use C99 terminology when talking
34535         about __func__.  Make example self-contained.  Suggested by Eric
34536         Blake <ebb9@byu.net>.
34537
34538         * tests/test-__func__.c (main): Avoid extraneous () around __func.
34539         Suggested by Eric Blake <ebb9@byu.net>.
34540
34541 2008-03-06  Simon Josefsson  <simon@josefsson.org>
34542
34543         * modules/__func__: New file.
34544         * modules/__func__-tests: New file.
34545         * tests/test-__func__.c: New file.
34546         * m4/__func__.m4: New file.
34547         * doc/gnulib.texi (__func__): Document __func__ module.
34548
34549 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34550
34551         * modules/byteswap (License): Re-license as LGPLv2+.
34552
34553 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34554
34555         * doc/Makefile: Add pdf target.
34556
34557 2008-03-05  Simon Josefsson  <simon@josefsson.org>
34558
34559         * modules/inline (License): Use 'unlimited', since there are only
34560         *.m4 files in this module.
34561
34562 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
34563             Bruno Haible  <bruno@clisp.org>
34564
34565         Add support for HP C 7.1 on OpenVMS 8.3.
34566         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
34567
34568 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
34569
34570         Update VMS specifics.
34571         * lib/getopt.c [VMS]: Remove include of unixlib.h.
34572
34573 2008-03-02  Jim Meyering  <meyering@redhat.com>
34574
34575         Remove the last dependency on the "free" module.
34576         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
34577         Reported by Bob Proulx.
34578
34579         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
34580
34581         Remove useless "if" tests before free.  Deprecate "free" module.
34582         * doc/posix-functions/free.texi: Mention that this
34583         module is no longer useful.
34584         * modules/free (Notice): Say this module is obsolete.
34585         * modules/readutmp (Depends-on): Remove free.
34586         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
34587         * lib/putenv.c (putenv): Likewise.
34588         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
34589         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
34590         * tests/test-c-strcasestr.c (main): Likewise.
34591         * tests/test-c-strstr.c (main): Likewise.
34592         * tests/test-mbscasestr1.c (main): Likewise.
34593         * tests/test-mbscasestr2.c (main): Likewise.
34594         * tests/test-mbsstr1.c (main): Likewise.
34595         * tests/test-mbsstr2.c (main): Likewise.
34596         * tests/test-memmem.c (main): Likewise.
34597         * tests/test-strcasestr.c (main): Likewise.
34598         * tests/test-striconv.c (main): Likewise.
34599         * tests/test-striconveh.c (main): Likewise.
34600         * tests/test-striconveha.c (main): Likewise.
34601         * tests/test-strstr.c (main): Likewise.
34602
34603         * build-aux/git-version-gen: Adjust a comment and the Usage string.
34604
34605         bootstrap: sync from coreutils again
34606         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
34607
34608 2008-03-01  Jim Meyering  <meyering@redhat.com>
34609
34610         bootstrap: sync from coreutils
34611         * build-aux/bootstrap (update_po_files): Copy a .po file into place
34612         also when the target doesn't exist.
34613
34614 2008-03-01  Eric Blake  <ebb9@byu.net>
34615
34616         Fix bugs in last patch.
34617         * lib/memchr2.c (memchr2): Fix typo.
34618         * tests/test-memchr2.c: Test previous bug, and don't use GNU
34619         extension.
34620         Reported by Bruce Korb.
34621
34622         New module 'memchr2'.
34623         * modules/memchr2: New file.
34624         * modules/memchr2-tests: Likewise.
34625         * lib/memchr2.h: Likewise.
34626         * lib/memchr2.c: Likewise, based on memchr.c.
34627         * tests/test-memchr2.c: New test.
34628         * MODULES.html.sh (String handling): Add memchr2.
34629
34630 2008-02-29  Bruno Haible  <bruno@clisp.org>
34631
34632         * modules/freadseek-tests: New file.
34633         * tests/test-freadseek.sh: New file.
34634         * tests/test-freadseek.c: New file.
34635
34636         New module 'freadseek'.
34637         * modules/freadseek: New file.
34638         * lib/freadseek.h: New file.
34639         * lib/freadseek.c: New file.
34640         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
34641
34642 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
34643
34644         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
34645         wydawca.
34646
34647         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
34648         program_invocation_name and program_invocation_short_name are
34649         present.
34650
34651 2008-02-28  Bruno Haible  <bruno@clisp.org>
34652
34653         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
34654         * tests/test-freadptr.sh: Also test non-seekable stdin.
34655
34656 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
34657
34658         * build-aux/bootstrap (source_base, m4_base)
34659         (doc_base, tests_base): New variables.
34660         (gnulib_tool_options): Do not hardcode base directories, use
34661         the above variables instead.
34662
34663 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
34664
34665         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
34666
34667 2008-02-28  Bruno Haible  <bruno@clisp.org>
34668
34669         * modules/freadptr-tests: New file.
34670         * tests/test-freadptr.sh: New file.
34671         * tests/test-freadptr.c: New file.
34672
34673         New module 'freadptr'.
34674         * modules/freadptr: New file.
34675         * lib/freadptr.h: New file.
34676         * lib/freadptr.c: New file.
34677         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
34678
34679 2008-02-26  Karl Berry  <karl@freefriends.org>
34680
34681         Sync from Libtool:
34682         * libltdl/argz.c (argz_add, argz_count): New functions.
34683         * libltdl/argz.in.h: Declare them.
34684         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
34685
34686 2008-02-22  Bruno Haible  <bruno@clisp.org>
34687
34688         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
34689         is a pointer type.  Needed for HP-UX 10.
34690         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
34691         * doc/posix-functions/gmtime_r.texi: Likewise.
34692         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
34693
34694 2008-02-24  Bruno Haible  <bruno@clisp.org>
34695
34696         * modules/environ-tests: New file.
34697         * tests/test-environ.c: New file.
34698
34699         New module 'environ'.
34700         * modules/environ: New file.
34701         * lib/unistd.in.h (environ): New declaration.
34702         * m4/environ.m4: New file.
34703         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
34704         after use.
34705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
34706         HAVE_DECL_ENVIRON.
34707         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
34708         HAVE_DECL_ENVIRON.
34709         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
34710         wrong claim that 'environ' is missing on some systems.
34711         * modules/execute (Depends-on): Add environ.
34712         * lib/execute.c (environ): Remove fallback declaration.
34713         * modules/pipe (Depends-on): Add environ.
34714         * lib/pipe.c (environ): Remove fallback declaration.
34715         * modules/setenv (Depends-on): Add environ.
34716         * lib/setenv.c (environ): Remove fallback declaration.
34717         * modules/unsetenv (Depends-on): Add environ.
34718         * lib/unsetenv.c (environ): Remove fallback declaration.
34719         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
34720         m4/environ.m4.
34721         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
34722         (gl_PREREQ_UNSETENV): Likewise.
34723
34724 2008-02-24  Bruno Haible  <bruno@clisp.org>
34725
34726         * doc/posix-functions/environ.texi: Document the MacOS X problem.
34727
34728 2008-02-20  Bob Proulx  <bob@proulx.com>
34729
34730         Enable use of older two part flavor 'git describe'.
34731         * build-aux/git-version-gen: If using the older two part flavor of
34732         git version then recreate the third part now present in the
34733         newer three part flavor of git describe.
34734
34735 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
34736
34737         * lib/fts.c (fts_build): Typo correction to comment.
34738
34739 2008-02-17  Bruno Haible  <bruno@clisp.org>
34740
34741         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
34742         generating no-op conflicts.
34743
34744 2008-02-17  Bruno Haible  <bruno@clisp.org>
34745
34746         Speed up by 10%.
34747         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
34748         result_entries, rather than an index-based loop.
34749
34750 2008-02-17  Bruno Haible  <bruno@clisp.org>
34751
34752         Speed up by 25%.
34753         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
34754         'hashcode_cached'.
34755         (entry_create): New function.
34756         (entry_hashcode): Use the cached hashcode if possible.
34757         (read_changelog_file, try_split_merged_entry): Use entry_create.
34758
34759 2008-02-17  Bruno Haible  <bruno@clisp.org>
34760
34761         Speed up from O(n^2) to O(n) for long ChangeLog files.
34762         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
34763         (read_changelog_file): Change implementation of entries_reversed list
34764         to rbtreehash.
34765         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
34766
34767 2008-02-17  Bruno Haible  <bruno@clisp.org>
34768
34769         New option --split-merged-entry.
34770         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
34771         (find_paragraph_end, try_split_merged_entry): New functions.
34772         (long_options): Add option --split-merged-entry.
34773         (usage): Document option --split-merged-entry.
34774         (main): Implement option --split-merged-entry.
34775         Reported by Eric Blake.
34776
34777 2008-02-17  Bruno Haible  <bruno@clisp.org>
34778
34779         * lib/git-merge-changelog.c: Include c-strstr.h.
34780         (main): Support the "git pull --rebase" situation.
34781         * modules/git-merge-changelog (Depends-on): Add c-strstr.
34782         Reported by Eric Blake.
34783
34784 2008-02-16  Eric Blake  <ebb9@byu.net>
34785
34786         Avoid doubling \ in common case of "c-maybe" quoting style.
34787         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
34788         eliding outer quotes.
34789         * lib/quotearg.h: Document this.
34790         * tests/test-quotearg.c (result_strings, inputs, results_g)
34791         (flag_results, locale_results): Test it by adding a new string to
34792         each test group.
34793         (compare_strings): Test new string.
34794
34795 2008-02-13  Eric Blake  <ebb9@byu.net>
34796
34797         Avoid trigraph quoting in default output.
34798         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
34799         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
34800         unless explicitly requested.
34801         * tests/test-quotearg.c (flag_results, main): Add additional tests.
34802
34803 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
34804
34805         Don't rely on signed integer overflowing to negative value.
34806         * lib/getugroups.c (getugroups): Include <limits.h>.
34807         Instead, compare against INT_MAX, and increment only if the test passes.
34808
34809 2008-02-13  Jim Meyering  <meyering@redhat.com>
34810         and Eric Blake  <ebb9@byu.net>
34811
34812         Avoid shadowing warning and compile errors on Linux.
34813         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
34814         forwarding macros on Linux.
34815         (dcgettext): Define a stub, for Linux.
34816         (results_g, main): Avoid warnings.
34817
34818 2008-02-12  Eric Blake  <ebb9@byu.net>
34819
34820         Silence warning in last patch.
34821         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
34822
34823         Quotearg part 4: add tests, fix c-maybe colon quoting.
34824         * lib/quotearg.h: Improve documentation.
34825         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
34826         escapes when adding outer quotes.  When quoting trigraphs, use
34827         valid C notation.  When quoting NUL, omit extra characters if next
34828         character is not digit.  Alter prototype.
34829         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
34830         callers.
34831         * modules/quotearg-tests: New module.
34832         * tests/test-quotearg.c: New test.
34833
34834 2008-02-07  Eric Blake  <ebb9@byu.net>
34835
34836         Quotearg part 3: add flag to control outer quote elision.
34837         * lib/quotearg.h (c_maybe_quoting_style): New style.
34838         (enum quoting_flags): Better documentation of flags.
34839         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
34840         c-maybe style.
34841         (quotearg_buffer_restyled): Handle new flag to elide outer
34842         quotes.
34843
34844         Quotearg part 2: add flag that can control NUL elision.
34845         * lib/quotearg.h (set_quoting_flags): New prototype.
34846         * lib/quotearg.c (struct quoting_options): Add flag field.
34847         (set_quoting_flags): New function.
34848         (quotearg_buffer_restyled): Add flags parameter.
34849         (quotearg_alloc_mem): Set the flag if length cannot be returned.
34850         (quotearg_n_options): Set the flag, since length cannot be
34851         returned.
34852         (quoting_options_from_style): Default flags correctly.
34853
34854         Quotearg part 1: more wrappers, restore quotearg_char state.
34855         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
34856         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
34857         (quotearg_colon_mem): New wrappers.
34858         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
34859         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
34860         functions.
34861         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
34862         (quotearg_colon_mem): New functions.
34863
34864 2008-02-11  Bruno Haible  <bruno@clisp.org>
34865
34866         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
34867         library in the current directory: it does not work with parallel make.
34868         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34869
34870 2008-02-11  Bruno Haible  <bruno@clisp.org>
34871
34872         * .gitattributes: New file.
34873
34874 2008-02-11  Jim Meyering  <meyering@redhat.com>
34875
34876         useless-if-before-free: Fix reversed exit values.
34877         * build-aux/useless-if-before-free: Use correct values
34878         for EXIT_MATCH and EXIT_NO_MATCH.
34879
34880         * build-aux/useless-if-before-free: Close stdout carefully.
34881
34882 2008-02-10  Bruno Haible  <bruno@clisp.org>
34883
34884         New module 'git-merge-changelog'.
34885         * modules/git-merge-changelog: New file.
34886         * lib/git-merge-changelog.c: New file.
34887
34888 2008-02-10  Jim Meyering  <meyering@redhat.com>
34889
34890         useless-if-before-free: New option: --list (-l).
34891
34892         useless-if-before-free: Don't exit immediately upon open failure.
34893         * build-aux/useless-if-before-free: Exit 2 for errors.
34894         Upon failure to open a file, don't exit immediately.
34895         Rather, just warn and continue with any remaining files.
34896
34897 2008-02-10  Bruno Haible  <bruno@clisp.org>
34898
34899         New abstract list operation 'node_set_value'.
34900         * lib/gl_list.h (gl_list_node_set_value): New function.
34901         (struct gl_list_implementation): New field node_set_value.
34902         * lib/gl_list.c (gl_list_node_set_value): New function.
34903         * lib/gl_array_list.c (gl_array_node_set_value): New function.
34904         (gl_array_list_implementation): Update.
34905         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
34906         (gl_carray_list_implementation): Update.
34907         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
34908         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
34909         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
34910         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
34911         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
34912         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
34913         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
34914         Update.
34915         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
34916         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
34917         (gl_sublist_list_implementation): Update.
34918
34919 2008-02-10  Bruno Haible  <bruno@clisp.org>
34920
34921         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
34922         Needed when ELEMENT is #defined to 'some_type *'.
34923
34924 2008-02-10  Jim Meyering  <meyering@redhat.com>
34925
34926         New script and module: useless-if-before-free
34927         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
34928         * build-aux/useless-if-before-free: New file.
34929         * modules/useless-if-before-free: New file.
34930
34931         * build-aux/gitlog-to-changelog: Use committer date, not author date.
34932
34933         xstrtol_error: Fix typo.
34934         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
34935         s/exit_failure/exit_status/.
34936
34937 2008-02-09  Jim Meyering  <meyering@redhat.com>
34938
34939         New script and module: gitlog-to-changelog
34940         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
34941         * modules/gitlog-to-changelog: New file.
34942         * build-aux/gitlog-to-changelog: New file.
34943
34944 2008-02-08  Jim Meyering  <meyering@redhat.com>
34945
34946         Avoid two "parameter unused" warnings.
34947         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
34948         Mark "st" as used.
34949
34950         Use "git COMMAND", not "git-COMMAND".
34951         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
34952         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
34953         * build-aux/git-version-gen: Use "git status", not "git-status".
34954
34955 2008-02-07  Bruno Haible  <bruno@clisp.org>
34956
34957         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
34958         Avoids a crash on Windows Vista.
34959         Reported by Adam Strzelecki <ono@java.pl> via
34960         Simon Josefsson <simon@josefsson.org>.
34961
34962 2008-02-06  Bruno Haible  <bruno@clisp.org>
34963
34964         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
34965         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
34966         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
34967         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
34968         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34969         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34970         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
34971         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
34972         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34973         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34974         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34975         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34976         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34977         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34978         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34979         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
34980         left-adjust flag.
34981         * tests/test-snprintf-posix.h (test_function): Likewise.
34982         * tests/test-sprintf-posix.h (test_function): Likewise.
34983         * tests/test-vasprintf-posix.c (test_function): Likewise.
34984         * doc/posix-functions/fprintf.texi: Update.
34985         * doc/posix-functions/printf.texi: Update.
34986         * doc/posix-functions/snprintf.texi: Update.
34987         * doc/posix-functions/sprintf.texi: Update.
34988         * doc/posix-functions/vfprintf.texi: Update.
34989         * doc/posix-functions/vprintf.texi: Update.
34990         * doc/posix-functions/vsnprintf.texi: Update.
34991         * doc/posix-functions/vsprintf.texi: Update.
34992         Reported by Peter Fales <psfales@alcatel-lucent.com>.
34993
34994 2008-02-06  Bruno Haible  <bruno@clisp.org>
34995
34996         Fix bug introduced on 2008-01-26.
34997         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
34998
34999 2008-02-06  Bruno Haible  <bruno@clisp.org>
35000
35001         Fix bug introduced on 2007-06-10.
35002         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
35003         !NEED_PRINTF_FLAG_ZERO.
35004
35005 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
35006
35007         getloadavg: use libperfstat on AIX5
35008         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
35009
35010 2008-02-03  Bruno Haible  <bruno@clisp.org>
35011
35012         * lib/diffseq.h: Add comments about required #includes.
35013         Reported by Michael Biggs <gnulib@doubleplum.net>.
35014
35015 2008-02-01  Bruno Haible  <bruno@clisp.org>
35016
35017         * users.txt: Add gnuit.
35018
35019 2008-01-31  Bruno Haible  <bruno@clisp.org>
35020
35021         * lib/md4.c (set_uint32): Mark as inline.
35022         * lib/md5.c (set_uint32): Likewise.
35023         * lib/sha1.c (set_uint32): Likewise.
35024         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
35025         * m4/md5.m4 (gl_MD5): Likewise.
35026         * m4/sha1.m4 (gl_SHA1): Likewise.
35027
35028 2008-01-31  Jim Meyering  <meyering@redhat.com>
35029
35030         Use "sizeof VAR", rather than a literal "4".
35031         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
35032         * lib/md4.c (md4_read_ctx): Likewise.
35033         * lib/sha1.c (sha1_read_ctx): Likewise.
35034
35035 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35036
35037         * tests/test-sha1.c: New file, based on test-md5.c.
35038
35039         * modules/crypto/sha1-tests: New file.
35040
35041 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35042
35043         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
35044
35045 2008-01-31  Jim Meyering  <meyering@redhat.com>
35046
35047         Prefer "sizeof v" over the equivalent "4".
35048         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
35049         * lib/md5.c (set_uint32): Likewise.
35050         * lib/sha1.c (set_uint32): Likewise.
35051
35052 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35053
35054         * lib/sha1.c (set_uint32): Mark function as static.
35055
35056 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35057
35058         md2: clarify comments to say that alignment is not required.
35059         * lib/md2.h: Remove warning about alignment in comment.
35060         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
35061         never been required.
35062
35063 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35064
35065         md4: adapt alignment constraint fix from sha1.
35066         * lib/md4.c (set_uint32): New function, from sha1.c
35067         (md4_read_ctx): Use it.
35068         (md4_finish_ctx): Doc fix.
35069         * lib/md4.h: Doc fix.
35070
35071 2008-01-31  Simon Josefsson  <simon@josefsson.org>
35072
35073         md5: adapt alignment constraint fix from sha1.
35074         * lib/md5.c (set_uint32): New function, from sha1.c
35075         (md5_read_ctx): Use it.
35076         (md5_finish_ctx): Doc fix.
35077         * lib/md5.h: Doc fix.
35078
35079 2008-01-30  Peter Palfrader  <weasel@debian.org>
35080
35081         sha1: remove the result buffer alignment constraint
35082         * lib/sha1.c (set_uint32): New function.
35083         (sha1_read_ctx): Rewrite to remove the result buffer alignment
35084         constraint.
35085         (sha1_finish_ctx): Remove comment warning about alignment constraint.
35086         * lib/sha1.h: Likewise.
35087
35088 2008-01-30  Andreas Schwab  <schwab@suse.de>
35089             Bruno Haible  <bruno@clisp.org>
35090
35091         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
35092         correct definition of LDBL_MIN_EXP.
35093
35094 2008-01-30  Karl Berry  <karl@gnu.org>
35095
35096         * config/srclist-update: try to preserve x bit on updates.
35097         * config/srclistvars.sh: update for karl.
35098
35099 2008-01-29  Jim Meyering  <meyering@redhat.com>
35100
35101         vasnprintf.c: Avoid warning about unused label
35102         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
35103         "overflow" label definition and associated code with the
35104         same cpp condition that guards the sole use of that label.
35105
35106 2008-01-26  Bruno Haible  <bruno@clisp.org>
35107
35108         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
35109         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
35110         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
35111         * lib/isnanl-nolibm.h (isnanl): Likewise.
35112         Reported by Paul Eggert <eggert@cs.ucla.edu>.
35113
35114 2008-01-26  Bruno Haible  <bruno@clisp.org>
35115
35116         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
35117         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
35118
35119 2008-01-26  Bruno Haible  <bruno@clisp.org>
35120
35121         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
35122         GCC >= 4.0 built-in.
35123         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
35124
35125 2008-01-26  Bruno Haible  <bruno@clisp.org>
35126
35127         Rename isnan, applicable to 'double' only, to isnand.
35128         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
35129         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
35130         (configure.ac): Update.
35131         (Include): Replace "isnan.h" with "isnand.h".
35132         * m4/isnand.m4: Renamed from m4/isnan.m4.
35133         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
35134         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
35135         instead of isnan.c.
35136         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
35137         instead of HAVE_ISNAN_IN_LIBC.
35138         (isnand): Renamed from isnan.
35139         * lib/isnand.c: New file.
35140         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
35141         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
35142         (Makefile.am): Update.
35143         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
35144         Include isnand.h instead of isnan.h.
35145         (main): Test isnand instead of isnan.
35146         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
35147         isnan-nolibm.
35148         * modules/frexp (Depends-on): Likewise.
35149         * modules/frexp-tests (Depends-on): Likewise.
35150         * modules/frexp-nolibm (Depends-on): Likewise.
35151         * modules/frexp-nolibm-tests (Depends-on): Likewise.
35152         * modules/isfinite (Depends-on): Likewise.
35153         * modules/round-tests (Depends-on): Likewise.
35154         * modules/signbit (Depends-on): Likewise.
35155         * modules/signbit-tests (Depends-on): Likewise.
35156         * modules/snprintf-posix (Depends-on): Likewise.
35157         * modules/sprintf-posix (Depends-on): Likewise.
35158         * modules/trunc-tests (Depends-on): Likewise.
35159         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35160         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35161         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35162         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35163         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35164         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35165         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35166         * modules/vasnprintf-posix (Depends-on): Likewise.
35167         * modules/vasprintf-posix (Depends-on): Likewise.
35168         * modules/vfprintf-posix (Depends-on): Likewise.
35169         * modules/vsnprintf-posix (Depends-on): Likewise.
35170         * modules/vsprintf-posix (Depends-on): Likewise.
35171         * lib/frexp.c: Include isnand.h instead of isnan.h.
35172         (ISNAN): Set to isnand instead of isnan.
35173         * lib/isfinite.c: Include isnand.h instead of isnan.h.
35174         (gl_isfinited): Use isnand instead of isnan.
35175         * lib/signbitd.c: Include isnand.h instead of isnan.h.
35176         (gl_signbitd): Use isnand instead of isnan.
35177         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
35178         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
35179         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
35180         (main): Use isnand instead of isnan.
35181         * tests/test-round1.c: Include isnand.h.
35182         (main): Use isnand instead of isnan.
35183         * tests/test-round2.c: Include isnand.h instead of isnan.h.
35184         (ISNAN): Set to isnand instead of isnan.
35185         * tests/test-trunc1.c: Include isnand.h.
35186         (main): Use isnand instead of isnan.
35187         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
35188         (equal): Use isnand instead of isnan.
35189         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
35190         isnand-nolibm.
35191         * NEWS: Mention the change.
35192
35193 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
35194             Bruno Haible  <bruno@clisp.org>
35195
35196         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
35197         the GCC builtins for signbits are present and set
35198         REPLACE_SIGNBIT_USING_GCC if so.
35199         * lib/math.in.h (signbit): Define using GCC builtins if
35200         REPLACE_SIGNBIT_USING_GCC is set.
35201         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
35202         REPLACE_SIGNBIT_USING_GCC.
35203         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
35204
35205 2008-01-25  Jim Meyering  <meyering@redhat.com>
35206
35207         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
35208         * lib/poll.c: Include <config.h>, not "config.h".
35209         * tests/test-getaddrinfo.c: Likewise.
35210
35211 2008-01-25  Simon Josefsson  <simon@josefsson.org>
35212
35213         * modules/sockets-tests: New file.
35214
35215 2008-01-24  Simon Josefsson  <simon@josefsson.org>
35216
35217         * modules/sockets: New module, can be used to call WSA_Startup and
35218         WSA_Cleanup when needed.
35219
35220         * lib/sockets.h, lib/sockets.c: New files.
35221
35222         * m4/sockets.m4: New file.
35223
35224         * tests/test-sockets.c: New file.
35225
35226 2008-01-19  Bruno Haible  <bruno@clisp.org>
35227
35228         * doc/posix-headers: Renamed from doc/headers.
35229         * doc/posix-functions: Renamed from doc/functions.
35230         * doc/gnulib.texi: Update.
35231
35232 2008-01-19  Bruno Haible  <bruno@clisp.org>
35233
35234         * doc/glibc-functions/strcasestr.texi: Include contents of
35235         doc/functions/strcasestr.texi, fixing the list of platforms.
35236         * doc/functions/strcasestr.texi: Remove file.
35237
35238 2008-01-19  Bruno Haible  <bruno@clisp.org>
35239
35240         * doc/glibc-functions/memmem.texi: Include contents of
35241         doc/functions/memmem.texi.
35242         * doc/functions/memmem.texi: Remove file.
35243
35244 2008-01-18  Bruno Haible  <bruno@clisp.org>
35245
35246         * doc/glibc-functions/*.texi: New files.
35247         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
35248         to use the new files.
35249
35250 2008-01-17  Bruno Haible  <bruno@clisp.org>
35251
35252         * tests/test-gethostname.c (main): Fix printf statement.
35253
35254 2008-01-17  Simon Josefsson  <simon@josefsson.org>
35255
35256         * modules/gethostname-tests: New file.
35257
35258         * tests/test-gethostname.c: New file.
35259
35260 2008-01-17  Simon Josefsson  <simon@josefsson.org>
35261
35262         * lib/gethostname.c: Include string.h unconditionally, strncpy is
35263         used by the UNAME case.  Reported by Bruno Haible
35264         <bruno@clisp.org>.
35265
35266 2008-01-17  Eric Blake  <ebb9@byu.net>
35267
35268         Convert c-strcasestr to be more efficient.
35269         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
35270         (Depends-on): Add c-strcase, remove malloca, strnlen.
35271         * tests/test-c-strcasestr.c (main): Enhance test.
35272         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
35273
35274 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
35275
35276         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
35277         Use it in creating po/Makevars.
35278
35279 2008-01-15  Simon Josefsson  <simon@josefsson.org>
35280
35281         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
35282         Applications that requires it should initialize libgcrypt
35283         manually.
35284
35285 2008-01-16  Simon Josefsson  <simon@josefsson.org>
35286
35287         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
35288
35289 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
35290
35291         Fix problem with getdate on mingw32 reported by Simon Josefsson
35292         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
35293         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
35294         tzname", when deciding whether to declare tzname.
35295         * lib/strftime.c (tzname): Likewise.
35296
35297 2008-01-15  Bruno Haible  <bruno@clisp.org>
35298
35299         Work around a MacOS X 10.5 bug in frexpl().
35300         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
35301         * doc/functions/frexpl.texi: Document the bug.
35302         Reported by Elias Pipping <pipping@gentoo.org>.
35303
35304 2008-01-14  Eric Blake  <ebb9@byu.net>
35305
35306         Touch up previous patch.
35307         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
35308         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
35309
35310         Convert strcasestr module to use Two-Way algorithm.
35311         * modules/strcasestr-simple: New module, based on the old
35312         strcasestr, but with Two-Way rather than KMP.
35313         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
35314         * lib/string.in.h (rpl_strcasestr): Declare.
35315         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
35316         performance.
35317         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
35318         * modules/string (Makefile.am): Support strcasestr.
35319         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
35320         * modules/strcasestr-tests (Depends-on): Check for alarm.
35321         * tests/test-strcasestr.c: Augment test.
35322         * lib/str-two-way.h: Clean up stray macro.
35323         * NEWS: Document new module.
35324         * MODULES.html.sh (string handling): Likewise.
35325         * doc/functions/strcasestr.texi: New file.
35326         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
35327         here, since it is not a POSIX function.
35328
35329 2008-01-14  Colin Watson  <cjwatson@debian.org>
35330             Bruno Haible  <bruno@clisp.org>
35331
35332         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
35333         works fine; if not, set REPLACE_STRSIGNAL.
35334         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
35335         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35336         REPLACE_STRSIGNAL.
35337         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
35338         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
35339         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
35340
35341 2008-01-14  Bruno Haible  <bruno@clisp.org>
35342
35343         * modules/strsignal (Include): Change to <string.h>.
35344
35345 2008-01-14  Colin Watson  <cjwatson@debian.org>
35346
35347         * modules/argp (Notice): Add a notice recommending to change
35348         XGETTEXT_OPTIONS.
35349         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
35350
35351 2008-01-13  Colin Watson  <cjwatson@debian.org>
35352
35353         * modules/strsignal-tests: New file.
35354         * tests/test-strsignal.c: New file.
35355
35356         * lib/strsignal.c: New file, from glibc with modifications.
35357         * lib/siglist.h: New file, from glibc with modifications.
35358         * lib/string.in.h (strsignal): New declaration.
35359         * m4/strsignal.m4: New file.
35360         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
35361         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
35362         * modules/strsignal: New file.
35363         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
35364         HAVE_DECL_STRSIGNAL.
35365
35366 2008-01-13  Bruno Haible  <bruno@clisp.org>
35367
35368         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
35369         locale encoding is not ASCII. Needed for OpenBSD 4.0.
35370         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35371         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35372
35373 2008-01-13  Bruno Haible  <bruno@clisp.org>
35374
35375         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
35376         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
35377         * lib/argp.h (__attribute__): Likewise.
35378         * lib/c-stack.c (__attribute__): Likewise.
35379         * lib/error.h (__attribute__): Likewise.
35380         * lib/fts.c (__attribute__): Likewise.
35381         * lib/openat.h (__attribute__): Likewise.
35382         * lib/stdio.in.h (__attribute__): Likewise.
35383         * lib/string.in.h (__attribute__): Likewise.
35384         * lib/utimens.c (__attribute__): Likewise.
35385         * lib/vasnprintf.h (__attribute__): Likewise.
35386         * lib/xalloc.h (__attribute__): Likewise.
35387         * lib/xprintf.h (__attribute__): Likewise.
35388         * lib/xstrtol.h (__attribute__): Likewise.
35389         * lib/xvasprintf.h (__attribute__): Likewise.
35390
35391 2008-01-12  Bruno Haible  <bruno@clisp.org>
35392
35393         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
35394         * doc/glibc-headers/a.out.texi: New file.
35395         * doc/glibc-headers/aliases.texi: New file.
35396         * doc/glibc-headers/alloca.texi: New file.
35397         * doc/glibc-headers/ar.texi: New file.
35398         * doc/glibc-headers/argp.texi: New file.
35399         * doc/glibc-headers/argz.texi: New file.
35400         * doc/glibc-headers/byteswap.texi: New file.
35401         * doc/glibc-headers/crypt.texi: New file.
35402         * doc/glibc-headers/endian.texi: New file.
35403         * doc/glibc-headers/envz.texi: New file.
35404         * doc/glibc-headers/err.texi: New file.
35405         * doc/glibc-headers/error.texi: New file.
35406         * doc/glibc-headers/execinfo.texi: New file.
35407         * doc/glibc-headers/fpu_control.texi: New file.
35408         * doc/glibc-headers/fstab.texi: New file.
35409         * doc/glibc-headers/fts.texi: New file.
35410         * doc/glibc-headers/getopt.texi: New file.
35411         * doc/glibc-headers/ieee754.texi: New file.
35412         * doc/glibc-headers/ifaddrs.texi: New file.
35413         * doc/glibc-headers/libintl.texi: New file.
35414         * doc/glibc-headers/mcheck.texi: New file.
35415         * doc/glibc-headers/mntent.texi: New file.
35416         * doc/glibc-headers/obstack.texi: New file.
35417         * doc/glibc-headers/paths.texi: New file.
35418         * doc/glibc-headers/printf.texi: New file.
35419         * doc/glibc-headers/pty.texi: New file.
35420         * doc/glibc-headers/resolv.texi: New file.
35421         * doc/glibc-headers/shadow.texi: New file.
35422         * doc/glibc-headers/sysexits.texi: New file.
35423         * doc/glibc-headers/ttyent.texi: New file.
35424
35425 2008-01-12  Jim Meyering  <meyering@redhat.com>
35426
35427         announce-gen: emit Gnulib's git-based version string.
35428         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
35429         New option --gnulib-version=V, where V is expected to be
35430         the output of running git describe in the gnulib directory.
35431         (get_tool_versions): Request feedback on xdelta.  I suspect it's
35432         not useful, and plan to stop publishing an xdelta file with each
35433         coreutils release.
35434
35435         * build-aux/announce-gen: Also check for lzma-compressed files.
35436
35437 2008-01-11  Bruno Haible  <bruno@clisp.org>
35438
35439         * tests/test-memmem.c (main): Increase maximum allowed time.
35440         * tests/test-strstr.c (main): Likewise.
35441
35442 2008-01-11  Bruno Haible  <bruno@clisp.org>
35443
35444         * doc/functions/memmem.texi: Add more precisions about platforms.
35445         * doc/functions/strstr.texi: Likewise.
35446
35447 2008-01-10  Eric Blake  <ebb9@byu.net>
35448
35449         * m4/strstr.m4: Delete cruft from copy-n-paste.
35450         Reported by Bruno Haible.
35451
35452 2008-01-10  Bruno Haible  <bruno@clisp.org>
35453
35454         Make c-strstr rely on strstr.
35455         * lib/c-strstr.c: Don't include str-kmp.h.
35456         (c_strstr): Define in terms of strstr.
35457         * modules/c-strstr (Files): Remove lib/str-kmp.h.
35458         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
35459
35460 2008-01-10  Bruno Haible  <bruno@clisp.org>
35461
35462         * doc/gnulib.texi (String Functions in C Locale): New section.
35463         * doc/c-ctype.texi: New file.
35464         * doc/c-strcase.texi: New file.
35465         * doc/c-strcaseeq.texi: New file.
35466         * doc/c-strcasestr.texi: New file.
35467         * doc/c-strstr.texi: New file.
35468         * doc/c-strtod.texi: New file.
35469         * doc/c-strtold.texi: New file.
35470
35471 2008-01-10  Eric Blake  <ebb9@byu.net>
35472
35473         * lib/relocatable.h: Fix a comment.
35474
35475 2008-01-10  Eric Blake  <ebb9@byu.net>
35476
35477         Share two-way algorithm.
35478         * lib/str-two-way.h: New file, merged from...
35479         * lib/memmem.c: ...here...
35480         * lib/strstr.c: ...and here.
35481         * modules/memmem (Files): Use it.
35482         * modules/strstr (Files): Likewise.
35483
35484         Avoid quadratic strstr implementations.
35485         * lib/strstr.c: New file.
35486         * m4/strstr.m4: Likewise.
35487         * modules/strstr: Likewise.
35488         * modules/strstr-tests: Likewise.
35489         * tests/test-strstr.c: Likewise.
35490         * lib/string.in.h (rpl_strstr): Declare.
35491         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
35492         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
35493         * modules/string (Makefile.am): Likewise.
35494         * MODULES.html.sh (string handling): Mention new module.
35495         * doc/functions/strstr.texi (strstr): Document the bug.
35496
35497 2008-01-10  Bruno Haible  <bruno@clisp.org>
35498
35499         * lib/relocatable.h (relocate): State whether result is freshly
35500         allocated or not.
35501         * lib/relocatable.c (relocate): Return a freshly allocated string
35502         instead of a pointer to a privately held string.
35503         Reported by Sylvain Beucler <beuc@gnu.org>.
35504
35505 2008-01-10  Colin Watson  <cjwatson@debian.org>
35506
35507         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
35508         s/S_ISNLK/S_ISLNK/.
35509
35510 2008-01-09  Bruno Haible  <bruno@clisp.org>
35511
35512         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
35513         and other files.
35514         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
35515         if it's only a guess.
35516         * modules/memmem: Simplify by depending on memmem-simple.
35517
35518 2008-01-09  Bruno Haible  <bruno@clisp.org>
35519
35520         Work around OpenBSD 4.0 tdelete() bug.
35521         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
35522         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
35523         macros and don't redefine the enum values.
35524         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
35525         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
35526         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
35527
35528 2008-01-09  Bruno Haible  <bruno@clisp.org>
35529
35530         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
35531         (main): Don't perform the tests if setlocale did not install a UTF-8
35532         locale. Needed on OpenBSD 4.0.
35533         * modules/wcwidth-tests (Depends-on): Add localcharset.
35534
35535 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
35536
35537         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
35538         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
35539         * NEWS: announce this.
35540         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
35541
35542 2008-01-09  Simon Josefsson  <simon@josefsson.org>
35543         and Eric Blake  <ebb9@byu.net>
35544
35545         Add memmem-simple module.
35546         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
35547         (gl_FUNC_MEMMEM): Separate performance from presence checks.
35548         * modules/memmem-simple: New file.
35549         * modules/memmem (Description): Tweak.
35550         * MODULES.html.sh (string handling): Mention new module.
35551         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
35552         addressed by memmem-simple.
35553         * NEWS: Document the difference.
35554
35555 2008-01-09  Eric Blake  <ebb9@byu.net>
35556
35557         Give gcc some memmem optimization hints.
35558         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
35559         (strcasestr): Declare as pure.
35560         * modules/memmem (Maintainer): Claim my implementation.
35561
35562 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35563
35564         Support AIX 6.1 and higher.
35565         * build-aux/config.libpath: Likewise.
35566         * build-aux/config.rpath: Likewise.
35567
35568 2008-01-08  Jim Meyering  <meyering@redhat.com>
35569             Bruno Haible  <bruno@clisp.org>
35570
35571         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
35572         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
35573         Reported by Peter Fales in
35574         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
35575
35576 2008-01-08  Bruno Haible  <bruno@clisp.org>
35577
35578         * modules/unictype/category-of (Depends-on): Add
35579         unictype/category-none.
35580         * modules/unictype/category-and-tests (Depends-on): Add
35581         unictype/category-{L,N,Lu,Nd}.
35582         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
35583         * modules/unictype/category-or-tests (Depends-on): Add
35584         unictype/category-{L,N}.
35585         * modules/unictype/category-name-tests (Depends-on): Add
35586         unictype/category-{Z,Nl}.
35587         Reported by Simon Josefsson.
35588
35589 2008-01-08  Bruno Haible  <bruno@clisp.org>
35590
35591         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
35592         convention better.
35593         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
35594         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
35595         Reported by Peter Miller <millerp@canb.auug.org.au>.
35596
35597 2008-01-08  Eric Blake  <ebb9@byu.net>
35598
35599         Rewrite memmem to guarantee linear complexity without malloc.
35600         * lib/memmem.c (memmem): Use Two-Way rather than
35601         Knuth-Morris-Pratt, to allow O(1) space usage.
35602         (critical_factorization, two_way_short_needle)
35603         (two_way_long_needle): New functions.
35604         (knuth_morris_pratt): Delete.
35605         * modules/memmem (Depends-on): No longer need malloca or stdbool.
35606         Add stdint.
35607         * tests/test-memmem.c (main): Add tests for periodic needle and
35608         sublinear performance.
35609         * doc/functions/memmem.texi (memmem): Document other deficiencies
35610         in cygwin and older glibc.
35611
35612 2008-01-08  Bruno Haible  <bruno@clisp.org>
35613
35614         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
35615         augmentation.
35616
35617 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
35618
35619         Add a configure time option: --disable-acl.
35620         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
35621         AC_ARG_ENABLE(acl).
35622
35623 2008-01-06  Simon Josefsson  <simon@josefsson.org>
35624
35625         * tests/test-localename.c: Don't include obsolete "setenv.h".
35626
35627         * modules/localename-tests (Depends-on): Need unsetenv.
35628
35629 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35630
35631         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
35632
35633 2008-01-06  Colin Watson  <cjwatson@debian.org>
35634
35635         * users.txt: Add man-db.
35636
35637 2008-01-07  Bruno Haible  <bruno@clisp.org>
35638
35639         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
35640         previous section name.
35641
35642 2008-01-07  Bruno Haible  <bruno@clisp.org>
35643
35644         * lib/progname.c (set_program_name): Don't strip off a leading
35645         "lt-" prefix outside a .libs directory.
35646         Suggested by Paul Eggert.
35647
35648 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
35649             Bruno Haible  <bruno@clisp.org>
35650
35651         Improve memory cleanup in 'relocatable' module.
35652         * lib/relocatable.h (compute_curr_prefix): Change return type to
35653         'char *'.
35654         * lib/relocatable.c (compute_curr_prefix): Change return type to
35655         'char *'. Free curr_installdir after use.
35656         (relocate): Free curr_prefix_better after use.
35657         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
35658
35659 2008-01-01  Bruno Haible  <bruno@clisp.org>
35660
35661         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
35662         failure on older glibc systems.
35663         Reported by Peter Fales <psfales@alcatel-lucent.com>.
35664
35665 2008-01-05  Eric Blake  <ebb9@byu.net>
35666
35667         Avoid quadratic system memmem.
35668         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
35669         Reported by Ralf Wildenhues.
35670
35671         Fix memmem test for mingw.
35672         * modules/memmem-tests (configure.ac): Check for alarm.
35673         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
35674         it.
35675         * doc/functions/memmem.texi: New file.
35676         * doc/gnulib.texi (Function Substitutes): Add memmem.
35677         Reported by Bruno Haible.
35678
35679 2008-01-04  Bruno Haible  <bruno@clisp.org>
35680
35681         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
35682         Require gl_HEADER_STRINGS_H_DEFAULTS, not
35683         gl_HEADER_STRING_H_DEFAULTS.
35684
35685 2008-01-04  Eric Blake  <ebb9@byu.net>
35686
35687         Shorten duration of memmem test.
35688         * tests/test-memmem.c (main): Use alarm to declare failure if test
35689         is taking too long.
35690         Reported by Ralf Wildenhues.
35691
35692 2007-12-21  Simon Josefsson  <simon@josefsson.org>
35693
35694         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
35695         string, needed by strerror.
35696
35697 2008-01-03  Colin Watson  <cjwatson@debian.org>
35698             Bruno Haible  <bruno@clisp.org>
35699
35700         * doc/gnulib-tool.texi (Localization): New section.
35701
35702 2008-01-02  Bruno Haible  <bruno@clisp.org>
35703
35704         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
35705         variables to 'unsigned char *' type.
35706         Reported by Paul Eggert.
35707
35708 2008-01-02  Jim Meyering  <jim@meyering.net>
35709
35710         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
35711
35712 2007-12-31  Jim Meyering  <jim@meyering.net>
35713
35714         Avoid use of private FTS type name.
35715         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
35716
35717 2007-12-30  Karl Berry  <karl@gnu.org>
35718
35719         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
35720         work around defect in Texinfo and/or the standalone Info browser.
35721
35722 2007-12-30  Bruno Haible  <bruno@clisp.org>
35723
35724         Unify 5 copies of the KMP code.
35725         * lib/str-kmp.h: New file.
35726         * lib/c-strcasestr.c: Include str-kmp.h.
35727         (knuth_morris_pratt): Remove function.
35728         (c_strcasestr): Update.
35729         * lib/c-strstr.c: Include str-kmp.h.
35730         (knuth_morris_pratt): Remove function.
35731         (c_strcasestr): Update.
35732         * lib/mbscasestr.c: Include str-kmp.h.
35733         (knuth_morris_pratt_unibyte): Remove function.
35734         * lib/mbsstr.c: Include str-kmp.h.
35735         (knuth_morris_pratt_unibyte): Remove function.
35736         * lib/strcasestr.c: Include str-kmp.h.
35737         (knuth_morris_pratt): Remove function.
35738         (strcasestr): Update.
35739         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
35740         * modules/c-strstr (Files): Likewise.
35741         * modules/mbscasestr (Files): Likewise.
35742         * modules/mbsstr (Files): Likewise.
35743         * modules/strcasestr (Files): Likewise.
35744         Suggested by Paul Eggert.
35745
35746 2007-12-30  Bruno Haible  <bruno@clisp.org>
35747
35748         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
35749         defined.
35750
35751 2007-12-30  Bruno Haible  <bruno@clisp.org>
35752
35753         * lib/xmalloca.h: Include xalloc.h.
35754         (xnmalloca): New macro.
35755
35756 2007-12-30  Bruno Haible  <bruno@clisp.org>
35757
35758         * lib/malloca.h (nmalloca): New macro.
35759         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
35760         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
35761         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
35762         knuth_morris_pratt_multibyte): Likewise.
35763         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
35764         knuth_morris_pratt_multibyte): Likewise.
35765         * lib/memmem.c (knuth_morris_pratt): Likewise.
35766         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
35767
35768 2007-12-25  Bruno Haible  <bruno@clisp.org>
35769
35770         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
35771         * lib/glob.c: Don't include openat.h.
35772         (link_exists2_p): Add back the code that deals with the
35773         !GLOB_ALTDIRFUNC case.
35774         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
35775         let it do the filename concatenation.
35776         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
35777         * modules/glob (Depends-on): Remove openat.
35778
35779 2007-12-31  Bruno Haible  <bruno@clisp.org>
35780
35781         * modules/dirfd (License): Change to LGPLv2+.
35782         Approved by Jim Meyering.
35783
35784 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
35785
35786         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
35787         when multiplying M by sizeof (size_t).
35788
35789 2007-12-10  Martin Lambers  <marlam@marlam.de>
35790
35791         Override getpagesize on mingw.
35792         * lib/getpagesize.c: New file.
35793         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
35794         * modules/getpagesize (Files): Add lib/getpagesize.c.
35795         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
35796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
35797         REPLACE_GETPAGESIZE.
35798         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
35799
35800 2007-12-25  Bruno Haible  <bruno@clisp.org>
35801
35802         * modules/localcharset (Notice): New field.
35803         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
35804         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
35805
35806 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
35807             Bruno Haible  <bruno@clisp.org>
35808
35809         Avoid using the syntax symbol() in formatted documentation.
35810         * MODULES.html.sh (func_module): When replacing symbol() with a
35811         hyperlink, remove the parentheses. Show an error if some remain.
35812         Recognize and render the '...' syntax.
35813         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
35814         Rework. Add paragraph about GCC's inlining.
35815         * doc/alloca.texi: Likewise.
35816         * doc/error.texi: Remove parentheses from symbol reference.
35817         * doc/gnulib-intro.texi: Likewise.
35818         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
35819         * modules/fnmatch (Description): Reword to say "the ... function".
35820         * modules/full-read (Description): Likewise.
35821         * modules/full-write (Description): Likewise.
35822         * modules/safe-read (Description): Likewise.
35823         * modules/safe-write (Description): Likewise.
35824         * modules/strchrnul (Description): Likewise.
35825         * modules/trim (Description): Likewise.
35826         * modules/error (Description): Remove parentheses from symbol
35827         references.
35828         * modules/verror (Description): Likewise.
35829         Reported by Karl Berry.
35830
35831 2007-12-25  Bruno Haible  <bruno@clisp.org>
35832
35833         Fixup after 2007-10-16 commit.
35834         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
35835
35836 2007-12-24  Bruno Haible  <bruno@clisp.org>
35837
35838         Make --enable-relocatable work with DESTDIR.
35839         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
35840         to compute installdir from destprog.
35841         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
35842         also set the RELOC_DESTDIR variable.
35843         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
35844
35845 2007-12-24  Bruno Haible  <bruno@clisp.org>
35846
35847         Fix link error due to xalloc_die().
35848         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
35849         of xreadlink.
35850         * lib/relocwrapper.c: Update comments.
35851         * build-aux/install-reloc: Remove xreadlink.c from file list.
35852         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
35853         xreadlink.c.
35854         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
35855
35856 2007-12-24  Bruno Haible  <bruno@clisp.org>
35857
35858         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
35859         * lib/setenv.h: Remove file.
35860         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
35861         lib/setenv.h.
35862         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
35863         (Depends-on): Add stdlib.
35864         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
35865         gl_FUNC_UNSETENV.
35866         (Include): Replace setenv.h with <stdlib.h>.
35867         * modules/unsetenv: New file.
35868         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
35869         * lib/unsetenv.c: Include <stdlib.h> first.
35870         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
35871         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
35872         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
35873         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
35874         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
35875         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
35876         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
35877         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
35878         * doc/functions/unsetenv.texi: Update.
35879         * modules/xsetenv (Depends-on): Add unsetenv.
35880         * modules/getdate (Depends-on): Likewise.
35881         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
35882         * lib/xsetenv.c: Don't include setenv.h.
35883         * lib/getdate.y: Likewise.
35884         * lib/relocwrapper.c: Likewise.
35885         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
35886         (Depends-on): Add stdlib.
35887         * NEWS: Mention the changes.
35888         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
35889
35890 2007-12-23  Bruno Haible  <bruno@clisp.org>
35891
35892         * lib/memmem.c (memmem): Use lowercase variable names. Tab
35893         indentation.
35894
35895 2007-12-23  Bruno Haible  <bruno@clisp.org>
35896
35897         * lib/c-strcasestr.c: Add more comments.
35898         * lib/c-strstr.c: Likewise.
35899         * lib/mbscasestr.c: Likewise.
35900         * lib/mbsstr.c: Likewise.
35901         * lib/strcasestr.c: Likewise.
35902         * lib/memmem.c: Likewise.
35903
35904 2007-12-23  Bruno Haible  <bruno@clisp.org>
35905
35906         * tests/test-memmem.c: Include <string.h> first.
35907
35908 2007-12-22  Bruno Haible  <bruno@clisp.org>
35909
35910         * gnulib-tool (func_create_testdir): Change $auxdir while generating
35911         the contents of $testsbase.
35912         Reported by Ralf Wildenhues.
35913
35914 2007-12-22  Bruno Haible  <bruno@clisp.org>
35915
35916         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
35917         two variables local_ldadd_before, local_ldadd_last.
35918
35919 2007-12-20  Eric Blake  <ebb9@byu.net>
35920
35921         Work around circular library issue when cross-compiling.
35922         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
35923         that progname.o does not need to pull in rpl_memcmp.
35924
35925 2007-12-19  Eric Blake  <ebb9@byu.net>
35926
35927         Fix memmem to avoid O(n^2) worst-case complexity.
35928         * lib/memmem.c (knuth_morris_pratt): New function.
35929         (memmem): Use it if first few naive iterations fail.
35930         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
35931         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
35932         * modules/memchr (License): Likewise.
35933         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
35934         malloca.
35935         * tests/test-memmem.c: Rewrite, borrowing ideas from
35936         test-mbsstr1.c; the old version wouldn't even compile!
35937         * modules/memmem-tests: New file.
35938         * lib/string.in.h (rpl_memmem): Add declaration.
35939         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
35940         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
35941         REPLACE_MEMMEM.
35942
35943 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
35944
35945         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
35946         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
35947         before any system include files, and undef after them all.  This
35948         should fix a problem on VMS reported by John E. Malmberg in
35949         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
35950
35951 2007-12-17  Eric Blake  <ebb9@byu.net>
35952
35953         Revert addition of verify, for BSD/OS.
35954         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
35955         can't handle large files, for the sake of obsolete platforms.
35956         * modules/fseeko (Depends-on): Remove verify.
35957         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
35958         * doc/functions/ftello.texi (ftello): Likewise.
35959         * doc/functions/fgetpos.texi (fgetpos): Likewise.
35960         Reported by Larry Jones.
35961
35962 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
35963
35964         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
35965         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
35966
35967 2007-12-17  Jim Meyering  <meyering@redhat.com>
35968
35969         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
35970         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
35971         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
35972         * modules/getcwd (Depends-on): Add openat.
35973         Reported by Petr Salinger.
35974
35975 2007-12-17  Bruno Haible  <bruno@clisp.org>
35976
35977         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
35978         avoid a segmentation fault of the configure test on x86_64 systems.
35979
35980 2007-12-15  Jim Meyering  <meyering@redhat.com>
35981
35982         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
35983
35984 2007-12-13  Eric Blake  <ebb9@byu.net>
35985
35986         Another fseek test.
35987         * tests/test-fseek.c (main): Also test ungetc handling.
35988         * tests/test-fseeko.c (main): Likewise.
35989         * modules/fseeko (Depends-on): Add verify.
35990         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
35991         large.
35992         Reported by Larry Jones.
35993
35994         Fix fseeko on mingw.
35995         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
35996         seek.
35997
35998         Beef up fseek tests.
35999         * tests/test-fseek.c (main): Also test eof handling.
36000         * tests/test-fseeko.c (main): Likewise.
36001         Reported by Larry Jones.
36002
36003 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
36004
36005         Fix fseeko on BSD-based platforms.
36006         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
36007         successful seek.
36008
36009 2007-12-12  Eric Blake  <ebb9@byu.net>
36010
36011         Allow circular dependency of separate libtests.a
36012         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
36013         when use_libtests.
36014
36015 2007-12-11  Eric Blake  <ebb9@byu.net>
36016
36017         Fix bug with -0.0L in previous patch.
36018         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
36019         * tests/test-isnan.c (main): Also test on zeroes.
36020         * tests/test-isnanf.c (main): Likewise.
36021         * tests/test-isnanl.h (main): Likewise.
36022
36023         Detect pseudo-denormals on x86 even when cross-compiling.
36024         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
36025         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
36026         invalid bit patterns that happen to satisfy ==.
36027
36028         Avoid link failures with separate libtests.a.
36029         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
36030         last, to satisfy circular dependencies.
36031
36032 2007-12-11  Eric Blake  <ebb9@byu.net>
36033         and Bruno Haible  <bruno@clisp.org>
36034
36035         Fix OpenBSD 4.0 <float.h> handling of long double.
36036         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
36037         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
36038         * doc/headers/float.texi (float.h): Document OpenBSD bug.
36039
36040 2007-12-11  Jim Meyering  <meyering@redhat.com>
36041
36042         * users.txt: Add libvirt.
36043
36044         Support versions of autoconf prior to 2.59c.
36045         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
36046         if it is not already defined.
36047
36048 2007-12-09  Bruno Haible  <bruno@clisp.org>
36049
36050         Let 'gnulib-tool --import' collect sources needed for the tests in
36051         tests/ rather than in lib/.
36052         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
36053         argument. If true, add rules to generate libtests.a, and put libtests.a
36054         into $(LDADD). Consider source files in subdirectories and set
36055         uses_subdirs.
36056         (func_emit_initmacro_start, func_emit_initmacro_end,
36057         func_emit_initmacro_done): Pass all arguments explicitly.
36058         (func_import): Determine two module lists main_modules,
36059         testsrelated_modules. Determine use_libtests. Determine two variables
36060         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
36061         instead of just sed_transform_lib_file. Determine two variables
36062         main_files and testsrelated_files. Compute 'files' as the union of
36063         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
36064         func_add_or_update. In the generated gnulib-comp.m4, collect the
36065         object files for tests/ in different variables than those for lib/.
36066         Substitute LIBTESTS_LIBDEPS.
36067         (func_create_testdir): Combine the uses_subdirs results from
36068         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
36069
36070 2007-12-09  Bruno Haible  <bruno@clisp.org>
36071
36072         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
36073         the build-aux directory.
36074
36075 2007-12-09  Bruno Haible  <bruno@clisp.org>
36076
36077         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
36078         introduced on 2006-09-09.
36079
36080 2007-12-07  Jim Meyering  <meyering@redhat.com>
36081
36082         Let these macros work also with autoconf-2.59.
36083         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
36084         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
36085         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
36086
36087 2007-12-06  Jim Meyering  <meyering@redhat.com>
36088
36089         Avoid a configure-time syntax error in gl_FUNC_ACL.
36090         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
36091         function in each branch, before testing the cache variable.
36092
36093 2007-12-04  Eric Blake  <ebb9@byu.net>
36094
36095         Make scripts executable.
36096         * build-aux/config.guess: Add execute permissions.
36097         * build-aux/config.sub: Likewise.
36098         * build-aux/gendocs.sh: Likewise.
36099
36100         Fix frexp on mingw.
36101         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
36102         cross-compiling.
36103         * doc/functions/frexp.texi (frexp): Document the bug.
36104
36105         Make cygwin fseeko check more reliable.
36106         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
36107         version numbers, rather than unrelated feature check.
36108         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
36109         * doc/functions/ftello.texi (ftello): Likewise.
36110         Reported by Bruno Haible.
36111
36112         * m4/strerror.m4: Bump version number.
36113
36114 2007-12-03  Bruno Haible  <bruno@clisp.org>
36115
36116         * doc/functions/mprotect.texi: Mention the mingw problem.
36117
36118 2007-12-03  Eric Blake  <ebb9@byu.net>
36119
36120         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
36121         REPLACE_STRERROR is initialized before this macro.
36122
36123 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
36124
36125         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
36126         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
36127         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
36128         put -lsec in even for programs other than 'ls'.  This fixes a problem
36129         for gettext reported by Bruno Haible in
36130         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
36131         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
36132         Add support for Solaris 10.  This isn't efficient, but should get the
36133         job done for now.
36134
36135 2007-12-03  James Youngman  <jay@gnu.org>
36136
36137         * doc/regexprops-generic.texi: change "an close-group" to "a
36138         close-group" and "illegal" to "not allowed".
36139
36140 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36141
36142         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
36143         pr_byname.h. Needed for the rare case when the maintainer has done
36144         "make maintainer-clean" in the source directory and then attempts a
36145         build outside the source directory.
36146         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
36147         scripts_byname.h.
36148
36149 2007-12-02  Martin Lambers <marlam@marlam.de>
36150             Bruno Haible  <bruno@clisp.org>
36151
36152         * lib/getpagesize.h: Remove file.
36153         * lib/unistd.in.h: Include declaration of getpagesize here.
36154         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
36155         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
36156         HAVE_SYS_PARAM_H.
36157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
36158         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
36159         * modules/getpagesize (Files): Remove lib/getpagesize.h.
36160         (Depends-on): Add unistd.
36161         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36162         (Include): Use <unistd.h> instead of getpagesize.h.
36163         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
36164         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
36165         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
36166         gl_GETPAGESIZE invocation, already handled by module dependency.
36167         * lib/pagealign_alloc.c: Don't include getpagesize.h.
36168
36169 2007-12-02  Bruno Haible  <bruno@clisp.org>
36170
36171         * modules/strings-tests: New file.
36172         * tests/test-strings.c: New file.
36173
36174         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
36175         * lib/strings.in.h: New file.
36176         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
36177         * m4/strings_h.m4: New file.
36178         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
36179         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
36180         * modules/strings: New file.
36181         * modules/string (Makefile.am): Update.
36182         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
36183         Reported by Karl Berry.
36184
36185 2007-12-01  Eric Blake  <ebb9@byu.net>
36186
36187         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
36188         accomodate fix in cygwin 1.5.25.
36189
36190 2007-12-01  Jim Meyering  <meyering@redhat.com>
36191
36192         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
36193         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
36194         that would inhibit utf8-optimization of a regexp containing line-
36195         or buffer-anchors, e.g., `^', `$'.
36196
36197 2007-11-30  Bruno Haible  <bruno@clisp.org>
36198
36199         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
36200         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
36201         glthread_recursive_lock_init.
36202         * lib/lock.c (glthread_recursive_lock_init)
36203         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
36204         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36205
36206 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
36207
36208         New function qset_acl, like set_acl but with syscall semantics.
36209         * lib/acl.h (qset_acl): New decl.
36210         * lib/acl.c (qset_acl): New function.
36211         (set_acl): Use new function.  Use more-consistent diagnostics.
36212
36213 2007-11-28  Jim Meyering  <meyering@redhat.com>
36214
36215         * modules/physmem (License): Change from GPL to LGPLv2+.
36216
36217 2007-11-26  Bruno Haible  <bruno@clisp.org>
36218
36219         * lib/vasnprintf.c (decode_long_double): Don't abort if the
36220         'long double' type has excess precision.
36221         Reported by Jim Meyering in
36222         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
36223
36224 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36225
36226         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
36227         Sync from <http://gnu.org/licenses>.
36228         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
36229         with license text from same location.
36230         * doc/maintain.texi, doc/standards.texi:  Sync from
36231         <http://savannah.gnu.org/projects/gnustandards>.
36232
36233 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
36234         and Jim Meyering  <meyering@redhat.com>
36235
36236         Adjust getdate' grammar to accept a slightly more regular language.
36237         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
36238         Before, the former was rejected.
36239         * lib/getdate.y (digits_to_date_time): New function, factored
36240         out of ...
36241         (number): ...here.  Just call digits_to_date_time.
36242         (hybrid): New non-terminal to handle an <unsigned number,
36243         signed relative offset> sequence consistently.
36244
36245 2007-11-18  Jim Meyering  <meyering@redhat.com>
36246
36247         Pull my changes from coreutils:
36248         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
36249         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
36250         use of $gnulib_tool_option_extras, so that it's separated from the
36251         preceding argument.
36252
36253         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
36254         * build-aux/bootstrap (cp_mark_as_generated): Create any required
36255         parent destination directories before copying a file into place.
36256
36257 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
36258
36259         bootstrap: work also with 4-argument variant of AC_INIT
36260         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
36261
36262 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
36263
36264         Port test-getaddrinfo to Solaris.
36265         Problem reported by Bruno Haible in
36266         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
36267         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
36268         explanation of setting 'hints'.
36269         Don't reject an implementation merely because it returns EAI_SERVICE.
36270         (EAI_SERVICE): Define to 0 if not defined.
36271
36272 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
36273
36274         The license of gnu-make and posix-shell is now "GPLed build tool".
36275         * modules/gnu-make (License): Likewise.
36276         * modules/posix-shell (License): Likewise.
36277
36278         New module posix-shell, for determining a POSIX shell
36279         or perhaps something that is close enough to a POSIX shell.
36280         * m4/posix-shell.m4: New file.
36281         * modules/posix-shell: New file.
36282
36283         * MODULES.html.sh: Mention new module.
36284
36285         New module gnu-make, for determining whether we're using GNU Make.
36286         * m4/gnu-make.m4: New file.
36287         * modules/gnu-make: New file.
36288         * MODULES.html.sh: Mention new module.
36289
36290 2007-11-14  Jim Meyering  <meyering@redhat.com>
36291
36292         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
36293         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
36294         use this macro to create a function _definition_.
36295         Remove useless "#undef ARGMATCH_DIE".
36296
36297 2007-11-14  Bruno Haible  <bruno@clisp.org>
36298
36299         * lib/config.charset: Update for OpenBSD 4.1.
36300         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
36301
36302 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
36303
36304         Document 64-bit #if problems in stdint.texi.
36305         * doc/headers/stdint.texi (stdint.h): Mention problems with
36306         64-bit-#if, and how to work around them.
36307
36308         Don't insist on 'long long int' support in the preprocessor.  It
36309         breaks too many things.  For example, PRIdMAX still uses a 'long
36310         long int' format with the latest Sun compiler, even though
36311         HAVE_LONG_LONG_INT isn't defined due to that compiler's
36312         preprocessor problem.  This causes the latest coreutils to dump
36313         core on Solaris 10 sparc with the Sun C compiler.
36314         Instead, fix the 2007-10-16 problem in a different way, by evaluating
36315         the troublesome expressions at configure-time, not at #if-time.
36316         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
36317         preprocessor.
36318         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
36319         compile-time C checks, done at 'configure'-time.
36320         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
36321         * modules/inttypes (Makefile): Substitute the new symbols that
36322         gl_INTTYPES_H now generates.
36323         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
36324
36325 2007-11-12  Bruno Haible  <bruno@clisp.org>
36326
36327         Tests for Unicode character classification functions.
36328
36329         * modules/unictype/bidicategory-byname-tests: New file.
36330         * modules/unictype/bidicategory-name-tests: New file.
36331         * modules/unictype/bidicategory-of-tests: New file.
36332         * modules/unictype/bidicategory-test-tests: New file.
36333         * modules/unictype/block-list-tests: New file.
36334         * modules/unictype/block-of-tests: New file.
36335         * modules/unictype/block-test-tests: New file.
36336         * modules/unictype/category-C-tests: New file.
36337         * modules/unictype/category-Cc-tests: New file.
36338         * modules/unictype/category-Cf-tests: New file.
36339         * modules/unictype/category-Cn-tests: New file.
36340         * modules/unictype/category-Co-tests: New file.
36341         * modules/unictype/category-Cs-tests: New file.
36342         * modules/unictype/category-L-tests: New file.
36343         * modules/unictype/category-Ll-tests: New file.
36344         * modules/unictype/category-Lm-tests: New file.
36345         * modules/unictype/category-Lo-tests: New file.
36346         * modules/unictype/category-Lt-tests: New file.
36347         * modules/unictype/category-Lu-tests: New file.
36348         * modules/unictype/category-M-tests: New file.
36349         * modules/unictype/category-Mc-tests: New file.
36350         * modules/unictype/category-Me-tests: New file.
36351         * modules/unictype/category-Mn-tests: New file.
36352         * modules/unictype/category-N-tests: New file.
36353         * modules/unictype/category-Nd-tests: New file.
36354         * modules/unictype/category-Nl-tests: New file.
36355         * modules/unictype/category-No-tests: New file.
36356         * modules/unictype/category-P-tests: New file.
36357         * modules/unictype/category-Pc-tests: New file.
36358         * modules/unictype/category-Pd-tests: New file.
36359         * modules/unictype/category-Pe-tests: New file.
36360         * modules/unictype/category-Pf-tests: New file.
36361         * modules/unictype/category-Pi-tests: New file.
36362         * modules/unictype/category-Po-tests: New file.
36363         * modules/unictype/category-Ps-tests: New file.
36364         * modules/unictype/category-S-tests: New file.
36365         * modules/unictype/category-Sc-tests: New file.
36366         * modules/unictype/category-Sk-tests: New file.
36367         * modules/unictype/category-Sm-tests: New file.
36368         * modules/unictype/category-So-tests: New file.
36369         * modules/unictype/category-Z-tests: New file.
36370         * modules/unictype/category-Zl-tests: New file.
36371         * modules/unictype/category-Zp-tests: New file.
36372         * modules/unictype/category-Zs-tests: New file.
36373         * modules/unictype/category-and-not-tests: New file.
36374         * modules/unictype/category-and-tests: New file.
36375         * modules/unictype/category-byname-tests: New file.
36376         * modules/unictype/category-name-tests: New file.
36377         * modules/unictype/category-none-tests: New file.
36378         * modules/unictype/category-of-tests: New file.
36379         * modules/unictype/category-or-tests: New file.
36380         * modules/unictype/category-test-withtable-tests: New file.
36381         * modules/unictype/combining-class-tests: New file.
36382         * modules/unictype/ctype-alnum-tests: New file.
36383         * modules/unictype/ctype-alpha-tests: New file.
36384         * modules/unictype/ctype-blank-tests: New file.
36385         * modules/unictype/ctype-cntrl-tests: New file.
36386         * modules/unictype/ctype-digit-tests: New file.
36387         * modules/unictype/ctype-graph-tests: New file.
36388         * modules/unictype/ctype-lower-tests: New file.
36389         * modules/unictype/ctype-print-tests: New file.
36390         * modules/unictype/ctype-punct-tests: New file.
36391         * modules/unictype/ctype-space-tests: New file.
36392         * modules/unictype/ctype-upper-tests: New file.
36393         * modules/unictype/ctype-xdigit-tests: New file.
36394         * modules/unictype/decimal-digit-tests: New file.
36395         * modules/unictype/digit-tests: New file.
36396         * modules/unictype/mirror-tests: New file.
36397         * modules/unictype/numeric-tests: New file.
36398         * modules/unictype/property-alphabetic-tests: New file.
36399         * modules/unictype/property-ascii-hex-digit-tests: New file.
36400         * modules/unictype/property-bidi-arabic-digit-tests: New file.
36401         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
36402         * modules/unictype/property-bidi-block-separator-tests: New file.
36403         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
36404         * modules/unictype/property-bidi-common-separator-tests: New file.
36405         * modules/unictype/property-bidi-control-tests: New file.
36406         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
36407         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
36408         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
36409         * modules/unictype/property-bidi-european-digit-tests: New file.
36410         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
36411         * modules/unictype/property-bidi-left-to-right-tests: New file.
36412         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
36413         * modules/unictype/property-bidi-other-neutral-tests: New file.
36414         * modules/unictype/property-bidi-pdf-tests: New file.
36415         * modules/unictype/property-bidi-segment-separator-tests: New file.
36416         * modules/unictype/property-bidi-whitespace-tests: New file.
36417         * modules/unictype/property-byname-tests: New file.
36418         * modules/unictype/property-combining-tests: New file.
36419         * modules/unictype/property-composite-tests: New file.
36420         * modules/unictype/property-currency-symbol-tests: New file.
36421         * modules/unictype/property-dash-tests: New file.
36422         * modules/unictype/property-decimal-digit-tests: New file.
36423         * modules/unictype/property-default-ignorable-code-point-tests: New file.
36424         * modules/unictype/property-deprecated-tests: New file.
36425         * modules/unictype/property-diacritic-tests: New file.
36426         * modules/unictype/property-extender-tests: New file.
36427         * modules/unictype/property-format-control-tests: New file.
36428         * modules/unictype/property-grapheme-base-tests: New file.
36429         * modules/unictype/property-grapheme-extend-tests: New file.
36430         * modules/unictype/property-grapheme-link-tests: New file.
36431         * modules/unictype/property-hex-digit-tests: New file.
36432         * modules/unictype/property-hyphen-tests: New file.
36433         * modules/unictype/property-id-continue-tests: New file.
36434         * modules/unictype/property-id-start-tests: New file.
36435         * modules/unictype/property-ideographic-tests: New file.
36436         * modules/unictype/property-ids-binary-operator-tests: New file.
36437         * modules/unictype/property-ids-trinary-operator-tests: New file.
36438         * modules/unictype/property-ignorable-control-tests: New file.
36439         * modules/unictype/property-iso-control-tests: New file.
36440         * modules/unictype/property-join-control-tests: New file.
36441         * modules/unictype/property-left-of-pair-tests: New file.
36442         * modules/unictype/property-line-separator-tests: New file.
36443         * modules/unictype/property-logical-order-exception-tests: New file.
36444         * modules/unictype/property-lowercase-tests: New file.
36445         * modules/unictype/property-math-tests: New file.
36446         * modules/unictype/property-non-break-tests: New file.
36447         * modules/unictype/property-not-a-character-tests: New file.
36448         * modules/unictype/property-numeric-tests: New file.
36449         * modules/unictype/property-other-alphabetic-tests: New file.
36450         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
36451         * modules/unictype/property-other-grapheme-extend-tests: New file.
36452         * modules/unictype/property-other-id-continue-tests: New file.
36453         * modules/unictype/property-other-id-start-tests: New file.
36454         * modules/unictype/property-other-lowercase-tests: New file.
36455         * modules/unictype/property-other-math-tests: New file.
36456         * modules/unictype/property-other-uppercase-tests: New file.
36457         * modules/unictype/property-paired-punctuation-tests: New file.
36458         * modules/unictype/property-paragraph-separator-tests: New file.
36459         * modules/unictype/property-pattern-syntax-tests: New file.
36460         * modules/unictype/property-pattern-white-space-tests: New file.
36461         * modules/unictype/property-private-use-tests: New file.
36462         * modules/unictype/property-punctuation-tests: New file.
36463         * modules/unictype/property-quotation-mark-tests: New file.
36464         * modules/unictype/property-radical-tests: New file.
36465         * modules/unictype/property-sentence-terminal-tests: New file.
36466         * modules/unictype/property-soft-dotted-tests: New file.
36467         * modules/unictype/property-space-tests: New file.
36468         * modules/unictype/property-terminal-punctuation-tests: New file.
36469         * modules/unictype/property-test-tests: New file.
36470         * modules/unictype/property-titlecase-tests: New file.
36471         * modules/unictype/property-unassigned-code-value-tests: New file.
36472         * modules/unictype/property-unified-ideograph-tests: New file.
36473         * modules/unictype/property-uppercase-tests: New file.
36474         * modules/unictype/property-variation-selector-tests: New file.
36475         * modules/unictype/property-white-space-tests: New file.
36476         * modules/unictype/property-xid-continue-tests: New file.
36477         * modules/unictype/property-xid-start-tests: New file.
36478         * modules/unictype/property-zero-width-tests: New file.
36479         * modules/unictype/scripts-tests: New file.
36480         * modules/unictype/syntax-c-ident-tests: New file.
36481         * modules/unictype/syntax-c-whitespace-tests: New file.
36482         * modules/unictype/syntax-java-ident-tests: New file.
36483         * modules/unictype/syntax-java-whitespace-tests: New file.
36484         * tests/unictype/test-bidi_byname.c: New file.
36485         * tests/unictype/test-bidi_name.c: New file.
36486         * tests/unictype/test-bidi_of.c: New file.
36487         * tests/unictype/test-bidi_test.c: New file.
36488         * tests/unictype/test-block_list.c: New file.
36489         * tests/unictype/test-block_of.c: New file.
36490         * tests/unictype/test-block_test.c: New file.
36491         * tests/unictype/test-categ_and.c: New file.
36492         * tests/unictype/test-categ_and_not.c: New file.
36493         * tests/unictype/test-categ_byname.c: New file.
36494         * tests/unictype/test-categ_name.c: New file.
36495         * tests/unictype/test-categ_none.c: New file.
36496         * tests/unictype/test-categ_of.c: New file.
36497         * tests/unictype/test-categ_or.c: New file.
36498         * tests/unictype/test-categ_test_withtable.c: New file.
36499         * tests/unictype/test-combining.c: New file.
36500         * tests/unictype/test-decdigit.c: New file.
36501         * tests/unictype/test-digit.c: New file.
36502         * tests/unictype/test-mirror.c: New file.
36503         * tests/unictype/test-numeric.c: New file.
36504         * tests/unictype/test-pr_byname.c: New file.
36505         * tests/unictype/test-pr_test.c: New file.
36506         * tests/unictype/test-predicate-part1.h: New file.
36507         * tests/unictype/test-predicate-part2.h: New file.
36508         * tests/unictype/test-scripts.c: New file.
36509         * tests/unictype/test-sy_c_ident.c: New file.
36510         * tests/unictype/test-sy_java_ident.c: New file.
36511
36512         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
36513         for Unicode 5.0.0.
36514         * tests/unictype/test-categ_Cc.c: Likewise.
36515         * tests/unictype/test-categ_Cf.c: Likewise.
36516         * tests/unictype/test-categ_Cn.c: Likewise.
36517         * tests/unictype/test-categ_Co.c: Likewise.
36518         * tests/unictype/test-categ_Cs.c: Likewise.
36519         * tests/unictype/test-categ_L.c: Likewise.
36520         * tests/unictype/test-categ_Ll.c: Likewise.
36521         * tests/unictype/test-categ_Lm.c: Likewise.
36522         * tests/unictype/test-categ_Lo.c: Likewise.
36523         * tests/unictype/test-categ_Lt.c: Likewise.
36524         * tests/unictype/test-categ_Lu.c: Likewise.
36525         * tests/unictype/test-categ_M.c: Likewise.
36526         * tests/unictype/test-categ_Mc.c: Likewise.
36527         * tests/unictype/test-categ_Me.c: Likewise.
36528         * tests/unictype/test-categ_Mn.c: Likewise.
36529         * tests/unictype/test-categ_N.c: Likewise.
36530         * tests/unictype/test-categ_Nd.c: Likewise.
36531         * tests/unictype/test-categ_Nl.c: Likewise.
36532         * tests/unictype/test-categ_No.c: Likewise.
36533         * tests/unictype/test-categ_P.c: Likewise.
36534         * tests/unictype/test-categ_Pc.c: Likewise.
36535         * tests/unictype/test-categ_Pd.c: Likewise.
36536         * tests/unictype/test-categ_Pe.c: Likewise.
36537         * tests/unictype/test-categ_Pf.c: Likewise.
36538         * tests/unictype/test-categ_Pi.c: Likewise.
36539         * tests/unictype/test-categ_Po.c: Likewise.
36540         * tests/unictype/test-categ_Ps.c: Likewise.
36541         * tests/unictype/test-categ_S.c: Likewise.
36542         * tests/unictype/test-categ_Sc.c: Likewise.
36543         * tests/unictype/test-categ_Sk.c: Likewise.
36544         * tests/unictype/test-categ_Sm.c: Likewise.
36545         * tests/unictype/test-categ_So.c: Likewise.
36546         * tests/unictype/test-categ_Z.c: Likewise.
36547         * tests/unictype/test-categ_Zl.c: Likewise.
36548         * tests/unictype/test-categ_Zp.c: Likewise.
36549         * tests/unictype/test-categ_Zs.c: Likewise.
36550         * tests/unictype/test-ctype_alnum.c: Likewise.
36551         * tests/unictype/test-ctype_alpha.c: Likewise.
36552         * tests/unictype/test-ctype_blank.c: Likewise.
36553         * tests/unictype/test-ctype_cntrl.c: Likewise.
36554         * tests/unictype/test-ctype_digit.c: Likewise.
36555         * tests/unictype/test-ctype_graph.c: Likewise.
36556         * tests/unictype/test-ctype_lower.c: Likewise.
36557         * tests/unictype/test-ctype_print.c: Likewise.
36558         * tests/unictype/test-ctype_punct.c: Likewise.
36559         * tests/unictype/test-ctype_space.c: Likewise.
36560         * tests/unictype/test-ctype_upper.c: Likewise.
36561         * tests/unictype/test-ctype_xdigit.c: Likewise.
36562         * tests/unictype/test-decdigit.h: Likewise.
36563         * tests/unictype/test-digit.h: Likewise.
36564         * tests/unictype/test-numeric.h: Likewise.
36565         * tests/unictype/test-pr_alphabetic.c: Likewise.
36566         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
36567         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
36568         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
36569         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
36570         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
36571         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
36572         * tests/unictype/test-pr_bidi_control.c: Likewise.
36573         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
36574         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
36575         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
36576         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
36577         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
36578         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
36579         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
36580         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
36581         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
36582         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
36583         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
36584         * tests/unictype/test-pr_combining.c: Likewise.
36585         * tests/unictype/test-pr_composite.c: Likewise.
36586         * tests/unictype/test-pr_currency_symbol.c: Likewise.
36587         * tests/unictype/test-pr_dash.c: Likewise.
36588         * tests/unictype/test-pr_decimal_digit.c: Likewise.
36589         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
36590         * tests/unictype/test-pr_deprecated.c: Likewise.
36591         * tests/unictype/test-pr_diacritic.c: Likewise.
36592         * tests/unictype/test-pr_extender.c: Likewise.
36593         * tests/unictype/test-pr_format_control.c: Likewise.
36594         * tests/unictype/test-pr_grapheme_base.c: Likewise.
36595         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
36596         * tests/unictype/test-pr_grapheme_link.c: Likewise.
36597         * tests/unictype/test-pr_hex_digit.c: Likewise.
36598         * tests/unictype/test-pr_hyphen.c: Likewise.
36599         * tests/unictype/test-pr_id_continue.c: Likewise.
36600         * tests/unictype/test-pr_id_start.c: Likewise.
36601         * tests/unictype/test-pr_ideographic.c: Likewise.
36602         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
36603         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
36604         * tests/unictype/test-pr_ignorable_control.c: Likewise.
36605         * tests/unictype/test-pr_iso_control.c: Likewise.
36606         * tests/unictype/test-pr_join_control.c: Likewise.
36607         * tests/unictype/test-pr_left_of_pair.c: Likewise.
36608         * tests/unictype/test-pr_line_separator.c: Likewise.
36609         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
36610         * tests/unictype/test-pr_lowercase.c: Likewise.
36611         * tests/unictype/test-pr_math.c: Likewise.
36612         * tests/unictype/test-pr_non_break.c: Likewise.
36613         * tests/unictype/test-pr_not_a_character.c: Likewise.
36614         * tests/unictype/test-pr_numeric.c: Likewise.
36615         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
36616         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
36617         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
36618         * tests/unictype/test-pr_other_id_continue.c: Likewise.
36619         * tests/unictype/test-pr_other_id_start.c: Likewise.
36620         * tests/unictype/test-pr_other_lowercase.c: Likewise.
36621         * tests/unictype/test-pr_other_math.c: Likewise.
36622         * tests/unictype/test-pr_other_uppercase.c: Likewise.
36623         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
36624         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
36625         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
36626         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
36627         * tests/unictype/test-pr_private_use.c: Likewise.
36628         * tests/unictype/test-pr_punctuation.c: Likewise.
36629         * tests/unictype/test-pr_quotation_mark.c: Likewise.
36630         * tests/unictype/test-pr_radical.c: Likewise.
36631         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
36632         * tests/unictype/test-pr_soft_dotted.c: Likewise.
36633         * tests/unictype/test-pr_space.c: Likewise.
36634         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
36635         * tests/unictype/test-pr_titlecase.c: Likewise.
36636         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
36637         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
36638         * tests/unictype/test-pr_uppercase.c: Likewise.
36639         * tests/unictype/test-pr_variation_selector.c: Likewise.
36640         * tests/unictype/test-pr_white_space.c: Likewise.
36641         * tests/unictype/test-pr_xid_continue.c: Likewise.
36642         * tests/unictype/test-pr_xid_start.c: Likewise.
36643         * tests/unictype/test-pr_zero_width.c: Likewise.
36644         * tests/unictype/test-sy_c_whitespace.c: Likewise.
36645         * tests/unictype/test-sy_java_whitespace.c: Likewise.
36646
36647 2007-11-12  Bruno Haible  <bruno@clisp.org>
36648
36649         Unicode character classification functions.
36650         * lib/unictype.h: New file.
36651         * modules/unictype/base: New file.
36652         * modules/unictype/category-L: New file.
36653         * modules/unictype/category-Lu: New file.
36654         * modules/unictype/category-Ll: New file.
36655         * modules/unictype/category-Lt: New file.
36656         * modules/unictype/category-Lm: New file.
36657         * modules/unictype/category-Lo: New file.
36658         * modules/unictype/category-M: New file.
36659         * modules/unictype/category-Mn: New file.
36660         * modules/unictype/category-Mc: New file.
36661         * modules/unictype/category-Me: New file.
36662         * modules/unictype/category-N: New file.
36663         * modules/unictype/category-Nd: New file.
36664         * modules/unictype/category-Nl: New file.
36665         * modules/unictype/category-No: New file.
36666         * modules/unictype/category-P: New file.
36667         * modules/unictype/category-Pc: New file.
36668         * modules/unictype/category-Pd: New file.
36669         * modules/unictype/category-Ps: New file.
36670         * modules/unictype/category-Pe: New file.
36671         * modules/unictype/category-Pi: New file.
36672         * modules/unictype/category-Pf: New file.
36673         * modules/unictype/category-Po: New file.
36674         * modules/unictype/category-S: New file.
36675         * modules/unictype/category-Sm: New file.
36676         * modules/unictype/category-Sc: New file.
36677         * modules/unictype/category-Sk: New file.
36678         * modules/unictype/category-So: New file.
36679         * modules/unictype/category-Z: New file.
36680         * modules/unictype/category-Zs: New file.
36681         * modules/unictype/category-Zl: New file.
36682         * modules/unictype/category-Zp: New file.
36683         * modules/unictype/category-C: New file.
36684         * modules/unictype/category-Cc: New file.
36685         * modules/unictype/category-Cf: New file.
36686         * modules/unictype/category-Cs: New file.
36687         * modules/unictype/category-Co: New file.
36688         * modules/unictype/category-Cn: New file.
36689         * modules/unictype/category-or: New file.
36690         * modules/unictype/category-of: New file.
36691         * modules/unictype/category-test: New file.
36692         * modules/unictype/category-test-withtable: New file.
36693         * modules/unictype/category-byname: New file.
36694         * modules/unictype/category-none: New file.
36695         * modules/unictype/category-and: New file.
36696         * modules/unictype/category-and-not: New file.
36697         * modules/unictype/category-name: New file.
36698         * modules/unictype/combining-class: New file.
36699         * modules/unictype/category-all: New file.
36700         * modules/unictype/bidicategory-all: New file.
36701         * modules/unictype/bidicategory-byname: New file.
36702         * modules/unictype/bidicategory-name: New file.
36703         * modules/unictype/bidicategory-of: New file.
36704         * modules/unictype/bidicategory-test: New file.
36705         * modules/unictype/decimal-digit: New file.
36706         * modules/unictype/digit: New file.
36707         * modules/unictype/numeric: New file.
36708         * modules/unictype/mirror: New file.
36709         * modules/unictype/property-white-space: New file.
36710         * modules/unictype/property-alphabetic: New file.
36711         * modules/unictype/property-other-alphabetic: New file.
36712         * modules/unictype/property-not-a-character: New file.
36713         * modules/unictype/property-default-ignorable-code-point: New file.
36714         * modules/unictype/property-other-default-ignorable-code-point: New
36715         file.
36716         * modules/unictype/property-deprecated: New file.
36717         * modules/unictype/property-logical-order-exception: New file.
36718         * modules/unictype/property-variation-selector: New file.
36719         * modules/unictype/property-private-use: New file.
36720         * modules/unictype/property-unassigned-code-value: New file.
36721         * modules/unictype/property-uppercase: New file.
36722         * modules/unictype/property-other-uppercase: New file.
36723         * modules/unictype/property-lowercase: New file.
36724         * modules/unictype/property-other-lowercase: New file.
36725         * modules/unictype/property-titlecase: New file.
36726         * modules/unictype/property-soft-dotted: New file.
36727         * modules/unictype/property-id-start: New file.
36728         * modules/unictype/property-other-id-start: New file.
36729         * modules/unictype/property-id-continue: New file.
36730         * modules/unictype/property-other-id-continue: New file.
36731         * modules/unictype/property-xid-start: New file.
36732         * modules/unictype/property-xid-continue: New file.
36733         * modules/unictype/property-pattern-white-space: New file.
36734         * modules/unictype/property-pattern-syntax: New file.
36735         * modules/unictype/property-join-control: New file.
36736         * modules/unictype/property-grapheme-base: New file.
36737         * modules/unictype/property-grapheme-extend: New file.
36738         * modules/unictype/property-other-grapheme-extend: New file.
36739         * modules/unictype/property-grapheme-link: New file.
36740         * modules/unictype/property-bidi-control: New file.
36741         * modules/unictype/property-bidi-left-to-right: New file.
36742         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
36743         * modules/unictype/property-bidi-arabic-right-to-left: New file.
36744         * modules/unictype/property-bidi-european-digit: New file.
36745         * modules/unictype/property-bidi-eur-num-separator: New file.
36746         * modules/unictype/property-bidi-eur-num-terminator: New file.
36747         * modules/unictype/property-bidi-arabic-digit: New file.
36748         * modules/unictype/property-bidi-common-separator: New file.
36749         * modules/unictype/property-bidi-block-separator: New file.
36750         * modules/unictype/property-bidi-segment-separator: New file.
36751         * modules/unictype/property-bidi-whitespace: New file.
36752         * modules/unictype/property-bidi-non-spacing-mark: New file.
36753         * modules/unictype/property-bidi-boundary-neutral: New file.
36754         * modules/unictype/property-bidi-pdf: New file.
36755         * modules/unictype/property-bidi-embedding-or-override: New file.
36756         * modules/unictype/property-bidi-other-neutral: New file.
36757         * modules/unictype/property-hex-digit: New file.
36758         * modules/unictype/property-ascii-hex-digit: New file.
36759         * modules/unictype/property-ideographic: New file.
36760         * modules/unictype/property-unified-ideograph: New file.
36761         * modules/unictype/property-radical: New file.
36762         * modules/unictype/property-ids-binary-operator: New file.
36763         * modules/unictype/property-ids-trinary-operator: New file.
36764         * modules/unictype/property-zero-width: New file.
36765         * modules/unictype/property-space: New file.
36766         * modules/unictype/property-non-break: New file.
36767         * modules/unictype/property-iso-control: New file.
36768         * modules/unictype/property-format-control: New file.
36769         * modules/unictype/property-dash: New file.
36770         * modules/unictype/property-hyphen: New file.
36771         * modules/unictype/property-punctuation: New file.
36772         * modules/unictype/property-line-separator: New file.
36773         * modules/unictype/property-paragraph-separator: New file.
36774         * modules/unictype/property-quotation-mark: New file.
36775         * modules/unictype/property-sentence-terminal: New file.
36776         * modules/unictype/property-terminal-punctuation: New file.
36777         * modules/unictype/property-currency-symbol: New file.
36778         * modules/unictype/property-math: New file.
36779         * modules/unictype/property-other-math: New file.
36780         * modules/unictype/property-paired-punctuation: New file.
36781         * modules/unictype/property-left-of-pair: New file.
36782         * modules/unictype/property-combining: New file.
36783         * modules/unictype/property-composite: New file.
36784         * modules/unictype/property-decimal-digit: New file.
36785         * modules/unictype/property-numeric: New file.
36786         * modules/unictype/property-diacritic: New file.
36787         * modules/unictype/property-extender: New file.
36788         * modules/unictype/property-ignorable-control: New file.
36789         * modules/unictype/property-test: New file.
36790         * modules/unictype/property-byname: New file.
36791         * modules/unictype/property-all: New file.
36792         * modules/unictype/scripts: New file.
36793         * modules/unictype/scripts-all: New file.
36794         * modules/unictype/block-of: New file.
36795         * modules/unictype/block-test: New file.
36796         * modules/unictype/block-list: New file.
36797         * modules/unictype/block-all: New file.
36798         * modules/unictype/syntax-c-whitespace: New file.
36799         * modules/unictype/syntax-java-whitespace: New file.
36800         * modules/unictype/syntax-c-ident: New file.
36801         * modules/unictype/syntax-java-ident: New file.
36802         * modules/unictype/ctype-alnum: New file.
36803         * modules/unictype/ctype-alpha: New file.
36804         * modules/unictype/ctype-cntrl: New file.
36805         * modules/unictype/ctype-digit: New file.
36806         * modules/unictype/ctype-graph: New file.
36807         * modules/unictype/ctype-lower: New file.
36808         * modules/unictype/ctype-print: New file.
36809         * modules/unictype/ctype-punct: New file.
36810         * modules/unictype/ctype-space: New file.
36811         * modules/unictype/ctype-upper: New file.
36812         * modules/unictype/ctype-xdigit: New file.
36813         * modules/unictype/ctype-blank: New file.
36814         * lib/unictype/bidi_byname.c: New file.
36815         * lib/unictype/bidi_name.c: New file.
36816         * lib/unictype/bidi_of.c: New file.
36817         * lib/unictype/bidi_test.c: New file.
36818         * lib/unictype/bitmap.h: New file.
36819         * lib/unictype/block_test.c: New file.
36820         * lib/unictype/blocks.c: New file.
36821         * lib/unictype/categ_C.c: New file.
36822         * lib/unictype/categ_Cc.c: New file.
36823         * lib/unictype/categ_Cf.c: New file.
36824         * lib/unictype/categ_Cn.c: New file.
36825         * lib/unictype/categ_Co.c: New file.
36826         * lib/unictype/categ_Cs.c: New file.
36827         * lib/unictype/categ_L.c: New file.
36828         * lib/unictype/categ_Ll.c: New file.
36829         * lib/unictype/categ_Lm.c: New file.
36830         * lib/unictype/categ_Lo.c: New file.
36831         * lib/unictype/categ_Lt.c: New file.
36832         * lib/unictype/categ_Lu.c: New file.
36833         * lib/unictype/categ_M.c: New file.
36834         * lib/unictype/categ_Mc.c: New file.
36835         * lib/unictype/categ_Me.c: New file.
36836         * lib/unictype/categ_Mn.c: New file.
36837         * lib/unictype/categ_N.c: New file.
36838         * lib/unictype/categ_Nd.c: New file.
36839         * lib/unictype/categ_Nl.c: New file.
36840         * lib/unictype/categ_No.c: New file.
36841         * lib/unictype/categ_P.c: New file.
36842         * lib/unictype/categ_Pc.c: New file.
36843         * lib/unictype/categ_Pd.c: New file.
36844         * lib/unictype/categ_Pe.c: New file.
36845         * lib/unictype/categ_Pf.c: New file.
36846         * lib/unictype/categ_Pi.c: New file.
36847         * lib/unictype/categ_Po.c: New file.
36848         * lib/unictype/categ_Ps.c: New file.
36849         * lib/unictype/categ_S.c: New file.
36850         * lib/unictype/categ_Sc.c: New file.
36851         * lib/unictype/categ_Sk.c: New file.
36852         * lib/unictype/categ_Sm.c: New file.
36853         * lib/unictype/categ_So.c: New file.
36854         * lib/unictype/categ_Z.c: New file.
36855         * lib/unictype/categ_Zl.c: New file.
36856         * lib/unictype/categ_Zp.c: New file.
36857         * lib/unictype/categ_Zs.c: New file.
36858         * lib/unictype/categ_and.c: New file.
36859         * lib/unictype/categ_and_not.c: New file.
36860         * lib/unictype/categ_byname.c: New file.
36861         * lib/unictype/categ_name.c: New file.
36862         * lib/unictype/categ_none.c: New file.
36863         * lib/unictype/categ_of.c: New file.
36864         * lib/unictype/categ_or.c: New file.
36865         * lib/unictype/categ_test.c: New file.
36866         * lib/unictype/combining.c: New file.
36867         * lib/unictype/ctype_alnum.c: New file.
36868         * lib/unictype/ctype_alpha.c: New file.
36869         * lib/unictype/ctype_blank.c: New file.
36870         * lib/unictype/ctype_cntrl.c: New file.
36871         * lib/unictype/ctype_digit.c: New file.
36872         * lib/unictype/ctype_graph.c: New file.
36873         * lib/unictype/ctype_lower.c: New file.
36874         * lib/unictype/ctype_print.c: New file.
36875         * lib/unictype/ctype_punct.c: New file.
36876         * lib/unictype/ctype_space.c: New file.
36877         * lib/unictype/ctype_upper.c: New file.
36878         * lib/unictype/ctype_xdigit.c: New file.
36879         * lib/unictype/decdigit.c: New file.
36880         * lib/unictype/digit.c: New file.
36881         * lib/unictype/identsyntaxmap.h: New file.
36882         * lib/unictype/mirror.c: New file.
36883         * lib/unictype/numeric.c: New file.
36884         * lib/unictype/pr_alphabetic.c: New file.
36885         * lib/unictype/pr_ascii_hex_digit.c: New file.
36886         * lib/unictype/pr_bidi_arabic_digit.c: New file.
36887         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
36888         * lib/unictype/pr_bidi_block_separator.c: New file.
36889         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
36890         * lib/unictype/pr_bidi_common_separator.c: New file.
36891         * lib/unictype/pr_bidi_control.c: New file.
36892         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
36893         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
36894         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
36895         * lib/unictype/pr_bidi_european_digit.c: New file.
36896         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
36897         * lib/unictype/pr_bidi_left_to_right.c: New file.
36898         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
36899         * lib/unictype/pr_bidi_other_neutral.c: New file.
36900         * lib/unictype/pr_bidi_pdf.c: New file.
36901         * lib/unictype/pr_bidi_segment_separator.c: New file.
36902         * lib/unictype/pr_bidi_whitespace.c: New file.
36903         * lib/unictype/pr_byname.c: New file.
36904         * lib/unictype/pr_byname.gperf: New file.
36905         * lib/unictype/pr_combining.c: New file.
36906         * lib/unictype/pr_composite.c: New file.
36907         * lib/unictype/pr_currency_symbol.c: New file.
36908         * lib/unictype/pr_dash.c: New file.
36909         * lib/unictype/pr_decimal_digit.c: New file.
36910         * lib/unictype/pr_default_ignorable_code_point.c: New file.
36911         * lib/unictype/pr_deprecated.c: New file.
36912         * lib/unictype/pr_diacritic.c: New file.
36913         * lib/unictype/pr_extender.c: New file.
36914         * lib/unictype/pr_format_control.c: New file.
36915         * lib/unictype/pr_grapheme_base.c: New file.
36916         * lib/unictype/pr_grapheme_extend.c: New file.
36917         * lib/unictype/pr_grapheme_link.c: New file.
36918         * lib/unictype/pr_hex_digit.c: New file.
36919         * lib/unictype/pr_hyphen.c: New file.
36920         * lib/unictype/pr_id_continue.c: New file.
36921         * lib/unictype/pr_id_start.c: New file.
36922         * lib/unictype/pr_ideographic.c: New file.
36923         * lib/unictype/pr_ids_binary_operator.c: New file.
36924         * lib/unictype/pr_ids_trinary_operator.c: New file.
36925         * lib/unictype/pr_ignorable_control.c: New file.
36926         * lib/unictype/pr_iso_control.c: New file.
36927         * lib/unictype/pr_join_control.c: New file.
36928         * lib/unictype/pr_left_of_pair.c: New file.
36929         * lib/unictype/pr_line_separator.c: New file.
36930         * lib/unictype/pr_logical_order_exception.c: New file.
36931         * lib/unictype/pr_lowercase.c: New file.
36932         * lib/unictype/pr_math.c: New file.
36933         * lib/unictype/pr_non_break.c: New file.
36934         * lib/unictype/pr_not_a_character.c: New file.
36935         * lib/unictype/pr_numeric.c: New file.
36936         * lib/unictype/pr_other_alphabetic.c: New file.
36937         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
36938         * lib/unictype/pr_other_grapheme_extend.c: New file.
36939         * lib/unictype/pr_other_id_continue.c: New file.
36940         * lib/unictype/pr_other_id_start.c: New file.
36941         * lib/unictype/pr_other_lowercase.c: New file.
36942         * lib/unictype/pr_other_math.c: New file.
36943         * lib/unictype/pr_other_uppercase.c: New file.
36944         * lib/unictype/pr_paired_punctuation.c: New file.
36945         * lib/unictype/pr_paragraph_separator.c: New file.
36946         * lib/unictype/pr_pattern_syntax.c: New file.
36947         * lib/unictype/pr_pattern_white_space.c: New file.
36948         * lib/unictype/pr_private_use.c: New file.
36949         * lib/unictype/pr_punctuation.c: New file.
36950         * lib/unictype/pr_quotation_mark.c: New file.
36951         * lib/unictype/pr_radical.c: New file.
36952         * lib/unictype/pr_sentence_terminal.c: New file.
36953         * lib/unictype/pr_soft_dotted.c: New file.
36954         * lib/unictype/pr_space.c: New file.
36955         * lib/unictype/pr_terminal_punctuation.c: New file.
36956         * lib/unictype/pr_test.c: New file.
36957         * lib/unictype/pr_titlecase.c: New file.
36958         * lib/unictype/pr_unassigned_code_value.c: New file.
36959         * lib/unictype/pr_unified_ideograph.c: New file.
36960         * lib/unictype/pr_uppercase.c: New file.
36961         * lib/unictype/pr_variation_selector.c: New file.
36962         * lib/unictype/pr_white_space.c: New file.
36963         * lib/unictype/pr_xid_continue.c: New file.
36964         * lib/unictype/pr_xid_start.c: New file.
36965         * lib/unictype/pr_zero_width.c: New file.
36966         * lib/unictype/scripts.c: New file.
36967         * lib/unictype/sy_c_ident.c: New file.
36968         * lib/unictype/sy_c_whitespace.c: New file.
36969         * lib/unictype/sy_java_ident.c: New file.
36970         * lib/unictype/sy_java_whitespace.c: New file.
36971
36972         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
36973         Unicode 5.0.0.
36974         * lib/unictype/blocks.h: Likewise.
36975         * lib/unictype/categ_C.h: Likewise.
36976         * lib/unictype/categ_Cc.h: Likewise.
36977         * lib/unictype/categ_Cf.h: Likewise.
36978         * lib/unictype/categ_Cn.h: Likewise.
36979         * lib/unictype/categ_Co.h: Likewise.
36980         * lib/unictype/categ_Cs.h: Likewise.
36981         * lib/unictype/categ_L.h: Likewise.
36982         * lib/unictype/categ_Ll.h: Likewise.
36983         * lib/unictype/categ_Lm.h: Likewise.
36984         * lib/unictype/categ_Lo.h: Likewise.
36985         * lib/unictype/categ_Lt.h: Likewise.
36986         * lib/unictype/categ_Lu.h: Likewise.
36987         * lib/unictype/categ_M.h: Likewise.
36988         * lib/unictype/categ_Mc.h: Likewise.
36989         * lib/unictype/categ_Me.h: Likewise.
36990         * lib/unictype/categ_Mn.h: Likewise.
36991         * lib/unictype/categ_N.h: Likewise.
36992         * lib/unictype/categ_Nd.h: Likewise.
36993         * lib/unictype/categ_Nl.h: Likewise.
36994         * lib/unictype/categ_No.h: Likewise.
36995         * lib/unictype/categ_P.h: Likewise.
36996         * lib/unictype/categ_Pc.h: Likewise.
36997         * lib/unictype/categ_Pd.h: Likewise.
36998         * lib/unictype/categ_Pe.h: Likewise.
36999         * lib/unictype/categ_Pf.h: Likewise.
37000         * lib/unictype/categ_Pi.h: Likewise.
37001         * lib/unictype/categ_Po.h: Likewise.
37002         * lib/unictype/categ_Ps.h: Likewise.
37003         * lib/unictype/categ_S.h: Likewise.
37004         * lib/unictype/categ_Sc.h: Likewise.
37005         * lib/unictype/categ_Sk.h: Likewise.
37006         * lib/unictype/categ_Sm.h: Likewise.
37007         * lib/unictype/categ_So.h: Likewise.
37008         * lib/unictype/categ_Z.h: Likewise.
37009         * lib/unictype/categ_Zl.h: Likewise.
37010         * lib/unictype/categ_Zp.h: Likewise.
37011         * lib/unictype/categ_Zs.h: Likewise.
37012         * lib/unictype/categ_of.h: Likewise.
37013         * lib/unictype/combining.h: Likewise.
37014         * lib/unictype/ctype_alnum.h: Likewise.
37015         * lib/unictype/ctype_alpha.h: Likewise.
37016         * lib/unictype/ctype_blank.h: Likewise.
37017         * lib/unictype/ctype_cntrl.h: Likewise.
37018         * lib/unictype/ctype_digit.h: Likewise.
37019         * lib/unictype/ctype_graph.h: Likewise.
37020         * lib/unictype/ctype_lower.h: Likewise.
37021         * lib/unictype/ctype_print.h: Likewise.
37022         * lib/unictype/ctype_punct.h: Likewise.
37023         * lib/unictype/ctype_space.h: Likewise.
37024         * lib/unictype/ctype_upper.h: Likewise.
37025         * lib/unictype/ctype_xdigit.h: Likewise.
37026         * lib/unictype/decdigit.h: Likewise.
37027         * lib/unictype/digit.h: Likewise.
37028         * lib/unictype/mirror.h: Likewise.
37029         * lib/unictype/numeric.h: Likewise.
37030         * lib/unictype/pr_alphabetic.h: Likewise.
37031         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
37032         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
37033         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
37034         * lib/unictype/pr_bidi_block_separator.h: Likewise.
37035         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
37036         * lib/unictype/pr_bidi_common_separator.h: Likewise.
37037         * lib/unictype/pr_bidi_control.h: Likewise.
37038         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
37039         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
37040         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
37041         * lib/unictype/pr_bidi_european_digit.h: Likewise.
37042         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
37043         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
37044         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
37045         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
37046         * lib/unictype/pr_bidi_pdf.h: Likewise.
37047         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
37048         * lib/unictype/pr_bidi_whitespace.h: Likewise.
37049         * lib/unictype/pr_combining.h: Likewise.
37050         * lib/unictype/pr_composite.h: Likewise.
37051         * lib/unictype/pr_currency_symbol.h: Likewise.
37052         * lib/unictype/pr_dash.h: Likewise.
37053         * lib/unictype/pr_decimal_digit.h: Likewise.
37054         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
37055         * lib/unictype/pr_deprecated.h: Likewise.
37056         * lib/unictype/pr_diacritic.h: Likewise.
37057         * lib/unictype/pr_extender.h: Likewise.
37058         * lib/unictype/pr_format_control.h: Likewise.
37059         * lib/unictype/pr_grapheme_base.h: Likewise.
37060         * lib/unictype/pr_grapheme_extend.h: Likewise.
37061         * lib/unictype/pr_grapheme_link.h: Likewise.
37062         * lib/unictype/pr_hex_digit.h: Likewise.
37063         * lib/unictype/pr_hyphen.h: Likewise.
37064         * lib/unictype/pr_id_continue.h: Likewise.
37065         * lib/unictype/pr_id_start.h: Likewise.
37066         * lib/unictype/pr_ideographic.h: Likewise.
37067         * lib/unictype/pr_ids_binary_operator.h: Likewise.
37068         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
37069         * lib/unictype/pr_ignorable_control.h: Likewise.
37070         * lib/unictype/pr_iso_control.h: Likewise.
37071         * lib/unictype/pr_join_control.h: Likewise.
37072         * lib/unictype/pr_left_of_pair.h: Likewise.
37073         * lib/unictype/pr_line_separator.h: Likewise.
37074         * lib/unictype/pr_logical_order_exception.h: Likewise.
37075         * lib/unictype/pr_lowercase.h: Likewise.
37076         * lib/unictype/pr_math.h: Likewise.
37077         * lib/unictype/pr_non_break.h: Likewise.
37078         * lib/unictype/pr_not_a_character.h: Likewise.
37079         * lib/unictype/pr_numeric.h: Likewise.
37080         * lib/unictype/pr_other_alphabetic.h: Likewise.
37081         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
37082         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
37083         * lib/unictype/pr_other_id_continue.h: Likewise.
37084         * lib/unictype/pr_other_id_start.h: Likewise.
37085         * lib/unictype/pr_other_lowercase.h: Likewise.
37086         * lib/unictype/pr_other_math.h: Likewise.
37087         * lib/unictype/pr_other_uppercase.h: Likewise.
37088         * lib/unictype/pr_paired_punctuation.h: Likewise.
37089         * lib/unictype/pr_paragraph_separator.h: Likewise.
37090         * lib/unictype/pr_pattern_syntax.h: Likewise.
37091         * lib/unictype/pr_pattern_white_space.h: Likewise.
37092         * lib/unictype/pr_private_use.h: Likewise.
37093         * lib/unictype/pr_punctuation.h: Likewise.
37094         * lib/unictype/pr_quotation_mark.h: Likewise.
37095         * lib/unictype/pr_radical.h: Likewise.
37096         * lib/unictype/pr_sentence_terminal.h: Likewise.
37097         * lib/unictype/pr_soft_dotted.h: Likewise.
37098         * lib/unictype/pr_space.h: Likewise.
37099         * lib/unictype/pr_terminal_punctuation.h: Likewise.
37100         * lib/unictype/pr_titlecase.h: Likewise.
37101         * lib/unictype/pr_unassigned_code_value.h: Likewise.
37102         * lib/unictype/pr_unified_ideograph.h: Likewise.
37103         * lib/unictype/pr_uppercase.h: Likewise.
37104         * lib/unictype/pr_variation_selector.h: Likewise.
37105         * lib/unictype/pr_white_space.h: Likewise.
37106         * lib/unictype/pr_xid_continue.h: Likewise.
37107         * lib/unictype/pr_xid_start.h: Likewise.
37108         * lib/unictype/pr_zero_width.h: Likewise.
37109         * lib/unictype/scripts.h: Likewise.
37110         * lib/unictype/scripts_byname.gperf: Likewise.
37111         * lib/unictype/sy_c_ident.h: Likewise.
37112         * lib/unictype/sy_c_whitespace.h: Likewise.
37113         * lib/unictype/sy_java_ident.h: Likewise.
37114         * lib/unictype/sy_java_whitespace.h: Likewise.
37115
37116         * lib/unictype/Makefile: New file.
37117         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
37118         glibc.
37119         * lib/unictype/3level.h: New file, copied from glibc.
37120         * lib/unictype/3levelbit.h: New file.
37121
37122 2007-11-11  Bruno Haible  <bruno@clisp.org>
37123
37124         * modules/gperf: New file.
37125         * modules/iconv_open (Depends-on): Add it.
37126         (Makefile.am): Remove the GPERF definition.
37127
37128 2007-11-11  Bruno Haible  <bruno@clisp.org>
37129
37130         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
37131         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
37132
37133 2007-11-11  Bruno Haible  <bruno@clisp.org>
37134
37135         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
37136         (usage): Remove function.
37137
37138 2007-11-11  Bruno Haible  <bruno@clisp.org>
37139
37140         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
37141         gl_FUNC_CEILF_LIBS.
37142         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
37143         gl_FUNC_CEIL_LIBS.
37144         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
37145         gl_FUNC_CEILL_LIBS.
37146         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
37147         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
37148         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
37149
37150 2007-11-11  Bruno Haible  <bruno@clisp.org>
37151
37152         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
37153         roundf were declared but do not exist on functions.
37154         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
37155         roundl were declared but do not exist on functions.
37156         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
37157         HAVE_FLOORL_AND_CEILL, respectively.
37158         Needed for Sun C on Solaris 10.
37159
37160 2007-11-11  Bruno Haible  <bruno@clisp.org>
37161
37162         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
37163         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
37164         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
37165         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
37166         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
37167         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
37168         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
37169         HAVE_DECL_ROUNDF.
37170         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
37171         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
37172         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
37173         of HAVE_DECL_ROUND*.
37174         * modules/math (Makefile.am): Update.
37175
37176 2007-11-10  Bruno Haible  <bruno@clisp.org>
37177
37178         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
37179         ptrdiff_t as m4/intl.m4.
37180
37181 2007-11-10  Jim Meyering  <meyering@redhat.com>
37182
37183         Avoid link failure for the argmatch test.
37184         * tests/test-argmatch.c (usage): Define function to avoid a link
37185         failure: argmatch_die requires a usage function.
37186
37187 2007-11-09  Bruno Haible  <bruno@clisp.org>
37188
37189         * doc/functions/snprintf.texi: Mention BeOS deficiency.
37190         * doc/functions/vsnprintf.texi: Likewise.
37191         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
37192         with a size argument < 2.
37193
37194 2007-11-09  Bruno Haible  <bruno@clisp.org>
37195
37196         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
37197         buffer. Fixes an inefficiency introduced on 2007-11-03.
37198
37199 2007-11-09  Bruno Haible  <bruno@clisp.org>
37200
37201         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
37202         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
37203
37204 2007-11-08  Jim Meyering  <meyering@redhat.com>
37205
37206         Change cache variable name prefix "jm_" to "gl_" everywhere.
37207         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
37208         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
37209         * m4/uptime.m4: s/gl_/jm_/
37210
37211 2007-11-07  Bruno Haible  <bruno@clisp.org>
37212
37213         Update to GNU gettext 0.17.
37214         * m4/intl.m4: Update to GNU gettext 0.17.
37215         * m4/po.m4: Likewise.
37216         * modules/gettext (Files): Remove m4/ulonglong.m4.
37217         (configure.ac): Require gettext infrastructure from version 0.17.
37218
37219 2007-11-06  Bruno Haible  <bruno@clisp.org>
37220
37221         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
37222         symbolic values are not defined in a public header.
37223         * lib/freadable.c (freadable) [QNX]: Likewise.
37224         * lib/freadahead.c (freadahead) [QNX]: Likewise.
37225         * lib/freading.c (freading) [QNX]: Likewise.
37226         * lib/fseterr.c (fseterr) [QNX]: Likewise.
37227         * lib/fwritable.c (fwritable) [QNX]: Likewise.
37228         * lib/fwriting.c (fwriting) [QNX]: Likewise.
37229         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
37230         Reported by Alain Magloire.
37231
37232         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
37233
37234 2007-11-05  Bruno Haible  <bruno@clisp.org>
37235
37236         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
37237         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
37238         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
37239         Reported by Eric Blake.
37240
37241 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37242             Bruno Haible  <bruno@clisp.org>
37243
37244         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
37245         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
37246         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
37247         (malloc): Undefine also before including <stdlib.h>.
37248         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
37249         Needed on OSF/1 4.0.
37250
37251 2007-11-05  Jim Meyering  <meyering@redhat.com>
37252
37253         git-version-gen: sync from coreutils.
37254         * build-aux/git-version-gen: Add comments.
37255         Change the first '-' to '.' in the snapshot version string,
37256         e.g., 6.9-377-08144 -> 6.9.377-08144
37257         Remove first parameter.
37258         Don't declare a version "-dirty" merely because a time
37259         stamp has changed.
37260
37261 2007-11-04  Bruno Haible  <bruno@clisp.org>
37262
37263         * lib/lock.h: Protect all macro definitions containing an 'if'
37264         statement through a "do { ... } while (0)".
37265         * lib/tls.h: Likewise.
37266
37267 2007-11-04  Bruno Haible  <bruno@clisp.org>
37268
37269         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
37270
37271 2007-11-04  Bruno Haible  <bruno@clisp.org>
37272
37273         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
37274         * modules/fprintf-posix (Depends-on): Add nocrash.
37275         * modules/snprintf-posix (Depends-on): Likewise.
37276         * modules/sprintf-posix (Depends-on): Likewise.
37277         * modules/vasnprintf-posix (Depends-on): Likewise.
37278         * modules/vasprintf-posix (Depends-on): Likewise.
37279         * modules/vfprintf-posix (Depends-on): Likewise.
37280         * modules/vsnprintf-posix (Depends-on): Likewise.
37281         * modules/vsprintf-posix (Depends-on): Likewise.
37282         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
37283         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
37284         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
37285         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
37286         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
37287         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
37288         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
37289
37290 2007-11-04  Bruno Haible  <bruno@clisp.org>
37291
37292         * modules/nocrash: New file.
37293         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
37294         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
37295
37296 2007-11-04  Bruno Haible  <bruno@clisp.org>
37297
37298         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
37299         precision handling.
37300         * tests/test-vasprintf-posix.c (test_function): Likewise.
37301         * tests/test-snprintf-posix.h (test_function): Likewise.
37302         * tests/test-sprintf-posix.h (test_function): Likewise.
37303
37304         Fix *printf behaviour for large precisions on mingw and BeOS.
37305         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
37306         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
37307         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
37308         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37309         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37310         gl_PRINTF_PRECISION and test its result. Invoke
37311         gl_PREREQ_VASNPRINTF_PRECISION.
37312         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37313         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37314         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37315         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37316         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37317         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37318         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37319         * doc/functions/fprintf.texi: Update.
37320         * doc/functions/printf.texi: Update.
37321         * doc/functions/snprintf.texi: Update.
37322         * doc/functions/sprintf.texi: Update.
37323         * doc/functions/vfprintf.texi: Update.
37324         * doc/functions/vprintf.texi: Update.
37325         * doc/functions/vsnprintf.texi: Update.
37326         * doc/functions/vsprintf.texi: Update.
37327
37328 2007-11-04  Bruno Haible  <bruno@clisp.org>
37329
37330         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
37331
37332 2007-11-04  Bruno Haible  <bruno@clisp.org>
37333
37334         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
37335         Reported by Sylvain Beucler <beuc@gnu.org>.
37336
37337 2007-11-03  Bruno Haible  <bruno@clisp.org>
37338
37339         * tests/test-fprintf-posix2.sh: New file.
37340         * tests/test-fprintf-posix2.c: New file.
37341         * modules/fprintf-posix-tests (Files): Add them.
37342         (TESTS): Add test-fprintf-posix2.sh.
37343         (configure.ac): Check for getrlimit and setrlimit.
37344         (check_PROGRAMS): Add test-fprintf-posix2.
37345
37346         * tests/test-printf-posix2.sh: New file.
37347         * tests/test-printf-posix2.c: New file.
37348         * modules/printf-posix-tests (Files): Add them.
37349         (TESTS): Add test-printf-posix2.sh.
37350         (configure.ac): Check for getrlimit and setrlimit.
37351         (check_PROGRAMS): Add test-printf-posix2.
37352
37353         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
37354         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
37355         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
37356         (decode_double): New function, copied from decode_long_double.
37357         (scale10_round_decimal_decoded): New function, extracted from
37358         scale10_round_decimal_long_double.
37359         (scale10_round_decimal_long_double): Use it.
37360         (scale10_round_decimal_double): New function.
37361         (floorlog10): New function.
37362         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
37363         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
37364         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37365         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37366         gl_PRINTF_ENOMEM and test its result. Invoke
37367         gl_PREREQ_VASNPRINTF_ENOMEM.
37368         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37369         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37370         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37371         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37372         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37373         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37374         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37375         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
37376         * modules/snprintf-posix (Depends-on): Likewise.
37377         * modules/sprintf-posix (Depends-on): Likewise.
37378         * modules/vasnprintf-posix (Depends-on): Likewise.
37379         * modules/vasprintf-posix (Depends-on): Likewise.
37380         * modules/vfprintf-posix (Depends-on): Likewise.
37381         * modules/vsnprintf-posix (Depends-on): Likewise.
37382         * modules/vsprintf-posix (Depends-on): Likewise.
37383         * doc/functions/fprintf.texi: Update.
37384         * doc/functions/printf.texi: Update.
37385         * doc/functions/snprintf.texi: Update.
37386         * doc/functions/sprintf.texi: Update.
37387         * doc/functions/vfprintf.texi: Update.
37388         * doc/functions/vprintf.texi: Update.
37389         * doc/functions/vsnprintf.texi: Update.
37390         * doc/functions/vsprintf.texi: Update.
37391
37392 2007-11-03  Bruno Haible  <bruno@clisp.org>
37393
37394         * modules/frexp-nolibm-tests: New file.
37395
37396         * modules/frexp-nolibm: New file.
37397         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
37398
37399 2007-11-03  Bruno Haible  <bruno@clisp.org>
37400
37401         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
37402         value is C99 compliant.
37403         Needed for OSF/1 5.1.
37404
37405 2007-11-03  Bruno Haible  <bruno@clisp.org>
37406
37407         Fix out-of-memory handling of vasnprintf.
37408         * lib/printf-parse.c: Include <errno.h>.
37409         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
37410         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
37411         is already set.
37412
37413 2007-11-02  Eric Blake  <ebb9@byu.net>
37414
37415         Fix tests on cygwin.
37416         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
37417
37418 2007-11-01  Bruno Haible  <bruno@clisp.org>
37419
37420         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
37421         warning.
37422         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
37423         needed for POSIX compatibility.
37424
37425 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
37426
37427         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
37428         for compatibility with GNU.
37429
37430 2007-11-01  Bruno Haible  <bruno@clisp.org>
37431
37432         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
37433         (putenv): Renamed from rpl_putenv. Change argument type from
37434         'const char *' to 'char *'.
37435         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
37436         of defining putenv in config.h, just set REPLACE_PUTENV.
37437         * modules/putenv (Depends-on): Add stdlib.
37438         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
37439         (Include): Use <stdlib.h>.
37440         * lib/stdlib.in.h (putenv): New declaration.
37441         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
37442         REPLACE_PUTENV.
37443         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
37444         REPLACE_PUTENV.
37445         Needed for MacOS X 10.5.0.
37446         Reported by Peter O'Gorman <peter@pogma.com>.
37447
37448 2007-11-01  Jim Meyering  <meyering@redhat.com>
37449
37450         Treat an empty date string exactly like "0".
37451         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
37452         if the remaining date string (to be parsed) is empty, use "0".
37453         Reported by Mischa Molhoek and discussed in this thread:
37454         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
37455
37456 2007-10-31  Bruno Haible  <bruno@clisp.org>
37457
37458         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
37459         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
37460         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
37461         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
37462         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
37463         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
37464
37465 2007-10-31  Bruno Haible  <bruno@clisp.org>
37466
37467         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
37468         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
37469         (AC_TYPE_LONG_LONG_INT): Use it.
37470         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
37471         it as well.
37472         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
37473         to m4/longlong.m4.
37474         * modules/stdint (Files): Remove m4/ulonglong.m4.
37475         * modules/strtoull (Files): Use m4/longlong.m4 instead of
37476         m4/ulonglong.m4.
37477         * modules/strtoumax (Files): Likewise.
37478
37479 2007-10-30  Bruno Haible  <bruno@clisp.org>
37480
37481         * modules/xvasprintf-posix: New file.
37482         Suggested by Eric Blake.
37483
37484 2007-10-30  Bruno Haible  <bruno@clisp.org>
37485
37486         * modules/xprintf-posix-tests: New file.
37487         * tests/test-xprintf-posix.sh: New file.
37488         * tests/test-xprintf-posix.c: New file.
37489         * tests/test-xfprintf-posix.c: New file.
37490
37491         * modules/xprintf-posix: New file.
37492
37493 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37494
37495         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
37496         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
37497         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
37498
37499 2007-10-29  Bruno Haible  <bruno@clisp.org>
37500
37501         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
37502         contain the special marker '_cv_'.
37503         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37504         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37505         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37506         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
37507         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37508         Reported by Ralf Wildenhues.
37509
37510 2007-10-29  Bruno Haible  <bruno@clisp.org>
37511
37512         * gnulib-tool (func_import): When --lgpl is not specified, set
37513         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
37514         GPLv3.
37515         Reported by Simon Josefsson.
37516
37517 2007-10-28  Bruno Haible  <bruno@clisp.org>
37518
37519         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
37520         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
37521         HAVE_DECL_ISFINITE.
37522         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
37523         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
37524         HAVE_DECL_ISFINITE.
37525
37526 2007-10-28  Bruno Haible  <bruno@clisp.org>
37527
37528         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
37529         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
37530
37531 2007-10-28  Bruno Haible  <bruno@clisp.org>
37532
37533         Fix link errors with Sun C 5.0 on Solaris 10.
37534         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
37535         function is declared but not present in the compiler's libm.
37536         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
37537         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
37538         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
37539         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
37540         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
37541         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
37542         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
37543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
37544         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
37545         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
37546         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
37547         HAVE_DECL_FLOORL.
37548
37549 2007-10-28  Bruno Haible  <bruno@clisp.org>
37550
37551         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
37552         gl_FUNC_FLOORL. Cache the result.
37553         (gl_FUNC_FLOORL): Use it.
37554         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
37555         gl_FUNC_CEILL. Cache the result.
37556         (gl_FUNC_CEILL): Use it.
37557
37558         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
37559         gl_FUNC_FLOOR. Cache the result.
37560         (gl_FUNC_FLOOR): Use it.
37561         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
37562         gl_FUNC_CEIL. Cache the result.
37563         (gl_FUNC_CEIL): Use it.
37564
37565         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
37566         gl_FUNC_FLOORF. Cache the result.
37567         (gl_FUNC_FLOORF): Use it.
37568         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
37569         gl_FUNC_CEILF. Cache the result.
37570         (gl_FUNC_CEILF): Use it.
37571
37572 2007-10-28  Bruno Haible  <bruno@clisp.org>
37573
37574         * gnulib-tool: Allow specifying the LGPL version number through
37575         --lgpl=2 or --lgpl=3.
37576         (func_usage): Document --lgpl with argument.
37577         Handle --lgpl=... arguments.
37578         (func_import): Recognize also gl_LGPL calls with an argument. When
37579         --lgpl=2 is used and the module's license is just LGPL, report an
37580         error. Set sed_transform_lib_file according to the lgpl variable. In
37581         the generated files, use --lgpl or gl_LGPL invocations with argument,
37582         if necessary.
37583         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
37584         an LGPv2+ license.
37585         * doc/gnulib-tool.texi (Modified imports): Update explanation of
37586         gl_LGPL macro.
37587
37588 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37589             Bruno Haible  <bruno@clisp.org>
37590
37591         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
37592         (u16_uctomb_aux): Likewise.
37593         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
37594         !HAVE_INLINE.
37595         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
37596
37597 2007-10-28  Bruno Haible  <bruno@clisp.org>
37598
37599         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
37600         Invoke AM_GETTEXT_OPTION if it exists.
37601         * modules/vasprintf: Likewise.
37602         * modules/verror: Likewise.
37603         * modules/xprintf: Likewise.
37604         * modules/xvasprintf: Likewise.
37605
37606 2007-10-27  Ben Pfaff  <blp@gnu.org>
37607
37608         * lib/math.in.h: Define isfinite macro and prototypes for
37609         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
37610         implementations.
37611         * m4/math_h.m4: New substitutions for isfinite module.
37612         * lib/isfinite.c: New file.
37613         * m4/isfinite.m4: New file.
37614         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
37615         * modules/isfinite: New file.
37616         * modules/isfinite-tests: New file.
37617         * tests/tests-isfinite.c: New file.
37618         * doc/functions/isfinite.texi: Mention isfinite module.
37619         * MODULES.html.sh: Mention new module.
37620
37621 2007-10-27  Ben Pfaff  <blp@gnu.org>
37622
37623         Ralf Wildenhues reported that Tru64 4.0D declares the round
37624         functions but does not have definitions.
37625         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
37626         cannot be found in any library, set the output variable to
37627         "missing" instead of "".
37628         * m4/round.m4: Also use our substitute if we cannot find round in
37629         any library, even if it is declared.
37630         * m4/roundf.m4: Likewise for roundf.
37631         * m4/roundl.m4: Likewise for roundl.
37632         * lib/math.in.h: Undefine roundf, round, roundl before defining
37633         their replacements, to allow for hypothetical systems where these
37634         may be defined as macros but not available in libraries.
37635
37636 2007-10-27  Bruno Haible  <bruno@clisp.org>
37637
37638         * doc/gnulib.texi: Invoke @firstparagraphindent.
37639         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
37640         changes in gnulib.
37641         (Source changes): New section.
37642
37643 2007-10-26  Bruno Haible  <bruno@clisp.org>
37644
37645         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
37646         borrowed from autoconf.
37647
37648 2007-10-26  Bruno Haible  <bruno@clisp.org>
37649
37650         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
37651         strerror returned the empty string. Needed on HP-UX 11.00.
37652
37653 2007-10-24  Micah Cowan  <micah@cowan.name>
37654
37655         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
37656         * build-aux/bootstrap: Remove support for now-unnecessary option,
37657         --cvs-user, and envvars CVS_USER, CVS_RSH.
37658
37659 2007-10-24  Jim Meyering  <meyering@redhat.com>
37660
37661         Avoid diagnostics from sha1sum when there is no cached checksum.
37662         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
37663         if the po.s1 file hasn't been created yet.
37664
37665         * build-aux/bootstrap: Sync from coreutils:
37666         2007-10-24  Jim Meyering  <meyering@redhat.com>
37667         Get gnulib from the git repository, not from an obsolete cvs one.
37668         * build-aux/bootstrap: Suggestion from Micah Cowan.
37669         2007-10-04  Jim Meyering  <jim@meyering.net>
37670         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
37671         (update_po_files): Work also when there are no .po files in po/.
37672
37673 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
37674
37675         * README: Append ".git" to git and cg examples.
37676         Problem reported by Benoit Sigoure.
37677
37678 2007-10-23  Micah Cowan  <micah@cowan.name>
37679
37680         * users.txt: Add wget.
37681
37682 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37683
37684         Fix linking of some unistdio tests on FreeBSD.
37685         * modules/unistdio/u16-vsnprintf-tests
37686         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
37687         * modules/unistdio/u16-vsprintf-tests
37688         (test_u16_vsnprintf1_LDADD): Likewise.
37689         * modules/unistdio/u32-vsnprintf-tests
37690         (test_u32_vsnprintf1_LDADD): Likewise.
37691         * modules/unistdio/u32-vsprintf-tests
37692         (test_u32_vsprintf1_LDADD): Likewise.
37693         * modules/unistdio/u8-vsnprintf-tests
37694         (test_u8_vsnprintf1_LDADD): Likewise.
37695         * modules/unistdio/u8-vsprintf-tests
37696         (test_u8_vsprintf1_LDADD): Likewise.
37697         * modules/unistdio/ulc-vsnprintf-tests
37698         (test_ulc_vsnprintf1_LDADD): Likewise.
37699         * modules/unistdio/ulc-vsprintf-tests
37700         (test_ulc_vsprintf1_LDADD): Likewise.
37701
37702         Fix linking of some uniconv tests on FreeBSD.
37703         * modules/uniconv/u16-conv-from-enc-tests
37704         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
37705         * modules/uniconv/u16-conv-to-enc-tests
37706         (test_u16_conv_to_enc_LDADD): Likewise.
37707         * modules/uniconv/u16-strconv-from-enc-tests
37708         (test_u16_strconv_from_enc_LDADD): Likewise.
37709         * modules/uniconv/u16-strconv-to-enc-tests
37710         (test_u16_strconv_to_enc_LDADD): Likewise.
37711         * modules/uniconv/u32-conv-from-enc-tests
37712         (test_u32_conv_from_enc_LDADD): Likewise.
37713         * modules/uniconv/u32-conv-to-enc-tests
37714         (test_u32_conv_to_enc_LDADD): Likewise.
37715         * modules/uniconv/u32-strconv-from-enc-tests
37716         (test_u32_strconv_from_enc_LDADD): Likewise.
37717         * modules/uniconv/u32-strconv-to-enc-tests
37718         (test_u32_strconv_to_enc_LDADD): Likewise.
37719         * modules/uniconv/u8-conv-from-enc-tests
37720         (test_u8_conv_from_enc_LDADD): Likewise.
37721         * modules/uniconv/u8-conv-to-enc-tests
37722         (test_u8_conv_to_enc_LDADD): Likewise.
37723         * modules/uniconv/u8-strconv-from-enc-tests
37724         (test_u8_strconv_from_enc_LDADD): Likewise.
37725         * modules/uniconv/u8-strconv-to-enc-tests
37726         (test_u8_strconv_to_enc_LDADD): Likewise.
37727
37728 2007-10-22  Bruno Haible  <bruno@clisp.org>
37729
37730         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
37731         size.
37732
37733 2007-10-22  Eric Blake  <ebb9@byu.net>
37734
37735         Tweak x*printf documentation.
37736         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
37737         variable name and comments.
37738         Suggested by Bruno Haible.
37739
37740 2007-10-22  Bruno Haible  <bruno@clisp.org>
37741
37742         * lib/acl.c (copy_acl): Fix file name in comment.
37743
37744 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
37745
37746         Fix Tru64 problem with stdbool.h.
37747         * lib/stdbool.in.h (false, true):
37748         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
37749         Don't declare as an enum in this situation; it runs afoul of Tru64.
37750         Problem reported by Steven M. Schweda in
37751         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
37752
37753 2007-10-22  Eric Blake  <ebb9@byu.net>
37754
37755         Also wrap vf?printf.
37756         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
37757         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
37758         (xvprintf, xvfprintf): New functions.
37759
37760 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37761
37762         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
37763         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
37764
37765         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
37766         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
37767
37768 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
37769
37770         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
37771         by Bruno Haible.
37772
37773 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37774
37775         * lib/getloadavg.c
37776         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
37777         Undef `sys' after including sys/table.h, for Tru64 4.0D.
37778
37779         * tests/test-i-ring.c: Work for C89.
37780
37781 2007-10-22  Bruno Haible  <bruno@clisp.org>
37782
37783         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
37784         -1u, in preprocessor expression, so that we don't test for the bug
37785         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
37786         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
37787
37788 2007-10-22  Eric Blake  <ebb9@byu.net>
37789
37790         * tests/test-yesno.sh: Silence stderr during test.
37791
37792 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37793
37794         * modules/crypto/gc-camellia: New file.
37795
37796         * m4/gc-camellia.m4: New file.
37797
37798         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
37799
37800         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
37801
37802 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37803
37804         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
37805         --help to stdout.  Reported by sms@antinode.org (Steven
37806         M. Schweda).
37807
37808 2007-10-22  Simon Josefsson  <simon@josefsson.org>
37809
37810         * users.txt: Fix link to libksba.
37811
37812 2007-10-21  Ben Pfaff  <blp@gnu.org>
37813
37814         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
37815         round.c roundf implementation that depends on floorf and ceilf to
37816         be tested unconditionally.
37817
37818 2007-10-21  Ben Pfaff  <blp@gnu.org>
37819
37820         * m4/check-libm-func.m4: Removed.
37821         * m4/check-math-lib.m4: New file.
37822         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
37823         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
37824         definition and lack of AC_LIBOBJ([roundf]).
37825         * m4/roundl.m4: Ditto, and similarly for roundl.
37826         * modules/round: Reference new m4 file.
37827         * modules/roundf: Ditto.
37828         * modules/roundl: Ditto.
37829         * tests/test-round2.c (main): Use ROUND instead of round.
37830         Bug report from Bruno Haible.
37831
37832 2007-10-21  Bruno Haible  <bruno@clisp.org>
37833
37834         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
37835         context.
37836
37837 2007-10-21  Bruno Haible  <bruno@clisp.org>
37838
37839         * tests/test-wcwidth.c (main): Allow negative result for some control
37840         characters.
37841
37842         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
37843         Needed on OSF/1 5.1.
37844
37845 2007-10-21  Bruno Haible  <bruno@clisp.org>
37846
37847         * tests/test-floorf1.c: Include isnanf.h.
37848         (main): Use isnanf() instead of isnan().
37849         * tests/test-ceilf1.c: Include isnanf.h.
37850         (main): Use isnanf() instead of isnan().
37851         * tests/test-truncf1.c: Include isnanf.h.
37852         (main): Use isnanf() instead of isnan().
37853         * tests/test-roundf1.c: Include isnanf.h.
37854         (main): Use isnanf() instead of isnan().
37855
37856 2007-10-21  Eric Blake  <ebb9@byu.net>
37857
37858         * users.txt: Update URL for m4.
37859
37860 2007-10-21  Bruno Haible  <bruno@clisp.org>
37861
37862         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
37863
37864 2007-10-21  Bruno Haible  <bruno@clisp.org>
37865
37866         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
37867         Git's management files if the CVS files are not present.
37868
37869 2007-10-20  Bruno Haible  <bruno@clisp.org>
37870
37871         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
37872         gcc-3.4.x.
37873
37874 2007-10-20  Ben Pfaff  <blp@gnu.org>
37875
37876         * lib/math.in.h: Declare round, roundf, roundl if we are providing
37877         implementations.
37878         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
37879         * lib/round.c: New file.
37880         * lib/roundf.c: New file.
37881         * lib/roundl.c: New file.
37882         * m4/round.m4: New file.
37883         * m4/roundf.m4: New file.
37884         * m4/roundl.m4: New file.
37885         * m4/check-libm-func-m4: New file.
37886         * modules/math: Replace round, roundf, roundl related @VARS@ in
37887         math.in.h.
37888         * modules/round: New file.
37889         * modules/round-tests: New file.
37890         * modules/roundf: New file.
37891         * modules/roundf-tests: New file.
37892         * modules/roundl: New file.
37893         * modules/roundl-tests: New file.
37894         * tests/test-round1.c: New file.
37895         * tests/test-round2.c: New file.
37896         * tests/test-roundf1.c: New file.
37897         * tests/test-roundf2.c: New file.
37898         * tests/test-roundl.c: New file.
37899         * doc/functions/round.texi: Mention round module.
37900         * doc/functions/roundf.texi: Mention roundf module.
37901         * doc/functions/roundl.texi: Mention roundl module.
37902         * MODULES.html.sh: Mention new modules.
37903         Thanks to Bruno Haible for suggestions.
37904
37905 2007-10-20  Jim Meyering  <meyering@redhat.com>
37906
37907         * lib/xprintf.c: Include <config.h> unconditionally.
37908
37909         Change xprintf's license to GPL.
37910         * modules/xprintf (License): s/LGPL/GPL/, since this module
37911         depends on modules (exit and exitfail) which are GPL.
37912         Suggestion from Bruno Haible.
37913
37914         xprintf fixes.
37915         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
37916         Use a clearer diagnostic.
37917         Patch from Bruno Haible.
37918
37919 2007-10-20  Bruno Haible  <bruno@clisp.org>
37920
37921         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
37922         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
37923         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37924
37925 2007-10-20  Bruno Haible  <bruno@clisp.org>
37926
37927         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
37928         precision in the comparison result > x - 1 or similar.
37929         * tests/test-ceilf2.c (correct_result_p): Likewise.
37930         * tests/test-truncf2.c (correct_result_p): Likewise.
37931         * tests/test-trunc2.c (correct_result_p): Likewise.
37932         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37933
37934 2007-10-20  Bruno Haible  <bruno@clisp.org>
37935
37936         * modules/ceil: New file.
37937         * m4/ceil.m4: New file.
37938         * doc/functions/ceil.texi: Mention the 'ceil' module.
37939
37940 2007-10-20  Bruno Haible  <bruno@clisp.org>
37941
37942         * modules/floor: New file.
37943         * m4/floor.m4: New file.
37944         * doc/functions/floor.texi: Mention the 'floor' module.
37945
37946 2007-10-20  Bruno Haible  <bruno@clisp.org>
37947
37948         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
37949         of %a.
37950         * modules/floorf-tests (Depends-on): Likewise.
37951         * modules/truncf-tests (Depends-on): Likewise.
37952         * modules/trunc-tests (Depends-on): Likewise.
37953         Reported by Ben Pfaff.
37954
37955 2007-10-19  Jim Meyering  <meyering@redhat.com>
37956
37957         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
37958         Don't bother testing specific errno values.  Just test ferror.
37959
37960         New module: xprintf
37961         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
37962
37963 2007-10-19  Bruno Haible  <bruno@clisp.org>
37964
37965         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
37966         syntax.
37967         * modules/javaexec (Makefile.am): Likewise.
37968         * modules/relocatable-prog (Makefile.am): Likewise.
37969         Suggested by Jim Meyering.
37970
37971 2007-10-18  Bruno Haible  <bruno@clisp.org>
37972
37973         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
37974         Reported by Jim Meyering.
37975
37976 2007-10-18  Eric Blake  <ebb9@byu.net>
37977
37978         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
37979
37980 2007-10-18  Bruno Haible  <bruno@clisp.org>
37981
37982         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
37983         the format string into writable memory. Needed in Fortify conditions.
37984
37985 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
37986             Bruno Haible  <bruno@clisp.org>
37987
37988         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
37989         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
37990         * modules/trim (Depends-on): Add mbchar.
37991         (configure.ac): Add gl_FUNC_MBRTOWC.
37992         (Makefile.am): Augment lib_SOURCES.
37993
37994 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
37995
37996         Modify glob.c to use fstatat and dirfd, to simplify it.
37997         Suggested by Eric Blake.
37998         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
37999         Don't include <stdbool.h>; not used.
38000         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
38001         (link_exists_p): Simplify implementation, since we can now assume
38002         dirfd and fstatat.
38003         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
38004
38005 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38006
38007         * gnulib-tool (func_get_dependencies): Fix sed script to
38008         match only tests.
38009
38010 2007-10-17  Bruno Haible  <bruno@clisp.org>
38011
38012         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
38013         allow locale names without encoding suffix.
38014         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
38015         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
38016
38017 2007-10-16  Bruno Haible  <bruno@clisp.org>
38018
38019         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
38020         * lib/getgroups.c (getgroups): Likewise.
38021         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
38022
38023 2007-10-16  Bruno Haible  <bruno@clisp.org>
38024
38025         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
38026         * modules/malloc-posix (License): Likewise.
38027         * modules/realloc-posix (License): Likewise.
38028         * modules/calloc-posix (License): Likewise.
38029         * modules/intprops (License): Change from GPL to LGPL, with
38030         Paul Eggert's approval.
38031
38032 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38033
38034         Merge glibc changes into lib/glob.c.
38035
38036         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
38037         2007-10-15 04:59:03 UTC.  Here are the changes:
38038
38039         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
38040
38041         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
38042
38043         * lib/glob.c: Add some branch prediction throughout.
38044
38045         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
38046
38047         [BZ #5103]
38048         * lib/glob.c (glob): Recognize patterns starting \/.
38049
38050         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
38051
38052         [BZ #3996]
38053         * lib/glob.c (attribute_hidden): Define if not defined.
38054         (glob): Unescape dirname, filename or username when needed and not
38055         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
38056         is NULL.  Handle unescaped [ in pattern without closing ].
38057         Don't pass GLOB_CHECK down to recursive glob for directories.
38058         (__glob_pattern_type): New function.
38059         (__glob_pattern_p): Implement using __glob_pattern_type.
38060         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
38061         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
38062         Remove unreachable code.
38063
38064         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
38065
38066         * lib/glob.c (glob_in_dir): Add some comments and asserts to
38067         explain why there are no leaks.
38068
38069         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
38070
38071         [BZ #3253]
38072         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
38073         time, rather allocate increasingly bigger arrays of pointers, if
38074         possible with alloca, if too large with malloc.
38075
38076 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
38077
38078         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
38079         Problem reported by H.Merijn Brand in
38080         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
38081         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
38082         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
38083
38084 2007-10-15  Bruno Haible  <bruno@clisp.org>
38085
38086         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
38087         with explicit rpl_ prefix.
38088         * lib/fopen.c (fopen): Likewise.
38089         * lib/freopen.c (freopen): Likewise.
38090         * lib/iconv.c (iconv): Likewise.
38091         * lib/iconv_close.c (iconv_close): Likewise.
38092
38093 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38094
38095         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
38096
38097 2007-10-15  Bruno Haible  <bruno@clisp.org>
38098
38099         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
38100         <stddef.h> instead of <stdlib.h> since we only need NULL.
38101         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38102
38103 2007-10-15  Bruno Haible  <bruno@clisp.org>
38104
38105         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
38106         Replace paragraph talking about LIBOBJS.
38107         Reported by Colin Watson <cjwatson@debian.org>.
38108
38109 2007-10-15  Bruno Haible  <bruno@clisp.org>
38110
38111         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
38112         <stdlib.h> before using NULL.
38113
38114 2007-10-15  Simon Josefsson  <simon@josefsson.org>
38115
38116         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
38117         Reported by Albert Chin <china@thewrittenword.com>.
38118
38119 2007-10-14  Bruno Haible  <bruno@clisp.org>
38120
38121         * modules/iconv_open-utf-tests: New file.
38122         * tests/test-iconv-utf.c: New file.
38123
38124         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
38125         * modules/iconv_open-utf: New file.
38126         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
38127         (iconv, iconv_close): New declarations.
38128         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
38129         be defined.
38130         (iconv_open): Add special handling of conversion between UTF-8 and
38131         UTF-{16,32}{BE,LE}.
38132         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
38133         * lib/iconv_close.c: New file.
38134         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
38135         gl_FUNC_ICONV_OPEN.
38136         (gl_FUNC_ICONV_OPEN): Use it.
38137         (gl_FUNC_ICONV_OPEN_UTF): New macro.
38138         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
38139         and REPLACE_ICONV_UTF.
38140         * modules/iconv_open (Depends-on): Add c-strcase.
38141         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
38142         ICONV_CONST.
38143         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
38144
38145 2007-10-13  Albert Chin  <china@thewrittenword.com>
38146             Bruno Haible  <bruno@clisp.org>
38147
38148         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
38149         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
38150
38151 2007-10-13  Bruno Haible  <bruno@clisp.org>
38152
38153         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
38154         defined, use the ISO C99 inline semantics.
38155         * lib/argp.h (ARGP_EI): Likewise.
38156
38157 2007-10-13  Bruno Haible  <bruno@clisp.org>
38158
38159         Handle 'inline' change in gcc 4.3.0.
38160         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
38161         argp_fmtstream_write, argp_fmtstream_set_lmargin,
38162         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
38163         argp_fmtstream_point): Disable 'extern' declaration if the function
38164         definition is going to be provided inline.
38165         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
38166         semantics, not the ISO C99 inline semantics.
38167         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
38168         'extern' declaration if the function definition is going to be provided
38169         inline.
38170         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
38171         the GNU C inline semantics, not the ISO C99 inline semantics. With
38172         GCC 4.2, avoid a warning.
38173
38174 2007-10-13  Bruno Haible  <bruno@clisp.org>
38175
38176         * lib/freading.h (freading): Enable the use of __freading for
38177         glibc >= 2.7.
38178         * lib/freading.c (freading): Likewise.
38179
38180 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
38181
38182         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
38183         "warning: C99 inline functions are not supported; using GNU89".
38184
38185 2007-10-12  Bruno Haible  <bruno@clisp.org>
38186
38187         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
38188         of 2.
38189         * tests/test-ceilf2.c: New file.
38190         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
38191
38192         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
38193         * modules/ceilf-tests: Update.
38194
38195 2007-10-12  Bruno Haible  <bruno@clisp.org>
38196
38197         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
38198         of 2.
38199         * tests/test-floorf2.c: New file.
38200         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
38201
38202         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
38203         * modules/floorf-tests: Update.
38204
38205 2007-10-12  Bruno Haible  <bruno@clisp.org>
38206
38207         * tests/test-trunc2.c: New file.
38208         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
38209
38210         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
38211         * modules/trunc-tests: Update.
38212
38213 2007-10-12  Bruno Haible  <bruno@clisp.org>
38214
38215         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
38216         of 2.
38217         * tests/test-truncf2.c: New file.
38218         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
38219
38220         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
38221         * modules/truncf-tests: Update.
38222
38223 2007-10-11  Eric Blake  <ebb9@byu.net>
38224
38225         Don't claim strerror is broken on Interix.
38226         * doc/functions/strerror.texi (strerror): Known broken systems are
38227         now Solaris 8, and not Interix.
38228         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
38229         Interix on cross-compile.
38230         Reported by Martin Koeppe in
38231         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
38232
38233 2007-10-11  Bruno Haible  <bruno@clisp.org>
38234
38235         * modules/i-ring-tests: New file.
38236         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
38237         instead of assert.
38238
38239 2007-10-11  Bruno Haible  <bruno@clisp.org>
38240
38241         * modules/filenamecat-tests: New file.
38242         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
38243         * lib/filenamecat.c: Remove test code.
38244
38245 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
38246
38247         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
38248
38249         * lib/strerror.c: Include <string.h> always, to test interface,
38250         and to remove the need for the dummy.
38251         Include intprops.h to compute width instead of doing it ourselves
38252         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
38253         (strerror): Define it to return NULL if there's no system strerror.
38254         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
38255         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
38256         ancient pre-strerror Unix systems well any more.  Saying "unknown
38257         system error" is enough.
38258         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
38259         simpler strerror.c implementation.
38260         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
38261         Simplify the tests to reflect the simpler strerror implementation.
38262         * modules/strerror (Depends-on): Add intprops.
38263
38264 2007-10-09  Eric Blake  <ebb9@byu.net>
38265
38266         Silence test-fpending.
38267         * modules/fpending-tests (Files): Add wrapper script.
38268         * tests/test-fpending.sh: New file.
38269
38270 2007-10-09  Bruno Haible  <bruno@clisp.org>
38271
38272         * MODULES.html.sh (func_module): Don't create a hyperlink for
38273         function names like 'printf_frexp'.
38274         (Misc): Add crc, memxor.
38275         (Characteristics of floating types): New section.
38276         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
38277         isnanf-nolibm, signbit, trunc, truncf, truncl.
38278         (Enhancements for ISO C 99 functions): New subsection Input/output.
38279         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
38280         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
38281         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
38282         (Compatibility checks for POSIX:2001 functions): Add clock-time.
38283         (Enhancements for POSIX:2001 functions): Add chdir-long.
38284         (File system functions): Add areadlink, chdir-safer, read-file.
38285         Remove cycle-check.
38286         (File system as inode set): New section.
38287         (Date and time): Add gethrxtime.
38288         (Multithreading): Add openmp.
38289         (Internationalization functions): Add localename.
38290         (Unicode string functions): Add unistr/u*-mbsnlen.
38291         (Support for maintaining and releasing projects): Add git-version-gen.
38292         (Lone files): Remove directories.
38293
38294 2007-10-08  Ben Pfaff  <blp@gnu.org>
38295
38296         * lib/xmalloca.h: Fix typo in comment.
38297
38298 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
38299
38300         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
38301         when avoiding problems with integer overflow.  Use a portable test
38302         instead.
38303
38304 2007-10-08  Simon Josefsson  <simon@josefsson.org>
38305
38306         * modules/dummy (License): Change to LGPLv2+.
38307         * modules/float (License): Likewise
38308         * modules/realloc (License): Likewise
38309         * modules/stdlib (License): Likewise
38310
38311 2007-10-07  Bruno Haible  <bruno@clisp.org>
38312
38313         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
38314         * floor.c (TWO_MANT_DIG): Likewise.
38315         * ceil.c (TWO_MANT_DIG): Likewise.
38316         Reported by Ben Pfaff.
38317
38318 2007-10-07  Bruno Haible  <bruno@clisp.org>
38319
38320         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
38321         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
38322         * lib/frexp.c (FUNC): Likewise.
38323         * lib/printf-frexp.h (printf_frexp): Likewise.
38324         * lib/printf-frexpl.h (printf_frexpl): Likewise.
38325         * lib/printf-frexp.c (FUNC): Likewise.
38326         Suggested by Jim Meyering.
38327
38328 2007-10-07  Jim Meyering  <meyering@redhat.com>
38329
38330         Make xnanosleep's integer overflow test more robust.
38331         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
38332         so that gcc-4.3.0 doesn't optimize away this test for overflow.
38333
38334 2007-10-07  Bruno Haible  <bruno@clisp.org>
38335
38336         * NEWS: Mention the license change.
38337
38338         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
38339         abbreviations in the modules files.
38340
38341         Change copyright notice from GPLv2+ to GPLv3+.
38342         * README: Change copyright notice.
38343         * MODULES.html.sh: Likewise.
38344         * build-aux/bootstrap.conf: Likewise.
38345         * build-aux/config.libpath: Likewise.
38346         * build-aux/csharpcomp.sh.in: Likewise.
38347         * build-aux/csharpexec.sh.in: Likewise.
38348         * build-aux/install-reloc: Likewise.
38349         * build-aux/javacomp.sh.in: Likewise.
38350         * build-aux/javaexec.sh.in: Likewise.
38351         * build-aux/ldd.sh.in: Likewise.
38352         * build-aux/reloc-ldflags: Likewise.
38353         * build-aux/relocatable.sh.in: Likewise.
38354         * build-aux/x-to-1.in: Likewise.
38355         * check-module: Likewise.
38356         * config/srclistvars.sh: Likewise.
38357         * gnulib-tool: Likewise.
38358         * lib/acl-internal.h: Likewise.
38359         * lib/acl.c: Likewise.
38360         * lib/acl.h: Likewise.
38361         * lib/acl_entries.c: Likewise.
38362         * lib/areadlink-with-size.c: Likewise.
38363         * lib/areadlink.c: Likewise.
38364         * lib/areadlink.h: Likewise.
38365         * lib/argmatch.c: Likewise.
38366         * lib/argmatch.h: Likewise.
38367         * lib/argp-ba.c: Likewise.
38368         * lib/argp-eexst.c: Likewise.
38369         * lib/argp-fmtstream.c: Likewise.
38370         * lib/argp-fmtstream.h: Likewise.
38371         * lib/argp-fs-xinl.c: Likewise.
38372         * lib/argp-help.c: Likewise.
38373         * lib/argp-namefrob.h: Likewise.
38374         * lib/argp-parse.c: Likewise.
38375         * lib/argp-pin.c: Likewise.
38376         * lib/argp-pv.c: Likewise.
38377         * lib/argp-pvh.c: Likewise.
38378         * lib/argp-xinl.c: Likewise.
38379         * lib/argp.h: Likewise.
38380         * lib/at-func.c: Likewise.
38381         * lib/atanl.c: Likewise.
38382         * lib/backupfile.c: Likewise.
38383         * lib/backupfile.h: Likewise.
38384         * lib/basename.c: Likewise.
38385         * lib/binary-io.h: Likewise.
38386         * lib/byteswap.in.h: Likewise.
38387         * lib/c-stack.c: Likewise.
38388         * lib/c-stack.h: Likewise.
38389         * lib/c-strcasestr.c: Likewise.
38390         * lib/c-strcasestr.h: Likewise.
38391         * lib/c-strstr.c: Likewise.
38392         * lib/c-strstr.h: Likewise.
38393         * lib/c-strtod.c: Likewise.
38394         * lib/calloc.c: Likewise.
38395         * lib/canon-host.c: Likewise.
38396         * lib/canon-host.h: Likewise.
38397         * lib/canonicalize-lgpl.c: Likewise.
38398         * lib/canonicalize.c: Likewise.
38399         * lib/canonicalize.h: Likewise.
38400         * lib/ceil.c: Likewise.
38401         * lib/ceilf.c: Likewise.
38402         * lib/ceill.c: Likewise.
38403         * lib/chdir-long.c: Likewise.
38404         * lib/chdir-long.h: Likewise.
38405         * lib/chdir-safer.c: Likewise.
38406         * lib/chdir-safer.h: Likewise.
38407         * lib/chown.c: Likewise.
38408         * lib/classpath.c: Likewise.
38409         * lib/classpath.h: Likewise.
38410         * lib/clean-temp.c: Likewise.
38411         * lib/clean-temp.h: Likewise.
38412         * lib/cloexec.c: Likewise.
38413         * lib/close-stream.c: Likewise.
38414         * lib/closein.c: Likewise.
38415         * lib/closein.h: Likewise.
38416         * lib/closeout.c: Likewise.
38417         * lib/closeout.h: Likewise.
38418         * lib/concat-filename.c: Likewise.
38419         * lib/copy-file.c: Likewise.
38420         * lib/copy-file.h: Likewise.
38421         * lib/count-one-bits.h: Likewise.
38422         * lib/crc.c: Likewise.
38423         * lib/crc.h: Likewise.
38424         * lib/creat-safer.c: Likewise.
38425         * lib/csharpcomp.c: Likewise.
38426         * lib/csharpcomp.h: Likewise.
38427         * lib/csharpexec.c: Likewise.
38428         * lib/csharpexec.h: Likewise.
38429         * lib/cycle-check.c: Likewise.
38430         * lib/cycle-check.h: Likewise.
38431         * lib/diacrit.c: Likewise.
38432         * lib/diacrit.h: Likewise.
38433         * lib/diffseq.h: Likewise.
38434         * lib/dirchownmod.c: Likewise.
38435         * lib/dirent.in.h: Likewise.
38436         * lib/dirfd.c: Likewise.
38437         * lib/dirfd.h: Likewise.
38438         * lib/dirname.c: Likewise.
38439         * lib/dirname.h: Likewise.
38440         * lib/dummy.c: Likewise.
38441         * lib/dup-safer.c: Likewise.
38442         * lib/dup2.c: Likewise.
38443         * lib/eealloc.h: Likewise.
38444         * lib/error.c: Likewise.
38445         * lib/error.h: Likewise.
38446         * lib/euidaccess.c: Likewise.
38447         * lib/exclude.c: Likewise.
38448         * lib/exclude.h: Likewise.
38449         * lib/execute.c: Likewise.
38450         * lib/execute.h: Likewise.
38451         * lib/exitfail.c: Likewise.
38452         * lib/exitfail.h: Likewise.
38453         * lib/expl.c: Likewise.
38454         * lib/fatal-signal.c: Likewise.
38455         * lib/fatal-signal.h: Likewise.
38456         * lib/fbufmode.c: Likewise.
38457         * lib/fbufmode.h: Likewise.
38458         * lib/fchdir.c: Likewise.
38459         * lib/fchmodat.c: Likewise.
38460         * lib/fchownat.c: Likewise.
38461         * lib/fcntl--.h: Likewise.
38462         * lib/fcntl-safer.h: Likewise.
38463         * lib/fcntl.in.h: Likewise.
38464         * lib/fd-safer.c: Likewise.
38465         * lib/fflush.c: Likewise.
38466         * lib/file-has-acl.c: Likewise.
38467         * lib/file-set.c: Likewise.
38468         * lib/file-type.c: Likewise.
38469         * lib/file-type.h: Likewise.
38470         * lib/fileblocks.c: Likewise.
38471         * lib/filemode.c: Likewise.
38472         * lib/filemode.h: Likewise.
38473         * lib/filename.h: Likewise.
38474         * lib/filenamecat.c: Likewise.
38475         * lib/filenamecat.h: Likewise.
38476         * lib/findprog.c: Likewise.
38477         * lib/findprog.h: Likewise.
38478         * lib/float.in.h: Likewise.
38479         * lib/floor.c: Likewise.
38480         * lib/floorf.c: Likewise.
38481         * lib/floorl.c: Likewise.
38482         * lib/fopen-safer.c: Likewise.
38483         * lib/fopen.c: Likewise.
38484         * lib/fpending.c: Likewise.
38485         * lib/fpending.h: Likewise.
38486         * lib/fprintf.c: Likewise.
38487         * lib/fprintftime.h: Likewise.
38488         * lib/fpucw.h: Likewise.
38489         * lib/fpurge.c: Likewise.
38490         * lib/fpurge.h: Likewise.
38491         * lib/freadable.c: Likewise.
38492         * lib/freadable.h: Likewise.
38493         * lib/freadahead.c: Likewise.
38494         * lib/freadahead.h: Likewise.
38495         * lib/freading.c: Likewise.
38496         * lib/freading.h: Likewise.
38497         * lib/free.c: Likewise.
38498         * lib/freopen.c: Likewise.
38499         * lib/frexp.c: Likewise.
38500         * lib/frexpl.c: Likewise.
38501         * lib/fseek.c: Likewise.
38502         * lib/fseterr.c: Likewise.
38503         * lib/fseterr.h: Likewise.
38504         * lib/fstatat.c: Likewise.
38505         * lib/fstrcmp.c: Likewise.
38506         * lib/fstrcmp.h: Likewise.
38507         * lib/fsusage.c: Likewise.
38508         * lib/fsusage.h: Likewise.
38509         * lib/ftell.c: Likewise.
38510         * lib/ftello.c: Likewise.
38511         * lib/fts-cycle.c: Likewise.
38512         * lib/fts.c: Likewise.
38513         * lib/fts_.h: Likewise.
38514         * lib/full-read.c: Likewise.
38515         * lib/full-read.h: Likewise.
38516         * lib/full-write.c: Likewise.
38517         * lib/full-write.h: Likewise.
38518         * lib/fwritable.c: Likewise.
38519         * lib/fwritable.h: Likewise.
38520         * lib/fwriteerror.c: Likewise.
38521         * lib/fwriteerror.h: Likewise.
38522         * lib/fwriting.c: Likewise.
38523         * lib/fwriting.h: Likewise.
38524         * lib/gcd.c: Likewise.
38525         * lib/gcd.h: Likewise.
38526         * lib/getcwd.c: Likewise.
38527         * lib/getdate.h: Likewise.
38528         * lib/getdate.y: Likewise.
38529         * lib/getdomainname.c: Likewise.
38530         * lib/getdomainname.h: Likewise.
38531         * lib/getgroups.c: Likewise.
38532         * lib/gethostname.c: Likewise.
38533         * lib/gethrxtime.c: Likewise.
38534         * lib/gethrxtime.h: Likewise.
38535         * lib/getloadavg.c: Likewise.
38536         * lib/getndelim2.c: Likewise.
38537         * lib/getndelim2.h: Likewise.
38538         * lib/getnline.c: Likewise.
38539         * lib/getnline.h: Likewise.
38540         * lib/getopt.c: Likewise.
38541         * lib/getopt.in.h: Likewise.
38542         * lib/getopt1.c: Likewise.
38543         * lib/getopt_int.h: Likewise.
38544         * lib/getpagesize.h: Likewise.
38545         * lib/getsubopt.c: Likewise.
38546         * lib/gettime.c: Likewise.
38547         * lib/getugroups.c: Likewise.
38548         * lib/getugroups.h: Likewise.
38549         * lib/getusershell.c: Likewise.
38550         * lib/gl_anyavltree_list1.h: Likewise.
38551         * lib/gl_anyavltree_list2.h: Likewise.
38552         * lib/gl_anyhash_list1.h: Likewise.
38553         * lib/gl_anyhash_list2.h: Likewise.
38554         * lib/gl_anylinked_list1.h: Likewise.
38555         * lib/gl_anylinked_list2.h: Likewise.
38556         * lib/gl_anyrbtree_list1.h: Likewise.
38557         * lib/gl_anyrbtree_list2.h: Likewise.
38558         * lib/gl_anytree_list1.h: Likewise.
38559         * lib/gl_anytree_list2.h: Likewise.
38560         * lib/gl_anytree_oset.h: Likewise.
38561         * lib/gl_anytreehash_list1.h: Likewise.
38562         * lib/gl_anytreehash_list2.h: Likewise.
38563         * lib/gl_array_list.c: Likewise.
38564         * lib/gl_array_list.h: Likewise.
38565         * lib/gl_array_oset.c: Likewise.
38566         * lib/gl_array_oset.h: Likewise.
38567         * lib/gl_avltree_list.c: Likewise.
38568         * lib/gl_avltree_list.h: Likewise.
38569         * lib/gl_avltree_oset.c: Likewise.
38570         * lib/gl_avltree_oset.h: Likewise.
38571         * lib/gl_avltreehash_list.c: Likewise.
38572         * lib/gl_avltreehash_list.h: Likewise.
38573         * lib/gl_carray_list.c: Likewise.
38574         * lib/gl_carray_list.h: Likewise.
38575         * lib/gl_linked_list.c: Likewise.
38576         * lib/gl_linked_list.h: Likewise.
38577         * lib/gl_linkedhash_list.c: Likewise.
38578         * lib/gl_linkedhash_list.h: Likewise.
38579         * lib/gl_list.c: Likewise.
38580         * lib/gl_list.h: Likewise.
38581         * lib/gl_oset.c: Likewise.
38582         * lib/gl_oset.h: Likewise.
38583         * lib/gl_rbtree_list.c: Likewise.
38584         * lib/gl_rbtree_list.h: Likewise.
38585         * lib/gl_rbtree_oset.c: Likewise.
38586         * lib/gl_rbtree_oset.h: Likewise.
38587         * lib/gl_rbtreehash_list.c: Likewise.
38588         * lib/gl_rbtreehash_list.h: Likewise.
38589         * lib/gl_sublist.c: Likewise.
38590         * lib/gl_sublist.h: Likewise.
38591         * lib/group-member.c: Likewise.
38592         * lib/group-member.h: Likewise.
38593         * lib/hard-locale.c: Likewise.
38594         * lib/hard-locale.h: Likewise.
38595         * lib/hash-pjw.c: Likewise.
38596         * lib/hash-pjw.h: Likewise.
38597         * lib/hash-triple.c: Likewise.
38598         * lib/hash.c: Likewise.
38599         * lib/hash.h: Likewise.
38600         * lib/human.c: Likewise.
38601         * lib/human.h: Likewise.
38602         * lib/i-ring.c: Likewise.
38603         * lib/i-ring.h: Likewise.
38604         * lib/idcache.c: Likewise.
38605         * lib/imaxabs.c: Likewise.
38606         * lib/imaxdiv.c: Likewise.
38607         * lib/inet_pton.c: Likewise.
38608         * lib/inet_pton.h: Likewise.
38609         * lib/intprops.h: Likewise.
38610         * lib/inttostr.c: Likewise.
38611         * lib/inttostr.h: Likewise.
38612         * lib/inttypes.in.h: Likewise.
38613         * lib/isapipe.c: Likewise.
38614         * lib/isdir.c: Likewise.
38615         * lib/isnan.c: Likewise.
38616         * lib/isnan.h: Likewise.
38617         * lib/isnanf.c: Likewise.
38618         * lib/isnanf.h: Likewise.
38619         * lib/isnanl-nolibm.h: Likewise.
38620         * lib/isnanl.c: Likewise.
38621         * lib/isnanl.h: Likewise.
38622         * lib/javacomp.c: Likewise.
38623         * lib/javacomp.h: Likewise.
38624         * lib/javaexec.c: Likewise.
38625         * lib/javaexec.h: Likewise.
38626         * lib/javaversion.c: Likewise.
38627         * lib/javaversion.h: Likewise.
38628         * lib/javaversion.java: Likewise.
38629         * lib/lbrkprop.h: Likewise.
38630         * lib/lchmod.h: Likewise.
38631         * lib/lchown.c: Likewise.
38632         * lib/ldexpl.c: Likewise.
38633         * lib/linebreak.c: Likewise.
38634         * lib/linebreak.h: Likewise.
38635         * lib/linebuffer.c: Likewise.
38636         * lib/linebuffer.h: Likewise.
38637         * lib/locale.in.h: Likewise.
38638         * lib/logl.c: Likewise.
38639         * lib/long-options.c: Likewise.
38640         * lib/long-options.h: Likewise.
38641         * lib/lstat.c: Likewise.
38642         * lib/lstat.h: Likewise.
38643         * lib/math.in.h: Likewise.
38644         * lib/mbchar.c: Likewise.
38645         * lib/mbchar.h: Likewise.
38646         * lib/mbfile.h: Likewise.
38647         * lib/mbiter.h: Likewise.
38648         * lib/mbscasecmp.c: Likewise.
38649         * lib/mbscasestr.c: Likewise.
38650         * lib/mbschr.c: Likewise.
38651         * lib/mbscspn.c: Likewise.
38652         * lib/mbslen.c: Likewise.
38653         * lib/mbsncasecmp.c: Likewise.
38654         * lib/mbsnlen.c: Likewise.
38655         * lib/mbspbrk.c: Likewise.
38656         * lib/mbspcasecmp.c: Likewise.
38657         * lib/mbsrchr.c: Likewise.
38658         * lib/mbssep.c: Likewise.
38659         * lib/mbsspn.c: Likewise.
38660         * lib/mbsstr.c: Likewise.
38661         * lib/mbstok_r.c: Likewise.
38662         * lib/mbswidth.c: Likewise.
38663         * lib/mbswidth.h: Likewise.
38664         * lib/mbuiter.h: Likewise.
38665         * lib/memcasecmp.c: Likewise.
38666         * lib/memcasecmp.h: Likewise.
38667         * lib/memchr.c: Likewise.
38668         * lib/memcmp.c: Likewise.
38669         * lib/memcoll.c: Likewise.
38670         * lib/memcoll.h: Likewise.
38671         * lib/memcpy.c: Likewise.
38672         * lib/memrchr.c: Likewise.
38673         * lib/mkancesdirs.c: Likewise.
38674         * lib/mkdir-p.c: Likewise.
38675         * lib/mkdir-p.h: Likewise.
38676         * lib/mkdir.c: Likewise.
38677         * lib/mkdirat.c: Likewise.
38678         * lib/mkdtemp.c: Likewise.
38679         * lib/mkstemp-safer.c: Likewise.
38680         * lib/mkstemp.c: Likewise.
38681         * lib/modechange.c: Likewise.
38682         * lib/modechange.h: Likewise.
38683         * lib/mountlist.c: Likewise.
38684         * lib/mountlist.h: Likewise.
38685         * lib/mpsort.c: Likewise.
38686         * lib/nanosleep.c: Likewise.
38687         * lib/obstack.c: Likewise.
38688         * lib/obstack.h: Likewise.
38689         * lib/open-safer.c: Likewise.
38690         * lib/open.c: Likewise.
38691         * lib/openat-die.c: Likewise.
38692         * lib/openat-priv.h: Likewise.
38693         * lib/openat-proc.c: Likewise.
38694         * lib/openat.c: Likewise.
38695         * lib/openat.h: Likewise.
38696         * lib/pagealign_alloc.c: Likewise.
38697         * lib/pagealign_alloc.h: Likewise.
38698         * lib/physmem.c: Likewise.
38699         * lib/physmem.h: Likewise.
38700         * lib/pipe-safer.c: Likewise.
38701         * lib/pipe.c: Likewise.
38702         * lib/pipe.h: Likewise.
38703         * lib/posixtm.c: Likewise.
38704         * lib/posixtm.h: Likewise.
38705         * lib/posixver.c: Likewise.
38706         * lib/printf-frexp.c: Likewise.
38707         * lib/printf-frexp.h: Likewise.
38708         * lib/printf-frexpl.c: Likewise.
38709         * lib/printf-frexpl.h: Likewise.
38710         * lib/printf.c: Likewise.
38711         * lib/progname.c: Likewise.
38712         * lib/progname.h: Likewise.
38713         * lib/progreloc.c: Likewise.
38714         * lib/putenv.c: Likewise.
38715         * lib/quote.c: Likewise.
38716         * lib/quote.h: Likewise.
38717         * lib/quotearg.c: Likewise.
38718         * lib/quotearg.h: Likewise.
38719         * lib/raise.c: Likewise.
38720         * lib/readline.c: Likewise.
38721         * lib/readline.h: Likewise.
38722         * lib/readlink.c: Likewise.
38723         * lib/readtokens.c: Likewise.
38724         * lib/readtokens.h: Likewise.
38725         * lib/readtokens0.c: Likewise.
38726         * lib/readtokens0.h: Likewise.
38727         * lib/readutmp.c: Likewise.
38728         * lib/readutmp.h: Likewise.
38729         * lib/realloc.c: Likewise.
38730         * lib/relocwrapper.c: Likewise.
38731         * lib/rename-dest-slash.c: Likewise.
38732         * lib/rename.c: Likewise.
38733         * lib/rmdir.c: Likewise.
38734         * lib/rpmatch.c: Likewise.
38735         * lib/safe-read.c: Likewise.
38736         * lib/safe-read.h: Likewise.
38737         * lib/safe-write.c: Likewise.
38738         * lib/safe-write.h: Likewise.
38739         * lib/same-inode.h: Likewise.
38740         * lib/same.c: Likewise.
38741         * lib/same.h: Likewise.
38742         * lib/save-cwd.c: Likewise.
38743         * lib/save-cwd.h: Likewise.
38744         * lib/savedir.c: Likewise.
38745         * lib/savedir.h: Likewise.
38746         * lib/savewd.c: Likewise.
38747         * lib/savewd.h: Likewise.
38748         * lib/search.in.h: Likewise.
38749         * lib/setenv.c: Likewise.
38750         * lib/setenv.h: Likewise.
38751         * lib/settime.c: Likewise.
38752         * lib/sh-quote.c: Likewise.
38753         * lib/sh-quote.h: Likewise.
38754         * lib/sig2str.c: Likewise.
38755         * lib/sig2str.h: Likewise.
38756         * lib/signal.in.h: Likewise.
38757         * lib/signbitd.c: Likewise.
38758         * lib/signbitf.c: Likewise.
38759         * lib/signbitl.c: Likewise.
38760         * lib/sigprocmask.c: Likewise.
38761         * lib/sincosl.c: Likewise.
38762         * lib/sleep.c: Likewise.
38763         * lib/sprintf.c: Likewise.
38764         * lib/sqrtl.c: Likewise.
38765         * lib/stat-time.h: Likewise.
38766         * lib/stdio--.h: Likewise.
38767         * lib/stdio-safer.h: Likewise.
38768         * lib/stdlib--.h: Likewise.
38769         * lib/stdlib-safer.h: Likewise.
38770         * lib/stdlib.in.h: Likewise.
38771         * lib/stpcpy.c: Likewise.
38772         * lib/stpncpy.c: Likewise.
38773         * lib/strchrnul.c: Likewise.
38774         * lib/strcspn.c: Likewise.
38775         * lib/strerror.c: Likewise.
38776         * lib/strftime.c: Likewise.
38777         * lib/strftime.h: Likewise.
38778         * lib/striconveh.c: Likewise.
38779         * lib/striconveh.h: Likewise.
38780         * lib/striconveha.c: Likewise.
38781         * lib/striconveha.h: Likewise.
38782         * lib/stripslash.c: Likewise.
38783         * lib/strnlen1.c: Likewise.
38784         * lib/strnlen1.h: Likewise.
38785         * lib/strtod.c: Likewise.
38786         * lib/strtoimax.c: Likewise.
38787         * lib/strtok_r.c: Likewise.
38788         * lib/strtol.c: Likewise.
38789         * lib/strtoll.c: Likewise.
38790         * lib/strtoul.c: Likewise.
38791         * lib/strtoull.c: Likewise.
38792         * lib/sysexits.in.h: Likewise.
38793         * lib/tempname.c: Likewise.
38794         * lib/tempname.h: Likewise.
38795         * lib/timespec.h: Likewise.
38796         * lib/tls.c: Likewise.
38797         * lib/tls.h: Likewise.
38798         * lib/tmpdir.c: Likewise.
38799         * lib/tmpdir.h: Likewise.
38800         * lib/tmpfile-safer.c: Likewise.
38801         * lib/tmpfile.c: Likewise.
38802         * lib/trigl.c: Likewise.
38803         * lib/trigl.h: Likewise.
38804         * lib/trim.c: Likewise.
38805         * lib/trim.h: Likewise.
38806         * lib/trunc.c: Likewise.
38807         * lib/truncf.c: Likewise.
38808         * lib/truncl.c: Likewise.
38809         * lib/tsearch.c: Likewise.
38810         * lib/unicodeio.c: Likewise.
38811         * lib/unicodeio.h: Likewise.
38812         * lib/unistd--.h: Likewise.
38813         * lib/unistd-safer.h: Likewise.
38814         * lib/unistdio/ulc-fprintf.c: Likewise.
38815         * lib/unistdio/ulc-vfprintf.c: Likewise.
38816         * lib/unlinkdir.c: Likewise.
38817         * lib/unlinkdir.h: Likewise.
38818         * lib/unlocked-io.h: Likewise.
38819         * lib/unsetenv.c: Likewise.
38820         * lib/userspec.c: Likewise.
38821         * lib/utime.c: Likewise.
38822         * lib/utimecmp.c: Likewise.
38823         * lib/utimecmp.h: Likewise.
38824         * lib/utimens.c: Likewise.
38825         * lib/verify.h: Likewise.
38826         * lib/verror.c: Likewise.
38827         * lib/verror.h: Likewise.
38828         * lib/version-etc-fsf.c: Likewise.
38829         * lib/version-etc.c: Likewise.
38830         * lib/version-etc.h: Likewise.
38831         * lib/vfprintf.c: Likewise.
38832         * lib/vprintf.c: Likewise.
38833         * lib/vsprintf.c: Likewise.
38834         * lib/w32spawn.h: Likewise.
38835         * lib/wait-process.c: Likewise.
38836         * lib/wait-process.h: Likewise.
38837         * lib/wcwidth.c: Likewise.
38838         * lib/write-any-file.c: Likewise.
38839         * lib/xalloc-die.c: Likewise.
38840         * lib/xalloc.h: Likewise.
38841         * lib/xasprintf.c: Likewise.
38842         * lib/xgetcwd.c: Likewise.
38843         * lib/xgetcwd.h: Likewise.
38844         * lib/xgetdomainname.c: Likewise.
38845         * lib/xgetdomainname.h: Likewise.
38846         * lib/xgethostname.c: Likewise.
38847         * lib/xmalloc.c: Likewise.
38848         * lib/xmalloca.c: Likewise.
38849         * lib/xmalloca.h: Likewise.
38850         * lib/xmemcoll.c: Likewise.
38851         * lib/xnanosleep.c: Likewise.
38852         * lib/xreadlink.c: Likewise.
38853         * lib/xreadlink.h: Likewise.
38854         * lib/xsetenv.c: Likewise.
38855         * lib/xsetenv.h: Likewise.
38856         * lib/xstriconv.c: Likewise.
38857         * lib/xstriconv.h: Likewise.
38858         * lib/xstrndup.c: Likewise.
38859         * lib/xstrndup.h: Likewise.
38860         * lib/xstrtod.c: Likewise.
38861         * lib/xstrtod.h: Likewise.
38862         * lib/xstrtol-error.c: Likewise.
38863         * lib/xstrtol.c: Likewise.
38864         * lib/xstrtol.h: Likewise.
38865         * lib/xtime.h: Likewise.
38866         * lib/xvasprintf.c: Likewise.
38867         * lib/xvasprintf.h: Likewise.
38868         * lib/yesno.c: Likewise.
38869         * lib/yesno.h: Likewise.
38870         * posix-modules: Likewise.
38871         * tests/test-alloca-opt.c: Likewise.
38872         * tests/test-arcfour.c: Likewise.
38873         * tests/test-arctwo.c: Likewise.
38874         * tests/test-argmatch.c: Likewise.
38875         * tests/test-argp-2.sh: Likewise.
38876         * tests/test-argp.c: Likewise.
38877         * tests/test-arpa_inet.c: Likewise.
38878         * tests/test-array_list.c: Likewise.
38879         * tests/test-array_oset.c: Likewise.
38880         * tests/test-atexit.c: Likewise.
38881         * tests/test-avltree_list.c: Likewise.
38882         * tests/test-avltree_oset.c: Likewise.
38883         * tests/test-avltreehash_list.c: Likewise.
38884         * tests/test-base64.c: Likewise.
38885         * tests/test-binary-io.c: Likewise.
38886         * tests/test-byteswap.c: Likewise.
38887         * tests/test-c-ctype.c: Likewise.
38888         * tests/test-c-strcasecmp.c: Likewise.
38889         * tests/test-c-strcasestr.c: Likewise.
38890         * tests/test-c-strncasecmp.c: Likewise.
38891         * tests/test-c-strstr.c: Likewise.
38892         * tests/test-canonicalize-lgpl.c: Likewise.
38893         * tests/test-canonicalize.c: Likewise.
38894         * tests/test-carray_list.c: Likewise.
38895         * tests/test-ceilf.c: Likewise.
38896         * tests/test-ceill.c: Likewise.
38897         * tests/test-count-one-bits.c: Likewise.
38898         * tests/test-crc.c: Likewise.
38899         * tests/test-dirname.c: Likewise.
38900         * tests/test-fbufmode.c: Likewise.
38901         * tests/test-fcntl.c: Likewise.
38902         * tests/test-fflush.c: Likewise.
38903         * tests/test-floorf.c: Likewise.
38904         * tests/test-floorl.c: Likewise.
38905         * tests/test-fopen.c: Likewise.
38906         * tests/test-fprintf-posix.c: Likewise.
38907         * tests/test-fprintf-posix.h: Likewise.
38908         * tests/test-fpurge.c: Likewise.
38909         * tests/test-freadable.c: Likewise.
38910         * tests/test-freadahead.c: Likewise.
38911         * tests/test-freading.c: Likewise.
38912         * tests/test-freopen.c: Likewise.
38913         * tests/test-frexp.c: Likewise.
38914         * tests/test-frexpl.c: Likewise.
38915         * tests/test-fseek.c: Likewise.
38916         * tests/test-fseeko.c: Likewise.
38917         * tests/test-fseterr.c: Likewise.
38918         * tests/test-fstrcmp.c: Likewise.
38919         * tests/test-ftell.c: Likewise.
38920         * tests/test-ftello.c: Likewise.
38921         * tests/test-fwritable.c: Likewise.
38922         * tests/test-fwriting.c: Likewise.
38923         * tests/test-getaddrinfo.c: Likewise.
38924         * tests/test-getpass.c: Likewise.
38925         * tests/test-gettimeofday.c: Likewise.
38926         * tests/test-hmac-md5.c: Likewise.
38927         * tests/test-hmac-sha1.c: Likewise.
38928         * tests/test-iconv.c: Likewise.
38929         * tests/test-iconvme.c: Likewise.
38930         * tests/test-inttypes.c: Likewise.
38931         * tests/test-isnan.c: Likewise.
38932         * tests/test-isnanf.c: Likewise.
38933         * tests/test-isnanl-nolibm.c: Likewise.
38934         * tests/test-isnanl.c: Likewise.
38935         * tests/test-isnanl.h: Likewise.
38936         * tests/test-ldexpl.c: Likewise.
38937         * tests/test-linked_list.c: Likewise.
38938         * tests/test-linkedhash_list.c: Likewise.
38939         * tests/test-locale.c: Likewise.
38940         * tests/test-localename.c: Likewise.
38941         * tests/test-lock.c: Likewise.
38942         * tests/test-lseek.c: Likewise.
38943         * tests/test-malloca.c: Likewise.
38944         * tests/test-math.c: Likewise.
38945         * tests/test-mbscasecmp.c: Likewise.
38946         * tests/test-mbscasestr1.c: Likewise.
38947         * tests/test-mbscasestr2.c: Likewise.
38948         * tests/test-mbscasestr3.c: Likewise.
38949         * tests/test-mbscasestr4.c: Likewise.
38950         * tests/test-mbschr.c: Likewise.
38951         * tests/test-mbscspn.c: Likewise.
38952         * tests/test-mbsncasecmp.c: Likewise.
38953         * tests/test-mbspbrk.c: Likewise.
38954         * tests/test-mbspcasecmp.c: Likewise.
38955         * tests/test-mbsrchr.c: Likewise.
38956         * tests/test-mbsspn.c: Likewise.
38957         * tests/test-mbsstr1.c: Likewise.
38958         * tests/test-mbsstr2.c: Likewise.
38959         * tests/test-mbsstr3.c: Likewise.
38960         * tests/test-md5.c: Likewise.
38961         * tests/test-memmem.c: Likewise.
38962         * tests/test-netinet_in.c: Likewise.
38963         * tests/test-open.c: Likewise.
38964         * tests/test-printf-frexp.c: Likewise.
38965         * tests/test-printf-frexpl.c: Likewise.
38966         * tests/test-printf-posix.c: Likewise.
38967         * tests/test-printf-posix.h: Likewise.
38968         * tests/test-rbtree_list.c: Likewise.
38969         * tests/test-rbtree_oset.c: Likewise.
38970         * tests/test-rbtreehash_list.c: Likewise.
38971         * tests/test-read-file.c: Likewise.
38972         * tests/test-rijndael.c: Likewise.
38973         * tests/test-search.c: Likewise.
38974         * tests/test-signbit.c: Likewise.
38975         * tests/test-sleep.c: Likewise.
38976         * tests/test-snprintf-posix.c: Likewise.
38977         * tests/test-snprintf-posix.h: Likewise.
38978         * tests/test-snprintf.c: Likewise.
38979         * tests/test-sprintf-posix.c: Likewise.
38980         * tests/test-sprintf-posix.h: Likewise.
38981         * tests/test-stat-time.c: Likewise.
38982         * tests/test-stdbool.c: Likewise.
38983         * tests/test-stdint.c: Likewise.
38984         * tests/test-stdio.c: Likewise.
38985         * tests/test-stdlib.c: Likewise.
38986         * tests/test-stpncpy.c: Likewise.
38987         * tests/test-strcasestr.c: Likewise.
38988         * tests/test-striconv.c: Likewise.
38989         * tests/test-striconveh.c: Likewise.
38990         * tests/test-striconveha.c: Likewise.
38991         * tests/test-string.c: Likewise.
38992         * tests/test-sys_select.c: Likewise.
38993         * tests/test-sys_socket.c: Likewise.
38994         * tests/test-sys_stat.c: Likewise.
38995         * tests/test-sys_time.c: Likewise.
38996         * tests/test-sysexits.c: Likewise.
38997         * tests/test-time.c: Likewise.
38998         * tests/test-tls.c: Likewise.
38999         * tests/test-trunc.c: Likewise.
39000         * tests/test-truncf.c: Likewise.
39001         * tests/test-truncl.c: Likewise.
39002         * tests/test-unistd.c: Likewise.
39003         * tests/test-vasnprintf-posix.c: Likewise.
39004         * tests/test-vasnprintf-posix2.c: Likewise.
39005         * tests/test-vasnprintf.c: Likewise.
39006         * tests/test-vasprintf-posix.c: Likewise.
39007         * tests/test-vasprintf.c: Likewise.
39008         * tests/test-verify.c: Likewise.
39009         * tests/test-vfprintf-posix.c: Likewise.
39010         * tests/test-vprintf-posix.c: Likewise.
39011         * tests/test-vsnprintf-posix.c: Likewise.
39012         * tests/test-vsnprintf.c: Likewise.
39013         * tests/test-vsprintf-posix.c: Likewise.
39014         * tests/test-wchar.c: Likewise.
39015         * tests/test-wctype.c: Likewise.
39016         * tests/test-wcwidth.c: Likewise.
39017         * tests/test-xstrtol.c: Likewise.
39018         * tests/test-xvasprintf.c: Likewise.
39019         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
39020         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
39021         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39022         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39023         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39024         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
39025         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39026         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39027         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39028         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
39029         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39030         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39031         * tests/uniname/test-uninames.c: Likewise.
39032         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
39033         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
39034         * tests/unistdio/test-u16-printf1.h: Likewise.
39035         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
39036         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
39037         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
39038         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
39039         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
39040         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
39041         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
39042         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
39043         * tests/unistdio/test-u32-printf1.h: Likewise.
39044         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
39045         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
39046         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
39047         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
39048         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
39049         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
39050         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
39051         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
39052         * tests/unistdio/test-u8-printf1.h: Likewise.
39053         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
39054         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
39055         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
39056         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
39057         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
39058         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
39059         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
39060         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
39061         * tests/unistdio/test-ulc-printf1.h: Likewise.
39062         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
39063         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
39064         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
39065         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
39066         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
39067         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
39068         * tests/uniwidth/test-u16-strwidth.c: Likewise.
39069         * tests/uniwidth/test-u16-width.c: Likewise.
39070         * tests/uniwidth/test-u32-strwidth.c: Likewise.
39071         * tests/uniwidth/test-u32-width.c: Likewise.
39072         * tests/uniwidth/test-u8-strwidth.c: Likewise.
39073         * tests/uniwidth/test-u8-width.c: Likewise.
39074         * tests/uniwidth/test-uc_width.c: Likewise.
39075         * config/srclist-update: Likewise.
39076         (fixlicense): Update to GPLv3+.
39077
39078         Change copyright notice from LGPLv2.1+ to LGPLv3+.
39079         * tests/test-tsearch.c: Change copyright notice.
39080
39081         Change copyright notice from LGPLv2.0+ to LGPLv3+.
39082         * lib/c-strcaseeq.h: Change copyright notice.
39083         * lib/streq.h: Likewise.
39084         * lib/uniconv.h: Likewise.
39085         * lib/uniconv/u-conv-from-enc.h: Likewise.
39086         * lib/uniconv/u-conv-to-enc.h: Likewise.
39087         * lib/uniconv/u-strconv-from-enc.h: Likewise.
39088         * lib/uniconv/u-strconv-to-enc.h: Likewise.
39089         * lib/uniconv/u16-conv-from-enc.c: Likewise.
39090         * lib/uniconv/u16-conv-to-enc.c: Likewise.
39091         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
39092         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
39093         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
39094         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
39095         * lib/uniconv/u32-conv-from-enc.c: Likewise.
39096         * lib/uniconv/u32-conv-to-enc.c: Likewise.
39097         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
39098         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
39099         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
39100         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
39101         * lib/uniconv/u8-conv-from-enc.c: Likewise.
39102         * lib/uniconv/u8-conv-to-enc.c: Likewise.
39103         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
39104         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
39105         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
39106         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
39107         * lib/uniname.h: Likewise.
39108         * lib/uniname/uniname.c: Likewise.
39109         * lib/unistdio.h: Likewise.
39110         * lib/unistdio/u-asnprintf.h: Likewise.
39111         * lib/unistdio/u-asprintf.h: Likewise.
39112         * lib/unistdio/u-printf-args.c: Likewise.
39113         * lib/unistdio/u-printf-args.h: Likewise.
39114         * lib/unistdio/u-printf-parse.h: Likewise.
39115         * lib/unistdio/u-snprintf.h: Likewise.
39116         * lib/unistdio/u-sprintf.h: Likewise.
39117         * lib/unistdio/u-vasprintf.h: Likewise.
39118         * lib/unistdio/u-vsnprintf.h: Likewise.
39119         * lib/unistdio/u-vsprintf.h: Likewise.
39120         * lib/unistdio/u16-asnprintf.c: Likewise.
39121         * lib/unistdio/u16-asprintf.c: Likewise.
39122         * lib/unistdio/u16-printf-parse.c: Likewise.
39123         * lib/unistdio/u16-snprintf.c: Likewise.
39124         * lib/unistdio/u16-sprintf.c: Likewise.
39125         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
39126         * lib/unistdio/u16-u16-asprintf.c: Likewise.
39127         * lib/unistdio/u16-u16-snprintf.c: Likewise.
39128         * lib/unistdio/u16-u16-sprintf.c: Likewise.
39129         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
39130         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
39131         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
39132         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
39133         * lib/unistdio/u16-vasnprintf.c: Likewise.
39134         * lib/unistdio/u16-vasprintf.c: Likewise.
39135         * lib/unistdio/u16-vsnprintf.c: Likewise.
39136         * lib/unistdio/u16-vsprintf.c: Likewise.
39137         * lib/unistdio/u32-asnprintf.c: Likewise.
39138         * lib/unistdio/u32-asprintf.c: Likewise.
39139         * lib/unistdio/u32-printf-parse.c: Likewise.
39140         * lib/unistdio/u32-snprintf.c: Likewise.
39141         * lib/unistdio/u32-sprintf.c: Likewise.
39142         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
39143         * lib/unistdio/u32-u32-asprintf.c: Likewise.
39144         * lib/unistdio/u32-u32-snprintf.c: Likewise.
39145         * lib/unistdio/u32-u32-sprintf.c: Likewise.
39146         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
39147         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
39148         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
39149         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
39150         * lib/unistdio/u32-vasnprintf.c: Likewise.
39151         * lib/unistdio/u32-vasprintf.c: Likewise.
39152         * lib/unistdio/u32-vsnprintf.c: Likewise.
39153         * lib/unistdio/u32-vsprintf.c: Likewise.
39154         * lib/unistdio/u8-asnprintf.c: Likewise.
39155         * lib/unistdio/u8-asprintf.c: Likewise.
39156         * lib/unistdio/u8-printf-parse.c: Likewise.
39157         * lib/unistdio/u8-snprintf.c: Likewise.
39158         * lib/unistdio/u8-sprintf.c: Likewise.
39159         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
39160         * lib/unistdio/u8-u8-asprintf.c: Likewise.
39161         * lib/unistdio/u8-u8-snprintf.c: Likewise.
39162         * lib/unistdio/u8-u8-sprintf.c: Likewise.
39163         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
39164         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
39165         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
39166         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
39167         * lib/unistdio/u8-vasnprintf.c: Likewise.
39168         * lib/unistdio/u8-vasprintf.c: Likewise.
39169         * lib/unistdio/u8-vsnprintf.c: Likewise.
39170         * lib/unistdio/u8-vsprintf.c: Likewise.
39171         * lib/unistdio/ulc-asnprintf.c: Likewise.
39172         * lib/unistdio/ulc-asprintf.c: Likewise.
39173         * lib/unistdio/ulc-printf-parse.c: Likewise.
39174         * lib/unistdio/ulc-snprintf.c: Likewise.
39175         * lib/unistdio/ulc-sprintf.c: Likewise.
39176         * lib/unistdio/ulc-vasnprintf.c: Likewise.
39177         * lib/unistdio/ulc-vasprintf.c: Likewise.
39178         * lib/unistdio/ulc-vsnprintf.c: Likewise.
39179         * lib/unistdio/ulc-vsprintf.c: Likewise.
39180         * lib/unistr.h: Likewise.
39181         * lib/unistr/u-cpy-alloc.h: Likewise.
39182         * lib/unistr/u-cpy.h: Likewise.
39183         * lib/unistr/u-endswith.h: Likewise.
39184         * lib/unistr/u-move.h: Likewise.
39185         * lib/unistr/u-set.h: Likewise.
39186         * lib/unistr/u-startswith.h: Likewise.
39187         * lib/unistr/u-stpcpy.h: Likewise.
39188         * lib/unistr/u-stpncpy.h: Likewise.
39189         * lib/unistr/u-strcat.h: Likewise.
39190         * lib/unistr/u-strcpy.h: Likewise.
39191         * lib/unistr/u-strcspn.h: Likewise.
39192         * lib/unistr/u-strdup.h: Likewise.
39193         * lib/unistr/u-strlen.h: Likewise.
39194         * lib/unistr/u-strncat.h: Likewise.
39195         * lib/unistr/u-strncpy.h: Likewise.
39196         * lib/unistr/u-strnlen.h: Likewise.
39197         * lib/unistr/u-strpbrk.h: Likewise.
39198         * lib/unistr/u-strspn.h: Likewise.
39199         * lib/unistr/u-strstr.h: Likewise.
39200         * lib/unistr/u-strtok.h: Likewise.
39201         * lib/unistr/u16-check.c: Likewise.
39202         * lib/unistr/u16-chr.c: Likewise.
39203         * lib/unistr/u16-cmp.c: Likewise.
39204         * lib/unistr/u16-cpy-alloc.c: Likewise.
39205         * lib/unistr/u16-cpy.c: Likewise.
39206         * lib/unistr/u16-endswith.c: Likewise.
39207         * lib/unistr/u16-mblen.c: Likewise.
39208         * lib/unistr/u16-mbsnlen.c: Likewise.
39209         * lib/unistr/u16-mbtouc-aux.c: Likewise.
39210         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
39211         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
39212         * lib/unistr/u16-mbtouc.c: Likewise.
39213         * lib/unistr/u16-mbtoucr.c: Likewise.
39214         * lib/unistr/u16-move.c: Likewise.
39215         * lib/unistr/u16-next.c: Likewise.
39216         * lib/unistr/u16-prev.c: Likewise.
39217         * lib/unistr/u16-set.c: Likewise.
39218         * lib/unistr/u16-startswith.c: Likewise.
39219         * lib/unistr/u16-stpcpy.c: Likewise.
39220         * lib/unistr/u16-stpncpy.c: Likewise.
39221         * lib/unistr/u16-strcat.c: Likewise.
39222         * lib/unistr/u16-strchr.c: Likewise.
39223         * lib/unistr/u16-strcmp.c: Likewise.
39224         * lib/unistr/u16-strcpy.c: Likewise.
39225         * lib/unistr/u16-strcspn.c: Likewise.
39226         * lib/unistr/u16-strdup.c: Likewise.
39227         * lib/unistr/u16-strlen.c: Likewise.
39228         * lib/unistr/u16-strmblen.c: Likewise.
39229         * lib/unistr/u16-strmbtouc.c: Likewise.
39230         * lib/unistr/u16-strncat.c: Likewise.
39231         * lib/unistr/u16-strncmp.c: Likewise.
39232         * lib/unistr/u16-strncpy.c: Likewise.
39233         * lib/unistr/u16-strnlen.c: Likewise.
39234         * lib/unistr/u16-strpbrk.c: Likewise.
39235         * lib/unistr/u16-strrchr.c: Likewise.
39236         * lib/unistr/u16-strspn.c: Likewise.
39237         * lib/unistr/u16-strstr.c: Likewise.
39238         * lib/unistr/u16-strtok.c: Likewise.
39239         * lib/unistr/u16-to-u32.c: Likewise.
39240         * lib/unistr/u16-to-u8.c: Likewise.
39241         * lib/unistr/u16-uctomb-aux.c: Likewise.
39242         * lib/unistr/u16-uctomb.c: Likewise.
39243         * lib/unistr/u32-check.c: Likewise.
39244         * lib/unistr/u32-chr.c: Likewise.
39245         * lib/unistr/u32-cmp.c: Likewise.
39246         * lib/unistr/u32-cpy-alloc.c: Likewise.
39247         * lib/unistr/u32-cpy.c: Likewise.
39248         * lib/unistr/u32-endswith.c: Likewise.
39249         * lib/unistr/u32-mblen.c: Likewise.
39250         * lib/unistr/u32-mbsnlen.c: Likewise.
39251         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
39252         * lib/unistr/u32-mbtouc.c: Likewise.
39253         * lib/unistr/u32-mbtoucr.c: Likewise.
39254         * lib/unistr/u32-move.c: Likewise.
39255         * lib/unistr/u32-next.c: Likewise.
39256         * lib/unistr/u32-prev.c: Likewise.
39257         * lib/unistr/u32-set.c: Likewise.
39258         * lib/unistr/u32-startswith.c: Likewise.
39259         * lib/unistr/u32-stpcpy.c: Likewise.
39260         * lib/unistr/u32-stpncpy.c: Likewise.
39261         * lib/unistr/u32-strcat.c: Likewise.
39262         * lib/unistr/u32-strchr.c: Likewise.
39263         * lib/unistr/u32-strcmp.c: Likewise.
39264         * lib/unistr/u32-strcpy.c: Likewise.
39265         * lib/unistr/u32-strcspn.c: Likewise.
39266         * lib/unistr/u32-strdup.c: Likewise.
39267         * lib/unistr/u32-strlen.c: Likewise.
39268         * lib/unistr/u32-strmblen.c: Likewise.
39269         * lib/unistr/u32-strmbtouc.c: Likewise.
39270         * lib/unistr/u32-strncat.c: Likewise.
39271         * lib/unistr/u32-strncmp.c: Likewise.
39272         * lib/unistr/u32-strncpy.c: Likewise.
39273         * lib/unistr/u32-strnlen.c: Likewise.
39274         * lib/unistr/u32-strpbrk.c: Likewise.
39275         * lib/unistr/u32-strrchr.c: Likewise.
39276         * lib/unistr/u32-strspn.c: Likewise.
39277         * lib/unistr/u32-strstr.c: Likewise.
39278         * lib/unistr/u32-strtok.c: Likewise.
39279         * lib/unistr/u32-to-u16.c: Likewise.
39280         * lib/unistr/u32-to-u8.c: Likewise.
39281         * lib/unistr/u32-uctomb.c: Likewise.
39282         * lib/unistr/u8-check.c: Likewise.
39283         * lib/unistr/u8-chr.c: Likewise.
39284         * lib/unistr/u8-cmp.c: Likewise.
39285         * lib/unistr/u8-cpy-alloc.c: Likewise.
39286         * lib/unistr/u8-cpy.c: Likewise.
39287         * lib/unistr/u8-endswith.c: Likewise.
39288         * lib/unistr/u8-mblen.c: Likewise.
39289         * lib/unistr/u8-mbsnlen.c: Likewise.
39290         * lib/unistr/u8-mbtouc-aux.c: Likewise.
39291         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
39292         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
39293         * lib/unistr/u8-mbtouc.c: Likewise.
39294         * lib/unistr/u8-mbtoucr.c: Likewise.
39295         * lib/unistr/u8-move.c: Likewise.
39296         * lib/unistr/u8-next.c: Likewise.
39297         * lib/unistr/u8-prev.c: Likewise.
39298         * lib/unistr/u8-set.c: Likewise.
39299         * lib/unistr/u8-startswith.c: Likewise.
39300         * lib/unistr/u8-stpcpy.c: Likewise.
39301         * lib/unistr/u8-stpncpy.c: Likewise.
39302         * lib/unistr/u8-strcat.c: Likewise.
39303         * lib/unistr/u8-strchr.c: Likewise.
39304         * lib/unistr/u8-strcmp.c: Likewise.
39305         * lib/unistr/u8-strcpy.c: Likewise.
39306         * lib/unistr/u8-strcspn.c: Likewise.
39307         * lib/unistr/u8-strdup.c: Likewise.
39308         * lib/unistr/u8-strlen.c: Likewise.
39309         * lib/unistr/u8-strmblen.c: Likewise.
39310         * lib/unistr/u8-strmbtouc.c: Likewise.
39311         * lib/unistr/u8-strncat.c: Likewise.
39312         * lib/unistr/u8-strncmp.c: Likewise.
39313         * lib/unistr/u8-strncpy.c: Likewise.
39314         * lib/unistr/u8-strnlen.c: Likewise.
39315         * lib/unistr/u8-strpbrk.c: Likewise.
39316         * lib/unistr/u8-strrchr.c: Likewise.
39317         * lib/unistr/u8-strspn.c: Likewise.
39318         * lib/unistr/u8-strstr.c: Likewise.
39319         * lib/unistr/u8-strtok.c: Likewise.
39320         * lib/unistr/u8-to-u16.c: Likewise.
39321         * lib/unistr/u8-to-u32.c: Likewise.
39322         * lib/unistr/u8-uctomb-aux.c: Likewise.
39323         * lib/unistr/u8-uctomb.c: Likewise.
39324         * lib/unitypes.h: Likewise.
39325         * lib/uniwidth.h: Likewise.
39326         * lib/uniwidth/cjk.h: Likewise.
39327         * lib/uniwidth/u16-strwidth.c: Likewise.
39328         * lib/uniwidth/u16-width.c: Likewise.
39329         * lib/uniwidth/u32-strwidth.c: Likewise.
39330         * lib/uniwidth/u32-width.c: Likewise.
39331         * lib/uniwidth/u8-strwidth.c: Likewise.
39332         * lib/uniwidth/u8-width.c: Likewise.
39333         * lib/uniwidth/width.c: Likewise.
39334
39335 2007-10-07  Bruno Haible  <bruno@clisp.org>
39336
39337         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
39338         The file is still under LGPL (see modules/inttypes).
39339
39340 2007-10-06  Bruno Haible  <bruno@clisp.org>
39341
39342         * modules/trunc (Dependencies): Add 'extensions'.
39343         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
39344         Reported by Ben Pfaff <blp@gnu.org>.
39345
39346 2007-10-06  Bruno Haible  <bruno@clisp.org>
39347
39348         * modules/freopen-tests: New file.
39349         * tests/test-freopen.c: New file.
39350
39351         * modules/fopen-tests: New file.
39352         * tests/test-fopen.c: New file.
39353
39354         * modules/fopen: New file.
39355         * lib/fopen.c: New file.
39356         * m4/fopen.m4: New file.
39357         * modules/freopen: New file.
39358         * lib/freopen.c: New file.
39359         * m4/freopen.m4: New file.
39360         * lib/stdio.in.h (fopen, freopen): New declarations.
39361         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
39362         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
39363         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
39364         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
39365         * doc/functions/fopen.texi: Mention the 'fopen' module.
39366         * doc/functions/freopen.texi: Mention the 'freopen' module.
39367
39368 2007-10-06  Bruno Haible  <bruno@clisp.org>
39369
39370         * modules/open-tests: New file.
39371         * tests/test-open.c: New file.
39372
39373         * modules/open: New file.
39374         * lib/open.c: New file.
39375         * m4/open.m4: New file.
39376         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
39377         lib/open.c does.
39378         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
39379         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
39380         macros.
39381         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
39382         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
39383         REPLACE_OPEN.
39384         * doc/functions/open.texi: Mention the 'open' module.
39385
39386 2007-10-04  Bruno Haible  <bruno@clisp.org>
39387
39388         * modules/ceill-tests: New file.
39389         * tests/test-ceill.c: New file.
39390
39391         * modules/ceill: New file.
39392         * lib/ceill.c: Replace entire file.
39393         * m4/ceill.m4: New file.
39394         * lib/math.in.h (ceill): Replace declaration.
39395         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
39396         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
39397         * doc/functions/ceill.texi: Mention the 'ceill' module.
39398         * modules/mathl (Files): Remove lib/ceill.c.
39399         (Depends-on): Add ceill.
39400
39401 2007-10-04  Bruno Haible  <bruno@clisp.org>
39402
39403         * modules/ceilf-tests: New file.
39404         * tests/test-ceilf.c: New file.
39405
39406         * modules/ceilf: New file.
39407         * lib/ceil.c: New file.
39408         * lib/ceilf.c: New file.
39409         * m4/ceilf.m4: New file.
39410         * lib/math.in.h (ceilf): New declaration.
39411         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
39412         HAVE_DECL_CEILF.
39413         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
39414         HAVE_DECL_CEILF.
39415         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
39416
39417 2007-10-04  Bruno Haible  <bruno@clisp.org>
39418
39419         * modules/floorl-tests: New file.
39420         * tests/test-floorl.c: New file.
39421
39422         * modules/floorl: New file.
39423         * lib/floorl.c: Replace entire file.
39424         * m4/floorl.m4: New file.
39425         * lib/math.in.h (floorl): Replace declaration.
39426         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
39427         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
39428         * doc/functions/floorl.texi: Mention the 'floorl' module.
39429         * modules/mathl (Files): Remove lib/floorl.c.
39430         (Depends-on): Add floorl.
39431
39432 2007-10-04  Bruno Haible  <bruno@clisp.org>
39433
39434         * modules/floorf-tests: New file.
39435         * tests/test-floorf.c: New file.
39436
39437         * modules/floorf: New file.
39438         * lib/floor.c: New file.
39439         * lib/floorf.c: New file.
39440         * m4/floorf.m4: New file.
39441         * lib/math.in.h (floorf): New declaration.
39442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
39443         HAVE_DECL_FLOORF.
39444         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
39445         HAVE_DECL_FLOORF.
39446         * doc/functions/floorf.texi: Mention the 'floorf' module.
39447
39448 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
39449             Bruno Haible  <bruno@clisp.org>
39450
39451         Advertise for the Git server instead of the CVS server.
39452         * doc/gnulib-intro.texi (Steady Development): Mention the Git
39453         repository instead of the CVS one.
39454         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
39455         about all VCS systems generically.
39456         * doc/gnulib.texi (Introduction): Capitalize `Git'.
39457
39458 2007-10-04  Bruno Haible  <bruno@clisp.org>
39459
39460         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
39461         means.
39462         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
39463
39464 2007-10-04  Bruno Haible  <bruno@clisp.org>
39465
39466         * modules/truncl-tests: New file.
39467         * tests/test-truncl.c: New file.
39468
39469         * modules/truncl: New file.
39470         * lib/truncl.c: New file.
39471         * m4/truncl.m4: New file.
39472         * lib/math.in.h (truncl): New declaration.
39473         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
39474         HAVE_DECL_TRUNCL.
39475         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
39476         HAVE_DECL_TRUNCL.
39477         * doc/functions/truncl.texi: Mention the 'truncl' module.
39478
39479 2007-10-04  Bruno Haible  <bruno@clisp.org>
39480
39481         * modules/truncf-tests: New file.
39482         * tests/test-truncf.c: New file.
39483
39484         * modules/truncf: New file.
39485         * lib/trunc.c: Make paramerizable through USE_* macros.
39486         * lib/truncf.c: New file.
39487         * m4/truncf.m4: New file.
39488         * lib/math.in.h (truncf): New declaration.
39489         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
39490         HAVE_DECL_TRUNCF.
39491         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
39492         HAVE_DECL_TRUNCF.
39493         * doc/functions/truncf.texi: Mention the 'truncf' module.
39494
39495 2007-10-03  Bruno Haible  <bruno@clisp.org>
39496
39497         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
39498         augmentation also for tests modules.
39499         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
39500         * modules/atexit-tests (Makefile.am): Likewise.
39501         * modules/binary-io-tests (Makefile.am): Likewise.
39502         * modules/c-strcase-tests (Makefile.am): Likewise.
39503         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
39504         * modules/canonicalize-tests (Makefile.am): Likewise.
39505         * modules/closein-tests (Makefile.am): Likewise.
39506         * modules/fprintf-posix-tests (Makefile.am): Likewise.
39507         * modules/freadahead-tests (Makefile.am): Likewise.
39508         * modules/fseek-tests (Makefile.am): Likewise.
39509         * modules/fseeko-tests (Makefile.am): Likewise.
39510         * modules/ftell-tests (Makefile.am): Likewise.
39511         * modules/ftello-tests (Makefile.am): Likewise.
39512         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
39513         * modules/isnanl-tests (Makefile.am): Likewise.
39514         * modules/lseek-tests (Makefile.am): Likewise.
39515         * modules/mbscasecmp-tests (Makefile.am): Likewise.
39516         * modules/mbscasestr-tests (Makefile.am): Likewise.
39517         * modules/mbschr-tests (Makefile.am): Likewise.
39518         * modules/mbscspn-tests (Makefile.am): Likewise.
39519         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
39520         * modules/mbspbrk-tests (Makefile.am): Likewise.
39521         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
39522         * modules/mbsrchr-tests (Makefile.am): Likewise.
39523         * modules/mbsspn-tests (Makefile.am): Likewise.
39524         * modules/mbsstr-tests (Makefile.am): Likewise.
39525         * modules/printf-posix-tests (Makefile.am): Likewise.
39526         * modules/snprintf-posix-tests (Makefile.am): Likewise.
39527         * modules/sprintf-posix-tests (Makefile.am): Likewise.
39528         * modules/tsearch-tests (Makefile.am): Likewise.
39529         * modules/uniname/uniname-tests (Makefile.am): Likewise.
39530         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
39531         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
39532         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
39533         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
39534         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
39535         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
39536         * modules/vprintf-posix-tests (Makefile.am): Likewise.
39537         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
39538         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
39539         * modules/xstrtoimax-tests (Makefile.am): Likewise.
39540         * modules/xstrtol-tests (Makefile.am): Likewise.
39541         * modules/xstrtoumax-tests (Makefile.am): Likewise.
39542         * modules/yesno-tests (Makefile.am): Likewise.
39543
39544 2007-10-03  Bruno Haible  <bruno@clisp.org>
39545
39546         * modules/trunc-tests: New file.
39547         * tests/test-trunc.c: New file.
39548
39549         * modules/trunc: New file.
39550         * lib/trunc.c: New file.
39551         * m4/trunc.m4: New file.
39552         * lib/math.in.h (trunc): New declaration.
39553         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
39554         HAVE_DECL_TRUNC.
39555         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
39556         HAVE_DECL_TRUNC.
39557         * doc/functions/trunc.texi: Mention the 'trunc' module.
39558
39559 2007-10-03  Bruno Haible  <bruno@clisp.org>
39560
39561         * tests/test-fpending.c: New file, mostly copied
39562         from coreutils/lib/t-fpending.c.
39563         * modules/fpending-tests: New file.
39564
39565 2007-10-03  Bruno Haible  <bruno@clisp.org>
39566
39567         Port the stdio extensions to QNX (untested).
39568         * lib/fseterr.c (fseterr): Add support for QNX.
39569         * lib/fbufmode.c (fbufmode): Likewise.
39570         * lib/freadable.c (freadable): Likewise.
39571         * lib/fwritable.c (fwritable): Likewise.
39572         * lib/freading.c (freading): Likewise.
39573         * lib/fwriting.c (fwriting): Likewise.
39574         * lib/freadahead.c (freadahed): Likewise.
39575         * lib/fpurge.c (fpurge): Likewise.
39576         * lib/fseeko.c (rpl_fseeko): Likewise.
39577
39578 2007-10-03  Bruno Haible  <bruno@clisp.org>
39579             Jim Meyering  <jim@meyering.net>
39580             Eric Blake  <ebb9@byu.net>
39581
39582         * doc/relocatable.texi: Use @command instead of @program.
39583
39584 2007-10-02  Jim Meyering  <jim@meyering.net>
39585
39586         Perform one more "_.h" -> ".in.h" substitution.
39587         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
39588         instead of unistd_.h here, too.
39589
39590 2007-10-01  Bruno Haible  <bruno@clisp.org>
39591
39592         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
39593         Needed for the alloca-opt module.
39594
39595 2007-09-30  Bruno Haible  <bruno@clisp.org>
39596
39597         * lib/alloca.in.h: Renamed from lib/alloca_.h.
39598         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
39599         alloca_.h.
39600         * lib/argz.in.h: Renamed from lib/argz_.h.
39601         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
39602         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
39603         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
39604         byteswap_.h.
39605         * lib/dirent.in.h: Renamed from lib/dirent_.h.
39606         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
39607         dirent_.h.
39608         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
39609         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
39610         fcntl_.h.
39611         * lib/float.in.h: Renamed from lib/float_.h.
39612         * modules/float (Files, Makefile.am): Use float.in.h instead of
39613         float_.h.
39614         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
39615         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
39616         fnmatch_.h.
39617         * lib/getopt.in.h: Renamed from lib/getopt_.h.
39618         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
39619         getopt_.h.
39620         * lib/glob.in.h: Renamed from lib/glob_.h.
39621         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
39622         * lib/iconv.in.h: Renamed from lib/iconv_.h.
39623         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
39624         iconv_.h.
39625         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
39626         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
39627         inttypes_.h.
39628         * lib/locale.in.h: Renamed from lib/locale_.h.
39629         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
39630         locale_.h.
39631         * lib/math.in.h: Renamed from lib/math_.h.
39632         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
39633         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
39634         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
39635         of netinet_in_.h. Add dependency.
39636         * lib/poll.in.h: Renamed from lib/poll_.h.
39637         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
39638         * lib/search.in.h: Renamed from lib/search_.h.
39639         * modules/search (Files, Makefile.am): Use search.in.h instead of
39640         search_.h.
39641         * lib/signal.in.h: Renamed from lib/signal_.h.
39642         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
39643         _signal.h.
39644         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
39645         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
39646         stdbool_.h.
39647         * lib/stdint.in.h: Renamed from lib/stdint_.h.
39648         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
39649         stdint_.h.
39650         * lib/stdio.in.h: Renamed from lib/stdio_.h.
39651         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
39652         stdio_.h.
39653         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
39654         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
39655         stdlib_.h.
39656         * lib/string.in.h: Renamed from lib/string_.h.
39657         * modules/string (Files, Makefile.am): Use string.in.h instead of
39658         string_.h.
39659         * doc/gnulib-tool.texi (Initial import): Update.
39660         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
39661         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
39662         of sys_select_.h. Add dependency.
39663         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
39664         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
39665         of sys_socket_.h.
39666         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
39667         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
39668         sys_stat_.h.
39669         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
39670         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
39671         sys_time_.h.
39672         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
39673         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
39674         sysexits_.h.
39675         * lib/time.in.h: Renamed from lib/time_.h.
39676         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
39677         * lib/unistd.in.h: Renamed from lib/unistd_.h.
39678         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
39679         unistd_.h.
39680         * lib/wchar.in.h: Renamed from lib/wchar_.h.
39681         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
39682         wchar_.h.
39683         * lib/wctype.in.h: Renamed from lib/wctype_.h.
39684         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
39685         wctype_.h.
39686         * build-aux/bootstrap (slurp): Update.
39687         * lib/.cppi-disable: Update.
39688
39689 2007-09-30  Bruno Haible  <bruno@clisp.org>
39690
39691         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
39692         Needed on BeOS.
39693
39694 2007-09-30  Bruno Haible  <bruno@clisp.org>
39695
39696         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
39697
39698 2007-09-29  Bruno Haible  <bruno@clisp.org>
39699
39700         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
39701
39702 2007-09-29  Bruno Haible  <bruno@clisp.org>
39703
39704         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
39705         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
39706         * build-aux/install-reloc: Compile also areadlink.c.
39707         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
39708
39709 2007-09-29  Bruno Haible  <bruno@clisp.org>
39710
39711         * gnulib-tool (func_emit_initmacro_done): Indentation.
39712
39713 2007-09-29  Bruno Haible  <bruno@clisp.org>
39714
39715         * README: Add CVS checkout update instructions.
39716         Info from Bob Proulx <bob@proulx.com>.
39717
39718 2007-09-28  Eric Blake  <ebb9@byu.net>
39719
39720         Provide move-if-change.
39721         * build-aux/move-if-change: New file, based on best practice
39722         rather than any canonical upstream location.
39723
39724 2007-09-28  Jim Meyering  <jim@meyering.net>
39725
39726         Fix canonicalize loop-detection corner case.
39727         Do not attempt to stat the symlink values stored via seen_triple.
39728         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
39729         on linux-2.6.18, (but not 2.6.22).
39730         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
39731         triple_compare.  The former compares dev,ino,filename, while the latter
39732         would actually stat dirname(filename) when dev and ino were equal.
39733         * lib/hash-triple.c: Install <string.h>.
39734         (STREQ): Define.
39735         (triple_compare_ino_str): New function.
39736         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
39737
39738 2007-09-28  Eric Blake  <ebb9@byu.net>
39739
39740         Enforce that AC_REPLACE_FUNCS files exist.
39741         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
39742         override check for typos.
39743
39744         Fix test-closein on Solaris 10.
39745         * tests/test-closein.c (main): Don't assume stdin can be inherited
39746         closed on all systems.
39747         * tests/test-closein.sh: Likewise.
39748         Reported by Piotr Tarnowski.
39749
39750 2007-09-28  Jim Meyering  <jim@meyering.net>
39751
39752         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
39753
39754 2007-09-27  Jim Meyering  <jim@meyering.net>
39755
39756         canonicalize: Avoid a false-positive cycle failure.
39757         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
39758         Sort.  Remove cycle-check.
39759         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
39760         not cycle-check.h.
39761         (seen_triple): New function.
39762         (canonicalize_filename_mode): Use it instead of cycle-check.
39763         * tests/test-canonicalize.c: Add a test for this bug.
39764         * tests/test-canonicalize.sh: Set up and run the test.
39765
39766         New module, file-set, from coreutils.
39767         * modules/file-set: Define it.
39768         * lib/file-set.c, lib/file-set.h: Implement.
39769
39770         New module, hash-triple, from coreutils.
39771         * modules/hash-triple: Define it.
39772         * lib/hash-triple.c, lib/hash-triple.h: Implement.
39773
39774 2007-09-25  Eric Blake  <ebb9@byu.net>
39775
39776         Fix strerror on Interix.
39777         * lib/string_.h (strerror): Declare replacement.
39778         * doc/functions/strerror.texi (strerror): Document the Interix
39779         shortcoming.
39780         * modules/string (Makefile.am): Support new hooks.
39781         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
39782         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
39783         gl_FUNC_STRERROR_SEPARATE.
39784         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
39785         * lib/strerror.c (rpl_strerror): Provide replacement.
39786         * modules/strerror (Depends-on): Add string.
39787         (configure.ac): Detect use of module.
39788         * tests/test-strerror.c: New file.
39789         * modules/strerror-tests: New test module.
39790         * modules/argp (Depends-on): Add strerror.
39791         * modules/error (Depends-on): Likewise.
39792         Reported by Martin Koeppe.
39793
39794 2007-09-24  Bruno Haible  <bruno@clisp.org>
39795
39796         * README: Update git instructions.
39797
39798 2007-09-24  Eric Blake  <ebb9@byu.net>
39799
39800         Revert fpending breakage from 2007-09-08.
39801         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
39802         __fpending.c.
39803
39804 2007-09-24  Jim Meyering  <jim@meyering.net>
39805
39806         filenamecat.c: Add a test.
39807         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
39808         showing how the function works when DIR is the empty string.
39809
39810 2007-09-21  Simon Josefsson  <simon@josefsson.org>
39811
39812         * tests/test-canonicalize.sh: Turn on executable bit.
39813
39814 2007-09-19  Eric Blake  <ebb9@byu.net>
39815
39816         * README: Update CVS instructions.
39817
39818 2007-09-18  Bruno Haible  <bruno@clisp.org>
39819
39820         * modules/areadlink: New file.
39821         * lib/areadlink.h (areadlink): New declaration.
39822         * lib/areadlink.c: New file, based on lib/xreadlink.c.
39823
39824 2007-09-17  Jim Meyering  <jim@meyering.net>
39825
39826         * lib/savewd.c (ESTALE) [!defined]: Define.
39827         Reported to be required on Interix by Martin Koeppe.
39828
39829 2007-09-17  Bruno Haible  <bruno@clisp.org>
39830
39831         * gnulib-tool (func_version): Use $version.
39832
39833 2007-09-16  Bruno Haible  <bruno@clisp.org>
39834
39835         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
39836         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
39837         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
39838         Reported by Greg Schafer <gschafer@zip.com.au>.
39839
39840 2007-09-15  Bruno Haible  <bruno@clisp.org>
39841
39842         * gnulib-tool (sed): Try a little harder to make bash understand the
39843         alias.
39844         Reported by Bruce Korb <bruce.korb@gmail.com>.
39845
39846 2007-09-13  Eric Blake  <ebb9@byu.net>
39847
39848         * ChangeLog: Remove conflict markers.
39849
39850 2007-09-13  Simon Josefsson  <simon@josefsson.org>
39851
39852         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
39853         Reported by Bruno Haible <bruno@clisp.org>.
39854
39855 2007-09-12  Bruno Haible  <bruno@clisp.org>
39856
39857         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
39858         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
39859         is not defined.
39860
39861 2007-09-12  Eric Blake  <ebb9@byu.net>
39862
39863         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
39864         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
39865         Autoconf definition.
39866         * modules/euidaccess (Depends-on): Add extensions, for
39867         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
39868         * modules/fnmatch (Depends-on): Likewise.
39869         * modules/getaddrinfo (Depends-on): Likewise.
39870         * modules/getdelim (Depends-on): Likewise.
39871         * modules/getline (Depends-on): Likewise.
39872         * modules/getsubopt (Depends-on): Likewise.
39873         * modules/gettext (Depends-on): Likewise.
39874         * modules/group-member (Depends-on): Likewise.
39875         * modules/mbchar (Depends-on): Likewise.
39876         * modules/memmem (Depends-on): Likewise.
39877         * modules/mempcpy (Depends-on): Likewise.
39878         * modules/memrchr (Depends-on): Likewise.
39879         * modules/pagealign_alloc (Depends-on): Likewise.
39880         * modules/readutmp (Depends-on): Likewise.
39881         * modules/stpcpy (Depends-on): Likewise.
39882         * modules/stpncpy (Depends-on): Likewise.
39883         * modules/strchrnul (Depends-on): Likewise.
39884         * modules/strndup (Depends-on): Likewise.
39885         * modules/strsep (Depends-on): Likewise.
39886         * modules/strverscmp (Depends-on): Likewise.
39887         * modules/vasprintf (Depends-on): Likewise.
39888         * modules/wcwidth (Depends-on): Likewise.
39889         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
39890         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
39891         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
39892         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
39893         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
39894         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
39895         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
39896         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
39897         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
39898         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
39899         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
39900         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
39901         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
39902         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
39903         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
39904         * m4/readutmp.m4 (gl_READUTMP): Likewise.
39905         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39906         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
39907         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
39908         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
39909         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
39910         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
39911         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
39912         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
39913         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
39914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
39915         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
39916         so that lock.m4 can be used in gettext without extensions module.
39917
39918 2007-09-11  Bruno Haible  <bruno@clisp.org>
39919
39920         * m4/isc-posix.m4: Remove file.
39921         Suggested by Eric Blake.
39922
39923 2007-09-11  Eric Blake  <ebb9@byu.net>
39924
39925         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
39926
39927 2007-09-10  Bruno Haible  <bruno@clisp.org>
39928
39929         * posix-modules: Fix typo in error message.
39930         Reported by Matt <mkraai@beckman.com>.
39931
39932 2007-09-09  Bruno Haible  <bruno@clisp.org>
39933
39934         * doc/functions/getdelim.texi: Update list of platforms lacking the
39935         function.
39936         * doc/functions/getline.texi: Likewise.
39937
39938 2007-09-09  Jim Meyering  <jim@meyering.net>
39939
39940         * lib/hash.c (hash_initialize): Detect calloc failure.
39941         Reported by Bruno Haible.
39942
39943 2007-09-09  Bruno Haible  <bruno@clisp.org>
39944
39945         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
39946         malloc or realloc fails.
39947
39948 2007-09-09  Bruno Haible  <bruno@clisp.org>
39949
39950         * modules/getcwd (Depends-on): Add malloc-posix.
39951         * modules/glob (Depends-on): Likewise.
39952         * modules/putenv (Depends-on): Likewise.
39953         * modules/strdup (Depends-on): Likewise.
39954         * modules/getdelim (Depends-on): Add realloc-posix.
39955         * modules/read-file (Depends-on): Likewise.
39956
39957 2007-09-09  Bruno Haible  <bruno@clisp.org>
39958
39959         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
39960         (gl_FUNC_MALLOC_POSIX): Require it.
39961         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
39962         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
39963         * modules/realloc (Files): Add m4/malloc.m4.
39964         * modules/calloc (Files): Likewise.
39965
39966 2007-09-09  Bruno Haible  <bruno@clisp.org>
39967
39968         * modules/malloc-posix: New file.
39969         * modules/malloc (Depends-on): Add malloc-posix.
39970         * lib/malloc.c: Include errno.h.
39971         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
39972         and a POSIX-compatible malloc into a single function. Set ENOMEM
39973         when returning NULL.
39974         * m4/malloc.m4: New file.
39975         * doc/functions/malloc.texi: Mention the malloc-posix module.
39976         * lib/stdlib_.h (malloc): New declaration.
39977         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39978         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
39979         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
39980         and HAVE_MALLOC_POSIX.
39981
39982 2007-09-09  Bruno Haible  <bruno@clisp.org>
39983
39984         * modules/realloc-posix: New file.
39985         * modules/realloc (Depends-on): Add realloc-posix.
39986         * lib/realloc.c: Include errno.h.
39987         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
39988         and a POSIX-compatible realloc into a single function. Set ENOMEM
39989         when returning NULL.
39990         * m4/realloc.m4: New file.
39991         * doc/functions/realloc.texi: Mention the realloc-posix module.
39992         * lib/stdlib_.h (realloc): New declaration.
39993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
39994         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
39995         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
39996         and HAVE_REALLOC_POSIX.
39997
39998 2007-09-09  Bruno Haible  <bruno@clisp.org>
39999
40000         * modules/calloc-posix: New file.
40001         * modules/calloc (Depends-on): Add calloc-posix.
40002         * lib/calloc.c: Include errno.h.
40003         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
40004         and a POSIX-compatible calloc into a single function. Set ENOMEM
40005         when returning NULL.
40006         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
40007         * doc/functions/calloc.texi: Mention the calloc-posix module.
40008         * lib/stdlib_.h (calloc): New declaration.
40009         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
40010         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
40011         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
40012         and HAVE_CALLOC_POSIX.
40013
40014 2007-09-09  Bruno Haible  <bruno@clisp.org>
40015
40016         Allow for modules to show an arbitrary notice.
40017         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
40018         * gnulib-tool: New option --extract-notice.
40019         (func_usage): Document it.
40020         (sed_extract_prog): Update.
40021         (func_get_notice): New function.
40022         (func_modules_notice): New function.
40023         (func_import, func_create_testdir): Invoke it.
40024         Suggested by Jim Meyering.
40025
40026 2007-09-09  Bruno Haible  <bruno@clisp.org>
40027
40028         * gnulib-tool: New options --verbose, --quiet.
40029         (func_usage): Document them.
40030         (verbose): New variable.
40031         (func_execute_command): New function.
40032         (func_import): Don't show the module list and the file list if
40033         $verbose < 0.
40034         (func_create_testdir): Likewise. Use func_execute_command.
40035         (func_create_megatestdir): Use func_execute_command.
40036
40037 2007-09-08  Bruno Haible  <bruno@clisp.org>
40038
40039         * gnulib-tool (func_import): Prefer rsync over wget when available,
40040         for fetching the PO files.
40041
40042 2007-09-08  Bruno Haible  <bruno@clisp.org>
40043
40044         * posix-modules: New file. Portions copied from gnulib-tool.
40045         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
40046
40047 2007-09-08  Jim Meyering  <jim@meyering.net>
40048
40049         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
40050         * lib/fpending.h: Rename from __fpending.h.
40051         * lib/fpending.c: Rename from __fpending.c.
40052         Include "fpending.h", not "__fpending.h".
40053         * lib/__fpending.h, lib/__fpending.c: Remove files.
40054         * modules/fpending (Files): Reflect new file names.
40055         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
40056
40057 2007-09-08  Bruno Haible  <bruno@clisp.org>
40058
40059         * m4/inttypes-h.m4: Remove stub file.
40060
40061 2007-09-07  Simon Josefsson  <simon@josefsson.org>
40062
40063         * doc/headers/stdint.texi: Discuss #include_next issue.
40064
40065 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
40066
40067         * build-aux/bootstrap: Remove obsolete comment about wget --help.
40068
40069 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40070
40071         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
40072         in variable name.
40073
40074 2007-09-03  Jim Meyering  <jim@meyering.net>
40075
40076         New module: git-version-gen.
40077         * modules/git-version-gen: New file.
40078
40079         Import changes from coreutils for bootstrap script.
40080
40081         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
40082
40083         bootstrap: uses rsync to download the .po files
40084         * build-aux/bootstrap (po_download_command_format): New global.
40085         (download_po_files): Use rsync.
40086         (update_po_files): Don't remove .po files after download,
40087         so future rsync runs can take advantage of the copies.
40088
40089         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
40090
40091         Solve the unnecessary-.po-file-regeneration problem once and for all.
40092         * build-aux/bootstrap (download_po_files): New function, renamed from
40093         get_translations.  Now, downloads, but doesn't update LINGUAS.
40094         (update_po_files): New function.
40095
40096         bootstrap: Ignore more.
40097         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
40098         uniwidth to e.g., lib/.gitignore.
40099         (slurp): Handle the sys_stat_.h -> sys mapping, too.
40100
40101         * build-aux/bootstrap: New setting: vc_ignore.
40102         (insert_sorted_if_absent): Create $file if absent.
40103         Adapt to new, possibly empty, list: $vc_ignore.
40104
40105         bootstrap: generate more ignorable names
40106         * build-aux/bootstrap (slurp): When generating ignorable names,
40107         also map .sin to .sed, .gperf to .c, and .y to .c.
40108
40109 2007-09-03  Jim Meyering  <jim@meyering.net>
40110
40111         * build-aux/git-version-gen: New file, from coreutils.  For details, see
40112         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
40113
40114 2007-09-02  Bruno Haible  <bruno@clisp.org>
40115
40116         Fix mis-recognition of 'mcs' on QNX 6.
40117         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
40118         output contains the string "Mono".
40119         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
40120         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
40121
40122 2007-09-01  Bruno Haible  <bruno@clisp.org>
40123
40124         Fix collision between uniwidth/* and linebreak modules.
40125         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
40126         u32_width): Remove declarations.
40127         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
40128         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
40129         streq3, streq2, streq1, streq0): Remove functions.
40130         (STREQ): Remove macro.
40131         (is_cjk_encoding): Remove function.
40132         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
40133         (uc_width, u8_width, u16_width, u32_width): Remove functions.
40134         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
40135         * NEWS: Document the change.
40136
40137 2007-09-01  Bruno Haible  <bruno@clisp.org>
40138
40139         * lib/streq.h: Add double-inclusion guard.
40140
40141 2007-09-01  Karl Berry  <karl@gnu.org>
40142
40143         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
40144
40145 2007-08-28  Jim Meyering  <jim@meyering.net>
40146
40147         Rename mreadlink_with_size to areadlink_with_size.
40148         * NEWS: Document the change.
40149         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
40150         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
40151         * lib/mreadlink.h: Rename this to...
40152         * lib/areadlink.h: ...this.
40153         * modules/mreadlink-with-size: Rename this to...
40154         * modules/areadlink-with-size: ...this.
40155         * lib/canonicalize.c: Reflect the renaming.
40156         * modules/canonicalize: Likewise.
40157
40158 2007-08-26  Bruno Haible  <bruno@clisp.org>
40159
40160         * gnulib-tool (func_import): When deciding which files to remove,
40161         consider also dangling symbolic links.
40162         Reported by Eric Blake.
40163
40164 2007-08-26  Bruno Haible  <bruno@clisp.org>
40165
40166         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
40167
40168 2007-08-23  Simon Josefsson  <simon@josefsson.org>
40169
40170         * lib/readline.c: Don't include getline.h, the prototype is now
40171         found in stdio.h.
40172
40173 2007-08-23  Jim Meyering  <jim@meyering.net>
40174
40175         Getdelim touchup.
40176         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
40177         around the funlockfile call, since funlockfile never sets errno.
40178         Don't set errno upon failed realloc.
40179
40180 2007-08-22  Eric Blake  <ebb9@byu.net>
40181
40182         Getline touchups.
40183         * lib/getdelim.c (getdelim): Revert regression that required *n to
40184         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
40185         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
40186         getdelim, rather than whether implementation is missing.
40187         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
40188         * lib/stdio_.h (getline): Also declare if replacement is
40189         required.
40190         * doc/functions/getdelim.texi: New file.
40191         * doc/functions/getline.texi: Likewise.
40192         * doc/gnulib.texi (Function Substitutes): Add new files.
40193         Reported by Bruno Haible.
40194
40195 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
40196
40197         * users.txt: Add Guile.
40198
40199 2007-08-22  Eric Blake  <ebb9@byu.net>
40200
40201         * tests/test-getdelim.c (main): Use remove, not unlink.
40202         * tests/test-getline.c (main): Likewise.
40203
40204         Move getline and getdelim into stdio.h, per POSIX 200x.
40205         * modules/getline (Files): Remove getline.h.
40206         (Depends-on): Add stdio.
40207         (configure.ac): Add module indicator.
40208         * modules/getdelim (Files): Remove getdelim.h.
40209         (Depends-on): Add stdio.
40210         (configure.ac): Add module indicator.
40211         * modules/stdio (Makefile.am): Work with new indicators.
40212         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40213         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
40214         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40215         * lib/getdelim.h: Delete.
40216         * lib/getline.h: Delete.
40217         * lib/stdio_.h (getdelim, getline): Declare.
40218         * modules/getdelim-tests: New module.
40219         * modules/getline-tests: Likewise.
40220         * tests/test-getdelim.c: New file.
40221         * tests/test-getline.c: Likewise.
40222         * NEWS: Document the change.
40223         * lib/getline.c: Update choice of header.
40224         * lib/csharpcomp.c: Likewise.
40225         * lib/getpass.c: Likewise.
40226         * lib/javacomp.c: Likewise.
40227         * lib/javaversion.c: Likewise.
40228         * lib/yesno.c: Likewise.
40229         * lib/getdelim.c: Likewise.
40230         (getdelim): Set errno on failure, and avoid memory leak.
40231
40232 2007-08-19  Bruno Haible  <bruno@clisp.org>
40233
40234         * modules/closein (Depends-on): Add freadahead.
40235         * lib/closein.c: Include freadahead.h.
40236         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
40237         is zero.
40238
40239 2007-08-19  Bruno Haible  <bruno@clisp.org>
40240
40241         * modules/freadahead-tests: New file.
40242         * tests/test-freadahead.sh: New file.
40243         * tests/test-freadahead.c: New file.
40244
40245         * modules/freadahead: New file.
40246         * lib/freadahead.h: New file.
40247         * lib/freadahead.c: New file.
40248         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
40249         fbufmode, fpurge, freadable, fwritable.
40250
40251 2007-08-19  Eric Blake  <ebb9@byu.net>
40252
40253         Test yesno in combination with closein.
40254         * lib/yesno.c (yesno): Document use of stdin.
40255         * modules/yesno-tests (Files): New module.
40256         * tests/test-yesno.c (main): New file.
40257         * tests/test-yesno.sh: Likewise.
40258
40259 2007-08-19  Bruno Haible  <bruno@clisp.org>
40260
40261         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
40262         * lib/fseeko.c (rpl_fseeko): Likewise.
40263         * lib/fseterr.c (fseterr): Likewise.
40264
40265 2007-08-19  Bruno Haible  <bruno@clisp.org>
40266
40267         * tests/test-lseek.c (main): Disable a test for BeOS.
40268         * doc/functions/lseek.texi: Document the BeOS bug.
40269
40270 2007-08-19  Bruno Haible  <bruno@clisp.org>
40271             Eric Blake  <ebb9@byu.net>
40272
40273         * lib/lseek.c: Include <sys/stat.h>.
40274         (rpl_lseek): Add workaround code also for Unix platforms.
40275         Needed for BeOS.
40276         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
40277         * doc/functions/lseek.texi: Document BeOS definiency.
40278
40279 2007-08-18  Bruno Haible  <bruno@clisp.org>
40280
40281         * modules/fstrcmp-tests: New file.
40282         * tests/test-fstrcmp.c: New file.
40283
40284 2007-08-18  Bruno Haible  <bruno@clisp.org>
40285
40286         * modules/fstrcmp: New file, from GNU gettext with modifications.
40287         * lib/fstrcmp.h: New file, from GNU gettext.
40288         * lib/fstrcmp.c: New file, from GNU gettext.
40289         * MODULES.html.sh (String handling): Add fstrcmp.
40290
40291 2007-08-18  Bruno Haible  <bruno@clisp.org>
40292
40293         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
40294         'bool'.
40295         (diag, compareseq): Remove const from the ctxt argument.
40296         (USE_HEURISTIC): Undefine at the end.
40297
40298 2007-08-18  Jim Meyering  <jim@meyering.net>
40299
40300         New file: lib/idcache.h
40301         * NEWS: Mention the addition.
40302         * modules/idcache (Files): Add lib/idcache.h
40303         * lib/idcache.c: Include "idcache.h".
40304         Don't include <sys/types.h>.
40305         Add a FIXME comment.
40306         Move file-scoped "static" declarations to the top.
40307         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
40308
40309 2007-08-17  Bruno Haible  <bruno@clisp.org>
40310         and Paul Eggert  <eggert@cs.ucla.edu>
40311
40312         * MODULES.html.sh: Add diffseq.
40313         * modules/diffseq: New file.
40314         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
40315         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
40316
40317 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40318
40319         Import changes from coreutils for bootstrap script.
40320
40321         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
40322
40323         * build-aux/bootstrap (slurp): Work even in environments where
40324         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
40325         current code does not slurp files whose names start with ".", and
40326         this looks like it might be a troublesome area.
40327
40328         2007-07-11  Jim Meyering  <jim@meyering.net>
40329
40330         If there's a GPL vN copyright comment, require that N == 3.
40331
40332         2007-07-08  Jim Meyering  <jim@meyering.net>
40333
40334         Run the coreutils-specific code only if tests/Makefile.am.in exists.
40335         * build-aux/bootstrap (mam_template): Move definition out of loop.
40336
40337         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
40338
40339         * build-aux/bootstrap (symlink_to_dir): Rename function from
40340         symlink_to_gnulib.  Add a directory parameter.  Update all
40341         callers.
40342         (cp_mark_as_generated): Also check for -- and link to -- files in
40343         gl/.
40344
40345         2007-07-08  Jim Meyering  <jim@meyering.net>
40346
40347         Adapt to deeper hierarchy in gnulib.
40348         * build-aux/bootstrap (symlink_to_dir): If the destination
40349         directory doesn't exist, create it. This is required at least for
40350         "lib/uniwidth/cjk.h".
40351
40352         2007-05-15  Jim Meyering  <jim@meyering.net>
40353
40354         * build-aux/bootstrap: Now that generated Makefile.am files
40355         are no longer under version control, they must be created at
40356         bootstrap time.
40357
40358 2007-08-14  Ben Pfaff  <blp@gnu.org>
40359
40360         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
40361
40362 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
40363
40364         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
40365         given the changes below.
40366         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
40367         even on hosts that have padding bits beyond the supported 64.
40368
40369 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
40370
40371         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
40372         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
40373         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
40374         depends on it.
40375         (xstrtol_error): Remove.
40376         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
40377         but with a different signature.
40378         (ATTRIBUTE_NORETURN, __attribute__): New macros.
40379         * lib/xstrtol-error.c: Include exitfail.h.
40380         (xstrtol_fatal): New function, with a different signature from the
40381         old xstrtol_error, so that the caller need not worry about passing
40382         in an exit status, or about storage management of the option argument.
40383         (xstrtol_error): Now a static function.  Redo signature to
40384         implement xstrtol_fatal.  Output the correct number of hyphens in
40385         front of the option so that the caller need not worry about
40386         storage management.
40387         (N_): New macro.
40388         (_): Remove; not used now.
40389         * modules/xstrtol: Depend on getopt.
40390         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
40391         of old STRTOL_FATAL_ERROR macro.
40392         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
40393         of test program.
40394         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
40395         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
40396
40397 2007-08-08  Eric Blake  <ebb9@byu.net>
40398
40399         * lib/xstrtol-error.c: Add missing include.
40400
40401         Move xstrtol messages into gnulib domain, when --pobase is used.
40402         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
40403         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
40404         * modules/xstrtol (Files): Distribute new file.
40405         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
40406         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
40407         * tests/test-xstrtol.c: ...into new file.
40408         * tests/test-xstrtoul.c: Also test xstrtoul.
40409         * tests/test-xstrtoimax.c: Also test xstrtoimax.
40410         * tests/test-xstrtoumax.c: Also test xstrtoumax.
40411         * tests/test-xstrtol.sh: Drive the tests.
40412         * tests/test-xstrtoimax.sh: Likewise.
40413         * tests/test-xstrtoumax.sh: Likewise.
40414         * modules/xstrtol-tests: New module.
40415         * modules/xstrtoimax-tests: Likewise.
40416         * modules/xstrtoumax-tests: Likewise.
40417
40418 2007-08-08  Jim Meyering  <jim@meyering.net>
40419
40420         New function: mfile_name_concat.
40421         * lib/filenamecat.c (mfile_name_concat): New function, just like
40422         file_name_concat, but return NULL upon failure rather than exiting
40423         with a diagnostic.
40424         * lib/filenamecat.h: Declare it.
40425
40426 2007-08-07  Bruno Haible  <bruno@clisp.org>
40427
40428         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
40429         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
40430         warning from gcc.
40431         Reported by Eric Blake.
40432
40433 2007-08-07  Simon Josefsson  <simon@josefsson.org>
40434
40435         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
40436         * modules/crypto/arcfour (License): Likewise.
40437         * modules/crypto/des-tests (License): Likewise.
40438         * modules/crypto/gc-arctwo-tests (License): Likewise.
40439         * modules/crypto/gc-des-tests (License): Likewise.
40440         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
40441         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
40442         * modules/crypto/gc-md2-tests (License): Likewise.
40443         * modules/crypto/gc-md4-tests (License): Likewise.
40444         * modules/crypto/gc-md5-tests (License): Likewise.
40445         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
40446         * modules/crypto/gc-rijndael-tests (License): Likewise.
40447         * modules/crypto/gc-sha1-tests (License): Likewise.
40448         * modules/crypto/gc-tests (License): Likewise.
40449         * modules/crypto/hmac-md5 (License): Likewise.
40450         * modules/crypto/hmac-sha1 (License): Likewise.
40451         * modules/crypto/md2-tests (License): Likewise.
40452         * modules/crypto/md4-tests (License): Likewise.
40453         * modules/crypto/md5 (License): Likewise.
40454         * modules/crypto/rijndael (License): Likewise.
40455         * modules/crypto/sha1 (License): Likewise.
40456         * modules/memxor (License): Likewise.
40457
40458 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
40459         and Bruno Haible  <bruno@clisp.org>
40460
40461         * NEWS: Describe interface changes to human, xstrtol.
40462         * lib/human.h: Include <xstrtol.h>.
40463         (human_options): Return enum strtol_error, not int.  Remove
40464         bool arg; take int * instead.
40465         * lib/human.c: Don't include "gettext.h".
40466         (_): Remove; no longer used.
40467         Don't include <xstrtol.h>, since human.h does it.
40468         (human_options): Adjust to abovementioned interface changes.
40469         Do not report error to stderr; that's now the caller's
40470         responsibility.
40471         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
40472         interface change.
40473         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
40474         Str, Argument_type_string.  All uses changed.  Put " argument"
40475         in diagnostics to make them clearer.  Change wording of suffix
40476         message for clarity.
40477         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
40478         Argument_type_string.
40479         (STRTOL_FATAL_WARN): Remove; no longer used.
40480         * modules/human (Depends-on): Remove gettext-h.
40481
40482 2007-08-06  Simon Josefsson  <simon@josefsson.org>
40483
40484         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
40485
40486 2007-07-31  Bruno Haible  <bruno@clisp.org>
40487
40488         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
40489         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
40490         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
40491
40492 2007-07-31  Bruno Haible  <bruno@clisp.org>
40493
40494         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
40495         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
40496
40497 2007-07-30  Bruno Haible  <bruno@clisp.org>
40498
40499         * modules/base64 (License): Use the synonymous term "LGPLv2+".
40500         * modules/c-ctype (License): Likewise.
40501         * modules/c-strcase (License): Likewise.
40502         * modules/check-version (License): Likewise.
40503         * modules/iconv (License): Likewise.
40504         * modules/iconv_open (License): Likewise.
40505         * modules/read-file (License): Likewise.
40506         * modules/striconv (License): Likewise.
40507         * modules/strverscmp (License): Likewise.
40508         * modules/vasprintf (License): Likewise.
40509         * modules/crypto/des (License): Likewise.
40510         * modules/crypto/gc (License): Likewise.
40511         * modules/crypto/gc-arcfour (License): Likewise.
40512         * modules/crypto/gc-arctwo (License): Likewise.
40513         * modules/crypto/gc-des (License): Likewise.
40514         * modules/crypto/gc-hmac-md5 (License): Likewise.
40515         * modules/crypto/gc-hmac-sha1 (License): Likewise.
40516         * modules/crypto/gc-md2 (License): Likewise.
40517         * modules/crypto/gc-md4 (License): Likewise.
40518         * modules/crypto/gc-md5 (License): Likewise.
40519         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
40520         * modules/crypto/gc-random (License): Likewise.
40521         * modules/crypto/gc-rijndael (License): Likewise.
40522         * modules/crypto/gc-sha1 (License): Likewise.
40523         * modules/crypto/md2 (License): Likewise.
40524         * modules/crypto/md4 (License): Likewise.
40525
40526 2007-07-30  Jim Meyering  <jim@meyering.net>
40527
40528         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
40529         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
40530         it has valid stat data.  This bug would cause du not to count the
40531         sizes of inaccessible directories.
40532         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
40533         in <http://bugzilla.redhat.com/250077>.
40534
40535 2007-07-25  Peter O'Gorman  <peter@pogma.com>
40536             Bruno Haible  <bruno@clisp.org>
40537
40538         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
40539         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
40540         #include_next, gives a diagnostic about it, but reports no error in
40541         the exit code.
40542         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40543
40544 2007-07-24  Ben Pfaff  <blp@gnu.org>
40545
40546         Improve name: "count-one-bits" is better than "popcount".
40547         * MODULES.html.sh: Update name.
40548         * lib/popcount.h: Renamed lib/count-one-bits.h.
40549         (popcount): Renamed count_one_bits.
40550         (popcountl): Renamed count_one_bits_l.
40551         (popcountll): Renamed count_one_bits_ll.
40552         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
40553         * modules/popcount: Renamed module/count-one-bits.
40554         * modules/popcount-tests: Renamed module/count-one-bits-tests.
40555         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
40556
40557 2007-07-23  Ben Pfaff  <blp@gnu.org>
40558
40559         * lib/popcount.h (popcount32): Reduce size of constants, to allow
40560         better code generation, and add U to large constants to avoid
40561         warnings, in non-GCC case.
40562         Suggested by Bruno Haible.
40563
40564 2007-07-23  Ben Pfaff  <blp@gnu.org>
40565
40566         * lib/popcount.h: Use verify_true instead of if...abort.
40567         * modules/popcount: Depend on verify module.
40568         Suggested by Jim Meyering.
40569
40570 2007-07-23  Bruno Haible  <bruno@clisp.org>
40571
40572         * gnulib-tool (func_import): Create a .cvsignore file also when the
40573         directory is not yet in CVS but the toplevel directory is. When
40574         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
40575         Reported by Karl Berry.
40576
40577 2007-07-22  Ben Pfaff  <blp@gnu.org>
40578
40579         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
40580         case.
40581         Suggested by Eric Blake.
40582
40583 2007-07-22  Ben Pfaff  <blp@gnu.org>
40584
40585         New module: popcount.
40586         * MODULES.html.sh: Add popcount.
40587         * modules/popcount: New file.
40588         * modules/popcount-tests: New file.
40589         * tests/test-popcount.c: New file.
40590         * lib/popcount.h: New file.
40591         * m4/popcount.m4: New file.
40592
40593 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
40594
40595         * build-aux/announce-gen: Update to GPLv3.
40596
40597         * build-aux/config.guess: Update from config.
40598
40599 2007-07-21  Bruno Haible  <bruno@clisp.org>
40600
40601         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
40602         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
40603
40604 2007-07-20  Jim Meyering  <jim@meyering.net>
40605
40606         * check-module: Diagnose a self-dependency.
40607
40608 2007-07-19  Bruno Haible  <bruno@clisp.org>
40609
40610         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
40611         empty.
40612         Reported by Eric Blake.
40613
40614 2007-07-18  Bruno Haible  <bruno@clisp.org>
40615
40616         * gnulib-tool: New options --po-base, --po-domain.
40617         (func_usage): Document them.
40618         (pobase, po_domain): New variables.
40619         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
40620         DEFAULT_TEXT_DOMAIN.
40621         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
40622         (func_import): Consider pobase and po_domain. Create a po/ directory.
40623         (func_create_testdir): Set pobase and po_domain to empty.
40624         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
40625         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
40626
40627 2007-07-18  Bruno Haible  <bruno@clisp.org>
40628
40629         * gnulib-tool (func_get_automake_snippet): Synthesize also an
40630         EXTRA_DIST augmentation for files in build-aux/.
40631
40632 2007-07-16  Bruno Haible  <bruno@clisp.org>
40633
40634         * modules/lseek (License): Use the synonymous term "LGPLv2+".
40635         * modules/getdelim (License): Likewise.
40636
40637 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
40638
40639         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
40640         * modules/d-type (License): Likewise.
40641         * modules/extensions (License): Likewise.
40642         * modules/fnmatch (License): Likewise.
40643         * modules/fseeko (License): Likewise.
40644         * modules/getaddrinfo (License): Likewise.
40645         * modules/getline (License): Likewise.
40646         * modules/getlogin_r (License): Likewise.
40647         * modules/getpass (License): Likewise.
40648         * modules/gettimeofday (License): Likewise.
40649         * modules/glob (License): Likewise.
40650         * modules/inet_ntop (License): Likewise.
40651         * modules/malloc (License): Likewise.
40652         * modules/malloca (License): Likewise.
40653         * modules/memmem (License): Likewise.
40654         * modules/mempcpy (License): Likewise.
40655         * modules/memset (License): Likewise.
40656         * modules/minmax (License): Likewise.
40657         * modules/mktime (License): Likewise.
40658         * modules/netinet_in (License): Likewise.
40659         * modules/pathmax (License): Likewise.
40660         * modules/poll (License): Likewise.
40661         * modules/regex (License): Likewise.
40662         * modules/snprintf (License): Likewise.
40663         * modules/stdbool (License): Likewise.
40664         * modules/stdint (License): Likewise.
40665         * modules/stdio (License): Likewise.
40666         * modules/strcase (License): Likewise.
40667         * modules/strcasestr (License): Likewise.
40668         * modules/strdup (License): Likewise.
40669         * modules/string (License): Likewise.
40670         * modules/strndup (License): Likewise.
40671         * modules/strnlen (License): Likewise.
40672         * modules/strpbrk (License): Likewise.
40673         * modules/strptime (License): Likewise.
40674         * modules/strsep (License): Likewise.
40675         * modules/sys_select (License): Likewise.
40676         * modules/sys_socket (License): Likewise.
40677         * modules/sys_stat (License): Likewise.
40678         * modules/sys_time (License): Likewise.
40679         * modules/time (License): Likewise.
40680         * modules/time_r (License): Likewise.
40681         * modules/timegm (License): Likewise.
40682         * modules/unistd (License): Likewise.
40683         * modules/vsnprintf (License): Likewise.
40684         * modules/wctype (License): Likewise.
40685
40686 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40687
40688         * modules/argz (License): LGPLv2+.
40689
40690 2007-07-15  Karl Berry  <karl@gnu.org>
40691
40692         * doc/gnulib.texi: revise node structure per new fdl.texi.
40693
40694 2007-07-14  Bruno Haible  <bruno@clisp.org>
40695
40696         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
40697         the output file.
40698         * lib/uniname/uninames.h: Regenerated.
40699
40700 2007-07-14  Karl Berry  <karl@gnu.org>
40701
40702         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
40703         omitting sectioning and index commands.
40704
40705 2007-07-13  Bruno Haible  <bruno@clisp.org>
40706
40707         New gnulib-tool option --more-symlinks.
40708         * gnulib-tool (func_usage): Document --more-symlinks.
40709         (do_copyrights): New variable.
40710         Recognize option --more-symlinks.
40711         (func_import): Don't add a copyright notice transform to
40712         sed_transform_lib_file if do_copyrights is empty.
40713
40714 2007-07-13  Bruno Haible  <bruno@clisp.org>
40715
40716         * lib/vasnprintf.c (decimal_point_char): Define also if
40717         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
40718         && !NEED_PRINTF_DIRECTIVE_A.
40719         Reported by Clemens Koller <clemens.koller@anagramm.de> via
40720         Gary V. Vaughan <gary@gnu.org>.
40721
40722 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
40723
40724         * lib/inttypes_.h: Undo previous change, since it was fixed
40725         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
40726
40727 2007-07-13  Bruno Haible  <bruno@clisp.org>
40728
40729         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
40730         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
40731
40732 2007-07-13  Jim Meyering  <jim@meyering.net>
40733
40734         df: Don't fail for Tru64's "file-on-file mount".
40735         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
40736         so we fall through and use statfs instead.  Details here:
40737         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
40738         Reported by Albert Chin.
40739
40740 2007-07-13  Bruno Haible  <bruno@clisp.org>
40741
40742         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
40743         * modules/configmake (License): Likewise.
40744         * modules/gettext (License): Likewise.
40745         * modules/gettext-h (License): Likewise.
40746         * modules/include_next (License): Likewise.
40747         * modules/link-warning (License): Likewise.
40748         * modules/localcharset (License): Likewise.
40749         * modules/localename (License): Likewise.
40750         * modules/lock (License): Likewise.
40751         * modules/relocatable-lib-lgpl (License): Likewise.
40752         * modules/size_max (License): Likewise.
40753         * modules/vasnprintf (License): Likewise.
40754         * modules/wchar (License): Likewise.
40755         * modules/xsize (License): Likewise.
40756
40757 2007-07-13  Bruno Haible  <bruno@clisp.org>
40758
40759         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
40760         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
40761
40762 2007-07-12  Bruno Haible  <bruno@clisp.org>
40763
40764         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
40765         in the modules files.
40766
40767 2007-07-11  Karl Berry  <karl@gnu.org>
40768
40769         * MODULES.html.sh (func_module): use
40770          sed -e '\|^'"${includefile}"'$|d'
40771          instead of /.../d, to avoid errors on $includefile's containing /.
40772
40773 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
40774
40775         * gnulib-tool (func_import): Avoid duplication of --avoid
40776         statements
40777         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
40778         names to `_' in variable names.
40779
40780 2007-07-10  Eric Blake  <ebb9@byu.net>
40781
40782         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
40783         * NEWS: Document this change.
40784
40785 2007-07-08  Bruno Haible  <bruno@clisp.org>
40786
40787         Update to Unicode 5.0.
40788         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
40789         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
40790         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
40791         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
40792         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
40793         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
40794         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
40795         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
40796         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
40797         U+10A3F, U+1D242..U+1D244.
40798         (nonspacing_table_ind): Update.
40799         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
40800         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
40801
40802 2007-07-08  Bruno Haible  <bruno@clisp.org>
40803
40804         Update to Unicode 5.0.
40805         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
40806         code transform. Extend the name index field of unicode_name_to_code and
40807         unicode_code_to_name from 16 to 24 bits.
40808         * lib/uniname/uniname.c (unicode_character_name,
40809         unicode_name_character): Add the range 0x12xxx to the code transform.
40810         * lib/uniname/uninames.h: Regenerated.
40811         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
40812
40813 2007-07-07  Bruno Haible  <bruno@clisp.org>
40814
40815         * modules/wcwidth-tests: New file.
40816         * tests/test-wcwidth.c: New file.
40817
40818         Work around MacOS X wcwidth() bug.
40819         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
40820         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
40821         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
40822         original wcwidth in non-UTF-8 locales.
40823         * modules/wcwidth (Depends-on): Add localcharset, streq,
40824         uniwidth/width.
40825         * doc/functions/wcwidth.texi: Update.
40826
40827 2007-07-07  Bruno Haible  <bruno@clisp.org>
40828
40829         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
40830         (wcwidth): New declaration.
40831         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
40832         macros.
40833         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
40834         here. Prepare for creating <wchar.h> unconditionally.
40835         * modules/wchar (Depends-on): Add link-warning.
40836         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
40837         REPLACE_WCWIDTH, and GL_LINK_WARNING.
40838         * lib/wcwidth.h: Remove file.
40839         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
40840         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
40841         * modules/wcwidth (Files): Remove lib/wcwidth.h.
40842         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
40843         (Include): Replace wcwidth.h with <wchar.h>.
40844         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
40845         * lib/mbchar.h: Don't include wcwidth.h.
40846         * lib/mbswidth.c: Likewise.
40847         * NEWS: Mention the change.
40848
40849 2007-07-07  Bruno Haible  <bruno@clisp.org>
40850
40851         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
40852         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
40853         definition with an external declaration.
40854         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
40855         defined as a function. Remove AC_C_INLINE requirement.
40856         * modules/wcwidth (Files): Add lib/wcwidth.c.
40857         (Makefile.am): Remove redundant statement.
40858
40859 2007-07-07  Bruno Haible  <bruno@clisp.org>
40860
40861         * MODULES.html.sh (Unicode string functions): Add the new modules.
40862
40863         * tests/uniwidth/test-u32-strwidth.c: New file.
40864         * modules/uniwidth/u32-strwidth-tests: New file.
40865
40866         * lib/uniwidth/u32-strwidth.c: New file.
40867         * modules/uniwidth/u32-strwidth: New file.
40868
40869         * tests/uniwidth/test-u16-strwidth.c: New file.
40870         * modules/uniwidth/u16-strwidth-tests: New file.
40871
40872         * lib/uniwidth/u16-strwidth.c: New file.
40873         * modules/uniwidth/u16-strwidth: New file.
40874
40875         * tests/uniwidth/test-u8-strwidth.c: New file.
40876         * modules/uniwidth/u8-strwidth-tests: New file.
40877
40878         * lib/uniwidth/u8-strwidth.c: New file.
40879         * modules/uniwidth/u8-strwidth: New file.
40880
40881         * tests/uniwidth/test-u32-width.c: New file.
40882         * modules/uniwidth/u32-width-tests: New file.
40883
40884         * lib/uniwidth/u32-width.c: New file.
40885         * modules/uniwidth/u32-width: New file.
40886
40887         * tests/uniwidth/test-u16-width.c: New file.
40888         * modules/uniwidth/u16-width-tests: New file.
40889
40890         * lib/uniwidth/u16-width.c: New file.
40891         * modules/uniwidth/u16-width: New file.
40892
40893         * tests/uniwidth/test-u8-width.c: New file.
40894         * modules/uniwidth/u8-width-tests: New file.
40895
40896         * lib/uniwidth/u8-width.c: New file.
40897         * modules/uniwidth/u8-width: New file.
40898
40899         * tests/uniwidth/test-uc_width.c: New file.
40900         * modules/uniwidth/width-tests: New file.
40901
40902         * lib/uniwidth/width.c: New file, from GNU libiconv.
40903         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
40904         * modules/uniwidth/width: New file.
40905
40906         * lib/uniwidth.h: New file, from GNU libiconv.
40907         * modules/uniwidth/base: New file.
40908
40909 2007-07-07  Bruno Haible  <bruno@clisp.org>
40910
40911         * lib/uniname.h: New file, from GNU gettext.
40912         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
40913         * lib/uniname/uninames.h: New file, from GNU gettext.
40914         * lib/uniname/uniname.c: New file, from GNU gettext.
40915         * tests/uniname/test-uninames.sh: New file.
40916         * tests/uniname/test-uninames.c: New file, from GNU gettext.
40917         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
40918         * modules/uniname/base: New file.
40919         * modules/uniname/uniname: New file.
40920         * modules/uniname/uniname-tests: New file.
40921         * MODULES.html.sh (Unicode string functions): Add the new modules.
40922
40923 2007-07-06  Bruno Haible  <bruno@clisp.org>
40924
40925         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
40926
40927 2007-07-06  Bruno Haible  <bruno@clisp.org>
40928
40929         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
40930         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
40931         includes <cygwin/sys_time.h> which includes <sys/select.h> which
40932         include <sys/time.h>.
40933         Reported by Eric Blake.
40934
40935 2007-07-06  Eric Blake  <ebb9@byu.net>
40936
40937         Fix testing canonicalize on cygwin.
40938         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
40939         Revert patch from 2007-06-19.
40940         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
40941         canonicalize module is also in use.
40942         * tests/test-canonicalize.c: New file.
40943         * tests/test-canonicalize.sh: Likewise.
40944         * modules/canonicalize-tests: Likewise.
40945
40946 2007-07-06  Jim Meyering  <jim@meyering.net>
40947
40948         * lib/getugroups.c (getugroups): Detect getgrent failure.
40949         Adjust comment to reflect reality: this function may return -1.
40950
40951 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
40952
40953         * build-aux/bootstrap (TP_URL,get_translations): Update to use
40954         the new TP address.
40955         (usage): Fix typo
40956         (gnulib_mk): New variable.
40957
40958 2007-07-05  Jim Meyering  <jim@meyering.net>
40959
40960         Don't let endgrent clobber errno, no matter how improbable.
40961         * lib/getugroups.c (getugroups): Save and restore errno around
40962         endgrent call.
40963
40964         Close the group DB even when failing with 2^31 or more members.
40965         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
40966
40967 2007-07-04  Jim Meyering  <jim@meyering.net>
40968
40969         * lib/getugroups.h: New file.
40970         * lib/getugroups.c: Include "getugroups.h".
40971         Remove uses of "register" keyword.
40972         Move local variable, "cp", down into scope where used.
40973         Give "username" parameter the "const" attribute.
40974         * modules/getugroups (Files): Add lib/getugroups.h
40975
40976 2007-07-04  Karl Berry  <karl@gnu.org>
40977
40978         * MODULES.html.sh (func_all_modules): Complete rename of
40979         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
40980
40981 2007-07-02  Bruno Haible  <bruno@clisp.org>
40982
40983         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
40984         mode, when inttypes.h comes from gnulib.
40985         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
40986
40987 2007-07-02  Simon Josefsson  <simon@josefsson.org>
40988
40989         * NEWS: Mention lgpl module name change.
40990
40991         * modules/lgpl-2.1: Renamed from lgpl.
40992
40993         * NEWS: Mention gpl module name change.
40994
40995         * modules/gpl-3.0: New file, based on gpl-2.0.
40996
40997         * modules/gpl-2.0: Renamed from gpl.
40998
40999         * modules/gpl: Fix filename, doc/gpl.texi is now found at
41000         doc/gpl-2.0.texi.
41001
41002 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
41003
41004         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
41005         #define __STDC_LIMIT_MACROS temporarily while including
41006         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
41007         Problem reported by Joel E. Denny in
41008         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
41009
41010 2007-07-01  Bruno Haible  <bruno@clisp.org>
41011
41012         * lib/unistdio.h: New file.
41013         * lib/unistdio/u-asnprintf.h: New file.
41014         * lib/unistdio/u-asprintf.h: New file.
41015         * lib/unistdio/u-printf-args.c: New file.
41016         * lib/unistdio/u-printf-args.h: New file.
41017         * lib/unistdio/u-printf-parse.h: New file.
41018         * lib/unistdio/u-snprintf.h: New file.
41019         * lib/unistdio/u-sprintf.h: New file.
41020         * lib/unistdio/u-vasprintf.h: New file.
41021         * lib/unistdio/u-vsnprintf.h: New file.
41022         * lib/unistdio/u-vsprintf.h: New file.
41023         * lib/unistdio/ulc-asnprintf.c: New file.
41024         * lib/unistdio/ulc-asprintf.c: New file.
41025         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
41026         * lib/unistdio/ulc-printf-parse.c: New file.
41027         * lib/unistdio/ulc-snprintf.c: New file.
41028         * lib/unistdio/ulc-sprintf.c: New file.
41029         * lib/unistdio/ulc-vasnprintf.c: New file.
41030         * lib/unistdio/ulc-vasprintf.c: New file.
41031         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
41032         * lib/unistdio/ulc-vsnprintf.c: New file.
41033         * lib/unistdio/ulc-vsprintf.c: New file.
41034         * lib/unistdio/u8-asnprintf.c: New file.
41035         * lib/unistdio/u8-asprintf.c: New file.
41036         * lib/unistdio/u8-printf-parse.c: New file.
41037         * lib/unistdio/u8-snprintf.c: New file.
41038         * lib/unistdio/u8-sprintf.c: New file.
41039         * lib/unistdio/u8-vasnprintf.c: New file.
41040         * lib/unistdio/u8-vasprintf.c: New file.
41041         * lib/unistdio/u8-vsnprintf.c: New file.
41042         * lib/unistdio/u8-vsprintf.c: New file.
41043         * lib/unistdio/u8-u8-asnprintf.c: New file.
41044         * lib/unistdio/u8-u8-asprintf.c: New file.
41045         * lib/unistdio/u8-u8-snprintf.c: New file.
41046         * lib/unistdio/u8-u8-sprintf.c: New file.
41047         * lib/unistdio/u8-u8-vasnprintf.c: New file.
41048         * lib/unistdio/u8-u8-vasprintf.c: New file.
41049         * lib/unistdio/u8-u8-vsnprintf.c: New file.
41050         * lib/unistdio/u8-u8-vsprintf.c: New file.
41051         * lib/unistdio/u16-asnprintf.c: New file.
41052         * lib/unistdio/u16-asprintf.c: New file.
41053         * lib/unistdio/u16-printf-parse.c: New file.
41054         * lib/unistdio/u16-snprintf.c: New file.
41055         * lib/unistdio/u16-sprintf.c: New file.
41056         * lib/unistdio/u16-vasnprintf.c: New file.
41057         * lib/unistdio/u16-vasprintf.c: New file.
41058         * lib/unistdio/u16-vsnprintf.c: New file.
41059         * lib/unistdio/u16-vsprintf.c: New file.
41060         * lib/unistdio/u16-u16-asnprintf.c: New file.
41061         * lib/unistdio/u16-u16-asprintf.c: New file.
41062         * lib/unistdio/u16-u16-snprintf.c: New file.
41063         * lib/unistdio/u16-u16-sprintf.c: New file.
41064         * lib/unistdio/u16-u16-vasnprintf.c: New file.
41065         * lib/unistdio/u16-u16-vasprintf.c: New file.
41066         * lib/unistdio/u16-u16-vsnprintf.c: New file.
41067         * lib/unistdio/u16-u16-vsprintf.c: New file.
41068         * lib/unistdio/u32-asnprintf.c: New file.
41069         * lib/unistdio/u32-asprintf.c: New file.
41070         * lib/unistdio/u32-printf-parse.c: New file.
41071         * lib/unistdio/u32-snprintf.c: New file.
41072         * lib/unistdio/u32-sprintf.c: New file.
41073         * lib/unistdio/u32-vasnprintf.c: New file.
41074         * lib/unistdio/u32-vasprintf.c: New file.
41075         * lib/unistdio/u32-vsnprintf.c: New file.
41076         * lib/unistdio/u32-vsprintf.c: New file.
41077         * lib/unistdio/u32-u32-asnprintf.c: New file.
41078         * lib/unistdio/u32-u32-asprintf.c: New file.
41079         * lib/unistdio/u32-u32-snprintf.c: New file.
41080         * lib/unistdio/u32-u32-sprintf.c: New file.
41081         * lib/unistdio/u32-u32-vasnprintf.c: New file.
41082         * lib/unistdio/u32-u32-vasprintf.c: New file.
41083         * lib/unistdio/u32-u32-vsnprintf.c: New file.
41084         * lib/unistdio/u32-u32-vsprintf.c: New file.
41085         * tests/unistdio/test-ulc-asnprintf1.c: New file.
41086         * tests/unistdio/test-ulc-asnprintf1.h: New file.
41087         * tests/unistdio/test-ulc-printf1.h: New file.
41088         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
41089         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
41090         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
41091         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
41092         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
41093         * tests/unistdio/test-ulc-vasprintf1.c: New file.
41094         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
41095         * tests/unistdio/test-ulc-vsprintf1.c: New file.
41096         * tests/unistdio/test-u8-asnprintf1.c: New file.
41097         * tests/unistdio/test-u8-asnprintf1.h: New file.
41098         * tests/unistdio/test-u8-printf1.h: New file.
41099         * tests/unistdio/test-u8-vasnprintf1.c: New file.
41100         * tests/unistdio/test-u8-vasnprintf2.c: New file.
41101         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
41102         * tests/unistdio/test-u8-vasnprintf3.c: New file.
41103         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
41104         * tests/unistdio/test-u8-vasprintf1.c: New file.
41105         * tests/unistdio/test-u8-vsnprintf1.c: New file.
41106         * tests/unistdio/test-u8-vsprintf1.c: New file.
41107         * tests/unistdio/test-u16-asnprintf1.c: New file.
41108         * tests/unistdio/test-u16-asnprintf1.h: New file.
41109         * tests/unistdio/test-u16-printf1.h: New file.
41110         * tests/unistdio/test-u16-vasnprintf1.c: New file.
41111         * tests/unistdio/test-u16-vasnprintf2.c: New file.
41112         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
41113         * tests/unistdio/test-u16-vasnprintf3.c: New file.
41114         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
41115         * tests/unistdio/test-u16-vasprintf1.c: New file.
41116         * tests/unistdio/test-u16-vsnprintf1.c: New file.
41117         * tests/unistdio/test-u16-vsprintf1.c: New file.
41118         * tests/unistdio/test-u32-asnprintf1.c: New file.
41119         * tests/unistdio/test-u32-asnprintf1.h: New file.
41120         * tests/unistdio/test-u32-printf1.h: New file.
41121         * tests/unistdio/test-u32-vasnprintf1.c: New file.
41122         * tests/unistdio/test-u32-vasnprintf2.c: New file.
41123         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
41124         * tests/unistdio/test-u32-vasnprintf3.c: New file.
41125         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
41126         * tests/unistdio/test-u32-vasprintf1.c: New file.
41127         * tests/unistdio/test-u32-vsnprintf1.c: New file.
41128         * tests/unistdio/test-u32-vsprintf1.c: New file.
41129         * modules/unistdio/base: New file.
41130         * modules/unistdio/u-printf-args: New file.
41131         * modules/unistdio/ulc-asnprintf: New file.
41132         * modules/unistdio/ulc-asprintf: New file.
41133         * modules/unistdio/ulc-fprintf: New file.
41134         * modules/unistdio/ulc-printf-parse: New file.
41135         * modules/unistdio/ulc-snprintf: New file.
41136         * modules/unistdio/ulc-sprintf: New file.
41137         * modules/unistdio/ulc-vasnprintf: New file.
41138         * modules/unistdio/ulc-vasprintf: New file.
41139         * modules/unistdio/ulc-vfprintf: New file.
41140         * modules/unistdio/ulc-vsnprintf: New file.
41141         * modules/unistdio/ulc-vsprintf: New file.
41142         * modules/unistdio/u8-asnprintf: New file.
41143         * modules/unistdio/u8-asprintf: New file.
41144         * modules/unistdio/u8-printf-parse: New file.
41145         * modules/unistdio/u8-snprintf: New file.
41146         * modules/unistdio/u8-sprintf: New file.
41147         * modules/unistdio/u8-vasnprintf: New file.
41148         * modules/unistdio/u8-vasprintf: New file.
41149         * modules/unistdio/u8-vsnprintf: New file.
41150         * modules/unistdio/u8-vsprintf: New file.
41151         * modules/unistdio/u8-u8-asnprintf: New file.
41152         * modules/unistdio/u8-u8-asprintf: New file.
41153         * modules/unistdio/u8-u8-snprintf: New file.
41154         * modules/unistdio/u8-u8-sprintf: New file.
41155         * modules/unistdio/u8-u8-vasnprintf: New file.
41156         * modules/unistdio/u8-u8-vasprintf: New file.
41157         * modules/unistdio/u8-u8-vsnprintf: New file.
41158         * modules/unistdio/u8-u8-vsprintf: New file.
41159         * modules/unistdio/u16-asnprintf: New file.
41160         * modules/unistdio/u16-asprintf: New file.
41161         * modules/unistdio/u16-printf-parse: New file.
41162         * modules/unistdio/u16-snprintf: New file.
41163         * modules/unistdio/u16-sprintf: New file.
41164         * modules/unistdio/u16-vasnprintf: New file.
41165         * modules/unistdio/u16-vasprintf: New file.
41166         * modules/unistdio/u16-vsnprintf: New file.
41167         * modules/unistdio/u16-vsprintf: New file.
41168         * modules/unistdio/u16-u16-asnprintf: New file.
41169         * modules/unistdio/u16-u16-asprintf: New file.
41170         * modules/unistdio/u16-u16-snprintf: New file.
41171         * modules/unistdio/u16-u16-sprintf: New file.
41172         * modules/unistdio/u16-u16-vasnprintf: New file.
41173         * modules/unistdio/u16-u16-vasprintf: New file.
41174         * modules/unistdio/u16-u16-vsnprintf: New file.
41175         * modules/unistdio/u16-u16-vsprintf: New file.
41176         * modules/unistdio/u32-asnprintf: New file.
41177         * modules/unistdio/u32-asprintf: New file.
41178         * modules/unistdio/u32-printf-parse: New file.
41179         * modules/unistdio/u32-snprintf: New file.
41180         * modules/unistdio/u32-sprintf: New file.
41181         * modules/unistdio/u32-vasnprintf: New file.
41182         * modules/unistdio/u32-vasprintf: New file.
41183         * modules/unistdio/u32-vsnprintf: New file.
41184         * modules/unistdio/u32-vsprintf: New file.
41185         * modules/unistdio/u32-u32-asnprintf: New file.
41186         * modules/unistdio/u32-u32-asprintf: New file.
41187         * modules/unistdio/u32-u32-snprintf: New file.
41188         * modules/unistdio/u32-u32-sprintf: New file.
41189         * modules/unistdio/u32-u32-vasnprintf: New file.
41190         * modules/unistdio/u32-u32-vasprintf: New file.
41191         * modules/unistdio/u32-u32-vsnprintf: New file.
41192         * modules/unistdio/u32-u32-vsprintf: New file.
41193         * modules/unistdio/ulc-asnprintf-tests: New file.
41194         * modules/unistdio/ulc-vasnprintf-tests: New file.
41195         * modules/unistdio/ulc-vasprintf-tests: New file.
41196         * modules/unistdio/ulc-vsnprintf-tests: New file.
41197         * modules/unistdio/ulc-vsprintf-tests: New file.
41198         * modules/unistdio/u8-asnprintf-tests: New file.
41199         * modules/unistdio/u8-vasnprintf-tests: New file.
41200         * modules/unistdio/u8-vasprintf-tests: New file.
41201         * modules/unistdio/u8-vsnprintf-tests: New file.
41202         * modules/unistdio/u8-vsprintf-tests: New file.
41203         * modules/unistdio/u16-asnprintf-tests: New file.
41204         * modules/unistdio/u16-vasnprintf-tests: New file.
41205         * modules/unistdio/u16-vasprintf-tests: New file.
41206         * modules/unistdio/u16-vsnprintf-tests: New file.
41207         * modules/unistdio/u16-vsprintf-tests: New file.
41208         * modules/unistdio/u32-asnprintf-tests: New file.
41209         * modules/unistdio/u32-vasnprintf-tests: New file.
41210         * modules/unistdio/u32-vasprintf-tests: New file.
41211         * modules/unistdio/u32-vsnprintf-tests: New file.
41212         * modules/unistdio/u32-vsprintf-tests: New file.
41213         * MODULES.html.sh (Unicode string functions): Add the new modules.
41214
41215 2007-07-01  Bruno Haible  <bruno@clisp.org>
41216
41217         * lib/sprintf.c (sprintf): Limit the available length estimation,
41218         to avoid address wraparound.
41219         * lib/vsprintf.c (vsprintf): Likewise.
41220         * modules/sprintf-posix (Dependencies): Add stdint.
41221         * modules/vsprintf-posix (Dependencies): Likewise.
41222
41223 2007-07-01  Bruno Haible  <bruno@clisp.org>
41224
41225         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
41226         Windows PATH as well. Conservative double-quoting. Comments.
41227
41228 2007-07-01  Bruno Haible  <bruno@clisp.org>
41229             Eric Blake  <ebb9@byu.net>
41230             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41231
41232         * gnulib-tool (self_abspathname): Fix algorithm to cope with
41233         empty components in $PATH, denoting '.'.
41234
41235 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41236
41237         * gnulib-tool: Fix indentation.
41238         (func_create_megatestdir): Likewise.
41239         Report by Bruno Haible.
41240
41241 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41242
41243         Sync from Automake.
41244         * build-aux/gnupload: Fix shell portability issues with for loops.
41245         Report by Karl Berry.
41246
41247 2007-06-29  Simon Josefsson  <simon@josefsson.org>
41248
41249         * build-aux/maint.mk (POURL): Use translationproject.org.
41250
41251 2007-06-27  Simon Josefsson  <simon@josefsson.org>
41252             Bruno Haible  <bruno@clisp.org>
41253
41254         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
41255         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
41256         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
41257         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
41258         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
41259
41260 2007-06-27  Bruno Haible  <bruno@clisp.org>
41261
41262         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
41263         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
41264
41265 2007-06-26  Karl Berry  <karl@gnu.org>
41266
41267         * MODULES.html.sh: remove xreadlink-with-size.
41268
41269 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41270
41271         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
41272         method that I hope also handles the double-include problem noted
41273         by Bruno Haible in
41274         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
41275
41276 2007-06-23  Bruno Haible  <bruno@clisp.org>
41277
41278         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
41279         Don't let the 'mostlyclean' target fail if the last subdirectory could
41280         not be removed.
41281         Reported by Karl Berry.
41282
41283 2007-06-23  Bruno Haible  <bruno@clisp.org>
41284
41285         * gnulib-tool (echo): Add a speedier workaround for ksh.
41286         * tests/test-echo.sh: Likewise.
41287
41288 2007-06-23  Bruno Haible  <bruno@clisp.org>
41289
41290         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
41291         * tests/test-echo.sh: Likewise.
41292
41293 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41294
41295         * gnulib-tool (IFS): Initialize early, so we don't set it to
41296         empty later.
41297         (self_abspathname): Rewrite algorithm to set it, reindent.
41298         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
41299         (func_create_megatestdir): Merge some sed scripts.
41300
41301 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
41302
41303         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
41304         exposed by Sun Studio 11 cc on Solaris 8.
41305
41306 2007-06-22  Bruno Haible  <bruno@clisp.org>
41307
41308         * gnulib-tool (echo): Ensure the echo primitive does not interpret
41309         backslashes.
41310         * tests/test-echo.sh: New file.
41311
41312 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41313
41314         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
41315         simplify `sed_replace_build_aux' scripts, they are portable but
41316         echoing them with `echo' is not.
41317         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
41318
41319 2007-06-21  Karl Berry  <karl@gnu.org>
41320
41321         * config/srclist.txt: guess we can't handle the licenses via
41322         srclist at the moment.
41323
41324 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
41325
41326         * MODULES.html.sh: Add include_next.
41327         * modules/include_next: New file.
41328
41329 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
41330
41331         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
41332         INCLUDE_NEXT.
41333         (gl_CHECK_NEXT_HEADERS): New macro.
41334         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
41335         the obsolescent gl_ABSOLUTE_HEADER.
41336         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
41337         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
41338         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41339         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
41340         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
41341         * m4/math_h.m4 (gl_MATH_H): Likewise.
41342         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
41343         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
41344         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
41345         * m4/stdint.m4 (gl_STDINT_H): Likewise.
41346         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
41347         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
41348         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
41349         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
41350         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
41351         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
41352         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
41353         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
41354         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
41355         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
41356         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41357         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
41358         * m4/inttypes.m4 (gl_INTTYPES_H): Define
41359         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
41360         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
41361         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
41362         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
41363         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
41364         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
41365         * lib/float_.h: Likewise.
41366         * lib/inttypes_.h: Likewise.
41367         * lib/math_.h: Likewise.
41368         * lib/search_.h: Likewise.
41369         * lib/signal_.h: Likewise.
41370         * lib/stdint_.h: Likewise.
41371         * lib/stdio_.h: Likewise.
41372         * lib/stdlib_.h: Likewise.
41373         * lib/string_.h: Likewise.
41374         * lib/sys_stat_.h: Likewise.
41375         * lib/sys_time_.h: Likewise.
41376         * lib/time_.h: Likewise.
41377         * lib/unistd_.h: Likewise.
41378         * lib/wchar_.h: Likewise.
41379         * lib/wctype_.h: Likewise.
41380         * lib/dirent_.h: Likewise.
41381         * lib/iconv_.h: Likewise.
41382         * lib/locale_.h: Likewise.
41383         * lib/netinet_in_.h: Likewise.
41384         * lib/sys_select_.h: Likewise.
41385         * lib/sys_socket_.h: Likewise.
41386         * lib/sysexits_.h: Likewise.
41387         * modules/fcntl (Depends-on): Depend on include_next, not
41388         absolute_header.
41389         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
41390         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
41391         * modules/fchdir: Likewise.
41392         * modules/float: Likewise.
41393         * modules/iconv_open: Likewise.
41394         * modules/inttypes: Likewise.
41395         * modules/locale: Likewise.
41396         * modules/math: Likewise.
41397         * modules/netinet_in: Likewise.
41398         * modules/search: Likewise.
41399         * modules/signal: Likewise.
41400         * modules/stdint: Likewise.
41401         * modules/stdio: Likewise.
41402         * modules/stdlib: Likewise.
41403         * modules/string: Likewise.
41404         * modules/sys_select: Likewise.
41405         * modules/sys_socket: Likewise.
41406         * modules/sys_stat: Likewise.
41407         * modules/sys_time: Likewise.
41408         * modules/sysexits: Likewise.
41409         * modules/time: Likewise.
41410         * modules/unistd: Likewise.
41411         * modules/wchar: Likewise.
41412         * modules/wctype: Likewise.
41413         * modules/sys_stat: Change maintainer to "all".
41414         * modules/unistd: Likewise.
41415
41416 2007-06-20  Karl Berry  <karl@gnu.org>
41417
41418         * config/srclist.txt: track www changes in license files.
41419
41420 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
41421
41422         * build-aux/bootstrap: Remove stray dot.
41423         Make sure build_aux settings are honored when linking
41424         gnulib_extra_files.
41425
41426 2007-06-19  Eric Blake  <ebb9@byu.net>
41427
41428         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
41429         Allow compilation on cygwin.
41430
41431 2007-06-19  Jim Meyering  <jim@meyering.net>
41432
41433         xreadlink-with-size: Remove module.  No longer used.
41434         Ex-callers now use xreadlink or mreadlink-with-size.
41435         * modules/xreadlink-with-size: Remove module.
41436         * lib/xreadlink-with-size.c: Remove file.
41437         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
41438         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
41439         just before the function definition *is* accurate.
41440
41441         Eliminate one way canonicalize_filename_mode could exit.
41442         * lib/canonicalize.c (canonicalize_filename_mode):
41443         Use mreadlink_with_size, not xreadlink_with_size.
41444
41445 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
41446
41447         Detect porting problems to FreeBSD/arm, which has time_t wider than
41448         long int.  Original problem reported for GNU diff by Xin Li in
41449         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
41450         * modules/getdate (Depends-on): Add intprops, verify.
41451         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
41452         is an integer type no wider than long int.
41453
41454 2007-06-18  Jim Meyering  <jim@meyering.net>
41455
41456         New module: mreadlink-with-size.
41457         * MODULES.html.sh: Add mreadlink-with-size.
41458         * modules/mreadlink-with-size: New module
41459         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
41460         not xreadlink-with-size.
41461         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
41462
41463 2007-06-16  Bruno Haible  <bruno@clisp.org>
41464
41465         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
41466         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
41467         Reported by Gary V. Vaughan <gary@gnu.org>.
41468
41469 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
41470
41471         Revamp lchown so that it lives in unistd.h where it belongs.
41472         * lib/lchown.h: Remove.
41473         * lib/dirchownmod.c: Don't include lib/lchown.h.
41474         * lib/fchownat.c: Likewise.
41475         * lib/openat.c: Likewise.
41476         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
41477         does not follow symlinks.
41478         (EOPNOTSUPP): Define if not defined.
41479         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
41480         is defined to 0.
41481         (lchown): New decl.
41482         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
41483         Do not check for lchown decl.
41484         Set REPLACE_LCHOWN.
41485         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
41486         REPLACE_LCHOWN.
41487         * modules/chown: Make it clear it follows symlinks.
41488         * modules/lchown: Make it clear it doesn't follow symlinks.
41489         (Files): Remove lib/lchown.h
41490         (Depends-on): Add unistd.
41491         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
41492         (Include): Include <unistd.h>, not "lchown.h".
41493         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
41494         REPLACE_LCHOWN.
41495
41496 2007-06-15  Jim Meyering  <jim@meyering.net>
41497
41498         Change license (GPL to LGPL) of fsusage and dependents.
41499         * modules/fsusage (License): Change to LGPL.
41500         * modules/full-read (License): Likewise.
41501         * modules/full-write (License): Likewise.
41502         * modules/safe-read (License): Likewise.
41503         * modules/safe-write (License): Likewise.
41504
41505 2007-06-14  Ben Pfaff  <blp@gnu.org>
41506
41507         Missing part of allocsa -> malloca transition.
41508         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
41509         gl_MALLOCA.
41510
41511 2007-06-12  Bruno Haible  <bruno@clisp.org>
41512
41513         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
41514         to ia64, x86_64, i386.
41515         Reported by Eric Blake.
41516
41517 2007-06-12  Bruno Haible  <bruno@clisp.org>
41518
41519         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
41520         cross-compiling to x86_64.
41521
41522 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
41523
41524         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
41525         glitch reported by Ralf Wildenhues in
41526         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
41527
41528         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
41529         Vin Shelton.
41530
41531 2007-06-11  Bruno Haible  <bruno@clisp.org>
41532
41533         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
41534         replacement string.
41535         Reported by Eric Blake.
41536
41537 2007-06-10  Bruno Haible  <bruno@clisp.org>
41538
41539         Prepare vasnprintf code for use with Unicode strings.
41540         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
41541         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
41542         TYPE_U32_STRING.
41543         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
41544         a_u32_string variants.
41545         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
41546         * lib/printf-args.c: Don't include config.h and the specification
41547         header if PRINTF_FETCHARGS is already defined.
41548         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
41549         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
41550         TYPE_U16_STRING, TYPE_U32_STRING.
41551         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
41552         u16_directive, u16_directives, u32_directive, u32_directives): New
41553         types.
41554         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
41555         New declarations.
41556         * lib/printf-parse.c: Don't include config.h and the specification
41557         header if PRINTF_PARSE is already defined. Eliminate the set of
41558         parameters for WIDE_CHAR_VERSION; the user of this file must provide
41559         them now. Include c-ctype.h.
41560         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
41561         directive and CHAR_T_ONLY_ASCII.
41562         * lib/vasnprintf.c: Don't include config.h and the specification header
41563         if VASNPRINTF is already defined.
41564         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
41565         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
41566         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
41567         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
41568         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
41569         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
41570         code accordingly.
41571         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
41572         pad_ourselves also in this case, with the 'c' and 's' directives, and
41573         with a different notion of "width".
41574         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
41575
41576 2007-06-10  Bruno Haible  <bruno@clisp.org>
41577
41578         * modules/unistr/u32-mbsnlen: New file.
41579         * lib/unistr/u32-mbsnlen.c: New file.
41580
41581         * modules/unistr/u16-mbsnlen: New file.
41582         * lib/unistr/u16-mbsnlen.c: New file.
41583
41584         * modules/unistr/u8-mbsnlen: New file.
41585         * lib/unistr/u8-mbsnlen.c: New file.
41586
41587         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
41588         declarations.
41589
41590 2007-06-10  Bruno Haible  <bruno@clisp.org>
41591
41592         * lib/string_.h (mbsnlen): New declaration.
41593         * lib/mbsnlen.c: New file.
41594         * m4/mbsnlen.m4: New file.
41595         * modules/mbsnlen: New file.
41596         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
41597         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
41598         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
41599
41600 2007-06-10  Bruno Haible  <bruno@clisp.org>
41601
41602         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
41603
41604 2007-06-10  Bruno Haible  <bruno@clisp.org>
41605
41606         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
41607         * lib/mbuiter.h: Likewise.
41608
41609 2007-06-10  Bruno Haible  <bruno@clisp.org>
41610
41611         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
41612         declaration.
41613
41614 2007-06-10  Karl Berry  <karl@gnu.org>
41615
41616         * config/srclist.txt: remove gettext entries, Bruno prefers
41617         to update individually.
41618
41619 2007-06-10  Bruno Haible  <bruno@clisp.org>
41620
41621         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
41622         'maxlen'. Ensure only length + width bytes are allocated, not
41623         length + 1 + width.
41624
41625 2007-06-09  Bruno Haible  <bruno@clisp.org>
41626
41627         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
41628         (CHAR_T): Remove macro.
41629         (VASNPRINTF): Update.
41630
41631 2007-06-09  Bruno Haible  <bruno@clisp.org>
41632
41633         * MODULES.html.sh (Unicode string functions): Add the new modules.
41634
41635         * modules/uniconv/u32-conv-to-enc: New file.
41636         * lib/uniconv/u32-conv-to-enc.c: New file.
41637         * modules/uniconv/u32-conv-to-enc-tests: New file.
41638         * tests/uniconv/test-u32-conv-to-enc.c: New file.
41639
41640         * modules/uniconv/u16-conv-to-enc: New file.
41641         * lib/uniconv/u16-conv-to-enc.c: New file.
41642         * lib/uniconv/u-conv-to-enc.h: New file.
41643         * modules/uniconv/u16-conv-to-enc-tests: New file.
41644         * tests/uniconv/test-u16-conv-to-enc.c: New file.
41645
41646         * modules/uniconv/u8-conv-to-enc: New file.
41647         * lib/uniconv/u8-conv-to-enc.c: New file.
41648         * modules/uniconv/u8-conv-to-enc-tests: New file.
41649         * tests/uniconv/test-u8-conv-to-enc.c: New file.
41650
41651         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41652         u32_conv_to_encoding): New declarations.
41653
41654 2007-06-09  Bruno Haible  <bruno@clisp.org>
41655
41656         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
41657
41658 2007-06-09  Bruno Haible  <bruno@clisp.org>
41659
41660         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
41661         * modules/malloca: Renamed from modules/allocsa, updated.
41662         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
41663         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
41664         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
41665         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
41666         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
41667         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
41668         * modules/xmalloca: Renamed from modules/xallocsa, updated.
41669         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
41670         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
41671         * modules/c-strcasestr (Depends-on): Update.
41672         * lib/c-strcasestr.c: Update.
41673         * modules/c-strstr (Depends-on): Update.
41674         * lib/c-strstr.c: Update.
41675         * modules/canonicalize-lgpl (Depends-on): Update.
41676         * lib/canonicalize-lgpl.c: Update.
41677         * modules/clean-temp (Depends-on): Update.
41678         * lib/clean-temp.c: Update.
41679         * modules/csharpcomp (Depends-on): Update.
41680         * lib/csharpcomp.c: Update.
41681         * modules/csharpexec (Depends-on): Update.
41682         * lib/csharpexec.c: Update.
41683         * modules/javacomp (Depends-on): Update.
41684         * lib/javacomp.c: Update.
41685         * modules/javaexec (Depends-on): Update.
41686         * lib/javaexec.c: Update.
41687         * modules/mbscasestr (Depends-on): Update.
41688         * lib/mbscasestr.c: Update.
41689         * modules/mbsstr (Depends-on): Update.
41690         * lib/mbsstr.c: Update.
41691         * modules/setenv (Depends-on): Update.
41692         * lib/setenv.c: Update.
41693         * modules/strcasestr (Depends-on): Update.
41694         * lib/strcasestr.c: Update.
41695         * modules/striconveha (Depends-on): Update.
41696         * lib/striconveha.c: Update.
41697         * modules/relocatable-prog-wrapper (Files): Update.
41698         * lib/relocwrapper.c: Update.
41699         * build-aux/install-reloc: Update.
41700         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
41701
41702 2007-06-08  Bruno Haible  <bruno@clisp.org>
41703
41704         Port to uClibc.
41705         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
41706         * lib/fpurge.c (fpurge): Likewise.
41707         * lib/freading.c (freading): Likewise.
41708         * lib/fseeko.c (rpl_fseeko): Likewise.
41709         * lib/fseterr.c (fseterr): Likewise.
41710         * lib/fwriting.c (fwriting): Likewise.
41711         * tests/test-fflush.c (main): Avoid a failure on uClibc.
41712
41713 2007-06-08  Bruno Haible  <bruno@clisp.org>
41714
41715         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
41716         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
41717         * modules/gettext (Files): Add m4/intlmacosx.m4.
41718
41719 2007-06-07  Bruno Haible  <bruno@clisp.org>
41720
41721         * modules/localename-tests: New file.
41722         * tests/test-localename.c: New file.
41723
41724         New module 'localename'.
41725         * lib/localename.h: New file.
41726         * lib/localename.c: New file, from GNU gettext.
41727         * m4/localename.m4: New file.
41728         * modules/localename: New file.
41729
41730 2007-06-07  Bruno Haible  <bruno@clisp.org>
41731
41732         Work around the lack of <wchar.h> on some builds of uClibc.
41733         * doc/headers/wchar.texi: Update.
41734         * lib/wchar_.h: Include <wchar.h> only if it exists.
41735         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
41736         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
41737         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
41738         doesn't exist.
41739         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
41740         * modules/mbfile (Depends-on): Add wchar.
41741         * modules/mbiter (Depends-on): Likewise.
41742         * modules/mbuiter (Depends-on): Likewise.
41743         Reported by Simon Josefsson.
41744
41745 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
41746
41747         Work around problem reported by Steven M. Schweda in
41748         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
41749         Tru64 5.1B with the Compaq compiler environment installed declares
41750         an 'isblank' function but does not define it in the C library.
41751         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
41752         * lib/regex_internal.h (isblank): Likewise.
41753         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
41754         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
41755
41756 2007-06-05  Bruno Haible  <bruno@clisp.org>
41757
41758         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
41759         ia64.
41760         * modules/printf-safe: New file.
41761         * modules/fprintf-posix (Depends-on): Add printf-safe.
41762         * modules/printf-posix (Depends-on): Likewise.
41763         * modules/snprintf-posix (Depends-on): Likewise.
41764         * modules/sprintf-posix (Depends-on): Likewise.
41765         * modules/vasnprintf-posix (Depends-on): Likewise.
41766         * modules/vasprintf-posix (Depends-on): Likewise.
41767         * modules/vfprintf-posix (Depends-on): Likewise.
41768         * modules/vprintf-posix (Depends-on): Likewise.
41769         * modules/vsnprintf-posix (Depends-on): Likewise.
41770         * modules/vsprintf-posix (Depends-on): Likewise.
41771         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
41772         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
41773         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
41774         "no" on i386, x86_64, ia64.
41775         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
41776         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41777         on i386, x86_64, ia64.
41778         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
41779         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41780         on i386, x86_64, ia64.
41781         * tests/test-vasnprintf-posix.c: Include float.h.
41782         (LDBL80_WORDS): New macro.
41783         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41784         on i386, x86_64, ia64.
41785         * tests/test-vasprintf-posix.c: Include float.h.
41786         (LDBL80_WORDS): New macro.
41787         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
41788         on i386, x86_64, ia64.
41789         * tests/test-snprintf-posix.c: Include float.h.
41790         * tests/test-sprintf-posix.c: Likewise.
41791         * tests/test-vsnprintf-posix.c: Likewise.
41792         * tests/test-vsprintf-posix.c: Likewise.
41793
41794 2007-06-05  Bruno Haible  <bruno@clisp.org>
41795
41796         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
41797         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
41798         non-IEEE numbers on i386, x86_64, ia64.
41799         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
41800         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
41801         * tests/test-isnanl.h: Include float.h.
41802         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
41803
41804 2007-06-05  Bruno Haible  <bruno@clisp.org>
41805
41806         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
41807         also the %a / %A. Handle the %a / %A code before this extra handling.
41808
41809 2007-06-05  Bruno Haible  <bruno@clisp.org>
41810
41811         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
41812         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
41813
41814 2007-06-05  Bruno Haible  <bruno@clisp.org>
41815
41816         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
41817         typo in variable name.
41818
41819 2007-06-05  Eric Blake  <ebb9@byu.net>
41820
41821         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
41822         Reported by Simon Josefsson.
41823
41824 2007-06-04  Bruno Haible  <bruno@clisp.org>
41825
41826         Avoid test failures on some PowerPC platforms.
41827         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
41828         Define differently for PowerPC.
41829         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
41830         Reported by Gary V. Vaughan <gary@gnu.org>.
41831
41832 2007-06-02  Bruno Haible  <bruno@clisp.org>
41833
41834         Fix test-stdint failure on FreeBSD/ia64.
41835         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
41836         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
41837         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
41838         * doc/headers/stdint.texi: Update.
41839
41840 2007-06-01  Bruno Haible  <bruno@clisp.org>
41841
41842         * tests/test-binary-io.c (main): Pass a third argument to open().
41843         Reported by Gary V. Vaughan <gary@gnu.org>.
41844
41845 2007-06-01  Bruno Haible  <bruno@clisp.org>
41846
41847         * doc/functions/frexpl.texi: Update for mingw.
41848
41849 2007-06-01  Bruno Haible  <bruno@clisp.org>
41850
41851         * tests/test-lseek.c (main): Disable test of errno for invalid third
41852         argument.
41853         * doc/functions/lseek.texi: Update.
41854         Reported by Gary V. Vaughan <gary@gnu.org>.
41855
41856 2007-05-28  Bruno Haible  <bruno@clisp.org>
41857
41858         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
41859
41860 2007-05-31  Eric Blake  <ebb9@byu.net>
41861
41862         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
41863         cross compiling.
41864
41865 2007-05-30  Eric Blake  <ebb9@byu.net>
41866         and Bruno Haible  <bruno@clisp.org>
41867
41868         Work around mingw test failures exposed by m4-1.4.9b.
41869         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
41870         * tests/test-unistd.c: Disable uid_t and git_t tests for the
41871         moment.
41872
41873 2007-05-30  Bruno Haible  <bruno@clisp.org>
41874
41875         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
41876         assuming that they are closed. Needed on HP-UX 11.
41877
41878 2007-05-29  Bruno Haible  <bruno@clisp.org>
41879
41880         Fix a problem with #include_next.
41881         * lib/dirent_.h: Split the double-inclusion guard.
41882         * lib/fcntl_.h: Likewise.
41883         * lib/float_.h: Likewise.
41884         * lib/iconv_.h: Likewise.
41885         * lib/inttypes_.h: Likewise.
41886         * lib/locale_.h: Likewise.
41887         * lib/math_.h: Likewise.
41888         * lib/netinet_in_.h: Likewise.
41889         * lib/search_.h: Likewise.
41890         * lib/signal_.h: Likewise.
41891         * lib/stdint_.h: Likewise.
41892         * lib/stdio_.h: Likewise.
41893         * lib/stdlib_.h: Likewise.
41894         * lib/string_.h: Likewise.
41895         * lib/sys_select_.h: Likewise.
41896         * lib/sys_socket_.h: Likewise.
41897         * lib/sys_stat_.h: Likewise.
41898         * lib/sys_time_.h: Likewise.
41899         * lib/sysexits_.h: Likewise.
41900         * lib/time_.h: Likewise.
41901         * lib/unistd_.h: Likewise.
41902         * lib/wchar_.h: Likewise.
41903         * lib/wctype_.h: Likewise.
41904
41905 2007-05-29  Bruno Haible  <bruno@clisp.org>
41906
41907         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
41908         for the moment.
41909
41910 2007-05-29  Bruno Haible  <bruno@clisp.org>
41911
41912         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
41913         invocation.
41914         Reported by Eric Blake.
41915
41916 2007-05-29  Bruno Haible  <bruno@clisp.org>
41917
41918         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
41919         compiling case.
41920
41921 2007-05-29  Eric Blake  <ebb9@byu.net>
41922             Bruno Haible  <bruno@clisp.org>
41923
41924         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
41925         cross compiles.
41926
41927 2007-05-28  Eric Blake  <ebb9@byu.net>
41928
41929         * modules/closein-tests (test_closein_LDADD): Support test on
41930         cygwin with libtool.
41931
41932 2007-05-28  Bruno Haible  <bruno@clisp.org>
41933
41934         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
41935         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
41936         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
41937         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
41938         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
41939         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
41940         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
41941         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
41942         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
41943
41944 2007-05-28  Eric Blake  <ebb9@byu.net>
41945
41946         Unconditionally include <config.h> in unit tests.
41947         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
41948         * tests/test-allocsa.c, tests/test-arcfour.c,
41949         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
41950         tests/test-array_list.c, tests/test-array_oset.c,
41951         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
41952         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
41953         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
41954         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
41955         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
41956         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
41957         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
41958         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
41959         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
41960         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
41961         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
41962         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
41963         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
41964         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
41965         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
41966         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
41967         test-md5.c, test-memmem.c, test-printf-posix.c,
41968         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
41969         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
41970         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
41971         test-strcasestr.c, test-striconv.c, test-striconveh.c,
41972         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
41973         test-vasnprintf-posix2.c, test-vasnprintf.c,
41974         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
41975         test-vfprintf-posix.c, test-vprintf-posix.c,
41976         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
41977         test-xvasprintf.c: Likewise.
41978
41979 2007-05-28  Bruno Haible  <bruno@clisp.org>
41980
41981         * gnulib-tool (func_import): Remember the --with-tests command-line
41982         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
41983         Reported by Eric Blake.
41984
41985 2007-05-28  Bruno Haible  <bruno@clisp.org>
41986
41987         * modules/ftell-tests: New file.
41988         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
41989         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
41990
41991         * lib/ftell.c: New file.
41992         * modules/ftell: New file.
41993         * m4/ftell.m4: New file.
41994         * doc/functions/ftell.texi: Update.
41995         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
41996         REPLACE_FTELL.
41997         * lib/stdio_.h (rpl_ftell): New declaration.
41998         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
41999         REPLACE_FTELL.
42000
42001 2007-05-28  Eric Blake  <ebb9@byu.net>
42002
42003         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
42004
42005 2007-05-28  Bruno Haible  <bruno@clisp.org>
42006
42007         * modules/fseek-tests: New file.
42008         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
42009         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
42010
42011         * lib/fseek.c: New file.
42012         * modules/fseek: New file.
42013         * m4/fseek.m4: New file.
42014         * doc/functions/fseek.texi: Update.
42015         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
42016         REPLACE_FSEEK.
42017         * lib/stdio_.h (rpl_fseek): New declaration.
42018         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
42019         REPLACE_FSEEK.
42020
42021 2007-05-28  Bruno Haible  <bruno@clisp.org>
42022
42023         * lib/stdio_.h (fflush): More comments.
42024
42025 2007-05-28  Bruno Haible  <bruno@clisp.org>
42026
42027         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
42028         runtime test.
42029
42030 2007-05-28  Eric Blake  <ebb9@byu.net>
42031
42032         Improve lseek module.
42033         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
42034         * lib/unistd_.h (lseek): Scale back link warning message.
42035         * tests/test-lseek.c: Beef up test.
42036         * tests/test-lseek.sh: Exercise more facets of lseek.
42037         Reported by Bruno Haible.
42038
42039 2007-05-28  Bruno Haible  <bruno@clisp.org>
42040
42041         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
42042         to define.
42043
42044 2007-05-27  Bruno Haible  <bruno@clisp.org>
42045
42046         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
42047
42048 2007-05-27  Bruno Haible  <bruno@clisp.org>
42049
42050         * modules/openmp: New file.
42051         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
42052         Noah Misch.
42053
42054 2007-05-26  Bruno Haible  <bruno@clisp.org>
42055
42056         * modules/chdir-long (Depends-on): Add fchdir.
42057         * modules/chdir-safer (Depends-on): Likewise.
42058         * modules/fts (Depends-on): Likewise.
42059         * modules/fts-lgpl (Depends-on): Likewise.
42060         * modules/openat (Depends-on): Likewise.
42061         * modules/savewd (Depends-on): Likewise.
42062
42063 2007-05-24  Eric Blake  <ebb9@byu.net>
42064
42065         Fix lseek on mingw.
42066         * modules/lseek: New module.
42067         * m4/lseek.m4: New file.
42068         * lib/lseek.c: New file.
42069         * modules/lseek-tests: New file.
42070         * tests/test-lseek.c: New file.
42071         * tests/test-lseek.sh: New file.
42072         * MODULES.html.sh: Document lseek module.
42073         * modules/fflush (Depends-on): Add lseek, fseeko.
42074         * modules/fseeko (Depends-on): Likewise.
42075         * modules/ftello (Depends-on): Likewise.
42076         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
42077         broken.
42078         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
42079         broken.
42080         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
42081         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
42082         * lib/ftello.c (rpl_ftello): Likewise.
42083         * tests/test-fseeko.c (main): Test this.
42084         * tests/test-fseeko.sh: Likewise.
42085         * tests/test-ftello.c (main): Likewise.
42086         * tests/test-ftello.sh: Likewise.
42087         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
42088         implies replacing fseek.
42089         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
42090         HAVE_FTELLO.
42091         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
42092         * modules/unistd (Makefile.am): Likewise.
42093         * lib/unistd_.h (lseek): Declare a replacement.
42094         * doc/functions/lseek.texi (lseek): Document this fix.
42095         * doc/functions/fseek.texi (fseek): Likewise.
42096         * doc/functions/ftell.texi (ftell): Likewise.
42097
42098 2007-05-24  Bruno Haible  <bruno@clisp.org>
42099
42100         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
42101         in the printed representation of a NaN.
42102         * tests/test-vasprintf-posix.c (test_function): Likewise.
42103         * tests/test-snprintf-posix.h (test_function): Likewise.
42104         * tests/test-sprintf-posix.h (test_function): Likewise.
42105         Reported by Eric Blake.
42106
42107 2007-05-23  Eric Blake  <ebb9@byu.net>
42108
42109         Fix fseeko/ftello on cygwin 1.5.24.
42110         * doc/functions/fseeko.texi (fseeko): Document the fix.
42111         * doc/functions/ftello.texi (ftello): Document the fix.
42112         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
42113         * doc/functions/stdout.text (stdout): New file.
42114         * doc/functions/stderr.text (stderr): New file.
42115         * doc/gnulib.texi (Function Substitutes): Use new files.
42116         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
42117         prior to 1.7.0.
42118         * tests/test-ftello.c (main): Likewise for ftello.
42119         * tests/test-fseeko.sh: New file.
42120         * tests/test-ftello.sh: New file.
42121         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
42122         with seekable stdin.
42123         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
42124         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
42125         (gl_REPLACE_FSEEKO): New macro.
42126         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
42127         * modules/fseeko (Files): Distribute fseeko.c.
42128         * modules/ftello (Files): Distribute ftello.c.
42129         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
42130         mode.
42131         * lib/ftello.c (rpl_ftello): New file.
42132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
42133         fseeko, ftello.
42134         (gl_STDIN_LARGE_OFFSET): New macro.
42135         * modules/stdio (Makefile.am): Perform the replacement.
42136         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
42137
42138 2007-05-23  Bruno Haible  <bruno@clisp.org>
42139
42140         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
42141         GNULIB_POSIXCHECK is defined.
42142
42143 2007-05-21  Bruno Haible  <bruno@clisp.org>
42144
42145         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
42146         Check also the output for NaN arguments. When cross-compiling, guess
42147         no on IRIX.
42148         * lib/vasnprintf.c: Update comments.
42149         * tests/test-vasnprintf-posix.c (strisnan): New function.
42150         (test_function): Use it.
42151         * tests/test-vasprintf-posix.c (strisnan): New function.
42152         (test_function): Use it.
42153         * tests/test-snprintf-posix.h (strisnan): New function.
42154         (test_function): Use it.
42155         * tests/test-sprintf-posix.h (strisnan): New function.
42156         (test_function): Use it.
42157         Reported by Eric Blake.
42158
42159 2007-05-20  Bruno Haible  <bruno@clisp.org>
42160
42161         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
42162         numbers that fails on BeOS.
42163         * doc/functions/frexpl.texi: Update.
42164
42165 2007-05-20  Jim Meyering  <jim@meyering.net>
42166
42167         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
42168         forced upon us by glibc-2.6.
42169
42170 2007-05-20  Bruno Haible  <bruno@clisp.org>
42171
42172         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
42173         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
42174         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
42175         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
42176         NEED_PRINTF_INFINITE.
42177         (is_infinitel): New function.
42178         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
42179         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
42180         gl_PREREQ_VASNPRINTF_INFINITE.
42181         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
42182         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42183         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
42184         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
42185         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
42186         gl_PREREQ_VASNPRINTF_INFINITE.
42187         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42188         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42189         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42190         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42191         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42192         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42193         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42194         * doc/functions/fprintf.texi: Update.
42195         * doc/functions/printf.texi: Update.
42196         * doc/functions/snprintf.texi: Update.
42197         * doc/functions/sprintf.texi: Update.
42198         * doc/functions/vfprintf.texi: Update.
42199         * doc/functions/vprintf.texi: Update.
42200         * doc/functions/vsnprintf.texi: Update.
42201         * doc/functions/vsprintf.texi: Update.
42202
42203 2007-05-20  Bruno Haible  <bruno@clisp.org>
42204
42205         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
42206         was not found in libc.
42207         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
42208
42209 2007-05-20  Bruno Haible  <bruno@clisp.org>
42210
42211         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
42212         printed as "-nan" instead of "nan".
42213         * tests/test-vasprintf-posix.c (test_function): Likewise.
42214         * tests/test-snprintf-posix.h (test_function): Likewise.
42215         * tests/test-sprintf-posix.h (test_function): Likewise.
42216         Needed for HP-UX 11.
42217
42218 2007-05-20  Jim Meyering  <jim@meyering.net>
42219
42220         Fix buggy test for the fchownat-deref bug.
42221         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
42222         symlink required for the run-test.  Without it, this test would
42223         always declare that fchownat doesn't work, and client code would
42224         unnecessarily use the replacement function with fixed libc.
42225         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
42226         Reported by Greg Schafer.
42227
42228 2007-05-19  Bruno Haible  <bruno@clisp.org>
42229
42230         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
42231         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
42232         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
42233         Needed for IRIX 6.5 and Solaris 2.5.1.
42234
42235 2007-05-19  Bruno Haible  <bruno@clisp.org>
42236
42237         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
42238         (test_function): Skip tests involving -0.0 on platforms where
42239         -0.0 = 0.0.
42240         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
42241         (test_function): Skip tests involving -0.0 on platforms where
42242         -0.0 = 0.0.
42243         * tests/test-snprintf-posix.h (have_minus_zero): New function.
42244         (test_function): Skip tests involving -0.0 on platforms where
42245         -0.0 = 0.0.
42246         * tests/test-sprintf-posix.h (have_minus_zero): New function.
42247         (test_function): Skip tests involving -0.0 on platforms where
42248         -0.0 = 0.0.
42249         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
42250         tests.
42251         * tests/test-printf-posix.h (test_function): Likewise.
42252         * tests/test-printf-posix.output: Remove all -0.0 related results.
42253         Needed for IRIX 6.5.
42254
42255 2007-05-19  Bruno Haible  <bruno@clisp.org>
42256
42257         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
42258         printed as "nan0x7fffffff" instead of "nan".
42259         * tests/test-vasprintf-posix.c (test_function): Likewise.
42260         * tests/test-snprintf-posix.h (test_function): Likewise.
42261         * tests/test-sprintf-posix.h (test_function): Likewise.
42262         * tests/test-fprintf-posix.h (NaN): Remove macro.
42263         (test_function): Remove all NaN related tests.
42264         * tests/test-printf-posix.h (NaN): Remove macro.
42265         (test_function): Remove all NaN related tests.
42266         * tests/test-printf-posix.output: Remove all NaN related results.
42267         Needed for IRIX 6.5.
42268
42269 2007-05-19  Bruno Haible  <bruno@clisp.org>
42270
42271         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
42272         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
42273
42274 2007-05-19  Bruno Haible  <bruno@clisp.org>
42275
42276         * lib/float_.h: New file.
42277         * m4/float_h.m4: New file.
42278         * modules/float: New file.
42279         * modules/isnanl (Dependencies): Add float.
42280         * modules/isnanl-nolibm (Dependencies): Likewise.
42281         * modules/mathl (Dependencies): Likewise.
42282         * modules/printf-frexpl (Dependencies): Likewise.
42283         * modules/signbit (Dependencies): Likewise.
42284         * modules/vasnprintf (Dependencies): Likewise.
42285         * doc/headers/float.texi: Update.
42286
42287 2007-05-19  Jim Meyering  <jim@meyering.net>
42288
42289         * lib/utimens.c (gl_futimens): Rename from futimens,
42290         now that glibc-2.6 declares futimens.
42291         * lib/utimens.h: Likewise.
42292
42293 2007-05-19  Bruno Haible  <bruno@clisp.org>
42294
42295         Avoid test failures on mingw.
42296         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
42297         * tests/test-printf-posix.sh: Likewise.
42298         * tests/test-vfprintf-posix.sh: Likewise.
42299         * tests/test-vprintf-posix.sh: Likewise.
42300
42301 2007-05-19  Bruno Haible  <bruno@clisp.org>
42302
42303         Fix *printf result for NaN, Inf, -0.0 on mingw.
42304         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
42305         * lib/vasnprintf.c: Include math.h and isnan.h.
42306         (is_infinite_or_zero): New function.
42307         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
42308         values in the %f, %F, %e, %E, %g, %G directives.
42309         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
42310         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42311         gl_PRINTF_INFINITE and test its result. Invoke
42312         gl_PREREQ_VASNPRINTF_INFINITE.
42313         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42314         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42315         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42316         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42317         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42318         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42319         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42320         * doc/functions/fprintf.texi: Update.
42321         * doc/functions/printf.texi: Update.
42322         * doc/functions/snprintf.texi: Update.
42323         * doc/functions/sprintf.texi: Update.
42324         * doc/functions/vfprintf.texi: Update.
42325         * doc/functions/vprintf.texi: Update.
42326         * doc/functions/vsnprintf.texi: Update.
42327         * doc/functions/vsprintf.texi: Update.
42328
42329 2007-05-19  Bruno Haible  <bruno@clisp.org>
42330
42331         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
42332         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
42333         Instead of multiplying with 10^k, set extra_zeroes to k.
42334         (scale10_round_long_double): Remove function.
42335
42336 2007-05-18  Bruno Haible  <bruno@clisp.org>
42337
42338         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
42339         introduced on 2007-05-06.
42340
42341 2007-05-18  Bruno Haible  <bruno@clisp.org>
42342
42343         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
42344         %g directives.
42345         * tests/test-vasprintf-posix.c (test_function): Likewise.
42346         * tests/test-snprintf-posix.h (test_function): Likewise.
42347         * tests/test-sprintf-posix.h (test_function): Likewise.
42348
42349 2007-05-18  Bruno Haible  <bruno@clisp.org>
42350
42351         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
42352         (strmatch): New function.
42353         (test_function): Test the %f directive on numbers of various exponents.
42354         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
42355         (strmatch): New function.
42356         (test_function): Test the %f directive on numbers of various exponents.
42357         * tests/test-snprintf-posix.h (strmatch): New function.
42358         (test_function): Test the %f directive on numbers of various exponents.
42359         * tests/test-sprintf-posix.h (strmatch): New function.
42360         (test_function): Test the %f directive on numbers of various exponents.
42361         * tests/test-snprintf-posix.c (SIZEOF): New macro.
42362         * tests/test-sprintf-posix.c (SIZEOF): New macro.
42363         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
42364         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
42365
42366 2007-05-18  Bruno Haible  <bruno@clisp.org>
42367
42368         Add support for 'long double' number output.
42369         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
42370         * lib/vasnprintf.c: Include math.h and float+.h.
42371         (mp_limb_t): New type.
42372         (GMP_LIMB_BITS): New macro.
42373         (mp_twolimb_t): New type.
42374         (GMP_TWOLIMB_BITS): New macro.
42375         (mpn_t): New type.
42376         (multiply, divide, convert_to_decimal, decode_long_double,
42377         scale10_round_long_double, scale10_round_decimal_long_double,
42378         floorlog10l): New functions.
42379         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
42380         for the %f, %F, %e, %E, %g, %G directives.
42381         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
42382         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42383         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
42384         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
42385         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42386         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42387         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42388         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42389         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42390         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42391         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42392         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
42393         * modules/snprintf-posix (Depends-on): Likewise.
42394         * modules/sprintf-posix (Depends-on): Likewise.
42395         * modules/vasnprintf-posix (Depends-on): Likewise.
42396         * modules/vasprintf-posix (Depends-on): Likewise.
42397         * modules/vfprintf-posix (Depends-on): Likewise.
42398         * modules/vsnprintf-posix (Depends-on): Likewise.
42399         * modules/vsprintf-posix (Depends-on): Likewise.
42400         * modules/vasnprintf (Files): Add lib/float+.h.
42401         * doc/functions/fprintf.texi: Update.
42402         * doc/functions/printf.texi: Update.
42403         * doc/functions/snprintf.texi: Update.
42404         * doc/functions/sprintf.texi: Update.
42405         * doc/functions/vfprintf.texi: Update.
42406         * doc/functions/vprintf.texi: Update.
42407         * doc/functions/vsnprintf.texi: Update.
42408         * doc/functions/vsprintf.texi: Update.
42409
42410 2007-05-18  Bruno Haible  <bruno@clisp.org>
42411
42412         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
42413
42414 2007-05-18  Bruno Haible  <bruno@clisp.org>
42415
42416         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
42417         for printing 64-bit integers. Needed for mingw.
42418
42419 2007-05-18  Bruno Haible  <bruno@clisp.org>
42420
42421         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
42422         gl_FUNC_FREXPL_WORKS.
42423         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
42424
42425 2007-05-18  Bruno Haible  <bruno@clisp.org>
42426
42427         * modules/frexpl-nolibm-tests: New file.
42428
42429         * modules/frexpl-nolibm: New file.
42430         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
42431
42432 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
42433
42434         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
42435         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
42436         GCC 4.2, which otherwise issues a lot of warnings.
42437         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
42438         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
42439         Likewise.
42440         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
42441         * modules/iconv_open (iconv.h): Likewise.
42442         * modules/locale (locale.h): Likewise.
42443         * modules/netinet_in (netinet/in.h): Likewise.
42444         * modules/sys_select (sys_select.h): Likewise.
42445         * modules/sys_socket (sys/socket.h): Likewise.
42446         * modules/sys_stat (sys/stat.h): Likewise.
42447         * modules/sysexits (sysexits.h): Likewise.
42448         * modules/unistd (unistd.h): Likewise.
42449
42450 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42451
42452         * modules/closein-tests (Makefile.am): Distribute
42453         `test-closein.sh'.
42454
42455 2007-05-17  Bruno Haible  <bruno@clisp.org>
42456
42457         * tests/test-printf-posix.output: Renamed from
42458         tests/test-fprintf-posix.out.
42459         * modules/fprintf-posix-tests: Update.
42460         * modules/printf-posix-tests: Update.
42461         * modules/vfprintf-posix-tests: Update.
42462         * modules/vprintf-posix-tests: Update.
42463         * tests/test-fprintf-posix.sh: Update.
42464         * tests/test-printf-posix.sh: Update.
42465         * tests/test-vfprintf-posix.sh: Update.
42466         * tests/test-vprintf-posix.sh: Update.
42467         Reported by Ralf Wildenhues.
42468
42469 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
42470
42471         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
42472         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
42473         GCC 4.2, which otherwise issues a lot of warnings.
42474         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
42475         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
42476         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
42477         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
42478         it should no longer be needed.
42479         * lib/string_.h: Likewise.
42480         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
42481         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
42482         * modules/inttypes (inttypes.h): Likewise.
42483         * modules/math (math.h): Likewise.
42484         * modules/search (search.h): Likewise.
42485         * modules/signal (signal.h): Likewise.
42486         * modules/stdint (stdint.h): Likewise.
42487         * modules/stdio (stdio.h): Likewise.
42488         * modules/stdlib (stdlib.h): Likewise.
42489         * modules/string (string.h): Likewise.
42490         * modules/sys_time (sys/time.h): Likewise.
42491         * modules/time (time.h): Likewise.
42492         * modules/wchar (wchar.h): Likewise.
42493         * modules/wctype (wtype.h): Likewise.
42494
42495 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
42496
42497         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
42498
42499 2007-05-13  Bruno Haible  <bruno@clisp.org>
42500
42501         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
42502         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
42503         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
42504         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
42505         (gl_PREREQ_STRTOK_R): Don't require it here.
42506
42507 2007-05-13  Bruno Haible  <bruno@clisp.org>
42508
42509         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
42510         when used in C++ mode.
42511
42512 2007-05-12  Bruno Haible  <bruno@clisp.org>
42513
42514         * lib/linebuffer.h: Tweak doc.
42515         * lib/linebuffer.c: Likewise.
42516
42517 2007-05-12  James Youngman  <jay@gnu.org>
42518
42519         * lib/linebuffer.c (readlinebuffer_delim): New function,
42520         like readlinebuffer, but use a caller-specified delimiter.
42521         (readlinebuffer): Just call readlinebuffer_delim with '\n'
42522         as the delimiter.
42523         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
42524
42525 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42526
42527         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
42528         * modules/openat (Files): Remove openat-die.c.
42529         (Depends-on): Add openat-die.
42530         * modules/openat-die: New module.
42531
42532 2007-05-06  Bruno Haible  <bruno@clisp.org>
42533
42534         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
42535         Update with info about Cygwin.
42536         * doc/functions/fprintf.texi: Update.
42537         * doc/functions/printf.texi: Update.
42538         * doc/functions/snprintf.texi: Update.
42539         * doc/functions/sprintf.texi: Update.
42540         * doc/functions/vfprintf.texi: Update.
42541         * doc/functions/vprintf.texi: Update.
42542         * doc/functions/vsnprintf.texi: Update.
42543         * doc/functions/vsprintf.texi: Update.
42544         Reported by Eric Blake.
42545
42546 2007-05-06  Bruno Haible  <bruno@clisp.org>
42547
42548         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
42549         padding ourselves for the floating-point directives.
42550         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
42551         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
42552         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42553         gl_PRINTF_FLAG_ZERO and test its result. Invoke
42554         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
42555         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42556         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
42557         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42558         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42559         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42560         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42561         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42562         * tests/test-snprintf-posix.h (test_function): Also check the width
42563         and some flags in the %f directive.
42564         * tests/test-sprintf-posix.h (test_function): Likewise.
42565         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42566         * tests/test-vasprintf-posix.c (test_function): Likewise.
42567         * doc/functions/fprintf.texi: Update.
42568         * doc/functions/printf.texi: Update.
42569         * doc/functions/snprintf.texi: Update.
42570         * doc/functions/sprintf.texi: Update.
42571         * doc/functions/vfprintf.texi: Update.
42572         * doc/functions/vprintf.texi: Update.
42573         * doc/functions/vsnprintf.texi: Update.
42574         * doc/functions/vsprintf.texi: Update.
42575
42576 2007-05-06  Bruno Haible  <bruno@clisp.org>
42577
42578         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
42579         pass the ' flag character to sprintf or snprintf.
42580         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
42581         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
42582         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42583         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
42584         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
42585         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42586         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
42587         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42588         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42589         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42590         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42591         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42592         * tests/test-snprintf-posix.h (test_function): Also check the grouping
42593         flag.
42594         * tests/test-sprintf-posix.h (test_function): Likewise.
42595         * tests/test-vasnprintf-posix.c (test_function): Likewise.
42596         * tests/test-vasprintf-posix.c (test_function): Likewise.
42597         * doc/functions/fprintf.texi: Update.
42598         * doc/functions/printf.texi: Update.
42599         * doc/functions/snprintf.texi: Update.
42600         * doc/functions/sprintf.texi: Update.
42601         * doc/functions/vfprintf.texi: Update.
42602         * doc/functions/vprintf.texi: Update.
42603         * doc/functions/vsnprintf.texi: Update.
42604         * doc/functions/vsprintf.texi: Update.
42605
42606 2007-05-01  Bruno Haible  <bruno@clisp.org>
42607
42608         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
42609
42610 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
42611
42612         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
42613         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
42614
42615 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
42616
42617         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
42618         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
42619         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
42620
42621 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
42622
42623         * lib/argp-help.c (struct hol_entry): New member `ord'.
42624         (HOL_ENTRY_PTRCMP): Use ord for comparison
42625         (hol_sort): Initialize ord.
42626
42627 2007-05-01  Bruno Haible  <bruno@clisp.org>
42628
42629         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
42630         Reported by Eric Blake.
42631         * doc/gnulib.texi (Function Substitutes): Update.
42632
42633 2007-05-01  Bruno Haible  <bruno@clisp.org>
42634
42635         * doc/functions.texi: Remove file, now redundant through
42636         doc/functions/*.texi.
42637
42638 2007-05-01  Bruno Haible  <bruno@clisp.org>
42639
42640         * modules/argp (Depends-on): Add sleep.
42641
42642 2007-05-01  Bruno Haible  <bruno@clisp.org>
42643
42644         * modules/sleep-tests: New file.
42645         * tests/test-sleep.c: New file.
42646
42647         * modules/sleep: New file.
42648         * lib/sleep.c: New file.
42649         * m4/sleep.m4: New file.
42650         * lib/unistd_.h (sleep): New declaration.
42651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
42652         HAVE_SLEEP.
42653         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
42654         * doc/functions/sleep.texi: Document the sleep module.
42655
42656 2007-05-01  Bruno Haible  <bruno@clisp.org>
42657
42658         * lib/sigprocmask.h: Remove file.
42659         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
42660         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
42661         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
42662         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
42663         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
42664         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
42665         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
42666         HAVE_SIGSET_T as a shell variable.
42667         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
42668         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
42669         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
42670         (Depends-on): Add signal. Remove verify.
42671         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
42672         (Include): Mention <signal.h> instead of sigprocmask.h.
42673         * NEWS: Mention the change.
42674         * lib/fatal-signal.c: Don't include sigprocmask.h.
42675
42676 2007-05-01  Bruno Haible  <bruno@clisp.org>
42677
42678         * modules/signal: New file.
42679         * lib/signal_.h: New file.
42680         * m4/signal_h.m4: New file.
42681
42682 2007-05-01  Bruno Haible  <bruno@clisp.org>
42683
42684         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
42685         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
42686         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
42687         HAVE_WCTYPE_CTMP_BUG into wctype.h.
42688
42689 2007-05-01  Bruno Haible  <bruno@clisp.org>
42690
42691         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
42692         configure time.
42693         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
42694         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
42695         * modules/sys_stat (Makefile.am): Substitute their values into
42696         sys/stat.h.
42697
42698 2007-05-01  Bruno Haible  <bruno@clisp.org>
42699
42700         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
42701         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
42702         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
42703
42704 2007-05-01  Bruno Haible  <bruno@clisp.org>
42705
42706         * doc/header/assert.texi: Undo last change: don't mention the gnulib
42707         'assert' module here.
42708
42709 2007-05-01  Bruno Haible  <bruno@clisp.org>
42710
42711         * doc/functions/*.texi: New files.
42712         * doc/functions/google-ranking.txt: New file.
42713         * doc/gnulib.texi (Function Substitutes): New chapter.
42714         (ctime, inet_ntoa): Remove sections.
42715         * doc/ctime.texi: Remove file.
42716         * doc/inet_ntoa.texi: Remove file.
42717         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
42718         dependencies.
42719         (%.info): New rule, specifying a --reference-limit.
42720
42721 2007-05-01  Bruno Haible  <bruno@clisp.org>
42722
42723         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
42724
42725 2007-05-01  Bruno Haible  <bruno@clisp.org>
42726
42727         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
42728         the portability of 'mkdir' to mingw systems.
42729
42730 2007-05-01  Bruno Haible  <bruno@clisp.org>
42731
42732         * doc/headers/google-ranking.txt: New file.
42733
42734 2007-04-30  Eric Blake  <ebb9@byu.net>
42735
42736         Prefer fseeko to fseek.
42737         * modules/getpass (Depends-on): Add fseeko.
42738         * lib/getpass.c (getpass): Use fseeko, not fseek.
42739
42740 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
42741
42742         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
42743         assumes the sorting is stable, while most qsort implementations
42744         are not.  Use argument addresses to ensure they never compare as
42745         equal.
42746
42747         * tests/test-argp-2.sh (usage-indent test): Fix output
42748         (func_compare): Restore diff options
42749         * tests/test-argp.c: Restore #include "progname.h"
42750
42751 2007-04-29  Bruno Haible  <bruno@clisp.org>
42752
42753         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
42754         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
42755         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
42756         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42757         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
42758         (configure.ac): Define CHECK_SNPRINTF_POSIX.
42759         (TESTS, check_PROGRAMS): Add test-snprintf.
42760         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
42761         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
42762         (TESTS, check_PROGRAMS): Add test-vsnprintf.
42763         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
42764         assertions that fail on HP-UX, OSF/1, or IRIX.
42765         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
42766
42767 2007-04-29  Bruno Haible  <bruno@clisp.org>
42768
42769         * MODULES.html.sh (posix_functions): Remove 'contents'.
42770
42771 2007-04-29  Karl Berry  <karl@gnu.org>
42772
42773         * config/srclist.txt (gendocs_template_min): new entry.
42774
42775 2007-04-29  Bruno Haible  <bruno@clisp.org>
42776
42777         Work around fpurge bug on BSD systems.
42778         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
42779         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
42780         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
42781         fpurge to rpl_fpurge if the system already has this function.
42782         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
42783         the case where the system already has this function. Correct invariants
42784         on BSD systems.
42785         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
42786         BSD systems.
42787
42788 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
42789
42790         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
42791         proposed by Sven Verdoolaege.
42792
42793         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
42794         options.
42795         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
42796         (usage and help tests): Update
42797
42798 2007-04-29  Bruno Haible  <bruno@clisp.org>
42799
42800         * tests/test-fflush.c (main): Use a file of size 17, not 10.
42801         Print more information in case of failure. Disable a test on BeOS.
42802
42803 2007-04-29  Bruno Haible  <bruno@clisp.org>
42804
42805         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
42806         This helps debugging on systems on which no gdb is available.
42807
42808 2007-04-29  Bruno Haible  <bruno@clisp.org>
42809
42810         * lib/freading.h: Improve comments.
42811         * lib/fwriting.h: Likewise.
42812         * tests/test-freading.c (main): Don't check freading immediately after
42813         repositioning. Needed for glibc.
42814
42815 2007-04-29  Bruno Haible  <bruno@clisp.org>
42816
42817         * lib/freading.c (freading): Trivial simplification.
42818
42819 2007-04-28  Bruno Haible  <bruno@clisp.org>
42820
42821         * tests/test-fwriting.c (main): Also test the interaction between
42822         fflush and fwriting.
42823         * modules/fwriting-tests (Depends-on): Add fflush.
42824
42825         * tests/test-freading.c (main): Also test the interaction between
42826         fflush and freading.
42827         * modules/freading-tests (Depends-on): Add fflush.
42828
42829 2007-04-28  Bruno Haible  <bruno@clisp.org>
42830
42831         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
42832         fseeko and ftello.
42833         Suggested by Eric Blake.
42834
42835 2007-04-28  Jim Meyering  <jim@meyering.net>
42836
42837         Avoid false-negative in gl_STDINT_H's C99 conformance test.
42838         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
42839         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
42840
42841 2007-04-27  Eric Blake  <ebb9@byu.net>
42842
42843         * doc/headers/assert.texi (assert.h): Document assert module use.
42844
42845 2007-04-27  Bruno Haible  <bruno@clisp.org>
42846
42847         * doc/headers/*.texi: New files.
42848         * doc/gnulib.texi (Header File Substitutes): New chapter.
42849         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
42850         dependencies.
42851         (standards.info ,standards.html, standards.dvi): Update dependencies.
42852         (mostlyclean, clean): New targets.
42853
42854 2007-04-27  Bruno Haible  <bruno@clisp.org>
42855
42856         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
42857         * modules/sysexits (Files, Makefile.am): Update.
42858
42859         * lib/sys_socket_.h: Renamed from lib/socket_.h.
42860         * modules/sys_socket (Files, Makefile.am): Update.
42861
42862         * lib/sys_stat_.h: Renamed from lib/stat_.h.
42863         * modules/sys_stat (Files, Makefile.am): Update.
42864
42865 2007-04-27  Eric Blake  <ebb9@byu.net>
42866
42867         * lib/freading.h: Improve comments.
42868         * lib/fwriting.h: Likewise.
42869         * lib/fflush.c: Likewise.
42870
42871         Fix closein for mingw.
42872         * modules/closein-tests: Add tests for closein.
42873         * tests/test-closein.c: New file.
42874         * tests/test-closein.sh: Likewise.
42875         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
42876         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
42877
42878 2007-04-27  Bruno Haible  <bruno@clisp.org>
42879
42880         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
42881         version is < 6.
42882         * lib/math_.h [__DECC]: Likewise.
42883         * lib/stdio_.h [__DECC]: Likewise.
42884         * lib/stdlib_.h [__DECC]: Likewise.
42885         * lib/string_.h [__DECC]: Likewise.
42886         * lib/time_.h [__DECC]: Likewise.
42887         * lib/wchar_.h [__DECC]: Likewise.
42888         * lib/wctype_.h [__DECC]: Likewise.
42889
42890 2007-04-27  Bruno Haible  <bruno@clisp.org>
42891
42892         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
42893
42894 2007-04-27  Bruno Haible  <bruno@clisp.org>
42895
42896         * lib/fflush.c: Add comments.
42897         * modules/fpurge-tests (Depends-on): Add fflush.
42898         * modules/freadable-tests (Depends-on): Likewise.
42899         * modules/fwritable-tests (Depends-on): Likewise.
42900
42901 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
42902
42903         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
42904         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
42905         Report by Bruno Haible <bruno@clisp.org>.
42906
42907 2007-04-26  Eric Blake  <ebb9@byu.net>
42908
42909         Fix fflush on mingw.
42910         * modules/fflush (Depends-on): Add freading.
42911         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
42912         but unread data.
42913
42914 2007-04-26  Eric Blake  <ebb9@byu.net>
42915         and Bruno Haible  <bruno@clisp.org>
42916
42917         Implement freading and fwriting.
42918         * lib/freading.c: New file.
42919         * lib/freading.h: Likewise.
42920         * m4/freading.m4: Likewise.
42921         * modules/freading: Likewise.
42922         * modules/freading-tests: Likewise.
42923         * tests/test-freading.c: Likewise.
42924         * lib/fwriting.c: New file.
42925         * lib/fwriting.h: Likewise.
42926         * m4/fwriting.m4: Likewise.
42927         * modules/fwriting: Likewise.
42928         * modules/fwriting-tests: Likewise.
42929         * tests/test-fwriting.c: Likewise.
42930         * MODULES.html.sh (File stream based Input/Output): Mention them.
42931
42932 2007-04-26  Bruno Haible  <bruno@clisp.org>
42933
42934         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
42935         'long' when we assume it.
42936         Suggested by Eric Blake.
42937
42938 2007-04-26  Bruno Haible  <bruno@clisp.org>
42939
42940         Ensure fseeko, ftello are declared on glibc systems.
42941         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
42942         * modules/fseeko (configure.ac-early): Likewise.
42943         * modules/ftello (configure.ac-early): Likewise.
42944         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
42945         AC_FUNC_FSEEKO for this.
42946         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
42947         (gl_CHECK_FSEEKO): Remove macro.
42948
42949 2007-04-26  Bruno Haible  <bruno@clisp.org>
42950
42951         * tests/test-fflush.c (main): Also check the ftell result after
42952         fflush and fseek/fseeko.
42953         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
42954         file descriptor position cache in the stream.
42955         * lib/fseeko.c (rpl_fseeko): Likewise.
42956
42957 2007-04-26  Bruno Haible  <bruno@clisp.org>
42958
42959         * modules/fflush-tests (Depends-on): Add fseeko.
42960
42961 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
42962             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42963
42964         * lib/argz_.h: ensure error_t definition is obtained in same
42965         mechanism system argz.h would have.
42966         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
42967         argz facilities are known bad.  Err on the side of caution if
42968         cross-compiling.
42969
42970 2007-04-25  Eric Blake  <ebb9@byu.net>
42971
42972         * lib/fpurge.c (includes): Use stdlib.h for free.
42973         * tests/test-fflush.c (main): Also test fflush-fseeko.
42974
42975 2007-04-25  Bruno Haible  <bruno@clisp.org>
42976
42977         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
42978         * lib/fseeko.c: New file.
42979         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
42980         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
42981         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
42982         gl_FUNC_FSEEKO.
42983         (gl_FUNC_FSEEKO): Invoke it.
42984         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
42985         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
42986         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
42987
42988 2007-04-25  Bruno Haible  <bruno@clisp.org>
42989
42990         * modules/fflush (Depends-on): Add ftello.
42991
42992 2007-04-25  Bruno Haible  <bruno@clisp.org>
42993
42994         * modules/ftello-tests: New file.
42995         * tests/test-ftello.c: New file.
42996
42997         * modules/ftello: New file.
42998         * m4/ftello.m4: New file.
42999         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
43000         HAVE_FTELLO.
43001         * lib/stdio_.h (ftello): New declaration.
43002         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
43003         HAVE_FTELLO.
43004
43005 2007-04-25  Bruno Haible  <bruno@clisp.org>
43006
43007         * modules/fseeko-tests: New file.
43008         * tests/test-fseeko.c: New file.
43009
43010         * modules/fseeko: New file.
43011         * m4/fseeko.m4: New file.
43012         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
43013         HAVE_FSEEKO.
43014         * lib/stdio_.h (fseeko): New declaration.
43015         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
43016         HAVE_FSEEKO.
43017
43018 2007-04-25  Bruno Haible  <bruno@clisp.org>
43019
43020         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
43021
43022 2007-04-25  Bruno Haible  <bruno@clisp.org>
43023
43024         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
43025         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
43026         * tests/test-unistd.c: Likewise.
43027         * tests/test-fcntl.c: Likewise.
43028
43029 2007-04-23  Eric Blake  <ebb9@byu.net>
43030
43031         * lib/fflush.c: Fix missing include.
43032         Reported by Bruno Haible.
43033
43034 2007-04-23  Bruno Haible  <bruno@clisp.org>
43035
43036         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
43037         Reported by Eric Blake.
43038
43039 2007-04-23  Bruno Haible  <bruno@clisp.org>
43040
43041         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
43042
43043 2007-04-23  Bruno Haible  <bruno@clisp.org>
43044
43045         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
43046
43047 2007-04-23  Bruno Haible  <bruno@clisp.org>
43048
43049         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
43050         Needed on HP-UX 11.
43051
43052 2007-04-16  Eric Blake  <ebb9@byu.net>
43053
43054         Make fflush rely on fpurge.
43055         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
43056         open coding all variants.
43057         * modules/fflush (Depends-on): Add fpurge and unistd.
43058         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
43059         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
43060
43061         Fix --with-tests compilation on cygwin.
43062         * modules/argmatch-tests (Makefile.am): List gnulib library first
43063         in LDADD.
43064         * modules/argp-tests (Makefile.am): Likewise.
43065         * modules/array-list-tests (Makefile.am): Likewise.
43066         * modules/array-oset-tests (Makefile.am): Likewise.
43067         * modules/avltree-list-tests (Makefile.am): Likewise.
43068         * modules/avltree-oset-tests (Makefile.am): Likewise.
43069         * modules/avltreehash-list-tests (Makefile.am): Likewise.
43070         * modules/carray-list-tests (Makefile.am): Likewise.
43071         * modules/dirname-tests (Makefile.am): Likewise.
43072         * modules/frexp-tests (Makefile.am): Likewise.
43073         * modules/isnanl-tests (Makefile.am): Likewise.
43074         * modules/linked-list-tests (Makefile.am): Likewise.
43075         * modules/linkedhash-list-tests (Makefile.am): Likewise.
43076         * modules/lock-tests (Makefile.am): Likewise.
43077         * modules/rbtree-list-tests (Makefile.am): Likewise.
43078         * modules/rbtree-oset-tests (Makefile.am): Likewise.
43079         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
43080         * modules/tls-tests (Makefile.am): Likewise.
43081         * modules/tsearch-tests (Makefile.am): Likewise.
43082         * modules/xvasprintf-tests (Makefile.am): Likewise.
43083
43084         Fix fpurge for cygwin.
43085         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
43086         value.
43087         * modules/fpurge-tests (Depends-on): Clean up trash.
43088
43089 2007-04-16  Simon Josefsson  <simon@josefsson.org>
43090
43091         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
43092
43093         * m4/autobuild.m4: Re-indent.
43094
43095 2007-04-13  Bruno Haible  <bruno@clisp.org>
43096
43097         * modules/fpurge-tests: New file.
43098         * tests/test-fpurge.c: New file.
43099
43100         * modules/fpurge: New file.
43101         * lib/fpurge.h: New file.
43102         * lib/fpurge.c: New file.
43103         * m4/fpurge.m4: New file.
43104
43105 2007-04-13  Bruno Haible  <bruno@clisp.org>
43106
43107         * modules/fbufmode-tests: New file.
43108         * tests/test-fbufmode.c: New file.
43109
43110         * modules/fbufmode: New file.
43111         * lib/fbufmode.h: New file.
43112         * lib/fbufmode.c: New file.
43113         * m4/fbufmode.m4: New file.
43114
43115 2007-04-13  Bruno Haible  <bruno@clisp.org>
43116
43117         * modules/fwritable-tests: New file.
43118         * tests/test-fwritable.c: New file.
43119
43120         * modules/fwritable: New file.
43121         * lib/fwritable.h: New file.
43122         * lib/fwritable.c: New file.
43123         * m4/fwritable.m4: New file.
43124
43125 2007-04-13  Bruno Haible  <bruno@clisp.org>
43126
43127         * modules/freadable-tests: New file.
43128         * tests/test-freadable.c: New file.
43129
43130         * modules/freadable: New file.
43131         * lib/freadable.h: New file.
43132         * lib/freadable.c: New file.
43133         * m4/freadable.m4: New file.
43134
43135 2007-04-13  Bruno Haible  <bruno@clisp.org>
43136
43137         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
43138         MOSTLYCLEANFILES.
43139
43140 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
43141
43142         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
43143         gzip bootstrap.conf to avoid dragging in i18n machinery.
43144         (gnulib_tool_option): Use it.
43145
43146 2007-04-13  Bruno Haible  <bruno@clisp.org>
43147
43148         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
43149         %F directives.
43150         * tests/test-vasprintf-posix.c (test_function): Likewise.
43151         * tests/test-snprintf-posix.h (test_function): Likewise.
43152         * tests/test-sprintf-posix.h (test_function): Likewise.
43153         * tests/test-fprintf-posix.h (test_function): Likewise.
43154         * tests/test-printf-posix.h (test_function): Likewise.
43155         * tests/test-fprintf-posix.out: Likewise.
43156
43157 2007-04-13  Bruno Haible  <bruno@clisp.org>
43158
43159         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
43160         * modules/tls-tests (configure.ac): Likewise.
43161         Reported by Arto C. Nirkko <anirkko@insel.ch>.
43162
43163 2007-04-13  Bruno Haible  <bruno@clisp.org>
43164
43165         * lib/tls.c (glthread_tls_get): Fix return type.
43166         Patch by Arto C. Nirkko <anirkko@insel.ch>.
43167
43168 2007-04-12  Eric Blake  <ebb9@byu.net>
43169
43170         * modules/gettime (Depends-on): Remove gettime.
43171         Reported by Dmitry V. Levin.
43172
43173 2007-04-12  Bruno Haible  <bruno@clisp.org>
43174
43175         * modules/fflush (Include): Mention <stdio.h>.
43176         * modules/strtoimax (Include): Mention <inttypes.h>.
43177         * modules/strtoumax (Include): Likewise.
43178
43179 2007-04-12  Eric Blake  <ebb9@byu.net>
43180
43181         * .cvsignore: New file.
43182         * .gitignore: Likewise.
43183
43184 2007-04-12  Bruno Haible  <bruno@clisp.org>
43185
43186         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
43187         not before, since $(LDADD) often contains libgnu.a.
43188         * modules/striconv-tests (test_striconv_LDADD): Likewise.
43189         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
43190         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
43191         Needed on Cygwin.
43192
43193 2007-04-12  Eric Blake  <ebb9@byu.net>
43194
43195         Work around glibc's failure to flush stdin on fclose.
43196         * lib/closein.c (close_stdin): Flush stdin before closing.
43197
43198         Work around glibc's failure to reset seekable stdin on exit.
43199         * modules/closein: New module.
43200         * lib/closein.c: New file.
43201         * lib/closein.h: Likewise.
43202         * m4/closein.m4: Likewise.
43203         * MODULES.html.sh (File stream based Input/Output): Document it.
43204
43205 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43206
43207         * gnulib-tool: Rename generated 'autobuild' script to
43208         'do-autobuild' in --create-megatestdir output.
43209
43210         * doc/gnulib.texi (Build robot for gnulib): Fix.
43211
43212 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43213
43214         * modules/sysexits (Depends-on): Add absolute-header.
43215
43216 2007-04-12  Eric Blake  <ebb9@byu.net>
43217
43218         No need to preserve errno on success.
43219         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
43220         Reported by Bruno Haible.
43221
43222 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43223
43224         * MODULES.html.sh (Support for maintaining and releasing
43225         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
43226
43227 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43228
43229         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
43230
43231 2007-04-12  Simon Josefsson  <simon@josefsson.org>
43232
43233         * modules/autobuild: New module.
43234
43235         * m4/autobuild.m4: New file.
43236
43237 2007-04-11  Bruno Haible  <bruno@clisp.org>
43238
43239         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
43240         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
43241         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
43242         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
43243         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
43244         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43245         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43246         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
43247         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43248         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43249         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
43250         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43251         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43252         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
43253         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43254         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43255         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
43256         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43257         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43258         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
43259         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43260         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43261         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
43262         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43263         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43264         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
43265         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
43266         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
43267         Reported by Eric Blake.
43268
43269 2007-04-11  Bruno Haible  <bruno@clisp.org>
43270
43271         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
43272
43273 2007-04-10  Bruno Haible  <bruno@clisp.org>
43274
43275         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
43276         for NaN and Infinity. Needed on FreeBSD 6.1.
43277         * tests/test-vasnprintf-posix.c (test_function): Undo last change
43278         regarding results for "%010a" of Infinity and NaN.
43279         * tests/test-vasprintf-posix.c (test_function): Likewise.
43280         * tests/test-snprintf-posix.h (test_function): Likewise.
43281         * tests/test-sprintf-posix.h (test_function): Likewise.
43282         * tests/test-fprintf-posix.h (test_function): Likewise.
43283         * tests/test-printf-posix.h (test_function): Likewise.
43284         * tests/test-fprintf-posix.out: Likewise.
43285
43286 2007-04-10  Bruno Haible  <bruno@clisp.org>
43287
43288         * modules/locale-tests: New file.
43289         * tests/test-locale.c: New file.
43290
43291         * modules/locale: New file.
43292         * lib/locale_.h: New file.
43293         * m4/locale_h.m4: New file.
43294
43295 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
43296             Bruno Haible  <bruno@clisp.org>
43297
43298         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
43299         be determined, test for availability of the copysignf, copysign,
43300         copysignl functions.
43301         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
43302         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
43303         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
43304
43305 2007-04-09  Eric Blake  <ebb9@byu.net>
43306
43307         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
43308         * modules/stdio (Makefile.am): Support fflush.
43309         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43310         * modules/fflush: New file.
43311         * lib/fflush.c: Likewise.
43312         * m4/fflush.m4: Likewise.
43313         * modules/fflush-tests: New test.
43314         * tests/test-fflush.c: Likewise.
43315         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
43316
43317 2007-04-06  Bruno Haible  <bruno@clisp.org>
43318
43319         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
43320         (VASNPRINTF): Use signbit for faster determination whether to print a
43321         minus sign.
43322         * modules/vasnprintf (Files): Remove lib/float+.h.
43323         * modules/fprintf-posix (Depends-on): Add signbit.
43324         * modules/snprintf-posix (Depends-on): Likewise.
43325         * modules/sprintf-posix (Depends-on): Likewise.
43326         * modules/vasnprintf-posix (Depends-on): Likewise.
43327         * modules/vasprintf-posix (Depends-on): Likewise.
43328         * modules/vfprintf-posix (Depends-on): Likewise.
43329         * modules/vsnprintf-posix (Depends-on): Likewise.
43330         * modules/vsprintf-posix (Depends-on): Likewise.
43331
43332 2007-04-06  Bruno Haible  <bruno@clisp.org>
43333
43334         * tests/test-frexp.c (main): Test also the sign bit of zero results.
43335         * tests/test-frexpl.c (main): Likewise.
43336         * tests/test-ldexpl.c (main): Likewise.
43337         * modules/frexp-tests (Depends-on): Add signbit.
43338         * modules/frexpl-tests (Depdends-on): Likewise.
43339         * modules/ldexpl-tests (Depdends-on): Likewise.
43340
43341 2007-04-06  Bruno Haible  <bruno@clisp.org>
43342
43343         * modules/signbit-tests: New file.
43344         * tests/test-signbit.c: New file.
43345
43346         * modules/signbit: New file.
43347         * lib/signbitf.c: New file.
43348         * lib/signbitd.c: New file.
43349         * lib/signbitl.c: New file.
43350         * m4/signbit.m4: New file.
43351         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
43352         (signbit): New macro.
43353         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
43354         REPLACE_SIGNBIT.
43355         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
43356         REPLACE_FREXPL into math.h.
43357
43358 2007-04-06  Bruno Haible  <bruno@clisp.org>
43359
43360         * modules/isnanf-nolibm-tests: New file.
43361         * tests/test-isnanf.c: New file.
43362
43363         * modules/isnanf-nolibm: New file.
43364         * lib/isnanf.h: New file.
43365         * lib/isnanf.c: New file.
43366         * lib/isnan.c: Consider the USE_FLOAT macro.
43367         * m4/isnanf.m4: New file.
43368
43369 2007-04-06  Bruno Haible  <bruno@clisp.org>
43370
43371         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
43372         (Link): New section.
43373
43374         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
43375
43376 2007-04-06  Bruno Haible  <bruno@clisp.org>
43377
43378         Assume the 'long double' type.
43379         * m4/longdouble.m4: Remove file.
43380         * config/srclist.txt: Don't mention longdouble.m4.
43381         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
43382         * lib/float+.h: Likewise.
43383         * lib/frexp.c: Likewise.
43384         * lib/printf-args.h: Likewise.
43385         * lib/printf-args.c: Likewise.
43386         * lib/printf-frexp.c: Likewise.
43387         * lib/printf-parse.c: Likewise.
43388         * lib/vasnprintf.c: Likewise.
43389         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
43390         * m4/intl.m4: Likewise.
43391         * m4/isnanl.m4: Likewise.
43392         * m4/printf.m4: Likewise.
43393         * m4/printf-frexpl.m4: Likewise.
43394         * m4/vasnprintf.m4: Likewise.
43395         * modules/allocsa (Files): Remove m4/longdouble.m4.
43396         * modules/gettext (Files): Likewise.
43397         * modules/relocatable-prog-wrapper (Files): Likewise.
43398         * modules/vasnprintf (Files): Likewise.
43399         * modules/isnanl (Files): Likewise.
43400         (Include): Simplify.
43401         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
43402         (Include): Simplify.
43403         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
43404         (Include): Simplify.
43405         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
43406         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43407         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
43408         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43409         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
43410         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43411         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
43412         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43413         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
43414         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43415         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
43416         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
43417         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
43418         * tests/test-isnanl.c: Likewise.
43419         * tests/test-snprintf-posix.h: Likewise.
43420         * tests/test-sprintf-posix.h: Likewise.
43421         * tests/test-vasnprintf-posix.c: Likewise.
43422         * tests/test-vasnprintf-posix2.c: Likewise.
43423         * tests/test-vasprintf-posix.c: Likewise.
43424
43425 2007-04-06  Bruno Haible  <bruno@clisp.org>
43426
43427         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
43428         * lib/math_.h [__DECC]: Include the overridden include file through
43429         #include_next, outside the double-inclusion guard.
43430         * lib/stdio_.h [__DECC]: Likewise.
43431         * lib/stdlib_.h [__DECC]: Likewise.
43432         * lib/string_.h [__DECC]: Likewise.
43433         * lib/time_.h [__DECC]: Likewise.
43434         * lib/wchar_.h [__DECC]: Likewise.
43435         * lib/wctype_.h [__DECC]: Likewise.
43436         * lib/inttypes_.h [__DECC]: Likewise.
43437         Reported by Albert Chin <china@thewrittenword.com> in
43438         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
43439
43440 2007-04-04  Eric Blake  <ebb9@byu.net>
43441
43442         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
43443         1.5.x.
43444
43445 2007-04-04  Bruno Haible  <bruno@clisp.org>
43446
43447         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
43448         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
43449
43450 2007-04-04  Bruno Haible  <bruno@clisp.org>
43451
43452         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
43453         results for "%010a" of Infinity and NaN.
43454         * tests/test-vasprintf-posix.c (test_function): Likewise.
43455         * tests/test-snprintf-posix.h (test_function): Likewise.
43456         * tests/test-sprintf-posix.h (test_function): Likewise.
43457         * tests/test-fprintf-posix.h (test_function): Remove these tests.
43458         * tests/test-printf-posix.h (test_function): Likewise.
43459         * tests/test-fprintf-posix.out: Update.
43460         Needed for FreeBSD 6.1.
43461
43462 2007-04-04  Bruno Haible  <bruno@clisp.org>
43463
43464         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
43465         directly used by the gnulib modules nor by gnulib-tool.
43466
43467 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
43468
43469         * DEPENDENCIES: Give overall description of version dependency
43470         desirability.  Use more-typical names for apps.
43471         Add shell, coreutils, diffutils, grep, tar, gzip.
43472
43473 2007-04-04  Simon Josefsson  <simon@josefsson.org>
43474
43475         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
43476
43477 2007-04-04  Karl Berry  <karl@gnu.org>
43478
43479         * MODULES.html.sh (func_module): missing '.
43480
43481 2007-04-03  Bruno Haible  <bruno@clisp.org>
43482
43483         * modules/argmatch-tests (Makefile.am): New variable
43484         test_argmatch_LDADD.
43485         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
43486         * modules/array-list-tests (Makefile.am): New variable
43487         test_array_list_LDADD.
43488         * modules/array-oset-tests (Makefile.am): New variable
43489         test_array_oset_LDADD.
43490         * modules/avltree-list-tests (Makefile.am): New variable
43491         test_avltree_list_LDADD.
43492         * modules/avltree-oset-tests (Makefile.am): New variable
43493         test_avltree_oset_LDADD.
43494         * modules/avltreehash-list-tests (Makefile.am): New variable
43495         test_avltreehash_list_LDADD.
43496         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
43497         test_canonicalize_lgpl_LDADD.
43498         * modules/carray-list-tests (Makefile.am): New variable
43499         test_carray_list_LDADD.
43500         * modules/dirname-tests (Makefile.am): New variable
43501         test_dirname_LDADD.
43502         * modules/linked-list-tests (Makefile.am): New variable
43503         test_linked_list_LDADD.
43504         * modules/linkedhash-list-tests (Makefile.am): New variable
43505         test_linkedhash_list_LDADD.
43506         * modules/rbtree-list-tests (Makefile.am): New variable
43507         test_rbtree_list_LDADD.
43508         * modules/rbtree-oset-tests (Makefile.am): New variable
43509         test_rbtree_oset_LDADD.
43510         * modules/rbtreehash-list-tests (Makefile.am): New variable
43511         test_rbtreehash_list_LDADD.
43512         * modules/xvasprintf-tests (Makefile.am): New variable
43513         test_xvasprintf_LDADD.
43514         Reported by Eric Blake.
43515
43516 2007-04-03  Eric Blake  <ebb9@byu.net>
43517
43518         * DEPENDENCIES: Weaken m4 requirements.
43519
43520 2007-04-03  Bruno Haible  <bruno@clisp.org>
43521
43522         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
43523         * modules/isnanl-tests (configure.ac): Likewise.
43524
43525 2007-04-03  Ben Pfaff  <blp@gnu.org>
43526
43527         * modules/iconv_open: Add $(srcdir)/ to source directory
43528         references in Makefile fragments that call gperf, to fix VPATH
43529         builds.
43530
43531 2007-04-03  Bruno Haible  <bruno@clisp.org>
43532
43533         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
43534         * lib/ldexpl.c: Undo last change.
43535
43536 2007-04-03  Bruno Haible  <bruno@clisp.org>
43537
43538         * modules/printf-frexpl (Depends-on): Undo last change.
43539         (Files): Add m4/ldexpl.m4.
43540
43541 2007-04-03  Bruno Haible  <bruno@clisp.org>
43542
43543         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
43544         * modules/isnanl (Link): New section.
43545
43546         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
43547         * modules/frexp (Link): New section.
43548
43549         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
43550         * modules/frexpl (Link): New section.
43551
43552         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
43553         * modules/ldexpl (Link): New section.
43554
43555 2007-04-03  Bruno Haible  <bruno@clisp.org>
43556
43557         * modules/TEMPLATE-EXTENDED: New file.
43558         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
43559
43560 2007-04-03  Bruno Haible  <bruno@clisp.org>
43561
43562         * DEPENDENCIES: New file.
43563         Suggested by Simon Josefsson.
43564
43565 2007-04-03  Bruno Haible  <bruno@clisp.org>
43566
43567         * doc/gnulib.texi: Escape @.
43568
43569 2007-04-03  James Youngman  <jay@gnu.org>
43570         and Paul Eggert  <eggert@cs.ucla.edu>
43571
43572         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
43573         birthtime on all systems that have birthtime, not just those which
43574         use st_birthtimensec rather than st_birthtim.  Putting zero in
43575         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
43576         that the birth time is not available for files on an NFS mount.
43577
43578 2007-04-03  Simon Josefsson  <simon@josefsson.org>
43579
43580         * modules/memxor: Move back from crypto/, suggested by Bruno.
43581         * modules/crypto/hmac-sha1: Fix memxor dependency.
43582
43583         * modules/crypto/gc: Moved from ../.
43584
43585 2007-04-02  Eric Blake  <ebb9@byu.net>
43586
43587         * lib/ldexpl.c (includes): Avoid libm.
43588
43589         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
43590
43591 2007-04-02  Bruno Haible  <bruno@clisp.org>
43592
43593         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
43594         on IRIX.
43595
43596 2007-04-02  Bruno Haible  <bruno@clisp.org>
43597
43598         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
43599         x86 or x86_64 platforms running MacOS X.
43600         Reported by Ryan Schmidt <@ryandesign.com>.
43601
43602 2007-04-02  Bruno Haible  <bruno@clisp.org>
43603
43604         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
43605         i386.
43606
43607 2007-04-01  Simon Josefsson  <simon@josefsson.org>
43608
43609         * modules/crypto/arcfour: Moved from ../.
43610         * modules/crypto/arcfour-tests: Moved from ../.
43611         * modules/crypto/arctwo: Moved from ../.
43612         * modules/crypto/arctwo-tests: Moved from ../.
43613         * modules/crypto/des: Moved from ../.
43614         * modules/crypto/des-tests: Moved from ../.
43615         * modules/crypto/gc-arcfour: Moved from ../.
43616         * modules/crypto/gc-arcfour-tests: Moved from ../.
43617         * modules/crypto/gc-arctwo: Moved from ../.
43618         * modules/crypto/gc-arctwo-tests: Moved from ../.
43619         * modules/crypto/gc-des: Moved from ../.
43620         * modules/crypto/gc-des-tests: Moved from ../.
43621         * modules/crypto/gc-hmac-md5: Moved from ../.
43622         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
43623         * modules/crypto/gc-hmac-sha1: Moved from ../.
43624         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
43625         * modules/crypto/gc-md2: Moved from ../.
43626         * modules/crypto/gc-md2-tests: Moved from ../.
43627         * modules/crypto/gc-md4: Moved from ../.
43628         * modules/crypto/gc-md4-tests: Moved from ../.
43629         * modules/crypto/gc-md5: Moved from ../.
43630         * modules/crypto/gc-md5-tests: Moved from ../.
43631         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
43632         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
43633         * modules/crypto/gc-random: Moved from ../.
43634         * modules/crypto/gc-rijndael: Moved from ../.
43635         * modules/crypto/gc-rijndael-tests: Moved from ../.
43636         * modules/crypto/gc-sha1: Moved from ../.
43637         * modules/crypto/gc-sha1-tests: Moved from ../.
43638         * modules/crypto/gc-tests: Moved from ../.
43639         * modules/crypto/hmac-md5: Moved from ../.
43640         * modules/crypto/hmac-md5-tests: Moved from ../.
43641         * modules/crypto/hmac-sha1: Moved from ../.
43642         * modules/crypto/hmac-sha1-tests: Moved from ../.
43643         * modules/crypto/md2: Moved from ../.
43644         * modules/crypto/md2-tests: Moved from ../.
43645         * modules/crypto/md4: Moved from ../.
43646         * modules/crypto/md4-tests: Moved from ../.
43647         * modules/crypto/md5: Moved from ../.
43648         * modules/crypto/md5-tests: Moved from ../.
43649         * modules/crypto/memxor: Moved from ../.
43650         * modules/crypto/rijndael: Moved from ../.
43651         * modules/crypto/rijndael-tests: Moved from ../.
43652         * modules/crypto/sha1: Moved from ../.
43653
43654 2007-03-30  James Youngman  <jay@gnu.org>
43655
43656         * tests/test-stat-time.c (prepare_test): use chmod() rather than
43657         rename() to change the ctime of a file (because ctime is unaffected
43658         by rename on jfs2 on AIX 5.1).
43659         (main): Start by doing cleanup, in case a previous run failed leaving
43660         test files behind.
43661
43662 2007-03-31  Bruno Haible  <bruno@clisp.org>
43663
43664         Support old proprietary implementations of iconv.
43665         * modules/iconv_open: New file.
43666         * lib/iconv_.h: New file.
43667         * m4/iconv_h.m4: New file.
43668         * lib/iconv_open.c: New file.
43669         * lib/iconv_open-aix.gperf: New file.
43670         * lib/iconv_open-hpux.gperf: New file.
43671         * lib/iconv_open-irix.gperf: New file.
43672         * lib/iconv_open-osf.gperf: New file.
43673         * m4/iconv_open.m4: New file.
43674         * modules/linebreak (Depends-on): Add iconv_open.
43675         * modules/striconv (Depends-on): Likewise.
43676         * modules/striconveh (Depends-on): Likewise.
43677         * modules/unicodeio (Depends-on): Likewise.
43678         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
43679         (iconv_t)(-1).
43680         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
43681         conversion if cd is (iconv_t)(-1).
43682         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
43683         is not possible.
43684
43685 2007-03-31  Bruno Haible  <bruno@clisp.org>
43686
43687         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
43688         work on Solaris either. Protect also second use of "autodetect_jp".
43689
43690 2007-03-31  Bruno Haible  <bruno@clisp.org>
43691
43692         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
43693         the function is not present.
43694
43695 2007-03-31  Bruno Haible  <bruno@clisp.org>
43696
43697         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
43698         the function is not present.
43699
43700 2007-03-31  Bruno Haible  <bruno@clisp.org>
43701
43702         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
43703         a bug in HP-UX iconv_open().
43704
43705 2007-03-31  Bruno Haible  <bruno@clisp.org>
43706
43707         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
43708         (Mathematics <math.h>): New section, add fpieee.
43709         (Input/output <stdio.h>): Add fseterr.
43710         (Mathematics <math.h>): New section, add printf-frexp.
43711         (Container data structures): Add sublist.
43712         (Core language properties): Add fpucw, inline.
43713         (Functions for greatest-width integer types <inttypes.h>): Add
43714         imaxabs, imaxdiv, inttypes.
43715         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
43716         isnanl-nolibm, ldexp.
43717         (Mathematics <math.h>): New section, add printf-frexpl.
43718         (Support for systems lacking POSIX:2001): Add fprintf-posix,
43719         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
43720         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
43721         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
43722         (Unicode string functions): Add unistr/u*-mbtoucr.
43723         (Java): Add javacomp-script, javaexec-script.
43724         (C#): Add csharpcomp-script, csharpexec-script.
43725         (Support for building libraries and executables): Add havelib,
43726         relocatable-*.
43727         (Support for maintaining and releasing projects): Renamed from
43728         'Support for maintaining and release projects'. Add announce-gen.
43729
43730 2007-03-31  Bruno Haible  <bruno@clisp.org>
43731
43732         * README: Talk primarily about git.
43733         (git and CVS): Renamed from CVS.
43734         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
43735         gnulib is available through git.
43736         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
43737
43738 2007-03-30  Bruno Haible  <bruno@clisp.org>
43739
43740         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
43741         * lib/poll_.h: Likewise.
43742         * lib/stat_.h: Likewise.
43743         * lib/sys_time_.h: Likewise.
43744         * lib/sysexit_.h: Likewise.
43745         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
43746         * lib/stdbool_.h: Likewise.
43747         * lib/byteswap_.h: Add double-inclusion guard.
43748
43749 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
43750
43751         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
43752
43753 2007-03-30  Karl Berry  <karl@gnu.org>
43754
43755         * config/srclist-update: double space after USA in the license
43756         substitution, since that's how it's usually (?) written.
43757
43758 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
43759
43760         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
43761         reported by Bruno Haible.
43762
43763 2007-03-29  Bruno Haible  <bruno@clisp.org>
43764
43765         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
43766         a bug in AIX iconv().
43767
43768 2007-03-29  Bruno Haible  <bruno@clisp.org>
43769
43770         * modules/ldexpl-tests: New file.
43771         * tests/test-ldexpl.c: New file.
43772
43773 2007-03-29  Bruno Haible  <bruno@clisp.org>
43774
43775         * lib/ldexpl.c: Include fpucw.h.
43776         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
43777         multiplication.
43778         * modules/ldexpl (Depends-on): Add fpucw.
43779
43780 2007-03-29  Bruno Haible  <bruno@clisp.org>
43781
43782         * modules/ldexpl: New file.
43783         * m4/ldexpl.m4: New file.
43784         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
43785         set.
43786         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
43787         REPLACE_LDEXPL.
43788         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
43789         REPLACE_LDEXPL.
43790         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
43791         gl_FUNC_LDEXPL_WORKS.
43792         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
43793         * modules/mathl (Files): Remove lib/ldexpl.c.
43794         (Depends-on): Add ldexpl.
43795
43796 2007-03-29  Bruno Haible  <bruno@clisp.org>
43797
43798         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
43799
43800 2007-03-29  Bruno Haible  <bruno@clisp.org>
43801
43802         * tests/test-striconveh.c (main): Don't assume that a direct conversion
43803         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
43804         and possibly also HP-UX.
43805         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
43806         work on AIX, IRIX, HP-UX, OSF/1.
43807         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
43808         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
43809         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
43810         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
43811         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
43812         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
43813
43814 2007-03-29  Bruno Haible  <bruno@clisp.org>
43815
43816         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
43817
43818 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
43819
43820         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
43821         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
43822
43823 2007-03-29  Eric Blake  <ebb9@byu.net>
43824
43825         * lib/acl-internal.h: Remove redundant include.
43826         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
43827         Cygwin when a file is locked.
43828
43829 2007-03-29  Bruno Haible  <bruno@clisp.org>
43830
43831         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
43832         file.
43833         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
43834
43835 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
43836
43837         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
43838         try to remove a parent directory if the child couldn't be removed
43839         (except for the first rmdir, which could fail because the child
43840         doesn't exist).  Problem reported by Jeff Blaine in
43841         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
43842
43843 2007-03-28  Bruno Haible  <bruno@clisp.org>
43844
43845         * lib/striconveh.c (utf8conv_carefully): New function.
43846         (mem_cd_iconveh_internal): Invoke it.
43847
43848 2007-03-28  Bruno Haible  <bruno@clisp.org>
43849
43850         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
43851         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
43852         input.
43853         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
43854         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
43855         unistr/u8-uctomb.
43856
43857 2007-03-28  Bruno Haible  <bruno@clisp.org>
43858
43859         * modules/unistr/u8-mbtoucr: New file.
43860         * lib/unistr/u8-mbtoucr.c: New file.
43861         * modules/unistr/u16-mbtoucr: New file.
43862         * lib/unistr/u16-mbtoucr.c: New file.
43863         * modules/unistr/u16-mbtoucr: New file.
43864         * lib/unistr/u16-mbtoucr.c: New file.
43865         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
43866
43867 2007-03-27  Simon Josefsson  <simon@josefsson.org>
43868             Bruno Haible  <bruno@clisp.org>
43869
43870         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
43871         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
43872         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
43873
43874         * m4/stdio_h.m4: Add stubs for vasprintf too.
43875
43876         * modules/stdio: Support vasprintf in sed command.
43877
43878         * modules/vasprintf: Depend on stdio for prototypes.  Remove
43879         vasprintf.h.  Add stdio module indicator.
43880
43881         * lib/stdio_.h: Declare asprintf and vasprintf, based on
43882         vasprintf.h.
43883
43884         * lib/vasprintf.h: File removed.
43885
43886         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
43887         * lib/vasprintf.c: Ditto.
43888         * lib/xvasprintf.c: Ditto.
43889         * tests/test-vasprintf-posix.c: Ditto.
43890         * tests/test-vasprintf.c: Ditto.
43891
43892 2007-03-27  Bruno Haible  <bruno@clisp.org>
43893
43894         Make vasnprintf multithread-safe.
43895         * lib/vasnprintf.c (decimal_point_char): New function.
43896         (VASNPRINTF): Use it.
43897         Suggested by Simon Josefsson.
43898
43899 2007-03-27  Eric Blake  <ebb9@byu.net>
43900
43901         Support sub-second birthtime on cygwin.
43902         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
43903         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
43904         (get_stat_birthtime): Also work with st_birthtim.
43905
43906 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
43907
43908         * lib/stat-time.h (USE_BIRTHTIME): Remove.
43909         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
43910         (get_stat_birthtime_ns): Do not try to use "spare" fields.
43911         (get_stat_birthtime_ns): Simplify compile-time tests.
43912         (get_stat_birthtime): Change the API to look like
43913         get_stat_mtime etc., except return a negative tv_nsec on error.
43914         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
43915         Don't check for "spare" fields.
43916         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
43917         or for struct stat.st_birthtime, as these tests aren't used.
43918         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
43919
43920 2007-03-27  Bruno Haible  <bruno@clisp.org>
43921
43922         * lib/stat-time.h: Include <sys/stat.h>.
43923
43924 2007-03-27  James Youngman  <jay@gnu.org>
43925
43926         * lib/stat-time.h (get_stat_birthtime): New function for
43927           retrieving st_birthtime as provided by UFS2 (hence *BSD).
43928         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
43929           and its variants.
43930         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
43931         * modules/stat-time-test: New file.
43932         * tests/test-stat-time.c: New test, devised by Bruno Haible.
43933
43934 2007-03-26  Bruno Haible  <bruno@clisp.org>
43935
43936         Better support of signalling NaNs.
43937         * lib/atanl.c: Include isnanl.h.
43938         (atanl): Perform test for NaN at the beginning of the function and
43939         through a call to isnanl.
43940         * lib/cosl.c: Include isnanl.h.
43941         (cosl): Perform test for NaN at the beginning of the function and
43942         through a call to isnanl.
43943         * lib/ldexpl.c: Include isnanl.h.
43944         (ldexpl): Perform test for NaN through a call to isnanl.
43945         * lib/logl.c: Include isnanl.h.
43946         (logl): Perform test for NaN at the beginning of the function and
43947         through a call to isnanl.
43948         * lib/sinl.c: Include isnanl.h.
43949         (sinl): Perform test for NaN at the beginning of the function and
43950         through a call to isnanl.
43951         * lib/sqrtl.c: Include isnanl.h.
43952         (sqrtl): Perform test for NaN at the beginning of the function and
43953         through a call to isnanl.
43954         * lib/tanl.c: Include isnanl.h.
43955         (tanl): Perform test for NaN at the beginning of the function and
43956         through a call to isnanl.
43957         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
43958         * modules/mathl (Depends-on): Add isnanl.
43959
43960 2007-03-26  Eric Blake  <ebb9@byu.net>
43961
43962         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
43963         regression in logic sense of previous patch.
43964
43965 2007-03-26  Bruno Haible  <bruno@clisp.org>
43966
43967         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
43968         unportable shell command "if ! ...".
43969         Reported by Ralf Wildenhues.
43970
43971 2007-03-25  Bruno Haible  <bruno@clisp.org>
43972
43973         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
43974         <sysexits.h> file, and only add EX_CONFIG.
43975         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
43976         absolute file name and whether it is sufficient. Substitute also
43977         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
43978         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
43979         ABSOLUTE_SYSEXITS_H into sysexits.h.
43980
43981 2007-03-25  Bruno Haible  <bruno@clisp.org>
43982
43983         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
43984         hints is NULL.
43985
43986 2007-03-25  Bruno Haible  <bruno@clisp.org>
43987
43988         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
43989         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
43990
43991 2007-03-25  Bruno Haible  <bruno@clisp.org>
43992
43993         * lib/vasnprintf.c: Include langinfo.h.
43994         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
43995         multithread-safe.
43996         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
43997         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
43998         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
43999         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44000         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44001         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44002         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
44003         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
44004         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44005         Reported by Simon Josefsson.
44006
44007 2007-03-25  Bruno Haible  <bruno@clisp.org>
44008
44009         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
44010         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
44011         * modules/vasnprintf (Depends-on): Add stdint.
44012
44013 2007-03-25  Bruno Haible  <bruno@clisp.org>
44014
44015         * modules/fpieee: New file.
44016         * m4/fpieee.m4: New file.
44017         * modules/isnan-nolibm (Depends-on): Add fpieee.
44018         * modules/isnanl-nolibm (Depends-on): Add fpieee.
44019         * modules/isnanl (Depends-on): Add fpieee.
44020
44021 2007-03-25  Bruno Haible  <bruno@clisp.org>
44022
44023         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
44024
44025 2007-03-25  Bruno Haible  <bruno@clisp.org>
44026
44027         Avoid test failures on IRIX 6.5.
44028         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
44029         (main): Use it.
44030         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
44031         macros.
44032         (main): Use them.
44033
44034 2007-03-25  Bruno Haible  <bruno@clisp.org>
44035
44036         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
44037         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
44038         exists but doesn't work.
44039         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
44040         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
44041         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
44042         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
44043
44044 2007-03-25  Bruno Haible  <bruno@clisp.org>
44045
44046         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
44047         returns inf. Needed on IRIX 6.5.
44048
44049 2007-03-25  Bruno Haible  <bruno@clisp.org>
44050
44051         * tests/test-frexpl.c: Include isnanl-nolibm.h.
44052         (main): Use isnanl instead of x != x idiom.
44053         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
44054
44055         * tests/test-frexp.c: Include isnan.h.
44056         (main): Use isnan instead of x != x idiom.
44057         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
44058
44059 2007-03-25  Bruno Haible  <bruno@clisp.org>
44060
44061         * tests/test-frexp.c (NaN): New function/macro.
44062         (main): Use it instead of 0.0 / 0.0.
44063         * tests/test-isnan.c (NaN): New function/macro.
44064         (main): Use it instead of 0.0 / 0.0.
44065         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
44066         (test_function): Use it instead of 0.0 / 0.0.
44067         * tests/test-vasprintf-posix.c (NaN): New function/macro.
44068         (test_function): Use it instead of 0.0 / 0.0.
44069         * tests/test-snprintf-posix.h (NaN): New function/macro.
44070         (test_function): Use it instead of 0.0 / 0.0.
44071         * tests/test-sprintf-posix.h (NaN): New function/macro.
44072         (test_function): Use it instead of 0.0 / 0.0.
44073         * tests/test-fprintf-posix.h (NaN): New function/macro.
44074         (test_function): Use it instead of 0.0 / 0.0.
44075         * tests/test-printf-posix.h (NaN): New function/macro.
44076         (test_function): Use it instead of 0.0 / 0.0.
44077
44078         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
44079
44080 2007-03-25  Bruno Haible  <bruno@clisp.org>
44081
44082         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
44083
44084 2007-03-25  Bruno Haible  <bruno@clisp.org>
44085
44086         * lib/regexec.c (merge_state_with_log): Make static.
44087
44088 2007-03-25  Bruno Haible  <bruno@clisp.org>
44089
44090         * lib/trigl.c (kernel_rem_pio2): Make static.
44091
44092 2007-03-25  Bruno Haible  <bruno@clisp.org>
44093
44094         * lib/sincosl.c (sincosl_table): Make static.
44095
44096 2007-03-25  Bruno Haible  <bruno@clisp.org>
44097
44098         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
44099         if the compiler does not support C99.
44100
44101 2007-03-25  Bruno Haible  <bruno@clisp.org>
44102
44103         * modules/time (Makefile.am): Ensure all rule action lines start with a
44104         tab.
44105
44106 2007-03-24  Bruno Haible  <bruno@clisp.org>
44107
44108         * modules/tsearch-tests: New file.
44109         * tests/test-tsearch.sh: New file.
44110         * tests/test-tsearch.c: New file, mostly copied from glibc.
44111
44112         * modules/search-tests: New file.
44113         * tests/test-search.c: New file.
44114
44115         * modules/search: New file.
44116         * lib/search_.h: New file, incorporating lib/tsearch.h.
44117         * m4/search_h.m4: New file.
44118         * lib/tsearch.h: Remove file.
44119         * lib/tsearch.c: Include search.h instead of tsearch.h.
44120         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
44121         HAVE_TSEARCH.
44122         * modules/tsearch (Files): Remove lib/tsearch.h.
44123         (Depends-on): Add search.
44124         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
44125         (Include): Change tsearch.h into search.h.
44126
44127 2007-03-24  Bruno Haible  <bruno@clisp.org>
44128
44129         * modules/fpucw: New file.
44130         * lib/fpucw.h: New file.
44131         * lib/frexp.c: Include fpucw.h.
44132         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
44133         (FUNC): Use them.
44134         * lib/printf-frexp.c: Include fpucw.h.
44135         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
44136         (FUNC): Use them.
44137         * lib/vasnprintf.c: Include fpucw.h.
44138         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
44139         'long double' calculations.
44140         * tests/test-frexpl.c: Include fpucw.h.
44141         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
44142         * tests/test-printf-frexpl.c: Include fpucw.h.
44143         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
44144         * modules/frexpl (Depends-on): Add fpucw.
44145         * modules/printf-frexpl (Depends-on): Likewise.
44146         * modules/fprintf-posix (Depends-on): Likewise.
44147         * modules/snprintf-posix (Depends-on): Likewise.
44148         * modules/sprintf-posix (Depends-on): Likewise.
44149         * modules/vasnprintf-posix (Depends-on): Likewise.
44150         * modules/vasprintf-posix (Depends-on): Likewise.
44151         * modules/vfprintf-posix (Depends-on): Likewise.
44152         * modules/vsnprintf-posix (Depends-on): Likewise.
44153         * modules/vsprintf-posix (Depends-on): Likewise.
44154         * modules/frexpl-tests (Depends-on): Likewise.
44155         * modules/printf-frexpl-tests (Depends-on): Likewise.
44156
44157 2007-03-24  Bruno Haible  <bruno@clisp.org>
44158
44159         * lib/float+.h: New file.
44160         * lib/isnan.c: Include float+.h.
44161         (SIZE): New macro.
44162         (FUNC): Compare only SIZE bytes of the value.
44163         * lib/vasnprintf.c: Include float+.h.
44164         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
44165         SIZEOF_LDBL or SIZEOF_DBL bytes.
44166         * modules/isnan-nolibm (Files): Add lib/float+.h.
44167         * modules/isnanl-nolibm (Files): Add lib/float+.h.
44168         * modules/isnanl (Files): Add lib/float+.h.
44169         * modules/vasnprintf (Files): Add lib/float+.h.
44170
44171 2007-03-24  Bruno Haible  <bruno@clisp.org>
44172
44173         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
44174         include isnanl-nolibm.h.
44175
44176 2007-03-24  Bruno Haible  <bruno@clisp.org>
44177
44178         * tests/test-read-file.c (main): Don't produce spurious output for
44179         expected situations. Make the test fail if it encountered unexpected
44180         results.
44181
44182 2007-03-24  Bruno Haible  <bruno@clisp.org>
44183
44184         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
44185         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
44186
44187 2007-03-24  Bruno Haible  <bruno@clisp.org>
44188
44189         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
44190
44191 2007-03-24  Bruno Haible  <bruno@clisp.org>
44192
44193         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
44194         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
44195
44196         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
44197         * modules/utf8-ucs4: Turn into a symbolic link to module
44198         unistr/u8-mbtouc.
44199
44200         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
44201         utf8-ucs4-unsafe.
44202         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
44203         unistr/u8-mbtouc-unsafe.
44204
44205         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
44206         * modules/utf16-ucs4: Turn into a symbolic link to module
44207         unistr/u16-mbtouc.
44208
44209         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
44210         utf16-ucs4-unsafe.
44211         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
44212         unistr/u16-mbtouc-unsafe.
44213
44214         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
44215         * modules/ucs4-utf8: Turn into a symbolic link to module
44216         unistr/u8-ubtomb.
44217
44218         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
44219         * modules/ucs4-utf16: Turn into a symbolic link to module
44220         unistr/u16-ubtomb.
44221
44222 2007-03-24  Bruno Haible  <bruno@clisp.org>
44223
44224         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
44225         Enable the function only if HAVE_INLINE.
44226         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
44227         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
44228         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
44229         Enable the function only if HAVE_INLINE.
44230         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
44231         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
44232         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
44233         Enable the function only if HAVE_INLINE.
44234         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
44235         Enable the function only if HAVE_INLINE.
44236         * modules/utf8-ucs4: Update.
44237         * modules/utf8-ucs4-unsafe: Update.
44238         * modules/utf16-ucs4: Update.
44239         * modules/utf16-ucs4-unsafe: Update.
44240         * modules/ucs4-utf8: Update.
44241         * modules/ucs4-utf16: Update.
44242
44243 2007-03-24  Bruno Haible  <bruno@clisp.org>
44244
44245         * lib/utf8-ucs4.h: Remove file.
44246         * lib/utf8-ucs4-unsafe.h: Remove file.
44247         * lib/utf16-ucs4.h: Remove file.
44248         * lib/utf16-ucs4-unsafe.h: Remove file.
44249         * lib/ucs4-utf8.h: Remove file.
44250         * lib/ucs4-utf16.h: Remove file.
44251         * lib/unistr.h: Include their previous contents.
44252         * m4/utf-ucs4.m4: Remove file.
44253         * m4/ucs4-utf.m4: Remove file.
44254         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
44255         (Depends-on): Add unistr/base.
44256         (configure.ac): Remove gl_UTF_UCS4.
44257         (Makefile.am): Update.
44258         (Include): Change to unistr.h.
44259         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
44260         (Depends-on): Add unistr/base.
44261         (configure.ac): Remove gl_UTF_UCS4.
44262         (Makefile.am): Update.
44263         (Include): Change to unistr.h.
44264         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
44265         (Depends-on): Add unistr/base.
44266         (configure.ac): Remove gl_UTF_UCS4.
44267         (Makefile.am): Update.
44268         (Include): Change to unistr.h.
44269         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
44270         (Depends-on): Add unistr/base.
44271         (configure.ac): Remove gl_UTF_UCS4.
44272         (Makefile.am): Update.
44273         (Include): Change to unistr.h.
44274         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
44275         (Depends-on): Add unistr/base.
44276         (configure.ac): Remove gl_UCS4_UTF.
44277         (Makefile.am): Update.
44278         (Include): Change to unistr.h.
44279         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
44280         (Depends-on): Add unistr/base.
44281         (configure.ac): Remove gl_UCS4_UTF.
44282         (Makefile.am): Update.
44283         (Include): Change to unistr.h.
44284         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
44285         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
44286         utf8-ucs4-unsafe.h.
44287         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
44288         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
44289         utf16-ucs4-unsafe.h.
44290         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
44291         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
44292         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
44293         * lib/unistr/u8-strchr.c: Likewise.
44294         * lib/unistr/u8-strrchr.c: Likewise.
44295         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
44296         * lib/unistr/u16-strchr.c: Likewise.
44297         * lib/unistr/u16-strrchr.c: Likewise.
44298         * lib/striconveh.c: Update.
44299         * lib/linebreak.c: Update.
44300
44301 2007-03-24  Bruno Haible  <bruno@clisp.org>
44302
44303         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
44304         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
44305
44306 2007-03-22  Bruno Haible  <bruno@clisp.org>
44307
44308         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
44309
44310 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
44311
44312         * MODULES.html.sh (File system functions): New module write-any-file.
44313         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
44314         * m4/write-any-file.m4: New files.
44315
44316 2007-03-23  Eric Blake  <ebb9@byu.net>
44317
44318         * gnulib-tool: Rearrange space-tab sequences, since some editors
44319         like to eat them.
44320
44321 2007-03-23  Eric Blake  <ebb9@byu.net>
44322
44323         * lib/version-etc.c (version_etc_va): Update license wording to
44324         be more concise.  Recommended by Richard Stallman.
44325
44326 2007-03-22  Bruno Haible  <bruno@clisp.org>
44327
44328         * lib/poll.c (MSG_PEEK): New fallback definition.
44329
44330 2007-03-22  Bruno Haible  <bruno@clisp.org>
44331
44332         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
44333         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
44334         (main): Update.
44335         Fixes a compilation error on BeOS.
44336
44337 2007-03-22  Bruno Haible  <bruno@clisp.org>
44338
44339         * modules/frexpl-tests: New file.
44340         * tests/test-frexpl.c: New file.
44341
44342         * modules/frexpl: New file.
44343         * m4/frexpl.m4: New file.
44344         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
44345         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
44346         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
44347         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
44348         (Depends-on): Add frexpl. Remove isnanl-nolibm.
44349         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
44350
44351 2007-03-22  Bruno Haible  <bruno@clisp.org>
44352
44353         * lib/frexpl.c: Share code with lib/frexp.c.
44354         * modules/mathl (Files): Add lib/frexp.c.
44355         (Depends-on): Add isnanl-nolibm.
44356
44357 2007-03-22  Bruno Haible  <bruno@clisp.org>
44358
44359         * modules/printf-frexp (Files): Add m4/frexp.m4.
44360         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
44361         only if the found frexp function actually works.
44362
44363 2007-03-22  Bruno Haible  <bruno@clisp.org>
44364
44365         * lib/frexp.c: Remove older implementation that uses divisions.
44366
44367 2007-03-21  Bruno Haible  <bruno@clisp.org>
44368
44369         * modules/frexp-tests: New file.
44370         * tests/test-frexp.c: New file.
44371
44372         * modules/frexp: New file.
44373         * lib/frexp.c: New file.
44374         * m4/frexp.m4: New file.
44375         * lib/math_.h (frexp): New declaration.
44376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
44377         REPLACE_FREXP.
44378         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
44379
44380 2007-03-21  Bruno Haible  <bruno@clisp.org>
44381
44382         * modules/isnanl-tests: New file.
44383         * tests/test-isnanl.c: New file.
44384
44385         * modules/isnanl: New file.
44386         * lib/isnanl.h: New file.
44387         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
44388         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
44389         gl_FUNC_ISNANL_WORKS.
44390         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
44391         New macros.
44392
44393 2007-03-21  Bruno Haible  <bruno@clisp.org>
44394
44395         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
44396         lib/isnanl.h.
44397         (Include): Update.
44398         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
44399         * lib/vasnprintf.c: Update.
44400         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
44401         tests/test-isnanl.h, remove tests/test-isnanl.c.
44402         (Makefile.am): Update.
44403         * tests/test-isnanl-nolibm.c: New file.
44404         * tests/test-isnanl.h: New file.
44405         * tests/test-isnanl.c: Remove file.
44406
44407 2007-03-21  Jim Meyering  <jim@meyering.net>
44408
44409         When trying to open ".", treat ESTALE like EACCES.
44410         * lib/savewd.c (savewd_save): Resort to forking not just upon
44411         failure with EACCES, but also when errno is ESTALE.
44412
44413 2007-03-20  Bruno Haible  <bruno@clisp.org>
44414
44415         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
44416         Needed on AIX 5.1. Reported by Matthew Woehlke.
44417
44418 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44419
44420         Suggestions by Bruno Haible:
44421         * lib/acl-internal.h: Include "gettext.h" rather than rolling
44422         our own.
44423         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
44424         * modules/acl (Depends-on): Add gettext.
44425
44426 2007-03-19  Bruno Haible  <bruno@clisp.org>
44427
44428         * modules/iconvme: Remove file.
44429         * lib/iconvme.h: Remove file.
44430         * lib/iconvme.c: Remove file.
44431         * m4/iconvme.m4: Remove file.
44432
44433 2007-03-19  Bruno Haible  <bruno@clisp.org>
44434
44435         * doc/relocatable-maint.texi: Break long shell script line.
44436         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
44437
44438 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44439
44440         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
44441         handle file_has_acl.
44442         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
44443         * lib/acl.c: Move header inclusions and related macro defns into
44444         lib/acl-internal.h.
44445         (S_ISLNK): Remove defn, since that's now done for us.
44446         (file_has_acl): Move to lib/file-has-acl.c.
44447         Call acl_trivial if available.  This is the crucial part of the fix.
44448         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
44449         shared within the library.  Rewrite a bit, partly to make it compatible
44450         with the GNU coding style.
44451         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
44452         Remove unnecessary double-quotes.
44453         Don't test for acl_to_text; the build will catch that.
44454         Replace acl_entries if it doesn't exist and it is needed.
44455         Check for -lsec and acl_trivial (as used on Solaris 10).
44456         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
44457         lib/file-has-acl.c.
44458         (Depends-on): Add sys_stat, for S_ISLNK.
44459
44460 2007-03-19  Ben Pfaff  <blp@gnu.org>
44461
44462         * doc/gnulib.texi: Fix typos.
44463         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
44464
44465 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
44466
44467         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
44468         If size is zero here, buf must be zero.
44469
44470 2007-03-19  Simon Josefsson  <simon@josefsson.org>
44471
44472         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
44473         <bruno@clisp.org>.
44474
44475 2007-03-18  Bruno Haible  <bruno@clisp.org>
44476
44477         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
44478         Suggested by Eric Blake.
44479
44480 2007-03-18  Ben Pfaff  <blp@gnu.org>
44481
44482         * doc/relocatable.texi: Recommend using as prefix a directory
44483         that does not exist and will never be created.  Based on
44484         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
44485         and others.
44486
44487 2007-03-17  Bruno Haible  <bruno@clisp.org>
44488
44489         * lib/fchownat.c: Include lchown.h.
44490
44491 2007-03-17  Bruno Haible  <bruno@clisp.org>
44492
44493         Fix endless loop when the given allocated size was > INT_MAX.
44494         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
44495         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
44496         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
44497         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
44498         * lib/sprintf.c (sprintf): Likewise.
44499
44500 2007-03-17  Bruno Haible  <bruno@clisp.org>
44501
44502         * tests/test-argp-2.sh (func_compare): Output a context diff.
44503
44504 2007-03-17  Bruno Haible  <bruno@clisp.org>
44505
44506         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
44507         locale's decimal-point character.
44508
44509 2007-03-17  Bruno Haible  <bruno@clisp.org>
44510
44511         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
44512         before comparing it. Needed because on some platforms (e.g. x86) a
44513         'long double' occupies less bytes than sizeof (long double).
44514
44515 2007-03-17  Bruno Haible  <bruno@clisp.org>
44516
44517         * tests/test-crc.c (main): Make printf statements 64-bit clean.
44518         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
44519         * tests/test-getaddrinfo.c (simple): Likewise.
44520         * tests/test-read-file.c (main): Likewise.
44521
44522 2007-03-17  Bruno Haible  <bruno@clisp.org>
44523
44524         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
44525
44526 2007-03-17  Bruno Haible  <bruno@clisp.org>
44527
44528         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
44529         unused variable.
44530
44531 2007-03-17  Bruno Haible  <bruno@clisp.org>
44532
44533         * tests/test-c-strcasecmp.c: Include c-strcase.h.
44534         * tests/test-c-strncasecmp.c: Likewise.
44535
44536 2007-03-17  Bruno Haible  <bruno@clisp.org>
44537
44538         * modules/stdlib (Depends-on): Add unistd.
44539         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
44540         Needed for MacOS X 10.3.
44541
44542 2007-03-17  Bruno Haible  <bruno@clisp.org>
44543
44544         * lib/unistr/u-strdup.h: Include <stdlib.h>.
44545
44546 2007-03-17  Bruno Haible  <bruno@clisp.org>
44547
44548         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
44549
44550 2007-03-17  Bruno Haible  <bruno@clisp.org>
44551
44552         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
44553         to reflect files copied from gnulib (with or without modifications).
44554         Suggested by Jim Meyering.
44555
44556 2007-03-17  Eric Blake  <ebb9@byu.net>
44557
44558         * NEWS: Document stdlib change from 2007-02-18.
44559
44560 2007-03-17  Jim Meyering  <jim@meyering.net>
44561
44562         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
44563         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
44564         someone uses a name containing shell meta-characters.
44565         Reported by Alfred M. Szmidt.
44566
44567         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
44568
44569 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
44570
44571         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
44572         and copy gettext configuration files only if configure.ac contains
44573         a use of AM_GNU_GETTEXT_VERSION.
44574
44575 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
44576
44577         * build-aux/bootstrap (gnulib_name): New variable.
44578         (gnulib_tool_options): Use it.
44579
44580 2007-03-13  Simon Josefsson  <simon@josefsson.org>
44581
44582         * tests/test-des.c: Use new namespace.
44583
44584 2007-03-15  Bruno Haible  <bruno@clisp.org>
44585
44586         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
44587         Reported by James Youngman <jay@gnu.org>.
44588
44589 2007-03-15  Bruno Haible  <bruno@clisp.org>
44590
44591         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
44592         declared prototype. Needed with cc on OSF/1 5.1.
44593
44594 2007-03-15  Bruno Haible  <bruno@clisp.org>
44595
44596         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
44597         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
44598         (struct gl_list_implementation): Add dispose_fn argument to the
44599         'create_empty', 'create' methods.
44600         (struct gl_list_impl_base): Add field 'dispose_fn'.
44601         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
44602         argument.
44603         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
44604         dispose_fn argument.
44605         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
44606         dispose_fn on the dropped values.
44607         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
44608         dispose_fn argument.
44609         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
44610         dropped values.
44611         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
44612         (gl_tree_remove_node): Call dispose_fn on the dropped value.
44613         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
44614         (gl_tree_remove_node): Call dispose_fn on the dropped value.
44615         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
44616         argument.
44617         (gl_tree_list_free): Call dispose_fn on the dropped values.
44618         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
44619         the dropped values.
44620         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
44621         Add dispose_fn argument.
44622         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
44623         Call dispose_fn on the dropped values.
44624         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
44625         Add dispose_fn argument.
44626         (gl_sublist_create): Initialize the 'dispose_fn' field.
44627         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
44628         * tests/test-array_list.c (main): Update.
44629         * tests/test-carray_list.c (main): Update.
44630         * tests/test-avltree_list.c (main): Update.
44631         * tests/test-rbtree_list.c (main): Update.
44632         * tests/test-avltreehash_list.c (main): Update.
44633         * tests/test-rbtreehash_list.c (main): Update.
44634         * tests/test-linked_list.c (main): Update.
44635         * tests/test-linkedhash_list.c (main): Update.
44636         * tests/test-array_oset.c (main): Update.
44637
44638 2007-03-15  Bruno Haible  <bruno@clisp.org>
44639
44640         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
44641         (gl_oset_create_empty): Add dispose_fn argument.
44642         (struct gl_oset_implementation): Add dispose_fn argument to
44643         'create_empty' method.
44644         (struct gl_oset_impl_base): Add dispose_fn field.
44645         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
44646         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
44647         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
44648         values.
44649         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
44650         (gl_tree_oset_free): Call dispose_fn on the dropped values.
44651         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
44652         dropped value.
44653         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
44654         dropped value.
44655         * tests/test-array_oset.c (main): Update.
44656         * tests/test-avltree_oset.c (main): Update.
44657         * tests/test-rbtree_oset.c (main): Update.
44658         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
44659
44660 2007-03-13  Bruno Haible  <bruno@clisp.org>
44661
44662         * tests/test-stdbool.c (i): Update after last patch.
44663
44664 2007-03-12  Bruno Haible  <bruno@clisp.org>
44665
44666         * lib/quotearg.c: Include <wctype.h> early, before the definition of
44667         the iswprint macro. Needed on Solaris 2.5.1.
44668
44669 2007-03-12  Bruno Haible  <bruno@clisp.org>
44670
44671         * tests/test-printf-frexp.c (main): Declare x as volatile.
44672
44673 2007-03-12  Simon Josefsson  <simon@josefsson.org>
44674
44675         * doc/gnulib.texi (Build robot for gnulib): New section.
44676
44677 2007-03-12  Jim Meyering  <jim@meyering.net>
44678
44679         * build-aux/bootstrap: New file.
44680         * build-aux/bootstrap.conf: New file, from coreutils.
44681
44682 2007-03-11  Bruno Haible  <bruno@clisp.org>
44683
44684         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
44685
44686 2007-03-12  Simon Josefsson  <simon@josefsson.org>
44687
44688         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
44689         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
44690         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
44691
44692 2007-03-11  Bruno Haible  <bruno@clisp.org>
44693
44694         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
44695         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
44696
44697 2007-03-11  Bruno Haible  <bruno@clisp.org>
44698
44699         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
44700         formula. Needed for SunPRO C 5.0.
44701
44702 2007-03-11  Bruno Haible  <bruno@clisp.org>
44703
44704         * modules/long-options (Depends-on): Add getopt.
44705
44706 2007-03-11  Bruno Haible  <bruno@clisp.org>
44707
44708         * modules/modechange (Depends-on): Add stdbool.
44709
44710 2007-03-11  Bruno Haible  <bruno@clisp.org>
44711
44712         * modules/i-ring (Depends-on): Add stdbool.
44713
44714 2007-03-11  Bruno Haible  <bruno@clisp.org>
44715
44716         * modules/gc-des (Depends-on): Add stdbool.
44717
44718 2007-03-11  Bruno Haible  <bruno@clisp.org>
44719
44720         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
44721
44722 2007-03-11  Bruno Haible  <bruno@clisp.org>
44723
44724         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
44725
44726 2007-03-11  Bruno Haible  <bruno@clisp.org>
44727
44728         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
44729
44730 2007-03-11  Bruno Haible  <bruno@clisp.org>
44731
44732         * lib/vasnprintf.c (sprintf): Undefine.
44733
44734 2007-03-11  Bruno Haible  <bruno@clisp.org>
44735
44736         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
44737         initializers in SunPRO C and Compaq C compilers.
44738
44739 2007-03-11  Bruno Haible  <bruno@clisp.org>
44740
44741         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
44742         decrementing code ANSI C compliant.
44743
44744 2007-03-11  Bruno Haible  <bruno@clisp.org>
44745
44746         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
44747         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
44748
44749 2007-03-11  Bruno Haible  <bruno@clisp.org>
44750
44751         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
44752         <stdbool.h> substitute doesn't pass.
44753
44754 2007-03-11  Bruno Haible  <bruno@clisp.org>
44755
44756         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
44757
44758 2007-03-11  Bruno Haible  <bruno@clisp.org>
44759
44760         * gnulib-tool (func_create_megatestdir): Create also an autobuild
44761         script, for submission to autobuild.josefsson.org.
44762
44763 2007-03-10  Bruno Haible  <bruno@clisp.org>
44764
44765         * modules/canonicalize-lgpl-tests: New file.
44766         * tests/test-canonicalize-lgpl.sh: New file.
44767         * tests/test-canonicalize-lgpl.c: New file.
44768
44769         * modules/c-strcase-tests: New file.
44770         * tests/test-c-strcase.sh: New file.
44771         * tests/test-c-strcasecmp.c: New file.
44772         * tests/test-c-strncasecmp.c: New file.
44773
44774         * modules/atexit-tests: New file.
44775         * tests/test-atexit.sh: New file.
44776         * tests/test-atexit.c: New file.
44777
44778 2007-03-10  Bruno Haible  <bruno@clisp.org>
44779
44780         * tests/test-binary-io.sh: Use temporary filenames that are not so
44781         likely to clash with those of other tests (in a parallel make).
44782         * tests/test-binary-io.c: Likewise.
44783
44784 2007-03-10  Bruno Haible  <bruno@clisp.org>
44785
44786         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
44787         fallback; use #error instead.
44788         Suggested by Simon Josefsson.
44789
44790 2007-03-10  Bruno Haible  <bruno@clisp.org>
44791
44792         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
44793         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
44794         first and the last.
44795
44796 2007-03-10  Bruno Haible  <bruno@clisp.org>
44797
44798         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
44799
44800 2007-03-10  Bruno Haible  <bruno@clisp.org>
44801
44802         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
44803         "make distcheck".
44804         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
44805         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
44806         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
44807
44808 2007-03-10  Bruno Haible  <bruno@clisp.org>
44809
44810         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
44811         variable.
44812         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
44813         variable.
44814
44815 2007-03-09  Eric Blake  <ebb9@byu.net>
44816         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
44817
44818         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
44819         types are not being provided by gnulib.
44820         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
44821         types are supported.
44822
44823 2007-03-10  Bruno Haible  <bruno@clisp.org>
44824
44825         * lib/stdio_.h (__attribute__): New macro.
44826         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
44827         vsprintf): Specify __attribute__ __format__ for GCC.
44828         Suggested by Eric Blake.
44829
44830 2007-03-09  Bruno Haible  <bruno@clisp.org>
44831
44832         * modules/printf-posix-tests: New file.
44833         * tests/test-printf-posix.sh: New file.
44834         * tests/test-printf-posix.c: New file.
44835
44836         * modules/printf-posix: New file.
44837         * lib/printf.c: New file.
44838         * m4/printf-posix-rpl.m4: New file.
44839         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
44840         REPLACE_PRINTF.
44841         * lib/stdio_.h (printf): New declaration.
44842         (format, __format__, ____printf____, ____scanf____, ____strftime____,
44843         ____strfmon____): New macros.
44844         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
44845         REPLACE_PRINTF.
44846
44847 2007-03-09  Bruno Haible  <bruno@clisp.org>
44848
44849         * tests/test-vasnprintf-posix2.sh: New file.
44850         * tests/test-vasnprintf-posix2.c: New file.
44851         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
44852         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
44853         (Makefile.am): Activate test-vasnprintf-posix2.sh.
44854
44855         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
44856         a locale dependent decimal point, rather than always '.'.
44857
44858 2007-03-09  Eric Blake  <ebb9@byu.net>
44859
44860         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
44861         spite of platforms like Tandem/NSK that define it to -1.
44862
44863 2007-03-08  Bruno Haible  <bruno@clisp.org>
44864
44865         * modules/vprintf-posix-tests: New file.
44866         * tests/test-vprintf-posix.sh: New file.
44867         * tests/test-vprintf-posix.c: New file.
44868         * tests/test-printf-posix.h: New file.
44869
44870         * modules/vprintf-posix: New file.
44871         * lib/vprintf.c: New file.
44872         * m4/vprintf-posix.m4: New file.
44873         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
44874         REPLACE_VPRINTF.
44875         * lib/stdio_.h (vprintf): New declaration.
44876         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
44877         REPLACE_VPRINTF.
44878
44879 2007-03-08  Bruno Haible  <bruno@clisp.org>
44880
44881         * modules/fprintf-posix-tests: New file.
44882         * tests/test-fprintf-posix.sh: New file.
44883         * tests/test-fprintf-posix.c: New file.
44884
44885         * modules/fprintf-posix: New file.
44886         * lib/fprintf.c: New file.
44887         * m4/fprintf-posix.m4: New file.
44888         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
44889         REPLACE_FPRINTF.
44890         * lib/stdio_.h (fprintf): New declaration.
44891         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
44892         REPLACE_FPRINTF.
44893
44894 2007-03-08  Bruno Haible  <bruno@clisp.org>
44895
44896         * modules/vfprintf-posix-tests: New file.
44897         * tests/test-vfprintf-posix.sh: New file.
44898         * tests/test-vfprintf-posix.c: New file.
44899         * tests/test-fprintf-posix.h: New file.
44900         * tests/test-fprintf-posix.out: New file.
44901
44902         * modules/vfprintf-posix: New file.
44903         * lib/vfprintf.c: New file.
44904         * m4/vfprintf-posix.m4: New file.
44905         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
44906         REPLACE_VFPRINTF.
44907         * lib/stdio_.h (vfprintf): New declaration.
44908         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
44909         REPLACE_VFPRINTF.
44910
44911 2007-03-08  Bruno Haible  <bruno@clisp.org>
44912
44913         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
44914
44915 2007-03-08  Bruno Haible  <bruno@clisp.org>
44916
44917         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
44918         instead of 'expr' invocations.
44919         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
44920         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
44921         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
44922         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
44923         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
44924         Suggested by Paul Eggert.
44925
44926 2007-03-08  Bruno Haible  <bruno@clisp.org>
44927
44928         * modules/fseterr-tests: New file.
44929         * tests/test-fseterr.c: New file.
44930
44931         * modules/fseterr: New file.
44932         * lib/fseterr.h: New file.
44933         * lib/fseterr.c: New file.
44934
44935 2007-03-08  Bruno Haible  <bruno@clisp.org>
44936
44937         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
44938         * lib/getopt_.h: Likewise.
44939         * lib/mbswidth.h: Likewise.
44940         * lib/setenv.h: Likewise.
44941         * lib/vasnprintf.h: Likewise.
44942         * lib/vasprintf.h: Likewise.
44943         * lib/verror.h: Likewise.
44944         * lib/xsetenv.h: Likewise.
44945         * lib/xvasprintf.h: Likewise.
44946
44947 2007-03-08  Jim Meyering  <jim@meyering.net>
44948
44949         * users.txt: Add parted.
44950
44951         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
44952
44953 2007-03-07  Bruno Haible  <bruno@clisp.org>
44954
44955         * m4/printf.m4: Make the shell script snippets copy&pastable.
44956
44957 2007-03-02  Bruno Haible  <bruno@clisp.org>
44958
44959         * lib/netinet_in_.h: New file.
44960         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
44961         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
44962         * modules/netinet_in (Files): Add lib/netinet_in_.h.
44963         (Depends-on): Add absolute-header.
44964         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
44965         into netinet/in.h.
44966
44967 2007-03-03  Bruno Haible  <bruno@clisp.org>
44968
44969         * lib/sys_select_.h: New file.
44970         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
44971         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
44972         * modules/sys_select (Files): Add lib/sys_select_.h.
44973         (Depends-on): Add absolute-header.
44974         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
44975         into sys/select.h.
44976
44977 2007-03-02  Bruno Haible  <bruno@clisp.org>
44978
44979         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
44980         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
44981         values.
44982         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
44983         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
44984         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
44985         * modules/sys_socket (Depends-on): Add absolute-header.
44986         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
44987         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
44988         (Include): Remove requirement of inclusion of <sys/types.h>.
44989
44990 2007-03-02  Bruno Haible  <bruno@clisp.org>
44991
44992         * lib/byteswap_.h (bswap_32): Fix formula.
44993
44994 2007-03-06  Bruno Haible  <bruno@clisp.org>
44995
44996         * modules/sprintf-posix-tests: New file.
44997         * tests/test-sprintf-posix.c: New file.
44998
44999         * modules/sprintf-posix: New file.
45000         * lib/sprintf.c: New file.
45001         * m4/sprintf-posix.m4: New file.
45002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
45003         REPLACE_SPRINTF.
45004         * lib/stdio_.h (sprintf): New declaration.
45005         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
45006         REPLACE_SPRINTF.
45007
45008 2007-03-06  Bruno Haible  <bruno@clisp.org>
45009
45010         * modules/vsprintf-posix-tests: New file.
45011         * tests/test-vsprintf-posix.c: New file.
45012         * tests/test-sprintf-posix.h: New file.
45013
45014         * modules/vsprintf-posix: New file.
45015         * lib/vsprintf.c: New file.
45016         * m4/vsprintf-posix.m4: New file.
45017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
45018         REPLACE_VSPRINTF.
45019         * lib/stdio_.h (vsprintf): New declaration.
45020         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
45021         REPLACE_VSPRINTF.
45022
45023 2007-03-06  Bruno Haible  <bruno@clisp.org>
45024
45025         * modules/vsnprintf (Depend-on): Remove minmax.
45026
45027 2007-03-06  Bruno Haible  <bruno@clisp.org>
45028
45029         * modules/snprintf-posix-tests: New file.
45030         * tests/test-snprintf-posix.c: New file.
45031
45032         * modules/snprintf-posix: New file.
45033         * m4/snprintf-posix.m4: New file.
45034         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
45035         gl_FUNC_SNPRINTF.
45036         (gl_FUNC_SNPRINTF): Invoke it.
45037         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
45038         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
45039         is set.
45040         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
45041
45042 2007-03-06  Bruno Haible  <bruno@clisp.org>
45043
45044         * modules/vsnprintf-posix-tests: New file.
45045         * tests/test-vsnprintf-posix.c: New file.
45046         * tests/test-snprintf-posix.h: New file.
45047
45048         * modules/vsnprintf-posix: New file.
45049         * m4/vsnprintf-posix.m4: New file.
45050         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
45051         gl_FUNC_VSNPRINTF.
45052         (gl_FUNC_VSNPRINTF): Invoke it.
45053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
45054         * lib/stdio_.h (vsnprintf): Define as a replacement if
45055         REPLACE_VSNPRINTF is set.
45056         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
45057
45058 2007-03-06  Bruno Haible  <bruno@clisp.org>
45059
45060         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
45061         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
45062
45063 2007-03-06  Bruno Haible  <bruno@clisp.org>
45064
45065         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
45066         (asinl): Declare also if HAVE_DECL_ASINL is set.
45067         (atanl): Declare also if HAVE_DECL_ATANL is set.
45068         (ceill): Declare also if HAVE_DECL_CEILL is set.
45069         (cosl): Declare also if HAVE_DECL_COSL is set.
45070         (expl): Declare also if HAVE_DECL_EXPL is set.
45071         (floorl): Declare also if HAVE_DECL_FLOORL is set.
45072         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
45073         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
45074         (logl): Declare also if HAVE_DECL_LOGL is set.
45075         (sinl): Declare also if HAVE_DECL_SINL is set.
45076         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
45077         (tanl): Declare also if HAVE_DECL_TANL is set.
45078         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
45079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
45080         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
45081         declaration of frexpl, ldexpl.
45082         * modules/printf-frexpl (Depends-on): Add math.
45083         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
45084
45085 2007-03-05  Bruno Haible  <bruno@clisp.org>
45086
45087         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
45088         frexpl and ldexpl are declared.
45089         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
45090
45091 2007-03-05  Bruno Haible  <bruno@clisp.org>
45092
45093         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
45094         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
45095
45096 2007-03-05  Bruno Haible  <bruno@clisp.org>
45097
45098         * lib/stdio_.h: Include <stddef.h>.
45099
45100 2007-03-05  Bruno Haible  <bruno@clisp.org>
45101
45102         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
45103
45104 2007-03-05  Bruno Haible  <bruno@clisp.org>
45105
45106         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
45107         NetBSD 4, from Ralf Wildenhues.
45108
45109 2007-03-04  Bruno Haible  <bruno@clisp.org>
45110
45111         * lib/vasprintf.h: Update #if logic for the case when the functions
45112         exist but are overridden.
45113
45114 2007-03-04  Bruno Haible  <bruno@clisp.org>
45115
45116         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
45117         implementations: glibc-2.4 and MacOS X 10.3.
45118         * tests/test-vasnprintf-posix.c (test_function): Test also the case
45119         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
45120         * tests/test-vasprintf-posix.c (test_function): Likewise.
45121
45122 2007-03-04  Bruno Haible  <bruno@clisp.org>
45123
45124         * modules/vasprintf-posix-tests: New file.
45125         * tests/test-vasprintf-posix.c: New file.
45126
45127         * modules/vasprintf-posix: New file.
45128         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
45129         defined.
45130         * m4/vasprintf-posix.m4: New file.
45131         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
45132         gl_FUNC_VASPRINTF.
45133         (gl_FUNC_VASPRINTF): Invoke it.
45134         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
45135         here.
45136         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
45137
45138 2007-03-04  Bruno Haible  <bruno@clisp.org>
45139
45140         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
45141         REPLACE_GETTIMEOFDAY.
45142         * modules/sys_time (Makefile.am): Likewise.
45143         * m4/sys_time_h.m4: Likewise.
45144         * m4/gettimeofday.m4: Likewise.
45145
45146 2007-03-04  Bruno Haible  <bruno@clisp.org>
45147
45148         * modules/vasnprintf-posix-tests: New file.
45149         * tests/test-vasnprintf-posix.c: New file.
45150
45151         * modules/vasnprintf-posix: New file.
45152         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
45153         printf-frexpl.h.
45154         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
45155         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
45156         REPLACE_VASNPRINTF is defined.
45157         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
45158         gl_FUNC_VASNPRINTF.
45159         (gl_FUNC_VASNPRINTF): Invoke it.
45160         * m4/vasnprintf-posix.m4: New file.
45161         * m4/printf.m4: New file.
45162
45163 2007-03-04  Bruno Haible  <bruno@clisp.org>
45164
45165         Compile progreloc.c only if --enable-relocatable is specified.
45166         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
45167         if --enable-relocatable was specified.
45168         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
45169         lib_SOURCES.
45170
45171 2007-03-04  Jim Meyering  <jim@meyering.net>
45172
45173         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
45174         Use it consistently, rather than enumerating errno constants.
45175
45176 2007-03-04  Bruno Haible  <bruno@clisp.org>
45177
45178         * modules/xvasprintf-tests: New file.
45179         * tests/test-xvasprintf.c: New file.
45180
45181         * modules/vasprintf-tests: New file.
45182         * tests/test-vasprintf.c: New file.
45183
45184         * modules/vasnprintf-tests: New file.
45185         * tests/test-vasnprintf.c: New file.
45186
45187         * modules/vsnprintf-tests: New file.
45188         * tests/test-vsnprintf.c: New file.
45189
45190         * modules/snprintf-tests: New file.
45191         * tests/test-snprintf.c: New file.
45192
45193 2007-03-04  Bruno Haible  <bruno@clisp.org>
45194
45195         Compile relocatable.c only if --enable-relocatable is specified.
45196         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
45197         gl_RELOCATABLE_LIBRARY.
45198         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
45199         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
45200         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
45201         gl_RELOCATABLE_LIBRARY.
45202         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
45203         (Makefile.am): Remove lib_SOURCES.
45204         * modules/relocatable-lib-lgpl (configure.ac): Invoke
45205         gl_RELOCATABLE_LIBRARY.
45206         (Makefile.am): Remove lib_SOURCES.
45207         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
45208         always.
45209         * modules/relocatable-prog-wrapper (configure.ac): Invoke
45210         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
45211
45212 2007-03-04  Bruno Haible  <bruno@clisp.org>
45213
45214         * modules/argmatch-tests: New file.
45215         * tests/test-argmatch.c: New file.
45216
45217         * tests/test-allocsa.c (main): Halve the number of loop runs.
45218
45219         * modules/alloca-opt-tests: New file.
45220         * tests/test-alloca-opt.c: New file.
45221
45222 2007-03-04  Jim Meyering  <jim@meyering.net>
45223
45224         Work around difference between Linux ACLs and Solaris 10 ZFS.
45225         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
45226         for EINVAL.
45227
45228 2007-03-03  Bruno Haible  <bruno@clisp.org>
45229
45230         * modules/relocatable-prog (Depends-on): Add back progreloc's
45231         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
45232
45233 2007-03-03  Bruno Haible  <bruno@clisp.org>
45234
45235         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
45236         * modules/relocatable-lib: New file.
45237
45238 2007-03-03  Bruno Haible  <bruno@clisp.org>
45239
45240         * modules/relocatable-prog: Renamed from modules/relocatable.
45241         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
45242
45243 2007-03-03  Bruno Haible  <bruno@clisp.org>
45244
45245         * modules/relocatable-script (Files): Add doc/relocatable.texi,
45246         m4/relocatable-lib.m4.
45247         (Depends-on): Remove 'relocatable'.
45248         (configure.ac): Add gl_RELOCATABLE_NOP.
45249
45250 2007-03-03  Bruno Haible  <bruno@clisp.org>
45251
45252         * modules/relocatable-prog-wrapper: New file.
45253         * modules/relocatable (Depends-on): Add it. Remove all other
45254         dependencies except progname.
45255         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
45256
45257         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
45258         (gl_FUNC_STRERROR): Nop.
45259         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
45260
45261         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
45262         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
45263
45264         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
45265         (gl_FUNC_READLINK): Update.
45266
45267         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
45268
45269 2007-03-03  Bruno Haible  <bruno@clisp.org>
45270
45271         * lib/xreadlink.c: Include <unistd.h> unconditionally.
45272         * modules/xreadlink (Depends-on): Add unistd.
45273         * modules/xreadlink-with-size (Depends-on): Likewise.
45274
45275 2007-03-03  Bruno Haible  <bruno@clisp.org>
45276
45277         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
45278         extracted from gt_FUNC_SETENV.
45279         (gt_FUNC_SETENV): Remove macro.
45280         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
45281         remove gt_FUNC_SETENV.
45282
45283 2007-03-03  Bruno Haible  <bruno@clisp.org>
45284
45285         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
45286         ENABLE_RELOCATABLE here.
45287         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
45288
45289 2007-03-03  Bruno Haible  <bruno@clisp.org>
45290
45291         * modules/rbtreehash-list-tests (Depends-on): Add progname.
45292         * tests/test-rbtreehash_list.c: Include progname.h.
45293         (main): Call set_program_name.
45294
45295         * modules/rbtree-oset-tests (Depends-on): Add progname.
45296         * tests/test-rbtree_oset.c: Include progname.h.
45297         (main): Call set_program_name.
45298
45299         * modules/rbtree-list-tests (Depends-on): Add progname.
45300         * tests/test-rbtree_list.c: Include progname.h.
45301         (main): Call set_program_name.
45302
45303         * modules/linked-list-tests (Depends-on): Add progname.
45304         * tests/test-linked_list.c: Include progname.h.
45305         (main): Call set_program_name.
45306
45307 2007-03-03  Bruno Haible  <bruno@clisp.org>
45308
45309         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
45310         All uses of __restrict changed to _Restrict_.
45311         * lib/glob_.h (__restrict): Remove macro.
45312
45313 2007-03-02  Bruno Haible  <bruno@clisp.org>
45314
45315         * modules/gettext (configure.ac): Require gettext infrastructure
45316         from version 0.16.1.
45317
45318 2007-03-02  Bruno Haible  <bruno@clisp.org>
45319
45320         * modules/linkedhash-list-tests (Depends-on): Add progname.
45321         * tests/test-linkedhash_list.c: Include progname.h.
45322         (main): Call set_program_name.
45323
45324         * modules/carray-list-tests (Depends-on): Add progname.
45325         * tests/test-carray_list.c: Include progname.h.
45326         (main): Call set_program_name.
45327
45328         * modules/avltreehash-list-tests (Depends-on): Add progname.
45329         * tests/test-avltreehash_list.c: Include progname.h.
45330         (main): Call set_program_name.
45331
45332         * modules/avltree-oset-tests (Depends-on): Add progname.
45333         * tests/test-avltree_oset.c: Include progname.h.
45334         (main): Call set_program_name.
45335
45336         * modules/avltree-list-tests (Depends-on): Add progname.
45337         * tests/test-avltree_list.c: Include progname.h.
45338         (main): Call set_program_name.
45339
45340         * modules/array-oset-tests (Depends-on): Add progname.
45341         * tests/test-array_oset.c: Include progname.h.
45342         (main): Call set_program_name.
45343
45344         * modules/array-list-tests (Depends-on): Add progname.
45345         * tests/test-array_list.c: Include progname.h.
45346         (main): Call set_program_name.
45347
45348         * modules/argp-tests (Depends-on): Add progname.
45349         * tests/test-argp.c: Include argp.h first. Include progname.h.
45350         (main): Call set_program_name.
45351
45352 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
45353
45354         * doc/gnulib-tool.texi (Initial import): Reword description of
45355         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
45356         limited effect even if defined after the first system include.
45357
45358 2007-03-01  Bruno Haible  <bruno@clisp.org>
45359
45360         * build-aux/config.libpath: Update to libtool-1.5.22.
45361         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45362
45363 2007-03-01  Bruno Haible  <bruno@clisp.org>
45364
45365         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
45366         foo_CFLAGS.
45367         Reported by Ralf Wildenhues.
45368
45369 2007-03-01  Bruno Haible  <bruno@clisp.org>
45370
45371         * build-aux/install-reloc: Remove object files left over by some
45372         compilers.
45373         Reported by Ralf Wildenhues.
45374
45375 2007-03-01  Bruno Haible  <bruno@clisp.org>
45376
45377         * build-aux/install-reloc: Break long lines.
45378
45379 2007-03-01  Bruno Haible  <bruno@clisp.org>
45380
45381         * doc/relocatable.texi: Document that it may not work on OpenBSD.
45382         Reported by Ralf Wildenhues.
45383
45384 2007-03-01  Bruno Haible  <bruno@clisp.org>
45385
45386         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
45387         include ordering constraints.
45388
45389 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
45390
45391         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
45392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
45393         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
45394         as another example.
45395         * lib/time_.h: Fix misspelling.
45396         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
45397         Require gl_HEADER_TIME_H_DEFAULTS.
45398         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
45399         * m4/time_r.m4 (gl_TIME_R): Likewise.
45400         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
45401
45402 2007-03-01  Bruno Haible  <bruno@clisp.org>
45403
45404         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
45405         * m4/utimens.m4 (gl_UTIMENS): Likewise.
45406
45407 2007-03-01  Jim Meyering  <jim@meyering.net>
45408
45409         * modules/xreadlink (Maintainer): Add my name.
45410         * modules/xreadlink-with-size (Depends-on): Alphabetize.
45411
45412 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
45413             Bruno Haible  <bruno@clisp.org>
45414
45415         * build-aux/install-reloc: Compile also c-ctype.c.
45416         * build-aux/relocatable.sh.in: New file.
45417         * doc/relocatable.texi: New file.
45418         * doc/relocatable-maint.texi: New file.
45419         * doc/gnulib.texi: Include relocatable-maint.texi.
45420         * lib/progreloc.c: Include unistd.h unconditionally.
45421         * lib/relocwrapper.c: Include unistd.h unconditionally.
45422         Include c-ctype.h.
45423         (add_dotbin): Use c_tolower.
45424         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
45425         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
45426         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
45427         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
45428         to m4/relocatable-lib.m4.
45429         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
45430         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
45431         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
45432         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
45433         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
45434         * modules/relocatable: New file.
45435         * modules/relocatable-lib: New file.
45436         * modules/relocatable-script: New file.
45437
45438 2007-02-28  Bruno Haible  <bruno@clisp.org>
45439
45440         Import --enable-relocatable infrastructure.
45441         * build-aux/config.libpath: New file, from GNU gettext.
45442         * build-aux/install-reloc: New file, from GNU gettext.
45443         * build-aux/reloc-ldflags: New file, from GNU gettext.
45444         * lib/relocatable.h: New file, from GNU gettext.
45445         * lib/relocatable.c: New file, from GNU gettext.
45446         * lib/relocwrapper.c: New file, from GNU gettext.
45447         * m4/relocatable.m4: New file, from GNU gettext.
45448
45449 2007-02-28  Bruno Haible  <bruno@clisp.org>
45450
45451         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
45452
45453         * modules/xreadlink: New file, from GNU gettext with modifications.
45454         * lib/xreadlink.c: New file, from GNU gettext.
45455         * lib/xreadlink.h: Add comments.
45456         (xreadlink): New declaration.
45457
45458         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
45459         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
45460         lib/xreadlink-with-size.c.
45461         (configure.ac): Remove gl_XREADLINK invocation.
45462         (Makefile.am): Augment lib_SOURCES.
45463         * m4/xreadlink.m4: Remove file.
45464         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
45465         (xreadlink_with_size): Renamed from xreadink.
45466         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
45467         * modules/canonicalize (Depends-on): Replace xreadlink with
45468         xreadlink-with-size.
45469         * lib/canonicalize.c (canonicalize_filename_mode): Update.
45470
45471 2007-02-25  Jim Meyering  <jim@meyering.net>
45472
45473         * build-aux/announce-gen: When complaining about excess arguments,
45474         list them.
45475
45476 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
45477
45478         * README: Document signed integer overflow situation more
45479         accurately.
45480
45481 2007-02-25  Bruno Haible  <bruno@clisp.org>
45482
45483         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
45484         'a' or 'A' conversion.
45485
45486 2007-02-25  Bruno Haible  <bruno@clisp.org>
45487
45488         * modules/filename: Renamed from modules/pathname.
45489         (Files): Replace lib/pathname.h with lib/filename.h. Replace
45490         lib/concatpath.c with lib/concat-filename.c.
45491         (Makefile.am): Update.
45492         (Include): Replace pathname.h with filename.h.
45493         * lib/filename.h: Renamed from lib/pathname.h.
45494         (concatenated_filename): Renamed from concatenated_pathname.
45495         * lib/concat-filename.c: Renamed from lib/concatpath.c.
45496         (concatenated_filename): Renamed from concatenated_pathname.
45497         * lib/findprog.c: Include filename.h instead of pathname.h.
45498         (find_in_path): Update.
45499         * lib/javacomp.c: Include filename.h instead of pathname.h.
45500         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
45501         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
45502         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
45503         is_oldgcj_14_13_usable, is_javac_usable): Update.
45504         * lib/javaexec.c: Include filename.h instead of pathname.h.
45505         (execute_java_class): Update.
45506         * modules/findprog: Update.
45507         * modules/javacomp: Update.
45508         * modules/javaexec: Update.
45509         * MODULES.html.sh (File system functions): Add 'filename', remove
45510         'pathname'.
45511
45512 2007-02-25  Bruno Haible  <bruno@clisp.org>
45513
45514         * modules/printf-frexpl-tests: New file.
45515         * tests/test-printf-frexpl.c: New file.
45516
45517         * modules/printf-frexpl: New file.
45518         * lib/printf-frexpl.h: New file.
45519         * lib/printf-frexpl.c: New file.
45520         * m4/printf-frexpl.m4: New file.
45521
45522 2007-02-25  Bruno Haible  <bruno@clisp.org>
45523
45524         * modules/printf-frexp-tests: New file.
45525         * tests/test-printf-frexp.c: New file.
45526
45527         * modules/printf-frexp: New file.
45528         * lib/printf-frexp.h: New file.
45529         * lib/printf-frexp.c: New file.
45530         * m4/printf-frexp.m4: New file.
45531
45532 2007-02-25  Bruno Haible  <bruno@clisp.org>
45533
45534         Assume automake >= 1.10 for the tests.
45535         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
45536         * modules/arctwo-tests: Likewise.
45537         * modules/argp-tests: Likewise.
45538         * modules/avltree-list-tests: Likewise.
45539         * modules/avltree-oset-tests: Likewise.
45540         * modules/avltreehash-list-tests: Likewise.
45541         * modules/carray-list-tests: Likewise.
45542         * modules/crc-tests: Likewise.
45543         * modules/des-tests: Likewise.
45544         * modules/gc-arcfour-tests: Likewise.
45545         * modules/gc-arctwo-tests: Likewise.
45546         * modules/gc-des-tests: Likewise.
45547         * modules/gc-hmac-md5-tests: Likewise.
45548         * modules/gc-hmac-sha1-tests: Likewise.
45549         * modules/gc-md2-tests: Likewise.
45550         * modules/gc-md4-tests: Likewise.
45551         * modules/gc-md5-tests: Likewise.
45552         * modules/gc-pbkdf2-sha1-tests: Likewise.
45553         * modules/gc-rijndael-tests: Likewise.
45554         * modules/gc-sha1-tests: Likewise.
45555         * modules/gc-tests: Likewise.
45556         * modules/getaddrinfo-tests: Likewise.
45557         * modules/hmac-md5-tests: Likewise.
45558         * modules/hmac-sha1-tests: Likewise.
45559         * modules/linked-list-tests: Likewise.
45560         * modules/linkedhash-list-tests: Likewise.
45561         * modules/lock-tests: Likewise.
45562         * modules/md2-tests: Likewise.
45563         * modules/md4-tests: Likewise.
45564         * modules/md5-tests: Likewise.
45565         * modules/rbtree-list-tests: Likewise.
45566         * modules/rbtree-oset-tests: Likewise.
45567         * modules/rbtreehash-list-tests: Likewise.
45568         * modules/read-file-tests: Likewise.
45569         * modules/rijndael-tests: Likewise.
45570         * modules/stdint-tests: Likewise.
45571         * modules/tls-tests: Likewise.
45572
45573 2007-02-24  Bruno Haible  <bruno@clisp.org>
45574
45575         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
45576         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
45577         function; instead check whether isnan with a double argument links.
45578         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
45579         function; instead check whether isnan with a 'long double' argument
45580         links.
45581         Reported by Eric Blake <ebb9@byu.net>.
45582
45583 2007-02-24  Bruno Haible  <bruno@clisp.org>
45584
45585         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
45586         defined.
45587         * lib/isnanl.c: Remove all code. Just include isnan.c.
45588         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
45589
45590 2007-02-25  Jim Meyering  <jim@meyering.net>
45591
45592         Avoid conflicting types for 'unsetenv' on FreeBSD.
45593         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
45594         conflicting with FreeBSD's (5.0 and 6.1) function declaration
45595         in stdlib.h.
45596
45597 2007-02-24  Bruno Haible  <bruno@clisp.org>
45598
45599         * modules/isnanl-nolibm-tests: New file.
45600         * tests/test-isnanl.c: New file.
45601
45602         * modules/isnanl-nolibm: New file.
45603         * lib/isnanl.h: New file.
45604         * lib/isnanl.c: New file.
45605         * m4/isnanl.m4: New file.
45606
45607 2007-02-24  Bruno Haible  <bruno@clisp.org>
45608
45609         * modules/isnan-nolibm-tests: New file.
45610         * tests/test-isnan.c: New file.
45611
45612         * modules/isnan-nolibm: New file.
45613         * lib/isnan.h: New file.
45614         * lib/isnan.c: New file.
45615         * m4/isnan.m4: New file.
45616
45617 2007-02-24  Bruno Haible  <bruno@clisp.org>
45618
45619         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
45620         assume that an exponent fits in 20 bits.
45621
45622 2007-02-24  Jim Meyering  <jim@meyering.net>
45623
45624         * m4/regex.m4: Update the description of the configure-time option,
45625         --without-included-regex, to state accurately what the defaults are,
45626         and perhaps to give people an idea why using this option is risky.
45627
45628 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
45629
45630         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
45631         loops on small arguments.  This attempts to avoid the problem
45632         Bruno Haible reported for AIX 4.3.2 in
45633         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
45634
45635 2007-02-23  Bruno Haible  <bruno@clisp.org>
45636
45637         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
45638         Needed for help2man.
45639
45640 2007-02-23  Karl Berry  <karl@gnu.org>
45641
45642         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
45643         exists, foo.h should be cvs-ignored, not committed.
45644
45645 2007-02-23  Eric Blake  <ebb9@byu.net>
45646
45647         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
45648         * lib/stat-time.h (includes): Likewise.
45649         * lib/utimecmp.c (includes): Likewise.
45650         * lib/utimens.h (includes): Likewise.
45651         * lib/getdate.y (includes): Also include "timespec.h" for use
45652         internal to the module.
45653         * modules/utimens (Depends-on): Revert yesterday's patch.
45654         * modules/nanosleep (Depends-on): Add missing dependency.
45655
45656 2007-02-22  Bruno Haible  <bruno@clisp.org>
45657
45658         * lib/glob.c: Don't include getlogin_r.h.
45659
45660 2007-02-22  Jim Meyering  <jim@meyering.net>
45661
45662         * modules/utimens (Depends-on): Add timespec, required for
45663         utimens.h's inclusion of timespec.h.
45664
45665 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
45666
45667         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
45668         long unreadable paths in GNU/Linux.  Problem reported by Andreas
45669         Schwab in
45670         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
45671         I'll try to think of a better way to fix the Solaris problem.
45672
45673         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
45674         like glibc; on Solaris 10, it fails with errno == EINVAL.
45675         POSIX says the behavior is unspecified if the first argument is NULL,
45676         so play it safe and never pass NULL to the system getcwd.
45677
45678 2007-02-21  Jim Meyering  <jim@meyering.net>
45679
45680         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
45681         of gettimeofday.  It would conflict with the one now always
45682         provided via sys_time_.h.  Reported by Matthew Woehlke, as
45683         an IRIX 6.5 build failure.
45684
45685 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
45686
45687         Minor fixups to port to Solaris 10 with Sun C 5.8.
45688         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
45689         * modules/getcwd (Depends-on): Add dirfd.
45690         * lib/putenv.c (putenv): #undef it.
45691         (rpl_putenv): New decl.
45692         (malloc, free): Include <stdlib.h> rather than prototyping separately.
45693
45694 2007-02-20  Bruno Haible  <bruno@clisp.org>
45695
45696         * modules/stdio-tests: New file.
45697         * tests/test-stdio.c: New file.
45698
45699         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
45700         (Depends-on): Add stdio.
45701         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45702         (Include): Use <stdio.h> instead of vsnprintf.h.
45703         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45704         HAVE_DECL_VSNPRINTF.
45705         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
45706
45707         * modules/snprintf (Files): Remove lib/snprintf.h.
45708         (Depends-on): Add stdio.
45709         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
45710         (Include): Use <stdio.h> instead of snprintf.h.
45711         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
45712         HAVE_DECL_SNPRINTF.
45713         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
45714         * lib/getaddrinfo.c: Likewise.
45715
45716         * modules/stdio: New file.
45717         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
45718         * lib/snprintf.h: Remove file.
45719         * lib/vsnprintf.h: Remove file.
45720         * lib/.cppi-disable: Remove snprintf.h.
45721         * m4/stdio_h.m4: New file.
45722         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
45723
45724 2007-02-20  Jim Meyering  <jim@meyering.net>
45725
45726         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
45727         used by e.g., mingw.  From Bruno Haible.
45728
45729 2007-02-19  Bruno Haible  <bruno@clisp.org>
45730
45731         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
45732         warnings.
45733         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45734
45735 2007-02-19  Bruno Haible  <bruno@clisp.org>
45736
45737         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
45738         from mingw users.
45739
45740 2007-02-19  Bruno Haible  <bruno@clisp.org>
45741
45742         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
45743         warnings.
45744         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
45745
45746 2007-02-19  Jim Meyering  <jim@meyering.net>
45747
45748         Don't use FD after a successful "fdopendir (fd)".
45749         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
45750         Reset it by calling dirfd on the just-obtained DIR*.
45751
45752         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
45753         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
45754
45755 2007-02-18  Bruno Haible  <bruno@clisp.org>
45756
45757         * lib/readlink.c: Include <unistd.h>.
45758         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
45759         HAVE_READLINK.
45760         * modules/readlink (Depends-on): Add unistd.
45761         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45762         (Include): Add <unistd.h>.
45763
45764         * lib/getlogin_r.h: Remove file.
45765         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
45766         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
45767         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
45768         HAVE_DECL_GETLOGIN_R.
45769         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
45770         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45771         (Include): Use <unistd.h> instead of getlogin_r.h.
45772
45773         * lib/getcwd.h: Remove file.
45774         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
45775         * lib/xgetcwd.c: Likewise.
45776         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
45777         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
45778         * modules/getcwd (Files): Remove lib/getcwd.h.
45779         (Depends-on): Add unistd.
45780         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45781         (Include): Use <unistd.h> instad of getcwd.h.
45782
45783         * lib/ftruncate.c: Include <unistd.h> first.
45784         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
45785         Set HAVE_FTRUNCATE.
45786         * modules/ftruncate (Depends-on): Add unistd.
45787         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45788
45789         * lib/fchdir.c: Include <unistd.h> first.
45790         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
45791         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
45792         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
45793         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45794         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
45795
45796         * lib/dup2.c: Include <unistd.h> first.
45797         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
45798         HAVE_DUP2.
45799         * modules/dup2 (Depends-on): Add unistd.
45800         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45801
45802         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
45803         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
45804         REPLACE_CHOWN. Don't define chown as a macro here.
45805         * modules/chown (Depends-on): Add unistd.
45806         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
45807
45808         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
45809         Add definition for GL_LINK_WARNING.
45810         (chown, dup2): New declarations.
45811         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
45812         link warning.
45813         (ftruncate): New declaration.
45814         (getcwd): New declaration, taken from old getcwd.h.
45815         (getlogin_r): New declaration, taken from old getlogin_r.h.
45816         (readlink): New declaration.
45817         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
45818         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
45819         (gl_PREREQ_UNISTD): Remove macro.
45820         (gl_UNISTD_MODULE_INDICATOR): New macro.
45821         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
45822         many new variables. Don't set UNISTD_H.
45823         * modules/unistd (Description): Change.
45824         (Depends-on): Add link-warning.
45825         (configure.ac): Update.
45826         (Makefile.am): Create unistd.h always. Substitute many new variables
45827         into it.
45828
45829 2007-02-18  Bruno Haible  <bruno@clisp.org>
45830
45831         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
45832         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
45833         HAVE_GETSUBOPT.
45834         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
45835         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
45836         * lib/getsubopt.h: Remove file.
45837         * modules/getsubopt (Files): Remove lib/getsubopt.h.
45838         (Depends-on): Add stdlib.
45839         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45840         (Includes): Use <stdlib.h> instead of getsubopt.h.
45841         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
45842         Set HAVE_GETSUBOPT.
45843         * lib/getsubopt.c: Don't include getsubopt.h.
45844
45845 2007-02-18  Bruno Haible  <bruno@clisp.org>
45846
45847         * modules/fchdir (Depends-on): Add dup2.
45848
45849 2007-02-18  Bruno Haible  <bruno@clisp.org>
45850
45851         * lib/stdlib_.h: Handle glibc's special invocation convention
45852         specially.
45853
45854 2007-02-18  Bruno Haible  <bruno@clisp.org>
45855
45856         * modules/stdlib-tests: New file.
45857         * tests/test-stdlib.c: New file.
45858
45859         * modules/mkstemp (Files): Remove lib/mkstemp.h.
45860         (Depends-on): Add stdlib.
45861         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45862         (Includes): Use <stdlib.h> instead of mkstemp.h.
45863         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
45864         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
45865         * lib/mkstemp.c: Don't include mkstemp.h.
45866         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
45867         * lib/stdlib--.h: Don't include mkstemp.h.
45868
45869         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
45870         (Depends-on): Add stdlib.
45871         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45872         (Includes): Use <stdlib.h> instead of mkdtemp.h.
45873         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
45874         HAVE_MKDTEMP.
45875         * lib/mkdtemp.c: Don't include mkdtemp.h.
45876         * lib/clean-temp.c: Don't include mkdtemp.h.
45877
45878         * modules/exit (Files): Remove lib/exit.h.
45879         (Depends-on): Add stdlib.
45880         (Makefile.am): Remove lib_SOURCES.
45881         (Include): Use <stdlib.h> instead of exit.h.
45882         * lib/argmatch.c: Don't include exit.h.
45883         * lib/execute.c: Likewise.
45884         * lib/pagealign_alloc.c: Likewise.
45885         * lib/pipe.c: Likewise.
45886         * lib/wait-process.c: Likewise.
45887         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
45888         * lib/exitfail.c: Likewise.
45889         * lib/savewd.c: Likewise.
45890         * lib/xsetenv.c: Likewise.
45891
45892         * modules/stdlib: New file.
45893         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
45894         and extra comments about mkstemp().
45895         * lib/exit.h: Remove file.
45896         * lib/mkdtemp.h: Remove file.
45897         * lib/mkstemp.h: Remove file.
45898         * m4/stdlib_h.m4: New file.
45899         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
45900
45901 2007-02-18  Bruno Haible  <bruno@clisp.org>
45902
45903         * modules/math-tests: New file.
45904         * tests/test-math.c: New file.
45905
45906         * modules/math: New file.
45907         * modules/mathl (Files): Remove lib/mathl.h.
45908         (Depends-on): Add math.
45909         (Makefile.am): Don't mention mathl.h.
45910         (Include): Use <math.h> instead of mathl.h.
45911         * lib/math_.h: New file.
45912         * lib/mathl.h: Remove file.
45913         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
45914         mathl.h.
45915         * lib/asinl.c: Likewise.
45916         * lib/atanl.c: Likewise.
45917         * lib/ceill.c: Likewise.
45918         * lib/cosl.c: Likewise.
45919         * lib/expl.c: Likewise.
45920         * lib/floorl.c: Likewise.
45921         * lib/frexpl.c: Likewise.
45922         * lib/ldexpl.c: Likewise.
45923         * lib/logl.c: Likewise.
45924         * lib/sincosl.c: Likewise.
45925         * lib/sinl.c: Likewise.
45926         * lib/sqrtl.c: Likewise.
45927         * lib/tanl.c: Likewise.
45928         * lib/trigl.c: Likewise.
45929         * m4/math_h.m4: New file.
45930         * MODULES.html.sh (Mathematics): Add math.
45931
45932 2007-02-17  Bruno Haible  <bruno@clisp.org>
45933
45934         * modules/wctype-tests: New file.
45935         * tests/test-wctype.c: New file.
45936
45937         * modules/wchar-tests: New file.
45938         * tests/test-wchar.c: New file.
45939
45940         * modules/unistd-tests: New file.
45941         * tests/test-unistd.c: New file.
45942
45943         * modules/time-tests: New file.
45944         * tests/test-time.c: New file.
45945
45946         * modules/sysexits-tests: New file.
45947         * tests/test-sysexits.c: New file.
45948
45949         * modules/sys_time-tests: New file.
45950         * tests/test-sys_time.c: New file.
45951
45952         * modules/sys_stat-tests: New file.
45953         * tests/test-sys_stat.c: New file.
45954
45955         * modules/sys_socket-tests: New file.
45956         * tests/test-sys_socket.c: New file.
45957
45958         * modules/sys_select-tests: New file.
45959         * tests/test-sys_select.c: New file.
45960
45961         * modules/string-tests: New file.
45962         * tests/test-string.c: New file.
45963
45964         * modules/stdbool-tests: New file.
45965         * tests/test-stdbool.c: New file.
45966
45967         * modules/netinet_in-tests: New file.
45968         * tests/test-netinet_in.c: New file.
45969
45970         * modules/inttypes-tests: New file.
45971         * tests/test-inttypes.c: New file.
45972
45973         * modules/fcntl-tests: New file.
45974         * tests/test-fcntl.c: New file.
45975
45976         * modules/byteswap-tests: New file.
45977         * tests/test-byteswap.c: New file.
45978
45979         * modules/arpa_inet-tests: New file.
45980         * tests/test-arpa_inet.c: New file.
45981
45982 2007-02-17  Bruno Haible  <bruno@clisp.org>
45983
45984         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
45985         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
45986         if the corresponding module is not enabled. Emit link warnings if
45987         the function is used nevertheless.
45988         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
45989         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
45990         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
45991         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
45992         * modules/inttypes (Depends-on): Add link-warning.
45993         (Makefile.am): Copy the contents of build-aux/link-warning.h into
45994         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
45995         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
45996         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
45997         * modules/imaxdiv (configure.ac): Likewise.
45998         * modules/strtoimax (configure.ac): Likewise.
45999         * modules/strtoumax (configure.ac): Likewise.
46000
46001 2007-02-17  Bruno Haible  <bruno@clisp.org>
46002
46003         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
46004         gl_STRING_MODULE_INDICATOR_DEFAULTS.
46005         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
46006         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
46007
46008 2007-02-17  Bruno Haible  <bruno@clisp.org>
46009
46010         * modules/link-warning: New file.
46011         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
46012         * lib/string_.h (GL_LINK_WARNING): Remove definition.
46013         * modules/string (Depends-on): Add link-warning.
46014         (Makefile.am): Copy the contents of build-aux/link-warning.h into
46015         string.h.
46016         * MODULES.html.sh (Support for building libraries and executables): Add
46017         link-warning.
46018
46019 2007-02-17  Bruno Haible  <bruno@clisp.org>
46020
46021         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
46022         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
46023         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
46024         long lines.
46025
46026 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
46027             Bruno Haible  <bruno@clisp.org>
46028
46029         * modules/tmpfile: New file.
46030         * lib/tmpfile.c: New file.
46031         * m4/tmpfile.m4: New file.
46032         * MODULES.html.sh (func_all_modules): New section "Input/output".
46033
46034 2007-02-15  Bruno Haible  <bruno@clisp.org>
46035
46036         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
46037         (supports_delete_on_close): New function.
46038         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
46039
46040 2007-02-14  Bruno Haible  <bruno@clisp.org>
46041
46042         * modules/mbspcasecmp-tests: New file.
46043         * tests/test-mbspcasecmp.sh: New file.
46044         * tests/test-mbspcasecmp.c: New file.
46045
46046         New module mbspcasecmp.
46047         * modules/mbspcasecmp: New file.
46048         * lib/mbspcasecmp.c: New file.
46049         * lib/string_.h (strncasecmp): Change warning message.
46050         (mbspcasecmp): New declaration.
46051         * m4/mbspcasecmp.m4: New file.
46052         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46053         GNULIB_MBSPCASECMP.
46054         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
46055         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
46056
46057 2007-02-14  Bruno Haible  <bruno@clisp.org>
46058
46059         * modules/mbsncasecmp-tests: New file.
46060         * tests/test-mbsncasecmp.sh: New file.
46061         * tests/test-mbsncasecmp.c: New file.
46062
46063         New module mbsncasecmp.
46064         * modules/mbsncasecmp: New file.
46065         * lib/mbsncasecmp.c: New file.
46066         * lib/string_.h (mbsncasecmp): New declaration.
46067         * m4/mbsncasecmp.m4: New file.
46068         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46069         GNULIB_MBSNCASECMP.
46070         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
46071         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
46072
46073 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
46074
46075         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
46076         Verify that it doesn't overlap with our flags.
46077         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
46078         do not have the desired effect in multibyte locales; instead, use
46079         mbscasecmp.
46080         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
46081         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
46082         we don't require GNU fnmatch ourselves (if our users require it, they
46083         should do so explicitly).
46084
46085         Fix regex code so it doesn't rely on strcasecmp.
46086         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
46087         Otherwise, include gnulib's langinfo.h.
46088         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
46089         undesirable behavior in non-C locales.  Instead, rely on localecharset.
46090         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
46091         * modules/regex (FILES): Remove m4/codeset.m4.
46092         (Depends-on): Add localcharset.  Remove strcase.
46093
46094 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46095
46096         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
46097         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
46098
46099 2007-02-13  Bruno Haible  <bruno@clisp.org>
46100
46101         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
46102         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46103
46104 2007-02-12  Bruno Haible  <bruno@clisp.org>
46105
46106         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
46107         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
46108         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
46109         time warning rather than a link error.
46110
46111 2007-02-12  Bruno Haible  <bruno@clisp.org>
46112
46113         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
46114         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
46115         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46116
46117 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
46118
46119         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
46120         args, not 2.
46121
46122 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
46123
46124         New module 'time', so that apps can include <time.h> as per
46125         POSIX and GNU instead of separate include files like time_r.h
46126         and timegm.h.  This implementation tries out a simpler approach
46127         for replacing decls in standard include files (as compared to
46128         the string module), somewhat as an experiment.
46129
46130         * config/srclist.txt: Comment out mktime.c for now.
46131         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
46132         since it doesn't apply any more.  Use generic wording instead.
46133         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
46134         'time'.
46135         * lib/time_.h, m4/time_h.m4, modules/time: New files.
46136         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
46137         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
46138         Don't include <sys/types.h>; no longer needed since we assume C89.
46139         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
46140         * lib/strftime.c: Likewise.
46141         * lib/time_r.c: Likewise.
46142         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
46143         * lib/nanosleep.c: Include <time.h> first, to check interface.
46144         * lib/strptime.c: Likewise.
46145         * lib/time_r.c: Likewise.
46146         * lib/timegm.c: Likewise.
46147         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
46148         needed.
46149         * lib/timegm.c: Don't include timegm.h; no longer needed.
46150         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
46151         time.h now handles any problems in that area.
46152         (struct timespec, nanosleep): Remove; time.h now arranges for these.
46153         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
46154         that time.h defines struct timespec.
46155         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
46156         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
46157         handles that.
46158         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
46159         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
46160         needed.  Set REPLACE_LOCALTIME.
46161         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
46162         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
46163         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
46164         nanosleep; time_h.m4 now does that.  Don't require
46165         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
46166         module handles this now.
46167         * modules/getdate (Depends-on): Remove timespec.  Add time.
46168         * modules/nanosleep (Depends-on): Likewise.
46169         * modules/stat-time (Depends-on): Likewise.
46170         * modules/nanosleep (Include): Include time.h, not timespec.h.
46171         * modules/strptime (Files): Remove lib/strptime.h.
46172         (Depends-on): Add extensions, time.
46173         (Include): Include time.h, not strptime.h.
46174         * modules/time_r (Files): Remove lib/time_r.h.
46175         (Depends-on): Add time.
46176         (Include): Include time.h, not time_r.h.
46177         * modules/timegm: Likewise.
46178         * modules/timespec (Description): Now does timespec-related decls
46179         of our own, instead of struct timespec itself.
46180         (Depends-on): Add time; remove extensions.
46181         (Maintainer): Add self.
46182         * modules/utimecmp (Depends-on): Add time; remove timespec.
46183         * modules/utimens (Depends-on): Likewise.
46184         * modules/xnanosleep (Depends-on): Likewise.
46185
46186 2007-02-11  Bruno Haible  <bruno@clisp.org>
46187
46188         * lib/c-strstr.c: Include allocsa.h.
46189         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46190         * lib/c-strcasestr.c: Include allocsa.h.
46191         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46192         * lib/strcasestr.c: Include allocsa.h.
46193         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
46194         * lib/mbsstr.c: Include allocsa.h.
46195         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
46196         allocsa/freesa instead of malloc/free.
46197         * lib/mbscasestr.c: Include allocsa.h.
46198         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
46199         allocsa/freesa instead of malloc/free.
46200         * modules/c-strstr (Depends-on): Add allocsa.
46201         * modules/c-strcasestr (Depends-on): Likewise.
46202         * modules/strcasestr (Depends-on): Likewise.
46203         * modules/mbsstr (Depends-on): Likewise.
46204         * modules/mbscasestr (Depends-on): Likewise.
46205
46206 2007-02-11  Bruno Haible  <bruno@clisp.org>
46207
46208         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
46209
46210         * modules/mbsspn-tests: New file.
46211         * tests/test-mbsspn.sh: New file.
46212         * tests/test-mbsspn.c: New file.
46213
46214 2007-02-11  Bruno Haible  <bruno@clisp.org>
46215
46216         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
46217
46218         * modules/mbspbrk-tests: New file.
46219         * tests/test-mbspbrk.sh: New file.
46220         * tests/test-mbspbrk.c: New file.
46221
46222 2007-02-11  Bruno Haible  <bruno@clisp.org>
46223
46224         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
46225         unneeded cast.
46226
46227         * modules/mbscspn-tests: New file.
46228         * tests/test-mbscspn.sh: New file.
46229         * tests/test-mbscspn.c: New file.
46230
46231 2007-02-11  Bruno Haible  <bruno@clisp.org>
46232
46233         * modules/mbscasecmp-tests: New file.
46234         * tests/test-mbscasecmp.sh: New file.
46235         * tests/test-mbscasecmp.c: New file.
46236
46237 2007-02-11  Bruno Haible  <bruno@clisp.org>
46238
46239         Ensure O(n) worst-case complexity of mbscasestr.
46240         * lib/mbscasestr.c: Include stdbool.h.
46241         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
46242         functions.
46243         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
46244         the bookkeeping indicates that it's worth it.
46245         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
46246
46247         * modules/mbscasestr-tests: New file.
46248         * tests/test-mbscasestr1.c: New file.
46249         * tests/test-mbscasestr2.sh: New file.
46250         * tests/test-mbscasestr2.c: New file.
46251         * tests/test-mbscasestr3.sh: New file.
46252         * tests/test-mbscasestr3.c: New file.
46253         * tests/test-mbscasestr4.sh: New file.
46254         * tests/test-mbscasestr4.c: New file.
46255         * m4/locale-tr.m4: New file.
46256
46257 2007-02-11  Bruno Haible  <bruno@clisp.org>
46258
46259         Ensure O(n) worst-case complexity of mbsstr.
46260         * lib/mbsstr.c: Include stdbool.h.
46261         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
46262         functions.
46263         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
46264         bookkeeping indicates that it's worth it.
46265         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
46266
46267         * modules/mbsstr-tests: New file.
46268         * tests/test-mbsstr1.c: New file.
46269         * tests/test-mbsstr2.sh: New file.
46270         * tests/test-mbsstr2.c: New file.
46271         * tests/test-mbsstr3.sh: New file.
46272         * tests/test-mbsstr3.c: New file.
46273         * m4/locale-fr.m4: New file.
46274
46275 2007-02-11  Bruno Haible  <bruno@clisp.org>
46276
46277         * lib/mbsrchr.c (mbsrchr): Fix bug.
46278
46279         * modules/mbsrchr-tests: New file.
46280         * tests/test-mbsrchr.sh: New file.
46281         * tests/test-mbsrchr.c: New file.
46282
46283 2007-02-11  Bruno Haible  <bruno@clisp.org>
46284
46285         * lib/mbschr.c (mbschr): Fix bug.
46286
46287         * modules/mbschr-tests: New file.
46288         * tests/test-mbschr.sh: New file.
46289         * tests/test-mbschr.c: New file.
46290         * m4/locale-zh.m4: New file.
46291
46292 2007-02-11  Bruno Haible  <bruno@clisp.org>
46293
46294         Support for copying multibyte string iterators.
46295         * lib/mbiter.h: Include <string.h>.
46296         (mbiter_multi_copy): New function.
46297         (mbi_copy): New macro.
46298         * lib/mbuiter.h: Include <string.h>.
46299         (mbuiter_multi_copy): New function.
46300         (mbui_copy): New macro.
46301
46302 2007-02-11  Bruno Haible  <bruno@clisp.org>
46303
46304         New module mbslen.
46305         * modules/mbslen: New file.
46306         * lib/mbslen.c: New file.
46307         * lib/string_.h (mbslen): New declaration.
46308         * m4/mbslen.m4: New file.
46309         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46310         GNULIB_MBSLEN.
46311         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
46312         * MODULES.html.sh (Internationalization functions): Add mbslen.
46313
46314 2007-02-11  Bruno Haible  <bruno@clisp.org>
46315
46316         Ensure O(n) worst-case complexity of strcasestr substitute.
46317         * lib/strcasestr.c: Include stdbool.h.
46318         (knuth_morris_pratt): New function.
46319         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
46320         bookkeeping indicates that it's worth it.
46321         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
46322
46323         * modules/strcasestr-tests: New file.
46324         * tests/test-strcasestr.c: New file.
46325
46326 2007-02-11  Bruno Haible  <bruno@clisp.org>
46327
46328         Ensure O(n) worst-case complexity of c_strcasestr.
46329         * lib/c-strcasestr.c: Include stdbool.h, string.h.
46330         (knuth_morris_pratt): New function.
46331         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
46332         the bookkeeping indicates that it's worth it.
46333         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
46334
46335         * modules/c-strcasestr-tests: New file.
46336         * tests/test-c-strcasestr.c: New file.
46337
46338 2007-02-11  Bruno Haible  <bruno@clisp.org>
46339
46340         Ensure O(n) worst-case complexity of c_strstr.
46341         * lib/c-strstr.c: Include stdbool.h, string.h.
46342         (knuth_morris_pratt): New function.
46343         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
46344         bookkeeping indicates that it's worth it.
46345         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
46346
46347         * lib/c-strstr.c: Complete rewrite for maintainability.
46348
46349         * modules/c-strstr-tests: New file.
46350         * tests/test-c-strstr.c: New file.
46351
46352 2007-02-11  Bruno Haible  <bruno@clisp.org>
46353
46354         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
46355         5.2.1 and earlier, whereby \055 was treated just like the range
46356         delimiter '-'.
46357         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
46358
46359 2007-02-08  Bruno Haible  <bruno@clisp.org>
46360
46361         * modules/regex (Depends-on): Add stdbool.
46362         Reported by Dalibor Topic <robilad@kaffe.org>.
46363
46364 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
46365
46366         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
46367         Prefer returning from main to exiting from it.
46368         Remove unnecessary parens after sizeof.
46369
46370 2007-02-05  Bruno Haible  <bruno@clisp.org>
46371
46372         New module mbssep.
46373         * modules/mbssep: New file.
46374         * lib/mbssep.c: New file.
46375         * lib/string_.h (strsep): Add a conditional link warning.
46376         (mbssep): New declaration.
46377         * m4/mbssep.m4: New file.
46378         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46379         GNULIB_MBSSEP.
46380         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
46381         * MODULES.html.sh (Internationalization functions): Add mbssep.
46382
46383 2007-02-05  Bruno Haible  <bruno@clisp.org>
46384
46385         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
46386         Optimize search in case of 1 delimiter.
46387
46388 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
46389
46390         * lib/acl.h: Include sys/types.h before sys/acl.h.
46391
46392 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
46393
46394         Merge upstream fix for glibc bugzilla #3957:
46395
46396         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
46397
46398         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
46399         bit for RE_HAT_LISTS_NOT_NEWLINE.
46400         (build_charclass_op): Remove bogus comment.
46401
46402 2007-02-05  Simon Josefsson  <simon@josefsson.org>
46403
46404         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
46405
46406 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
46407
46408         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
46409         * lib/memmem.c [!defined _LIBC]: Include config.h.
46410
46411 2007-02-04  Bruno Haible  <bruno@clisp.org>
46412
46413         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
46414         warning message.
46415
46416 2007-02-04  Bruno Haible  <bruno@clisp.org>
46417
46418         New module mbstok_r.
46419         * modules/mbstok_r: New file.
46420         * lib/mbstok_r.c: New file.
46421         * lib/string_.h (strtok_r): Change argument names to match the
46422         comments. Add a conditional link warning.
46423         (mbstok_r): New declaration.
46424         * m4/mbstok_r.m4: New file.
46425         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46426         GNULIB_MBSTOK_R.
46427         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
46428         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
46429
46430 2007-02-04  Bruno Haible  <bruno@clisp.org>
46431
46432         New module mbsspn.
46433         * modules/mbsspn: New file.
46434         * lib/mbsspn.c: New file.
46435         * lib/string_.h (strspn): Add a conditional link warning.
46436         (mbsspn): New declaration.
46437         * m4/mbsspn.m4: New file.
46438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46439         GNULIB_MBSSPN.
46440         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
46441         * MODULES.html.sh (Internationalization functions): Add mbsspn.
46442
46443 2007-02-04  Bruno Haible  <bruno@clisp.org>
46444
46445         New module mbspbrk.
46446         * modules/mbspbrk: New file.
46447         * lib/mbspbrk.c: New file.
46448         * lib/string_.h (strpbrk): Add a conditional link warning.
46449         (mbspbrk): New declaration.
46450         * m4/mbspbrk.m4: New file.
46451         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46452         GNULIB_MBSPBRK.
46453         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
46454         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
46455
46456 2007-02-04  Bruno Haible  <bruno@clisp.org>
46457
46458         New module mbscspn.
46459         * modules/mbscspn: New file.
46460         * lib/mbscspn.c: New file.
46461         * lib/string_.h (strcspn): Add a conditional link warning.
46462         (mbscspn): New declaration.
46463         * m4/mbscspn.m4: New file.
46464         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46465         GNULIB_MBSCSPN.
46466         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
46467         * MODULES.html.sh (Internationalization functions): Add mbscspn.
46468
46469 2007-02-04  Bruno Haible  <bruno@clisp.org>
46470
46471         New module mbscasestr, reduced goal of strcasestr.
46472         * modules/mbscasestr: New file.
46473         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
46474         (mbscasestr): Renamed from strcasestr.
46475         * lib/strcasestr.c: Don't include mbuiter.h.
46476         (strcasestr): Remove support for multibyte locales.
46477         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
46478         Change the conditional link warning.
46479         (mbscasestr): New declaration.
46480         * m4/mbscasestr.m4: New file.
46481         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
46482         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
46483         REPLACE_STRCASESTR.
46484         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
46485         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46486         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
46487         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
46488         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
46489         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
46490         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
46491         (Depends-on): Remove mbuiter.
46492         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
46493
46494 2007-02-04  Bruno Haible  <bruno@clisp.org>
46495
46496         Simplify handling of strncasecmp.
46497         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
46498         the conditional link warning.
46499         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
46500         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
46501         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
46502         * modules/strcase (configure.ac): Don't invoke
46503         gl_STRING_MODULE_INDICATOR.
46504         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
46505
46506 2007-02-04  Bruno Haible  <bruno@clisp.org>
46507
46508         New module mbscasecmp, reduced goal of strcasecmp.
46509         * modules/mbscasecmp: New file.
46510         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
46511         (mbscasecmp): Renamed from strcasecmp.
46512         * lib/strcasecmp.c: Don't include mbuiter.h.
46513         (strcasecmp): Remove support for multibyte locales.
46514         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
46515         Change the conditional link warning.
46516         (mbscasecmp): New declaration.
46517         * m4/mbscasecmp.m4: New file.
46518         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
46519         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
46520         REPLACE_STRCASECMP.
46521         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
46522         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46523         GNULIB_MBSCASECMP.
46524         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
46525         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
46526         * modules/strcase (Files): Remove m4/mbrtowc.m4.
46527         (Depends-on): Remove mbuiter.
46528         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
46529
46530 2007-02-04  Bruno Haible  <bruno@clisp.org>
46531
46532         New module mbsstr. Remove module strstr.
46533         * modules/mbsstr: New file.
46534         * modules/strstr: Remove file.
46535         * lib/mbsstr.c: Renamed from lib/strstr.c.
46536         (mbsstr): Renamed from strstr.
46537         * lib/string_.h (strstr): Remove declaration. Change the conditional
46538         link warning.
46539         (mbsstr): New declaration.
46540         * m4/mbsstr.m4: New file.
46541         * m4/strstr.m4: Remove file.
46542         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
46543         REPLACE_STRSTR.
46544         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
46545         Don't initialize GNULIB_STRSTR.
46546         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
46547         substitute GNULIB_STRSTR and REPLACE_STRSTR.
46548         * MODULES.html.sh (Internationalization functions): Add mbsstr.
46549         (Support for systems lacking ANSI C 89): Remove strstr.
46550
46551 2007-02-04  Bruno Haible  <bruno@clisp.org>
46552
46553         New module mbsrchr.
46554         * modules/mbsrchr: New file.
46555         * lib/mbsrchr.c: New file.
46556         * lib/string_.h (strrchr): Add a conditional link warning.
46557         (mbsrchr): New declaration.
46558         * m4/mbsrchr.m4: New file.
46559         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46560         GNULIB_MBSRCHR.
46561         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
46562         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
46563
46564 2007-02-04  Bruno Haible  <bruno@clisp.org>
46565
46566         New module mbschr.
46567         * modules/mbschr: New file.
46568         * lib/mbschr.c: New file.
46569         * lib/string_.h (strchr): Add a conditional link warning.
46570         (mbschr): New declaration.
46571         * m4/mbschr.m4: New file.
46572         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
46573         GNULIB_MBSCHR.
46574         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
46575         * MODULES.html.sh (Internationalization functions): Add mbschr.
46576
46577 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
46578
46579         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
46580
46581         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
46582
46583 2007-02-04  Bruno Haible  <bruno@clisp.org>
46584
46585         New module description section 'configure.ac-early'.
46586         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
46587         (func_get_autoconf_early_snippet): New function.
46588         (func_import, func_create_testdir): Use it. Remove special cases for
46589         modules 'extensions' and 'lock'.
46590         * modules/extensions (configure.ac-early): Require
46591         gl_USE_SYSTEM_EXTENSIONS.
46592         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
46593
46594 2007-02-04  Bruno Haible  <bruno@clisp.org>
46595
46596         Make use of gcj-4.3's -fsource and -ftarget option.
46597         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
46598         and if so try the options -fsource and -ftarget.
46599         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
46600         source_version, ftarget_option, target_version arguments.
46601         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
46602         (is_envjavac_oldgcj_14_14_usable): Renamed from
46603         is_envjavac_gcj_14_14_usable.
46604         (is_envjavac_oldgcj_14_13_usable): Renamed from
46605         is_envjavac_gcj_14_13_usable.
46606         (is_gcj_present): Update.
46607         (is_gcj_43, is_gcj43_usable): New functions.
46608         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
46609         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
46610         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
46611         try the options -fsource and -ftarget.
46612
46613 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
46614
46615         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
46616         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
46617         larger value.
46618
46619 2007-02-03  Jim Meyering  <jim@meyering.net>
46620
46621         Give tools a better chance to allocate space for very large buffers.
46622         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
46623
46624         Make pwd and readlink work also when run with an unreadable parent dir
46625         on systems with openat support.
46626         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
46627         provided getcwd function, even when we have openat support.
46628         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
46629
46630 2007-02-02  Bruno Haible  <bruno@clisp.org>
46631
46632         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
46633         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
46634         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
46635         portability problems if one of these functions is only used on specific
46636         platforms.
46637         Reported by Paul Eggert.
46638
46639 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
46640
46641         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
46642         is causing more trouble than it's curing.
46643         * lib/regex_internal.h (__mempcpy): Remove.
46644         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
46645         (and make the code a tad smaller to boot).
46646         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
46647
46648 2007-02-02  Jim Meyering  <jim@meyering.net>
46649
46650         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
46651         section, not in the Makefile.am: one.
46652
46653 2007-02-02  Eric Blake  <ebb9@byu.net>
46654
46655         * lib/strchrnul.c: Always include config.h first.
46656
46657         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
46658         gnulib strstr is not necessary here.
46659
46660 2007-02-02  Simon Josefsson  <simon@josefsson.org>
46661
46662         * m4/socklen.m4: Fix typo.
46663
46664 2007-02-02  Eric Blake  <ebb9@byu.net>
46665
46666         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
46667         * modules/netinet_in (Makefile.am): Likewise.
46668
46669 2007-02-01  Bruno Haible  <bruno@clisp.org>
46670
46671         * lib/string_.h (GL_LINK_WARNING): New macro.
46672         (strcasecmp, strstr, strcasestr): If provided by the system,
46673         conditionally define as a macro that leads to a warning instead of to
46674         an error.
46675         (strncasecmp): Conditionally define as a macro that leads to a warning.
46676
46677 2007-02-01  Karl Berry  <karl@gnu.org>
46678
46679         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
46680
46681 2007-02-01  Bruno Haible  <bruno@clisp.org>
46682
46683         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
46684         renamings.
46685
46686 2007-02-01  Eric Blake  <ebb9@byu.net>
46687
46688         * modules/regex (Depends-on): Revert dependence on mempcpy.
46689         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
46690         module's definition of mempcpy.
46691         Reported by Paul Eggert.
46692
46693 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
46694
46695         * lib/string_.h: If the gnulib module XYZ is not present, undefine
46696         the symbol XYZ before redefining it.  This fixes a problem with
46697         programs that don't use XYZ, when compiled on systems that define
46698         XYZ to something else.
46699
46700 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
46701
46702         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
46703         occurs when "mkdir -m foo" creates a setgid directory that is (1)
46704         writeable to group or other and (2) is intended to have a special
46705         mode bit that is set or cleared.  In such a case, the directory
46706         should be neither group- nor other-writeable until the special
46707         mode bits are right.
46708
46709 2007-01-31  Eric Blake  <ebb9@byu.net>
46710
46711         * modules/mountlist (Depends-on): Add strstr.
46712
46713         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
46714         bug.
46715         * modules/string (Makefile.am): Remove redundant replacement.
46716         * modules/regex (Depends-on): Add mempcpy.
46717
46718 2007-01-31  Bruno Haible  <bruno@clisp.org>
46719
46720         New module description field 'Link'.
46721         * gnulib-tool (func_usage): Document --extract-link-directive.
46722         (sed_extract_prog): Recognize 'Link' directive.
46723         (func_get_link_directive): New function.
46724         (func_import): Show summary of link directives.
46725         Handle --extract-link-directive option.
46726         * modules/acl (Link): New section.
46727         * modules/clock-time (Link): New section.
46728         * modules/euidaccess (Link): New section.
46729         * modules/gettext (Link): New section.
46730         * modules/iconv (Link): New section.
46731         * modules/lock (Link): New section.
46732         * modules/nanosleep (Link): New section.
46733         * modules/readline (Link): New section.
46734
46735 2007-01-27  Bruno Haible  <bruno@clisp.org>
46736
46737         Enforce the use of gnulib modules for unportable <string.h> functions.
46738         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
46739         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
46740         (gl_HEADER_STRING_H_BODY): Require it.
46741         * lib/string_.h: If the gnulib module XYZ is not present, redefine
46742         the symbol XYZ to one that gives a link error.
46743         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
46744         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
46745         * modules/mempcpy (configure.ac): Likewise.
46746         * modules/memrchr (configure.ac): Likewise.
46747         * modules/stpcpy (configure.ac): Likewise.
46748         * modules/stpncpy (configure.ac): Likewise.
46749         * modules/strcase (configure.ac): Likewise.
46750         * modules/strcasestr (configure.ac): Likewise.
46751         * modules/strchrnul (configure.ac): Likewise.
46752         * modules/strdup (configure.ac): Likewise.
46753         * modules/strndup (configure.ac): Likewise.
46754         * modules/strnlen (configure.ac): Likewise.
46755         * modules/strpbrk (configure.ac): Likewise.
46756         * modules/strsep (configure.ac): Likewise.
46757         * modules/strstr (configure.ac): Likewise.
46758         * modules/strtok_r (configure.ac): Likewise.
46759
46760 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
46761
46762         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
46763
46764 2007-01-30  Jim Meyering  <jim@meyering.net>
46765
46766         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
46767
46768 2007-01-29  Bruno Haible  <bruno@clisp.org>
46769
46770         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
46771         * lib/execute.c: Likewise.
46772         * lib/pipe.c: Likewise.
46773         * lib/printf-args.h: Likewise.
46774         * lib/printf-args.c: Likewise.
46775         * lib/printf-parse.c: Likewise.
46776         * lib/vasnprintf.c: Likewise.
46777
46778 2007-01-29  Eric Blake  <ebb9@byu.net>
46779
46780         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
46781         declaration.
46782
46783 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
46784
46785         * lib/strptime.h (strptime): Use 'restrict' for args where
46786         POSIX requires this.
46787         * lib/strptime.c (strptime): Likewise.
46788         Change license notice from LGPL to GPL, since gnulib-tool will
46789         change this as needed.
46790         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
46791         defined.
46792         Include "strptime.h" first, to check interface.
46793         Do not #undef _LIBC and _NL_CURRENT.
46794         Do not include <stdlib.h>; no longer needed.
46795         Include "time_r.h" and declare ptime_locale_status
46796         only if _LIBC is not defined.
46797         (__P): Remove unused macro.
46798         (match_string): Bring back glibc version, but use it only if _LIBC
46799         is defined.
46800         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
46801         Remove unnecessary assertion and abort() call.
46802         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
46803         * m4/strptime.m4: Fix serial number comment.
46804         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
46805         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
46806         (Depends-on): Add time_r.
46807
46808 2007-01-29  Bruno Haible  <bruno@clisp.org>
46809
46810         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46811         strptime.
46812         * modules/strptime (Depends-on): Add stdbool.
46813         * lib/strptime.h: Include <time.h> always. Add comments.
46814
46815 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
46816
46817         * modules/strptime: New file.
46818         * lib/strptime.h: New file.
46819         * lib/strptime.c: New file.
46820         * m4/strptime.m4: New file.
46821
46822 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
46823
46824         * MODULES.html.sh: New module mpsort.
46825         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
46826
46827         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
46828         a circularity problem with HP-UX ia64 reported by Bob Proulx in
46829         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
46830         All uses changed.
46831         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
46832         All uses changed.
46833         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
46834         to _Restrict_.
46835         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
46836         the parameter matches the prototype.
46837
46838 2007-01-28  Jim Meyering  <jim@meyering.net>
46839
46840         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
46841         sys/time.h here, reverting that part of the previous patch:
46842         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
46843
46844 2007-01-28  Bruno Haible  <bruno@clisp.org>
46845
46846         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
46847         value of $(SYS_TIME_H).
46848         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
46849         remove it conditionally, too. [added by Jim Meyering]
46850         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
46851         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
46852         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
46853         GETTIMEOFDAY_REPLACEMENT to 1.
46854
46855 2007-01-28  Bruno Haible  <bruno@clisp.org>
46856
46857         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
46858         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
46859         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
46860         Set UNISTD_H instead of UNISTD_H2.
46861         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
46862
46863 2007-01-28  Bruno Haible  <bruno@clisp.org>
46864
46865         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
46866         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
46867
46868 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46869
46870         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
46871         (func_create_testdir): Ensure C locale for `grep' and `tr'
46872         character ranges.
46873         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
46874         ACLOCAL_AMFLAGS parsing state machine.
46875
46876 2007-01-27  Bruno Haible  <bruno@clisp.org>
46877
46878         * modules/unistr/base: Update.
46879
46880 2007-01-27  Bruno Haible  <bruno@clisp.org>
46881
46882         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
46883         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
46884         * modules/unistr/u32-mbtouc-unsafe: Renamed from
46885         modules/unistr/u32-mbtouc.
46886         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
46887         * lib/unistr.h: Update.
46888         * lib/linebreak.c: Update.
46889         * modules/unistr/u32-mbtouc: Renamed from
46890         modules/unistr/u32-mbtouc-safe.
46891         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
46892         * lib/unistr.h: Update.
46893         * lib/unistr/u32-to-u8.c: Update.
46894         * lib/unistr/u32-to-u16.c: Update.
46895
46896 2007-01-27  Bruno Haible  <bruno@clisp.org>
46897
46898         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
46899         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
46900         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
46901         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
46902         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
46903         * modules/unistr/u16-mbtouc-unsafe: Renamed from
46904         modules/unistr/u16-mbtouc.
46905         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
46906         * lib/unistr.h: Update.
46907         * lib/linebreak.c: Update.
46908         * modules/linebreak: Update.
46909         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
46910         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
46911         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
46912         * modules/unistr/u16-mbtouc: Renamed from
46913         modules/unistr/u16-mbtouc-safe.
46914         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
46915         * lib/unistr.h: Update.
46916         * lib/unistr/u16-to-u8.c: Update.
46917         * modules/unistr/u16-to-u8: Update.
46918         * lib/unistr/u16-to-u32.c: Update.
46919         * modules/unistr/u16-to-u32: Update.
46920
46921 2007-01-27  Bruno Haible  <bruno@clisp.org>
46922
46923         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
46924         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
46925         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
46926         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
46927         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
46928         * modules/unistr/u8-mbtouc-unsafe: Renamed from
46929         modules/unistr/u8-mbtouc.
46930         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
46931         * lib/unistr.h: Update.
46932         * lib/striconveh.c: Update.
46933         * modules/striconveh: Update.
46934         * lib/linebreak.c: Update.
46935         * modules/linebreak: Update.
46936         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
46937         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
46938         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
46939         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
46940         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
46941         * lib/unistr.h: Update.
46942         * lib/striconveh.c: Update.
46943         * modules/striconveh: Update.
46944         * lib/unistr/u8-to-u16.c: Update.
46945         * modules/unistr/u8-to-u16: Update.
46946         * lib/unistr/u8-to-u32.c: Update.
46947         * modules/unistr/u8-to-u32: Update.
46948
46949 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46950
46951         Sync from Libtool.
46952         * lib/argz.c: Do not include strings.h nor memory.h, include
46953         string.h unconditionally.  Patch by Simon Josefsson.
46954
46955 2007-01-27  Bruno Haible  <bruno@clisp.org>
46956
46957         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
46958         from gl_HEADER_STRING_H_BODY.
46959         (gl_HEADER_STRING_H_BODY): Require it.
46960         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
46961         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
46962         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
46963         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
46964         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
46965         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
46966         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46967         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
46968         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
46969         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46970         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
46971         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
46972         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
46973         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46974         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
46975
46976 2007-01-27  Bruno Haible  <bruno@clisp.org>
46977
46978         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
46979         check_PROGRAMS into noinst_PROGRAMS.
46980         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
46981         check_PROGRAMS in this case.
46982         (func_import): Set for_test to false.
46983         (func_create_testdir): Set for_test to true.
46984
46985 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46986             Bruno Haible  <bruno@clisp.org>
46987
46988         * modules/strcasestr (Files): Remove lib/strcasestr.h.
46989         (Depends-on): Add string.
46990         (Includes): Use <string.h> instead of strcasestr.h.
46991         * modules/string (Makefile.am): Also substitute the value of
46992         REPLACE_STRCASESTR.
46993         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
46994         assume strcasestr is declared in <string.h> not <strings.h>. Also
46995         set REPLACE_STRCASESTR.
46996         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
46997         REPLACE_STRCASESTR.
46998         * lib/strcasestr.h: Remove file.
46999         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
47000         * lib/string_.h (strcasestr): New declaration.
47001
47002 2007-01-27  Bruno Haible  <bruno@clisp.org>
47003
47004         * lib/string_.h: Use 'extern'.
47005
47006 2007-01-27  Jim Meyering  <jim@meyering.net>
47007
47008         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
47009         of set-but-not-used local, "q".
47010
47011         * lib/mempcpy.c: Include <config.h> before <string.h>.
47012         This fixes a compilation error on HP-UX, due to the system's
47013         "restrict"-using mempcpy prototype.
47014
47015 2007-01-26  Bruno Haible  <bruno@clisp.org>
47016
47017         Small optimization.
47018         * lib/javacomp.c: Include c-strstr.h.
47019          (is_envjavac_gcj): Use c_strstr instead of strstr.
47020         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
47021
47022 2007-01-26  Bruno Haible  <bruno@clisp.org>
47023
47024         * MODULES.html.sh (Unicode string functions): Add the new modules.
47025
47026         * modules/uniconv/u32-strconv-to-locale: New file.
47027         * lib/uniconv/u32-strconv-to-locale.c: New file.
47028
47029         * modules/uniconv/u16-strconv-to-locale: New file.
47030         * lib/uniconv/u16-strconv-to-locale.c: New file.
47031
47032         * modules/uniconv/u8-strconv-to-locale: New file.
47033         * lib/uniconv/u8-strconv-to-locale.c: New file.
47034
47035         * modules/uniconv/u32-strconv-from-locale: New file.
47036         * lib/uniconv/u32-strconv-from-locale.c: New file.
47037
47038         * modules/uniconv/u16-strconv-from-locale: New file.
47039         * lib/uniconv/u16-strconv-from-locale.c: New file.
47040
47041         * modules/uniconv/u8-strconv-from-locale: New file.
47042         * lib/uniconv/u8-strconv-from-locale.c: New file.
47043
47044         * modules/uniconv/u32-strconv-to-enc: New file.
47045         * lib/uniconv/u32-strconv-to-enc.c: New file.
47046         * modules/uniconv/u32-strconv-to-enc-tests: New file.
47047         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
47048
47049         * modules/uniconv/u16-strconv-to-enc: New file.
47050         * lib/uniconv/u16-strconv-to-enc.c: New file.
47051         * lib/uniconv/u-strconv-to-enc.h: New file.
47052         * modules/uniconv/u16-strconv-to-enc-tests: New file.
47053         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
47054
47055         * modules/uniconv/u8-strconv-to-enc: New file.
47056         * lib/uniconv/u8-strconv-to-enc.c: New file.
47057         * modules/uniconv/u8-strconv-to-enc-tests: New file.
47058         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
47059
47060         * modules/uniconv/u32-strconv-from-enc: New file.
47061         * lib/uniconv/u32-strconv-from-enc.c: New file.
47062         * modules/uniconv/u32-strconv-from-enc-tests: New file.
47063         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
47064
47065         * modules/uniconv/u16-strconv-from-enc: New file.
47066         * lib/uniconv/u16-strconv-from-enc.c: New file.
47067         * modules/uniconv/u16-strconv-from-enc-tests: New file.
47068         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
47069
47070         * modules/uniconv/u8-strconv-from-enc: New file.
47071         * lib/uniconv/u8-strconv-from-enc.c: New file.
47072         * lib/uniconv/u-strconv-from-enc.h: New file.
47073         * modules/uniconv/u8-strconv-from-enc-tests: New file.
47074         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
47075
47076         * modules/uniconv/u32-conv-from-enc: New file.
47077         * lib/uniconv/u32-conv-from-enc.c: New file.
47078         * modules/uniconv/u32-conv-from-enc-tests: New file.
47079         * tests/uniconv/test-u32-conv-from-enc.c: New file.
47080
47081         * modules/uniconv/u16-conv-from-enc: New file.
47082         * lib/uniconv/u16-conv-from-enc.c: New file.
47083         * lib/uniconv/u-conv-from-enc.h: New file.
47084         * modules/uniconv/u16-conv-from-enc-tests: New file.
47085         * tests/uniconv/test-u16-conv-from-enc.c: New file.
47086
47087         * modules/uniconv/u8-conv-from-enc: New file.
47088         * lib/uniconv/u8-conv-from-enc.c: New file.
47089         * modules/uniconv/u8-conv-from-enc-tests: New file.
47090         * tests/uniconv/test-u8-conv-from-enc.c: New file.
47091
47092         * modules/uniconv/base: New file.
47093         * lib/uniconv.h: New file.
47094
47095 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
47096
47097         * doc/gnulib-tool.texi (Initial import): Update to match current
47098         behavior with strdup module.
47099         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
47100         * lib/memmem.h: Remove; all uses removed.  This is now done
47101         by <string.h>.
47102         * lib/mempcpy.h: Likewise.
47103         * lib/memrchr.h: Likewise.
47104         * lib/stpcpy.h: Likewise.
47105         * lib/stpncpy.h: Likewise.
47106         * lib/strcase.h: Likewise.
47107         * lib/strchrnul.h: Likewise.
47108         * lib/strdup.h: Likewise.
47109         * lib/strndup.h: Likewise.
47110         * lib/strnlen.h: Likewise.
47111         * lib/strpbrk.h: Likewise.
47112         * lib/strsep.h: Likewise.
47113         * lib/strstr.h: Likewise.
47114         * lib/strtok_r.h: Likewise.
47115         * lib/string_.h: New file.
47116         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
47117         Rely on <string.h> instead.
47118         * lib/canon-host.c: Likewise.
47119         * lib/chdir-long.c: Likewise.
47120         * lib/concatpath.c: Likewise.
47121         * lib/exclude.c: Likewise.
47122         * lib/fchdir.c: Likewise.
47123         * lib/getaddrinfo.c: Likewise.
47124         * lib/getcwd.c: Likewise.
47125         * lib/getsubopt.c: Likewise.
47126         * lib/glob.c: Likewise.
47127         * lib/hard-locale.c: Likewise.
47128         * lib/iconvme.c: Likewise.
47129         * lib/javacomp.c: Likewise.
47130         * lib/mempcpy.c: Likewise.
47131         * lib/memrchr.c: Likewise.
47132         * lib/regex_internal.h: Likewise.
47133         * lib/stpncpy.c: Likewise.
47134         * lib/strcasecmp.c: Likewise.
47135         * lib/strchrnul.c: Likewise.
47136         * lib/strdup.c: Likewise.
47137         * lib/striconv.c: Likewise.
47138         * lib/striconveh.c: Likewise.
47139         * lib/striconveha.c: Likewise.
47140         * lib/strncasecmp.c: Likewise.
47141         * lib/strndup.c: Likewise.
47142         * lib/strnlen.c: Likewise.
47143         * lib/strsep.c: Likewise.
47144         * lib/strstr.c: Likewise.
47145         * lib/strtok_r.c: Likewise.
47146         * lib/userspec.c: Likewise.
47147         * lib/w32spawn.h: Likewise.
47148         * lib/xstrndup.c: Likewise.
47149         * lib/mountlist.c (strstr): Remove decl.
47150         * m4/string_h.m4: New file.
47151         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
47152         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
47153         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
47154         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
47155         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
47156         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
47157         Set REPLACE_STRCASECMP if necessary.
47158         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
47159         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
47160         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
47161         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
47162         HAVE_DECL_STRDUP if necessary.
47163         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
47164         since gl_FUNC_STRNDUP does that now.
47165         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
47166         Check for decl here...
47167         (gl_PREREQ_STRNLEN): ... not here.
47168         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
47169         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
47170         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
47171         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
47172         necessary.
47173         * modules/string: New file.
47174         * modules/memmem (Files): Remove special-purpose include file.
47175         (Depends-on): Add string.
47176         (Include): Include <string.h>, not the removed file.
47177         * modules/mempcpy: Likewise.
47178         * modules/memrchr: Likewise.
47179         * modules/stpcpy: Likewise.
47180         * modules/stpncpy: Likewise.
47181         * modules/strcase: Likewise.
47182         * modules/strchrnul: Likewise.
47183         * modules/strdup: Likewise.
47184         * modules/strndup: Likewise.
47185         * modules/strnlen: Likewise.
47186         * modules/strpbrk: Likewise.
47187         * modules/strsep: Likewise.
47188         * modules/strstr: Likewise.
47189         * modules/strtok_r: Likewise.
47190         * tests/test-dirname.c: Don't include "strdup.h", since
47191         <string.h> now suffices.
47192         * tests/test-memmem.c: Don't include "memmem.h", since
47193         <string.h> now suffices.
47194
47195 2007-01-25  Bruno Haible  <bruno@clisp.org>
47196
47197         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
47198         *resultp is 0.
47199
47200         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
47201         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
47202         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
47203         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
47204
47205         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
47206         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
47207         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
47208         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
47209         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
47210         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
47211
47212 2007-01-24  Bruno Haible  <bruno@clisp.org>
47213
47214         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
47215         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
47216         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
47217         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
47218         gl_FUNC_FTS_CORE.
47219         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
47220         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
47221         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
47222         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
47223         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
47224         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
47225         gl_FUNC_FCHOWNAT.
47226         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
47227         gl_FUNC_STRFTIME.
47228         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
47229         Reported by Ralf Wildenhues.
47230
47231 2007-01-24  Bruno Haible  <bruno@clisp.org>
47232
47233         Drop AC_REQUIRE calls that are redundant with the module dependencies.
47234         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
47235         gl_GETADDRINFO.
47236         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
47237         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
47238         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
47239
47240 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
47241
47242         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
47243         Don't use 'exit'; just return from 'main'.
47244         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
47245
47246         * lib/fnmatch_.h: Readjust white space and comments to match
47247         glibc, to avoid spurious diffs.
47248
47249 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47250
47251         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
47252         2004-12-01 change by Jakub Jelinek, since this code won't compile
47253         if !LIBC.  Problem reported by Bob Proulx.
47254
47255 2007-01-23  Bruno Haible  <bruno@clisp.org>
47256
47257         * lib/striconveh.c: Include c-strcaseeq.h.
47258         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
47259         * modules/striconveh (Depends-on): Add c-strcaseeq.
47260
47261 2007-01-23  Bruno Haible  <bruno@clisp.org>
47262
47263         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
47264
47265         * modules/c-strcaseeq: New file.
47266         * lib/c-strcaseeq.h: New file.
47267
47268         * modules/streq: New file.
47269         * lib/streq.h: New file.
47270
47271 2007-01-23  Bruno Haible  <bruno@clisp.org>
47272
47273         * modules/striconveha-tests: New file.
47274         * tests/test-striconveha.c: New file.
47275
47276         * lib/striconveha.h: Include <stdbool.h>.
47277         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
47278         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
47279         (mem_iconveha_notranslit): Renamed from mem_iconveha.
47280         (mem_iconveha): New function.
47281         (str_iconveha_notranslit): Renamed from str_iconveha.
47282         (str_iconveha): New function.
47283         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
47284         c-strcase.
47285
47286 2007-01-23  Bruno Haible  <bruno@clisp.org>
47287
47288         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
47289         encodings without forgiving before trying any encoding with handler.
47290         (str_iconveha): Try all encodings without forgiving before trying any
47291         encoding with handler.
47292
47293 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
47294
47295         Import the following changes from libc.
47296
47297         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
47298
47299         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
47300
47301         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
47302
47303         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
47304         normal_bracket label.
47305
47306         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
47307
47308         [BZ #361]
47309         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
47310         to normal_bracket after fetching the next character.
47311
47312 2007-01-22  Bruno Haible  <bruno@clisp.org>
47313
47314         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
47315         argument.
47316         * lib/striconveh.c (iconv_carefully_1): New function.
47317         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
47318         argument.
47319         (str_cd_iconveh): Update.
47320         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
47321         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
47322         * tests/test-striconveh.c (MAGIC): New macro.
47323         (new_offsets): New function.
47324         (main): Test call with and without offsets.
47325
47326 2007-01-22  Bruno Haible  <bruno@clisp.org>
47327
47328         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
47329         * modules/sys_select (Makefile.am): Likewise.
47330         * modules/sys_socket (Makefile.am): Likewise.
47331         * modules/sys_time (Makefile.am): Likewise.
47332
47333 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
47334
47335         * modules/gettimeofday (License): Change from GPL to LGPL, since
47336         gettimeofday is a library function.
47337
47338 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47339
47340         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
47341
47342 2007-01-21  Bruno Haible  <bruno@clisp.org>
47343
47344         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
47345
47346 2007-01-21  Bruno Haible  <bruno@clisp.org>
47347
47348         * modules/striconveha: New file.
47349         * lib/striconveha.h: New file.
47350         * lib/striconveha.c: New file.
47351         * MODULES.html.sh (Internationalization functions): Add striconveha.
47352         * lib/striconv.c (str_iconv): Optimize the case of an empty input
47353         string.
47354         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
47355
47356 2007-01-21  Bruno Haible  <bruno@clisp.org>
47357
47358         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
47359         * lib/striconveh.c (str_iconveh): Likewise.
47360
47361 2007-01-21  Bruno Haible  <bruno@clisp.org>
47362
47363         * lib/striconveh.h (mem_iconveh): New declaration.
47364         * lib/striconveh.c (mem_iconveh): New function.
47365         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
47366
47367 2007-01-21  Bruno Haible  <bruno@clisp.org>
47368
47369         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
47370
47371         * lib/striconveh.h (mem_cd_iconveh): Change specification.
47372         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
47373         original result buffer.
47374         (str_cd_iconveh): Update.
47375         * tests/test-striconveh.c (main): Update.
47376
47377         * lib/striconv.h (mem_cd_iconv): Change specification.
47378         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
47379         result buffer.
47380         (str_cd_iconv): Update.
47381         * tests/test-striconv.c (main): Update.
47382
47383 2007-01-21  Bruno Haible  <bruno@clisp.org>
47384
47385         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
47386
47387 2007-01-20  Jim Meyering  <jim@meyering.net>
47388
47389         * lib/userspec.c (parse_with_separator): If a user or group string
47390         starts with "+", skip the corresponding name-to-ID look-up, since
47391         such a look-up must fail: user and group names may not include "+".
47392
47393 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
47394
47395         * lib/poll.c: Include sys/time.h and time.h unconditionally,
47396         since we now assume the sys_time module.
47397         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
47398         check for sys/time.h; no longer needed.
47399         * modules/poll (Depends-on): Depend on sys_time.
47400
47401 2007-01-18  Bruno Haible  <bruno@clisp.org>
47402
47403         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
47404         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
47405
47406         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
47407         gettimeofday.
47408
47409         * tests/test-gettimeofday.c: Include <time.h>.
47410         (dummy): Remove variable.
47411
47412         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
47413         gl_HEADER_SYS_TIME_H.
47414         (gl_HEADER_SYS_TIME_H): New macro.
47415
47416         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
47417         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47418         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
47419         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
47420         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47421         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
47422         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
47423         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47424         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
47425         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
47426         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47427
47428         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
47429         last change; it caused a compilation error when cross-compiling to
47430         Cygwin.
47431
47432 2007-01-18  Jim Meyering  <jim@meyering.net>
47433
47434         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
47435         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
47436         than the race-prone "test -d sys || mkdir sys".
47437         (configure.ac): Use AC_PROG_MKDIR_P.
47438         * modules/sys_select: Likewise.
47439         * modules/sys_socket: Likewise.
47440         * modules/sys_time: Likewise.
47441
47442 2007-01-18  Eric Blake  <ebb9@byu.net>
47443
47444         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
47445         replace gettimeofday.
47446         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
47447         name, to avoid infinite recursion.
47448
47449 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
47450
47451         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
47452         module sys_time.
47453         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
47454         assume timespec.h defines struct timeval.
47455         * lib/settime.c: Likewise.
47456         * lib/utimens.c: Likewise.
47457         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
47458         since we now assume the gettimeofday module.
47459         * lib/tempname.c (__gen_tempname): Likewise.
47460         * lib/gettimeofday.h: Remove.
47461         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
47462         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
47463         Include <time.h>, for 'time()'.
47464         (localtime_buffer_addr): Also use this workaround if
47465         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
47466         to simplify the uses.  All uses changed.
47467         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
47468         that #undef is inside {}, and 'const' follows type name consistently.
47469         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
47470         (gettimeofday): Do not use the maximum possible value for
47471         tv->tv_usec, since that might break usages other than ls.c.
47472         Instead, we'll leave ls.c alone.  This undoes today's patch
47473         by Bruno.  Add a compile-time warning for 1s-clock resolution;
47474         we've never observed the problem but might as well keep the
47475         canary.
47476         * lib/nanosleep.c: Include timespec.h first, for interface check.
47477         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
47478         now assume the sys_time module.
47479         * lib/tempname.c: Likewise.
47480         * lib/timespec.h: Likewise.
47481         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
47482         needed.
47483         * lib/strftime.c: Likewise.
47484         * lib/timespec.h: Likewise.
47485         * lib/posixtm.c: Include posixtm.h first, for interface check.
47486         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
47487         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
47488         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
47489         * lib/sys_time_.h: New file.
47490         * lib/timespec.h (struct timespec): Use long int, not long.
47491         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
47492         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
47493         Remove obsolescent call to AC_HEADER_TIME.
47494         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
47495         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
47496         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
47497         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
47498         Likewise.
47499         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
47500         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
47501         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
47502         into the sys_time module.  Check for gettimeofday just once.
47503         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
47504         for gettimeofday signature to just check the signature.  Merely
47505         compile it, since linking doesn't test signature.  Improve test for
47506         whether gettimeofday.o is actually needed.
47507         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
47508         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
47509         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
47510         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47511         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
47512         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
47513         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
47514         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
47515         than worrying about sys/time.h.
47516         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
47517         Don't bother worrying about TIME_WITH_SYS_TIME.
47518         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
47519         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
47520         * m4/sys_time_h.m4: New file.
47521         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
47522         Don't include sys/time.h.  Return from main rather than exiting.
47523         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
47524         all uses changed.
47525         * modules/gethrxtime (Depends-on): Add sys_time.
47526         * modules/gettime (Depends-on): Likewise.
47527         * modules/gettimeofday (Depends-on): Likewise.
47528         * modules/nanosleep (Depends-on): Likewise.
47529         * modules/settime (Depends-on): Likewise.
47530         * modules/tempname (Depends-on): Likewise.
47531         * modules/utimens (Depends-on): Likewise.
47532         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
47533         (Include:) Change back to <sys/time.h>.
47534         (Maintainer:) Add self.
47535         * modules/sys_time: New file.
47536         * modules/tempname (Depends-on): Add gettimeofday.
47537         * tests/test-gettimeofday.c: Include <sys/time.h>
47538         rather than gettimeofday.h.
47539
47540 2007-01-17  Bruno Haible  <bruno@clisp.org>
47541
47542         * gnulib-tool (func_get_license): Revert last patch. Instead, let
47543         the license default to GPL.
47544         (func_create_testdir): Don't complain if a module is LGPL and its
47545         tests module depends on GPLed modules.
47546
47547 2007-01-17  Bruno Haible  <bruno@clisp.org>
47548
47549         * lib/gettimeofday.c (gettimeofday): Add code for the case
47550         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
47551         maximum possible value for tv->tv_usec, rather than the minimum one.
47552
47553 2005-10-08  Martin Lambers  <marlam@marlam.de>
47554 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47555 2007-01-16  Bruno Haible  <bruno@clisp.org>
47556
47557         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
47558         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
47559         gl_FUNC_GETTIMEOFDAY.
47560         (Include): Add gettimeofday.h.
47561         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
47562         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
47563         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
47564         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
47565         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
47566         * lib/gettimeofday.h: New file.
47567         * lib/gettimeofday.c: Include <sys/timeb.h>.
47568         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
47569         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
47570         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
47571         fall back on time().
47572
47573         * tests/test-gettimeofday.c: New file.
47574         * modules/gettimeofday-tests: New file.
47575
47576 2007-01-16  Eric Blake  <ebb9@byu.net>
47577
47578         * modules/fnmatch (Depends-on): Depend on wchar.
47579         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
47580         * m4/fnmatch.m4: Likewise.
47581         * modules/mbchar (Makefile.am): Assume <wchar.h>.
47582         * m4/mbchar.m4: Likewise.
47583         * modules/mbswidth (Depends-on): Depend on wchar.
47584         * lib/mbswidth.c: Assume <wchar.h>.
47585         * m4/mbswidth.m4: Likewise.
47586         * modules/quotearg (Depends-on): Depend on wchar.
47587         * lib/quotearg.c: Assume <wchar.h>.
47588         * m4/quotearg.m4: Likewise.
47589         * modules/regex (Depends-on): Depend on wchar.
47590         * lib/regex_internal.h: Assume <wchar.h>.
47591         * m4/regex.m4: Likewise.
47592         * modules/stdint (Depends-on): Depend on wchar.
47593         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
47594         * m4/stdint.m4: Likewise.
47595         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
47596         * modules/strftime (Depends-on): Depend on wchar.
47597         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
47598         * modules/strtol (Depends-on): Depend on wchar.
47599         * lib/strtol.c: Assume <wchar.h>.
47600         * modules/wcwidth (Depends-on): Depend on wchar.
47601         * lib/wcwidth.h: Assume <wchar.h>.
47602         * m4/wcwidth.m4: Likewise.
47603
47604 2007-01-16  Bruno Haible  <bruno@clisp.org>
47605
47606         * modules/csharpexec-script: New, created from...
47607         * modules/csharpexec: ... this.
47608
47609 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
47610
47611         * modules/javaexec-script: New, created from...
47612         * modules/javaexec: ... this.
47613
47614 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47615
47616         * modules/poll (Dependencies): Add sys_select.
47617
47618 2007-01-15  Jim Meyering  <jim@meyering.net>
47619
47620         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
47621         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
47622         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
47623         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
47624
47625 2007-01-15  Bruno Haible  <bruno@clisp.org>
47626
47627         * modules/striconveh: New file.
47628         * lib/striconveh.h: New file.
47629         * lib/striconveh.c: New file.
47630         * MODULES.html.sh (Internationalization functions): Add striconveh.
47631
47632         * modules/striconveh-tests: New file.
47633         * tests/test-striconveh.c: New file.
47634
47635 2007-01-15  Bruno Haible  <bruno@clisp.org>
47636
47637         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
47638         not from GNU libiconv or GNU libc.
47639
47640 2007-01-15  Bruno Haible  <bruno@clisp.org>
47641
47642         * doc/gnulib-intro.texi (Copyright): Explain the different license
47643         terms for module descriptions, autoconf macros, tests, documentation.
47644
47645 2007-01-14  Bruno Haible  <bruno@clisp.org>
47646
47647         * modules/striconv-tests: New file.
47648         * tests/test-striconv.c: New file.
47649
47650 2007-01-14  Bruno Haible  <bruno@clisp.org>
47651
47652         * modules/iconv-tests: New file.
47653         * tests/test-iconv.c: New file.
47654
47655 2007-01-14  Bruno Haible  <bruno@clisp.org>
47656
47657         * gnulib-tool (func_get_license): For test modules, use the license of
47658         the main module.
47659
47660 2007-01-14  Bruno Haible  <bruno@clisp.org>
47661
47662         * modules/iconv (Include): Clarify that <iconv.h> can only be included
47663         if iconv is found to exist.
47664
47665 2007-01-14  Bruno Haible  <bruno@clisp.org>
47666
47667         * modules/c-ctype-tests: New file.
47668         * tests/test-c-ctype.c: New file.
47669
47670 2007-01-14  Bruno Haible  <bruno@clisp.org>
47671
47672         * modules/binary-io-tests: New file.
47673         * tests/test-binary-io.sh: New file.
47674         * tests/test-binary-io.c: New file.
47675
47676 2007-01-14  Bruno Haible  <bruno@clisp.org>
47677
47678         * modules/array-oset-tests: New file.
47679         * tests/test-array_oset.c: New file.
47680
47681 2007-01-14  Bruno Haible  <bruno@clisp.org>
47682
47683         * modules/array-list-tests: New file.
47684         * tests/test-array_list.c: New file.
47685
47686 2007-01-14  Bruno Haible  <bruno@clisp.org>
47687
47688         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
47689         and make.
47690         Reported by Simon Josefsson in
47691         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
47692
47693 2007-01-14  Bruno Haible  <bruno@clisp.org>
47694
47695         * modules/allocsa-tests: New file.
47696         * tests/test-allocsa.c: New file.
47697
47698 2007-01-14  Bruno Haible  <bruno@clisp.org>
47699
47700         * modules/fchdir (Depends-on): Add absolute-header.
47701         * modules/unistd (Depends-on): Likewise.
47702
47703 2006-12-30  Bruno Haible  <bruno@clisp.org>
47704
47705         * modules/fchdir: New file.
47706         * modules/unistd (Files): Add lib/unistd_.h.
47707         (Makefile.am): Generate unistd.h from unistd_.h.
47708         * lib/fchdir.c: New file.
47709         * lib/dirent_.h: New file.
47710         * lib/unistd_.h: New file.
47711         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
47712         * m4/fchdir.m4: New file.
47713         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
47714         (gl_HEADER_UNISTD): Invoke it.
47715         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
47716         function.
47717         * lib/backupfile.c (opendir, closedir): Undefine.
47718         * lib/chown.c (open, close): Undefine.
47719         * lib/clean-temp.c (open, close): Undefine.
47720         * lib/copy-file.c (open, close): Undefine.
47721         * lib/execute.c (open, close): Undefine.
47722         * lib/fsusage.c (open, close): Undefine.
47723         * lib/gc-gnulib.c (open, close): Undefine.
47724         * lib/getcwd.c (opendir, closedir): Undefine.
47725         * lib/glob.c (opendir, closedir): Undefine.
47726         * lib/javacomp.c (open, close): Undefine.
47727         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
47728         * lib/openat-proc.c (open, close): Undefine.
47729         * lib/pagealign_alloc.c (open, close): Undefine.
47730         * lib/pipe.c (open, close): Undefine.
47731         * lib/progreloc.c (open, close): Undefine.
47732         * lib/savedir.c (opendir, closedir): Undefine.
47733         * lib/utime.c (open, close): Undefine.
47734         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
47735
47736 2007-01-10  Bruno Haible  <bruno@clisp.org>
47737
47738         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
47739
47740 2007-01-12  Eric Blake  <ebb9@byu.net>
47741
47742         Provide a robust <wchar.h>.  Further simplifications are now
47743         possible in other modules, but not included here.
47744         * modules/wchar: New module.
47745         * m4/wchar.m4: New file.
47746         * lib/wchar_.h: Likewise.
47747         * modules/mbchar (Depends-on): Depend on wchar, as the first use
47748         of the new module.
47749         * MODULES.html.sh (Extended multibyte and wide character utilities):
47750         New section.
47751
47752 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
47753
47754         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
47755         to a reasonable default for memory allocation.
47756         (xreadlink): Don't allocate a huge buffer, to work around a buggy
47757         file system that reports garbage st_size values for symlinks.
47758         Problem reported by Liyang Hu.
47759
47760 2007-01-11  Simon Josefsson  <simon@josefsson.org>
47761
47762         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
47763         Emacs .#* auto-save files).
47764
47765 2007-01-11  Bruno Haible  <bruno@clisp.org>
47766
47767         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
47768         directory.
47769
47770 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
47771
47772         Use @...@ consistently in lib/wctype_.h.
47773         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
47774         on it being set to 1 or 0.
47775         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
47776         go back to AC_SUBSTing it.
47777         * modules/wctype (Makefile.am): Undo previous change.
47778
47779 2007-01-10  Eric Blake  <ebb9@byu.net>
47780
47781         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
47782         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
47783         * modules/wctype (Makefile.am): Likewise.
47784         Reported by Chris McGuire.
47785
47786 2007-01-10  Jim Meyering  <jim@meyering.net>
47787
47788         fts.c: a small readability/maintainability improvement
47789         * lib/fts.c (fts_read): Make this code slightly more readable and
47790         maintainable by hoisting the "sp->fts_cur = p" assignments to
47791         immediately follow the statements that set P.  Derived from
47792         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
47793
47794 2007-01-10  Eric Blake  <ebb9@byu.net>
47795
47796         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
47797         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
47798         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
47799         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47800         Reported by Chris McGuire.
47801
47802 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47803
47804         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
47805         in sed script.
47806
47807 2007-01-09  Bruno Haible  <bruno@clisp.org>
47808
47809         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
47810         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
47811         variables.
47812         (func_module): Use them.
47813
47814 2007-01-09  Bruno Haible  <bruno@clisp.org>
47815
47816         * modules/unistr/base: New file.
47817         * lib/unistr.h: New file.
47818
47819         * modules/unistr/u8-to-u16: New file.
47820         * lib/unistr/u8-to-u16.c: New file.
47821
47822         * modules/unistr/u8-to-u32: New file.
47823         * lib/unistr/u8-to-u32.c: New file.
47824
47825         * modules/unistr/u16-to-u8: New file.
47826         * lib/unistr/u16-to-u8.c: New file.
47827
47828         * modules/unistr/u16-to-u32: New file.
47829         * lib/unistr/u16-to-u32.c: New file.
47830
47831         * modules/unistr/u32-to-u8: New file.
47832         * lib/unistr/u32-to-u8.c: New file.
47833
47834         * modules/unistr/u32-to-u16: New file.
47835         * lib/unistr/u32-to-u16.c: New file.
47836
47837         * modules/unistr/u8-check: New file.
47838         * modules/unistr/u16-check: New file.
47839         * modules/unistr/u32-check: New file.
47840         * lib/unistr/u8-check.c: New file.
47841         * lib/unistr/u16-check.c: New file.
47842         * lib/unistr/u32-check.c: New file.
47843
47844         * modules/unistr/u8-chr: New file.
47845         * modules/unistr/u16-chr: New file.
47846         * modules/unistr/u32-chr: New file.
47847         * lib/unistr/u8-chr.c: New file.
47848         * lib/unistr/u16-chr.c: New file.
47849         * lib/unistr/u32-chr.c: New file.
47850
47851         * modules/unistr/u8-cmp: New file.
47852         * modules/unistr/u16-cmp: New file.
47853         * modules/unistr/u32-cmp: New file.
47854         * lib/unistr/u8-cmp.c: New file.
47855         * lib/unistr/u16-cmp.c: New file.
47856         * lib/unistr/u32-cmp.c: New file.
47857
47858         * modules/unistr/u8-cpy: New file.
47859         * modules/unistr/u16-cpy: New file.
47860         * modules/unistr/u32-cpy: New file.
47861         * lib/unistr/u8-cpy.c: New file.
47862         * lib/unistr/u16-cpy.c: New file.
47863         * lib/unistr/u32-cpy.c: New file.
47864         * lib/unistr/u-cpy.h: New file.
47865
47866         * modules/unistr/u8-cpy-alloc: New file.
47867         * modules/unistr/u16-cpy-alloc: New file.
47868         * modules/unistr/u32-cpy-alloc: New file.
47869         * lib/unistr/u8-cpy-alloc.c: New file.
47870         * lib/unistr/u16-cpy-alloc.c: New file.
47871         * lib/unistr/u32-cpy-alloc.c: New file.
47872         * lib/unistr/u-cpy-alloc.h: New file.
47873
47874         * modules/unistr/u8-endswith: New file.
47875         * modules/unistr/u16-endswith: New file.
47876         * modules/unistr/u32-endswith: New file.
47877         * lib/unistr/u8-endswith.c: New file.
47878         * lib/unistr/u16-endswith.c: New file.
47879         * lib/unistr/u32-endswith.c: New file.
47880         * lib/unistr/u-endswith.h: New file.
47881
47882         * modules/unistr/u8-mblen: New file.
47883         * modules/unistr/u16-mblen: New file.
47884         * modules/unistr/u32-mblen: New file.
47885         * lib/unistr/u8-mblen.c: New file.
47886         * lib/unistr/u16-mblen.c: New file.
47887         * lib/unistr/u32-mblen.c: New file.
47888
47889         * modules/unistr/u8-mbtouc: New file.
47890         * modules/unistr/u16-mbtouc: New file.
47891         * modules/unistr/u32-mbtouc: New file.
47892         * lib/unistr/u8-mbtouc.c: New file.
47893         * lib/unistr/u16-mbtouc.c: New file.
47894         * lib/unistr/u32-mbtouc.c: New file.
47895
47896         * modules/unistr/u8-mbtouc-safe: New file.
47897         * modules/unistr/u16-mbtouc-safe: New file.
47898         * modules/unistr/u32-mbtouc-safe: New file.
47899         * lib/unistr/u8-mbtouc-safe.c: New file.
47900         * lib/unistr/u16-mbtouc-safe.c: New file.
47901         * lib/unistr/u32-mbtouc-safe.c: New file.
47902
47903         * modules/unistr/u8-move: New file.
47904         * modules/unistr/u16-move: New file.
47905         * modules/unistr/u32-move: New file.
47906         * lib/unistr/u8-move.c: New file.
47907         * lib/unistr/u16-move.c: New file.
47908         * lib/unistr/u32-move.c: New file.
47909         * lib/unistr/u-move.h: New file.
47910
47911         * modules/unistr/u8-next: New file.
47912         * modules/unistr/u16-next: New file.
47913         * modules/unistr/u32-next: New file.
47914         * lib/unistr/u8-next.c: New file.
47915         * lib/unistr/u16-next.c: New file.
47916         * lib/unistr/u32-next.c: New file.
47917
47918         * modules/unistr/u8-prev: New file.
47919         * modules/unistr/u16-prev: New file.
47920         * modules/unistr/u32-prev: New file.
47921         * lib/unistr/u8-prev.c: New file.
47922         * lib/unistr/u16-prev.c: New file.
47923         * lib/unistr/u32-prev.c: New file.
47924
47925         * modules/unistr/u8-set: New file.
47926         * modules/unistr/u16-set: New file.
47927         * modules/unistr/u32-set: New file.
47928         * lib/unistr/u8-set.c: New file.
47929         * lib/unistr/u16-set.c: New file.
47930         * lib/unistr/u32-set.c: New file.
47931         * lib/unistr/u-set.h: New file.
47932
47933         * modules/unistr/u8-startswith: New file.
47934         * modules/unistr/u16-startswith: New file.
47935         * modules/unistr/u32-startswith: New file.
47936         * lib/unistr/u8-startswith.c: New file.
47937         * lib/unistr/u16-startswith.c: New file.
47938         * lib/unistr/u32-startswith.c: New file.
47939         * lib/unistr/u-startswith.h: New file.
47940
47941         * modules/unistr/u8-stpcpy: New file.
47942         * modules/unistr/u16-stpcpy: New file.
47943         * modules/unistr/u32-stpcpy: New file.
47944         * lib/unistr/u8-stpcpy.c: New file.
47945         * lib/unistr/u16-stpcpy.c: New file.
47946         * lib/unistr/u32-stpcpy.c: New file.
47947         * lib/unistr/u-stpcpy.h: New file.
47948
47949         * modules/unistr/u8-stpncpy: New file.
47950         * modules/unistr/u16-stpncpy: New file.
47951         * modules/unistr/u32-stpncpy: New file.
47952         * lib/unistr/u8-stpncpy.c: New file.
47953         * lib/unistr/u16-stpncpy.c: New file.
47954         * lib/unistr/u32-stpncpy.c: New file.
47955         * lib/unistr/u-stpncpy.h: New file.
47956
47957         * modules/unistr/u8-strcat: New file.
47958         * modules/unistr/u16-strcat: New file.
47959         * modules/unistr/u32-strcat: New file.
47960         * lib/unistr/u8-strcat.c: New file.
47961         * lib/unistr/u16-strcat.c: New file.
47962         * lib/unistr/u32-strcat.c: New file.
47963         * lib/unistr/u-strcat.h: New file.
47964
47965         * modules/unistr/u8-strchr: New file.
47966         * modules/unistr/u16-strchr: New file.
47967         * modules/unistr/u32-strchr: New file.
47968         * lib/unistr/u8-strchr.c: New file.
47969         * lib/unistr/u16-strchr.c: New file.
47970         * lib/unistr/u32-strchr.c: New file.
47971
47972         * modules/unistr/u8-strcmp: New file.
47973         * modules/unistr/u16-strcmp: New file.
47974         * modules/unistr/u32-strcmp: New file.
47975         * lib/unistr/u8-strcmp.c: New file.
47976         * lib/unistr/u16-strcmp.c: New file.
47977         * lib/unistr/u32-strcmp.c: New file.
47978
47979         * modules/unistr/u8-strcpy: New file.
47980         * modules/unistr/u16-strcpy: New file.
47981         * modules/unistr/u32-strcpy: New file.
47982         * lib/unistr/u8-strcpy.c: New file.
47983         * lib/unistr/u16-strcpy.c: New file.
47984         * lib/unistr/u32-strcpy.c: New file.
47985         * lib/unistr/u-strcpy.h: New file.
47986
47987         * modules/unistr/u8-strcspn: New file.
47988         * modules/unistr/u16-strcspn: New file.
47989         * modules/unistr/u32-strcspn: New file.
47990         * lib/unistr/u8-strcspn.c: New file.
47991         * lib/unistr/u16-strcspn.c: New file.
47992         * lib/unistr/u32-strcspn.c: New file.
47993         * lib/unistr/u-strcspn.h: New file.
47994
47995         * modules/unistr/u8-strdup: New file.
47996         * modules/unistr/u16-strdup: New file.
47997         * modules/unistr/u32-strdup: New file.
47998         * lib/unistr/u8-strdup.c: New file.
47999         * lib/unistr/u16-strdup.c: New file.
48000         * lib/unistr/u32-strdup.c: New file.
48001         * lib/unistr/u-strdup.h: New file.
48002
48003         * modules/unistr/u8-strlen: New file.
48004         * modules/unistr/u16-strlen: New file.
48005         * modules/unistr/u32-strlen: New file.
48006         * lib/unistr/u8-strlen.c: New file.
48007         * lib/unistr/u16-strlen.c: New file.
48008         * lib/unistr/u32-strlen.c: New file.
48009         * lib/unistr/u-strlen.h: New file.
48010
48011         * modules/unistr/u8-strmblen: New file.
48012         * modules/unistr/u16-strmblen: New file.
48013         * modules/unistr/u32-strmblen: New file.
48014         * lib/unistr/u8-strmblen.c: New file.
48015         * lib/unistr/u16-strmblen.c: New file.
48016         * lib/unistr/u32-strmblen.c: New file.
48017
48018         * modules/unistr/u8-strmbtouc: New file.
48019         * modules/unistr/u16-strmbtouc: New file.
48020         * modules/unistr/u32-strmbtouc: New file.
48021         * lib/unistr/u8-strmbtouc.c: New file.
48022         * lib/unistr/u16-strmbtouc.c: New file.
48023         * lib/unistr/u32-strmbtouc.c: New file.
48024
48025         * modules/unistr/u8-strncat: New file.
48026         * modules/unistr/u16-strncat: New file.
48027         * modules/unistr/u32-strncat: New file.
48028         * lib/unistr/u8-strncat.c: New file.
48029         * lib/unistr/u16-strncat.c: New file.
48030         * lib/unistr/u32-strncat.c: New file.
48031         * lib/unistr/u-strncat.h: New file.
48032
48033         * modules/unistr/u8-strncmp: New file.
48034         * modules/unistr/u16-strncmp: New file.
48035         * modules/unistr/u32-strncmp: New file.
48036         * lib/unistr/u8-strncmp.c: New file.
48037         * lib/unistr/u16-strncmp.c: New file.
48038         * lib/unistr/u32-strncmp.c: New file.
48039
48040         * modules/unistr/u8-strncpy: New file.
48041         * modules/unistr/u16-strncpy: New file.
48042         * modules/unistr/u32-strncpy: New file.
48043         * lib/unistr/u8-strncpy.c: New file.
48044         * lib/unistr/u16-strncpy.c: New file.
48045         * lib/unistr/u32-strncpy.c: New file.
48046         * lib/unistr/u-strncpy.h: New file.
48047
48048         * modules/unistr/u8-strnlen: New file.
48049         * modules/unistr/u16-strnlen: New file.
48050         * modules/unistr/u32-strnlen: New file.
48051         * lib/unistr/u8-strnlen.c: New file.
48052         * lib/unistr/u16-strnlen.c: New file.
48053         * lib/unistr/u32-strnlen.c: New file.
48054         * lib/unistr/u-strnlen.h: New file.
48055
48056         * modules/unistr/u8-strpbrk: New file.
48057         * modules/unistr/u16-strpbrk: New file.
48058         * modules/unistr/u32-strpbrk: New file.
48059         * lib/unistr/u8-strpbrk.c: New file.
48060         * lib/unistr/u16-strpbrk.c: New file.
48061         * lib/unistr/u32-strpbrk.c: New file.
48062         * lib/unistr/u-strpbrk.h: New file.
48063
48064         * modules/unistr/u8-strrchr: New file.
48065         * modules/unistr/u16-strrchr: New file.
48066         * modules/unistr/u32-strrchr: New file.
48067         * lib/unistr/u8-strrchr.c: New file.
48068         * lib/unistr/u16-strrchr.c: New file.
48069         * lib/unistr/u32-strrchr.c: New file.
48070
48071         * modules/unistr/u8-strspn: New file.
48072         * modules/unistr/u16-strspn: New file.
48073         * modules/unistr/u32-strspn: New file.
48074         * lib/unistr/u8-strspn.c: New file.
48075         * lib/unistr/u16-strspn.c: New file.
48076         * lib/unistr/u32-strspn.c: New file.
48077         * lib/unistr/u-strspn.h: New file.
48078
48079         * modules/unistr/u8-strstr: New file.
48080         * modules/unistr/u16-strstr: New file.
48081         * modules/unistr/u32-strstr: New file.
48082         * lib/unistr/u8-strstr.c: New file.
48083         * lib/unistr/u16-strstr.c: New file.
48084         * lib/unistr/u32-strstr.c: New file.
48085         * lib/unistr/u-strstr.h: New file.
48086
48087         * modules/unistr/u8-strtok: New file.
48088         * modules/unistr/u16-strtok: New file.
48089         * modules/unistr/u32-strtok: New file.
48090         * lib/unistr/u8-strtok.c: New file.
48091         * lib/unistr/u16-strtok.c: New file.
48092         * lib/unistr/u32-strtok.c: New file.
48093         * lib/unistr/u-strtok.h: New file.
48094
48095         * modules/unistr/u8-uctomb: New file.
48096         * modules/unistr/u16-uctomb: New file.
48097         * modules/unistr/u32-uctomb: New file.
48098         * lib/unistr/u8-uctomb.c: New file.
48099         * lib/unistr/u16-uctomb.c: New file.
48100         * lib/unistr/u32-uctomb.c: New file.
48101
48102         * MODULES.html.sh (Unicode string functions): Add the new modules.
48103
48104 2007-01-08  Bruno Haible  <bruno@clisp.org>
48105
48106         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
48107         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
48108         subdirectories.
48109
48110 2007-01-08  Karl Berry  <karl@gnu.org>
48111
48112         * doc/error.texi: mention that main() fns must set program_name
48113         when progname is used.
48114
48115 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
48116
48117         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
48118         WCTYPE_H is empty, for the benefit of builds from non-distclean
48119         directories.  Problem reported by Eric Blake in
48120         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
48121
48122 2007-01-08  Bruno Haible  <bruno@clisp.org>
48123
48124         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
48125         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
48126         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
48127         PROVIDE_CANONICALIZE_FILENAME_MODE.
48128         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
48129
48130 2007-01-08  Bruno Haible  <bruno@clisp.org>
48131
48132         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
48133         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
48134         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
48135         * lib/fts.c: Likewise.
48136         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
48137
48138 2006-12-25  Bruno Haible  <bruno@clisp.org>
48139
48140         * modules/utf8-ucs4-safe: New file.
48141         * lib/utf8-ucs4-safe.h: New file.
48142         * lib/unistr/utf8-ucs4-safe.c: New file.
48143
48144         * modules/utf16-ucs4-safe: New file.
48145         * lib/utf16-ucs4-safe.h: New file.
48146         * lib/unistr/utf16-ucs4-safe.c: New file.
48147
48148         * MODULES.html.sh (Unicode string functions): Add the new modules.
48149
48150 2007-01-08  Bruno Haible  <bruno@clisp.org>
48151
48152         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
48153         (Depends-on): Add unitypes.
48154         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
48155         (u8_mbtouc_aux): Move out to separate file.
48156         (u8_mbtouc): Use ucs4_t, uint8_t types.
48157         * lib/unistr/utf8-ucs4.c: New file.
48158
48159         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
48160         (Depends-on): Add unitypes.
48161         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
48162         (u16_mbtouc_aux): Move out to separate file.
48163         (u16_mbtouc): Use ucs4_t, uint16_t types.
48164         * lib/unistr/utf16-ucs4.c: New file.
48165
48166         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
48167         (Depends-on): Add unitypes.
48168         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
48169         (u8_uctomb_aux): Move out to separate file.
48170         (u8_uctomb): Use ucs4_t, uint8_t types.
48171         * lib/unistr/ucs4-utf8.c: New file.
48172
48173         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
48174         (Depends-on): Add unitypes.
48175         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
48176         (u16_uctomb_aux): Move out to separate file.
48177         (u16_uctomb): Use ucs4_t, uint16_t types.
48178         * lib/unistr/ucs4-utf16.c: New file.
48179
48180 2006-12-25  Bruno Haible  <bruno@clisp.org>
48181
48182         * modules/unitypes: New file.
48183         * lib/unitypes.h: New file.
48184         * MODULES.html.sh (func_all_modules): New section "Unicode string
48185         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
48186         this section. Add unitypes.
48187
48188 2007-01-08  Bruno Haible  <bruno@clisp.org>
48189
48190         Avoid variable names that conflict with those from libtool.
48191         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
48192         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
48193         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
48194         library_names_spec to acl_library_names_spec, hardcode_* to
48195         acl_hardcode_*.
48196         Reported by Ralf Wildenhues.
48197
48198 2007-01-08  Bruno Haible  <bruno@clisp.org>
48199
48200         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
48201         definition.
48202         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
48203         definition.
48204         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
48205         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
48206         definition.
48207         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
48208         definition.
48209         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
48210         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
48211         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
48212         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
48213         definition.
48214         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
48215         definition.
48216         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
48217         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
48218         GC_USE_<algorithm>.
48219         * lib/gc-libgcrypt.c: Likewise.
48220         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
48221         * modules/gc-arctwo (configure.ac): Likewise.
48222         * modules/gc-des (configure.ac): Likewise.
48223         * modules/gc-hmac-md5 (configure.ac): Likewise.
48224         * modules/gc-hmac-sha1 (configure.ac): Likewise.
48225         * modules/gc-md2 (configure.ac): Likewise.
48226         * modules/gc-md4 (configure.ac): Likewise.
48227         * modules/gc-md5 (configure.ac): Likewise.
48228         * modules/gc-random (configure.ac): Likewise.
48229         * modules/gc-rijndael (configure.ac): Likewise.
48230         * modules/gc-sha1 (configure.ac): Likewise.
48231
48232 2007-01-08  Bruno Haible  <bruno@clisp.org>
48233
48234         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
48235         macro definition.
48236         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
48237         definition.
48238         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
48239         definition.
48240         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
48241         * modules/fcntl-safer (configure.ac): Likewise.
48242         * modules/fopen-safer (configure.ac): Likewise.
48243         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
48244         GNULIB_FWRITEERROR macro definition.
48245
48246 2007-01-08  Bruno Haible  <bruno@clisp.org>
48247
48248         * m4/gnulib-common.m4: New file.
48249         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
48250         (func_get_filelist): Add m4/gnulib-common.m4.
48251
48252 2007-01-08  Bruno Haible  <bruno@clisp.org>
48253
48254         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
48255         command.
48256
48257 2007-01-08  Jim Meyering  <jim@meyering.net>
48258
48259         Use a more robust test for a "can't happen" condition.
48260         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
48261         narrowed the st_size value.  Presuming the "can't happen" condition
48262         is true, that narrowing could conceivably convert an invalid st_size
48263         value into a valid one.  Instead, use a change based on Matthew
48264         Woehlke's original patch.
48265
48266         Slight readability improvement: use an assert-like macro
48267         in place of literal "abort ()" uses.
48268         * lib/fts.c (fts_assert): Define.
48269         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
48270         Use this macro instead of a bare 'abort'.
48271
48272 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
48273
48274         Don't worry about using IRIX 5.3's wctype.h broken definitions;
48275         simply work around them.
48276         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
48277         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
48278         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
48279         declaring.
48280         Don't bother to define as macros, since the standard doesn't require it.
48281         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
48282         longer worry about IRIX 5.3.
48283         (HAVE_WCTYPE_CTMP_BUG): Remove.
48284
48285 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
48286
48287         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
48288         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
48289         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
48290         Problems reported by Georg Schwarz for IRIX 5.3.
48291
48292         * gnulib-tool (autoconf_minversion): Take the maximum version number
48293         found, not the minimum.  Problem reported by James Youngman.
48294
48295 2007-01-03  Karl Berry  <karl@gnu.org>
48296
48297         * doc/error.texi: new file, explaining interaction with progname.
48298         * doc/gnulib.texi: include it.  Update copyright.
48299
48300 2007-01-03  Simon Josefsson  <simon@josefsson.org>
48301
48302         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
48303         AC_CANONICAL_HOST, to improve autobuild outputs.
48304
48305 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
48306             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
48307
48308         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
48309         sockets, server sockets, and other file descriptors.  Count errors
48310         to compute the return value.  Reorder the code a bit to be easier
48311         to follow.  Don't set event bits that were not requested (except
48312         POLLERR and POLLHUP).
48313
48314 2007-01-01  Bruno Haible  <bruno@clisp.org>
48315
48316         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
48317
48318 2007-01-03  Jim Meyering  <jim@meyering.net>
48319
48320         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
48321
48322 2007-01-02  Bruno Haible  <bruno@clisp.org>
48323
48324         * modules/settime (Include): Require timespec.h.
48325         * modules/nanosleep (Include): Likewise.
48326
48327 2007-01-01  Bruno Haible  <bruno@clisp.org>
48328
48329         * gnulib-tool (func_emit_copyright_notice): Bump year.
48330         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
48331
48332 2007-01-01  Bruno Haible  <bruno@clisp.org>
48333
48334         Improve support for OpenBSD.
48335         * build-aux/config.rpath (libname_spec): Export.
48336         (library_names_spec): New variable. Export.
48337         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
48338         library_names_spec from the config.rpath output. Locate shared library
48339         through the name pattern in library_names_spec.
48340
48341 2007-01-01  Eric Blake  <ebb9@byu.net>
48342
48343         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
48344
48345 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
48346
48347         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
48348         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
48349         assume the C locale, and avoid an "eval" that could cause trouble.
48350         Problem with SORT reported by Bob Proulx.
48351
48352         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
48353         Define.  Trivial patch from Henning Nielsen Lund, originally
48354         sent to bug-grep@gnu.org today.
48355
48356 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
48357
48358         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
48359         struct stat.  Problem reported by Henning Nielsen Lund.
48360         * lib/acl.c: Include acl.h first, to check interface.  Don't
48361         bother to include sys/types.h and sys/stat.h again.
48362
48363 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
48364
48365         Import the following change from libc; problem reported by
48366         Sven Verdoolaege.
48367
48368         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
48369
48370         [BZ #1373]
48371         * lib/argp.h: Remove __NTH for __argp_usage inline function.
48372
48373 2006-12-28  Jim Meyering  <jim@meyering.net>
48374
48375         * build-aux/announce-gen: Do not assume that the package
48376         builds any of tar.gz, tar.bz2, and .xdelta files.
48377         Suggestion from Simon Josefsson.
48378
48379 2006-12-28  Simon Josefsson  <simon@josefsson.org>
48380
48381         * modules/announce-gen: New file.
48382
48383 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
48384
48385         * lib/mbchar.h: Just include <wctype.h>; the wctype module
48386         handles its gotchas now.
48387         * lib/mbswidth.c: Likewise.
48388         * lib/wcwidth.h: Likewise.
48389         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
48390         and iswcntrl; the wctype module does this stuff now.
48391         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48392         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
48393         * modules/mbchar (Depends-on): Add wctype.
48394         * modules/mbswidth (Depends-on): Likewise.
48395         * modules/wcwidth (Depends-on): Likewise.
48396
48397 2006-12-27  Eric Blake  <ebb9@byu.net>
48398
48399         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
48400         module uses more than what <wctype.h> is required to provide.
48401
48402 2006-12-26  Eric Blake  <ebb9@byu.net>
48403
48404         * gnulib-tool (sed_extract_prog): Avoid space-tab.
48405
48406 2006-12-26  Eric Blake  <ebb9@byu.net>
48407
48408         * modules/absolute-header: New module.
48409         * modules/fcntl (Depends-on): Depend on it.
48410         * modules/inttypes (Depends-on): Likewise.
48411         * modules/stdint (Depends-on): Likewise.
48412         * modules/sys_stat (Depends-on): Likewise.
48413         * modules/wctype (Depends-on): Likewise.
48414         * MODULES.html.sh (Support for building libraries and
48415         executables): Document it.
48416
48417 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
48418
48419         * gnulib-tool (SED): Remove, undoing previous change.
48420         The problem was that it broke coreutils on Solaris, because
48421         "sed --posix" leaked into a makefile.
48422         (sed): New alias, if 'alias' and GNU sed.
48423
48424 2006-12-24  Jim Meyering  <jim@meyering.net>
48425
48426         Work around an fchownat bug in glibc-2.4:
48427         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
48428         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
48429         in spite of the -P option.
48430         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
48431         New macros.
48432         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
48433         * modules/openat (Files): Add lib/fchownat.c.
48434         * lib/openat.c (fchownat): Don't define here.  Move to...
48435         * lib/fchownat.c: ...this new file.
48436
48437 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
48438
48439         Fix bug reported by Bruno Haible in
48440         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
48441         where quotearg.c didn't compile on Mac OS X 10.2 because it
48442         lacks <wchar.h> and wint_t.
48443         * lib/wctype_.h (__wctype_wint_t): New type.
48444         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
48445         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
48446         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
48447         Arg is now of type __wctype_wint_t, not wint_t.
48448         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
48449         substitute HAVE_WINT_T.
48450         * modules/wctype (Files): Add m4/wint_t.m4.
48451         (wctype.h): Substitute HAVE_WINT_T.
48452
48453 2006-12-23  Bruno Haible  <bruno@clisp.org>
48454
48455         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
48456
48457 2006-12-23  Bruno Haible  <bruno@clisp.org>
48458
48459         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
48460         S_ISLNK.
48461         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
48462         mingw.
48463
48464 2006-12-22  Bruno Haible  <bruno@clisp.org>
48465
48466         * lib/copy-file.c: Include acl.h.
48467         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
48468         Close the file descriptors only after being done with copy_acl.
48469         * modules/copy-file (Depends-on): Add acl.
48470
48471 2006-12-22  Bruno Haible  <bruno@clisp.org>
48472
48473         * gnulib-tool (SED): New variable.
48474         Use $SED instead of sed everywhere.
48475
48476 2006-12-22  Bruno Haible  <bruno@clisp.org>
48477
48478         * modules/no-c++: New file.
48479         * m4/no-c++.m4: New file.
48480         * MODULES.html.sh (Support for building libraries and executables):
48481         Add no-c++.
48482
48483 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
48484
48485         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48486         Include <limits.h>, and use its INT_MAX to rewrite the
48487         j loop so that it does not overflow 'int'.  Problem reported by
48488         Ralf Wildenhues in
48489         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
48490         Play it safe by shifting left by 1 rather than multiplying by 2,
48491         as GCC is less likely to optimize this away when the value
48492         is signed (when it assumes overflow leads to undefined behavior).
48493         Also, don't assume time_t uses two's complement.
48494
48495 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
48496
48497         * MODULES.html.sh: New module wctype.
48498         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
48499         * lib/fnmatch.c: Don't bother to include <wchar.h> before
48500         <wctype.h>, since the new wctype module should fix this.
48501         * lib/quotearg.c: Include <wctype.h> unconditionally, since
48502         the wctype module should arrange for it.
48503         * lib/regex_internal.h: Likewise.
48504         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
48505         since the wctype module should handle this now.
48506         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
48507         * modules/fnmatch (Depends-on): Add wctype.
48508         * modules/quotearg (Depends-on): Likewise.
48509         * modules/regex (Depends-on): Likewise.
48510
48511 2006-12-19  Bruno Haible  <bruno@clisp.org>
48512
48513         * lib/strdup.h [C++]: Wrap definitions in extern "C".
48514         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
48515
48516 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48517
48518         * modules/savewd (Depends-on): Fix dependency on fcntl.
48519
48520 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48521
48522         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
48523         conforms to C99, rather than relying on the user's environment
48524         setting of STDINT_H.
48525
48526 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48527         and Eric Blake  <ebb9@byu.net>
48528
48529         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
48530         This is more consistent with the other defines here.
48531         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
48532         Port to z/OS.  Problem reported by Paul Gilmartin.
48533         Change local vars to use gl_ prefix rather than ac_.
48534         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
48535         with other defines.
48536         * modules/double-slash-root: New module.
48537         * modules/dirname (Files): Remove m4/double-slash-root.m4.
48538         (Depends-on): Add double-slash-root.
48539         * MODULES.html.sh (File system functions): Mention new module.
48540
48541 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
48542
48543         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
48544         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
48545         This is for the benefit of gzip, which doesn't do i18n.
48546
48547 2006-12-12  Jim Meyering  <jim@meyering.net>
48548
48549         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
48550         Reported by Andreas Schwab <schwab@suse.de>.
48551
48552 2006-12-12  Bruno Haible  <bruno@clisp.org>
48553
48554         Merge these changes.
48555         2006-09-05  Bruno Haible  <bruno@clisp.org>
48556         * lib/iconvme.c (iconv_string): No need to save and restore errno when
48557         iconv_alloc succeeded.
48558         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
48559         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
48560         test for " && dest " at the end - dest is always != NULL there. Call
48561         iconv with 4xNULL arguments initially, to reset the state. Call iconv
48562         with 2xNULL arguments, also to flush the state storage. Handle the
48563         IRIX iconv behaviour. Realloc the final result, to throw away unused
48564         memory.
48565
48566 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
48567
48568         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
48569         and fchmodat unconditionally, since glibc 2.4 has them.
48570         Problem reported by Arkadiusz Miskiewicz.
48571
48572 2006-12-10  Bruno Haible  <bruno@clisp.org>
48573
48574         * gnulib-tool (func_import): Show the include files only for those
48575         modules that are copied and specified.
48576         Reported by Karl Berry.
48577
48578 2006-12-08  Jim Meyering  <jim@meyering.net>
48579
48580         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
48581         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
48582
48583         * build-aux/announce-gen: Add two new options, both optional:
48584         --bootstrap-tools=TOOL_LIST
48585               a comma-separated list of tools, e.g.,
48586               autoconf,automake,bison,gnulib
48587         --gnulib-snapshot-date=DATE
48588               if gnulib is in the bootstrap tool list,
48589               then report this as the snapshot date.
48590               If not specified, use the current date/time.
48591               If you specify a date here, be sure it's UTC.
48592
48593 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48594
48595         * tests/test-argp-2.sh: Fix test to match actual output.
48596         (func_compare): Fix sed script to be portable.
48597
48598 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
48599
48600         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
48601         workaround for this case.  It is not autoconfigured now; offhand
48602         it's hard to see how to autoconfigure it.
48603
48604 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
48605
48606         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
48607         a directory that is about to be chowned.  Such a directory's
48608         initial file permissions should permit the owner only and this
48609         should not be changed until after the chown, since the group and
48610         other bits would be incorrect if they granted permission before
48611         the chown.
48612
48613         Fix porting problem for iswctype reported by Georg Schwarz in:
48614         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
48615         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
48616         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
48617         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
48618         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
48619
48620 2006-12-03  Jim Meyering  <jim@meyering.net>
48621
48622         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
48623         p->fts_statp may not yet be defined.
48624         (fts_read): Instead, set it in the caller, once p->fts_statp is
48625         sure to be defined, and corresponds to a top-level directory.
48626         This bug made du -x fail.  Here's the coreutils test case:
48627         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
48628         Reported by Mike Frysinger.
48629
48630 2006-12-01  Jim Meyering  <jim@meyering.net>
48631
48632         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
48633         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
48634         Reported by Simon Josefsson.
48635
48636 2006-11-30  Jim Meyering  <jim@meyering.net>
48637
48638         * m4/warning.m4: Use the all-permissive copyright notice
48639         recommended by RMS (rather than LGPL).
48640         * m4/vararrays.m4: Likewise.
48641         * m4/flexmember.m4: Likewise.
48642
48643 2006-11-29  Bruno Haible  <bruno@clisp.org>
48644
48645         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48646         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
48647         using +=.
48648         Reported by Simon Josefsson <simon@josefsson.org>.
48649
48650 2006-11-28  James Youngman <jay@gnu.org>
48651
48652         * README: Advise users that they might find the bug-gnulib@gnu.org
48653         and autotools-announce@gnu.org mailing lists useful.
48654
48655 2006-11-28  Bruno Haible  <bruno@clisp.org>
48656
48657         * m4/ptrdiff_max.m4: Remove file.
48658
48659 2006-11-21  Bruno Haible  <bruno@clisp.org>
48660
48661         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
48662         _AC_COMPUTE_INT.
48663         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48664         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
48665         _AC_COMPUTE_INT.
48666         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48667         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
48668         _AC_COMPUTE_INT.
48669         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48670
48671 2006-11-28  Jim Meyering  <jim@meyering.net>
48672
48673         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
48674         warning from "gcc -Wshadow" about shadowing the builtin.
48675
48676 2006-11-27  Bruno Haible  <bruno@clisp.org>
48677
48678         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
48679         _AC_COMPUTE_INT.
48680         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
48681
48682 2006-11-27  Bruno Haible  <bruno@clisp.org>
48683             Paul Eggert  <eggert@cs.ucla.edu>
48684
48685         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
48686
48687 2006-11-26  Bruno Haible  <bruno@clisp.org>
48688
48689         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
48690         noinst_LTLIBRARIES.
48691
48692 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
48693             Bruno Haible  <bruno@clisp.org>
48694
48695         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
48696         if compiling with "gcc -ansi".
48697
48698 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
48699
48700         Fix some incompatibilities with gcc -ansi -pedantic.
48701         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
48702         if compiling pedantically with GCC, unless it's C99 or later.
48703         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
48704         it mishandles gcc -ansi -pedantic as well.
48705         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
48706         if gcc -pedantic.
48707         * lib/regexec.c (check_node_accept_bytes): Don't use auto
48708         initializers for struct if -pedantic, unless it's C99 or later.
48709
48710 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
48711
48712         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
48713         Don't close an fd more than once. Identical atimes indicate
48714         success, not failure.
48715
48716 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
48717
48718         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
48719
48720 2006-11-23  Jim Meyering  <jim@meyering.net>
48721
48722         * build-aux/announce-gen: New file.  From coreutils.
48723
48724 2006-11-22  Jim Meyering  <jim@meyering.net>
48725
48726         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
48727         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
48728         (fts_read): Use a temporary to narrow the overused st_size member
48729         before using it in a switch statement.  Reported by Matthew Woehlke.
48730
48731         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
48732         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
48733
48734 2006-11-20  Bruno Haible  <bruno@clisp.org>
48735
48736         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
48737         changequote instead of pairs of brackets.
48738         Reported by Andreas Schwab <schwab@suse.de>.
48739
48740 2006-11-21  Jim Meyering  <jim@meyering.net>
48741
48742         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
48743         so as to remain compatible with older compilers.
48744         Patch from Michael Deutschmann.
48745
48746 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
48747
48748         * MODULES.html.sh (File system functions): Add openat.
48749
48750         * lib/openat.h (rpl_fstatat): New macro, if
48751         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
48752         (fstatat): Define to rpl_fstatat under the same conditions,
48753         unless COMPILING_FSTATAT.
48754         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
48755         seems to have the bug.
48756         * lib/fstatat.c: New file.
48757         * modules/openat (Files): Add it.
48758
48759 2006-11-20  Bruno Haible  <bruno@clisp.org>
48760
48761         * Makefile: New file.
48762
48763 2006-11-20  Jim Meyering  <jim@meyering.net>
48764
48765         The beginnings of syntax-related checks for gnulib.
48766         * lib/Makefile: New file.
48767         * lib/t-idcache: New script.  Ensure that the two halves of
48768         idcache.c stay in sync.
48769
48770         * lib/idcache.c: Adjust comments in user- and group- portions to
48771         be more accurate, and to be consistent with one another.
48772
48773 2006-11-20  Jim Meyering  <jim@meyering.net>
48774
48775         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
48776         continue using the flexible array member (thus, this module performs
48777         half as many malloc calls), with the addition that...
48778         (getgroup, getuser): Consistently record a non-match via an empty
48779         "name" string, and map an empty string match to a NULL return value.
48780         * modules/idcache (Depends-on): Re-add flexmember.
48781
48782         * lib/idcache.c (getuser): Remove all uses of the register keyword.
48783         (getuidbyname, getgroup, getgidbyname): Likewise.
48784
48785         Use cleaner syntax: NULL rather than 0.
48786         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
48787
48788 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
48789
48790         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
48791         It mishandled the case where the group was missing.
48792         Problem reported by Greg Schafer.
48793         * modules/idcache: Likewise.
48794
48795 2006-11-18  Jim Meyering  <jim@meyering.net>
48796
48797         * check-module (%exempt_header): Add exception for some
48798         conditionally-included headers.
48799
48800         * modules/i-ring (Depends-on): Add verify.
48801         (License): Change to LGPL.
48802
48803 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
48804
48805         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
48806         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
48807         and inttostr.h.  Use snprintf rather than uinttostr, so that
48808         LGPLed code doesn't depend on GPLed.
48809
48810 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
48811
48812         * modules/inline (License): Change from GPL to LGPL.
48813
48814 2006-11-17  Jim Meyering  <jim@meyering.net>
48815
48816         * modules/d-type (License): Switch to LGPL.
48817
48818 2006-11-15  Bruno Haible  <bruno@clisp.org>
48819
48820         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
48821
48822 2006-11-15  Eric Blake  <ebb9@byu.net>
48823
48824         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
48825         the module dependency.
48826
48827 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48828             Bruno Haible  <bruno@clisp.org>
48829
48830         * gnulib-tool (func_create_testdir): Add license consistency check.
48831
48832 2006-11-15  Eric Blake  <ebb9@byu.net>
48833
48834         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
48835         random "(cached)" in configure output.
48836
48837 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48838
48839         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
48840         test for conforming inttypes.h is both announced and cached.
48841
48842         * MODULES.html.sh (seen_modules, seen_files): New variables.
48843         (func_module): Rewrite to use a few less gnulib-tool and sed
48844         invocations.  Avoid a couple of quadratic algorithms for ...
48845         (missed_modules, missed_files): ... these, with ...
48846         (func_append, func_tmpdir): ... these new functions, from
48847         gnulib-tool.  Analogously, install traps for cleanup.
48848
48849         * tests/test-gc.c (main): Remove unused variables.
48850         * tests/test-read-file.c: Include stdlib.h, for 'free'.
48851
48852 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
48853
48854         * modules/inttostr (License): Change to LGPL.
48855
48856 2006-11-14  Eric Blake  <ebb9@byu.net>
48857
48858         * modules/tempname (License): Change to LGPL.
48859
48860 2006-11-14  Eric Blake  <ebb9@byu.net>
48861
48862         * doc/functions.texi (Function Portability): *printf functions on
48863         Cygwin now understand all POSIX size specifiers.
48864
48865 2006-11-14  Bruno Haible  <bruno@clisp.org>
48866
48867         * modules/c-ctype (License): Change to LGPL.
48868
48869 2006-11-12  Bruno Haible  <bruno@clisp.org>
48870
48871         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48872         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
48873         for GNOME libraries, for which the include files are installed in
48874         subdirectories of $prefix/include.
48875
48876 2006-11-12  Bruno Haible  <bruno@clisp.org>
48877
48878         * m4/lib-link.m4: Require at least autoconf-2.54.
48879         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
48880         name to underscores for the --with option.
48881
48882 2006-11-13  Bruno Haible  <bruno@clisp.org>
48883
48884         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
48885         the tests directory.
48886         Reported by Ralf Wildenhues.
48887
48888 2006-11-13  Bruno Haible  <bruno@clisp.org>
48889
48890         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
48891         (func_emit_initmacro_end): Undo the override here.
48892         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
48893         Works around the famous automake error in coreutils.
48894
48895 2006-11-13  Eric Blake  <ebb9@byu.net>
48896
48897         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
48898         element, not its node.
48899
48900 2006-11-12  Bruno Haible  <bruno@clisp.org>
48901
48902         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
48903         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
48904
48905 2006-11-12  Bruno Haible  <bruno@clisp.org>
48906
48907         * gnulib-tool: New option --local-symlink.
48908         (func_usage): Document it.
48909         (lsymbolic): New variable.
48910         (func_import, func_create_testdir): If --symlink was not specified,
48911         test whether --local-symlink was specified and the file comes from
48912         the local_gnulib_dir.
48913
48914 2006-11-12  Bruno Haible  <bruno@clisp.org>
48915
48916         * gnulib-tool (func_ln): New function.
48917         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
48918
48919 2006-11-12  Bruno Haible  <bruno@clisp.org>
48920
48921         Finish support for source files in subdirectories.
48922         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
48923         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
48924         AUTOMAKE_OPTIONS.
48925         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
48926
48927 2006-11-12  Bruno Haible  <bruno@clisp.org>
48928
48929         * gnulib-tool (func_get_automake_snippet): Synthesize also an
48930         EXTRA_lib_SOURCES augmentation.
48931         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
48932
48933 2006-11-12  Jim Meyering  <jim@meyering.net>
48934
48935         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
48936         file descriptors.  This also averts a failure on systems with
48937         native openat support when a traversed directory lacks "x" access.
48938         * lib/fts_.h: Include "i-ring.h"
48939         (struct FTS) [fts_fd_ring]: New member.
48940         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
48941         (FCHDIR): Add parentheses.
48942         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
48943         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
48944         When descending, rather than simply closing the previous
48945         fts_cwd_fd value, push that file descriptor onto the ring.
48946         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
48947         (fts_open): Initialize the new fd_ring member.
48948         (fts_close): Clear the ring.
48949         (fts_safe_changedir): When possible, use our new fd_ring to skip
48950         the diropen and fstat and dev/ino comparison that would normally
48951         accompany a virtual `chdir ("..")'.
48952
48953         * modules/fts (Depends-on): Add i-ring.
48954         * modules/i-ring: New module.
48955         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
48956         * m4/i-ring.m4: New file.
48957
48958 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48959
48960         * gnulib-tool (func_create_testdir): Fix replacement of
48961         `build-aux' in configure.ac.  Run autotools in gltests
48962         subdirectory.
48963         (func_create_testdir, func_create_megatestdir, test): There is
48964         no need for '--force' in most autotool invocations in a new
48965         tree.  Actually fail the whole test if any of the tools, or the
48966         configure or make stages fail.
48967
48968         Sync from Automake.
48969         * build-aux/gnupload: Revert last change.  Add pointer to upload
48970         instructions of the GNU Maintenance Instructions.
48971         Suggestion by Karl Berry.
48972
48973 2006-11-10  Jim Meyering  <jim@meyering.net>
48974
48975         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
48976
48977 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
48978
48979         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
48980         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
48981         (bind_textdomain_codeset) [! ENABLE_NLS]:
48982         Evaluate all the arguments.  That way, callers get compatible behavior
48983         if the arguments have side effects.  Also, it avoids some GCC
48984         diagnostics in some cases; Joel E. Denny reported problems when Bison
48985         was configured with --enable-gcc-warnigs.
48986
48987 2006-11-10  Jim Meyering  <jim@meyering.net>
48988
48989         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
48990         relevant options in CFLAGS (like -O, -fno-inline) are taken into
48991         account.
48992
48993 2006-11-10  Jim Meyering  <jim@meyering.net>
48994
48995         * modules/inline: New file/module.
48996         * modules/xalloc (Files): Remove m4/inline.m4.
48997         (Depends-on): Add inline, instead.
48998         * modules/oset: Likewise.
48999         * modules/list: Likewise.
49000
49001 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
49002
49003         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
49004         Problem reported by Matthew Woehlke.
49005
49006 2006-11-09  Bruno Haible  <bruno@clisp.org>
49007
49008         * lib/tempname.c (gen_tempname): Remove variant that invokes
49009         __gen_tempname.
49010         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
49011         __gen_tempname.
49012
49013 2006-11-08  Bruno Haible  <bruno@clisp.org>
49014
49015         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
49016         to 'yes' instead of 'cross-compiling'.
49017
49018 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
49019
49020         * lib/quotearg.h (quotearg_free): New decl.
49021         * lib/quotearg.c (quotearg_free): New function.
49022         (slot0, nslots, slotvec0, slotvec):
49023         Now file-scope so that quotearg_free can get at them.
49024
49025 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49026
49027         Sync from Automake.
49028         * build-aux/gnupload: Add missing 'gnu' to example URL.
49029         Report by Karl Berry.
49030
49031 2006-11-08  Bruno Haible  <bruno@clisp.org>
49032
49033         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
49034         Suggested by Paul Eggert.
49035
49036 2006-11-08  Jim Meyering  <jim@meyering.net>
49037
49038         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
49039         It's already included if !_LIBC.
49040         (fts_safe_changedir): Add a comment.
49041
49042 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
49043
49044         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
49045         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
49046         Matthew Woehlke.
49047
49048         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
49049         definitions up, to avoid colliding with change below.
49050         (static_inline) [HAVE_INLINE]: New macro.
49051         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
49052         Provide extern decls when !HAVE_INLINE.  Do not define unless
49053         static_inline is defined, either by us or by xmalloc.c.  Use
49054         static_inline rather than static inline.
49055         (XCALLOC): Optimize sizeof(T) = 1 case.
49056         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
49057
49058 2006-11-07  Bruno Haible  <bruno@clisp.org>
49059
49060         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
49061         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
49062         AC_C_INLINE.
49063         * modules/xalloc (Files): Add m4/inline.m4.
49064
49065 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49066
49067         * README: Fix typo.
49068         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
49069         (Miscellanous Notes): ...from this.
49070
49071 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
49072
49073         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
49074         Mention that offsetof should be used instead of sizeof.
49075         From Bruno Haible.
49076
49077 2006-11-07  Bruno Haible  <bruno@clisp.org>
49078
49079         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
49080
49081 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
49082
49083         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
49084         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
49085         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
49086         (gl_tree_add_before, gl_tree_add_after):
49087         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
49088         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
49089         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
49090         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
49091         (gl_linked_add_after, gl_linked_add_at): Likewise.
49092         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
49093         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
49094         (gl_tree_add_before, gl_tree_add_after): Likewise.
49095         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
49096         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
49097         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
49098
49099 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49100
49101         * lib/gl_oset.h: Use C comment style, not C++ comment style.
49102
49103 2006-11-06  Bruno Haible  <bruno@clisp.org>
49104
49105         * m4/inline.m4: New file.
49106         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
49107         * modules/list (Files): Add m4/inline.m4.
49108         * modules/oset (Files): Likewise.
49109
49110 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
49111
49112         * lib/idcache.c: Include <stddef.h>, for offsetof.
49113         (struct userid.name): Change from char * to a flexible array member.
49114         All uses changed.
49115         * modules/idcache (Depends-on): Add flexmember.
49116
49117         * MODULES.html.sh (Core language properties): New module flexmember.
49118         * modules/flexmember, m4/flexmember.m4: New files.
49119
49120         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
49121         inline functions that are identical with the old xnmalloc_inline,
49122         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
49123         that we can avoid some unnecessary integer multiplications and
49124         divisions in the common case where the element size is known at
49125         compile time.
49126         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
49127         needed.
49128         (xnboundedmalloc): Remove.
49129         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
49130         arguments, for consistency with rest of this header.
49131         (xcharalloc): Rewrite using XNMALLOC.
49132         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
49133         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
49134         versions have been moved to lib/xalloc.h and renamed to be the
49135         non-*_inline versions.
49136         (xmalloc, xrealloc): Implement without reference to the xnmalloc
49137         and xnrealloc functions, since those functions are now inline and
49138         now call us.
49139         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
49140         renaming described above.
49141         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
49142         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
49143         captures the dependency in AC_C_INLINE.
49144
49145         New module canonicalize-lgpl, proposed by Charles Wilson in
49146         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
49147         with a few small changes afterwards.
49148         * MODULES.html.sh (File system functions): New module
49149         canonicalize-lgpl.
49150         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
49151         and canonicalize_file_name.
49152         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
49153         * modules/canonicalize-lgpl: New files.
49154
49155 2006-11-05  Bruno Haible  <bruno@clisp.org>
49156
49157         * gnulib-tool (func_import, func_create_testdir): Create directories
49158         also for files in subdirectories of lib/.
49159
49160 2006-11-05  Bruno Haible  <bruno@clisp.org>
49161
49162         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
49163         ANSI C compliant.
49164
49165 2006-11-03  Bruno Haible  <bruno@clisp.org>
49166
49167         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
49168         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
49169         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
49170         (xnboundedmalloc): New inline function.
49171         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
49172         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
49173         xmalloc.
49174         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
49175         xmalloc.
49176         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
49177         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
49178         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
49179         xmalloc.
49180         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
49181         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
49182         xmalloc.
49183         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
49184         gl_tree_add_after): Use XMALLOC instead of xmalloc.
49185         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
49186         xmalloc.
49187         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
49188         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
49189         gl_tree_add_after): Use XMALLOC instead of xmalloc.
49190         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
49191         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
49192         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
49193         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
49194
49195 2006-11-03  Bruno Haible  <bruno@clisp.org>
49196
49197         * lib/c-ctype.h [C++]: Define functions without name mangling.
49198         * lib/fwriteerror.h [C++]: Likewise.
49199         * lib/gcd.h [C++]: Likewise.
49200         * lib/linebreak.h [C++]: Likewise.
49201
49202 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
49203
49204         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
49205         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
49206         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
49207         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49208         Check for functions and headers just once.
49209         Check for declaration of canonicalize_file_name.
49210         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
49211
49212 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49213
49214         * gnulib-tool (func_import): Fix typo in actioncmd.
49215
49216 2006-11-02  Bruno Haible  <bruno@clisp.org>
49217
49218         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
49219         newline sequence in the Makefile.am snippet as a space, like "make"
49220         does.
49221         Reported by Roger Persson <perrog@gmail.com>.
49222
49223 2006-11-01  Bruno Haible  <bruno@clisp.org>
49224
49225         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
49226         already declared in <string.h>.
49227         * lib/strcase.h (strncasecmp): Don't declare it if yes.
49228
49229 2006-11-01  Bruno Haible  <bruno@clisp.org>
49230
49231         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
49232         * lib/strcase.h: Include <string.h>.
49233         (strcasecmp): Define to rpl_strcasecmp here.
49234
49235 2006-11-01  Bruno Haible  <bruno@clisp.org>
49236
49237         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
49238
49239 2006-11-01  Eric Blake  <ebb9@byu.net>
49240
49241         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
49242
49243         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
49244
49245 2006-10-29  Bruno Haible  <bruno@clisp.org>
49246
49247         Make it compile in C++ mode.
49248         * lib/full-write.c (full_rw): Add a cast.
49249
49250 2006-11-01  Bruno Haible  <bruno@clisp.org>
49251
49252         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
49253         be POSIX compliant.
49254         Reported by Roger Persson <perrog@gmail.com>.
49255
49256 2006-11-01  Eric Blake  <ebb9@byu.net>
49257
49258         * lib/getopt_.h: Fix comments.
49259
49260 2006-10-31  Eric Blake  <ebb9@byu.net>
49261
49262         * modules/tmpdir (Depends-on): Add sys_stat.
49263         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
49264         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
49265         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
49266         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
49267         tempname.
49268
49269 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
49270
49271         Avoid some C++ diagnostics reported by Bruno Haible.
49272         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
49273         xmalloc.
49274         (quotearg_alloc): Use xcharalloc rather than xmalloc.
49275         (struct slotvec): Move to top level.
49276         (quotearg_n_options): Rewrite to avoid xmalloc.
49277         * lib/xalloc.h (xcharalloc): New function.
49278         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
49279         [defined __cplusplus]: Add function template that provides result
49280         type propagation.  This part of the change is from Bruno Haible.
49281
49282 2006-10-29  Bruno Haible  <bruno@clisp.org>
49283
49284         Make it compile in C++ mode.
49285         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
49286         * lib/strnlen1.c (strnlen1): Cast memchr result.
49287         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
49288         * lib/clean-temp.c (string_equals, string_hash): Add casts.
49289         (create_temp_dir): Rename local variable 'template'.
49290         (compile_csharp_using_sscli): Add cast.
49291         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
49292         * lib/findprog.c (find_in_path): Likewise.
49293         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
49294         * lib/wait-process.c (register_slave_subprocess): Likewise.
49295
49296 2006-10-22  Bruno Haible  <bruno@clisp.org>
49297
49298         * modules/tsearch: New file.
49299         * lib/tsearch.h: New file.
49300         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
49301         * m4/tsearch.m4: New file.
49302         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
49303
49304 2006-10-29  Eric Blake  <ebb9@byu.net>
49305
49306         * lib/arcfour.c: Assume config.h.
49307         * lib/arctwo.c: Likewise.
49308         * lib/base64.c: Likewise.
49309         * lib/check-version.c: Likewise.
49310         * lib/crc.c: Likewise.
49311         * lib/des.c: Likewise.
49312         * lib/gc-gnulib.c: Likewise.
49313         * lib/gc-libgcrypt.c: Likewise.
49314         * lib/gc-pbkdf2-sha1.c: Likewise.
49315         * lib/getaddrinfo.c: Likewise.
49316         * lib/getdelim.c: Likewise.
49317         * lib/getline.c: Likewise.
49318         * lib/hmac-md5.c: Likewise.
49319         * lib/hmac-sha1.c: Likewise.
49320         * lib/iconvme.c: Likewise.
49321         * lib/md2.c: Likewise.
49322         * lib/md4.c: Likewise.
49323         * lib/memxor.c: Likewise.
49324         * lib/read-file.c: Likewise.
49325         * lib/readline.c: Likewise.
49326         * lib/rijndael-alg-fst.c: Likewise.
49327         * lib/rijndael-api-fst.c: Likewise.
49328         * lib/xgetdomainname.c: Likewise.
49329
49330 2006-10-28  Eric Blake  <ebb9@byu.net>
49331
49332         * lib/xstrndup.c: Assume config.h.
49333
49334 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
49335
49336         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
49337         stat-macros.h is now for our own macros, whereas stat_h is for
49338         macros in the <sys/stat.h> name space.
49339         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
49340         (STAT_MACROS_H): Remove.
49341         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
49342         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
49343         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
49344         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
49345         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
49346         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
49347         Move these macros to ...
49348         * lib/stat_.h: here.  Don't include stat-macros.h.
49349         * lib/canonicalize.c: Don't include stat-macros.h.
49350         * lib/chown.c: Likewise.
49351         * lib/euidaccess.c: Likewise.
49352         * lib/file-type.c: Likewise.
49353         * lib/filemode.c: Likewise.
49354         * lib/glob.c: Likewise.
49355         * lib/isapipe.c: Likewise.
49356         * lib/lchown.c: Likewise.
49357         * lib/lstat.c: Likewise.
49358         * lib/mkdir-p.c: Likewise.
49359         * lib/rmdir.c: Likewise.
49360         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
49361         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
49362         unless mkdir isn't declared, to speed up 'configure'.
49363         Always create sys/stat.h, since it's unlikely any real sys/stat.h
49364         would define all the S_* symbols.
49365         * modules/canonicalize (Depends-on):
49366         Depend on sys_stat, not stat-macros.
49367         * modules/chown: Likewise.
49368         * modules/euidaccess: Likewise.
49369         * modules/filemode: Likewise.
49370         * modules/file-type: Likewise.
49371         * modules/glob: Likewise.
49372         * modules/isapipe: Likewise.
49373         * modules/lchown: Likewise.
49374         * modules/lstat: Likewise.
49375         * modules/mkancesdirs: Likewise.
49376         * modules/rmdir: Likewise.
49377         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
49378         * modules/modechange: Likewise.
49379         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
49380         (configure.ac): Remove gl_STAT_MACROS.
49381         * modules/sys_stat (Depends-on): Remove stat-macros.
49382
49383 2006-10-27  Bruno Haible  <bruno@clisp.org>
49384
49385         * m4/signed.m4: Remove file.
49386         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
49387         invocation.
49388         * modules/vasnprintf (Files): Remove m4/signed.m4.
49389
49390 2006-10-27  Bruno Haible  <bruno@clisp.org>
49391
49392         Update to GNU gettext 0.16.
49393         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
49394         m4/inttypes-h.m4, m4/signed.m4.
49395         * m4/gettext.m4: Update to GNU gettext 0.16.
49396         * m4/intl.m4: New file, from GNU gettext.
49397         * m4/intldir.m4: New file, from GNU gettext.
49398         * config/srclist.txt: Update
49399
49400 2006-10-27  Eric Blake  <ebb9@byu.net>
49401
49402         * MODULES.html.sh: Document tempname.
49403         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
49404         dependencies.
49405         (Files): Move lib/tempname.c...
49406         * modules/tempname: ...to this new module.
49407         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
49408         (gl_PREREQ_TEMPNAME): Move...
49409         * m4/tempname.m4: ...to this new file.
49410         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
49411         * modules/sys_stat (Depends-on): Add stat-macros.
49412         * lib/stat_.h (includes): Pick up stat macros.
49413         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
49414         if stat macros are broken.
49415         * lib/tempname.c (includes): No need to include "stat-macros.h".
49416         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
49417         (direxists, __path_search) [!_LIBC]: Don't compile these in
49418         gnulib; the tmpdir module covers that.
49419         * lib/tempname.h: New file.
49420
49421 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
49422
49423         * COPYING: Explain how gnulib-tool converts licence headers.
49424         Almost all wording by Eric Blake.
49425
49426 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
49427
49428         * lib/mbchar.h (is_basic_table): Make read-only.
49429         * lib/mbchar.c (is_basic_table): Likewise.
49430         Reported by John Darrington.
49431
49432 2006-10-25  Bruno Haible  <bruno@clisp.org>
49433
49434         * lib/progname.h (set_program_name): Undefine before defining.
49435
49436 2006-10-25  Bruno Haible  <bruno@clisp.org>
49437
49438         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
49439         false for non-gcc C++ compilers.
49440         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
49441
49442 2006-10-24  Bruno Haible  <bruno@clisp.org>
49443
49444         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
49445         iconv implementations like Irix iconv.
49446
49447 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49448
49449         * modules/vararrays: New file.
49450         * m4/vararrays.m4: New file, taken from diffutils.
49451         * MODULES.html.sh: New module vararrays.
49452
49453 2006-10-24  Karl Berry  <karl@gnu.org>
49454
49455         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
49456         Don't call GNU Unix.
49457
49458 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49459
49460         * users.txt: Add Libtool.
49461
49462         Sync from Libtool:
49463
49464         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49465
49466         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
49467         to gnulib's policy of including config.h unconditionally.
49468
49469 2006-10-24  Bruno Haible  <bruno@clisp.org>
49470
49471         * modules/wcwidth (Files): Add m4/wint_t.m4.
49472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
49473         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
49474
49475 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
49476
49477         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
49478         to pacify GCC with some -W flags enabled.  Problem reported by
49479         Bruno Haible.
49480
49481 2006-10-24  Jim Meyering  <jim@meyering.net>
49482
49483         * MODULES.html.sh: Remove uinttostr.  It's not a module.
49484         Reported by Karl Berry.
49485
49486 2006-10-23  Bruno Haible  <bruno@clisp.org>
49487
49488         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
49489
49490 2006-10-24  Bruno Haible  <bruno@clisp.org>
49491
49492         * lib/gl_list.h: Use C comment style, not C++ comment style.
49493
49494 2006-10-23  Eric Blake  <ebb9@byu.net>
49495
49496         * lib/getaddrinfo.c (includes): Add missing include.
49497
49498 2006-10-23  Bruno Haible  <bruno@clisp.org>
49499             Paul Eggert  <eggert@cs.ucla.edu>
49500
49501         Ability to rename obstack_free.
49502         * lib/obstack.h (__obstack_free): New macro. Declare instead of
49503         obstack_free.
49504         (obstack_free): Invoke the __obstack_free macro.
49505         * lib/obstack.c (obstack_free): Use __obstack_free macro.
49506
49507 2006-10-23  Bruno Haible  <bruno@clisp.org>
49508             Paul Eggert  <eggert@cs.ucla.edu>
49509
49510         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
49511         __argc, __argv from the declaration. (They are defined as macros on
49512         mingw.)
49513
49514 2006-10-22  Bruno Haible  <bruno@clisp.org>
49515
49516         * doc/gnulib-intro.texi: New file.
49517         * doc/gnulib.texi: Include it.
49518
49519 2006-10-21  Bruno Haible  <bruno@clisp.org>
49520
49521         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
49522         "Introduction", "Miscellanous Notes", "Particular Modules".
49523
49524 2006-10-21  Bruno Haible  <bruno@clisp.org>
49525
49526         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49527         Change mostlyclean-local rule to avoid sh syntax error from bash
49528         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
49529
49530 2006-10-23  Jim Meyering  <jim@meyering.net>
49531
49532         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
49533         in place of snprintf.
49534
49535         * modules/inttostr (Files): Add lib/uinttostr.c.
49536         * lib/uinttostr.c (inttostr): New file/function.
49537         * lib/inttostr.h (uinttostr): Declare.
49538         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
49539         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
49540         Add uinttostr.
49541         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
49542
49543 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
49544
49545         * lib/canonicalize.c (ELOOP): Define if not already defined.
49546         Problem reported by Bruno Haible in
49547         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
49548
49549 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
49550
49551         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
49552         Problem reported by Perry Smith and Ville Laurikari.
49553
49554         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
49555         uses.
49556
49557 2006-10-19  Bruno Haible  <bruno@clisp.org>
49558
49559         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
49560         for mingw.
49561
49562 2006-10-19  Bruno Haible  <bruno@clisp.org>
49563
49564         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
49565         Needed for mingw.
49566
49567 2006-10-19  Bruno Haible  <bruno@clisp.org>
49568
49569         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
49570
49571 2006-10-19  Bruno Haible  <bruno@clisp.org>
49572
49573         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
49574         it.
49575
49576 2006-10-19  Bruno Haible  <bruno@clisp.org>
49577
49578         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
49579         invocation.
49580
49581 2006-10-19  Bruno Haible  <bruno@clisp.org>
49582
49583         * gnulib-tool (func_create_testdir): Don't include ftruncate and
49584         mountlist by default.
49585
49586 2006-10-16  Bruno Haible  <bruno@clisp.org>
49587
49588         * lib/c-strstr.c: Include c-strstr.h.
49589
49590 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
49591
49592         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
49593         in a slash.
49594
49595 2006-10-18  Bruno Haible  <bruno@clisp.org>
49596
49597         * lib/lock.h [C++]: Wrap definitions in extern "C".
49598
49599 2006-10-18  Bruno Haible  <bruno@clisp.org>
49600
49601         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
49602         gl_LIBOBJS list.
49603
49604 2006-10-18  Bruno Haible  <bruno@clisp.org>
49605
49606         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
49607
49608 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
49609
49610         * lib/xstrtol.h: Include gettext.h.
49611         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
49612         Problem reported by Eric Blake.
49613         * modules/xstrtol (Depends-on): Add gettext-h.
49614
49615 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
49616
49617         * lib/strftime.c (advance): New macro.
49618         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
49619         incomplete type, so you can't add 0 to it.  Problem and patch
49620         reported by Eelco Dolstra for dietlibc.
49621
49622 2006-10-18  Jim Meyering  <jim@meyering.net>
49623
49624         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
49625         type for a local, and rename it: s/up/user_proc/.
49626
49627 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49628
49629         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
49630         READ_UTMP_USER_PROCESS.
49631         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
49632
49633 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
49634
49635         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
49636         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
49637
49638 2006-10-17  Eric Blake  <ebb9@byu.net>
49639
49640         * lib/sigprocmask.c (sigprocmask): Fix typo.
49641
49642         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
49643
49644         * modules/clean-temp (Makefile.am): Don't add to make output...
49645         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
49646         config.h.
49647
49648 2006-10-17  Bruno Haible  <bruno@clisp.org>
49649
49650         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
49651         differently if DEFAULT_TEXT_DOMAIN is set.
49652
49653 2006-10-16  Bruno Haible  <bruno@clisp.org>
49654
49655         * lib/clean-temp.c: Include fwriteerror.h.
49656
49657 2006-10-16  Bruno Haible  <bruno@clisp.org>
49658
49659         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
49660
49661 2006-10-16  Bruno Haible  <bruno@clisp.org>
49662
49663         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
49664         * lib/sigprocmask.h: Include <sys/types.h>.
49665         (sigset_t): Use the system's definition if present.
49666
49667 2006-10-17  Eric Blake  <ebb9@byu.net>
49668
49669         * lib/xvasprintf.c (includes): Assume config.h.
49670         * lib/xasprintf.c (includes): Likewise.
49671
49672 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
49673
49674         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
49675         at least as wide as intmax_t.
49676
49677 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
49678
49679         (Imported from Automake.)
49680         * build-aux/gnupload: Update to version 1.1 of directive file.
49681
49682 2006-10-16  Eric Blake  <ebb9@byu.net>
49683
49684         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
49685         match Automake 1.10a.
49686
49687 2006-10-14  Bruno Haible  <bruno@clisp.org>
49688
49689         * modules/sigprocmask: New file.
49690         * lib/sigprocmask.h: New file.
49691         * lib/sigprocmask.c: New file.
49692         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
49693         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
49694         request sigprocmask.o.
49695         (gl_PREREQ_SIGPROCMASK): New macro.
49696         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
49697         (Depends-on): Add sigprocmask.
49698         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
49699         gt_SIGNALBLOCKING. Test for 'raise' only once.
49700         * lib/fatal-signal.c: Include sigprocmask.h.
49701         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
49702         unblock_fatal_signals): Define always.
49703         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49704         sigprocmask.
49705
49706 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
49707
49708         Sync from Automake.
49709         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
49710         which incorrectly sets the mode of an existing destination
49711         directory.  In some cases the unpatched install-sh could do the
49712         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
49713         system.  We hope this is rare in practice, but it's clearly worth
49714         fixing.  Problem reported by Alex Unleashed in
49715         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
49716         Also, don't bother to check for -m bugs unless we're using -m;
49717         suggested by Stepan Kasal.
49718
49719 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49720
49721         Sync from Automake.
49722         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
49723         `-c' flag, so they appear at the same position as in %FASTDEP%
49724         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
49725         which ignores unknown options only after the first non-option.
49726         Bug report against M4 by Nelson H. F. Beebe.
49727
49728 2006-10-13  Jim Meyering  <jim@meyering.net>
49729
49730         Fix a bug in yesterday's change.
49731         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
49732         p->fts_statp->st_dev would be used uninitialized.
49733         Ensures that we always call fts_stat on the very first entry.
49734         Miklos Szeredi reported that find -xdev stopped working.
49735
49736 2006-10-12  Bruno Haible  <bruno@clisp.org>
49737
49738         * gnulib-tool (func_get_automake_snippet): Append an automatically
49739         computed EXTRA_DIST augmentation.
49740         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
49741         * modules/alloca-opt (Makefile.am): Likewise.
49742         * modules/allocsa (Makefile.am): Likewise.
49743         * modules/arcfour (Makefile.am): Likewise.
49744         * modules/arctwo (Makefile.am): Likewise.
49745         * modules/argmatch (Makefile.am): Likewise.
49746         * modules/argz (Makefile.am): Likewise.
49747         * modules/atexit (Makefile.am): Likewise.
49748         * modules/backupfile (Makefile.am): Likewise.
49749         * modules/byteswap (Makefile.am): Likewise.
49750         * modules/c-strtod (Makefile.am): Likewise.
49751         * modules/c-strtold (Makefile.am): Likewise.
49752         * modules/calloc (Makefile.am): Likewise.
49753         * modules/canon-host (Makefile.am): Likewise.
49754         * modules/canonicalize (Makefile.am): Likewise.
49755         * modules/chdir-long (Makefile.am): Likewise.
49756         * modules/chdir-safer (Makefile.am): Likewise.
49757         * modules/check-version (Makefile.am): Likewise.
49758         * modules/chown (Makefile.am): Likewise.
49759         * modules/cloexec (Makefile.am): Likewise.
49760         * modules/close-stream (Makefile.am): Likewise.
49761         * modules/closeout (Makefile.am): Likewise.
49762         * modules/crc (Makefile.am): Likewise.
49763         * modules/csharpexec (Makefile.am): Likewise.
49764         * modules/cycle-check (Makefile.am): Likewise.
49765         * modules/des (Makefile.am): Likewise.
49766         * modules/dev-ino (Makefile.am): Likewise.
49767         * modules/dirfd (Makefile.am): Likewise.
49768         * modules/dirname (Makefile.am): Likewise.
49769         * modules/dup2 (Makefile.am): Likewise.
49770         * modules/eealloc (Makefile.am): Likewise.
49771         * modules/error (Makefile.am): Likewise.
49772         * modules/euidaccess (Makefile.am): Likewise.
49773         * modules/exclude (Makefile.am): Likewise.
49774         * modules/exitfail (Makefile.am): Likewise.
49775         * modules/fcntl-safer (Makefile.am): Likewise.
49776         * modules/fcntl (Makefile.am): Likewise.
49777         * modules/file-type (Makefile.am): Likewise.
49778         * modules/fileblocks (Makefile.am): Likewise.
49779         * modules/filemode (Makefile.am): Likewise.
49780         * modules/filenamecat (Makefile.am): Likewise.
49781         * modules/fnmatch (Makefile.am): Likewise.
49782         * modules/fopen-safer (Makefile.am): Likewise.
49783         * modules/fpending (Makefile.am): Likewise.
49784         * modules/fprintftime (Makefile.am): Likewise.
49785         * modules/free (Makefile.am): Likewise.
49786         * modules/fsusage (Makefile.am): Likewise.
49787         * modules/ftruncate (Makefile.am): Likewise.
49788         * modules/fts (Makefile.am): Likewise.
49789         * modules/gc-arcfour (Makefile.am): Likewise.
49790         * modules/gc-des (Makefile.am): Likewise.
49791         * modules/gc-hmac-md5 (Makefile.am): Likewise.
49792         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
49793         * modules/gc-md4 (Makefile.am): Likewise.
49794         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
49795         * modules/gc-sha1 (Makefile.am): Likewise.
49796         * modules/gc (Makefile.am): Likewise.
49797         * modules/getaddrinfo (Makefile.am): Likewise.
49798         * modules/getcwd (Makefile.am): Likewise.
49799         * modules/getdelim (Makefile.am): Likewise.
49800         * modules/getdomainname (Makefile.am): Likewise.
49801         * modules/getgroups (Makefile.am): Likewise.
49802         * modules/gethostname (Makefile.am): Likewise.
49803         * modules/gethrxtime (Makefile.am): Likewise.
49804         * modules/getline (Makefile.am): Likewise.
49805         * modules/getloadavg (Makefile.am): Likewise.
49806         * modules/getlogin_r (Makefile.am): Likewise.
49807         * modules/getndelim2 (Makefile.am): Likewise.
49808         * modules/getopt (Makefile.am): Likewise.
49809         * modules/getpagesize (Makefile.am): Likewise.
49810         * modules/getpass-gnu (Makefile.am): Likewise.
49811         * modules/getpass (Makefile.am): Likewise.
49812         * modules/getsubopt (Makefile.am): Likewise.
49813         * modules/gettime (Makefile.am): Likewise.
49814         * modules/gettimeofday (Makefile.am): Likewise.
49815         * modules/getugroups (Makefile.am): Likewise.
49816         * modules/getusershell (Makefile.am): Likewise.
49817         * modules/glob (Makefile.am): Likewise.
49818         * modules/group-member (Makefile.am): Likewise.
49819         * modules/hard-locale (Makefile.am): Likewise.
49820         * modules/hash (Makefile.am): Likewise.
49821         * modules/hmac-md5 (Makefile.am): Likewise.
49822         * modules/hmac-sha1 (Makefile.am): Likewise.
49823         * modules/human (Makefile.am): Likewise.
49824         * modules/idcache (Makefile.am): Likewise.
49825         * modules/imaxabs (Makefile.am): Likewise.
49826         * modules/imaxdiv (Makefile.am): Likewise.
49827         * modules/inet_ntop (Makefile.am): Likewise.
49828         * modules/inet_pton (Makefile.am): Likewise.
49829         * modules/intprops (Makefile.am): Likewise.
49830         * modules/inttostr (Makefile.am): Likewise.
49831         * modules/inttypes (Makefile.am): Likewise.
49832         * modules/isapipe (Makefile.am): Likewise.
49833         * modules/javaversion (Makefile.am): Likewise.
49834         * modules/lchmod (Makefile.am): Likewise.
49835         * modules/lchown (Makefile.am): Likewise.
49836         * modules/localcharset (Makefile.am): Likewise.
49837         * modules/long-options (Makefile.am): Likewise.
49838         * modules/lstat (Makefile.am): Likewise.
49839         * modules/malloc (Makefile.am): Likewise.
49840         * modules/mathl (Makefile.am): Likewise.
49841         * modules/mbchar (Makefile.am): Likewise.
49842         * modules/md2 (Makefile.am): Likewise.
49843         * modules/md4 (Makefile.am): Likewise.
49844         * modules/md5 (Makefile.am): Likewise.
49845         * modules/memcasecmp (Makefile.am): Likewise.
49846         * modules/memchr (Makefile.am): Likewise.
49847         * modules/memcmp (Makefile.am): Likewise.
49848         * modules/memcoll (Makefile.am): Likewise.
49849         * modules/memcpy (Makefile.am): Likewise.
49850         * modules/memmem (Makefile.am): Likewise.
49851         * modules/memmove (Makefile.am): Likewise.
49852         * modules/mempcpy (Makefile.am): Likewise.
49853         * modules/memrchr (Makefile.am): Likewise.
49854         * modules/memset (Makefile.am): Likewise.
49855         * modules/memxor (Makefile.am): Likewise.
49856         * modules/mkancesdirs (Makefile.am): Likewise.
49857         * modules/mkdir-p (Makefile.am): Likewise.
49858         * modules/mkdir (Makefile.am): Likewise.
49859         * modules/mkdtemp (Makefile.am): Likewise.
49860         * modules/mkstemp (Makefile.am): Likewise.
49861         * modules/mktime (Makefile.am): Likewise.
49862         * modules/modechange (Makefile.am): Likewise.
49863         * modules/mountlist (Makefile.am): Likewise.
49864         * modules/nanosleep (Makefile.am): Likewise.
49865         * modules/obstack (Makefile.am): Likewise.
49866         * modules/openat (Makefile.am): Likewise.
49867         * modules/pagealign_alloc (Makefile.am): Likewise.
49868         * modules/pathmax (Makefile.am): Likewise.
49869         * modules/physmem (Makefile.am): Likewise.
49870         * modules/poll (Makefile.am): Likewise.
49871         * modules/posixtm (Makefile.am): Likewise.
49872         * modules/posixver (Makefile.am): Likewise.
49873         * modules/putenv (Makefile.am): Likewise.
49874         * modules/quote (Makefile.am): Likewise.
49875         * modules/quotearg (Makefile.am): Likewise.
49876         * modules/raise (Makefile.am): Likewise.
49877         * modules/read-file (Makefile.am): Likewise.
49878         * modules/readline (Makefile.am): Likewise.
49879         * modules/readlink (Makefile.am): Likewise.
49880         * modules/readtokens (Makefile.am): Likewise.
49881         * modules/readutmp (Makefile.am): Likewise.
49882         * modules/realloc (Makefile.am): Likewise.
49883         * modules/regex (Makefile.am): Likewise.
49884         * modules/rename-dest-slash (Makefile.am): Likewise.
49885         * modules/rename (Makefile.am): Likewise.
49886         * modules/rijndael (Makefile.am): Likewise.
49887         * modules/rmdir (Makefile.am): Likewise.
49888         * modules/rpmatch (Makefile.am): Likewise.
49889         * modules/safe-read (Makefile.am): Likewise.
49890         * modules/safe-write (Makefile.am): Likewise.
49891         * modules/same-inode (Makefile.am): Likewise.
49892         * modules/same (Makefile.am): Likewise.
49893         * modules/save-cwd (Makefile.am): Likewise.
49894         * modules/savedir (Makefile.am): Likewise.
49895         * modules/setenv (Makefile.am): Likewise.
49896         * modules/settime (Makefile.am): Likewise.
49897         * modules/sha1 (Makefile.am): Likewise.
49898         * modules/sig2str (Makefile.am): Likewise.
49899         * modules/snprintf (Makefile.am): Likewise.
49900         * modules/stat-macros (Makefile.am): Likewise.
49901         * modules/stat-time (Makefile.am): Likewise.
49902         * modules/stdbool (Makefile.am): Likewise.
49903         * modules/stdint (Makefile.am): Likewise.
49904         * modules/stdlib-safer (Makefile.am): Likewise.
49905         * modules/stpcpy (Makefile.am): Likewise.
49906         * modules/stpncpy (Makefile.am): Likewise.
49907         * modules/strcase (Makefile.am): Likewise.
49908         * modules/strcasestr (Makefile.am): Likewise.
49909         * modules/strchrnul (Makefile.am): Likewise.
49910         * modules/strcspn (Makefile.am): Likewise.
49911         * modules/strdup (Makefile.am): Likewise.
49912         * modules/strerror (Makefile.am): Likewise.
49913         * modules/strftime (Makefile.am): Likewise.
49914         * modules/strndup (Makefile.am): Likewise.
49915         * modules/strnlen (Makefile.am): Likewise.
49916         * modules/strpbrk (Makefile.am): Likewise.
49917         * modules/strsep (Makefile.am): Likewise.
49918         * modules/strstr (Makefile.am): Likewise.
49919         * modules/strtod (Makefile.am): Likewise.
49920         * modules/strtoimax (Makefile.am): Likewise.
49921         * modules/strtok_r (Makefile.am): Likewise.
49922         * modules/strtol (Makefile.am): Likewise.
49923         * modules/strtoll (Makefile.am): Likewise.
49924         * modules/strtoul (Makefile.am): Likewise.
49925         * modules/strtoull (Makefile.am): Likewise.
49926         * modules/strtoumax (Makefile.am): Likewise.
49927         * modules/strverscmp (Makefile.am): Likewise.
49928         * modules/sys_socket (Makefile.am): Likewise.
49929         * modules/sys_stat (Makefile.am): Likewise.
49930         * modules/sysexits (Makefile.am): Likewise.
49931         * modules/time_r (Makefile.am): Likewise.
49932         * modules/timegm (Makefile.am): Likewise.
49933         * modules/timespec (Makefile.am): Likewise.
49934         * modules/tmpfile-safer (Makefile.am): Likewise.
49935         * modules/trim (Makefile.am): Likewise.
49936         * modules/unistd-safer (Makefile.am): Likewise.
49937         * modules/unlinkdir (Makefile.am): Likewise.
49938         * modules/unlocked-io (Makefile.am): Likewise.
49939         * modules/userspec (Makefile.am): Likewise.
49940         * modules/utime (Makefile.am): Likewise.
49941         * modules/utimecmp (Makefile.am): Likewise.
49942         * modules/utimens (Makefile.am): Likewise.
49943         * modules/vasnprintf (Makefile.am): Likewise.
49944         * modules/vasprintf (Makefile.am): Likewise.
49945         * modules/vsnprintf (Makefile.am): Likewise.
49946         * modules/xalloc (Makefile.am): Likewise.
49947         * modules/xgetcwd (Makefile.am): Likewise.
49948         * modules/xnanosleep (Makefile.am): Likewise.
49949         * modules/xreadlink (Makefile.am): Likewise.
49950         * modules/xstrtod (Makefile.am): Likewise.
49951         * modules/xstrtol (Makefile.am): Likewise.
49952         * modules/xstrtold (Makefile.am): Likewise.
49953         * modules/yesno (Makefile.am): Likewise.
49954         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
49955
49956 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
49957
49958         * modules/error (Makefile.am): Distribute files through
49959         EXTRA_DIST, not lib_SOURCES.
49960
49961 2006-10-12  Eric Blake  <ebb9@byu.net>
49962
49963         * modules/error (Makefile.am): Distribute files in /lib.
49964         * modules/obstack (Makefile.am): Likewise.
49965
49966 2006-10-12  Bruno Haible  <bruno@clisp.org>
49967
49968         * modules/acl (Makefile.am): Distribute all files in lib/ through
49969         EXTRA_DIST.
49970         * modules/arcfour (Makefile.am): Likewise.
49971         * modules/arctwo (Makefile.am): Likewise.
49972         * modules/argmatch (Makefile.am): Likewise.
49973         * modules/argz (Makefile.am): Likewise.
49974         * modules/atexit (Makefile.am): Likewise.
49975         * modules/backupfile (Makefile.am): Likewise.
49976         * modules/c-strtod (Makefile.am): Likewise.
49977         * modules/c-strtold (Makefile.am): Likewise.
49978         * modules/calloc (Makefile.am): Likewise.
49979         * modules/canon-host (Makefile.am): Likewise.
49980         * modules/canonicalize (Makefile.am): Likewise.
49981         * modules/chdir-long (Makefile.am): Likewise.
49982         * modules/chdir-safer (Makefile.am): Likewise.
49983         * modules/check-version (Makefile.am): Likewise.
49984         * modules/chown (Makefile.am): Likewise.
49985         * modules/cloexec (Makefile.am): Likewise.
49986         * modules/close-stream (Makefile.am): Likewise.
49987         * modules/closeout (Makefile.am): Likewise.
49988         * modules/crc (Makefile.am): Likewise.
49989         * modules/cycle-check (Makefile.am): Likewise.
49990         * modules/des (Makefile.am): Likewise.
49991         * modules/dirfd (Makefile.am): Likewise.
49992         * modules/dirname (Makefile.am): Likewise.
49993         * modules/dup2 (Makefile.am): Likewise.
49994         * modules/euidaccess (Makefile.am): Likewise.
49995         * modules/exclude (Makefile.am): Likewise.
49996         * modules/exitfail (Makefile.am): Likewise.
49997         * modules/fcntl-safer (Makefile.am): Likewise.
49998         * modules/file-type (Makefile.am): Likewise.
49999         * modules/fileblocks (Makefile.am): Likewise.
50000         * modules/filemode (Makefile.am): Likewise.
50001         * modules/filenamecat (Makefile.am): Likewise.
50002         * modules/fnmatch (Makefile.am): Likewise.
50003         * modules/fopen-safer (Makefile.am): Likewise.
50004         * modules/fpending (Makefile.am): Likewise.
50005         * modules/fprintftime (Makefile.am): Likewise.
50006         * modules/free (Makefile.am): Likewise.
50007         * modules/fsusage (Makefile.am): Likewise.
50008         * modules/ftruncate (Makefile.am): Likewise.
50009         * modules/fts (Makefile.am): Likewise.
50010         * modules/gc (Makefile.am): Likewise.
50011         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
50012         * modules/getaddrinfo (Makefile.am): Likewise.
50013         * modules/getcwd (Makefile.am): Likewise.
50014         * modules/getdelim (Makefile.am): Likewise.
50015         * modules/getdomainname (Makefile.am): Likewise.
50016         * modules/getgroups (Makefile.am): Likewise.
50017         * modules/gethostname (Makefile.am): Likewise.
50018         * modules/gethrxtime (Makefile.am): Likewise.
50019         * modules/getline (Makefile.am): Likewise.
50020         * modules/getloadavg (Makefile.am): Likewise.
50021         * modules/getlogin_r (Makefile.am): Likewise.
50022         * modules/getopt (Makefile.am): Likewise.
50023         * modules/getpass (Makefile.am): Likewise.
50024         * modules/getpass-gnu (Makefile.am): Likewise.
50025         * modules/getsubopt (Makefile.am): Likewise.
50026         * modules/gettime (Makefile.am): Likewise.
50027         * modules/gettimeofday (Makefile.am): Likewise.
50028         * modules/getugroups (Makefile.am): Likewise.
50029         * modules/getusershell (Makefile.am): Likewise.
50030         * modules/glob (Makefile.am): Likewise.
50031         * modules/group-member (Makefile.am): Likewise.
50032         * modules/hard-locale (Makefile.am): Likewise.
50033         * modules/hash (Makefile.am): Likewise.
50034         * modules/hmac-md5 (Makefile.am): Likewise.
50035         * modules/hmac-sha1 (Makefile.am): Likewise.
50036         * modules/human (Makefile.am): Likewise.
50037         * modules/idcache (Makefile.am): Likewise.
50038         * modules/imaxabs (Makefile.am): Likewise.
50039         * modules/imaxdiv (Makefile.am): Likewise.
50040         * modules/inet_ntop (Makefile.am): Likewise.
50041         * modules/inet_pton (Makefile.am): Likewise.
50042         * modules/inttostr (Makefile.am): Likewise.
50043         * modules/isapipe (Makefile.am): Likewise.
50044         * modules/lchown (Makefile.am): Likewise.
50045         * modules/long-options (Makefile.am): Likewise.
50046         * modules/lstat (Makefile.am): Likewise.
50047         * modules/malloc (Makefile.am): Likewise.
50048         * modules/mathl (Makefile.am): Likewise.
50049         * modules/mbchar (Makefile.am): Likewise.
50050         * modules/md2 (Makefile.am): Likewise.
50051         * modules/md4 (Makefile.am): Likewise.
50052         * modules/md5 (Makefile.am): Likewise.
50053         * modules/memcasecmp (Makefile.am): Likewise.
50054         * modules/memchr (Makefile.am): Likewise.
50055         * modules/memcmp (Makefile.am): Likewise.
50056         * modules/memcoll (Makefile.am): Likewise.
50057         * modules/memcpy (Makefile.am): Likewise.
50058         * modules/memmem (Makefile.am): Likewise.
50059         * modules/memmove (Makefile.am): Likewise.
50060         * modules/mempcpy (Makefile.am): Likewise.
50061         * modules/memrchr (Makefile.am): Likewise.
50062         * modules/memset (Makefile.am): Likewise.
50063         * modules/memxor (Makefile.am): Likewise.
50064         * modules/mkancesdirs (Makefile.am): Likewise.
50065         * modules/mkdir (Makefile.am): Likewise.
50066         * modules/mkdir-p (Makefile.am): Likewise.
50067         * modules/mkdtemp (Makefile.am): Likewise.
50068         * modules/mkstemp (Makefile.am): Likewise.
50069         * modules/mktime (Makefile.am): Likewise.
50070         * modules/modechange (Makefile.am): Likewise.
50071         * modules/mountlist (Makefile.am): Likewise.
50072         * modules/nanosleep (Makefile.am): Likewise.
50073         * modules/openat (Makefile.am): Likewise.
50074         * modules/pagealign_alloc (Makefile.am): Likewise.
50075         * modules/physmem (Makefile.am): Likewise.
50076         * modules/poll (Makefile.am): Likewise.
50077         * modules/posixtm (Makefile.am): Likewise.
50078         * modules/posixver (Makefile.am): Likewise.
50079         * modules/putenv (Makefile.am): Likewise.
50080         * modules/quote (Makefile.am): Likewise.
50081         * modules/quotearg (Makefile.am): Likewise.
50082         * modules/raise (Makefile.am): Likewise.
50083         * modules/read-file (Makefile.am): Likewise.
50084         * modules/readline (Makefile.am): Likewise.
50085         * modules/readlink (Makefile.am): Likewise.
50086         * modules/readtokens (Makefile.am): Likewise.
50087         * modules/readutmp (Makefile.am): Likewise.
50088         * modules/realloc (Makefile.am): Likewise.
50089         * modules/regex (Makefile.am): Likewise.
50090         * modules/rename (Makefile.am): Likewise.
50091         * modules/rename-dest-slash (Makefile.am): Likewise.
50092         * modules/rijndael (Makefile.am): Likewise.
50093         * modules/rmdir (Makefile.am): Likewise.
50094         * modules/rpmatch (Makefile.am): Likewise.
50095         * modules/safe-read (Makefile.am): Likewise.
50096         * modules/safe-write (Makefile.am): Likewise.
50097         * modules/same (Makefile.am): Likewise.
50098         * modules/save-cwd (Makefile.am): Likewise.
50099         * modules/savedir (Makefile.am): Likewise.
50100         * modules/setenv (Makefile.am): Likewise.
50101         * modules/settime (Makefile.am): Likewise.
50102         * modules/sha1 (Makefile.am): Likewise.
50103         * modules/sig2str (Makefile.am): Likewise.
50104         * modules/snprintf (Makefile.am): Likewise.
50105         * modules/stdlib-safer (Makefile.am): Likewise.
50106         * modules/stpcpy (Makefile.am): Likewise.
50107         * modules/stpncpy (Makefile.am): Likewise.
50108         * modules/strcase (Makefile.am): Likewise.
50109         * modules/strcasestr (Makefile.am): Likewise.
50110         * modules/strchrnul (Makefile.am): Likewise.
50111         * modules/strcspn (Makefile.am): Likewise.
50112         * modules/strdup (Makefile.am): Likewise.
50113         * modules/strerror (Makefile.am): Likewise.
50114         * modules/strftime (Makefile.am): Likewise.
50115         * modules/strndup (Makefile.am): Likewise.
50116         * modules/strnlen (Makefile.am): Likewise.
50117         * modules/strpbrk (Makefile.am): Likewise.
50118         * modules/strsep (Makefile.am): Likewise.
50119         * modules/strstr (Makefile.am): Likewise.
50120         * modules/strtod (Makefile.am): Likewise.
50121         * modules/strtoimax (Makefile.am): Likewise.
50122         * modules/strtok_r (Makefile.am): Likewise.
50123         * modules/strtol (Makefile.am): Likewise.
50124         * modules/strtoll (Makefile.am): Likewise.
50125         * modules/strtoul (Makefile.am): Likewise.
50126         * modules/strtoull (Makefile.am): Likewise.
50127         * modules/strtoumax (Makefile.am): Likewise.
50128         * modules/strverscmp (Makefile.am): Likewise.
50129         * modules/time_r (Makefile.am): Likewise.
50130         * modules/timegm (Makefile.am): Likewise.
50131         * modules/tmpfile-safer (Makefile.am): Likewise.
50132         * modules/unistd-safer (Makefile.am): Likewise.
50133         * modules/unlinkdir (Makefile.am): Likewise.
50134         * modules/userspec (Makefile.am): Likewise.
50135         * modules/utime (Makefile.am): Likewise.
50136         * modules/utimecmp (Makefile.am): Likewise.
50137         * modules/utimens (Makefile.am): Likewise.
50138         * modules/vasnprintf (Makefile.am): Likewise.
50139         * modules/vasprintf (Makefile.am): Likewise.
50140         * modules/vsnprintf (Makefile.am): Likewise.
50141         * modules/xalloc (Makefile.am): Likewise.
50142         * modules/xgetcwd (Makefile.am): Likewise.
50143         * modules/xnanosleep (Makefile.am): Likewise.
50144         * modules/xreadlink (Makefile.am): Likewise.
50145         * modules/xstrtod (Makefile.am): Likewise.
50146         * modules/xstrtol (Makefile.am): Likewise.
50147         * modules/xstrtold (Makefile.am): Likewise.
50148         * modules/yesno (Makefile.am): Likewise.
50149
50150 2006-10-12  Jim Meyering  <jim@meyering.net>
50151
50152         * m4/getloadavg.m4: Revert the change below.
50153
50154         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
50155         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
50156         fail with a symlink, which is what coreutils' ./bootstrap now
50157         creates by default.
50158
50159 2006-10-12  Bruno Haible  <bruno@clisp.org>
50160
50161         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
50162         mingw.
50163         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
50164         MSVC and mingw explicitly.
50165
50166 2006-10-11  Simon Josefsson  <jas@extundo.com>
50167             Bruno Haible  <bruno@clisp.org>
50168
50169         Add support for multiple gnulib-tool invocations in the scope of a
50170         single configure.ac file.
50171         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
50172         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
50173         with the same contents as the _LIBADD variable.
50174         (func_emit_initmacro_start, func_emit_initmacro_end,
50175         func_emit_initmacro_done): New functions.
50176         (func_import, func_create_testdir): Invoke them. Allow the identifiers
50177         gl_LIBOBJS and gl_LTLIBOBJS.
50178
50179 2006-10-11  Bruno Haible  <bruno@clisp.org>
50180
50181         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
50182         (func_create_testdir): Don't create po/Makefile.am, don't invoke
50183         autoreconf. Instead, invoke autopoint explicitly but move back the
50184         *.m4 files from gnulib.
50185
50186 2006-10-11  Bruno Haible  <bruno@clisp.org>
50187
50188         * gnulib-tool (func_usage): Make module names after --create-testdir
50189         optional.
50190         (func_create_testdir): If no module was specified, use nearly all
50191         modules.
50192
50193 2006-10-12  Jim Meyering  <jim@meyering.net>
50194
50195         Big performance improvement for fts-based tools that use FTS_NOSTAT.
50196         Avoid spurious inode-mismatch problems on non-POSIX file systems.
50197         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
50198         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
50199         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
50200         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
50201         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
50202         (fts_set_stat_required): New function.
50203         (fts_open): Defer the calls to fts_stat, if possible or requested.
50204         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
50205         into fts_stat itself.
50206         (fts_read): Perform any required (deferred) fts_stat call.
50207         (fts_build): Likewise, for the directory we're about to open and read.
50208         In the readdir loop, carefully decide whether each entry will require
50209         an eventual call to fts_stat, using dirent.d_type info if available.
50210         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
50211         a command line argument into this function.  Update all callers.
50212         Map a return value of FTS_DOT to FTS_D for a command line argument.
50213         * modules/fts (Depends-on): Add d-type.  Alphabetize.
50214         Thanks to Miklos Szeredi for his tenacity and for the initial
50215         bug report about "find" failing on a FUSE-based file system.
50216
50217         * lib/fts.c (fts_open): Use consistent indentation.
50218
50219 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
50220
50221         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
50222         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
50223         reported by Jim Meyering.  All uses of cache variables renamed
50224         to match Autoconf's.
50225         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
50226         the other one.
50227
50228         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
50229         Fix misspelling in diagnostic.
50230
50231 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50232
50233         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
50234         defined.  Problem reported by Matthew Woehlke.
50235
50236         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
50237         Add support for Tandem NonStop R series.
50238         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
50239         Use new macro.
50240
50241         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
50242         (has_trailing_slash): Omit size arg; all callers changed.
50243         Omit 'inline', since it doesn't help performance and we'd
50244         need to configure it.
50245         Don't count //, ///, etc. as having a trailing slash.
50246         As a side effect, this removes a C99ism reported by Matthew Woehlke.
50247         (rpl_rename_dest_slash): On failure, use rename's errno rather
50248         than (in some cases) an incorrect or junk errno.
50249         Simplify code by removing need to compute length; this does
50250         cause it to make two passes instead of one over the file name,
50251         but it's worth it.
50252
50253         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
50254         change, since Autoconf's version may no longer be appropriate now
50255         that we are using CVS Autoconf's version.  Add support for Tandem.
50256
50257 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
50258             Bruno Haible  <bruno@clisp.org>
50259
50260         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
50261         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
50262         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
50263         gl_AC_TYPE_LONG_LONG.
50264
50265         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
50266         instead of HAVE_LONG_LONG.
50267         * lib/printf-args.c (printf_fetchargs): Likewise.
50268         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
50269         * lib/vasnprintf.c (VASNPRINTF): Likewise.
50270         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
50271         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
50272         gl_AC_TYPE_LONG_LONG.
50273
50274 2006-10-11  Bruno Haible  <bruno@clisp.org>
50275
50276         * m4/longlong.m4: Add comments.
50277         * m4/ulonglong.m4: Likewise.
50278
50279 2006-10-10  Bruno Haible  <bruno@clisp.org>
50280
50281         Make it possible to #define stpcpy, strdup to aliases.
50282         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
50283         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
50284
50285 2006-10-10  Bruno Haible  <bruno@clisp.org>
50286
50287         Make it possible to #define gcd to an alias.
50288         * lib/gcd.c: Include config.h.
50289
50290 2006-10-10  Bruno Haible  <bruno@clisp.org>
50291
50292         Make it possible to #define c_isascii to an alias.
50293         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
50294         defined. Undefine the macros before defining them, to avoid gcc
50295         warnings.
50296         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
50297         define NO_C_CTYPE_MACROS early.
50298
50299 2006-10-10  Bruno Haible  <bruno@clisp.org>
50300
50301         Make it possible to #define set_program_name to an alias.
50302         * lib/progname.c: Don't undefine set_program_name; instead, undefine
50303         ENABLE_RELOCATABLE early.
50304
50305 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
50306
50307         Port to Tandem NSK OSS, which has 64-bit signed int but at most
50308         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
50309         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
50310         More generally, don't assume that 64-bit signed int is available
50311         if unsigned int is, and vice versa.
50312         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
50313         unsigned symbols, not on their signed counterparts.
50314         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
50315         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
50316         (UINT64_C, UINTMAX_C):
50317         Likewise.
50318         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
50319         unsigned counterparts.
50320         (Have_long_long, Unsigned): New macros.
50321         (Int): Renamed from INT.
50322         (strtoimax): Use the new macros.
50323         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
50324         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
50325         * modules/inttypes (inttypes.h): Substitute
50326         HAVE_UNSIGNED_LONG_LONG_INT.
50327         * modules/stdint (stdint.h): Likewise.
50328         (Files): Add m4/ulonglong.m4.
50329
50330 2006-10-10  Bruno Haible  <bruno@clisp.org>
50331
50332         Fix a gcc -Wshadow warning.
50333         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
50334         to 'bucket'.
50335         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
50336         gl_linked_indexof_from_to): Likewise.
50337         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
50338         Likewise.
50339         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
50340         Likewise.
50341         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
50342         Reported by Eric Blake.
50343
50344 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
50345
50346         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
50347         for NetBSD.  Problem reported by Bruno Haible.
50348
50349 2006-10-09  Jim Meyering  <jim@meyering.net>
50350
50351         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
50352         Patch from Bruno Haible.
50353
50354 2006-10-09  Jim Meyering  <jim@meyering.net>
50355
50356         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
50357         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
50358         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
50359
50360 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
50361
50362         Don't include <config.h> twice; this doesn't work in some cases,
50363         e.g., when config.h has "#define intmax_t long long int" and
50364         we include <config.h>, <inttypes.h>, <config.h> in that order.
50365         Problem reported by Matthew Woehlke in:
50366         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
50367         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
50368         * lib/fts-cycle.c: Don't include config.h.
50369         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
50370         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
50371         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
50372         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
50373         inttypes.h.
50374         * lib/xstrtoumax.c: Likewise.
50375         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
50376         __strtol and the like, so that this module is more like its siblings.
50377         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
50378         Remove; no longer needed now that we assume gnulib inttypes.h.
50379
50380 2006-10-08  Bruno Haible  <bruno@clisp.org>
50381
50382         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
50383         option.
50384
50385 2006-10-07  Jim Meyering  <jim@meyering.net>
50386
50387         * modules/inttypes (inttypes.h): Revert what seems to have been
50388         an inadvertent part of today's change: use "|", not "/" in the
50389         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
50390
50391 2006-10-07  Bruno Haible  <bruno@clisp.org>
50392
50393         * modules/sublist: New file.
50394
50395 2006-10-07  Bruno Haible  <bruno@clisp.org>
50396
50397         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
50398         * modules/argz (argz.h): Likewise.
50399         * modules/arpa_inet (arpa/inet.h): Likewise.
50400         * modules/byteswap (byteswap.h): Likewise.
50401         * modules/configmake (configmake.h): Likewise.
50402         * modules/fcntl (fcntl.h): Likewise.
50403         * modules/fnmatch (fnmatch.h): Likewise.
50404         * modules/getopt (getopt.h): Likewise.
50405         * modules/glob (glob.h): Likewise.
50406         * modules/inttypes (inttypes.h): Likewise.
50407         * modules/netinet_in (netinet/in.h): Likewise.
50408         * modules/poll (poll.h): Likewise.
50409         * modules/stdbool (stdbool.h): Likewise.
50410         * modules/stdint (stdint.h): Likewise.
50411         * modules/sys_select (sys/select.h): Likewise.
50412         * modules/sys_socket (sys/socket.h): Likewise.
50413         * modules/sys_stat (sys/stat.h): Likewise.
50414         * modules/sysexits (sysexits.h): Likewise.
50415         * modules/unistd (unistd.h): Likewise.
50416         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50417         Add a "DO NOT EDIT" comment to the generated file.
50418         (func_import): Likewise for gnulib-comp.m4.
50419
50420 2006-10-07  Bruno Haible  <bruno@clisp.org>
50421
50422         * lib/gl_sublist.h: New file.
50423         * lib/gl_sublist.c: New file.
50424
50425 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
50426
50427         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
50428         name (relative to the original working directory) and the file
50429         name component (relative to the temporary working directory).  All
50430         callers changed.
50431         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
50432         * lib/mkdir-p.c (make_dir_parents): Likewise.
50433         * lib/mkdir-p.h (make_dir_parents): Likewise.
50434
50435 2006-10-06  Eric Blake  <ebb9@byu.net>
50436
50437         Define several macros for use by the clean-temp module.
50438         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
50439         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
50440         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
50441
50442         * lib/clean-temp.h (close_stream_temp): New declaration.
50443         * lib/clean-temp.c (includes): Pull in headers according to what
50444         other modules are in use.
50445         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
50446
50447 2006-10-06  Bruno Haible  <bruno@clisp.org>
50448
50449         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
50450         instead of fopen, fwriteerror.
50451
50452 2006-10-06  Bruno Haible  <bruno@clisp.org>
50453
50454         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
50455         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
50456         int.
50457         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
50458         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
50459         Return an error indicator.
50460         Suggested by Eric Blake.
50461
50462 2006-10-06  Bruno Haible  <bruno@clisp.org>
50463
50464         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
50465         Reported by Eric Blake.
50466
50467 2006-10-06  Bruno Haible  <bruno@clisp.org>
50468
50469         * modules/closeout (Description): Mention stderr too.
50470
50471 2006-10-06  Bruno Haible  <bruno@clisp.org>
50472         and Paul Eggert  <eggert@cs.ucla.edu>
50473
50474         * lib/closeout.c (close_stdout): Also close stderr.
50475         * lib/closeout.h: Update comment.
50476
50477 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
50478
50479         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
50480         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
50481         * lib/dirchownmod.c: Include lchown.h.
50482         * lib/lchown.c: Don't include files that lchown.h now includes.
50483         Don't declare chown, since lchown.h now does that.
50484         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
50485         (lchown): Define to rpl_chown if lchown is declared but
50486         does not exist.  Declare using a prototype if lchown is not
50487         declared.  Add a copyright notice.
50488         * lib/mkstemp.h: Include <unistd.h>.
50489         * lib/openat.c: Include lchown.h.
50490
50491         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
50492         we now test for that separately.
50493         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
50494         rather than O_NOFOLLOW, when testing whether it's possible to
50495         avoid a race condition reliably.
50496         * lib/savewd.c (savewd_chdir): Likewise.
50497
50498         Remove macros that are no longer needed now that stdint.h is
50499         reliable.
50500         * lib/fsusage.c (UINTMAX_MAX): Remove.
50501         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
50502         * lib/utimecmp.c (SIZE_MAX): Remove.
50503
50504         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
50505
50506         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
50507         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
50508         O_NOATIME works.
50509
50510 2006-10-05  Bruno Haible  <bruno@clisp.org>
50511
50512         * lib/gl_list.h (gl_sortedlist_search_from_to,
50513         gl_sortedlist_indexof_from_to): New declarations.
50514         (gl_list_implementation): New fields sortedlist_search_from_to,
50515         sortedlist_indexof_from_to.
50516         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
50517         inline functions.
50518         * lib/gl_list.c (gl_sortedlist_search_from_to,
50519         gl_sortedlist_indexof_from_to): New functions.
50520         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
50521         function.
50522         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
50523         (gl_array_sortedlist_search_from_to): New function.
50524         (gl_array_list_implementation): Update.
50525         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
50526         function.
50527         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
50528         (gl_carray_sortedlist_search_from_to): New function.
50529         (gl_carray_list_implementation): Update.
50530         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
50531         gl_linked_sortedlist_indexof_from_to): New functions.
50532         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50533         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50534         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
50535         gl_tree_sortedlist_indexof_from_to): New functions.
50536         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50537         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50538         Update.
50539         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50540         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
50541         Update.
50542
50543 2006-10-05  Bruno Haible  <bruno@clisp.org>
50544
50545         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
50546         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
50547         (struct gl_list_implementation): Add fields search_from_to,
50548         indexof_from_to. Remove fields search, indexof.
50549         (gl_list_search): Use the search_from_to method.
50550         (gl_list_search_from, gl_list_search_from_to): New functions.
50551         (gl_list_indexof): Use the indexof_from_to method.
50552         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
50553         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
50554         (gl_list_search_from, gl_list_search_from_to): New functions.
50555         (gl_list_indexof): Use the indexof_from_to method.
50556         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
50557         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
50558         gl_array_indexof. Add start_index, end_index arguments.
50559         (gl_array_search_from_to): Renamed from gl_array_search. Add
50560         start_index, end_index arguments.
50561         (gl_array_remove, gl_array_list_implementation): Update.
50562         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
50563         gl_carray_indexof. Add start_index, end_index arguments.
50564         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
50565         start_index, end_index arguments.
50566         (gl_carray_remove, gl_carray_list_implementation): Update.
50567         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
50568         gl_linked_search. Add start_index, end_index arguments.
50569         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
50570         start_index, end_index arguments.
50571         (gl_linked_remove): Update.
50572         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
50573         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
50574         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
50575         field to 'size_t'.
50576         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
50577         gl_tree_search. Add start_index, end_index arguments.
50578         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
50579         start_index, end_index arguments.
50580         (gl_tree_remove): Update.
50581         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
50582         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
50583         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
50584         function.
50585         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
50586         gl_tree_search. Add start_index, end_index arguments.
50587         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
50588         start_index, end_index arguments.
50589         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
50590         Update.
50591         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
50592
50593 2006-10-05  Bruno Haible  <bruno@clisp.org>
50594
50595         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
50596
50597         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
50598         fwriteerror_temp): New declarations.
50599         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
50600         (descriptors): New variable.
50601         (cleanup): First, close the descriptors.
50602         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
50603         fclose_temp, fwriteerror_temp): New functions.
50604
50605 2006-10-04  Jim Meyering  <jim@meyering.net>
50606
50607         * lib/fts.c (fts_open): Tiny comment change.
50608
50609 2006-10-04  Bruno Haible  <bruno@clisp.org>
50610
50611         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
50612         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
50613         gl_LOCK_BODY.
50614         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
50615         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
50616         gl_LOCK_EARLY_BODY.
50617         (gl_LOCK): Require gl_LOCK_BODY.
50618
50619 2006-10-04  Bruno Haible  <bruno@clisp.org>
50620
50621         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
50622         (gl_oset_search_atleast): New declaration.
50623         (struct gl_oset_implementation): Add field 'search_atleast'.
50624         (gl_oset_search_atleast): New inline function.
50625         * lib/gl_oset.c (gl_oset_search_atleast): New function.
50626         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
50627         (gl_array_oset_implementation): Update.
50628         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
50629         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
50630         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
50631
50632 2006-10-04  Bruno Haible  <bruno@clisp.org>
50633
50634         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
50635
50636 2006-10-03  Bruno Haible  <bruno@clisp.org>
50637
50638         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
50639         from gl_avltreehash_list_implementation.
50640
50641 2006-10-03  Bruno Haible  <bruno@clisp.org>
50642
50643         * lib/gl_oset.c (gl_oset_add): Fix return type.
50644
50645 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
50646
50647         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
50648
50649 2006-10-02  Eric Blake  <ebb9@byu.net>
50650
50651         * modules/strnlen (Depends-on): Add extensions.
50652
50653 2006-10-02  Eric Blake  <ebb9@byu.net>
50654
50655         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
50656         definition in 2.60+.
50657
50658 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
50659
50660         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
50661         checks.
50662
50663 2006-10-02  Bruno Haible  <bruno@clisp.org>
50664
50665         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
50666         to the AUTOMAKE_OPTIONS.
50667         Reported by Jim Meyering.
50668
50669 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
50670
50671         Work around bug in Solaris 10 /proc file system:
50672         /proc/self/fd/NNN/.. isn't the parent directory of
50673         the directory whose file descriptor is NNN.  This needs to
50674         be worked around at run time, not compile time, since a
50675         program might be built on Solaris 8, where things work, and
50676         run on Solaris 10.
50677         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
50678         to use the following interface instead:
50679         (OPENAT_BUFFER_SIZE): New macro.
50680         (openat_proc_name): New function.
50681         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
50682         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
50683         Likewise.
50684         * lib/openat-proc.c: New file.
50685         * modules/openat (Files): Add lib/openat-proc.c.
50686         (Depends-on): Add same-inode, stdbool.
50687         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
50688
50689 2006-09-29  Bruno Haible  <bruno@clisp.org>
50690
50691         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
50692         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
50693         argument. Set stdout_closed before testing for ferror, not after.
50694         (fwriteerror, fwriteerror_no_ebadf): New functions.
50695
50696 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50697
50698         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
50699
50700 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
50701
50702         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
50703         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
50704
50705 2006-09-28  Jim Meyering  <jim@meyering.net>
50706
50707         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
50708         Include <unistd.h>.
50709
50710 2006-09-28  Bruno Haible  <bruno@clisp.org>
50711
50712         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
50713         * modules/linkedhash-list (Depends-on): Likewise.
50714         * modules/rbtreehash-list (Depends-on): Likewise.
50715
50716 2006-09-28  Bruno Haible  <bruno@clisp.org>
50717
50718         * lib/strndup.h: Simplify the redefinition of strndup.
50719         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
50720         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
50721
50722 2006-09-28  Bruno Haible  <bruno@clisp.org>
50723
50724         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
50725         * lib/gl_linkedhash_list.c: Likewise.
50726         * lib/gl_rbtreehash_list.c: Likewise.
50727
50728 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
50729
50730         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
50731         getaddrinfo.
50732
50733         * lib/__fpending.h: Don't include <stdio_ext.h> unless
50734         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
50735         it causes <stdio_ext.h> to cause a compile-time error.
50736         Problem reported by Nelson H. F. Beebe.
50737         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
50738         of HAVE_DECL___PENDING.
50739
50740         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
50741         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
50742         declaration.
50743
50744 2006-09-27  Jim Meyering  <jim@meyering.net>
50745
50746         This file could end up with a definition for a function
50747         named __strndup, rather than rpl_strndup on a system with
50748         incomplete weak_alias support.
50749         * lib/strndup.c (strndup): Rename from __strndup.
50750         Remove #defines that used to map __strndup to strndup.
50751         Don't use K&R prototypes.
50752         Remove LIBC-related code, since this file is not sync'd with glibc.
50753         * lib/strndup.h: Revamp, accordingly.
50754         * m4/strndup.m4: Modernize.
50755
50756 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
50757
50758         * modules/savewd (Depends-on): Add 'raise'.
50759         * lib/savewd.c: Include <signal.h>, for 'raise'.
50760
50761 2006-09-26  Jim Meyering  <jim@meyering.net>
50762
50763         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
50764         when we detect Darwin 8.7.0's acl_get_file bug.
50765         Rearrange to perform the new (below) run-test while $LIBS
50766         contains any acl-related library.  Set USE_ACL at the end.
50767         (gl_ACL_GET_FILE): New function.
50768
50769 2006-09-26  Eric Blake  <ebb9@byu.net>
50770
50771         * lib/verror.c: Include <config.h> unconditionally.
50772
50773 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
50774
50775         * modules/clock-time (Maintainer): Add self.
50776         * modules/getlogin_r (Depends-on): Add extensions.
50777
50778 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50779
50780         * modules/clock-time: New module.
50781         * modules/nanosleep (Depends-on): Add clock-time.
50782         * modules/gethrxtime (Depends-on): Likewise.
50783         * modules/gettime (Depends-on): Likewise.
50784         * modules/settime (Depends-on): Likewise.
50785
50786         * modules/fts-lgpl: Depend on openat.
50787         * modules/mkancesdirs: Depend on savewd.
50788         * modules/mkdir-p: Likewise.
50789
50790 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50791
50792         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
50793
50794         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
50795         `gl_have_arbitrary_file_name_length_limit' to
50796         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
50797         actually works between configure runs.
50798
50799 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50800             Bruno Haible  <bruno@clisp.org>
50801
50802         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
50803
50804 2006-09-25  Jim Meyering  <jim@meyering.net>
50805
50806         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
50807         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
50808
50809 2006-09-25  Eric Blake  <ebb9@byu.net>
50810
50811         * gnulib-tool (func_import, func_create_testdir): Fix typos in
50812         exec's in 2006-09-18 patch when shuffling fds.
50813
50814 2006-09-25  Bruno Haible  <bruno@clisp.org>
50815
50816         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
50817         Reported by Jim Meyering.
50818
50819 2006-09-24  Jim Meyering  <jim@meyering.net>
50820
50821         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
50822         compare a pointer against a literal "0".  That caused failures with
50823         at least HP-UX's hpcc.
50824
50825 2006-09-22  Simon Josefsson  <jas@extundo.com>
50826
50827         * modules/gc-sha1:
50828         * modules/gc-md4:
50829         * modules/gc-hmac-sha1:
50830         * modules/gc-hmac-md5:
50831         * modules/gc-des:
50832         * modules/gc-arcfour: Distribute more files.
50833
50834 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50835
50836         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
50837         (gl_linked_iterator_from_to): Initialize struct completely.
50838         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
50839         (gl_tree_iterator_from_to): Likewise
50840         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
50841         * lib/gl_array_list.c [lint] (gl_array_iterator)
50842         (gl_array_iterator_from_to): Likewise.
50843         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
50844         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
50845         (gl_carray_iterator_from_to): Likewise.
50846
50847         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
50848         * lib/md4.c (md4_process_block): Remove unused variable.
50849         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
50850         parentheses for clarity.
50851
50852 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50853
50854         * modules/bison-i18n (Depends-on): Add gettext.
50855
50856 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50857
50858         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
50859         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
50860         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
50861         also add missing comma that caused broken test.
50862         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
50863         stdlib.h, for `abort'.
50864         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
50865         variables.
50866         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
50867         include unistd.h if present, for `rmdir'.
50868         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
50869         variables.
50870         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
50871         in the process include standard headers for prototypes.
50872         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
50873         gets declared on GNU/Linux.
50874         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
50875         unistd.h, for `rmdir'.
50876         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
50877
50878         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
50879         always true.
50880         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
50881
50882         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
50883
50884 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50885
50886         * gnulib-tool (func_version): Create output all at once.  This
50887         may help avoid triggering unnecessary SIGPIPEs, and at any
50888         rate it doesn't hurt.
50889
50890 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50891             Bruno Haible  <bruno@clisp.org>
50892
50893         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
50894         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50895         * m4/signed.m4 (bh_C_SIGNED): Likewise.
50896
50897         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
50898         (gl_FUNC_VASPRINTF): Invoke it.
50899
50900 2006-09-22  Bruno Haible  <bruno@clisp.org>
50901
50902         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
50903         getloadavg.c as first argument.
50904
50905 2006-09-22  Bruno Haible  <bruno@clisp.org>
50906
50907         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
50908         at the beginning of the gl_INIT macro.
50909         * modules/getloadavg (configure.ac): Pass $gl_source_base to
50910         gl_GETLOADAVG.
50911
50912 2006-09-22  Bruno Haible  <bruno@clisp.org>
50913
50914         * gnulib-tool (func_create_megatestdir): Don't include the config-h
50915         module.
50916         Suggested by Ralf Wildenhues.
50917
50918 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
50919
50920         Import this patch from libc:
50921
50922         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
50923
50924         * lib/regex_internal.c (re_string_reconstruct): Handle
50925         offset < pstr->valid_raw_len && pstr->offsets_needed case.
50926         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
50927         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
50928         re_string_context_at.
50929
50930         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
50931         now requires it.
50932         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
50933         gl_REGEX now does it for us.
50934         (gl_REGEX): Add test taken from
50935         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
50936
50937         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
50938         Check that large offsets work.  Modernize Autoconf usages.
50939         Prefer "yes" to mean a good thing rather than a bad.
50940         Don't put "#define mkstemp" in config.h, as this might interfere
50941         with standard system headers that "#define mkstemp mkstemp64".
50942
50943         * modules/mkstemp (Depends-on): Add extensions, so that
50944         mkstemp is visible on some platforms.
50945         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
50946         (Include): Change to "mkstemp.h" from <stdlib.h>.
50947         (Files): Add mkstemp.h.
50948
50949         * lib/mkstemp.h: New file, since some standard headers
50950         #define mkstemp.
50951         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
50952         Include "mkstemp.h".
50953         Make the _LIBC code resemble glibc original more,
50954         e.g., use K&R style.
50955         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
50956         (mkstemp): Remove, since mkstemp.h does this for us.
50957         * lib/stdlib--.h: Include mkstemp.h.
50958
50959         Import this patch from libc:
50960
50961         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
50962
50963         * lib/tempname.c (__gen_tempname): Change attempts_min
50964         into a macro.  Use preprocessor to decide how to initialize
50965         attempts [Coverity CID 67].
50966
50967 2006-09-20  Bruno Haible  <bruno@clisp.org>
50968
50969         * lib/mkdtemp.c: Import from libc.
50970         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
50971                 * sysdeps/posix/tempname.c (__gen_tempname): Change
50972                 attempts_min into a macro.  Use preprocessor to decide how to
50973                 initialize attempts [Coverity CID 67].
50974         2001-11-27  Paul Eggert  <eggert@twinsun.com>
50975                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
50976                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
50977
50978 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50979
50980         * gnulib-tool (func_exit): New function, to allow to pass the
50981         exit status portably through the trap.  Use everywhere.
50982         (--help, --version): Signal a write error.
50983         (trap): catch SIGPIPE, for write errors.
50984         Exit at the end of the trap, with the correct exit status.
50985
50986 2006-09-19  Karl Berry  <karl@gnu.org>
50987
50988         * doc/gnulib.texi: note about the license texinfo files.
50989
50990 2006-09-19  Eric Blake  <ebb9@byu.net>
50991
50992         * gnulib-tool: Avoid space-tab.
50993
50994 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
50995
50996         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
50997         that prevented coreutils 6.1 from building.  Problem reported
50998         by Petter Reinholdtsen.
50999
51000 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
51001
51002         * gnulib-tool (avoidlist): Fix typo that broke options like
51003         --avoid=lock that are used by coreutils bootstrap.
51004
51005 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
51006
51007         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
51008         more systematically.
51009
51010 2006-09-18  Jim Meyering  <jim@meyering.net>
51011
51012         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
51013
51014 2006-09-18  Bruno Haible  <bruno@clisp.org>
51015
51016         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
51017
51018 2006-09-18  Bruno Haible  <bruno@clisp.org>
51019
51020         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
51021         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
51022         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
51023         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
51024         * m4/gettext.m4: Require autoconf >= 2.52.
51025         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
51026         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
51027         of gl_cv_header_inttypes_h.
51028
51029 2006-09-18  Bruno Haible  <bruno@clisp.org>
51030
51031         * lib/javaversion.c: Include configmake.h.
51032
51033 2006-09-18  Bruno Haible  <bruno@clisp.org>
51034
51035         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
51036         avoid that the while loops be executed in a subshell.
51037
51038 2006-09-18  Bruno Haible  <bruno@clisp.org>
51039
51040         * MODULES.html.sh (func_module): Break long lines.
51041         Suggested by Bruce Korb <bkorb@gnu.org>.
51042
51043 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51044
51045         Speed up by a factor of 1.12.
51046         * gnulib-tool (nl): New variable.
51047         (func_import): Rewrite include directive extraction to only read each
51048         directive once.
51049
51050 2006-09-17  Bruno Haible  <bruno@clisp.org>
51051
51052         * modules/javaversion (Makefile.am): Remove DEFS setting.
51053         (Depends-on): Add configmake, for PKGDATADIR definition.
51054
51055 2006-09-17  Bruno Haible  <bruno@clisp.org>
51056
51057         * gnulib-tool (func_create_testdir): Rewrite all files at once.
51058
51059 2006-09-17  Bruno Haible  <bruno@clisp.org>
51060
51061         * gnulib-tool (func_append): New function, stolen from libtool.m4.
51062         (func_modules_transitive_closure, func_modules_add_dummy,
51063         func_modules_to_filelist, func_import, func_create_testdir,
51064         func_create_megatestdir, ...): Use it wherever possible.
51065         Suggested by Ralf Wildenhues.
51066
51067 2006-09-16  Karl Berry  <karl@gnu.org>
51068
51069         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
51070         to avoid sectioning errors.
51071         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
51072         [ifinfo]: blank line after @center-ed titles.
51073         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
51074         Spell FSF address consistently with others.
51075         (These changes approved by rms.)
51076
51077 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51078
51079         Speed up by a factor of 1.61.
51080         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
51081         already checked module names again.
51082
51083 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51084
51085         Speed up by a factor of 1.13.
51086         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
51087         for new_files, and the input to func_add_or_update.
51088
51089 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51090
51091         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
51092         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
51093
51094 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51095
51096         * modules/mkancesdirs (Depends-on): Add fcntl.
51097         * modules/savewd: New file.
51098         * MODULES.html.sh (File system functions): Add savewd.
51099
51100         * modules/configmake (Makefile.am): Add support for the
51101         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
51102
51103 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51104
51105         * m4/savewd.m4: New file.
51106
51107 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
51108
51109         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
51110         (dirchownmod): New arg FD.  All callers changed.
51111         Use FD rather than opening the directory ourself, as opening is
51112         now the caller's responsibility.
51113         * lib/dirchownmod.h: Likewise.
51114         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
51115         hosts that require <sys/types.h> before <sys/stat.h>.  Include
51116         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
51117         (test_dir): Remove.
51118         (mkancesdirs): Return length of prefix of FILE that has already
51119         been made, or -2 if there is a child doing the work.  Redo
51120         algorithm so that it is O(N) rather than O(N**2).  Optimize away
51121         ".", and treat ".." specially since it might stray back into
51122         already-created areas.  Use a subprocess if necessary.  New arg
51123         WD; all users changed.  MAKE_DIR function should now return 1
51124         if it creates a directory that is not readable.  Return -2 if
51125         a child process is spun off.
51126         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
51127         Adjust signature to match code.
51128         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
51129         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
51130         all users changed.
51131         * lib/savewd.c, lib/savewd.h: New files.
51132
51133 2006-09-15  Jim Meyering  <jim@meyering.net>
51134
51135         * modules/rename-dest-slash: New module.
51136         * MODULES.html.sh (posix_compat): Add it here.
51137
51138         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
51139
51140 2006-09-15  Jim Meyering  <jim@meyering.net>
51141
51142         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
51143         file.
51144
51145         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
51146
51147 2006-09-15  Jim Meyering  <jim@meyering.net>
51148
51149         * lib/rename-dest-slash.c (has_trailing_slash): Use
51150         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
51151         (rpl_rename_dest_slash): Perform the cheaper trailing slash
51152         test before testing whether SRC is a directory.
51153         Suggestions from Bruno Haible.
51154
51155         Avoid a warning about an unused variable.
51156         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
51157         into the #ifdef block where it's used.
51158
51159         * lib/rename-dest-slash.c: New file.
51160
51161 2006-09-14  Bruno Haible  <bruno@clisp.org>
51162
51163         * lib/allocsa.c: Include <config.h> unconditionally.
51164         * lib/asnprintf.c: Likewise.
51165         * lib/asprintf.c: Likewise.
51166         * lib/c-strcasecmp.c: Likewise.
51167         * lib/c-strcasestr.c: Likewise.
51168         * lib/c-strncasecmp.c: Likewise.
51169         * lib/c-strstr.c: Likewise.
51170         * lib/classpath.c: Likewise.
51171         * lib/clean-temp.c: Likewise.
51172         * lib/concatpath.c: Likewise.
51173         * lib/copy-file.c: Likewise.
51174         * lib/csharpcomp.c: Likewise.
51175         * lib/csharpexec.c: Likewise.
51176         * lib/execute.c: Likewise.
51177         * lib/fatal-signal.c: Likewise.
51178         * lib/findprog.c: Likewise.
51179         * lib/fwriteerror.c: Likewise.
51180         * lib/gl_array_list.c: Likewise.
51181         * lib/gl_array_oset.c: Likewise.
51182         * lib/gl_avltree_list.c: Likewise.
51183         * lib/gl_avltree_oset.c: Likewise.
51184         * lib/gl_avltreehash_list.c: Likewise.
51185         * lib/gl_carray_list.c: Likewise.
51186         * lib/gl_linked_list.c: Likewise.
51187         * lib/gl_linkedhash_list.c: Likewise.
51188         * lib/gl_list.c: Likewise.
51189         * lib/gl_oset.c: Likewise.
51190         * lib/gl_rbtree_list.c: Likewise.
51191         * lib/gl_rbtree_oset.c: Likewise.
51192         * lib/gl_rbtreehash_list.c: Likewise.
51193         * lib/imaxabs.c: Likewise.
51194         * lib/imaxdiv.c: Likewise.
51195         * lib/javacomp.c: Likewise.
51196         * lib/javaexec.c: Likewise.
51197         * lib/javaversion.c: Likewise.
51198         * lib/linebreak.c: Likewise.
51199         * lib/localcharset.c: Likewise.
51200         * lib/lock.c: Likewise.
51201         * lib/mbchar.c: Likewise.
51202         * lib/mbswidth.c: Likewise.
51203         * lib/mkdtemp.c: Likewise.
51204         * lib/pipe.c: Likewise.
51205         * lib/printf-args.c: Likewise.
51206         * lib/printf-parse.c: Likewise.
51207         * lib/progname.c: Likewise.
51208         * lib/progreloc.c: Likewise.
51209         * lib/readlink.c: Likewise.
51210         * lib/sh-quote.c: Likewise.
51211         * lib/stpcpy.c: Likewise.
51212         * lib/stpncpy.c: Likewise.
51213         * lib/strcasecmp.c: Likewise.
51214         * lib/strcasestr.c: Likewise.
51215         * lib/strcspn.c: Likewise.
51216         * lib/striconv.c: Likewise.
51217         * lib/strncasecmp.c: Likewise.
51218         * lib/strnlen1.c: Likewise.
51219         * lib/strstr.c: Likewise.
51220         * lib/strtok_r.c: Likewise.
51221         * lib/tls.c: Likewise.
51222         * lib/tmpdir.c: Likewise.
51223         * lib/unicodeio.c: Likewise.
51224         * lib/unsetenv.c: Likewise.
51225         * lib/vasnprintf.c: Likewise.
51226         * lib/vasprintf.c: Likewise.
51227         * lib/wait-process.c: Likewise.
51228         * lib/xallocsa.c: Likewise.
51229         * lib/xsetenv.c: Likewise.
51230         * lib/xstriconv.c: Likewise.
51231
51232 2006-09-13  Simon Josefsson  <jas@extundo.com>
51233
51234         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
51235         that internally, suggested by Ralf Wildenhues
51236         <Ralf.Wildenhues@gmx.de>.
51237
51238 2006-09-13  Simon Josefsson  <jas@extundo.com>
51239
51240         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
51241         @LIBOBJS@.
51242         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51243
51244 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
51245
51246         * lib/_fpending.c: Include <config.h> unconditionally, since we no
51247         longer worry about uses that don't define HAVE_CONFIG_H.
51248         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
51249         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
51250         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
51251         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
51252         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
51253         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
51254         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
51255         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
51256         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
51257         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
51258         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
51259         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
51260         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
51261         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
51262         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
51263         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
51264         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
51265         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
51266         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
51267         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
51268         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
51269         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
51270         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
51271         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
51272         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
51273         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
51274         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
51275         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
51276         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
51277         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
51278         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
51279         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
51280         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
51281         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
51282         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
51283         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
51284         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
51285         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
51286         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
51287         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
51288         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
51289         Likewise.
51290
51291 2006-09-13  Eric Blake  <ebb9@byu.net>
51292
51293         * lib/getopt.c: Fix typo in last commit.
51294
51295 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
51296
51297         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
51298         dgettext.
51299
51300 2006-09-12  Jim Meyering  <jim@meyering.net>
51301
51302         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
51303         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
51304         Reported by Nelson H. F. Beebe.
51305
51306 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
51307
51308         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
51309         program_invocation_name and program_invocation_short_name are
51310         initialized.
51311         * lib/argp-namefrob.h: Move declarations of program_invocation_name
51312         and program_invocation_short_name to argp.h, so they are visible
51313         to user programs.
51314         * lib/argp.h: Likewise
51315
51316 2006-09-10  Bruno Haible  <bruno@clisp.org>
51317
51318         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
51319         m4/inttypes_h.m4, m4/uintmax_t.m4.
51320
51321 2006-09-10  Bruno Haible  <bruno@clisp.org>
51322
51323         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
51324         gl_AC_TYPE_UINTMAX_T.
51325
51326 2006-09-10  Bruno Haible  <bruno@clisp.org>
51327
51328         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
51329
51330 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
51331
51332         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
51333         convention.  Text proposed by Bruno Haible.
51334         (struct argp_option): Document the use of N_() wrappers.
51335
51336         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
51337         '\v', and translate the two parts separately, instead of feeding
51338         the whole string to gettext.  This allows to exclude
51339         '\v' from the strings visible to the translator by writing doc
51340         strings as N_("..") "\v" N_("..").
51341
51342 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
51343
51344         * config/srclist.txt: Undo latest change; the bug was fixed.
51345
51346 2006-09-09  Bruno Haible  <bruno@clisp.org>
51347
51348         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
51349         assignments if building a library without libtool.
51350         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
51351         in func_emit_lib_Makefile_am.
51352         (func_import): When building a static library libfoo.a, arrange to
51353         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
51354         (func_create_testdir): Likewise.
51355         * modules/gc (configure.ac, Makefile.am): If building statically,
51356         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
51357         * modules/iconvme (configure.ac, Makefile.am): Likewise.
51358         * modules/striconv (configure.ac, Makefile.am): Likewise.
51359         Based on a suggestion by Ralf Wildenhues.
51360
51361 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51362
51363         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
51364         Check for unistd.h too, since Autoconf doesn't assume POSIX.
51365         Also:
51366
51367         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51368         Add year_2050_test to catch glibc bug 2821
51369         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
51370
51371         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
51372         Prefer #ifdef to #if.
51373
51374         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
51375         Return from 'main' instead of calling 'exit'.
51376
51377 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51378
51379         * lib/mktime.c (guess_time_tm): Fix bug where mktime
51380         returned the maximum time_t value rather than (time_t) -1.
51381         Problem originally reported by William Bardwell
51382         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
51383
51384         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
51385         Moved to here ...
51386         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
51387         ... from here.
51388
51389 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
51390
51391         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
51392         2821 is fixed.
51393
51394 2006-09-08  Jim Meyering  <jim@meyering.net>
51395
51396         Don't make generated files read-only.  That would bother too many
51397         people.  However, do retain the ability to work when targets are
51398         read-only: remove the destination and temporary files before writing
51399         them (when generated via sed or echo), or by using the -f option for
51400         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
51401         * modules/alloca-opt, modules/argz, modules/arpa_inet:
51402         * modules/byteswap, modules/configmake, modules/fcntl:
51403         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
51404         * modules/localcharset, modules/netinet_in, modules/poll:
51405         * modules/stdbool, modules/stdint, modules/sys_select:
51406         * modules/sys_socket, modules/sys_stat, modules/sysexits:
51407
51408 2006-09-08  Jim Meyering  <jim@meyering.net>
51409
51410         Avoid new build failure on FreeBSD 6.0.
51411         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
51412         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
51413         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
51414
51415 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51416
51417         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
51418
51419 2006-09-07  Jim Meyering  <jim@meyering.net>
51420
51421         Fix global typo in last change: use chmod u-w, not chmod u-x.
51422         Spotted by Paul Eggert and Bruce Korb.
51423         * modules/alloca-opt, modules/argz, modules/arpa_inet:
51424         * modules/byteswap, modules/configmake, modules/fcntl:
51425         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
51426         * modules/localcharset, modules/netinet_in, modules/poll:
51427         * modules/stdbool, modules/stdint, modules/sys_select:
51428         * modules/sys_socket, modules/sys_stat, modules/sysexits:
51429
51430 2006-09-06  Jim Meyering  <jim@meyering.net>
51431
51432         Make generated files be read-only.
51433         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
51434         Ensure that each generated file is now read-only.
51435         * modules/argz: Likewise.
51436         * modules/arpa_inet: Likewise.
51437         * modules/byteswap: Likewise.
51438         * modules/configmake: Likewise.
51439         * modules/fcntl: Likewise.
51440         * modules/fnmatch: Likewise.
51441         * modules/getopt: Likewise.
51442         * modules/glob: Likewise.
51443         * modules/inttypes: Likewise.
51444         * modules/netinet_in: Likewise.
51445         * modules/poll: Likewise.
51446         * modules/stdbool: Likewise.
51447         * modules/stdint: Likewise.
51448         * modules/sys_select: Likewise.
51449         * modules/sys_socket: Likewise.
51450         * modules/sys_stat: Likewise.
51451         * modules/sysexits: Likewise.
51452         * modules/localcharset: Same as above, but continue using temporary
51453         file named "t-$@" (why different?) rather than the "$@-t" used
51454         everywhere else.
51455
51456         * modules/sysexits (Makefile.am): Replace literal occurrences
51457         of "sysexit.h" more readable, and more consistent, "$@".
51458
51459 2006-09-06  Bruno Haible  <bruno@clisp.org>
51460
51461         * modules/striconv: New file.
51462         * modules/xstriconv: New file.
51463         * MODULES.html.sh (Internationalization functions): Add striconv,
51464         xstriconv.
51465
51466 2006-09-06  Bruno Haible  <bruno@clisp.org>
51467
51468         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
51469         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
51470         not using libtool correctly.
51471
51472 2006-09-06  Bruno Haible  <bruno@clisp.org>
51473
51474         * lib/striconv.h: New file.
51475         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
51476         iconvstring.c.
51477         * lib/xstriconv.h: New file.
51478         * lib/xstriconv.c: New file.
51479
51480 2006-09-06  Bruno Haible  <bruno@clisp.org>
51481
51482         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
51483         lib_..._LDFLAGS.
51484
51485 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51486
51487         * lib/argz_.h: Sync from Libtool.
51488
51489         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
51490                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
51491
51492         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
51493
51494 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
51495
51496         * modules/trim: New file.
51497
51498 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
51499
51500         * lib/trim.h: New file.
51501         * lib/trim.c: New file.
51502
51503 2006-09-05  Bruno Haible  <bruno@clisp.org>
51504
51505         * MODULES.html.sh (String handling): Add trim.
51506
51507 2006-09-04  Karl Berry  <karl@gnu.org>
51508
51509         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
51510         until next release.
51511
51512 2006-09-03  Bruno Haible  <bruno@clisp.org>
51513
51514         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
51515         correctly.
51516
51517 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51518
51519         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
51520         not gl_GETLOADAVG.  Omit unneeded semicolons.
51521         Problems reported by Ralf Wildenhues in
51522         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
51523         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
51524         at the end, which is the usual gnulib style.
51525
51526         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
51527         of doing all the work ourselves.
51528         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
51529         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
51530
51531 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51532
51533         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
51534         Problem reported by Ralf Wildenhues in
51535         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
51536
51537         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
51538         HAVE_STRUCT_STATFS_F_FSTYPENAME.
51539
51540 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
51541
51542         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
51543         yesterday's patch by changing test -n to test -z.
51544
51545 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51546
51547         * modules/getloadavg (Files): Add m4/getloadavg.m4.
51548         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
51549         the former is now obsolescent.
51550
51551         * modules/chdir-long (Depends-on): Add fcntl.
51552
51553 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51554
51555         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
51556         obsolescent, and programs should use gnulib instead.
51557         * m4/getloadavg.m4: New file, with contents taken from Autoconf
51558         but with prefixes changed.
51559
51560 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
51561
51562         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
51563         or stdbool.h, because they might not exist while configuring.
51564
51565         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
51566         Don't include unistd.h or limits.h; not needed, since chdir-long.h
51567         does that for us.
51568         (O_DIRECTORY): Remove.
51569
51570 2006-08-31  Eric Blake  <ebb9@byu.net>
51571
51572         * gnulib-tool: Don't let emacs change spaces to TAB.
51573
51574 2006-08-31  Bruno Haible  <bruno@clisp.org>
51575
51576         * gnulib-tool: When calling func_import more than once, do it in a
51577         subshell.
51578         Reported by Eric Blake <ebb9@byu.net>.
51579
51580 2006-08-31  Bruno Haible  <bruno@clisp.org>
51581
51582         * gnulib-tool (nl): Remove variable.
51583         (sed_transform_lib_file): Use more robust test for config-h module.
51584         (func_import): Fix typo in 2006-08-25 patch.
51585
51586 2006-08-31  Bruno Haible  <bruno@clisp.org>
51587
51588         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
51589         specified, augment Makefile.am variables instead of assigning them.
51590
51591 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51592
51593         Work around a bug in both the Linux and SunOS 64-bit kernels:
51594         nanosleep mishandles sleeps for longer than 2**31 seconds.
51595         Problem reported by Frank v Waveren in
51596         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
51597         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
51598         Check for nanosleep bug.
51599         (LIB_NANOSLEEP): Append clock_gettime library if needed.
51600
51601 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51602
51603         Work around a bug in both the Linux and SunOS 64-bit kernels:
51604         nanosleep mishandles sleeps for longer than 2**31 seconds.
51605         Problem reported by Frank v Waveren in
51606         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
51607         * lib/nanosleep.c (BILLION): New constant.
51608         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
51609         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
51610         implementation.
51611
51612 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51613
51614         * modules/nanosleep (Depends-on): Add gettime.
51615
51616 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
51617         and Simon Josefsson  <jas@extundo.com>
51618         and Oskar Liljeblad  <oskar@osk.mine.nu>
51619
51620         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
51621         * gnulib-tool (func_import): New license type 'unmodifiable license
51622         text'.
51623         * modules/fdl: Use it.  Longer description.
51624         * module/gpl, module/lgpl: New files.
51625
51626 2006-08-30  Jim Meyering  <jim@meyering.net>
51627
51628         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
51629         shadowing the parameter.
51630
51631 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51632
51633         Sync from Libtool:
51634
51635         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51636
51637         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
51638         sharing with gnulib.  Report by Eric Blake.
51639
51640 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51641
51642         * modules/isapipe: New file.
51643         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
51644
51645 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51646
51647         * modules/configmake (Makefile.am): Add a comment, and omit
51648         the CONFIGMAKE_ prefix from generated macro names.  Suggested
51649         by Bruno Haible.
51650
51651 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51652
51653         * m4/isapipe.m4: New file.
51654
51655 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
51656
51657         * lib/isapipe.c, lib/isapipe.h: New files.
51658
51659 2006-08-29  Jim Meyering  <jim@meyering.net>
51660
51661         * modules/configmake (Makefile.am): Make configmake.h depend on
51662         Makefile.  Otherwise, a stale configmake.h could hang around.
51663
51664 2006-08-29  Eric Blake  <ebb9@byu.net>
51665
51666         * lib/error.c (error_at_line, print_errno_message): Match libc, after
51667         resolution of upstream bug 3044.
51668
51669 2006-08-29  Bruno Haible  <bruno@clisp.org>
51670
51671         * modules/localcharset (Depends-on): Add configmake.
51672         (Makefile.am): Remove setting of LIBDIR through DEFS.
51673
51674 2006-08-29  Bruno Haible  <bruno@clisp.org>
51675
51676         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
51677         defined.
51678
51679 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51680
51681         * modules/fcntl: New file.
51682         * modules/chdir-safer (Depends-on): Add fcntl.
51683         * modules/fts: Likewise.
51684         * modules/mkdir-p: Likewise.
51685
51686         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
51687         This undoes the most recent change, since we're now addressing the
51688         problem in a different way.
51689
51690         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
51691         into output, since the output might be called Makefile.am even
51692         if $makefile_name is something different.
51693         (func_import): Use $makefile_am rather than
51694         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
51695         empty.
51696
51697         * modules/inttypes (Files): Add m4/inttypes-h.m4.
51698
51699 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51700
51701         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
51702         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
51703         recent change to stdint.m4, since we're now addressing the problem in a
51704         different way.
51705
51706 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51707
51708         * m4/fcntl_h.m4: New file.
51709
51710 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
51711
51712         * lib/fcntl_.h: New file.
51713         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
51714         the fcntl module.
51715         * lib/dirchownmod.c: Likewise.
51716         * lib/fts.c: Likewise.
51717
51718         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
51719         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
51720         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
51721         just before including <inttypes.h>, to avoid circular inclusion.
51722
51723 2006-08-28  Jim Meyering  <jim@meyering.net>
51724
51725         * doc/visibility.texi: Actually read and correct the grammar of the
51726         sentence affected by yesterday's change.
51727
51728 2006-08-28  Eric Blake  <ebb9@byu.net>
51729
51730         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
51731         needs wrapper.
51732
51733 2006-08-28  Eric Blake  <ebb9@byu.net>
51734
51735         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
51736
51737 2006-08-28  Eric Blake  <ebb9@byu.net>
51738
51739         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
51740
51741 2006-08-28  Bruno Haible  <bruno@clisp.org>
51742
51743         * modules/c-strstr: New file, from GNU gettext.
51744         * MODULES.html.sh (String handling): Add c-strstr.
51745
51746 2006-08-28  Bruno Haible  <bruno@clisp.org>
51747
51748         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
51749         macros.
51750         Reported by Eric Blake.
51751
51752 2006-08-28  Bruno Haible  <bruno@clisp.org>
51753
51754         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
51755         (VASNPRINTF): Return a string of length > INT_MAX without failing.
51756         * lib/vasprintf.c: Include errno.h, limits.h.
51757         (EOVERFLOW): New fallback definition.
51758         (vasprintf): Test here whether the string length is > INT_MAX.
51759         * lib/vsnprintf.c: Include errno.h, limits.h.
51760         (EOVERFLOW): New fallback definition.
51761         (vsnprintf): Fix bug when generated string was too long for the buffer.
51762         Test here whether the string length is > INT_MAX.
51763
51764 2006-08-28  Bruno Haible  <bruno@clisp.org>
51765
51766         * lib/inttypes_.h (SCNX*): Remove definitions.
51767         Reported by Eric Blake.
51768
51769 2006-08-28  Bruno Haible  <bruno@clisp.org>
51770
51771         * lib/c-strstr.h: New file, from GNU gettext.
51772         * lib/c-strstr.c: New file, from GNU gettext.
51773
51774 2006-08-28  Bruno Haible  <bruno@clisp.org>
51775
51776         * gnulib-tool: Reorder some statements.
51777
51778 2006-08-28  Bruno Haible  <bruno@clisp.org>
51779
51780         * gnulib-tool: New option --makefile-name.
51781         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
51782         $makefile_name.
51783         (func_import): Write $makefile_name to the cache file, and read it from
51784         there unless explicitly specified. Use $makefile_name as file name
51785         instead of Makefile.am. Adjust the recommendations accordingly.
51786
51787 2006-08-28  Bruno Haible  <bruno@clisp.org>
51788
51789         * gnulib-tool (func_verify_module): Check against misapplying patch.
51790
51791 2006-08-28  Bruno Haible  <bruno@clisp.org>
51792
51793         * gnulib-tool (func_relativize, func_relconcat): New functions.
51794         Give an error if --local-dir is given with --update.
51795         Remove trailing slashes from $local_gnulib_dir.
51796         (func_import): Store the relativized $local_gnulib_dir in
51797         gnulib-cache.m4, and read it from there if not specified explicitly.
51798
51799 2006-08-28  Bruno Haible  <bruno@clisp.org>
51800
51801         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
51802         is the current directory. Respect also $local_gnulib_dir.
51803
51804 2006-08-28  Bruno Haible  <bruno@clisp.org>
51805             Simon Josefsson  <jas@extundo.com>
51806
51807         BeOS portability.
51808         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
51809
51810 2006-08-27  Jim Meyering  <jim@meyering.net>
51811
51812         * doc/visibility.texi: Remove duplicate word: "pointer".
51813
51814 2006-08-26  Bruno Haible  <bruno@clisp.org>
51815
51816         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
51817         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
51818         (Makefile.am): Create inttypes.h from inttypes_.h.
51819         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
51820
51821         * modules/imaxabs: New file.
51822
51823         * modules/imaxdiv: New file.
51824
51825 2006-08-26  Bruno Haible  <bruno@clisp.org>
51826
51827         * m4/inttypes.m4: New file.
51828         * m4/_inttypes_h.m4: Remove file.
51829         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
51830         PRI_MACROS_BROKEN.
51831         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
51832
51833         * m4/imaxabs.m4: New file.
51834
51835         * m4/imaxdiv.m4: New file.
51836
51837 2006-08-26  Bruno Haible  <bruno@clisp.org>
51838
51839         * lib/inttypes_.h: New file.
51840         * lib/inttypes.h: Remove file.
51841         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
51842
51843         * lib/imaxabs.c: New file.
51844
51845         * lib/imaxdiv.c: New file.
51846
51847 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51848
51849         New config-h module, so that "make" output needn't be cluttered
51850         by -DHAVE_CONFIG_H.
51851         * MODULES.html.sh (Support for building libraries and executables):
51852         Add config-h.
51853         * modules/config-h: New file.
51854         * gnulib-tool (nl, sed_transform_lib_file): New vars.
51855         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
51856         the config-h module is used.
51857
51858         New configmake module, so that "make" output needn't be cluttered
51859         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
51860         * MODULES.html.sh (Support for building libraries and executables):
51861         Add configmake.
51862         * modules/configmake: New file.
51863
51864 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
51865
51866         * m4/config-h.m4: New file.
51867
51868 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51869
51870         * config/srclist.txt: Add elisp-comp.
51871
51872 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
51873
51874         * MODULES.html.sh (Support for building libraries and executables):
51875         Add elisp-comp.
51876         * build-aux/elisp-comp: New file.
51877         * modules/elisp-comp: New file.
51878
51879 2006-08-24  Bruno Haible  <bruno@clisp.org>
51880
51881         * gnulib-tool (func_create_testdir): Use non-default values of
51882         sourcebase and m4base.
51883
51884 2006-08-24  Bruno Haible  <bruno@clisp.org>
51885
51886         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
51887         HTML structure.
51888
51889 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
51890
51891         * modules/openat (Depends-on): Add lchown.
51892
51893 2006-08-23  Bruno Haible  <bruno@clisp.org>
51894
51895         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
51896         of gl_LOCK_EARLY instead of gl_LOCK.
51897
51898 2006-08-23  Bruno Haible  <bruno@clisp.org>
51899
51900         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
51901         on OSF/1 to no.
51902         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
51903
51904 2006-08-23  Bruno Haible  <bruno@clisp.org>
51905
51906         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
51907         as unusable.
51908
51909         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
51910         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
51911         (gl_LOCK): New macro.
51912
51913 2006-08-22  Simon Josefsson  <jas@extundo.com>
51914
51915         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
51916         to md5 module.
51917
51918 2006-08-22  Simon Josefsson  <jas@extundo.com>
51919
51920         * MODULES.html.sh: Add "Support for maintaining and release
51921         projects".
51922
51923         * build-aux/gnupload: New file, from coreutils.
51924
51925 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51926
51927         Avoid the need for AC_LIBSOURCES in m4 macros.
51928         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
51929         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
51930         * modules/check-version (EXTRA_DIST): Add check-version.h.
51931         * modules/crc (EXTRA_DIST): Add crc.h.
51932         * modules/des (EXTRA_DIST): Add des.h.
51933         * modules/gc (EXTRA_DIST): Add gc.h.
51934         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
51935         * modules/getline (EXTRA_DIST): Add getline.h.
51936         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
51937         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
51938         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
51939         * modules/md2 (EXTRA_DIST): Add md2.h.
51940         * modules/md4 (EXTRA_DIST): Add md4.h.
51941         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
51942         * modules/read-file (EXTRA_DIST): Add read-file.h.
51943         * modules/readline (EXTRA_DIST): Add readline.h.
51944         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
51945         rijndael-api-fst.h.
51946
51947 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51948
51949         * m4/rijndael.m4 (gl_ARCFOUR):
51950         * m4/arctwo.m4 (gl_ARCTWO):
51951         * m4/check-version.m4 (gl_CHECK_VERSION):
51952         * m4/crc.m4 (gl_CRC):
51953         * m4/des.m4 (gl_DES):
51954         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
51955         * m4/gc.m4 (gl_GC):
51956         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
51957         * m4/getline.m4 (gl_FUNC_GETLINE):
51958         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
51959         * m4/hmac-md5.m4 (gl_HMAC_MD5):
51960         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
51961         * m4/md2.m4 (gl_MD2):
51962         * m4/md4.m4 (gl_MD4):
51963         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
51964         * m4/read-file.m4 (gl_FUNC_READ_FILE):
51965         * m4/readline.m4 (gl_FUNC_READLINE):
51966         * m4/rijndael.m4 (gl_RIJNDAEL):
51967         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
51968         to get the necessary .h files and whatnot.
51969
51970 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
51971
51972         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
51973         gnulib rather than the other way around.
51974         * config/srclistvars.sh (COREUTILS): Remove.
51975
51976 2006-08-22  Jim Meyering  <jim@meyering.net>
51977
51978         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
51979
51980         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
51981
51982 2006-08-22  Eric Blake  <ebb9@byu.net>
51983
51984         * modules/regexprops-generic: New file.
51985         * MODULES.html.sh (Support for building documentation): List it.
51986
51987 2006-08-22  Eric Blake  <ebb9@byu.net>
51988
51989         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
51990         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51991         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
51992         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
51993
51994 2006-08-22  Bruno Haible  <bruno@clisp.org>
51995
51996         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
51997         and lib_LTLIBRARIES like the other lib_* variables.
51998
51999 2006-08-22  Bruno Haible  <bruno@clisp.org>
52000
52001         * build-aux/x-to-1.in: New file, from GNU gettext.
52002
52003 2006-08-22  Bruno Haible  <bruno@clisp.org>
52004
52005         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
52006         <utmpx.h> exists.
52007
52008 2006-08-22  Bruno Haible  <bruno@clisp.org>
52009
52010         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
52011         <utmpx.h> exists.
52012
52013 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
52014
52015         BeOS portability.
52016         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
52017         exist.
52018         Problem reported by Bruno Haible.
52019
52020 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
52021
52022         Avoid the need for AC_LIBSOURCES in m4 macros.
52023         * modules/acl (EXTRA_DIST): Add acl.h.
52024         * modules/argmatch (Files): Add m4/argmatch.m4.
52025         (configure.ac): Add gl_ARGMATCH.
52026         (EXTRA_DIST): Renamed from lib_SOURCES, for
52027         consistency with the other modules.  Remove argmatch.c.
52028         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
52029         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
52030         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
52031         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
52032         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
52033         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
52034         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
52035         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
52036         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
52037         * modules/closeout (EXTRA_DIST): Add closeout.h.
52038         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
52039         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
52040         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
52041         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
52042         dirname.h; remove basename.c and stripslash.c.
52043         * modules/exclude (EXTRA_DIST): Add exclude.h.
52044         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
52045         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
52046         * modules/file-type (EXTRA_DIST): Add file-type.h.
52047         * modules/filemode (EXTRA_DIST): Add filemode.h.
52048         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
52049         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
52050         * modules/fpending (EXTRA_DIST): Add __fpending.h.
52051         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
52052         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
52053         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
52054         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
52055         * modules/getdate (EXTRA_DIST): Add getdate.c.
52056         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
52057         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
52058         * modules/getpass (EXTRA_DIST): Add getpass.h.
52059         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
52060         * modules/group-member (EXTRA_DIST): Add group-member.h.
52061         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
52062         * modules/hash (EXTRA_DIST): Add hash.h.
52063         * modules/human (EXTRA_DIST): Add human.h.
52064         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
52065         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
52066         * modules/lchown (EXTRA_DIST): Add lchown.h.
52067         * modules/long-options (EXTRA_DIST): Add long-options.h.
52068         * modules/lstat (EXTRA_DIST): Add lstat.h.
52069         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
52070         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
52071         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
52072         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
52073         * modules/memxor (EXTRA_DIST): Add memxor.h.
52074         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
52075         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
52076         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
52077         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
52078         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
52079         * modules/physmem (EXTRA_DIST): Add physmem.h.
52080         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
52081         * modules/posixver (EXTRA_DIST): Add posixver.h.
52082         * modules/quote (EXTRA_DIST): Add quote.h.
52083         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
52084         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
52085         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
52086         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
52087         regex_internal.h regexec.c.
52088         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
52089         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
52090         * modules/same (EXTRA_DIST): Add same.h.
52091         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
52092         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
52093         * modules/savedir (EXTRA_DIST): Add savedir.h.
52094         * modules/sha1 (EXTRA_DIST): Add sha1.h.
52095         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
52096         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
52097         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
52098         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
52099         * modules/strdup (EXTRA_DIST): Add strdup.h.
52100         * modules/strftime (EXTRA_DIST): Add strftime.h.
52101         * modules/strndup (EXTRA_DIST): Add strndup.h.
52102         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
52103         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
52104         * modules/time_r (EXTRA_DIST): Add time_r.h.
52105         * modules/timespec (EXTRA_DIST): Add timespec.h.
52106         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
52107         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
52108         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
52109         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
52110         * modules/userspec (EXTRA_DIST): Add userspec.h.
52111         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
52112         * modules/utimens (EXTRA_DIST): Add utimens.h.
52113         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
52114         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
52115         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
52116         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
52117         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
52118         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
52119         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
52120         * modules/yesno (EXTRA_DIST): Add yesno.h.
52121
52122 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
52123
52124         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
52125
52126         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
52127         * m4/dev-ino.m4, same-inode.m4: Remove.
52128
52129         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
52130         * m4/acl.m4 (AC_FUNC_ACL):
52131         * m4/backupfile.m4 (gl_BACKUPFILE):
52132         * m4/c-strtod.m4 (gl_C99_STRTOLD):
52133         * m4/canon-host.m4 (gl_CANON_HOST):
52134         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
52135         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
52136         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
52137         * m4/cloexec.m4 (gl_CLOEXEC):
52138         * m4/close-stream.m4 (gl_CLOSE_STREAM):
52139         * m4/closeout.m4 (gl_CLOSEOUT):
52140         * m4/dirfd.m4 (gl_FUNC_DIRFD):
52141         * m4/dirname.m4 (gl_DIRNAME):
52142         * m4/exclude.m4 (gl_EXCLUDE):
52143         * m4/exitfail.m4 (gl_EXITFAIL):
52144         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
52145         * m4/file-type.m4 (gl_FILE_TYPE):
52146         * m4/filemode.m4 (gl_FILEMODE):
52147         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
52148         * m4/fpending.m4 (gl_FUNC_FPENDING):
52149         * m4/fprintftime.m4 (gl_FPRINTFTIME):
52150         * m4/fts.m4 (gl_FUNC_FTS):
52151         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
52152         * m4/getdate.m4 (gl_GETDATE):
52153         * m4/gethrxtime.m4 (gl_GETHRXTIME):
52154         * m4/getpagesize.m4 (gl_GETPAGESIZE):
52155         * m4/getpass.m4 (gl_FUNC_GETPASS):
52156         * m4/gettime.m4 (gl_GETTIME):
52157         * m4/getugroups.m4 (gl_GETUGROUPS):
52158         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
52159         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
52160         * m4/hard-locale.m4 (gl_HARD_LOCALE):
52161         * m4/hash.m4 (gl_HASH):
52162         * m4/idcache.m4 (gl_IDCACHE):
52163         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
52164         * m4/lchown.m4 (gl_FUNC_LCHOWN):
52165         * m4/long-options.m4 (gl_LONG_OPTIONS):
52166         * m4/lstat.m4 (gl_FUNC_LSTAT):
52167         * m4/md5.m4 (gl_MD5):
52168         * m4/memcasecmp.m4 (gl_MEMCASECMP):
52169         * m4/memcoll.m4 (gl_MEMCOLL):
52170         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
52171         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
52172         * m4/memxor.m4 (gl_MEMXOR):
52173         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
52174         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
52175         * m4/modechange.m4 (gl_MODECHANGE):
52176         * m4/mountlist.m4 (gl_MOUNTLIST):
52177         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
52178         * m4/openat.m4 (gl_FUNC_OPENAT):
52179         * m4/pathmax.m4 (gl_PATHMAX):
52180         * m4/physmem.m4 (gl_PHYSMEM):
52181         * m4/posixtm.m4 (gl_POSIXTM):
52182         * m4/posixver.m4 (gl_POSIXVER):
52183         * m4/quote.m4 (gl_QUOTE):
52184         * m4/quotearg.m4 (gl_QUOTEARG):
52185         * m4/readtokens.m4 (gl_READTOKENS):
52186         * m4/readutmp.m4 (gl_READUTMP):
52187         * m4/regex.m4 (gl_REGEX):
52188         * m4/safe-read.m4 (gl_SAFE_READ):
52189         * m4/safe-write.m4 (gl_SAFE_WRITE):
52190         * m4/same.m4 (gl_SAME):
52191         * m4/save-cwd.m4 (gl_SAVE_CWD):
52192         * m4/savedir.m4 (gl_SAVEDIR):
52193         * m4/settime.m4 (gl_SETTIME):
52194         * m4/sha1.m4 (gl_SHA1):
52195         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
52196         * m4/stat-macros.m4 (gl_STAT_MACROS):
52197         * m4/stat-time.m4 (gl_STAT_TIME):
52198         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
52199         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
52200         * m4/strdup.m4 (gl_FUNC_STRDUP):
52201         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
52202         * m4/strndup.m4 (gl_FUNC_STRNDUP):
52203         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
52204         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
52205         * m4/time_r.m4 (gl_TIME_R):
52206         * m4/timespec.m4 (gl_TIMESPEC):
52207         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
52208         * m4/unlinkdir.m4 (gl_UNLINKDIR):
52209         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
52210         * m4/userspec.m4 (gl_USERSPEC):
52211         * m4/utimecmp.m4 (gl_UTIMECMP):
52212         * m4/utimens.m4 (gl_UTIMENS):
52213         * m4/xalloc.m4 (gl_XALLOC):
52214         * m4/xgetcwd.m4 (gl_XGETCWD):
52215         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
52216         * m4/xreadlink.m4 (gl_XREADLINK):
52217         * m4/xstrtod.m4 (gl_XSTRTOD):
52218         * m4/yesno.m4 (gl_YESNO):
52219         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
52220         to get the necessary .h files and whatnot.
52221
52222 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
52223             Bruno Haible  <bruno@clisp.org>
52224
52225         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
52226         /bin/sh understanding of '!' conditional negation.
52227
52228 2006-08-21  Jim Meyering  <jim@meyering.net>
52229
52230         * modules/openat (Depends-on): Really alphabetize.
52231
52232         * modules/acl (Depends-on): Add error and quote.
52233
52234         * check-module (find_included_lib_files): Add at-func.c to the
52235         ok-to-include-more-than-once white list.
52236
52237         * modules/openat (Depends-on): Add lstat.  Alphabetize.
52238
52239 2006-08-21  Bruno Haible  <bruno@clisp.org>
52240
52241         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52242         Emit a pkgdata_DATA variable only if some snippets add contents to it.
52243         Reported by Martin Lambers <marlam@marlam.de>.
52244
52245 2006-08-21  Bruno Haible  <bruno@clisp.org>
52246
52247         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
52248         specify an installation location, don't emit a noinst_LIBRARIES or
52249         noinst_LTLIBRARIES assignment.
52250
52251 2006-08-21  Bruno Haible  <bruno@clisp.org>
52252
52253         BeOS portability.
52254         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
52255         BeOS has mbrtowc() but no <wctype.h>.
52256
52257 2006-08-21  Bruno Haible  <bruno@clisp.org>
52258
52259         BeOS portability.
52260         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
52261         exist.
52262
52263 2006-08-21  Bruno Haible  <bruno@clisp.org>
52264
52265         BeOS portability.
52266         * lib/mbchar.h: Include <wctype.h> only if it exists.
52267
52268 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52269
52270         Remove files that are no longer needed by their respective modules.
52271         * m4/obstack.m4: Remove.
52272         * m4/strerror_r.m4: Remove.
52273         * m4/uint32_t.m4: Remove.
52274         * m4/uintptr_t.m4: Remove.
52275         * m4/ullong_max.m4: Remove.
52276         * m4/xstrtoimax.m4: Remove.
52277         * m4/xstrtoumax.m4: Remove.
52278
52279         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
52280         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
52281         dependencies now capture this.
52282
52283         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
52284         Do not use AC_LIBSOURCES, since gnulib modules now do this.
52285         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
52286         * m4/human.m4 (gl_HUMAN): Likewise.
52287         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
52288         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
52289
52290         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
52291
52292         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
52293         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
52294         stdint.
52295         * m4/human.m4 (gl_HUMAN): Likewise.
52296         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
52297         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
52298         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
52299         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
52300         * m4/xstrtol (gl_XSTRTOL): Likewise.
52301
52302         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
52303         AC_TYPE_LONG_LONG_INT.
52304         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
52305         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
52306         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
52307         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
52308
52309         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
52310         on stdbool.
52311
52312         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
52313         (gl_PREREQ_XSTRTOUL): Remove.
52314
52315         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
52316
52317         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
52318         mode.
52319
52320 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52321
52322         Add and change modules to make it easier for coreutils to use
52323         gnulib-tool.
52324         * modules/backupfile (Files): Remove m4/d-ino.m4.
52325         (Depends-on): Add d-ino.
52326         * modules/cycle-check (Depends-on): Add stdint.
52327         (lib_SOURCES): Add cycle-check.h.
52328         * modules/d-ino: New module.
52329         * modules/d-type: New module.
52330         * modules/error (Files): Remove m4/strerror_r.m4.
52331         * modules/filemode (Files): Add m4/st_dm_mode.m4.
52332         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
52333         m4/inttypes_h.m4, m4/uintmax_t.m4.
52334         (Depends-on): Add stdint.
52335         (lib_SOURCES): Add fsusage.h.
52336         * modules/getcwd (Files): Remove d-ino.m4.
52337         (Depends-on): Add d-ino.
52338         * modules/getndelim2 (Depends-on): Add stdint.
52339         * modules/glob (Files): Remove m4/d-type.m4.
52340         (Depends-on): Add d-type.
52341         * modules/host-os: New module.
52342         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
52343         m4/inttypes_h.m4, m4/uintmax_t.m4.
52344         * Depends-on: Add stdint.
52345         (lib_SOURCES): Add human.h.
52346         * modules/inttostr (Files): Remove m4/intmax_t.m4,
52347         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
52348         m4/uintmax_t.m4, m4/ulonglong.m4.
52349         (Depends-on): Add stdint.
52350         (EXTRA_DIST): Add inttostr.h.
52351         * modules/lchmod: New module.
52352         * modules/link-follow: New module.
52353         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
52354         (Depends-on): Add lchmod.
52355         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
52356         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
52357         (Depends-on): Add stdint.
52358         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
52359         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
52360         (Depends-on): Add stdint.
52361         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
52362         * modules/perl: New module.
52363         * modules/regex (Depends-on): Add stdint.
52364         * modules/rmdir-errno: New module.
52365         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
52366         m4/intmax_t.m4.
52367         (Depends-on): Add stdint.
52368         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
52369         m4/uintmax_t.m4.
52370         (Depends-on): Add stdint.
52371         * modules/unlink-busy: New module.
52372         * modules/utimecmp (Depends-on): Add stdint.
52373         * modules/uptime: New module.
52374         * modules/winsz-ioctl: New module.
52375         * modules/winsz-termios: New module.
52376         * modules/xnanosleep (Depends-on): Add nanosleep.
52377         * modules/ullong_max: Remove.
52378         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
52379         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
52380         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
52381         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
52382         (Depends-on): Add inttypes.
52383         (lib_SOURCES): Add xstrtol.h.
52384         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
52385         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
52386         * MODULES.html.sh: Move 'assert' into the assert section.
52387         Move 'dummy' into the linking section.
52388         Remove ullong_max.
52389         Add section for compatibility checks for POSIX:2001 functions,
52390         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
52391         winsz-ioctl, and winsz-termios into it.
52392         Add lchmod.
52393         Add top-level Misc section and put host-os, perl, and uptime
52394         into it.
52395
52396 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
52397
52398         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
52399         now assume the stdint module.  Do not include inttypes.h.
52400         * lib/fsusage.h: Likewise.
52401         * lib/getndelim2.c: Likewise.
52402         * lib/human.h: Likewise.
52403         * lib/inttostr.h: Likewise.
52404         * lib/obstack.c: Likewise.
52405         * lib/regex_internal.h: Likewise.
52406         * lib/tempname.c: Likewise.
52407         * lib/utimecmp.c: Likewise.
52408         * lib/xstrtol.h: Likewise.
52409
52410         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
52411
52412         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
52413         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
52414         * lib/xtime.h: Likewise.
52415
52416 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52417
52418         * modules/openat (Files): Add lib/fchmodat.c.
52419         Fixes problem reported by Jay Youngman.
52420
52421 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
52422
52423         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
52424         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
52425
52426 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
52427             Bruno Haible  <bruno@clisp.org>
52428
52429         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
52430         and is a script that invokes bison. Tighten the code. Add comments.
52431
52432 2006-08-18  Jim Meyering  <jim@meyering.net>
52433
52434         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
52435         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
52436         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
52437         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
52438
52439 2006-08-18  Bruno Haible  <bruno@clisp.org>
52440
52441         * modules/bison-i18n: New file.
52442         * MODULES.html.sh (Internationalization functions): Add it.
52443
52444 2006-08-18  Bruno Haible  <bruno@clisp.org>
52445
52446         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
52447         sys/statvfs.h. When getmntinfo was found, check its declaration and
52448         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
52449
52450 2006-08-18  Bruno Haible  <bruno@clisp.org>
52451
52452         * m4/bison-i18n.m4: New file, from bison.
52453
52454 2006-08-18  Bruno Haible  <bruno@clisp.org>
52455
52456         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
52457         (ME_DUMMY): Treat "kernfs" as a dummy.
52458         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
52459
52460 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52461
52462         Update from coreutils.
52463
52464         2006-08-15  Jim Meyering  <jim@meyering.net>
52465
52466         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
52467
52468         2006-01-17  Jim Meyering  <jim@meyering.net>
52469
52470         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
52471
52472         2006-01-11  Jim Meyering  <jim@meyering.net>
52473
52474         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
52475         Check for the lchmod function.
52476
52477 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
52478
52479         Update from coreutils.
52480
52481         * lib/__fpending.h: Add copyright notice.
52482         * lib/fprintftime.h: Likewise.
52483         * lib/savedir.c: Use (C) in copyright notice.
52484         * lib/savedir.h: Likewise.
52485
52486         2006-08-15  Jim Meyering  <jim@meyering.net>
52487
52488         * lib/at-func.c: New file, with the logic of all emulated at-functions.
52489         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
52490         in support of the EXPECTED_ERRNO macro.
52491         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
52492         definitions.  Instead, define the appropriate symbols and include
52493         "at-func.c".
52494         * lib/mkdirat.c (mkdirat): Likewise.
52495         * lib/fchmodat.c (fchmodat): Likewise.
52496         (ENOSYS): Remove definition.
52497         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
52498         it.  Don't include "unistd--.h" -- it wasn't ever used.
52499
52500         2006-01-17  Jim Meyering  <jim@meyering.net>
52501
52502         Rewrite fts.c not to change the current working directory,
52503         by using openat, fstatat, fdopendir, etc..
52504
52505         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
52506         (HAVE_OPENAT_SUPPORT): Define.
52507         [_LIBC] (fchdir): Don't undef or define; no longer used.
52508         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
52509         Now, this `function' always succeeds, and consumes its file descriptor
52510         parameter -- so callers must not close such FDs.  Update callers.
52511         (diropen_fd, opendirat, cwd_advance_fd): New functions.
52512         (diropen): Add parameter, SP.  Adjust all callers.
52513         Implement using diropen_fd, rather than open.
52514         (fts_open): Initialize new member, fts_cwd_fd.
52515         Remove fts_rft-setting code.
52516         (fts_close): Close fts_cwd_fd, if necessary.
52517         (__opendir2): Define in terms of opendir or opendirat,
52518         depending on whether the FST_NOCHDIR flag is set.
52519         (fts_build): Since fts_safe_changedir consumes its FD, and since
52520         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
52521         and close the dup'd file descriptor upon failure.
52522         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
52523         (fts_safe_changedir): Tweak semantics to reflect that this function
52524         now calls cwd_advance_fd and hence consumes its FD argument.
52525         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
52526         [struct FTS] (fts_rft): Remove now-unused member.
52527         [struct FTS] (fts_cycle.state): Improve comment.
52528
52529         * lib/openat.c (openat_needs_fchdir): New function.
52530         * lib/openat.h (openat_needs_fchdir): Declare it.
52531
52532 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
52533
52534         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
52535         Problem and fix reported by Pádraig Brady in
52536         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
52537
52538 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52539
52540         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
52541
52542 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52543
52544         * lib/memcoll.c (memcoll): Optimize for the common case where the
52545         arguments are bytewise equal.
52546
52547 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
52548
52549         * doc/regexprops-generic.texi: Add a copyright notice.
52550
52551 2006-08-15  Bruno Haible  <bruno@clisp.org>
52552
52553         * modules/tmpdir (License): Change to LGPL.
52554
52555 2006-08-15  Bruno Haible  <bruno@clisp.org>
52556
52557         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
52558         module.
52559
52560 2006-08-14  Simon Josefsson  <jas@extundo.com>
52561
52562         * config/srclist.txt: Add gnupload.
52563
52564 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52565
52566         Change copyright notice from LGPL 2 to GPL 2, since that's the
52567         standard form used in the gnulib repository.
52568         * tests/test-lock.c: Likewise.
52569         * tests/test-stdint.c: Likewise.
52570         * tests/test-tls.c: Likewise.
52571
52572         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
52573         prelude-manager.  User shorter URLs for GNU projects, without '?'.
52574         Add copyright notice.
52575
52576         * check-module: Add copyright notice.  Output a copyright
52577         notice if "--version" is specified.
52578         * modules/COPYING: New file.
52579         * tests/test-getaddrinfo.c: Add copyright notice.
52580         * tests/test-verify.c: Likewise.
52581
52582 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52583
52584         Change copyright notice from LGPL 2 to GPL 2, since that's the
52585         standard form used in the gnulib repository.
52586         * lib/lock.c: LGPL -> GPL.
52587         * lib/lock.h: Likewise.
52588         * lib/strnlen1.c: Likewise.
52589         * lib/strnlen1.h: Likewise.
52590         * lib/tls.c: Likewise.
52591         * lib/tls.h: Likewise.
52592         * lib/tmpdir.c: Likewise.
52593
52594         * lib/TODO: Remove; this belongs only in coreutils.
52595
52596 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52597
52598         Add copyright notices to long-enough files that lack them, since
52599         otherwise the files aren't clearly free.  Use the same notice that
52600         getdate.texi already uses.
52601         * doc/alloca-opt.texi: Add copyright notice.
52602         * doc/alloca.texi: Likewise.
52603         * doc/ctime.texi: Likewise.
52604         * doc/functions.texi: Likewise.
52605         * doc/gcd.texi: Likewise.
52606         * doc/gnulib-tool.texi: Likewise.
52607         * doc/inet_ntoa.texi: Likewise.
52608         * doc/visibility.texi: Likewise.
52609
52610         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
52611         * doc/quote.texi: Add copyright notice.
52612
52613         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
52614         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
52615         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
52616         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
52617         is now obsolete, and give a pointer to the Sun list.
52618         Add copyright notice.
52619
52620 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
52621
52622         * config/srclistvars.sh: Add copyright notice.
52623
52624 2006-08-14  Eric Blake  <ebb9@byu.net>
52625
52626         Import the following change from libc:
52627
52628         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
52629
52630         Upstream bug 2997.
52631         * lib/misc/error.c: Add space between program name and message if file
52632         name is missing.
52633
52634 2006-08-12  Karl Berry  <karl@gnu.org>
52635
52636         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
52637         remove, these originate in gnulib now.
52638
52639 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52640
52641         * doc/Makefile (standards.info standards.html standards.dvi):
52642         Also depend on make-stds.texi.
52643
52644 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
52645
52646         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
52647         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
52648
52649         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
52650         in wchar_t.  Problem reported by Eric Blake.
52651
52652         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
52653         LEN is smaller than SIZE.  Suggested by Bruno Haible.
52654         Also, help the compiler to keep LEN in a register.
52655
52656 2006-08-11  Eric Blake  <ebb9@byu.net>
52657
52658         * users.txt: Sort.  Add tar.
52659
52660 2006-08-11  Bruno Haible  <bruno@clisp.org>
52661
52662         * users.txt: New file.
52663
52664 2006-08-11  Bruno Haible  <bruno@clisp.org>
52665
52666         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
52667         before <wchar.h>. Needed for OSF/1 and BSD/OS.
52668
52669 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52670
52671         * modules/snprintf (Depends-on): Remove minmax.
52672         (Maintainer): Add self and Bruno.
52673
52674 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
52675
52676         * lib/.cppi-disable: Add snprintf.h, socket_.h.
52677         * lib/snprintf.c: Include <errno.h> and <limits.h>.
52678         (EOVERFLOW): Define if the system does not.
52679         Do not include "minmax.h"; it wasn't used.
52680         (snprintf): Don't assume size_t promotes to an unsigned type.
52681         Fix bug when generated string was too long for the buffer: the
52682         buffer's contents are supposed to be the initial prefix of the
52683         output.  Don't assume vasnprintf returns EOVERFLOW if the size
52684         exceeds INT_MAX; do the check ourselves.
52685
52686         Import the following changes from libc:
52687
52688         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
52689
52690         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
52691         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
52692         set wc to the byte which couldn't be converted.
52693         (re_string_reconstruct): Don't clear valid_raw_len before calling
52694         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
52695         tip_context using re_string_context_at.
52696
52697         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
52698
52699         * lib/posix/regex.h: g++ still cannot handled [restrict].
52700
52701         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
52702
52703         * lib/posix/regex.h: Remove special handling for VMS.
52704
52705 2006-08-10  Jim Meyering  <jim@meyering.net>
52706
52707         * modules/same-inode: New module.
52708         * modules/dev-ino: New module.
52709         * modules/cycle-check: Depend on these modules, rather than simply
52710         including their .h files.
52711         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
52712         required via m4/cycle-check.m4.
52713         * modules/same: Depend on new same-inode module, rather than
52714         including same-inode.h.
52715         * modules/chdir-safer: New file.
52716
52717         * modules/chown (Depends-on): Add stat-macros.
52718
52719 2006-08-10  Jim Meyering  <jim@meyering.net>
52720
52721         * m4/cycle-check.m4: New file.
52722         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
52723         * m4/dev-ino.m4, m4/same-inode.m4: New files.
52724
52725 2006-08-10  Eric Blake  <ebb9@byu.net>
52726
52727         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
52728         in from original proposal.
52729
52730 2006-08-10  Eric Blake  <ebb9@byu.net>
52731         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
52732
52733         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
52734         namespace.
52735
52736 2006-08-10  Bruno Haible  <bruno@clisp.org>
52737
52738         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
52739         as well.
52740
52741 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52742
52743         Sync from coreutils.
52744
52745         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
52746
52747         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
52748         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
52749
52750 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52751
52752         * modules/restrict: Remove; no longer needed now that we assume
52753         Autoconf 2.59 or later.
52754         * MODULES.html.sh: Remove 'restrict'.
52755         * modules/argp (Depends-on): Remove 'restrict'.
52756         * modules/base64 (Depends-on): Likewise.
52757         * modules/gc (Depends-on): Likewise.
52758         * modules/getaddrinfo (Depends-on): Likewise.
52759         * modules/glob (Depends-on): Likewise.
52760         * modules/inet_ntop (Depends-on): Likewise.
52761         * modules/inet_pton (Depends-on): Likewise.
52762         * modules/memxor (Depends-on): Likewise.
52763         * modules/regex (Depends-on): Likewise.
52764         * modules/strtok_r (Depends-on): Likewise.
52765         * modules/time_r (Depends-on): Likewise.
52766
52767 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
52768
52769         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
52770         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
52771         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52772         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
52773         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
52774         * m4/memxor.m4 (gl_MEMXOR): Likewise.
52775         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
52776         gl_C_RESTRICT replaced by AC_C_RESTRICT.
52777
52778         Merge from coreutils.
52779         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
52780         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
52781         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
52782         * m4/time_r.m4 (gl_TIME_R): Likewise.
52783
52784 2006-08-09  Karl Berry  <karl@gnu.org>
52785
52786         * config/srclist.txt: no more gettext-tools, per Bruno.
52787
52788 2006-08-08  Eric Blake  <ebb9@byu.net>
52789
52790         * modules/verror: New module.
52791         * MODULES.html.sh: Document it.
52792
52793 2006-08-08  Eric Blake  <ebb9@byu.net>
52794
52795         * lib/verror.h, lib/verror.c: New files.
52796
52797 2006-08-08  Eric Blake  <ebb9@byu.net>
52798
52799         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
52800         verror_at_line output complies with GNU Coding Standards even when
52801         file is NULL.
52802
52803 2006-08-07  Bruno Haible  <bruno@clisp.org>
52804
52805         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
52806         versions of AIX.
52807         Reported by Ralf Wildenhues.
52808
52809 2006-08-07  Bruno Haible  <bruno@clisp.org>
52810
52811         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
52812         in an AC_DEFUN. Needed so that the autoconf snippets can use
52813         AC_REQUIRE.
52814
52815 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52816
52817         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52818         Initialize pkgdata_DATA.
52819         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
52820         overriding it.
52821
52822 2006-08-06  Eric Blake  <ebb9@byu.net>
52823
52824         * lib/error.h: Fold in some upstream changes from glibc.
52825         * lib/error.c: Likewise.
52826
52827 2006-08-04  Bruno Haible  <bruno@clisp.org>
52828
52829         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52830         Make the mostlyclean-local rule depend on mostlyclean-generic.
52831         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
52832
52833 2006-07-31  Bruno Haible  <bruno@clisp.org>
52834
52835         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
52836         <stdlib.h>, <string.h>.
52837
52838 2006-07-30  Bruno Haible  <bruno@clisp.org>
52839
52840         * modules/readlink (License): Change to LGPL.
52841
52842 2006-07-30  Bruno Haible  <bruno@clisp.org>
52843
52844         * modules/javaversion (Makefile.am): Distribute javaversion.java and
52845         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
52846         set PKGDATADIR to point to it.
52847
52848 2006-07-30  Bruno Haible  <bruno@clisp.org>
52849
52850         * modules/csharpexec (configure.ac): Comment out macro invocation.
52851         * modules/javaexec (configure.ac): Likewise.
52852         * modules/javacomp-script (configure.ac): Likewise.
52853
52854         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
52855
52856 2006-07-30  Bruno Haible  <bruno@clisp.org>
52857
52858         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
52859         linked-list.
52860
52861 2006-07-30  Bruno Haible  <bruno@clisp.org>
52862
52863         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
52864
52865 2006-07-30  Bruno Haible  <bruno@clisp.org>
52866
52867         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
52868         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
52869         get removed.
52870
52871 2006-07-29  Bruno Haible  <bruno@clisp.org>
52872
52873         Make it possible for gnulib-tool to work with locally modified or
52874         augmented gnulib repositories.
52875         * gnulib-tool (func_usage): Document --local-dir option.
52876         (local_gnulib_dir): New variable.
52877         Handle --local-dir option.
52878         (func_lookup_file): New function.
52879         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
52880         (func_get_description, func_get_filelist, func_get_description,
52881         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
52882         func_get_automake_snippet, func_get_include_directive,
52883         func_get_license, func_get_maintainer): Use func_lookup_file.
52884         (func_import, func_create_testdir): Use func_lookup_file.
52885
52886 2006-07-29  Bruno Haible  <bruno@clisp.org>
52887
52888         * modules/setenv (Depends-on): Add unistd.
52889
52890 2006-07-29  Bruno Haible  <bruno@clisp.org>
52891
52892         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
52893
52894 2006-07-29  Bruno Haible  <bruno@clisp.org>
52895
52896         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
52897
52898 2006-07-29  Bruno Haible  <bruno@clisp.org>
52899
52900         * gnulib-tool (import, update): If there is no Makefile.am, look at
52901         aclocal.m4, instead of bailing out.
52902
52903 2006-07-29  Bruno Haible  <bruno@clisp.org>
52904
52905         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
52906         Categorize the options by when they are useful.
52907
52908 2006-07-29  Bruno Haible  <bruno@clisp.org>
52909
52910         * gnulib-tool (func_usage): Document option --no-libtool.
52911         Handle option --no-libtool.
52912         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
52913         for changed semantics of $libtool variable.
52914         (func_import): Likewise. If libtool is not used, show this through
52915         an option --no-libtool.
52916         (func_create_testdir): Update.
52917
52918 2006-07-29  Bruno Haible  <bruno@clisp.org>
52919
52920         * gnulib-tool (func_import): Extend error message about missing
52921         --doc-base.
52922
52923 2006-07-29  Bruno Haible  <bruno@clisp.org>
52924
52925         * gnulib-tool (func_import): Don't create the $docbase directory if
52926         there is no file to store there.
52927
52928 2006-07-29  Bruno Haible  <bruno@clisp.org>
52929
52930         * gnulib-tool (autoconf_minversion): If a --dir option is given and
52931         relevant, look for configure.ac there, not in the current directory.
52932         Also use a simple search for AC_PREREQ, not "autoconf --trace".
52933
52934 2006-07-29  Bruno Haible  <bruno@clisp.org>
52935
52936         * gnulib-tool (SORT): New variable.
52937         (func_usage): Undocument --assume-autoconf option.
52938         Remove --assume-autoconf option handling.
52939         (autoconf_minversion): Determine from the contents of configure.ac.
52940         (func_import): Remove autoconf_minversion handling.
52941         Suggested by Eric Blake.
52942
52943 2006-07-29  Bruno Haible  <bruno@clisp.org>
52944
52945         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
52946
52947 2006-07-29  Bruno Haible  <bruno@clisp.org>
52948
52949         * config/srclist.txt (*setenv.[ch]): Remove rules.
52950
52951 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52952
52953         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
52954
52955 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52956
52957         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
52958         arpa/inet.h.
52959
52960 2006-07-28  Simon Josefsson  <jas@extundo.com>
52961
52962         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
52963         * modules/inet_pton (Depends-on): Likewise.
52964
52965 2006-07-28  Simon Josefsson  <jas@extundo.com>
52966
52967         * m4/netinet_in_h.m4: New file.
52968
52969 2006-07-28  Simon Josefsson  <jas@extundo.com>
52970
52971         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
52972         #include's.
52973
52974 2006-07-28  Simon Josefsson  <jas@extundo.com>
52975
52976         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
52977         #include's.
52978
52979 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
52980
52981         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
52982         setgid on directories only if they set these bits.
52983         * lib/modechange.h: Remove obsolete comment about masks.
52984
52985 2006-07-28  Eric Blake  <ebb9@byu.net>
52986
52987         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
52988         macro expansion.
52989
52990 2006-07-28  Bruno Haible  <bruno@clisp.org>
52991
52992         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
52993
52994 2006-07-28  Bruno Haible  <bruno@clisp.org>
52995
52996         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
52997
52998 2006-07-28  Bruno Haible  <bruno@clisp.org>
52999
53000         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
53001         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
53002         Define fallbacks.
53003         Avoids link error on FreeBSD 4.x.
53004         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53005
53006         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
53007         encoding.
53008         * lib/mbswidth.c (iswcntrl): Likewise.
53009
53010 2006-07-27  Bruno Haible  <bruno@clisp.org>
53011
53012         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
53013         test.
53014
53015 2006-07-27  Bruno Haible  <bruno@clisp.org>
53016
53017         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
53018         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
53019         defined.
53020
53021 2006-07-26  Eric Blake  <ebb9@byu.net>
53022
53023         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
53024
53025 2006-07-26  Eric Blake  <ebb9@byu.net>
53026
53027         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
53028         like mingw that lack mkstemp.
53029         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
53030         avoid compilation warning on mingw.
53031
53032 2006-07-26  Bruno Haible  <bruno@clisp.org>
53033
53034         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
53035         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
53036         INT_FAST*_MIN, INTPTR_MIN.
53037
53038 2006-07-25  Bruno Haible  <bruno@clisp.org>
53039
53040         * modules/version-etc (Depends-on): Add stdarg.
53041
53042 2006-07-25  Bruno Haible  <bruno@clisp.org>
53043
53044         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
53045         complex commands.
53046
53047 2006-07-25  Bruno Haible  <bruno@clisp.org>
53048
53049         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
53050         defined in <stdarg.h> or config.h.
53051
53052 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
53053
53054         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
53055         (gl_STDIO_SAFER): Remove.
53056
53057 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
53058
53059         * MODULES.html.sh (File stream based Input/Output):
53060         Add fopen-safer, tmpfile-safer; remove stdio-safer.
53061         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
53062         * modules/fopen-safer, modules/tmpfile-safer: New files.
53063         * modules/stdio-safer: Remove.
53064
53065 2006-07-24  Bruno Haible  <bruno@clisp.org>
53066
53067         * modules/tmpdir: New file.
53068         * MODULES.html.sh (File system functions): Add it.
53069
53070 2006-07-24  Bruno Haible  <bruno@clisp.org>
53071
53072         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
53073         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
53074
53075 2006-07-24  Bruno Haible  <bruno@clisp.org>
53076
53077         * modules/clean-temp: New file.
53078
53079 2006-07-24  Bruno Haible  <bruno@clisp.org>
53080
53081         * m4/tmpdir.m4: New file, from GNU gettext.
53082
53083 2006-07-24  Bruno Haible  <bruno@clisp.org>
53084
53085         * lib/tmpdir.h: New file, from GNU gettext.
53086         * lib/tmpdir.c: New file, from GNU gettext.
53087
53088 2006-07-24  Bruno Haible  <bruno@clisp.org>
53089
53090         * lib/clean-temp.h: New file, from GNU gettext.
53091         * lib/clean-temp.c: New file, from GNU gettext.
53092
53093 2006-07-23  Eric Blake  <ebb9@byu.net>
53094
53095         * modules/stdio-safer (Files): Add tmpfile-safer.c.
53096         (Depends-on): Add binary-io.
53097
53098 2006-07-23  Eric Blake  <ebb9@byu.net>
53099
53100         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
53101
53102 2006-07-23  Eric Blake  <ebb9@byu.net>
53103
53104         * lib/tmpfile-safer.c: New file.
53105         * lib/stdio-safer.h (fopen_safer): Add prototype.
53106         * lib/stdio--.h (tmpfile): Make safer.
53107
53108 2006-07-23  Bruno Haible  <bruno@clisp.org>
53109
53110         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
53111         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
53112         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
53113         gl_linked_remove_at): Use it.
53114
53115 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53116         and Simon Josefsson <jas@extundo.com>
53117
53118         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
53119
53120         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
53121
53122 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53123
53124         * modules/close-stream: New file.
53125         * modules/closeout (Description): Make it clear that it exits
53126         with a diagnostic on error.
53127         (Depends-on): Add close-stream.  Remove fpending, stdbool.
53128         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
53129
53130 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53131
53132         * m4/close-stream.m4: New file.
53133
53134 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53135
53136         * lib/close-stream.c, lib/close-stream.h: New files.
53137
53138 2006-07-22  Bruno Haible  <bruno@clisp.org>
53139
53140         Merge from GNU gettext 0.15.
53141
53142         2006-05-01  Bruno Haible  <bruno@clisp.org>
53143
53144                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
53145
53146         2006-07-22  Bruno Haible  <bruno@clisp.org>
53147
53148                 * modules/javaversion: New file.
53149                 * MODULES.html.sh (Java): Add javaversion.
53150
53151         2006-03-12  Bruno Haible  <bruno@clisp.org>
53152
53153                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
53154
53155         2005-12-04  Bruno Haible  <bruno@clisp.org>
53156
53157                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
53158                 (untested).
53159
53160         2006-06-21  Bruno Haible  <bruno@clisp.org>
53161
53162                 Avoid warnings from recent versions of mcs.
53163                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
53164                 -o, -L, -r any more. Use options documented since mcs-1.0
53165                 instead. Similarly for -g.
53166
53167         2005-12-04  Bruno Haible  <bruno@clisp.org>
53168
53169                 * build-aux/csharpcomp.sh.in: Suffix for resources is
53170                 .resources, not .resource.
53171
53172         2005-07-09  Bruno Haible  <bruno@clisp.org>
53173
53174                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
53175                 add a .dll suffix.
53176                 Reported by Mark Junker <mjscod@gmx.de>.
53177
53178         2006-07-22  Bruno Haible  <bruno@clisp.org>
53179
53180                 * modules/gettext: Upgrade to gettext-0.15.
53181                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
53182                 m4/visibility.m4.
53183                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
53184
53185 2006-07-22  Bruno Haible  <bruno@clisp.org>
53186
53187         Merge from GNU gettext 0.15.
53188
53189         2006-03-25  Bruno Haible  <bruno@clisp.org>
53190
53191                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
53192
53193         2006-07-21  Bruno Haible  <bruno@clisp.org>
53194
53195                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
53196                 "1.1".
53197
53198         2006-05-09  Bruno Haible  <bruno@clisp.org>
53199
53200                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
53201                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
53202                 for the conftestver execution.
53203
53204         2006-05-01  Bruno Haible  <bruno@clisp.org>
53205
53206                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
53207                 optional target-version argument. Verify that the compiler
53208                 groks source of the specified source-version, or add -source
53209                 option as necessary. Verify that the compiler produces
53210                 bytecode in the specified target-version, or add -target and
53211                 -source options as necessary. Make the result of the test
53212                 available as variable CONF_JAVAC. Also log error output in
53213                 config.log.
53214
53215         2006-03-11  Bruno Haible  <bruno@clisp.org>
53216
53217                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
53218
53219         2006-05-09  Bruno Haible  <bruno@clisp.org>
53220
53221                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
53222                 CLASSPATH_SEPARATOR to a semicolon.
53223
53224         2006-03-12  Bruno Haible  <bruno@clisp.org>
53225
53226                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
53227                 available as variable CONF_JAVA, for subsequent autoconf
53228                 tests. Also log error output in config.log.
53229
53230         2006-07-19  Bruno Haible  <bruno@clisp.org>
53231
53232                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
53233                 that getline works on glibc2 systems. Needed to avoid trouble
53234                 in relocatable.c.
53235                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
53236
53237         2005-12-04  Bruno Haible  <bruno@clisp.org>
53238
53239                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
53240                 launcher (untested).
53241
53242         2005-12-04  Bruno Haible  <bruno@clisp.org>
53243
53244                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
53245
53246         2006-07-22  Bruno Haible  <bruno@clisp.org>
53247
53248                 * gettext.m4: Update from GNU gettext-0.15.
53249                 * nls.m4: Likewise.
53250                 * po.m4: Likewise.
53251                 * inttypes-pri.m4: Likewise.
53252                 * inttypes-h.m4: Renamed from inttypes.m4.
53253                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
53254
53255 2006-07-22  Bruno Haible  <bruno@clisp.org>
53256
53257         Merge from GNU gettext 0.15.
53258
53259         2005-07-05  Bruno Haible  <bruno@clisp.org>
53260
53261                 * printf-args.c (printf_fetchargs): Work around broken
53262                 definition of wint_t on mingw.
53263
53264         2005-02-12  Bruno Haible  <bruno@clisp.org>
53265
53266                 * xallocsa.h: Add extern "C" for C++.
53267
53268         2006-05-17  Bruno Haible  <bruno@clisp.org>
53269
53270                 Cygwin portability.
53271                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
53272
53273         2006-04-30  Bruno Haible  <bruno@clisp.org>
53274
53275                 * progreloc.c: Include <mach-o/dyld.h> if available.
53276                 (find_executable): Use _NSGetExecutablePath when possible.
53277
53278         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
53279
53280                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
53281                 function.
53282
53283         2005-12-29  Bruno Haible  <bruno@clisp.org>
53284
53285                 * progreloc.c (set_program_name_and_installdir): Fix
53286                 compilation error.
53287
53288         2005-12-04  Bruno Haible  <bruno@clisp.org>
53289
53290                 Cygwin portability.
53291                 * progreloc.c: Include <windows.h> also on Cygwin.
53292                 (find_executable): Add support for Cygwin.
53293                 (set_program_name_and_installdir): Handle also platforms with
53294                 nonempty EXEEXT.
53295
53296         2006-07-11  Bruno Haible  <bruno@clisp.org>
53297
53298                 * javacomp.c: Fix a comment.
53299                 Reported by Jim Meyering.
53300
53301         2006-04-30  Bruno Haible  <bruno@clisp.org>
53302
53303                 * javacomp.h (compile_java_class): Add source_version,
53304                 target_version arguments.
53305                 * javacomp.c: Rewritten to choose only a compiler that
53306                 respects the specified source_version and target_version.
53307
53308         2006-06-27  Bruno Haible  <bruno@clisp.org>
53309
53310                 Assume correct S_ISDIR macro.
53311                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
53312
53313         2006-07-22  Bruno Haible  <bruno@clisp.org>
53314
53315                 * javaversion.h: New file, from GNU gettext.
53316                 * javaversion.c: New file, from GNU gettext.
53317                 * javaversion.java: New file, from GNU gettext.
53318                 * javaversion.class: New file, from GNU gettext.
53319
53320         2006-05-17  Bruno Haible  <bruno@clisp.org>
53321
53322                 Cygwin portability.
53323                 * javaexec.c (execute_java_class): Test for jview program
53324                 also on Cygwin.
53325
53326         2006-04-09  Bruno Haible  <bruno@clisp.org>
53327
53328                 * fatal-signal.c: Don't include string.h.
53329                 (at_fatal_signal): Use a copying loop instead of memcpy.
53330
53331         2005-12-04  Bruno Haible  <bruno@clisp.org>
53332
53333                 * csharpexec.c: Add support for 'clix' launcher (untested).
53334                 (execute_csharp_using_sscli): New function.
53335                 (execute_csharp_program): Call it.
53336
53337         2006-06-21  Bruno Haible  <bruno@clisp.org>
53338
53339                 Avoid warnings from recent versions of mcs.
53340                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
53341                 -o, -L, -r any more. Use options documented since mcs-1.0
53342                 instead. Similarly for -g.
53343
53344         2005-07-09  Bruno Haible  <bruno@clisp.org>
53345
53346                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
53347                 add a .dll suffix.
53348                 Reported by Mark Junker <mjscod@gmx.de>.
53349
53350         2006-06-17  Bruno Haible  <bruno@clisp.org>
53351
53352                 * config.charset: Update for NetBSD 3.0.
53353
53354         2006-05-17  Bruno Haible  <bruno@clisp.org>
53355
53356                 Cygwin portability.
53357                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
53358
53359         2006-05-16  Bruno Haible  <bruno@clisp.org>
53360
53361                 * localcharset.c [CYGWIN]: Include <windows.h>.
53362                 (get_charset_aliases): For Cygwin, return the same CPxxx
53363                 aliases list as under WIN32.
53364                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
53365                 the environment variables. Fall back to GetACP().
53366
53367         2006-04-05  Bruno Haible  <bruno@clisp.org>
53368
53369                 * config.charset: Update Juan Manuel Guerrero's address.
53370
53371         2005-02-12  Bruno Haible  <bruno@clisp.org>
53372
53373                 * allocsa.h: Add extern "C" for C++.
53374
53375         2005-02-10  Bruno Haible  <bruno@clisp.org>
53376
53377                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
53378                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
53379
53380         2006-07-22  Bruno Haible  <bruno@clisp.org>
53381
53382                 * gettext.h: Update to GNU gettext-0.15.
53383
53384 2006-07-22  Bruno Haible  <bruno@clisp.org>
53385
53386         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
53387         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
53388         lib-prefix.m4, longdouble.m4, ssize_t.m4.
53389
53390 2006-07-21  Eric Blake  <ebb9@byu.net>
53391
53392         * modules/stdlib-safer: New file.
53393         * MODULES.html.sh (File stream based Input/Output): Add
53394         stdlib-safer.
53395
53396 2006-07-21  Eric Blake  <ebb9@byu.net>
53397
53398         * lib/stdlib-safer.h: New file from coreutils, required by
53399         stdlib--.h.
53400
53401 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
53402
53403         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
53404
53405 2006-07-20  Bruno Haible  <bruno@clisp.org>
53406
53407         * gnulib-tool: Recognize new option --assume-autoconf.
53408         (autoconf_minversion): New variable.
53409         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
53410
53411 2006-07-20  Bruno Haible  <bruno@clisp.org>
53412
53413         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
53414
53415 2006-07-19  Derek R. Price  <derek@ximbiot.com>
53416
53417         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
53418         Reindent and repaginate.
53419
53420 2006-07-19  Derek Price  <derek@ximbiot.com>
53421
53422         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
53423         Correct grammar.
53424
53425 2006-07-17  Bruno Haible  <bruno@clisp.org>
53426
53427         * modules/list: New file.
53428         * modules/array-list: New file.
53429         * modules/carray-list, modules/carray-list-tests: New files.
53430         * modules/linked-list, modules/linked-list-tests: New files.
53431         * modules/avltree-list, modules/avltree-list-tests: New files.
53432         * modules/rbtree-list, modules/rbtree-list-tests: New files.
53433         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
53434         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
53435         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
53436         * modules/oset: New file.
53437         * modules/array-oset: New file.
53438         * modules/avltree-oset, modules/avltree-oset-tests: New files.
53439         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
53440         * tests/test-carray_list.c: New file.
53441         * tests/test-linked_list.c: New file.
53442         * tests/test-avltree_list.c: New file.
53443         * tests/test-rbtree_list.c: New file.
53444         * tests/test-linkedhash_list.c: New file.
53445         * tests/test-avltreehash_list.c: New file.
53446         * tests/test-rbtreehash_list.c: New file.
53447         * tests/test-avltree_oset.c: New file.
53448         * tests/test-rbtree_oset.c: New file.
53449         * MODULES.html.sh (Container data structures): New section.
53450
53451 2006-07-17  Bruno Haible  <bruno@clisp.org>
53452
53453         * m4/gl_list.m4: New file.
53454
53455 2006-07-17  Bruno Haible  <bruno@clisp.org>
53456
53457         * lib/gl_list.h: New file.
53458         * lib/gl_list.c: New file.
53459         * lib/gl_array_list.h: New file.
53460         * lib/gl_array_list.c: New file.
53461         * lib/gl_carray_list.h: New file.
53462         * lib/gl_carray_list.c: New file.
53463         * lib/gl_linked_list.h: New file.
53464         * lib/gl_linked_list.c: New file.
53465         * lib/gl_anylinked_list1.h: New file.
53466         * lib/gl_anylinked_list2.h: New file.
53467         * lib/gl_avltree_list.h: New file.
53468         * lib/gl_avltree_list.c: New file.
53469         * lib/gl_anyavltree_list1.h: New file.
53470         * lib/gl_anyavltree_list2.h: New file.
53471         * lib/gl_rbtree_list.h: New file.
53472         * lib/gl_rbtree_list.c: New file.
53473         * lib/gl_anyrbtree_list1.h: New file.
53474         * lib/gl_anyrbtree_list2.h: New file.
53475         * lib/gl_anytree_list1.h: New file.
53476         * lib/gl_anytree_list2.h: New file.
53477         * lib/gl_linkedhash_list.h: New file.
53478         * lib/gl_linkedhash_list.c: New file.
53479         * lib/gl_anyhash_list1.h: New file.
53480         * lib/gl_anyhash_list2.h: New file.
53481         * lib/gl_avltreehash_list.h: New file.
53482         * lib/gl_avltreehash_list.c: New file.
53483         * lib/gl_rbtreehash_list.h: New file.
53484         * lib/gl_rbtreehash_list.c: New file.
53485         * lib/gl_anytreehash_list1.h: New file.
53486         * lib/gl_anytreehash_list2.h: New file.
53487
53488         * lib/gl_oset.h: New file.
53489         * lib/gl_oset.c: New file.
53490         * lib/gl_array_oset.h: New file.
53491         * lib/gl_array_oset.c: New file.
53492         * lib/gl_avltree_oset.h: New file.
53493         * lib/gl_avltree_oset.c: New file.
53494         * lib/gl_rbtree_oset.h: New file.
53495         * lib/gl_rbtree_oset.c: New file.
53496         * lib/gl_anytree_oset.h: New file.
53497
53498 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53499
53500         * m4/mkancesdirs.m4: New file.
53501         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
53502         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
53503         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
53504         it.
53505
53506 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53507
53508         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
53509         * lib/mkancesdirs.h: New files.
53510         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
53511         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
53512         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
53513         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
53514         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
53515         callers changed.  Revamp internals significantly, by not
53516         attempting to create directories that are temporarily more
53517         permissive than the final results.  Do not attempt to use
53518         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
53519         This removes some race conditions, fixes some bugs, and simplifies
53520         things.  Use new dirchownmod function to do owner and mode changes.
53521         * lib/mkdir-p.h: Likewise.
53522         * lib/modechange.c (octal_to_mode): New function.
53523         (struct mode_change): New member mentioned.
53524         (make_node_op_equals): New arg mentioned.  All callers changed.
53525         (mode_compile): Keep track of which mode bits the user has explicitly
53526         mentioned.
53527         (mode_adjust): New arg DIR, so that we implement the X op correctly.
53528         New arg PMODE_BITS, to keep track of which mode bits the user
53529         mentioned; it treats S_ISUID and S_ISGID speciall.
53530         All callers changed.
53531         * lib/modechange.h: Likewise.
53532
53533 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
53534
53535         * MODULES.html.sh: Add mkancestors.
53536         * modules/mkancesdirs: New module.
53537         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
53538         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
53539         The chdir-safer and afs files are now orphans; I'll remove them
53540         unless someone speaks up.
53541         Add lib/dirchownmod.c, lib/dirchownmod.h.
53542         (Depends-on): Remove alloca, chown, save-cwd, dirname.
53543         Add lchown, mkancesdirs.
53544         (Maintainer): Add self.
53545
53546 2006-07-15  Karl Berry  <karl@gnu.org>
53547
53548         * gnulib-tool: help message wording/arrangement.
53549
53550 2006-07-14  Simon Josefsson  <jas@extundo.com>
53551
53552         * doc/gnulib.texi (Libtool and Windows): New section.
53553
53554 2006-07-12  Simon Josefsson  <jas@extundo.com>
53555
53556         * modules/gendocs (License): Fix license, approved by Karl.
53557
53558 2006-07-12  Eric Blake  <ebb9@byu.net>
53559
53560         * MODULES.html.sh: Add gendocs.
53561
53562 2006-07-11  Eric Blake  <ebb9@byu.net>
53563
53564         * modules/fdl: New module, to install doc/fdl.texi.
53565         * MODULES.html.sh: Add new section for documentation modules.
53566         * gnulib-tool: Avoid space-tab.
53567         (--doc-base): New option, to manage files from doc.
53568
53569 2006-07-11  Eric Blake  <ebb9@byu.net>
53570
53571         * m4/absolute-header.m4: Fix comments to match recent change.
53572
53573 2006-07-11  Eric Blake  <ebb9@byu.net>
53574
53575         * gnulib-tool: List --doc-base before --tests-base.
53576
53577 2006-07-11  Derek R. Price  <derek@ximbiot.com>
53578
53579         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
53580
53581 2006-07-11  Bruno Haible  <bruno@clisp.org>
53582
53583         * README: Mention where to put documentation.
53584
53585 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53586
53587         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
53588
53589 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
53590
53591         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
53592         to stdint.m4.
53593
53594 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
53595
53596         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
53597         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
53598         "no/such/file/stdint.h" when there is no such file, so that
53599         the resulting C code can be parsed by dodgy compilers.
53600         Problems reported by Bob Proulx.
53601
53602 2006-07-10  Derek R. Price  <derek@ximbiot.com>
53603
53604         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
53605         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
53606         macros into the GNU _D_EXACT_NAMLEN.
53607         * lib/savedir.c:  Likewise.
53608         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
53609
53610 2006-07-10  Derek R. Price  <derek@ximbiot.com>
53611         and Paul Eggert  <eggert@cs.ucla.edu>
53612
53613         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
53614         * m4/savedir.m4:
53615         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
53616         macros into the GNU _D_EXACT_NAMLEN.
53617
53618 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53619
53620         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
53621         around the absolute name, to work around a problem with the HP-UX
53622         11.23 native C compiler, reported by Bob Proulx.
53623
53624 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53625
53626         * doc/maintain.texi, make-stds.texi: Sync from
53627         <http://savannah.gnu.org/projects/gnustandards>.
53628
53629 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
53630
53631         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
53632
53633 2006-07-09  Jim Meyering  <jim@meyering.net>
53634
53635         * m4/glob.m4: Remove a doubled word in a comment.
53636
53637 2006-07-09  Jim Meyering  <jim@meyering.net>
53638
53639         * lib/argp-pv.c: Remove a doubled word in a comment.
53640         * lib/check-version.c (check_version): Likewise.
53641         * lib/javacomp.c (compile_java_class): Likewise.
53642
53643 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
53644
53645         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
53646         for the benefit of people using Autoconf 2.60.  If you want to
53647         support older Autoconf versions you can copy m4/onceonly_2_57.m4
53648         (or m4/onceonly.m4, if pre-2.57) manually.
53649
53650 2006-07-08  Jim Meyering  <jim@meyering.net>
53651
53652         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
53653         comment.
53654         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
53655         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
53656         comment.
53657
53658 2006-07-08  Jim Meyering  <jim@meyering.net>
53659
53660         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
53661
53662 2006-07-07  Simon Josefsson  <jas@extundo.com>
53663
53664         * tests/test-crc.c: Change expected crc value, the test vector
53665         were probably computed using the old broken crc.c?
53666
53667 2006-07-06  Simon Josefsson  <jas@extundo.com>
53668
53669         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
53670         now the canonical place for the M4 file).
53671
53672         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
53673         from the sys_socket dependency now.
53674
53675         * modules/inet_pton (Files): Ditto.
53676
53677         * modules/inet_ntop (Files): Ditto.
53678
53679 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53680
53681         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
53682         not gl_PREREQ_GETUSERSHELL.
53683
53684 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53685
53686         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
53687         with only one argument, for Autoconf 2.60.
53688         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
53689         expand to nothing, so add a shell command to avoid syntax error.
53690         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
53691
53692 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53693
53694         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
53695
53696 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53697
53698         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
53699         no longer needed.  Check for isblank decl.
53700         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
53701         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
53702         of existence.
53703
53704 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53705
53706         * lib/getloadavg.c: Use __VMS, not VMS.
53707         * lib/getopt.c: Likewise.
53708         * lib/getpagesize.h: Likewise.
53709         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
53710         and probably does not work.
53711
53712 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
53713
53714         * lib/.cppi-disable: Add wcwidth.
53715         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
53716         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
53717         (ISGRAPH): Remove.  All uses changed to isgraph.
53718         (FOLD) [!defined _LIBC]: Remove special case.
53719         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
53720         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
53721         HAVE_ISBLANK.
53722         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
53723         case.
53724
53725 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
53726
53727         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
53728         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
53729         brackets.  Other minor changes to suppress some compiler
53730         warnings.
53731
53732 2006-07-06  Derek R. Price  <derek@ximbiot.com>
53733         and Paul Eggert  <eggert@cs.ucla.edu>
53734
53735         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
53736         of invoking obsolescent AC_HEADER_DIRENT macro.
53737         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
53738         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
53739         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
53740         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
53741         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
53742         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53743         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
53744         * m4/readdir.m4: Remove; no longer needed.
53745
53746 2006-07-06  Derek R. Price  <derek@ximbiot.com>
53747         and Paul Eggert  <eggert@cs.ucla.edu>
53748
53749         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
53750         Don't worry about this obsolete case any more.
53751         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
53752         directories.
53753         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
53754         worry about this obsolete case any more.
53755         * lib/fts.c: Likewise.
53756         * lib/getcwd.c: Likewise.
53757         * lib/glob.h: Likewise.
53758         * lib/savedir.c: Likewise.
53759
53760 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
53761
53762         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
53763         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
53764         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
53765         needed.
53766         All uses removed.
53767         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53768         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
53769         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
53770         needed.
53771         * m4/getdate.m4 (gl_GETDATE): Likewise.
53772         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
53773         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
53774         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53775         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53776         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
53777         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53778         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
53779         needed.
53780
53781 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
53782
53783         * lib/memcasecmp.c: Include <limits.h>.
53784         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
53785         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
53786         Don't assume isdigit succeeds only on '0' through '9'.
53787
53788 2006-07-05  Eric Blake  <ebb9@byu.net>
53789
53790         * modules/getaddrinfo (Depends-on): Add snprintf.
53791
53792 2006-07-05  Eric Blake  <ebb9@byu.net>
53793
53794         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
53795         to avoid 'header present but could not be compiled' on cygwin.
53796
53797 2006-07-05  Eric Blake  <ebb9@byu.net>
53798
53799         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
53800         missing from netdb.h.
53801         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
53802
53803 2006-07-05  Derek R. Price  <derek@ximbiot.com>
53804
53805         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
53806         no longer needed.
53807         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
53808         * m4/getdate.m4 (gl_GETDATE): Likewise.
53809         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
53810         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
53811         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
53812         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
53813         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
53814
53815 2006-07-05  Derek R. Price  <derek@ximbiot.com>
53816
53817         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
53818         All uses of is_space replaced by isspace.
53819         * lib/exit.h: Don't talk about STDC_HEADERS.
53820         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
53821         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
53822         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
53823         replaced by isprint etc.
53824         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
53825         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
53826         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
53827         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
53828         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
53829         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
53830
53831 2006-07-05  Bruno Haible  <bruno@clisp.org>
53832
53833         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
53834         the function exists, before testing against AIX.
53835         Reported by Martin Lambers <marlam@marlam.de>.
53836
53837 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
53838
53839         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
53840         From Mark D. Baushke.
53841
53842 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
53843
53844         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
53845         to the absolute name, not just one, to bypass Sun C 5.8's
53846         "warning: #include of /usr/include/... may be non-portable".
53847
53848 2006-07-04  Eric Blake  <ebb9@byu.net>
53849
53850         * modules/dirname-tests: New test module.
53851         * tests/test-dirname.c: New file, replacing dirname.c
53852         TEST_DIRNAME section that was recently deleted.
53853
53854 2006-07-04  Bruno Haible  <bruno@clisp.org>
53855
53856         Assume ANSI C header files and <ctype.h> functions.
53857         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
53858         (mbsnwidth): Use isprint, iscntrl instead.
53859
53860 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53861
53862         Merge from coreutils.
53863         * MODULES.html.sh: Add xstrtold.
53864         * modules/xstrtold: New file.
53865         * modules/cycle-check (Files): Add lib/same-inode.h.
53866         * modules/dirname (Files): Add m4/double-slash-root.m4.
53867         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
53868         * modules/mkdir-p (Files): Add lib/same-inode.h.
53869         * modules/same (Files): Add lib/same-inode.h.
53870
53871 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53872
53873         * m4/absolute-header.m4: Renamed from full-header-path.m4.
53874         This is to keep the terminology clean; POSIX talks about
53875         "absolute pathnames", not "full pathnames", but the GNU
53876         Coding Standards say to use "path" for something else;
53877         so use "absolute" to keep both sides happy.
53878         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
53879         Set gl_absolute_header, not gl_full_header_path.
53880         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
53881         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
53882         All uses changed.
53883
53884         Merge from coreutils.
53885
53886         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
53887
53888         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
53889         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
53890         want to require the building of c-strtod.o.
53891         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
53892         needs -lm directly.
53893         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
53894
53895         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
53896
53897         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
53898         --as-needed option if available.  Problem reported by Albert Chin in
53899         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
53900         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
53901         cc merely issues a bunch of annoying warnings for --as-needed
53902         (this problem was reported by Bob Proulx).  Also, try linking with
53903         -lm to detect a bug in binutils 2.16 (this problem was reported
53904         by Ralf Wildenhues).
53905
53906         2006-06-18  Jim Meyering  <jim@meyering.net>
53907
53908         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
53909         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
53910         macro.
53911         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
53912         also check for glibc-2.4's abort-inducing bug.
53913
53914         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
53915         Low-probability clean-up should be to use rmdir to get rid of
53916         the just-created directory, not unlink.
53917
53918         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
53919         configure fail, and request a bug report to inform us about it.
53920         Add a comment that, barring reports to the contrary, in 2007 we'll
53921         assume ftruncate is universally available.
53922
53923         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
53924
53925         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
53926
53927         2006-03-12  Jim Meyering  <jim@meyering.net>
53928
53929         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
53930         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
53931         * m4/same.m4 (gl_SAME): Likewise.
53932         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
53933
53934         2006-03-11  Eric Blake  <ebb9@byu.net>
53935
53936         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
53937         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
53938         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
53939         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
53940
53941 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
53942
53943         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
53944         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
53945         reported by Mark D. Baushke, one in
53946         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
53947
53948         Merge from coreutils.
53949
53950         * lib/.cppi-disable: Add stdint_.h.
53951         * lib/.cvsignore: Add stdint.h.
53952
53953         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
53954
53955         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
53956         both double and long double versions.
53957         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
53958         * lib/xstrtold.c: New file.
53959         * lib/xstrtod.h (xstrtold): New decl.
53960
53961         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
53962
53963         * lib/filemode.c (setst): Remove.
53964         (strmode): Rewrite to avoid setst.  This makes the code shorter,
53965         (arguably) clearer, and the generated code is a bit smaller on my
53966         Debian GNU/Linux stable x86 host.
53967
53968         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
53969
53970         * lib/filemode.c: Include "filemode.h" first, to test the interface.
53971         Assume that filemode.h includes sys/types.h and sys/stat.h.
53972         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
53973         (ftypelet): Reorder to put common cases first, for efficiency.
53974         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
53975         to do 'M'.
53976         (strmode): Renamed from mode_string, and now stores 12 bytes instead
53977         of 10, for compatibility with FreeBSD.  All callers changed.
53978         (filemodestring): Now stores 12 bytes instead of 10, and sets file
53979         types that can't be deduced solely from st_mode.  First arg is now a
53980         const pointer.
53981         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
53982         (strmode): Renamed from mode_string.
53983         (filemodestring): New decl.
53984         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
53985         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
53986         needed.
53987         (S_ISPORT, S_ISWHT): New macros, if not already defined.
53988
53989         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
53990
53991         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
53992         fsusage.h now does that.  Include fsusage.h first, to test interface.
53993         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
53994         at most one method (the old code could have generated decls that
53995         didn't conform to C89, not that this was ever exercised).
53996         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
53997
53998         2006-03-19  Jim Meyering  <jim@meyering.net>
53999
54000         Work even in a chroot where d_ino values for entries in "/"
54001         don't match the stat.st_ino values for the same names.
54002         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
54003         number, iterate through all entries again, using lstat instead.
54004         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
54005         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
54006
54007         * lib/getcwd.c (__getcwd): Clarify a comment.
54008         Use memcpy in place of a call to strcpy.
54009
54010         2006-03-12  Jim Meyering  <jim@meyering.net>
54011
54012         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
54013         matches that of the current directory (which we're about to chdir ".."
54014         out of), then save the dev-ino of the parent, instead.
54015
54016         * lib/same-inode.h (SAME_INODE): New file/macro.
54017         * lib/chdir-safer.c (SAME_INODE): Remove definition.
54018         Include "same-inode.h", instead.
54019         * lib/same.c: Likewise.
54020         * lib/cycle-check.h: Include "same-inode.h".
54021         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
54022         * lib/cycle-check.c (SAME_INODE): Remove definition.
54023         * lib/root-dev-ino.h: Include "same-inode.h".
54024
54025         2006-03-11  Eric Blake  <ebb9@byu.net>
54026
54027         * lib/same.c (same_name): s/base_name/last_component/
54028         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
54029         * lib/filenamecat.c (file_name_concat): Likewise.
54030
54031         2006-03-11  Eric Blake  <ebb9@byu.net>,
54032                     Paul Eggert  <eggert@cs.ucla.edu>
54033
54034         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
54035         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
54036         drive prefix.
54037         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
54038         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
54039         (last_component): New method.
54040         * lib/dirname.c (dir_len): Determine when drive letters need a
54041         subsequent slash.  Preserve // when it is special.
54042         (dir_name): Don't append dot when drive letter is absolute.
54043         [TEST_DIRNAME]: Move into a full-blown gnulib test.
54044         * lib/basename.c (base_name): New semantics - malloc the result.
54045         Preserve // when it is special.  Preserve relative files that look
54046         like drive letters.
54047         (base_len): Preserve // when it is special.
54048         (last_component): New method, similar to old base_name semantics.
54049         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
54050         base_name.  Strip redundant slashes from ///.
54051
54052 2006-07-03  Jim Meyering  <jim@meyering.net>
54053
54054         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
54055         macro is used before the first cycle_check call.
54056
54057 2006-07-03  Eric Blake  <ebb9@byu.net>
54058
54059         * modules/dirname (Depends-on): Add xstrndup.
54060
54061 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54062
54063         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
54064         test cases, so that config.log is a bit easier to follow.
54065
54066 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54067
54068         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
54069         both are 64 bits, since this seems to be the tradition, and this
54070         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
54071         we ever run into a host that prefers long long to long in this
54072         case, we'll need another configure-time test.  Problem reported by
54073         Jim Meyering.
54074
54075 2006-07-02  Eric Blake  <ebb9@byu.net>
54076
54077         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
54078
54079 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54080
54081         * modules/inttypes (Depends-on): No longer depends on stdint.
54082         * modules/stdint (Description): Say more about assumptions.
54083         Say that the fast types might differ.  Say macros are used.
54084         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
54085         (Makefile.am): Revise list of substituted symbols to match
54086         new stdint.m4.
54087         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
54088         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
54089         * tests/test-stdint.c (verify_same_types)
54090         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
54091         the code conforms to C99/C89.
54092         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
54093         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
54094
54095 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54096
54097         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
54098         but fix a bug, by requiring at least 64 bits.
54099         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
54100         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
54101         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
54102         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
54103
54104         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
54105         changes.  Make 2.59 a prerequisite.  Check and substitute for
54106         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
54107         inttypes.h.  Do not use special include files; just use the
54108         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
54109         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
54110         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
54111         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
54112         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
54113         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
54114         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
54115         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
54116         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
54117         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
54118         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
54119         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
54120         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
54121         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
54122         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
54123         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
54124         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
54125         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
54126         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
54127         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
54128         WINT_MAX.  Check for C99 conformance more strictly, by detecting
54129         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
54130         not check for things that C99 does not require, e.g., int8_t.  If
54131         a test isn't needed unless <stdint.h> isn't working, and is
54132         unlikely to be needed for any other reason, then don't do it
54133         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
54134         size_t, since we assume C89 freestanding at least.  Do not check
54135         for sig_atomic_t, wchar_t, or wint_t, since the code now does
54136         the right thing even if the types are not defined.  Instead use:
54137         (gl_STDINT_TYPE_PROPERTIES): New macro.
54138         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
54139         testing whether <sys/types.h> clashes, as Autoconf does this for
54140         us now.  All uses removed.
54141         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
54142         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
54143         (gl_CHECK_TYPE_SAME):
54144         Remove; no longer needed.
54145         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
54146         exists, since we'll return 0 anyway in that case.
54147         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
54148
54149 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
54150
54151         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
54152         possible collision with system files.
54153         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
54154         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
54155         WCHAR_MIN and WCHAR_MAX in this case.
54156         (<stddef.h>): Do not include; no longer needed.
54157         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
54158         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
54159         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
54160         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
54161         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
54162         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
54163         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
54164         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
54165         !defined(__c99))]: Include in this case too, since it's harmless
54166         now.
54167         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
54168         dangerous to do so.
54169         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
54170         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
54171         (_STDINT_MIN, _STDINT_MAX): New macros.
54172         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
54173         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
54174         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
54175         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
54176         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
54177         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
54178         macros, not typedefs; this simplifies things quite a bit.
54179         Use long int for all types narrower than int64_t.
54180         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
54181         Define in terms of long long int or int64_t or long int,
54182         not int64_t or int32_t.  This saves some compile-time testing.
54183         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
54184         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
54185         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
54186         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
54187         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
54188         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
54189         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
54190         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
54191         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
54192         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
54193         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
54194         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
54195         undef any previous version and define our own version, for
54196         simplicity and consistency with the new macros for types.
54197         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
54198         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
54199         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
54200         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
54201         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
54202         @WINT_T_SUFFIX@ to keep things simple here.
54203         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
54204         Simplify by assuming typical 8/16/32/64 host, since we're
54205         already doing that elsewhere anyway.
54206         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
54207         and assume long long int is 64 bits if available.  This
54208         speeds up 'configure'.
54209
54210 2006-07-01  Eric Blake  <ebb9@byu.net>
54211
54212         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
54213         Reported by Andreas Buening.
54214
54215 2006-07-01  Eric Blake  <ebb9@byu.net>
54216
54217         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
54218
54219 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
54220
54221         * lib/getaddrinfo.c: fixed typo
54222
54223 2006-06-29  Jim Meyering  <jim@meyering.net>
54224
54225         * modules/strftime (Maintainer): Add my name, since with the
54226         FPRINTFTIME changes strftime.c has forked from glibc.
54227
54228 2006-06-29  Eric Blake  <ebb9@byu.net>
54229
54230         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
54231
54232 2006-06-29  Eric Blake  <ebb9@byu.net>
54233
54234         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
54235
54236 2006-06-29  Eric Blake  <ebb9@byu.net>
54237
54238         * lib/stat_.h: New file.
54239
54240 2006-06-29  Eric Blake  <ebb9@byu.net>
54241
54242         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
54243         unused static function.
54244
54245 2006-06-29  Eric Blake  <ebb9@byu.net>
54246
54247         * doc/functions.texi (Function Portability): Document missing lstat
54248         on mingw.
54249
54250 2006-06-29  Eric Blake  <ebb9@byu.net>
54251
54252         * MODULES.html.sh: Add sys_stat.
54253         * modules/sys_stat: New module.
54254         * modules/mkstemp (Depends-on): Add sys_stat.
54255
54256 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54257
54258         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
54259
54260 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54261
54262         * m4/c-bs-a.m4: Removed.
54263
54264 2006-06-29  Derek R. Price  <derek@ximbiot.com>
54265
54266         * lib/strftime.c: Assume strftime() exists.
54267
54268 2006-06-29  Derek Price  <derek@ximbiot.com>
54269
54270         * modules/c-bs-a: Removed - \a is C89.
54271         * MODULES.html.sh: Remove c-bs-a.
54272
54273 2006-06-29  Bruno Haible  <bruno@clisp.org>
54274
54275         * modules/wcwidth (License): Change to LGPL.
54276
54277 2006-06-28  Simon Josefsson  <jas@extundo.com>
54278
54279         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
54280         on _WIN32.
54281
54282         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
54283         getnameinfo.
54284
54285 2006-06-28  Simon Josefsson  <jas@extundo.com>
54286
54287         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
54288
54289 2006-06-28  Simon Josefsson  <jas@extundo.com>
54290
54291         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
54292         functions there.  It will succeed on Windows XP, but on Windows
54293         2000 and (presumably) earlier, it will fail, and use the internal
54294         re-implementation.
54295         (use_win32_p): New function.
54296         (getaddrinfo): Use strtoul on servname, to support numeric ports.
54297         Support AI_NUMERICSERV to disable getservbyname.
54298         (getnameinfo): New function, only supports
54299         NI_NUMERICHOST|NI_NUMERICSERV for now.
54300
54301         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
54302         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
54303         getnameinfo.
54304
54305 2006-06-28  Eric Blake  <ebb9@byu.net>
54306
54307         * modules/wcwidth: New file.
54308         * modules/mbchar (Depends-on): Add wcwidth.
54309         * modules/mbswidth (Depends-on): Add wcwidth.
54310         * MODULES.html.sh: Add wcwidth.
54311
54312 2006-06-28  Eric Blake  <ebb9@byu.net>
54313
54314         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
54315         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
54316
54317 2006-06-28  Eric Blake  <ebb9@byu.net>
54318
54319         * lib/xvasprintf.h: Fix comments.
54320
54321 2006-06-28  Eric Blake  <ebb9@byu.net>
54322
54323         * lib/mbchar.h (wcwidth): Include wcwidth.h.
54324         * lib/mbswidth.c (wcwidth): Move from here...
54325         * lib/wcwidth.h: ...to this new file.
54326
54327 2006-06-28  Derek R. Price  <derek@ximbiot.com>
54328
54329         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
54330
54331         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
54332         it's obsolete.
54333         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
54334
54335 2006-06-28  Derek R. Price  <derek@ximbiot.com>
54336
54337         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
54338         Autoconf 2.60 says this stuff was obsolete.
54339
54340 2006-06-28  Bruno Haible  <bruno@clisp.org>
54341
54342         * modules/wcwidth (Files): Add m4/wchar_t.m4.
54343
54344 2006-06-28  Bruno Haible  <bruno@clisp.org>
54345
54346         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
54347         gt_TYPE_WCHAR_T.
54348
54349 2006-06-28  Bruno Haible  <bruno@clisp.org>
54350
54351         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
54352         declaration for wcwidth.
54353         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
54354
54355 2006-06-28  Bruno Haible  <bruno@clisp.org>
54356
54357         * lib/mkdtemp.c [MINGW]: Include <io.h>.
54358         (mkdir): Define using _mkdir.
54359
54360 2006-06-28  Bruno Haible  <bruno@clisp.org>
54361
54362         * lib/getaddrinfo.h: Fix POSIX URL.
54363         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
54364         _WIN32.
54365         (use_win32_p): Make static.
54366         (getaddrinfo): Reject service name if it is empty or does not consist
54367         solely of decimal digits, or if its value is > 65535.
54368         (getnameinfo): Remove useless casts.
54369
54370 2006-06-27  Simon Josefsson  <jas@extundo.com>
54371
54372         * modules/sys_select: New file, suggested by Bruno Haible, Paul
54373         Eggert and Martin Lambers.
54374
54375 2006-06-27  Simon Josefsson  <jas@extundo.com>
54376
54377         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
54378         Eggert and Martin Lambers.
54379
54380 2006-06-27  Bruno Haible  <bruno@clisp.org>
54381
54382         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
54383         result to 0, not to empty.
54384         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
54385
54386 2006-06-27  Bruno Haible  <bruno@clisp.org>
54387
54388         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
54389
54390 2006-06-26  Simon Josefsson  <jas@extundo.com>
54391
54392         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
54393         present.
54394
54395 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
54396
54397         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
54398         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
54399         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
54400
54401 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
54402
54403         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
54404
54405 2006-06-26  Bruno Haible  <bruno@clisp.org>
54406
54407         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
54408
54409 2006-06-26  Bruno Haible  <bruno@clisp.org>
54410
54411         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
54412
54413 2006-06-26  Bruno Haible  <bruno@clisp.org>
54414
54415         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
54416         SGI C compiler in pre-C99 mode.
54417         Suggested by Mark D. Baushke and Larry Jones.
54418
54419 2006-06-26  Bruno Haible  <bruno@clisp.org>
54420
54421         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
54422         WCHAR_MAX.
54423         Reported by Mark D. Baushke and Larry Jones.
54424
54425 2006-06-26  Bruno Haible  <bruno@clisp.org>
54426
54427         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
54428         in pre-C99 mode.
54429         Suggested by Mark D. Baushke and Larry Jones.
54430
54431 2006-06-23  Simon Josefsson  <jas@extundo.com>
54432             Bruno Haible  <bruno@clisp.org>
54433
54434         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
54435         Emit mostlyclean-local rule.
54436         (func_emit_tests_Makefile_am): Likewise.
54437         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
54438
54439 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
54440
54441         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
54442
54443 2006-06-23  Bruno Haible  <bruno@clisp.org>
54444
54445         * tests/test-stdint.c: Update to match ISO C 99 Technical
54446         Corrigendum 1.
54447
54448 2006-06-23  Bruno Haible  <bruno@clisp.org>
54449
54450         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
54451
54452 2006-06-23  Bruno Haible  <bruno@clisp.org>
54453
54454         * lib/stdint_.h: Treat IRIX like OpenBSD.
54455
54456 2006-06-23  Bruno Haible  <bruno@clisp.org>
54457
54458         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
54459         ISO C 99 Technical Corrigendum 1.
54460
54461 2006-06-22  Simon Josefsson  <jas@extundo.com>
54462
54463         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
54464         MinGW.
54465
54466 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
54467
54468         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
54469         needed.  Some compiler complained about some of them.  Problem reported
54470         by Larry Jones in
54471         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
54472
54473 2006-06-21  Simon Josefsson  <jas@extundo.com>
54474
54475         * tests/test-getaddrinfo.c: New file.
54476
54477         * modules/getaddrinfo-tests: New file.
54478
54479         * MODULES.html.sh: Add inet_pton.
54480
54481         * modules/inet_pton: New file.
54482
54483 2006-06-21  Simon Josefsson  <jas@extundo.com>
54484
54485         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
54486         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
54487         of using the (limited) gnulib implementation on Windows XP.
54488
54489         * m4/inet_pton.m4: New file.
54490
54491 2006-06-21  Simon Josefsson  <jas@extundo.com>
54492
54493         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
54494         variable.
54495
54496         * lib/socket_.h: Don't define WINVER.
54497
54498         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
54499         slightly modified to work in gnulib.
54500
54501 2006-06-21  Simon Josefsson  <jas@extundo.com>
54502
54503         * doc/gnulib.texi (Windows sockets): Add.
54504
54505 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54506
54507         * lib/read-file.c (fread_file): Start with buffer allocation of
54508         0 bytes rather than 1 byte; this simplifies the code.
54509         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
54510         code to free buffer and save/restore errno.
54511         (internal_read_file): Remove unused local.
54512
54513 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54514
54515         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
54516         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
54517         Problem reported by Denis Excoffier in
54518         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
54519
54520 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54521
54522         * modules/sys_socket, modules/socklen: Include sys/types since
54523         FreeBSD 4.x's sys/socket.h needs it.
54524
54525 2006-06-19  Simon Josefsson  <jas@extundo.com>
54526
54527         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
54528
54529 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
54530
54531         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
54532
54533 2006-06-19  Bruno Haible  <bruno@clisp.org>
54534
54535         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
54536         and FULL_PATH_INTTYPES_H in angle brackets.
54537         Reported by Mark D. Baushke <mdb@gnu.org>.
54538
54539 2006-06-17  Eric Blake  <ebb9@byu.net>
54540
54541         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
54542         errno.
54543
54544 2006-06-17  Bruno Haible  <bruno@clisp.org>
54545
54546         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
54547         <sys/inttypes.h>.
54548
54549 2006-06-17  Bruno Haible  <bruno@clisp.org>
54550
54551         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
54552         whether errno is declared. Assume <errno.h> declares errno.
54553
54554 2006-06-17  Bruno Haible  <bruno@clisp.org>
54555
54556         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
54557
54558 2006-06-17  Bruno Haible  <bruno@clisp.org>
54559
54560         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
54561         problem on Solaris 2.5.1.
54562
54563 2006-06-16  Eric Blake  <ebb9@byu.net>
54564
54565         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
54566         * lib/unicodeio.c [!defined errno]: Likewise.
54567         * lib/strtol.c [!defined errno]: Likewise.
54568         * lib/strtod.c [!defined errno]: Likewise.
54569
54570 2006-06-15  Eric Blake  <ebb9@byu.net>
54571
54572         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
54573
54574 2006-06-15  Eric Blake  <ebb9@byu.net>
54575
54576         * config/srclist.txt (ssize_t.m4): Lose sync.
54577
54578 2006-06-15  Bruno Haible  <bruno@clisp.org>
54579
54580         * modules/stdint (Files): Include m4/full-header-path.m4,
54581         m4/size_max.m4, m4/wchar_t.m4.
54582         (Makefile.am): Many more substitutions.
54583         * modules/stdint-tests: New file.
54584         * tests/test-stdint.c: New file.
54585
54586 2006-06-15  Bruno Haible  <bruno@clisp.org>
54587
54588         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
54589         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
54590         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
54591         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
54592         gl_CHECK_TYPE_SAME): New macros.
54593
54594 2006-06-15  Bruno Haible  <bruno@clisp.org>
54595
54596         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
54597
54598 2006-06-15  Bruno Haible  <bruno@clisp.org>
54599
54600         * lib/stdint_.h: Rewritten to be fully auto-configured.
54601         Fixes bug on HP-UX/IA64.
54602
54603 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
54604
54605         * lib/getdate.y (__attribute__): Don't define if already defined.
54606         Problem reported by Larry Jones.
54607         * lib/utimens.c (__attribute__): Likewise.
54608
54609 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
54610
54611         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
54612         reported by Andreas Schwab.
54613
54614 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54615             Bruno Haible  <bruno@clisp.org>
54616
54617         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
54618         check for the declaration of strnlen and a run test that exposes the
54619         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
54620         rpl_strndup.
54621
54622 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54623             Bruno Haible  <bruno@clisp.org>
54624
54625         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
54626
54627 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54628
54629         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
54630         compile test, for Tru64 4.0D.
54631
54632 2006-05-28  Karl Berry  <karl@gnu.org>
54633
54634         * config/srclist.txt (printf-args.c): lose sync.
54635
54636 2006-05-26  Martin Lambers  <marlam@marlam.de>
54637
54638         * lib/getpass.c: Updates the test for the native W32 API, and adds
54639         missing includes, thus fixing compilation warnings.
54640
54641 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
54642
54643         * lib/exclude.c (exclude_fnmatch): New function.
54644         (excluded_file_name): Call exclude_fnmatch.
54645         * lib/exclude.h (excluded_file_name): New prototype
54646
54647 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
54648
54649         * lib/tempname.c (small_open, large_open): New macros.
54650         (__open, __open64) [!_LIBC]: Remove.
54651         (__gen_tempname): Use small_open and large_open instead of __open
54652         and __open64.  This fixes a portability bug on HP-UX 11.11i
54653         reported by Simon Wing-Tang in
54654         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
54655
54656 2006-05-24  Bruno Haible  <bruno@clisp.org>
54657
54658         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
54659         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
54660         Reported by Thorsten Maerz <torte@netztorte.de> via
54661         Aaron Stone <aaron@serendipity.cx>.
54662
54663 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54664
54665         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
54666         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
54667         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
54668         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
54669         not really conditional on the cache.
54670         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
54671
54672 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
54673
54674         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
54675         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
54676         (my_usleep): Don't mishandle maximum value.
54677
54678 2006-05-19  Jim Meyering  <jim@meyering.net>
54679
54680         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
54681
54682 2006-05-17  Bruno Haible  <bruno@clisp.org>
54683
54684         Cygwin portability.
54685         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
54686
54687 2006-05-17  Bruno Haible  <bruno@clisp.org>
54688
54689         * lib/stdint_.h: Fix recognition of Cygwin.
54690
54691 2006-05-15  Bruno Haible  <bruno@clisp.org>
54692
54693         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
54694         on libtool patch by Ralf Wildenhues.
54695
54696 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
54697
54698         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
54699         test for C99 conformance; (bool) 0.5 is an integer constant
54700         expression, but (bool) -0.5 is not.  Problem reported by Fedor
54701         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
54702
54703 2006-05-11  Simon Josefsson  <jas@extundo.com>
54704
54705         * m4/xvasprintf.m4: Fix obvious typo.
54706
54707 2006-05-11  Jim Meyering  <jim@meyering.net>
54708
54709         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
54710         James Lemley.
54711
54712 2006-05-10  Simon Josefsson  <jas@extundo.com>
54713
54714         * lib/md4.c: Typo fix, update copyright years.
54715         (K1, K2): Don't use L because it turn computations into 64-bit on
54716         64-bit platforms.
54717
54718 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
54719
54720         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
54721         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
54722         unwanted sign propagation, e.g., on hosts with 64-bit int.
54723         There still are some problems with reeelly weird theoretical hosts
54724         (e.g., 33-bit int) but it's not worth worrying about now.
54725         * lib/sha1.c (rol): Likewise.
54726         (K1, K2, K3, K4): Remove unnecessary L suffix.
54727
54728 2006-05-10  Bruno Haible  <bruno@clisp.org>
54729
54730         * lib/des.c: Cast to avoid warnings.
54731
54732 2006-05-09  Bruno Haible  <bruno@clisp.org>
54733
54734         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
54735         (Depends-on): Depend also on xsize, stdarg.
54736         (configure.ac): Add gl_XVASPRINTF.
54737
54738 2006-05-09  Bruno Haible  <bruno@clisp.org>
54739
54740         * m4/xvasprintf.m4: New file.
54741
54742 2006-05-09  Bruno Haible  <bruno@clisp.org>
54743
54744         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
54745         (EOVERFLOW): Define fallback value.
54746         (xstrcat): New function.
54747         (xvasprintf): Recognize the special case of a string concatenation.
54748
54749 2006-05-08  Eric Blake  <ebb9@byu.net>
54750
54751         * gnulib-tool (func_version): Base copyright year on CVS date.
54752         (func_emit_copyright_notice): New function.
54753         (func_emit_lib_Makefile_am): Use it.
54754         (func_emit_tests_Makefile_am): Likewise.
54755         (func_import): Likewise.
54756
54757 2006-05-08  Bruno Haible  <bruno@clisp.org>
54758
54759         * modules/stdarg: New file.
54760         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
54761
54762 2006-05-08  Bruno Haible  <bruno@clisp.org>
54763
54764         * m4/stdarg.m4: New file, from GNU gettext.
54765
54766 2006-05-08  Bruno Haible  <bruno@clisp.org>
54767
54768         * config/srclist.txt (build-aux/config.rpath): different from latest
54769         release.
54770
54771 2006-05-08  Bruno Haible  <bruno@clisp.org>
54772
54773         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
54774
54775 2006-05-05  Jim Meyering  <jim@meyering.net>
54776
54777         * m4/warning.m4: New file, derived from bison's file by the same name.
54778
54779 2006-05-03  Bruno Haible  <bruno@clisp.org>
54780
54781         * lib/stdint_.h: Shorter URL.
54782         * lib/inttypes.h: Likewise.
54783
54784 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54785
54786         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
54787
54788 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54789
54790         * lib/verify.h: Document the internals better.  Most of this change
54791         was written by Bruno Haible.
54792
54793 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
54794
54795         * doc/verify.texi: New file, partly based on a proposal by
54796         Bruno Haible.
54797
54798 2006-05-02  Bruno Haible  <bruno@clisp.org>
54799
54800         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
54801         test from here...
54802         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
54803
54804 2006-04-29  Bruno Haible  <bruno@clisp.org>
54805
54806         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
54807         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
54808
54809 2006-04-29  Bruno Haible  <bruno@clisp.org>
54810
54811         * gnulib-tool: Make --update option actually work.
54812
54813 2006-04-29  Bruno Haible  <bruno@clisp.org>
54814
54815         * doc/gcd.texi: New file.
54816         * doc/gnulib.texi: Include it.
54817
54818 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
54819
54820         * lib/getdate.y (get_date): When adding relative date, start with the
54821         initial time, not with the result of the first mktime call.
54822
54823 2006-04-25  Bruno Haible  <bruno@clisp.org>
54824
54825         * gnulib-tool (func_import): Output the include directives in three
54826         blocks, sorted separately.
54827         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54828
54829 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
54830
54831         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
54832         to define main with arguments, for C++.  Reported by Eric Blake.
54833         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
54834         Prefer 'int main ()' to 'int main (void)', for C++.
54835         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
54836         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
54837         for 'main', for C99 and C++.
54838
54839 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
54840
54841         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
54842         Don't assume that exit status -1 is valid.
54843         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
54844         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
54845         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
54846         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
54847         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
54848         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
54849         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
54850         functions can be used without declaring them, or that you can
54851         exit with status -1.
54852         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
54853
54854 2006-04-24  Karl Berry  <karl@gnu.org>
54855
54856         * config/srclist.txt (longdouble.m4): sync lost.
54857
54858 2006-04-24  Eric Blake  <ebb9@byu.net>
54859
54860         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
54861
54862 2006-04-24  Bruno Haible  <bruno@clisp.org>
54863
54864         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
54865         poll() implementation in AIX.
54866         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54867
54868 2006-04-24  Bruno Haible  <bruno@clisp.org>
54869
54870         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
54871         assigned exactly once.
54872
54873 2006-04-23  Claudio Fontana  <claudio@gnu.org>
54874             Bruno Haible  <bruno@clisp.org>
54875
54876         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
54877         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
54878         for AM_CPPFLAGS.
54879
54880 2006-04-23  Bruno Haible  <bruno@clisp.org>
54881
54882         * modules/copy-file: Depend on unistd.
54883         * modules/execute: Likewise.
54884         * modules/fatal-signal: Likewise.
54885         * modules/findprog: Likewise.
54886         * modules/mkdtemp : Likewise.
54887         * modules/pipe: Likewise.
54888         * modules/wait-process: Likewise.
54889
54890 2006-04-23  Bruno Haible  <bruno@clisp.org>
54891
54892         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
54893         condition was already detected.
54894         Reported by Ben Pfaff <blp@cs.stanford.edu>.
54895
54896 2006-04-23  Bruno Haible  <bruno@clisp.org>
54897
54898         * lib/copy-file.c: Include <unistd.h> unconditionally.
54899         * lib/execute.c: Likewise.
54900         * lib/fatal-signal.c: Likewise.
54901         * lib/findprog.c: Likewise.
54902         * lib/mkdtemp.c: Likewise.
54903         * lib/pipe.h: Likewise.
54904         * lib/pipe.c: Likewise.
54905         * lib/wait-process.h: Likewise.
54906
54907 2006-04-23  Bruno Haible  <bruno@clisp.org>
54908
54909         * gnulib-tool (func_usage): Fix --import description. Document
54910         --update.
54911         (func_import): Create temporary file in a temporary directory, if
54912         --dry-run is specified. Silence errors from 'grep' when there are no
54913         m4 files in $m4dir.
54914         (func_create_testdir): Silence errors from 'grep' when there are no
54915         m4 files in $m4dir.
54916         Reported by Karl Berry <karl@freefriends.org>.
54917
54918 2006-04-20  Bruno Haible  <bruno@clisp.org>
54919
54920         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
54921         one argument, so that the code will be portable to Autoconf 2.60.
54922         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
54923         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
54924         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
54925
54926 2006-04-19  Derek Price  <derek@ximbiot.com>
54927             Eric Blake  <ebb9@byu.net>
54928
54929         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
54930         rather than "/full/path.h".  Update comment to match.  Shorten &
54931         generalize m4_translit call via AS_TR_CPP.
54932
54933 2006-04-19  Derek Price  <derek@ximbiot.com>
54934             Eric Blake  <ebb9@byu.net>
54935
54936         * lib/inttypes.h: Correct grammar in comment.
54937
54938 2006-04-18  Derek Price  <derek@ximbiot.com>
54939             Paul Eggert  <eggert@cs.ucla.edu>
54940
54941         * modules/inttypes: New file.
54942         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
54943
54944 2006-04-18  Derek Price  <derek@ximbiot.com>
54945             Paul Eggert  <eggert@cs.ucla.edu>
54946
54947         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
54948         New files.
54949
54950 2006-04-18  Derek Price  <derek@ximbiot.com>
54951             Paul Eggert  <eggert@cs.ucla.edu>
54952
54953         * lib/inttypes.h: New file.
54954         * lib/strtoimax.c: Assume <inttypes.h>.
54955
54956 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
54957
54958         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
54959         isn't mounted.  Problem reported by Kir Kolyshkin.
54960
54961 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
54962
54963         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
54964         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
54965         Derek R. Price.
54966         * lib/regex.h (RE_DUP_MAX): Update comment to match current
54967         implementation.
54968
54969 2006-04-12  Eric Blake  <ebb9@byu.net>
54970
54971         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
54972         is now done automatically by the corresponding Autoconf macro.
54973
54974 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
54975
54976         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
54977         time_r.h.
54978
54979 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
54980
54981         Merge regex changes from libc, removing some of our
54982         POSIX-conformance changes that were rejected and redoing them in a
54983         less-intrusive way.
54984
54985         * lib/regcomp.c (re_compile_internal, init_dfa):
54986         Length arg is now size_t, not Idx.  All uses changed.
54987         (peek_token): Forward decl now says internal_function.
54988         (__re_error_msgid, __re_error_msgid_idx):
54989         Now static rather than extern with attribute_hidden.
54990         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
54991         For some reason libc prefers K&R style defns for external functions.
54992         (regerror) [!defined _LIBC]: Likewise.
54993         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
54994         (seek_collating_symbol_entry, lookup_collation_sequence_value):
54995         (build_range_exp, build_collating_symbol):
54996         Use K&R-style defn.
54997         (re_compile_fastmap): Use '\0' to memset, not 0.
54998         (utf8_sb_map): Make the calculations more obvious.
54999         (init_dfa, parse_bracket_exp, build_charclass_op):
55000         Call calloc and cast result, as glibc does.
55001         (init_word_char, fetch_token, peek_token, peek_token_bracket):
55002         (build_range_exp, build_collating_symbol):
55003         Now internal functions.
55004
55005         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
55006
55007         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
55008         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
55009         Don't depend on VMS; depend on __VMS instead, for POSIX
55010         namespace cleanness.
55011         (regoff_t): Define to ssize_t, not long int.
55012
55013         Remove the REG_ macros named below.  Instead, make the old names
55014         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
55015         __USE_GNU_REGEX.
55016         (REG_BACKSLASH_ESCAPE_IN_LISTS):
55017         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
55018         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
55019         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
55020         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
55021         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
55022         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
55023         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
55024         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
55025         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
55026         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
55027         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
55028         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
55029         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
55030         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
55031         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
55032         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
55033         (REG_NREGS):
55034         Remove.  All uses replaced by the old RE_* names.
55035         (RE_BACKSLASH_ESCAPE_IN_LISTS):
55036         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
55037         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
55038         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
55039         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
55040         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
55041         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
55042         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
55043         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
55044         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
55045         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
55046         Don't bother having these macros be independent of each others'
55047         values, since they no longer exist in the POSIX name space.
55048
55049         Rename the following member names back to their old names,
55050         unless !__USE_GNU_REGEX.  All uses changed back.
55051         (buffer): Renamed from re_buffer.
55052         (allocated): Renamed from re_allocated.
55053         (used): Renamed from re_used.
55054         (syntax): Renamed from re_syntax.
55055         (fastmap): Renamed from re_fastmap.
55056         (translate): Renamed from re_translate.
55057         (can_be_null): Renamed from re_can_be_null.
55058         (regs_allocated): Renamed from re_regs_allocated.
55059         (fastmap_accurate): Renamed from re_fastmap_accurate.
55060         (no_sub): Renamed from re_no_sub.
55061         (not_bol): Renamed from re_not_bol.
55062         (not_eol): Renamed from re_not_eol.
55063         (newline_anchor): Renamed from re_newline_anchor.
55064         (num_regs): Renamed from rm_num_regs.
55065         (start): Renamed from rm_start.
55066         (end): Renamed from rm_end.
55067
55068         (free_state): Move up a bit.
55069
55070         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
55071         #define to be empty.
55072         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
55073         when that is what is intended.
55074         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
55075         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
55076         (MAX): New macro.
55077         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
55078         All uses changed back to re_malloc, etc.  It's now the caller's
55079         responsibility to check for overflow; all callers changed.
55080         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
55081         (re_x2nrealloc): Remove.
55082         (free_state): Remove decl.
55083
55084         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
55085         (re_set_registers, re_exec):
55086         Use K&R-style defn.
55087
55088         2006-01-31  Roland McGrath  <roland@redhat.com>
55089
55090         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
55091         Reported by Mike Frysinger <vapier@gentoo.org>.
55092
55093         2006-01-15  Andreas Jaeger  <aj@suse.de>
55094
55095         [BZ #1950]
55096         * lib/regex_internal.c (re_string_reconstruct): Adjust for
55097         build_wcs_upper_buffer change.
55098         (build_wcs_upper_buffer): Change return type.
55099
55100         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
55101
55102         * lib/regex_internal.h: Include <stdint.h> if available.
55103
55104         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
55105
55106         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
55107
55108         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
55109
55110         * lib/regcomp.c: Adjust for changed secondary hash function.
55111
55112         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
55113
55114         * lib/regex.h: Pretty printing.
55115         Clean up namespace a bit.
55116
55117         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
55118
55119         * lib/regexec.c (update_cur_sifted_state, check_arrival,
55120         check_arrival_add_next_nodes): Avoid using uninitialized variable.
55121
55122         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55123                     Ulrich Drepper  <drepper@redhat.com>
55124
55125         [BZ #1302]
55126         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
55127         changed.
55128         (bitset_word_t): Renamed from bitset_word.  All uses changed.
55129
55130         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
55131
55132         [BZ #281]
55133         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
55134         * lib/regcomp.c: Remove unnecessary uses of
55135         unsigned RE_TRANSLATE_TYPE.
55136         * lib/regex_internal.h: Likewise.
55137         * lib/regex_internal.c: Likewise.
55138         * lib/regexec.c: Likewise.
55139         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
55140
55141         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
55142
55143         * lib/regexec.c (find_recover_state): Remove unnecessary
55144         initialization.
55145         (transit_state_bkref): Make DFA a const pointer.
55146         (get_subexp): Likewise.
55147         (check_arrival): Likewise.
55148         (update_cur_sifted_state): Likewise.
55149         (re_search_internal): Likewise.
55150         (prune_impossible_nodes): Likewise.
55151         (acquire_init_state_context): Likewise.
55152         (proceed_next_node): Likewise.
55153         (set_regs): Likewise.
55154         (free_fail_stack_return): Likewise.
55155         (check_arrival_expand_ecl): Mark DFA parameter as const.
55156         (check_arrival_expand_ecl_sub): Likewise.
55157         (check_subexp_limits): Likewise.
55158         (sub_epsilon_src_nodes):  Likewise.
55159         (add_epsilon_src_nodes):  Likewise.
55160         (merge_state_array): Likewise.
55161         (update_regs): Likewise.
55162         (build_trtable): Likewise.
55163         (sift_states_backward): Mark MCTX parameter as const.
55164         (build_sifted_states): Likewise.
55165         (update_cur_sifted_state): Likewise.
55166         (sift_states_mkref): Likewise.
55167         (check_arrival_expand_ecl): Mark eclosure as const.
55168         (check_dst_limits_calc_pos_1): Likewise.
55169         * lib/regex_internal.h (re_match_context_t): Make dfa a const
55170         pointer.
55171
55172         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
55173
55174         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
55175         (transit_state_sb): Likewise.
55176         (transit_state_mb): Likewise.
55177         (sift_states_iter_mb): Likewise.
55178         (check_arrival_add_next_nodes): Likewise.
55179         (check_node_accept_bytes): Change first parameter to pointer-to-const.
55180         [_LIBC] (re_search_2_stub): Use mempcpy.
55181
55182         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
55183         mbrtowc for very simple UTF-8 case.
55184
55185         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
55186         a pointer-to-const.
55187         (re_acquire_state_context): Likewise.
55188         * lib/regex_internal.h: Adjust prototypes.
55189
55190         * lib/regex.c: Prevent using C++ compilers.
55191
55192         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
55193         (re_acquire_state_context): Likewise.
55194
55195 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55196
55197         * modules/regex (Depends-on): Add ssize_t.
55198
55199 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55200
55201         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
55202         translation table.
55203
55204 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
55205
55206         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
55207
55208 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
55209             Bruno Haible  <bruno@clisp.org>
55210
55211         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
55212         <sys/types.h> and <inttypes.h>.
55213
55214 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55215
55216         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
55217         `__error_t_defined', so argp.h will not typedef the former.
55218
55219 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
55220
55221         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
55222         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
55223         glibc names.  Even if glibc is changed to conform to POSIX, the
55224         traditional names will be available anyway, since regex depends on
55225         the extensions module.  Also, fix a longstanding typo in the
55226         implementation of Spencer ERE test #75 from grep 2.3.  Problems
55227         reported by Emanuele Giaquinta.  Also, change sense of cached
55228         variable, so that the message makes sense.
55229
55230 2006-03-24  Simon Josefsson  <jas@extundo.com>
55231
55232         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
55233         including some doc fixes.
55234         (base64_encode_alloc): Fix +1 bug on allocation failures.
55235
55236 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55237
55238         * lib/base64.c (base64_encode): Do not read past end of array with
55239         unsanitized input on systems with CHAR_BIT > 8.
55240
55241 2006-03-24  Eric Blake  <ebb9@byu.net>
55242
55243         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
55244
55245 2006-03-22  Karl Berry  <karl@gnu.org>
55246
55247         * config/srclist.txt (*setenv.[ch]): get from coreutils.
55248         * config/srclistvars.sh (COREUTILS): new var.
55249
55250 2006-03-17  Jim Meyering  <jim@meyering.net>
55251
55252         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
55253         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
55254
55255 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
55256
55257         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
55258         no longer needs it.  Instead, check that regoff_t is as least
55259         as wide as ptrdiff_t.
55260
55261         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
55262         so that our regex.h stays compatible with the installed regex.
55263         This is helpful for installers who configure --without-included-regex.
55264         Problem reported by Emanuele Giaquinta.
55265
55266 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
55267
55268         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
55269         Typedef to long int, not to off_, as POSIX will likely change
55270         in that direction.
55271
55272 2006-03-15  Eric Blake  <ebb9@byu.net>
55273
55274         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
55275
55276 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
55277
55278         * lib/argp-help.c (validate_uparams): Fix typo
55279         * lib/argp-parse.c (argp_default_options): Consistently begin help
55280         messages with a lowercase letter.
55281
55282 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
55283
55284         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
55285         overrun buffers and shouldn't be used (much as gets shouldn't be
55286         used).
55287         * lib/time_r.c (asctime_r, ctime_r): Likewise.
55288
55289 2006-03-08  Simon Josefsson  <jas@extundo.com>
55290
55291         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
55292         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55293
55294 2006-03-08  Simon Josefsson  <jas@extundo.com>
55295
55296         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
55297         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55298
55299 2006-03-08  Simon Josefsson  <jas@extundo.com>
55300
55301         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
55302         signal that configure disabled the device.
55303
55304 2006-03-08  Simon Josefsson  <jas@extundo.com>
55305
55306         * build-aux/maint.mk: Fix refresh-po, to handle no translated
55307         languages.
55308
55309 2006-03-07  Simon Josefsson  <jas@extundo.com>
55310
55311         * modules/getopt (Depends-on): Add unistd.
55312
55313         * modules/unistd: New file.
55314
55315 2006-03-07  Simon Josefsson  <jas@extundo.com>
55316
55317         * modules/gc-random: New file.
55318
55319 2006-03-07  Simon Josefsson  <jas@extundo.com>
55320
55321         * m4/unistd_h.m4: New file.
55322
55323 2006-03-07  Simon Josefsson  <jas@extundo.com>
55324
55325         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
55326         test to be side-effect free by storing the result in the cache
55327         variable gl_cv_lib_readline, and moving the assignment of
55328         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
55329         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55330
55331 2006-03-07  Simon Josefsson  <jas@extundo.com>
55332
55333         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
55334         error on missing devices (the functions will return an error).
55335
55336         * m4/gc.m4: Move random stuff to gc-random.m4
55337
55338 2006-03-07  Simon Josefsson  <jas@extundo.com>
55339
55340         * lib/unistd_.h: New file.
55341
55342 2006-03-07  Simon Josefsson  <jas@extundo.com>
55343
55344         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
55345
55346 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55347
55348         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
55349         Problem reported by Juan Manuel Guerrero.
55350
55351 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55352
55353         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
55354         the unistd module.
55355         * lib/getlogin_r.c: Likewise.
55356         * lib/getlogin_r.h: Likewise.
55357         * lib/glob.c: Likewise.
55358         * lib/pagealign_alloc.c: Likewise.
55359         * lib/unistd_.h: Remove; no longer needed.
55360
55361 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
55362
55363         * MODULES.html.sh (Support for systems lacking POSIX:2001):
55364         Add unistd.
55365         * modules/c-stack (Depends-on): Add unistd.
55366         * modules/getlogin_r: Likewise.
55367         * modules/glob: Likewise.
55368         * modules/pagealign_alloc: Likewise.
55369         * modules/unistd (Files): Remove lib/unistd_.h.
55370         (EXTRA_DIST): Remove.
55371         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
55372         need unistd_.h.
55373         (MOSTLYCLEANFILES): Remove unistd.h-t.
55374
55375 2006-03-03  Simon Josefsson  <jas@extundo.com>
55376
55377         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
55378
55379 2006-03-03  Simon Josefsson  <jas@extundo.com>
55380
55381         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
55382         libidn and bison.
55383
55384 2006-03-03  Simon Josefsson  <jas@extundo.com>
55385
55386         * build-aux/maint.mk: Add indent target.
55387
55388 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
55389
55390         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
55391         our replacement poll.h in any case, to avoid a differing
55392         declaration from a system header.  Seen on AIX.
55393
55394 2006-03-01  Simon Josefsson  <jas@extundo.com>
55395
55396         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
55397         <kasal@ucw.cz>.
55398
55399 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55400
55401         * modules/gettime (Depends-on): Add extensions module.
55402         * modules/nanosleep (Depends-on): Likewise.
55403         * modules/settime (Depends-on): Likewise.
55404
55405 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
55406
55407         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
55408         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
55409         pedantically.
55410         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
55411         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
55412
55413         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
55414         not "==".  Reported by Ralf Wildenhues.
55415
55416 2006-03-01  Karl Berry  <karl@gnu.org>
55417
55418         * doc/Copyright/request-*: new files, synced from gnuorg.
55419
55420 2006-03-01  Karl Berry  <karl@gnu.org>
55421
55422         * config/srclist.txt (Copyright/*): new entries.
55423
55424 2006-02-28  Simon Josefsson  <jas@extundo.com>
55425
55426         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
55427
55428 2006-02-27  Simon Josefsson  <jas@extundo.com>
55429
55430         * lib/base64.h: Indent #define's.  From Jim Meyering
55431         <jim@meyering.net>.
55432
55433 2006-02-27  Jim Meyering  <jim@meyering.net>
55434
55435         Revert the change of 2006-02-24, so these files can continue
55436         to be sync'd from gettext.
55437         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
55438         of `config.h'.
55439
55440 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
55441
55442         * modules/intprops: New file.
55443         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
55444         Add intprops.
55445         * modules/getloadavg (Files): Remove lib/intprops.h.
55446         (Depends-on): Add intprops.
55447         * modules/human: Likewise.
55448         * modules/inttostr: Likewise.
55449         * modules/openat: Likewise.
55450         * modules/sig2str: Likewise.
55451         * modules/userspec: Likewise.
55452         * modules/utimecmp: Likewise.
55453         * modules/xnanosleep: Likewise.
55454         * modules/xstrtol: Likewise.
55455
55456 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
55457
55458         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
55459         * modules/lock-tests (TESTS): Use $(EXEEXT).
55460         * modules/tls-tests: Likewise.
55461         * modules/argp-tests: Likewise.
55462         (check_PROGRAMS): New var, replacing...
55463         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
55464
55465 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55466
55467         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
55468         `config.h'.
55469
55470 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
55471
55472         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
55473
55474 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55475
55476         Sync from coreutils.
55477         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
55478         gl_CHDIR_SAFER.
55479
55480 2006-02-22  Jim Meyering  <jim@meyering.net>
55481
55482         Sync from coreutils.
55483         * m4/chdir-safer.m4: New file.
55484
55485 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
55486
55487         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
55488         AT_FDCWD exceeds INT_MAX.
55489         * lib/openat.h (AT_FDCWD): Likewise.
55490
55491 2006-02-17  Eric Blake  <address@hidden>
55492
55493         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
55494
55495 2006-02-16  Simon Josefsson  <jas@extundo.com>
55496
55497         * modules/getaddrinfo (Depends-on): Add sys_socket.
55498
55499 2006-02-15  Simon Josefsson  <jas@extundo.com>
55500
55501         * build-aux/maint.mk: Add dsyntax-check rule.
55502
55503 2006-02-15  Eric Blake  <ebb9@byu.net>
55504
55505         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
55506         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
55507         'present but cannot compile' warnings on cygwin.
55508         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
55509         use ws2tcpip.h if sys/socket.h works.
55510         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
55511         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
55512
55513 2006-02-14  Simon Josefsson  <jas@extundo.com>
55514
55515         * modules/maintainer-makefile (Files): Rename.
55516
55517         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
55518         and (the local) Makefile.cfg to maint-cfg.mk.
55519
55520         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
55521         to the latter.
55522
55523         * modules/maintainer-makefile: New module.
55524
55525         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
55526         severaly stripped to make it possible to build it up from scratch
55527         with reliable tests.
55528
55529         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
55530         fixes to permit overriding the default actions when configure and
55531         makefile are not available.
55532
55533 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
55534
55535         Sync from coreutils.
55536         * modules/lstat (Depends-on): Don't depend on xalloc.
55537         (License): Change from GPL to LGPL, since this is now simply a
55538         replacement for a libc function.
55539
55540 2006-02-14  Jim Meyering  <jim@meyering.net>
55541
55542         Sync from coreutils.
55543
55544         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
55545         failure on deficient systems, and simplify gnulib lgpl dependencies.
55546         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
55547         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
55548
55549         * lib/xalloc-die.c: Remove unused definition of N_.
55550
55551 2006-02-14  Jim Meyering  <jim@meyering.net>
55552
55553         Sync from coreutils.
55554         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
55555         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
55556         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
55557         double-quote uses of that variable, to accommodate the rare case in
55558         which getmntent is available in none of the libraries checked.  This
55559         happens at least on FreeBSD 5.0.
55560
55561 2006-02-13  Simon Josefsson  <jas@extundo.com>
55562
55563         * gnulib-tool (Usage): Fix --import, from
55564         karl@freefriends.org (Karl Berry).
55565
55566 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
55567
55568         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
55569
55570 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
55571
55572         * lib/argp-namefrob.h: Restore changes accidentally lost during the
55573         "autoupdate" on 2005-12-12.
55574
55575 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
55576
55577         * modules/closeout (Depends-on): Remove atexit.
55578
55579 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
55580
55581         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
55582         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
55583
55584 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
55585
55586         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
55587         __EXTENSIONS__ if this causes compilation to fail.  Problem
55588         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
55589         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
55590
55591 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
55592
55593         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
55594         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
55595         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
55596         All uses changed.
55597
55598 2006-01-26  Simon Josefsson  <jas@extundo.com>
55599
55600         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
55601         prototype is visible on mingw32.
55602
55603         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
55604         for mingw32.
55605
55606         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
55607         mingw32).
55608
55609 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
55610
55611         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
55612         attempt to open for write; this always fails, at least on POSIX
55613         hosts.  This reinstates the 2006-01-09 change, which was
55614         inadvertently removed.
55615
55616 2006-01-26  Bruno Haible  <bruno@clisp.org>
55617
55618         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
55619         Reported by Paul Eggert.
55620
55621 2006-01-26  Bruno Haible  <bruno@clisp.org>
55622             Paul Eggert  <eggert@cs.ucla.edu>
55623
55624         * lib/stdbool_.h (_Bool)
55625         [(! (defined __cplusplus || defined __BEOS__)
55626           && !defined __GNUC__
55627           && !(defined __HP_cc || defined __xlc__
55628                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
55629                || defined __sgi))]:
55630         #define to signed char in these cases too; this simplifies
55631         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
55632         etc., separately) and makes it more conservative.
55633
55634 2006-01-25  Simon Josefsson  <jas@extundo.com>
55635
55636         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
55637         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
55638         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
55639
55640 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
55641
55642         * lib/argp-namefrob.h: Bugfix. Remove stray #
55643
55644 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
55645
55646         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
55647         so that we test the test.
55648         Check for yet another HP-UX cc bug involving *bool |= bool.
55649
55650 2006-01-25  Karl Berry  <karl@gnu.org>
55651
55652         * config/srclist.txt (vasnprintf.c): sync lost.
55653
55654 2006-01-25  Jim Meyering  <jim@meyering.net>
55655
55656         Sync from the stable (b5) branch of coreutils:
55657
55658         * lib/fts.c (fts_children): Don't let close() clobber errno from
55659         failed fchdir().
55660
55661         * lib/fts.c (fts_stat): When following a symlink-to-directory,
55662         don't necessarily interpret stat-fails+lstat-succeeds as indicating
55663         a dangling symlink.  That can also happen at least for ELOOP.
55664         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
55665         FYI, this bug predates the inclusion of fts.c in coreutils.
55666
55667         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
55668         in their own block, so pre-c99 compilers don't object.
55669
55670         Avoid the double-free (first in fts_read, second in fts_close) that
55671         would occur when an `active' directory is made inaccessible (e.g.,
55672         via chmod a-x) during a traversal.
55673         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
55674         before returning.  Reproduce this failure by
55675         mkdir -p a/b; cd a; chmod a-x . b
55676         Reported by Stavros Passas.
55677
55678 2006-01-25  Jim Meyering  <jim@meyering.net>
55679
55680         * lib/fileblocks.c: Remove more useless parentheses.
55681         * lib/readutmp.h: Likewise.
55682
55683 2006-01-25  Bruno Haible  <bruno@clisp.org>
55684
55685         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
55686         warnings.
55687         Reported by Paul Eggert.
55688
55689 2006-01-25  Bruno Haible  <bruno@clisp.org>
55690
55691         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
55692         rid of a trap command. For Solaris sh.
55693         Reported by Mark D. Baushke <mdb@gnu.org>.
55694
55695 2006-01-24  Simon Josefsson  <jas@extundo.com>
55696
55697         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
55698         Bruno.
55699
55700 2006-01-24  Karl Berry  <karl@gnu.org>
55701
55702         * config/srclist.txt (argp-namefrob.h): sync lost.
55703
55704 2006-01-24  Jim Meyering  <jim@meyering.net>
55705
55706         * modules/openat (Files): Add lib/intprops.h.
55707         From Mark D. Baushke.
55708
55709 2006-01-24  Jim Meyering  <jim@meyering.net>
55710
55711         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
55712         Reported by Mark D. Baushke.
55713
55714 2006-01-24  Jim Meyering  <jim@meyering.net>
55715
55716         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
55717
55718 2006-01-24  Bruno Haible  <bruno@clisp.org>
55719
55720         * modules/strnlen (Maintainer): Change from glibc to all.
55721
55722 2006-01-24  Bruno Haible  <bruno@clisp.org>
55723
55724         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
55725         Patch by Paul Eggert.
55726
55727 2006-01-24  Bruno Haible  <bruno@clisp.org>
55728
55729         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
55730         already has it.
55731         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
55732         2005-11-26.
55733
55734         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
55735         'signed char' to avoid problems with the built-in _Bool type.
55736         Reported by Paul Eggert on 2005-11-26.
55737
55738 2006-01-24  Bruno Haible  <bruno@clisp.org>
55739
55740         * gnulib-tool (func_import): Avoid constructing complicated sed
55741         expressions inside backquote.
55742         Report and solution by Mark D. Baushke <mdb@gnu.org>.
55743
55744 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
55745
55746         These changes imported from libc.
55747         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
55748         test and two separate function calls.
55749         * lib/strndup.c (__strndup): Add libc_hidden_def.
55750
55751 2006-01-23  Simon Josefsson  <jas@extundo.com>
55752
55753         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
55754         Remove the test_*_SOURCES variable: automake infers it by default.
55755         * modules/tls-tests: Likewise.
55756
55757 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55758
55759         Work around porting bugs reported by Dieter in
55760         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
55761         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
55762         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
55763         Include "getopt.h" first, to check interface.
55764         (getenv): Declare only if defined HAVE_DECL_GETENV &&
55765         !HAVE_DECL_GETENV.
55766         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
55767         (__strndup): Revert to K&R-style function dfns, the glibc style.
55768         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
55769         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
55770         Include strnlen.h first, to get prototype properly.
55771         (strnlen): Renamed from __strnlen.
55772         Remove weak alias.
55773
55774 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55775
55776         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
55777
55778 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
55779
55780         * config/srclist.txt: Adjust to reflect glibc reorganization.
55781         This affects only comments.
55782
55783 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55784
55785          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
55786          Reported by Bruce Korb <bkorb@gnu.org>.
55787
55788 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
55789
55790         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
55791         to pacify gcc -Wswitch-default.
55792
55793 2006-01-22  Bruno Haible  <bruno@clisp.org>
55794
55795         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
55796         temporary buffer for sprintf, take into account the precision also
55797         for 'd', 'i', 'u', 'o', 'x', 'X'.
55798
55799 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
55800
55801         * modules/argp-tests: New module
55802         * tests/test-argp.c: New file
55803         * tests/test-argp-2.sh: New file
55804
55805 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
55806
55807         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
55808         (__argp_base_name): Removed
55809         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
55810         typo.
55811         (__argp_base_name): Provide macro definition or extern declaration
55812         depending on the configuration
55813
55814 2006-01-20  Simon Josefsson  <jas@extundo.com>
55815
55816         * modules/inet_ntop (Depends-on): Depend on sys_socket.
55817
55818 2006-01-20  Simon Josefsson  <jas@extundo.com>
55819
55820         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
55821
55822 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
55823
55824         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
55825         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
55826         Suggested by Bruno Haible.
55827
55828 2006-01-20  Karl Berry  <karl@gnu.org>
55829
55830         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
55831         until changes propagate, I guess.
55832
55833 2006-01-19  Simon Josefsson  <jas@extundo.com>
55834
55835         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
55836
55837 2006-01-19  Simon Josefsson  <jas@extundo.com>
55838
55839         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
55840
55841 2006-01-19  Simon Josefsson  <jas@extundo.com>
55842
55843         * gnulib-tool: Set check_PROGRAMS.
55844
55845         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
55846         modules/des-tests, modules/gc-arcfour-tests,
55847         modules/gc-arctwo-tests, modules/gc-des-tests,
55848         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
55849         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
55850         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
55851         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
55852         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
55853         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
55854         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
55855         test_*_SOURCES.
55856
55857 2006-01-18  Simon Josefsson  <jas@extundo.com>
55858
55859         * modules/socklen (Depends-on): Depend on sys_socket.
55860
55861 2006-01-18  Simon Josefsson  <jas@extundo.com>
55862
55863         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
55864         modules/des-tests, modules/gc-arcfour-tests,
55865         modules/gc-arctwo-tests, modules/gc-des-tests,
55866         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
55867         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
55868         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
55869         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
55870         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
55871         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
55872         $(EXEEXT) to automake TESTS variable, for mingw32.
55873
55874 2006-01-17  Simon Josefsson  <jas@extundo.com>
55875
55876         * modules/socklen (Include): Need sys/socket.h.
55877
55878 2006-01-17  Bruno Haible  <bruno@clisp.org>
55879
55880         * modules/ssize_t (Include): Add <sys/types.h>.
55881
55882 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
55883
55884         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
55885         it's not portable and it doesn't work with cross-compiles.
55886         Problem reported by Bruno Haible.  Fix missing-$ typo in
55887         'test "gl_cv_ignore_unused_libraries" ...' that prevented
55888         -zignore from being used with Sun's C compiler.
55889
55890 2006-01-12  Simon Josefsson  <jas@extundo.com>
55891
55892         * lib/base64.c: Fix warning, reported by Bruno Haible
55893         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
55894
55895 2006-01-12  Bruno Haible  <bruno@clisp.org>
55896
55897         * modules/ldd: New file.
55898         * build-aux/ldd.sh.in: New file.
55899         * MODULES.html.sh (Support for building libraries and executables): Add
55900         ldd.
55901
55902 2006-01-12  Bruno Haible  <bruno@clisp.org>
55903
55904         * m4/ldd.m4: New file.
55905
55906 2006-01-12  Bruno Haible  <bruno@clisp.org>
55907
55908         * gnulib-tool (func_import, func_create_testdir): Don't go into an
55909         endless loop while replacing $auxdir with build-aux.
55910
55911 2006-01-11  Simon Josefsson  <jas@extundo.com>
55912
55913         * lib/stdint_.h (SIZE_MAX): Add missing (.
55914
55915 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
55916
55917         Sync from coreutils.
55918         * lib/md5.c: Fix commentary typos.
55919         (alignof, UNALIGNED_P): No need for a GCC-specific version.
55920         * lib/md5.h (__attribute__): Remove; unused.
55921         * lib/sha1.c: Fix commentary to match md5 better.
55922         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
55923         so that we don't need to worry about alignment.  All uses changed.
55924         This merges the 2005-10-28 md5 change into sha1.
55925
55926 2006-01-11  Jim Meyering  <jim@meyering.net>
55927
55928         Sync from coreutils.
55929         * lib/md5.c (OP): Fix spacing.
55930
55931 2006-01-11  Bruno Haible  <bruno@clisp.org>
55932
55933         Ensure automatic ordering between gl_LOCK and gl_ARGP.
55934         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
55935         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
55936
55937 2006-01-11  Bruno Haible  <bruno@clisp.org>
55938
55939         Ensure automatic ordering between gl_LOCK and gl_ARGP.
55940         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
55941         the "early" section as well.
55942
55943 2006-01-11  Bruno Haible  <bruno@clisp.org>
55944
55945         Avoid "ar: no archive members specified" error on MacOS X.
55946         * gnulib-tool (func_modules_add_dummy): New function.
55947         (func_import, func_create_testdir): Invoke it.
55948
55949 2006-01-11  Bruno Haible  <bruno@clisp.org>
55950
55951         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
55952         with $auxdir in AC_CONFIG_FILES statements.
55953
55954 2006-01-11  Bruno Haible  <bruno@clisp.org>
55955
55956         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
55957         Initialize also noinst_HEADERS to empty.
55958
55959 2006-01-11  Bruno Haible  <bruno@clisp.org>
55960
55961         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
55962         variables.
55963         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
55964         autoreconf.
55965
55966 2006-01-11  Bruno Haible  <bruno@clisp.org>
55967
55968         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
55969         overridable by the user.
55970         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55971
55972 2006-01-10  Simon Josefsson  <jas@extundo.com>
55973
55974         * modules/sys_socket: New file.
55975
55976 2006-01-10  Simon Josefsson  <jas@extundo.com>
55977
55978         * m4/sys_socket_h.m4: New file.
55979
55980 2006-01-10  Simon Josefsson  <jas@extundo.com>
55981
55982         * lib/socket_.h: New file.
55983
55984 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55985
55986         * modules/readutmp (Maintainer): Add myself.
55987
55988 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55989
55990         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
55991         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
55992         People who are still concerned with buggy memcmp implementations
55993         can invoke gl_FUNC_MEMCMP themselves.
55994
55995 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
55996
55997         * lib/regex_internal.h (BITSET_WORD_BITS):
55998         Work around a bug in 64-bit PGC (before version 6.1-2), where the
55999         preprocessor mishandles large unsigned values as if they were signed.
56000         Problem reported by Claudio Fontana in
56001         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
56002
56003 2006-01-10  Jim Meyering  <jim@meyering.net>
56004
56005         Avoid the double-free (first in fts_read, second in fts_close) that
56006         would occur when an `active' directory is made inaccessible (e.g.,
56007         via chmod a-x) during a traversal.
56008         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
56009         before returning.  Reproduce this failure by
56010         mkdir -p a/b; cd a; chmod a-x . b
56011         Reported by Stavros Passas.
56012
56013         Sync from coreutils.
56014         * lib/sha1.c: Tweak grammar in a comment.
56015
56016 2006-01-10  Jim Meyering  <jim@meyering.net>
56017
56018         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
56019         Patch by Joerg Sonnenberger.
56020
56021 2006-01-10  Bruno Haible  <bruno@clisp.org>
56022
56023         * modules/readutmp: Depend on module free.
56024         * modules/strtok_r: Depend on module restrict.
56025
56026 2006-01-10  Bruno Haible  <bruno@clisp.org>
56027
56028         * modules/gettext (configure.ac): Add an invocation of
56029         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
56030
56031 2006-01-10  Bruno Haible  <bruno@clisp.org>
56032
56033         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
56034         Reported by Werner Lemberg <wl@gnu.org>.
56035
56036 2006-01-10  Bruno Haible  <bruno@clisp.org>
56037
56038         * lib/localcharset.c: Update from GNU gettext.
56039
56040 2006-01-10  Bruno Haible  <bruno@clisp.org>
56041
56042         * lib/argp.h (__const): Remove macro. Use const instead.
56043         * lib/argp-fmtstream.h (__const): Likewise.
56044         * lib/glob_.h (__const): Remove macro.
56045         * lib/glob-libc.h: Use const instead of __const.
56046
56047 2006-01-10  Bruno Haible  <bruno@clisp.org>
56048
56049         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
56050         variable.
56051         Needed to avoid an automake error regarding the 'gettext' module.
56052
56053 2006-01-09  Simon Josefsson  <jas@extundo.com>
56054
56055         * modules/inet_ntop (Depends-on): Add restrict.
56056
56057 2006-01-09  Simon Josefsson  <jas@extundo.com>
56058
56059         * modules/gc-rijndael-tests (License): Put under LGPL.
56060
56061         * modules/gc-des-tests (License): Likewise.
56062
56063         * modules/gc-arcfour-tests (License): Likewise.
56064
56065         * modules/gc-arctwo-tests (License): Likewise.
56066
56067         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
56068
56069         * modules/gc-hmac-sha1-tests (Files): Likewise.
56070
56071         * modules/gc-hmac-md5-tests (License): Likewise.
56072
56073         * modules/gc-sha1-tests (License): Likewise.
56074
56075         * modules/gc-md5-tests (License): Likewise.
56076
56077         * modules/gc-md4-tests (License): Likewise.
56078
56079         * modules/gc-md2-tests (License): Likewise.
56080
56081         * modules/gc-tests (License): Likewise.
56082
56083         * modules/des-tests (License): Likewise.
56084
56085         * modules/md4-tests (License): Likewise.
56086
56087         * modules/md2-tests (License): Likewise.
56088
56089 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56090
56091         Sync from coreutils:
56092
56093         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
56094         * modules/lib-ignore: New file.
56095         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
56096         chdir-safer.m4, lchmod.m4.
56097         * modules/openat: Add mkdirat.c, openat-priv.h.
56098
56099 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56100
56101         Sync from coreutils.
56102         * m4/lib-ignore.m4: New file.
56103         * m4/lchmod.m4: New file.
56104
56105 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56106
56107         Sync from coreutils.
56108         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
56109         for write access: POSIX says that must fail.
56110         * lib/fts.c (diropen): Likewise.
56111         * lib/save-cwd.c (save_cwd): Likewise.
56112         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
56113         well, for minor improvements on hosts that lack O_DIRECTORY.
56114         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
56115         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
56116         Fall back on chown if open failed with EACCES.
56117
56118         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
56119         Report an error at compile-time if only a 1-second nominal clock
56120         resolution is found.
56121
56122         * lib/lchmod.h: New file.
56123         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
56124         (make_dir_parents): Use lchown rather than chown, and
56125         lchmod rather than chmod.
56126
56127         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
56128         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
56129         "proc" reported by n0dalus.
56130
56131         * lib/mountlist.c: Include <limits.h>.
56132         (dev_from_mount_options)
56133         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
56134         New function.  It no longer assumes "dev=" has the System V meaning
56135         on Linux (since it doesn't).  It also parses "dev=" more carefully.
56136         (read_file_system_list)
56137         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
56138         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
56139         dev= in that case.
56140
56141         * lib/posixtm.h (PDS_PRE_2000): New macro.
56142         * lib/posixtm.c (year): Arg is now syntax_bits rather than
56143         allow_century.  All usages changed.  Reject dates outside the range
56144         1969-1999 if PDS_PRE_2000 is used.
56145
56146 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
56147
56148         Sync from coreutils.
56149         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
56150         (Time of day items): Mention the possibility of leap seconds.
56151         Problem reported by Dr. David Alan Gilbert.
56152
56153 2006-01-09  Jim Meyering  <jim@meyering.net>
56154
56155         Sync from coreutils.
56156
56157         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
56158
56159         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
56160
56161         * lib/modechange.c (mode_compile): Reject an invalid mode string
56162         that starts with an octal digit.  From Andreas Gruenbacher.
56163
56164         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
56165         and dup to open_safer and dup_safer, respectively.
56166         (openat_permissive): Fix typo in comment.
56167
56168         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
56169         "gettext.h"; either no longer needed or are guaranteed by openat.h.
56170         (_): Remove; no longer needed.
56171         (openat): Renamed from rpl_openat; no need for rpl_openat
56172         since openat.h renames openat for us.
56173         Replace most of the body with a call to openat_permissive,
56174         to avoid duplicate code.
56175         Port to (probably hypothetical) environments were mode_t is
56176         wider than int.
56177         (openat_permissive): Require mode arg, so that we can check
56178         types better.  Put it just after flags.  Change cwd failure
56179         indicator from pointer-to-bool to pointer-to-errno-value.
56180         All callers changed.
56181         Invoke openat_save_fail and/or openat_restore_fail if
56182         cwd_errno is null, so that openat can call us.
56183         (openat_permissive, fdopendir, fstatat, unlinkat):
56184         Simplify errno handling to avoid some duplicate code,
56185         as it's OK to set errno on success.
56186         * lib/openat.h: Revamp code so that function macros depend on
56187         __OPENAT_PREFIX only, not also on AT_FDCWD.
56188         (openat_ro): Remove.  Caller changed to use openat_permissive.
56189         (openat_permissive): Now a macro, if not a function.
56190         (openat_restore_fail, openat_save_fail): Now always functions,
56191         since mkdirat needs them even if __OPENAT_PREFIX is defined.
56192
56193         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
56194         and openat.c.
56195         * lib/mkdirat.c: Include openat-priv.h.
56196         Remove definitions of macros defined therein.
56197         * lib/openat.c: Likewise.
56198
56199         * lib/mkdirat.c (mkdirat): New file and function.
56200         * lib/openat.h (mkdirat): Declare.
56201
56202         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
56203
56204         * lib/openat.h (openat_permissive): Declare.
56205         (openat_ro): Define.
56206
56207         * lib/openat.c (EXPECTED_ERRNO): New macro.
56208         (openat_permissive): New function -- used in remove.c rewrite.
56209         (all functions): Set errno just before returning, only if there
56210         was an actual failure.
56211         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
56212
56213         Emulate openat-family functions using Linux's procfs, if possible.
56214         Idea and some code based on Ulrich Drepper's glibc changes.
56215
56216         * lib/openat.c: (BUILD_PROC_NAME): New macro.
56217         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
56218         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
56219         before falling back on save_cwd and restore_cwd.
56220         (fdopendir, fstatat, unlinkat): Likewise.
56221
56222         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
56223         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
56224
56225         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
56226         as second argument to va_arg.  Otherwise, some versions of gcc
56227         warn that `if this code is reached, the program will abort'.
56228
56229 2006-01-09  Jim Meyering  <jim@meyering.net>
56230
56231         Sync from coreutils.
56232         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
56233         Require openat-priv.h.
56234
56235 2006-01-09  Bruno Haible  <bruno@clisp.org>
56236
56237         * modules/strnlen (Include): Use strnlen.h.
56238
56239 2006-01-09  Bruno Haible  <bruno@clisp.org>
56240
56241         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
56242
56243 2006-01-09  Bruno Haible  <bruno@clisp.org>
56244
56245         * lib/sysexit_.h (EX_OK): New macro.
56246         Suggested by Martin Lambers <marlam@marlam.de>.
56247
56248 2006-01-09  Bruno Haible  <bruno@clisp.org>
56249
56250         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
56251         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
56252
56253 2006-01-09  Bruno Haible  <bruno@clisp.org>
56254
56255         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
56256         numbers.
56257
56258 2006-01-09  Bruno Haible  <bruno@clisp.org>
56259
56260         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
56261         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
56262         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
56263         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
56264
56265 2006-01-09  Bruno Haible  <bruno@clisp.org>
56266
56267         * build-aux/javacomp.sh.in: New file, moved from lib/.
56268         * modules/javacomp-script (Files): Update.
56269         (configure.ac): Add AC_CONFIG_FILES invocation.
56270         (EXTRA_DIST): Remove variable.
56271
56272         * build-aux/javaexec.sh.in: New file, moved from lib/.
56273         * modules/javaexec (Files): Update.
56274         (configure.ac): Add AC_CONFIG_FILES invocation.
56275         (EXTRA_DIST): Remove javaexec.sh.in.
56276
56277         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
56278         * modules/csharpcomp-script (Files): Update.
56279         (configure.ac): Add AC_CONFIG_FILES invocation.
56280         (EXTRA_DIST): Remove variable.
56281
56282         * build-aux/csharpexec.sh.in: New file, moved from lib/.
56283         * modules/csharpexec (Files): Update.
56284         (configure.ac): Add AC_CONFIG_FILES invocation.
56285         (EXTRA_DIST): Remove csharpexec.sh.in.
56286
56287 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
56288
56289         Sync from coreutils.
56290
56291         Add POSIX ACL support
56292         * lib/acl.h (copy_acl, set_acl): Add declarations.
56293         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
56294         systems other than Linux.
56295         (chmod_or_fchmod): New function: use fchmod when possible,
56296         and chmod otherwise.
56297         (file_has_acl): Add a POSIX ACL implementation, with a
56298         Linux-specific subcase.
56299         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
56300         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
56301         acls are unsupported.
56302         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
56303         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
56304         are unsupported.
56305
56306 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
56307
56308         Sync from coreutils.
56309         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
56310
56311 2006-01-07  Bruno Haible  <bruno@clisp.org>
56312
56313         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
56314         gl_EARLY.
56315
56316 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56317
56318         * lib/strftime.c (tzname): Don't declare if it is already #defined.
56319         Problem reported for Mingw by Mark Junker.
56320
56321 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
56322
56323         * README: Gnulib normally doesn't generate a tarball.
56324
56325 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
56326
56327         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
56328         long int, not int, for nanosecond counts, so that people who are
56329         used to POSIX struct timespec won't be surprised.  Reported by Jim
56330         Meyering.
56331
56332 2005-12-28  Bruno Haible  <bruno@clisp.org>
56333
56334         * build-aux/config.rpath: Update from GNU gettext.
56335
56336 2005-12-16  Jim Meyering  <jim@meyering.net>
56337
56338         * modules/fprintftime: New module.
56339         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
56340
56341 2005-12-16  Jim Meyering  <jim@meyering.net>
56342
56343         * m4/fprintftime.m4: New file.
56344
56345 2005-12-16  Jim Meyering  <jim@meyering.net>
56346
56347         * lib/fprintftime.c, lib/fprintftime.h: New files.
56348
56349 2005-12-15  Simon Josefsson  <jas@extundo.com>
56350
56351         * modules/socklen (configure.ac): Fix M4 macro name, to align with
56352         new m4/socklen.m4.
56353
56354 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56355
56356         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
56357         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
56358
56359 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
56360
56361         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
56362         * lib/argp-help.c (fill_in_uparams): Check if the constructed
56363         struct uparams is valid. Fall back to the default values if it is
56364         not.
56365
56366 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56367
56368         * modules/argp (Files): Add argp-pin.c
56369         (Depends-on): dirname
56370         (lib_SOURCES): Add argp-pin.c
56371
56372 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56373
56374         * m4/argp.m4:  Check if program_invocation_name and
56375         program_invocation_short_name are declared and define appropriate
56376         macros if they are not.
56377
56378 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56379
56380         * lib/argp-help.c (__argp_base_name): New function
56381         (__argp_short_program_name): Rewrite using __argp_base_name
56382         * lib/argp-namefrob.h: Define program_invocation_name and
56383         program_invocation_short_name if requested
56384         (__argp_base_name): Add prototype
56385         * lib/argp-parse.c (argp_def): Use gettext wrappers
56386         (argp_default_parser): Use __argp_base_name
56387         * lib/argp-pin.c: New file. Defines program_invocation_name and
56388         program_invocation_short_name on systems that lack them.
56389
56390 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56391
56392         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
56393         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
56394         porting problem reported by Georg Schwarz in
56395         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
56396
56397 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
56398
56399         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
56400         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
56401         porting problem reported by Georg Schwarz in
56402         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
56403
56404 2005-12-05  Bruno Haible  <bruno@clisp.org>
56405
56406         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
56407         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
56408         Reported by Mark Junker <mjscod@gmx.de>.
56409
56410 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
56411
56412         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
56413         Use implementation from Albert Chin, with some
56414         comments/corrections by Stepan Kasal and myself.
56415
56416 2005-12-02  Bruno Haible  <bruno@clisp.org>
56417
56418         * gnulib-tool (func_import): Accept GPLed build tool modules when
56419         --lgpl is given.
56420         * modules/csharpcomp-script: New file.
56421         * modules/csharpcomp: Depend on it.
56422         * modules/javacomp-script: New file.
56423         * modules/javacomp: Depend on it.
56424         Suggested by Simon Josefsson.
56425
56426 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
56427
56428         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
56429         statement, to work around an HP-UX 10.20 compiler bug reported by
56430         Peter O'Gorman.
56431
56432 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
56433
56434         * modules/savedir (Depends-on): Add openat.
56435
56436 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
56437
56438         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
56439         (uintmax_t) [defined uintmax_t]: Do not declare.
56440         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
56441         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
56442         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
56443         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
56444         sake of portability to weird hosts that C allows (though we don't
56445         know of any practical examples).
56446
56447         * lib/savedir.h (fdsavedir): New decl.
56448         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
56449         contains most of the former guts of savedir.
56450         (savedir): Use savedirstream.
56451         Include "openat.h".
56452
56453 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
56454
56455         * modules/obstack (Files): Add m4/ulonglong.m4.
56456         Problem reported by Davide Angelocola.
56457
56458 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
56459
56460         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
56461         coreutils no longer futzes with rounding modes.
56462
56463 2005-11-14  Jim Meyering  <jim@meyering.net>
56464
56465         * lib/mkstemp-safer.c: Include <config.h>, required for possible
56466         replacement of mkstemp.
56467
56468 2005-11-10  Simon Josefsson  <jas@extundo.com>
56469
56470         * lib/readline.c: Remove EOL.
56471
56472 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56473
56474         * modules/gethrxtime (Depends-on): Add gettime.
56475
56476 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56477
56478         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
56479         or gettimeofday; no longer needed.
56480
56481 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
56482
56483         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
56484         time business.
56485         (gethrxtime) [! (HAVE_NANOUPTIME
56486         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
56487         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
56488         our own approximation.
56489
56490 2005-11-08  Eric Blake  <ebb9@byu.net>
56491
56492         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
56493
56494 2005-11-08  Eric Blake  <ebb9@byu.net>
56495
56496         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
56497
56498 2005-11-04  Bruno Haible  <bruno@clisp.org>
56499
56500         * gnulib-tool: Implement --update mode.
56501
56502 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56503
56504         Fix porting problem reported by Theodoros V. Kalamatianos.
56505         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
56506         Don't assume that futimes failing means we must fail.
56507
56508 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
56509
56510         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
56511         variables to suggest the intended function of the PATH_MAX check.
56512
56513 2005-10-30  Kean Johnston  <jkj@sco.com>
56514
56515         Trivial changes to support SCO systems.
56516         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
56517         as PATH_MAX.
56518         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
56519         where __ptr is null when no I/O is pending.
56520
56521 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
56522
56523         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
56524         leave errno alone.  Problem reported by Dmitry V. Levin.
56525
56526 2005-10-28  Simon Josefsson  <jas@extundo.com>
56527
56528         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
56529         Test more.
56530
56531         * tests/test-gc-md2.c, tests/test-md2.c: New files.
56532
56533         * modules/md2, modules/md2-tests: New files.
56534
56535 2005-10-28  Simon Josefsson  <jas@extundo.com>
56536
56537         * m4/inet_ntop.m4: More tests.
56538
56539         * m4/gc-md2.m4, md2.m4: New file.
56540
56541 2005-10-28  Simon Josefsson  <jas@extundo.com>
56542
56543         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
56544         "restrict" keywords, as per POSIX.  Protect the function
56545         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
56546         Don't use K&R prototypes.  Check the sprintf return values.
56547         Re-define EAFNOSUPPORT if not present.  Indent.
56548
56549         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
56550         suggested by Bruno Haible <bruno@clisp.org>.
56551
56552         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
56553
56554         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
56555
56556         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
56557         libgcrypt).
56558
56559         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
56560
56561         * lib/md2.h, lib/md2.c: New files.
56562
56563 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
56564
56565         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
56566         errno alone.  Problem reported by Frederic Jolliton.
56567
56568 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
56569
56570         * modules/verify (License): Change from GPL to LGPL.  This is a
56571         tiny module and there are apparently near-equivalents that are
56572         under the BSD license.
56573
56574 2005-10-24  Simon Josefsson  <jas@extundo.com>
56575
56576         * modules/sha1: Relicense to LGPL.
56577
56578 2005-10-24  Simon Josefsson  <jas@extundo.com>
56579
56580         * lib/md4.h: Shrink buffer size, now that we changed the type.
56581
56582 2005-10-23  Simon Josefsson  <jas@extundo.com>
56583
56584         * gnulib-tool (func_import): Fix --tests-base.
56585
56586 2005-10-22  Simon Josefsson  <jas@extundo.com>
56587
56588         * modules/arcfour (Depends-on): Need stdint.
56589
56590 2005-10-22  Simon Josefsson  <jas@extundo.com>
56591
56592         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
56593         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
56594
56595 2005-10-22  Simon Josefsson  <jas@extundo.com>
56596
56597         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
56598         suggested by Bruno Haible <bruno@clisp.org>.
56599
56600 2005-10-22  Simon Josefsson  <jas@extundo.com>
56601
56602         * lib/crc.h: Include stddef.h, for size_t.
56603
56604 2005-10-22  Simon Josefsson  <jas@extundo.com>
56605
56606         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
56607         arcfour_context struct (simplify test vector testing in GNU
56608         Shishi).
56609
56610 2005-10-21  Simon Josefsson  <jas@extundo.com>
56611
56612         * modules/des, modules/des-tests: New files.
56613
56614         * modules/gc-des, modules/gc-des-tests: New files.
56615
56616         * tests/test-des.c, tests/test-gc-des.c: New file.
56617
56618 2005-10-21  Simon Josefsson  <jas@extundo.com>
56619
56620         * modules/arctwo, modules/arctwo-tests: New files.
56621
56622         * tests/test-arctwo.c: New file.
56623
56624         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
56625
56626         * tests/test-gc-arctwo.c: New file.
56627
56628 2005-10-21  Simon Josefsson  <jas@extundo.com>
56629
56630         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
56631         Bruno Haible <bruno@clisp.org>.
56632
56633         * m4/gc-des.m4: New file.
56634
56635 2005-10-21  Simon Josefsson  <jas@extundo.com>
56636
56637         * m4/arctwo.m4: New file.
56638
56639         * m4/gc-arctwo.m4: New file.
56640
56641 2005-10-21  Simon Josefsson  <jas@extundo.com>
56642
56643         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
56644         block.
56645
56646 2005-10-21  Simon Josefsson  <jas@extundo.com>
56647
56648         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
56649         <bruno@clisp.org>.
56650
56651         * lib/hmac-sha1.c (hmac_sha1): Likewise.
56652
56653         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
56654         Bruno Haible <bruno@clisp.org>.
56655
56656         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
56657         <bruno@clisp.org>.
56658
56659 2005-10-21  Simon Josefsson  <jas@extundo.com>
56660
56661         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
56662
56663 2005-10-21  Simon Josefsson  <jas@extundo.com>
56664
56665         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
56666
56667 2005-10-21  Simon Josefsson  <jas@extundo.com>
56668
56669         * lib/des.h, lib/des.c: New files.
56670
56671         * lib/gc-gnulib.c: Support DES.c
56672
56673 2005-10-21  Simon Josefsson  <jas@extundo.com>
56674
56675         * lib/arctwo.h, lib/arctwo.c: New files.
56676
56677         * lib/gc-gnulib.c: Support ARCTWO.
56678
56679 2005-10-21  Simon Josefsson  <jas@extundo.com>
56680
56681         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
56682         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56683
56684 2005-10-21  Simon Josefsson  <jas@extundo.com>
56685
56686         * gnulib-tool (func_import, func_create_testdir): Define automake
56687         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
56688         Makefile.am snippet),
56689         suggested by Bruno Haible <bruno@clisp.org>.
56690
56691         * modules/gc (Makefile.am): Use it.
56692
56693 2005-10-21  Bruno Haible  <bruno@clisp.org>
56694
56695         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
56696         patch.
56697
56698 2005-10-19  Simon Josefsson  <jas@extundo.com>
56699
56700         * tests/test-gc-rijndael.c: New file.
56701
56702         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
56703
56704 2005-10-19  Simon Josefsson  <jas@extundo.com>
56705
56706         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
56707         interface too.
56708
56709 2005-10-19  Simon Josefsson  <jas@extundo.com>
56710
56711         * tests/test-gc-arcfour.c: New file.
56712
56713         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
56714
56715 2005-10-19  Simon Josefsson  <jas@extundo.com>
56716
56717         * modules/gc-md4, modules/gc-md4-tests: New file.
56718
56719         * tests/test-gc-md4.c: New file.
56720
56721 2005-10-19  Simon Josefsson  <jas@extundo.com>
56722
56723         * m4/gc-md4.m4: New file.
56724
56725 2005-10-19  Simon Josefsson  <jas@extundo.com>
56726
56727         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
56728         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
56729         <kasal@ucw.cz>.
56730
56731 2005-10-19  Simon Josefsson  <jas@extundo.com>
56732
56733         * m4/gc-arcfour.m4: New file.
56734
56735         * m4/gc-rijndael.m4: New file.
56736
56737 2005-10-19  Simon Josefsson  <jas@extundo.com>
56738
56739         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
56740
56741 2005-10-19  Simon Josefsson  <jas@extundo.com>
56742
56743         * lib/gc-gnulib.c: Support ARCFOUR.
56744
56745 2005-10-19  Simon Josefsson  <jas@extundo.com>
56746
56747         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
56748         support.
56749
56750         * lib/gc.h: Add ECB enum type.
56751
56752         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
56753
56754 2005-10-18  Simon Josefsson  <jas@extundo.com>
56755
56756         * tests/test-md5.c: New file.
56757
56758         * modules/md5-tests: New file.
56759
56760 2005-10-18  Simon Josefsson  <jas@extundo.com>
56761
56762         * tests/test-md4.c: New file.
56763
56764         * modules/md4, modules/md4-tests: New files.
56765
56766 2005-10-18  Simon Josefsson  <jas@extundo.com>
56767
56768         * m4/md4.m4: New file.
56769
56770 2005-10-18  Simon Josefsson  <jas@extundo.com>
56771
56772         * lib/md4.h, lib/md4.c: New files, based on md5.?.
56773
56774 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
56775
56776         * gnulib-tool (func_create_testdir): Omit the second check whether
56777         BUILT_SOURCES in nonempty.
56778
56779 2005-10-17  Simon Josefsson  <jas@extundo.com>
56780
56781         * tests/test-rijndael.c: New file.
56782
56783 2005-10-17  Simon Josefsson  <jas@extundo.com>
56784
56785         * modules/sha1: Depend on stdint instead of md5.
56786
56787         * modules/md5: Depend on stdint, remove uint32_t.
56788
56789 2005-10-17  Simon Josefsson  <jas@extundo.com>
56790
56791         * modules/gc-sha1-tests: New file.
56792
56793         * tests/test-gc-sha1.c: New file.
56794
56795 2005-10-17  Simon Josefsson  <jas@extundo.com>
56796
56797         * m4/md5.m4: Remove call to uint32_t.m4.
56798
56799 2005-10-17  Simon Josefsson  <jas@extundo.com>
56800
56801         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
56802
56803         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
56804         md5.h.
56805
56806         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
56807
56808         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
56809
56810 2005-10-17  Simon Josefsson  <jas@extundo.com>
56811
56812         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
56813
56814 2005-10-17  Simon Josefsson  <jas@extundo.com>
56815
56816         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
56817
56818 2005-10-17  Simon Josefsson  <jas@extundo.com>
56819
56820         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
56821
56822         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
56823
56824 2005-10-17  Bruno Haible  <bruno@clisp.org>
56825
56826         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
56827         that it can also be used in a test.
56828
56829 2005-10-16  Bruno Haible  <bruno@clisp.org>
56830
56831         * gnulib-tool (func_emit_tests_Makefile_am): Also define
56832         TESTS_ENVIRONMENT, so that individual tests can augment it.
56833
56834         * gnulib-tool (func_create_testdir): Use an intermediate target for
56835         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
56836         macros, like $(ALLOCA_H), which cannot be passed through the command
56837         line.
56838
56839 2005-10-15  Simon Josefsson  <jas@extundo.com>
56840
56841         * modules/rijndael-tests: New file.
56842
56843         * modules/rijndael: New file.
56844
56845 2005-10-15  Simon Josefsson  <jas@extundo.com>
56846
56847         * m4/rijndael.m4: New file.
56848
56849 2005-10-15  Simon Josefsson  <jas@extundo.com>
56850
56851         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
56852
56853         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
56854
56855 2005-10-14  Simon Josefsson  <jas@extundo.com>
56856
56857         * tests/test-arcfour.c: New file.
56858
56859         * modules/arcfour, modules/arcfour-tests: New files.
56860
56861 2005-10-14  Simon Josefsson  <jas@extundo.com>
56862
56863         * m4/arcfour.m4: New file.
56864
56865 2005-10-14  Simon Josefsson  <jas@extundo.com>
56866
56867         * lib/arcfour.h, lib/arcfour.c: New files.
56868
56869 2005-10-14  Roland McGrath  <roland@redhat.com>
56870
56871         Import from libc.  [BZ #1331]
56872         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
56873         macro argument.
56874         Reported by Matej Vela <vela@debian.org>.
56875
56876 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56877
56878         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
56879         include <wchar.h>; no longer needed.
56880
56881 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
56882
56883         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
56884
56885 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
56886         and  Ulrich Drepper  <drepper@redhat.com>
56887
56888         Import from libc.
56889         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
56890         instead of inline stream orientation test and two separate
56891         function calls.  Pay no attention to USE_IN_LIBIO.
56892
56893 2005-10-13  Simon Josefsson  <jas@extundo.com>
56894
56895         * modules/gc-hmac-md5-tests: New file.
56896
56897         * tests/test-gc-hmac-sha1.c: New file.
56898
56899         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
56900
56901         * modules/gc-hmac-md5-tests: New file.
56902
56903         * tests/test-gc-md5.c: New file.
56904
56905         * modules/gc-md5-tests: New file.
56906
56907 2005-10-13  Simon Josefsson  <jas@extundo.com>
56908
56909         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
56910         Move memory allocation outside of loop.
56911
56912 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
56913
56914         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
56915         intermediate directory is in a read-only file system.  Problem
56916         reported by Eric Blake.
56917
56918 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
56919
56920         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
56921
56922 2005-10-12  Simon Josefsson  <jas@extundo.com>
56923
56924         * tests/test-hmac-sha1.c: New file.
56925
56926         * modules/hmac-sha1-tests: New file.
56927
56928         * modules/hmac-sha1: New file.
56929
56930 2005-10-12  Simon Josefsson  <jas@extundo.com>
56931
56932         * modules/gc-sha1: New file.
56933
56934 2005-10-12  Simon Josefsson  <jas@extundo.com>
56935
56936         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
56937
56938         * tests/test-gc-pbkdf2-sha1.c: New file.
56939
56940 2005-10-12  Simon Josefsson  <jas@extundo.com>
56941
56942         * modules/gc-md5, modules/gc-hmac-md5: New files.
56943
56944         * modules/gc (Files): Remove md5, memxor and hmac files.
56945
56946 2005-10-12  Simon Josefsson  <jas@extundo.com>
56947
56948         * m4/gc-pbkdf2-sha1.m4: New file.
56949
56950         * m4/gc-hmac-sha1.m4: New file.
56951
56952         * m4/gc-sha1: New file.
56953
56954         * m4/hmac-sha1.m4: New file.
56955
56956 2005-10-12  Simon Josefsson  <jas@extundo.com>
56957
56958         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
56959
56960         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
56961
56962 2005-10-12  Simon Josefsson  <jas@extundo.com>
56963
56964         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
56965         suggested by Bruno Haible <bruno@clisp.org>.
56966
56967 2005-10-12  Simon Josefsson  <jas@extundo.com>
56968
56969         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
56970
56971 2005-10-12  Simon Josefsson  <jas@extundo.com>
56972
56973         * lib/gc-pbkdf2-sha1.c: New file.
56974
56975         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
56976
56977 2005-10-12  Simon Josefsson  <jas@extundo.com>
56978
56979         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
56980
56981         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
56982
56983 2005-10-12  Simon Josefsson  <jas@extundo.com>
56984
56985         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
56986         GC_USE_HMAC_MD5, respectively.
56987
56988         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
56989         (gc_md5): Fix typo.
56990
56991         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
56992
56993         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
56994
56995         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
56996
56997 2005-10-12  Bruno Haible  <bruno@clisp.org>
56998
56999         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
57000         Reported by Stepan Kasal <kasal@ucw.cz>.
57001
57002 2005-10-11  Simon Josefsson  <jas@extundo.com>
57003
57004         * tests/test-crc.c: New file.
57005
57006         * modules/crc, modules/crc-tests: New files.
57007
57008 2005-10-11  Simon Josefsson  <jas@extundo.com>
57009
57010         * m4/crc.m4: New file.
57011
57012 2005-10-11  Simon Josefsson  <jas@extundo.com>
57013
57014         * lib/gc.h: Add gc_hash and gc_hash_buffer.
57015
57016         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
57017
57018         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
57019
57020 2005-10-11  Simon Josefsson  <jas@extundo.com>
57021
57022         * lib/crc.h, lib/crc.c: New files.
57023
57024         * lib/gc.h (gc_hash_buffer): Add doc.
57025
57026 2005-10-11  Bruno Haible  <bruno@clisp.org>
57027
57028         * modules/c-strcasestr: New file.
57029         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
57030
57031 2005-10-11  Bruno Haible  <bruno@clisp.org>
57032
57033         * modules/c-strcase: New file.
57034         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
57035
57036 2005-10-11  Bruno Haible  <bruno@clisp.org>
57037
57038         * lib/strcasecmp.c: Include limits.h.
57039         (strcasecmp): Avoid integer overflow on exotic platforms.
57040         * lib/strncasecmp.c: Include limits.h.
57041         (strncasecmp): Avoid integer overflow on exotic platforms.
57042         Reported by Paul Eggert.
57043
57044 2005-10-11  Bruno Haible  <bruno@clisp.org>
57045
57046         * lib/c-strcasestr.h: New file, from GNU gettext.
57047         * lib/c-strcasestr.c: New file, from GNU gettext.
57048
57049 2005-10-11  Bruno Haible  <bruno@clisp.org>
57050
57051         * lib/c-strcase.h: New file, from GNU gettext.
57052         * lib/c-strcasecmp.c: New file, from GNU gettext.
57053         * lib/c-strncasecmp.c: New file, from GNU gettext.
57054
57055 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
57056
57057         * modules/mempcpy (License): GPL -> LGPL.
57058         * modules/strchrnul (License): Likewise.
57059         * modules/sysexits (License): Likewise.
57060
57061 2005-10-08  Simon Josefsson  <jas@extundo.com>
57062
57063         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
57064
57065 2005-10-07  Simon Josefsson  <jas@extundo.com>
57066
57067         * m4/memxor.m4: Remove gl_C_RESTRICT call.
57068
57069 2005-10-06  Simon Josefsson  <jas@extundo.com>
57070
57071         * tests/test-hmac-md5.c: New file.
57072
57073         * modules/hmac-md5-tests: New file.
57074
57075         * modules/hmac-md5: New file.
57076
57077 2005-10-06  Simon Josefsson  <jas@extundo.com>
57078
57079         * m4/hmac-md5.m4: New file.
57080
57081         * m4/memxor.m4: Require gl_C_RESTRICT.
57082
57083 2005-10-06  Simon Josefsson  <jas@extundo.com>
57084
57085         * lib/memxor.c (memxor): Avoid casts and warnings.
57086
57087 2005-10-06  Simon Josefsson  <jas@extundo.com>
57088
57089         * lib/hmac-md5.c: New file.
57090
57091         * lib/hmac.h: New file.
57092
57093 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
57094
57095         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
57096         promotes to int, not unsigned int, to catch the AIX 5.3
57097         compiler bug.
57098
57099 2005-10-05  Simon Josefsson  <jas@extundo.com>
57100
57101         * modules/memxor: New file.
57102
57103         * modules/iconv (Files): Move config.rpath to havelib, it is used
57104         there.
57105
57106         * modules/havelib (Files): Add config.rpath.
57107
57108 2005-10-05  Simon Josefsson  <jas@extundo.com>
57109
57110         * m4/memxor.m4: New file.
57111
57112 2005-10-05  Simon Josefsson  <jas@extundo.com>
57113
57114         * lib/memxor.c (memxor): Fix compiler error.
57115
57116         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
57117         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
57118
57119         * lib/memxor.h, lib/memxor.c: New files.
57120
57121         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
57122         we assume all systems have it, suggested by Jim Meyering
57123         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
57124         any systems lack sys/socket.h; mingw32 is known to lack it, but we
57125         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
57126         same reasons.
57127
57128 2005-10-05  Simon Josefsson  <jas@extundo.com>
57129
57130         * config/srclist.txt: Add glibc bug 1423 for md5.h.
57131
57132 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
57133
57134         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
57135         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
57136         needed, since the source code now assumes these .h files.
57137
57138 2005-10-05  Derek Price  <derek@ximbiot.com>
57139
57140         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
57141
57142 2005-10-05  Bruno Haible  <bruno@clisp.org>
57143
57144         * modules/stdint (License): Change to LGPL.
57145
57146 2005-10-04  Simon Josefsson  <jas@extundo.com>
57147
57148         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
57149         D. Baushke" <mdb@gnu.org>.
57150
57151 2005-10-04  Bruno Haible  <bruno@clisp.org>
57152
57153         * lib/verify.h (verify_true): Provide alternative definition for C++.
57154
57155 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
57156
57157         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
57158         (SSIZE_MAX): New macro, if not already defined.
57159         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
57160         than 2 GiB.
57161
57162 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57163
57164         Sync from coreutils.
57165         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
57166         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
57167         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
57168         ULLONG_MAX doesn't work with 2.7.2.1.
57169
57170 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57171
57172         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
57173         From Ben Pfaff.
57174
57175         * modules/exclude (Depends-on): Depend on verify.
57176         * modules/strtoimax (Depends-on): Likewise.
57177         * modules/utimecmp (Depends-on): Likewise.
57178
57179 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
57180
57181         * lib/exclude.c: Include verify.h.
57182         (verify): Remove.  All callers changed to use verify.h's version.
57183         * lib/strtoimax.c: Likewise.
57184         * lib/utimecmp.c: Likewis.e
57185
57186         Sync from coreutils.
57187         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
57188         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
57189         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
57190         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
57191         bother returning ENOSYS if settimeofday or stime fails; just let
57192         them return whatever errno they want to return.
57193         * lib/utimens.c: Include unistd.h, for dup2.
57194         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
57195         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
57196
57197 2005-10-02  Jim Meyering  <jim@meyering.net>
57198
57199         Sync from coreutils.
57200         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
57201         from glibc-2.2.5 that fails for read-only files.
57202
57203 2005-10-02  Jim Meyering  <jim@meyering.net>
57204
57205         Sync from coreutils.
57206         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
57207         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
57208         `#if HAVE_CONFIG_H'.
57209         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
57210         Remove AT_FDCWD test.
57211         Do not consume the fd unless successful.
57212         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
57213         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
57214         block, so that we don't even try to compile it if settimeofday is
57215         available.  This works around a compilation failure on OSF1 V5.1,
57216         due to stime requiring a `long int*' while tv_sec is `int'.
57217
57218 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
57219
57220         Sync from coreutils.
57221         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
57222         against `yes', rather than just testing for nonempty.
57223
57224 2005-10-01  Simon Josefsson  <jas@extundo.com>
57225
57226         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
57227         and Darwin.
57228
57229         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
57230         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
57231         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
57232         freeaddrinfo and gai_strerror are declared by the POSIX headers.
57233         Check if struct addrinfo is declared.
57234
57235 2005-10-01  Simon Josefsson  <jas@extundo.com>
57236
57237         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
57238         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
57239         AI_* and EAI_* definitions.  Protect function declarations.
57240
57241 2005-10-01  Jim Meyering  <jim@meyering.net>
57242
57243         Sync from coreutils.
57244
57245         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
57246         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
57247         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
57248         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
57249         in the inet and nsl libraries.  Required on Solaris 5.7.
57250
57251 2005-10-01  Jim Meyering  <jim@meyering.net>
57252
57253         Sync from coreutils.
57254         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
57255         in the inet and nsl libraries.  Required on Solaris 5.7.
57256
57257 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
57258
57259         * lib/getdelim.c (getdelim): Remove unused variables.
57260
57261 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
57262
57263         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
57264         so that the code works even with ancient cpp.  Portability problem
57265         with GCC 2.7.2.1 reported by Thomas M.Ott.
57266
57267 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
57268
57269         * modules/regex (Depends-on): Add strcase.
57270
57271         * modules/gethostname (Licence): Change from GPL to LGPL, since
57272         gethostname.c is a trivial implementation of a standard library
57273         function.
57274         * modules/poll (License): Change from GPL to LGPL, since it's
57275         derived from LGPL code.
57276
57277 2005-09-27  Jim Meyering  <jim@meyering.net>
57278
57279         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
57280         HAVE_CONFIG_H.
57281
57282         * lib/intprops.h (signed_type_or_expr__): Define.
57283         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
57284         for unsigned types.
57285
57286 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
57287
57288         * lib/verify.h (verify_expr): Remove, replacing with:
57289         (verify_true): New macro that returns true instead of void.
57290         (verify_type__): Remove.
57291         (verify): Use verify_true rather than verify_type__.
57292
57293 2005-09-26  Bruno Haible  <bruno@clisp.org>
57294
57295         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
57296         is necessary.
57297         (lib_SOURCES): Remove mbchar.c.
57298         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
57299         (Files): Add m4/mbrtowc.m4.
57300         * modules/mbiter: Likewise.
57301         * modules/mbuiter: Likewise.
57302
57303 2005-09-26  Bruno Haible  <bruno@clisp.org>
57304
57305         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
57306         compile mbchar.c if they are not both present.
57307         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
57308         * m4/mbiter.m4 (gl_MBITER): Likewise.
57309         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
57310         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
57311         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
57312
57313 2005-09-25  Jim Meyering  <jim@meyering.net>
57314
57315         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
57316         also uses socklen_t.
57317
57318 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
57319
57320         * lib/utimens.c (ENOSYS): Define if not already defined.
57321         (futimens): Support having a null PATH if the file descriptor
57322         is nonnegative.
57323
57324         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
57325         Remove.
57326         (__attribute): Define to empty unless GCC 3.1 or later.
57327         This works around a core dump on OpenBSD 3.4, which has GCC
57328         2.95.3, which dumps core when given __attribute__(()).  It also
57329         simplifies other tests, since we really don't want to bother with
57330         worrying about which ancient version of GCC supported what.
57331         Original problem reported by Yoann Vandoorselaere, with part of
57332         the fix suggested by Derek Price.
57333
57334 2005-09-24  Jim Meyering  <jim@meyering.net>
57335
57336         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
57337         so we can once again use a positive bitfield width of 1 -- now we
57338         don't have to explain why we were using a bitfield width of 2.
57339
57340 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
57341
57342         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
57343         and similarly for the other external symbols.  Problem reported
57344         by James Gallager.
57345
57346         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
57347         bug reported by Jim Meyering.
57348
57349         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
57350         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
57351         not needed, since socklen is a prerequisite module.
57352
57353 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
57354
57355         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
57356         Problem reported by Eric Blake.
57357         (getaddrinfo): Initialize se so that it's not garbage.
57358         Redo internal storage allocation so that it doesn't make unportable
57359         assumptions about alignment.
57360         Fix a memory leak.
57361
57362         * lib/utimens.c (futimens): Use futimesat if available.
57363         Prefer it to futimes since it doesn't have the futimes bug.
57364
57365         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
57366         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
57367         Instead, declare a function that returns a pointer to an array,
57368         and use verify_type__ to declare the size of the array.
57369         Problem and germ of a solution reported by Bruno Haible.
57370         (verify_type__): Use 2, not 1, for bitfield size, to avoid
57371         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
57372
57373 2005-09-23  Jim Meyering  <jim@meyering.net>
57374
57375         Sync from coreutils.
57376         Correct build failure (socklen_t not defined) on at least
57377         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
57378         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
57379
57380 2005-09-23  Jim Meyering  <jim@meyering.net>
57381
57382         * modules/getaddrinfo (Depends-on): Add socklen.
57383
57384 2005-09-23  Bruno Haible  <bruno@clisp.org>
57385
57386         * tests/test-verify.c: New file.
57387
57388 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57389
57390         Sync from coreutils.
57391
57392         * modules/argmatch (Depends-on): Add verify.
57393         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
57394         unistd-safer.
57395         * modules/save-cwd (Depends-on): Likewise.
57396
57397         * modules/openat (Files): Add lib/openat-die.c.
57398         (Depends-on): Remove error, exitfail.
57399         Add dirname.
57400
57401         * modules/verify: New file.
57402         * MODULES.html.sh (Diagnostics <assert.h>): New section,
57403         with "verify" module.
57404
57405 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57406
57407         Sync from coreutils.
57408
57409         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
57410         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
57411         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
57412         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
57413         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
57414         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
57415         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
57416         Don't bother checking for string.h, stdlib.h, unistd.h.
57417         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
57418         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
57419         module's job.
57420         * m4/jm-macros.m4 (gl_MACROS): Likewise.
57421         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
57422
57423         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
57424         (gl_GETDATE): Use it.
57425
57426         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
57427
57428 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57429
57430         Sync from coreutils.
57431
57432         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
57433         stat-time.h.
57434         * lib/argmatch.h: Include verify.h
57435         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
57436         (ARGMATCH_ASSERT): Remove; unused.
57437         * lib/canonicalize.c: Assume STDC_HEADERS.
57438         * lib/exclude.c: Include "strcase.h".
57439         * lib/regex_internal.h [!defined _LIBC]: Likewise.
57440         * lib/getusershell.c: Include stdio--.h rather than stdio.h
57441         and stdio-safer.h.
57442         (getusershell): Call fopen, not fopen_safer.
57443         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
57444         Do not include unistd-safer.h.
57445         (save_cwd): Don't call fd_safer; no longer needed
57446         now that we include fcntl--.h.
57447
57448         * lib/getdate.y (relative_time): New type.
57449         (RELATIVE_TIME_0): New constant.
57450         (parser_control): Use relative_time instead of doing it ourselves.
57451         (%union): Add new relative_time rel member.
57452         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
57453         Now typeless.
57454         (relunit, relunit_snumber): Now of type rel.
57455         (zone, rel, relunit, get_date): Adjust to above changes.
57456
57457         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
57458         Do not include unistd-safer.h.
57459         (getloadavg): Don't call fd_safer; no longer needed
57460         now that we include fcntl--.h.
57461
57462         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
57463         (make_dir_parents): Treat ENOSYS like EEXIST.
57464
57465         Improve quality of diagnostics on restore_cwd failure.
57466         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
57467         (make_dir_parents): Last arg is now int * (for errno), not bool *.
57468         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
57469         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
57470         each time through the loop.  Do not diagnose restore_cwd failure;
57471         that is the caller's job (and perhaps the caller does not care).
57472
57473         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
57474         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
57475         If the file already exists but is not a directory, don't bother
57476         to try to make its parents.
57477         Close potential file descriptor leak if we can't chdir("/") (!).
57478         Don't always return true if chdir($PWD) fails; return true only
57479         if the requested action was done successfully (except for the
57480         chdir($PWD)).
57481         Don't log final directory unless we actually made it.
57482         Refactor to avoid duplicate code to fix up permissions.
57483         Don't attempt to fix up parent permissions if chdir($PWD) fails.
57484
57485         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
57486         to make it a bit faster and (I hope) clearer.
57487         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
57488         Fix bug in formats like %2N.
57489
57490         * lib/verify.h: New file.
57491
57492 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
57493
57494         Sync from coreutils.
57495         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
57496
57497 2005-09-22  Jim Meyering  <jim@meyering.net>
57498
57499         Sync from coreutils.
57500
57501         * m4/lstat.m4 (gl_FUNC_LSTAT):
57502         Use AC_LIBSOURCES to require lstat.c and lstat.h.
57503         Remove obsolete comment.
57504         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
57505         * m4/xstrtod.m4: Likewise.
57506
57507         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
57508
57509 2005-09-22  Jim Meyering  <jim@meyering.net>
57510
57511         Sync from coreutils.
57512
57513         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
57514
57515         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
57516         the .tm_year member, since otherwise gcc-4.0 would now warn about
57517         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
57518
57519         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
57520         order to avoid an unsuppressible warning from gcc on 64-bit systems.
57521
57522         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
57523         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
57524         when run in a time zone for which daylight savings time is in effect
57525         for the starting date.
57526
57527         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
57528         stop us from restricting permissions of just-created absolute-named
57529         directories.
57530         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
57531         to restore initial working directory.
57532         * lib/mkdir-p.c (make_dir_parents): New parameter:
57533         different_working_dir, to tell caller if/when we change the working
57534         directory and are unable to return to the initial one.
57535         * lib/mkdir-p.h (make_dir_parents): Update prototype.
57536         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
57537         `return false'.  This fixes a bug introduced on 2004-07-30.
57538
57539         * lib/openat.c (fdopendir): Be sure to close the supplied
57540         file descriptor before returning.  This makes our replacement
57541         implementation a little closer to Solaris's, where fdopendir
57542         ties the file descriptor to the returned DIR* pointer.
57543         * lib/openat.c (unlinkat): New function.
57544         * lib/openat.h (unlinkat): Add prototype.
57545         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
57546         (openat_restore_fail): Rename from openat_restore_die.
57547         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
57548
57549         Provide an alternative to exiting immediately upon save_cwd or
57550         restore_cwd failure.  Now, an application can arrange e.g.,
57551         to perform a longjump in that case.
57552         * lib/openat.c: Include dirname.h.
57553         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
57554         (rpl_openat, fdopendir, fstatat): Call openat_save_die
57555         and openat_restore_die rather than calling error directly.
57556         Don't include "error.h" or "exitfail.h"; they're no longer needed.
57557
57558         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
57559         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
57560         define.
57561
57562         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
57563         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
57564                             int utc, int nanoseconds);
57565         Background:
57566         date should not have to allocate a megabyte of virtual memory to
57567         handle a format argument like +%1048575T.  When implemented with
57568         strftime, it must allocate such a buffer, use strftime to fill it
57569         in, print it, then free it.
57570         With fprintftime, it simply prints everything and exits.
57571         With no need for memory allocation, that's one fewer way to fail.
57572         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
57573         optional field width, not before, so we accept %9:z, not %:9z.
57574         (my_strftime): Be sure to use L_('x') for literals.
57575
57576         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
57577         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
57578         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
57579         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
57580         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
57581         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
57582         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
57583         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
57584         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
57585         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
57586         * lib/xgethostname.c, lib/xreadlink.c:
57587         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
57588
57589         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
57590         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
57591         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
57592         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
57593         and don't include <sys/file.h>).
57594
57595 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
57596
57597         Sync from coreutils.
57598
57599         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
57600         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
57601         [!LDAV_DONE]: Avoid unused variable warning.
57602
57603 2005-09-21  Bruno Haible  <bruno@clisp.org>
57604
57605         * lib/unicodeio.h (unicode_to_mb): New declaration.
57606
57607 2005-09-20  Derek Price  <derek@ximbiot.com>
57608
57609         * lib/getaddrinfo.c: Don't include <netdb.h> included from
57610         getaddrinfo.h.
57611
57612 2005-09-20  Bruno Haible  <bruno@clisp.org>
57613
57614         * gnulib-tool: Remove trailing slashes from the values specified for
57615         --source-base, --m4-base, --tests-base, --aux-dir.
57616         Suggested by Simon Josefsson <jas@extundo.com>.
57617
57618 2005-09-20  Bruno Haible  <bruno@clisp.org>
57619
57620         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
57621         func_modules_to_filelist, func_import, func_create_testdir): Make all
57622         sorting results locale-independent, so that gnulib-cache.m4 doesn't
57623         change when gnulib-tool is invoked in a different locale.
57624
57625 2005-09-19  Simon Josefsson  <jas@extundo.com>
57626
57627         * m4/socklen.m4: Fix typo.
57628
57629 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57630
57631         Use a consistent style for including <config.h>.
57632         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
57633         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
57634         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
57635         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
57636         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
57637         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
57638         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
57639         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
57640         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
57641         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
57642         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
57643         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
57644         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
57645         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
57646         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
57647         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
57648         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
57649         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
57650         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
57651         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
57652         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
57653         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
57654         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
57655         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
57656         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
57657         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
57658         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
57659         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
57660         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
57661         lib/xstrtoumax.c, lib/yesno.c:
57662         Standardize inclusion of config.h.
57663         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
57664         lib/inttostr.h:  Removed inclusion of config.h from header files.
57665         * lib/inttostr.c:  Adjusted in-tree users.
57666         * lib/timespec.h: Remove superfluous warning to include config.h.
57667         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
57668         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
57669         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
57670         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
57671         config.h with HAVE_CONFIG_H.
57672
57673 2005-09-19  Jim Meyering  <jim@meyering.net>
57674
57675         * modules/pathmax (License): Change to LGPL.
57676
57677 2005-09-19  Derek Price  <derek@ximbiot.com>
57678
57679         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
57680
57681 2005-09-19  Bruno Haible  <bruno@clisp.org>
57682
57683         * gnulib-tool (import): Provide default for --tests-base.
57684
57685 2005-09-19  Bruno Haible  <bruno@clisp.org>
57686
57687         * doc/quote.texi: New file, extracted from gnulib.texi.
57688         * doc/ctime.texi: New file, extracted from gnulib.texi.
57689         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
57690         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
57691         * doc/gnulib.texi: Include them.
57692
57693 2005-09-18  Bruno Haible  <bruno@clisp.org>
57694
57695         Portability fix.
57696         * gnulib-tool (func_readlink): New function.
57697         (func_ln_if_changed): Use it.
57698
57699 2005-09-18  Bruno Haible  <bruno@clisp.org>
57700
57701         * gnulib-tool: Support --with-tests also with --import.
57702         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
57703         (func_import): Use variables $testsbase and $inctests. Emit a
57704         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
57705         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
57706         SUBDIRS += $testsdir.
57707         (func_create_testdir): Update.
57708
57709 2005-09-18  Bruno Haible  <bruno@clisp.org>
57710
57711         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
57712         instead of $dry_run.
57713         (func_cp_if_changed, func_mv_if_changed): Remove functions.
57714         (func_ln_if_changed): Don't handle dry-run here.
57715         (func_import): In dry-run mode, detect more precisely which actions
57716         would be performed, and don't use "...ing" verbs.
57717
57718 2005-09-18  Bruno Haible  <bruno@clisp.org>
57719
57720         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
57721         (func_import): Use join on two temporary files instead of three nested
57722         loops, in order to determine which files are new or old.
57723
57724 2005-09-18  Bruno Haible  <bruno@clisp.org>
57725
57726         * gnulib-tool (func_import): Comment out code that spits out the
57727         new files with --dry-run.
57728
57729 2005-09-18  Bruno Haible  <bruno@clisp.org>
57730
57731         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
57732
57733 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57734
57735         * lib/stat-time.h: New file.
57736         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
57737         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
57738         in a different way.
57739         (timespec_cmp): New function.
57740         * lib/utimecmp.c: Include stat-time.h.
57741         (SYSCALL_RESOLUTION): Depend on whether various struct stat
57742         members exist, not on the obsolescent ST_MTIM_NSEC.
57743         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
57744
57745 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57746
57747         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
57748
57749 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
57750
57751         * MODULES.html.sh (File system functions): Add stat-time.
57752         * modules/stat-time: New file.
57753         * modules/timespec (Files): Remove m4/st_mtim.m4; this
57754         is now done in a different way, by the stat-time module.
57755         * modules/utimecmp (Depends-on): Add stat-time.
57756
57757 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
57758
57759         * m4/st_mtim.m4: Remove.  Superseded by...
57760         * m4/stat-time.m4: New file.
57761         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
57762         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
57763
57764 2005-09-15  Derek Price  <derek@ximbiot.com>
57765
57766         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
57767
57768 2005-09-15  Derek Price  <derek@ximbiot.com>
57769
57770         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
57771         * lib/regex_internal.c: Ditto, using this...
57772         (__GNUC_PREREQ): ...new macro.
57773         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
57774         using...
57775         (__GNUC_PREREQ): ...this new macro.
57776
57777         * lib/strstr.h: Include string.h. Define strstr as a macro here.
57778
57779 2005-09-15  Derek Price  <derek@ximbiot.com>
57780             Paul Eggert  <eggert@cs.ucla.edu>
57781
57782         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
57783         changes, consolidating in...
57784         * lib/regex_internal.h: ...this file.
57785
57786 2005-09-13  Jim Meyering  <jim@meyering.net>
57787
57788         * lib/canon-host.c: Filter through gnu indent and reword comments
57789         slightly.
57790         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
57791
57792 2005-09-13  Derek Price  <derek@ximbiot.com>
57793
57794         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
57795         failure.
57796         Reported by Jim Meyering  <jim@meyering.net>.
57797
57798 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57799
57800         * lib/base64.c: Typo.
57801         (base64_encode): Put b64str in initialized data section.
57802
57803 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
57804
57805         Merge glibc and coreutils changes into gnulib, plus a few
57806         extra fixes.
57807         * lib/md5.c: Use #error rather than a string.
57808         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
57809         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
57810         (__attribute__): Define to empty for non recent-GCC.
57811         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
57812         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
57813         Renamed from their non-__ counterparts, with new macros replacing
57814         them if not _LIBC.  Add __THROW attribute.
57815         (rol): Remove.
57816         (struct md5_ctx): Align buffer if using GCC.
57817         * lib/sha1.h (struct sha1_ctx): Likewise.
57818         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
57819         The old name was backwards.
57820         (NOTSWAP): Remove; not used.
57821         (rol): New macro, moved here from md5.h.
57822         (sha1_process_block): Remove a FIXME that doesn't make sense.
57823
57824 2005-09-12  Derek Price  <derek@ximbiot.com>
57825
57826         Return usable errors from canon-host.
57827         * lib/canon-host.h: New file.
57828         * lib/canon-host.c (canon_host): Wrap...
57829         (canon_host_r): ...this new function, which now relies exclusively on
57830         getaddrinfo.
57831         (ch_strerror): New function.
57832         (last_cherror): New global.
57833         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
57834         interface.
57835         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
57836         void *.
57837         (freeaddrinfo): Free ai->ai_canonname when set.
57838
57839 2005-09-12  Derek Price  <derek@ximbiot.com>
57840
57841         Make canon-host require getaddrinfo.
57842         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
57843         AC_LIBSOURCE canon-host.h.  Call...
57844         (gl_PREREQ_CANON_HOST): ...this new function, which requires
57845         gl_GETADDRINFO.
57846         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
57847
57848 2005-09-12  Derek Price  <derek@ximbiot.com>
57849
57850         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
57851         LGPL.
57852         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
57853
57854 2005-09-12  Derek Price  <derek@ximbiot.com>
57855
57856         * lib/gai_strerror.c: Include config.h when available.  Include
57857         getaddrinfo.h before other headers to test interface.
57858         Reported by Larry Jones <lawrence.jones@ugs.com>.
57859
57860 2005-09-12  Derek Price  <derek@ximbiot.com>
57861             Paul Eggert  <eggert@cs.ucla.edu>
57862
57863         * modules/glob (Files): Add glob-libc.h.
57864
57865 2005-09-12  Derek Price  <derek@ximbiot.com>
57866             Paul Eggert  <eggert@cs.ucla.edu>
57867
57868         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
57869         glob_.h, glob-libc.h.
57870         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
57871
57872 2005-09-12  Derek Price  <derek@ximbiot.com>
57873             Paul Eggert  <eggert@cs.ucla.edu>
57874
57875         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
57876         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
57877         protecting things that should be done only in gnulib contexts.
57878         * lib/glob_.h: New file, containing only the glob things needed for
57879         gnulib.
57880         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
57881         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
57882         (glob, globfree, glob_pattern_p): Now defined simply in terms of
57883         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
57884         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
57885         and to respect the namespace rules better.
57886
57887 2005-09-08  Simon Josefsson  <jas@extundo.com>
57888
57889         * modules/socklen: New file.
57890
57891 2005-09-08  Simon Josefsson  <jas@extundo.com>
57892
57893         * m4/socklen.m4: New file.
57894
57895 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57896
57897         * modules/utimens (Files): Add m4/utimbuf.m4, since
57898         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
57899         Reported by Sergey Poznyakoff.
57900
57901 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57902
57903         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
57904         definitions, since that's the preferred style in glibc.
57905         Fix a minor spacing issue, and update copyright notice to match
57906         glibc's.
57907
57908 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
57909
57910         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
57911
57912 2005-09-06  Simon Josefsson  <jas@extundo.com>
57913
57914         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
57915         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
57916
57917 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57918
57919         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
57920         warning.
57921
57922 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
57923
57924         * config/srclist.txt: Add glibc bug 1302.
57925
57926 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
57927
57928         Change bitset word type from unsigned int to unsigned long int,
57929         as this has better performance on typical 64-bit hosts.
57930         Port bitset code to hosts with unusual word sizes.
57931         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
57932         (build_collating_symbol):
57933         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
57934         argument is a bitset.  This is merely a style issue, but it makes
57935         it clearer that an entire array is expected.
57936         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
57937         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
57938         Port to the case where bitset_word is not the same as unsigned int.
57939         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
57940         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
57941         Likewise.
57942         * lib/regexec.c (check_dst_limits_calc_pos_1,
57943         check_subexp_matching_top):
57944         (build_trtable, group_nodes_into_DFAstates):
57945         Likewise.
57946         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
57947         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
57948         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
57949         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
57950         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
57951         * lib/regcomp.c (optimize_subexps, lower_subexp):
57952         Work even if bitset_word has holes in its bitwise representation.
57953         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
57954         * lib/regexec.c (check_dst_limits_calc_pos_1,
57955         check_subexp_matching_top):
57956         Likewise.
57957         * lib/regex_internal.c (re_string_reconstruct):
57958         Don't assume UCHAR_MAX == 255.
57959         * lib/regex_internal.h (bitset_set_all): Likewise.
57960         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
57961         All uses changed.
57962         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
57963         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
57964         All uses changed.
57965         (BITSET_WORD_MAX): New macro.
57966         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
57967         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
57968         (bitset_empty, bitset_copy):
57969         Prefer sizeof (bitset) to multiplying it out ourselves.
57970         (bitset_not_merge): Remove; unused.
57971         (bitset_contain): Return bool, not unsigned int with one bit on.
57972         All callers changed.
57973         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
57974         alignment than re_node_set; do this by defining a new internal
57975         type struct dests_alloc and using it to allocate memory.
57976
57977 2005-09-05  Bruno Haible  <bruno@clisp.org>
57978
57979         * gnulib-tool (func_import): Fix comparison in handling of symbolic
57980         links.
57981
57982 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
57983
57984         * modules/size_max (Makefile.am): Add size_max.h
57985
57986 2005-09-04  Derek Price  <derek@ximbiot.com>
57987
57988         * gnulib-tool (func_import): Fix reversed $symbolic logic.
57989
57990 2005-09-03  Simon Josefsson  <jas@extundo.com>
57991
57992         * gnulib-tool: Fix typo.
57993
57994 2005-09-03  Simon Josefsson  <jas@extundo.com>
57995
57996         * config/srclist.txt: Add glibc bug 1293.
57997
57998 2005-09-03  Derek Price  <derek@ximbiot.com>
57999
58000         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
58001         From Larry Jones <lawrence.jones@ugs.com>.
58002
58003 2005-09-02  Simon Josefsson  <jas@extundo.com>
58004
58005         * modules/socklen: New file.
58006
58007 2005-09-02  Simon Josefsson  <jas@extundo.com>
58008
58009         * modules/havelib: New module.
58010
58011         * modules/gettext, modules/iconv, modules/lock, modules/readline:
58012         Use havelib.
58013
58014 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
58015
58016         Check for arithmetic overflow when calculating sizes, to prevent
58017         some buffer-overflow issues.  These patches are conservative, in the
58018         sense that when I couldn't determine whether an overflow was possible,
58019         I inserted a run-time check.
58020         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
58021         macros.
58022         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
58023         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
58024         (re_xnrealloc, re_x2nrealloc): New inline functions.
58025         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
58026         parse_bracket_exp):
58027         (build_equiv_class, build_charclass): Check for arithmetic overflow
58028         in size expression calculations.
58029         * lib/regex_internal.c (re_string_realloc_buffers):
58030         (build_wcs_upper_buffer, re_node_set_add_intersect):
58031         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
58032         (re_dfa_add_node, register_state): Likewise.
58033         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
58034         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
58035         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
58036         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
58037
58038 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
58039
58040         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
58041         m4/ulonglong.m4.  Problem reported by Martin Lambers.
58042
58043 2005-09-02  Bruno Haible  <bruno@clisp.org>
58044
58045         Support for lib vs. lib64 distinction on biarch platforms.
58046         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
58047         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
58048         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
58049
58050 2005-09-02  Bruno Haible  <bruno@clisp.org>
58051
58052         * gnulib-tool (import): In the other first-use case, provide defaults
58053         as well.
58054
58055 2005-09-02  Bruno Haible  <bruno@clisp.org>
58056
58057         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
58058         patches not yet found in the latest gettext release.
58059
58060 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58061
58062         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
58063         to avoid a collision with bits/local_lim.h in glibc.
58064         All uses changed.  Problem reported by Dmitry V. Levin in
58065         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
58066
58067         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
58068         bugs in int versus size_t comparisons.
58069         (re_string_context_at): Fix bug where the code assumed that
58070         Idx is signed.
58071
58072         Use bool where appropriate.
58073         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
58074         All callers changed.
58075         (calc_eclosure_iter): Likewise, for ROOT arg.
58076         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
58077         (build_charclass_op): Likewise, for NON_MATCH arg.
58078         * lib/regex_internal.c (re_string_allocate, re_string_construct):
58079         (re_string_construct_common): Likewise, for ICASE arg.
58080         * lib/regexec.c (re_search_2_stub, re_search_stub):
58081         Likewise, for RET_LEN arg.
58082         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
58083         (set_regs): Likewise, for FL_BACKTRACK arg.
58084         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
58085         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
58086         (calc_eclosure_iter, parse_bracket_exp):
58087         Use bool for internal variables that are booleans.
58088         * lib/regexec.c (re_search_internal, check_matching,
58089         proceed_next_node):
58090         (set_regs, build_sifted_states, sift_states_bkref):
58091         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
58092         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
58093         (find_collation_sequence_value):
58094         Likewise.
58095         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
58096         (re_node_set_compare):
58097         Return bool, not int. All callers changed.
58098         * lib/regexec.c (check_halt_node_context, check_dst_limits):
58099         (build_trtable, check_node_accept): Likewise.
58100         * lib/regex_internal.h: Include stdbool.h.
58101
58102         Fix bugs uncovered when converting to bool.
58103         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
58104         failure instead of charging ahead blindly.
58105         * lib/regex_internal.c (register_state): Likewise.
58106         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
58107         for freeing internal storage.
58108         (group_nodes_into_DFA_states): Use unsigned int, not int, for
58109         bitset pieces used as boolean, to avoid undefined behavior
58110         on hosts that do int overflow checking.
58111
58112 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
58113
58114         * config/srclist.txt: Add glibc bugs 1285-1287.
58115
58116 2005-09-01  Jim Meyering  <jim@meyering.net>
58117
58118         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
58119         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
58120         Require gl_STAT_MACROS, too.
58121
58122 2005-09-01  Bruno Haible  <bruno@clisp.org>
58123
58124         * gnulib-tool (import): In the first-use case, provide defaults.
58125
58126 2005-09-01  Bruno Haible  <bruno@clisp.org>
58127
58128         * gnulib-tool (func_import): Remove the .tmp files.
58129
58130 2005-09-01  Bruno Haible  <bruno@clisp.org>
58131
58132         * gnulib-tool (func_import): Fix handling of symbolic links.
58133
58134 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58135
58136         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
58137         old glibc regex code mishandles strings longer than 2**31 bytes.
58138         This patch fixes this when the regex code is used in gnulib
58139         (i.e., outside glibc).
58140
58141         This patch should not affect the use of the regex code inside
58142         glibc.  No doubt this problem also needs to be handled for glibc
58143         as well, but the result will be an incompatible change to the
58144         glibc ABI, and the old ABI will have to be supported too.  That
58145         can be the the subject for another patch.
58146
58147         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
58148         governing whether the rest of this patch is active.  By default,
58149         the macro is disabled and the patch has no effect.
58150         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
58151         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
58152         (struct re_pattern_buffer, re_search, re_search_2, re_match):
58153         (re_match_2, re_set_registers): Use the new types.
58154         * lib/regex_internal.h (Idx, re_hashval_t): New types.
58155         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
58156         New macros.
58157         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
58158         (re_string_context_at, bin_tree_t, re_dfastate_t):
58159         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
58160         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
58161         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
58162         (re_string_char_size_at, re_string_wchar_at):
58163         (re_string_elem_size_at):
58164         Use the new types and macros to port to 64-bit hosts.
58165         Use unsigned types for internal values, so that the code
58166         mostly works even for arrays larger than SSIZE_MAX.
58167         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
58168         (search_duplicated_node, calc_eclosure_iter, fetch_number):
58169         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
58170         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
58171         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
58172         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
58173         (calc_inveclosure, parse_dup_op, build_range_exp):
58174         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
58175         (fetch_number, create_token_tree, mark_opt_subexp):
58176         Likewise.
58177         * lib/regex_internal.c (re_string_construct_common,
58178         create_ci_newstate):
58179         (create_cd_newstate, re_string_allocate, re_string_construct):
58180         (re_string_realloc_buffers, build_wcs_upper_buffer):
58181         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
58182         (re_string_reconstruct, re_string_peek_byte_case):
58183         (re_string_fetch_byte_case, re_string_context_at):
58184         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
58185         (re_node_set_init_copy, re_node_set_add_intersect):
58186         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58187         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58188         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
58189         (re_acquire_state, re_acquire_state_context, register_state):
58190         Likewise.
58191         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
58192         search_cur_bkref_entry):
58193         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
58194         (re_search_internal, re_search_2_stub, re_search_stub)
58195         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
58196         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
58197         (update_cur_sifted_state, check_dst_limits):
58198         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
58199         (check_subexp_limits, sift_states_bkref, merge_state_array):
58200         (check_subexp_matching_top, get_subexp, get_subexp_sub):
58201         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
58202         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
58203         (expand_bkref_cache, check_node_accept_bytes):
58204         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
58205         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
58206         (acquire_init_state_context, check_halt_node_context):
58207         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
58208         (sift_states_backward, clean_state_log_if_needed):
58209         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
58210         (find_recover_state, transit_state_sb, transit_state_mb):
58211         (transit_state_bkref, build_trtable, match_ctx_clean):
58212         Likewise.
58213         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
58214         to work around an assumption that REG_MISSING is negative.
58215
58216         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
58217         (seek_collating_symbol_entry) [defined _LIBC]:
58218         (lookup_collation_sequence_value) [defined _LIBC]:
58219         (build_range_exp, build_collating_symbol) [defined _LIBC]:
58220         Use prototypes rather than old-style function definitions.
58221         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
58222         (transit_state_sb) [0]:
58223         (find_collation_sequence_value) [defined _LIBC]: Likewise.
58224
58225         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
58226         rm_eo.
58227
58228         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
58229         (optimize_subexps, lower_subexp):
58230         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
58231         since the signed shift might overflow.  Use 1u<<31 instead.
58232         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
58233         Likewise.
58234         * lib/regexec.c (check_dst_limits_calc_pos_1,
58235         check_subexp_matching_top): Likewise.
58236
58237         * lib/regcomp.c (optimize_subexps, lower_subexp):
58238         Use CHAR_BIT rather than 8, for clarity.
58239         * lib/regexec.c (check_dst_limits_calc_pos_1):
58240         (check_subexp_matching_top): Likewise.
58241         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
58242         have to worry about portability issues when shifting it left.
58243         Remove no-longer-needed test for table_size > 0.
58244         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
58245         in a word, as the resulting behavior is undefined.
58246         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
58247         in one case, a <= should have been an <, and in another case the
58248         whole test was missing.
58249         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
58250         the standard name CHAR_BIT.
58251         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
58252         this is not true on one's complement and signed-magnitude hosts.
58253
58254         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
58255         next_last_offset.
58256         (struct re_dfa_t): Remove unused member states_alloc.
58257         * lib/regcomp.c (init_dfa): Don't initialize unused members.
58258
58259 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58260
58261         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
58262         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
58263         and large-file glibc and in 32-bit large-file Solaris.
58264
58265 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58266
58267         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
58268         lengths fit in regoff_t; this isn't true if regoff_t is the same
58269         width as size_t.
58270         * lib/regex.c (re_search_internal): 5th arg is LAST_START
58271         (= START + RANGE) instead of RANGE.  This avoids overflow
58272         problems when regoff_t is the same width as size_t.
58273         All callers changed.
58274         (re_search_2_stub): Check for overflow when adding the
58275         sizes of the two strings.
58276         (re_search_stub): Check for overflow when adding START
58277         to RANGE; if it occurs, substitute the extreme value.
58278
58279 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
58280
58281         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
58282
58283 2005-08-31  Jim Meyering  <jim@meyering.net>
58284
58285         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
58286         a pointer-to-const.
58287         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
58288         (register_state): Likewise.
58289         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
58290         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
58291         (group_nodes_into_DFAstates): Likewise.
58292
58293 2005-08-31  Jim Meyering  <jim@meyering.net>
58294
58295         * check-module: Add a FIXME comment.
58296
58297 2005-08-31  Eric Blake  <ebb9@byu.net>
58298
58299         * modules/unistd-safer (Files): Add unistd--.h.
58300         * modules/stdio-safer (Files): Add stdio--.h.
58301
58302 2005-08-31  Derek Price  <derek@ximbiot.com>
58303
58304         * lib/getdelim.c (getdelim): Return EOF on EOF.
58305         Reported by Larry Jones <lawrence.jones@ugs.com>.
58306
58307 2005-08-31  Bruno Haible  <bruno@clisp.org>
58308
58309         Avoid unnecessary diffs in the generated lib/Makefile.am.
58310         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
58311         the generated files.
58312         (func_import): Don't set cmd.
58313
58314 2005-08-31  Bruno Haible  <bruno@clisp.org>
58315
58316         * lib/strstr.c: Include <stddef.h>, for NULL.
58317         * lib/strcasestr.c: Likewise.
58318         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58319
58320 2005-08-31  Bruno Haible  <bruno@clisp.org>
58321
58322         * gnulib-tool: New option --macro-prefix.
58323         (func_import): Use macro_prefix.
58324         (import): Handle option --macro-prefix.
58325
58326 2005-08-31  Bruno Haible  <bruno@clisp.org>
58327
58328         * gnulib-tool (import): Rename most ac_* variables to cached_*.
58329         Also use new variables cached_lgpl, cached_libtool.
58330
58331 2005-08-31  Bruno Haible  <bruno@clisp.org>
58332
58333         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
58334         always instantiating them.
58335
58336 2005-08-31  Bruno Haible  <bruno@clisp.org>
58337
58338         * gnulib-tool (func_import): Read the previous cached settings
58339         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
58340         earlier added by gnulib but are now dropped. Warn when a gnulib file
58341         overwrites a non-gnulib file.
58342
58343 2005-08-31  Bruno Haible  <bruno@clisp.org>
58344
58345         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
58346         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
58347         projects that don't keep autogenerated files in CVS. Put into
58348         actioncmd only the specified modules, not the transitive closure.
58349
58350 2005-08-31  Bruno Haible  <bruno@clisp.org>
58351
58352         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
58353         Create directories that shall be filled.
58354         (import): Don't look for gl_* macros in configure.ac. Recurse across
58355         all directories containing a gnulib-cache.m4 files, if meaningful.
58356
58357 2005-08-31  Bruno Haible  <bruno@clisp.org>
58358
58359         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
58360         (import): Set seen_libtool when we see gl_LIBTOOL.
58361
58362 2005-08-31  Bruno Haible  <bruno@clisp.org>
58363
58364         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
58365         declaration macro definitions from generated gnulib.m4.
58366
58367 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
58368
58369         * lib/iconvme.h: Add prototype for iconv_alloc.
58370
58371 2005-08-29  Simon Josefsson  <jas@extundo.com>
58372
58373         * lib/iconvme.c: Fix errno.
58374
58375 2005-08-29  Bruno Haible  <bruno@clisp.org>
58376
58377         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
58378         that it works when the directory contains spaces.
58379
58380 2005-08-29  Bruno Haible  <bruno@clisp.org>
58381
58382         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
58383
58384 2005-08-29  Bruno Haible  <bruno@clisp.org>
58385
58386         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
58387         Emit more advice.
58388
58389 2005-08-29  Bruno Haible  <bruno@clisp.org>
58390         and Stepan Kasal  <kasal@ucw.cz>
58391
58392         * check-module: If more parameters are given, check each of them
58393         separately; add more exceptions, as noted by Jim Meyering.
58394         (check_module): New procedure.
58395         (%exempt_header): Now contains all exceptions.
58396
58397 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
58398
58399         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
58400
58401 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
58402
58403         * lib/iconvme.c: Split iconv_string into iconv_alloc.
58404
58405 2005-08-28  Bruno Haible  <bruno@clisp.org>
58406
58407         * m4/gnulib-tool.m4: New file.
58408
58409 2005-08-27  Jim Meyering  <jim@meyering.net>
58410
58411         * modules/unistd-safer (Files): Add pipe-safer.c.
58412         * modules/fcntl-safer (Files): Add creat-safer.c.
58413
58414 2005-08-27  Jim Meyering  <jim@meyering.net>
58415
58416         * m4/stdlib-safer.m4: New file.  From coreutils.
58417         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
58418         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
58419         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
58420         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
58421         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
58422
58423 2005-08-27  Jim Meyering  <jim@meyering.net>
58424
58425         * lib/fopen-safer.c: Merge minor changes from coreutils.
58426         * lib/dup-safer.c: Likewise.
58427         * lib/fd-safer.c: Likewise.
58428
58429         Merge from coreutils.
58430         * lib/stdio--.h: New file.
58431         * lib/stdlib--.h: New file.
58432         * lib/mkstemp-safer.c: New file.
58433
58434         GNU tar needs these.
58435         * lib/pipe-safer.c: New file.
58436         * lib/creat-safer.c: New file.
58437         * lib/fcntl--.h (creat): Define to creat_safer.
58438         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
58439         * lib/unistd--.h (pipe): Define to pipe_safer.
58440         * lib/unistd-safer.h: Declare pipe_safer.
58441
58442 2005-08-26  Simon Josefsson  <jas@extundo.com>
58443
58444         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
58445         Haible <bruno@clisp.org>.
58446
58447 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
58448
58449         * lib/regex_internal.h: Remove all references to
58450         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
58451         or better.
58452         (bitset_not, bitset_merge, bitset_not_merge):
58453         (bitset_mask, re_string_allocate, re_string_construct):
58454         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
58455         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
58456         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
58457         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
58458         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58459         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58460         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
58461         (re_acquire_state_context):
58462         Remove unnecessary forward decls.
58463         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
58464         Put __attribute at function definition,
58465         now that the function decl has been removed.
58466         * lib/regex_internal.c (re_string_peek_byte_case):
58467         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
58468         Likewise.
58469
58470 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
58471
58472         * m4/regex.m4: Add AC_PREREQ(2.50).
58473         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
58474
58475 2005-08-25  Simon Josefsson  <jas@extundo.com>
58476
58477         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
58478         __fsetlocking.
58479
58480 2005-08-25  Simon Josefsson  <jas@extundo.com>
58481
58482         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
58483         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
58484         GLIBC specific code.
58485
58486 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58487
58488         Make regex safe for g++.  This fixes one real bug (an "err"
58489         that should have been "*err").  g++ problem reported by
58490         Sam Steingold.
58491         * lib/regex_internal.h (re_calloc): New macro, consistent with
58492         re_malloc etc.  All callers of calloc changed to use re_calloc.
58493         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
58494         not int.  All callers changed.
58495         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
58496         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
58497         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
58498         (find_recover_state): Change "err" to "*err"; this fixes what
58499         appears to be a real bug.
58500         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
58501         versus int.
58502
58503 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58504
58505         * modules/regex (Depends-on): Add malloc, since the code
58506         assumes that !malloc(0) means failure.
58507
58508 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58509
58510         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
58511
58512         alloca modernization/simplification for regex.
58513         * lib/regex.c: Remove portability cruft for alloca.  This no longer
58514         needs to be at the start of the file, and can be moved into
58515         regex_internal.h and simplified.
58516         * lib/regex_internal.h: Include <alloca.h>.
58517         (__libc_use_alloca) [!defined _LIBC]: New macro.
58518         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
58519         now works outside glibc.
58520
58521 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
58522
58523         * config/srclist.txt: Add glibc bugs 1241, 1245.
58524
58525 2005-08-25  Jim Meyering  <jim@meyering.net>
58526
58527         * lib/open-safer.c: Include <config.h>.
58528         Otherwise, we'd lose LARGEFILE support in any file using
58529         e.g. "fcntl--.h"
58530
58531 2005-08-25  Bruno Haible  <bruno@clisp.org>
58532
58533         * m4/minmax.m4: Require autoconf 2.52.
58534         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
58535         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
58536         alternatives of translit over the alphabet.
58537         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
58538
58539 2005-08-24  Simon Josefsson  <jas@extundo.com>
58540
58541         * tests/test-getpass.c: New file.
58542
58543 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58544
58545         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
58546         for GNU regex features.
58547
58548 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58549
58550         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
58551         * lib/regex.h (regerror): Likewise.
58552
58553         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
58554         requires this.  (The code never needed it.)
58555
58556         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
58557         All uses of recently-renamed identifiers changed to use the new,
58558         POSIX-compliant names.  The code will build and run just fine
58559         without these changes, but it's better to eat our own dog food
58560         and use the standard-conforming names.
58561
58562         * lib/regex.h: Fix a multitude of POSIX name space violations.
58563         These changes have an effect only for programs that define
58564         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
58565         do not change anything for programs compiled in the normal way.
58566         Also, there is no effect on the ABI.
58567
58568         (_REGEX_SOURCE): New macro.
58569         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
58570         defined and _GNU_SOURCE is not; this fixes a name space violation.
58571
58572         Rename the following macros to obey POSIX requirements.
58573         The old names are still visible as macros if _REGEX_SOURCE is defined.
58574         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
58575         RE_BACKSLASH_ESCAPE_IN_LISTS.
58576         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
58577         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
58578         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
58579         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
58580         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
58581         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
58582         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
58583         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
58584         (REG_INTERVALS): renamed from RE_INTERVALS.
58585         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
58586         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
58587         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
58588         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
58589         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
58590         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
58591         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
58592         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
58593         RE_UNMATCHED_RIGHT_PAREN_ORD.
58594         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
58595         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
58596         (REG_DEBUG): renamed from RE_DEBUG.
58597         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
58598         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
58599         unusual, since we can't clash with the POSIX REG_ICASE.
58600         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
58601         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
58602         (REG_NO_SUB): renamed from RE_NO_SUB.
58603         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
58604         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
58605         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
58606         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
58607         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
58608         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
58609         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
58610         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
58611         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
58612         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
58613         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
58614         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
58615         RE_SYNTAX_POSIX_MINIMAL_BASIC.
58616         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
58617         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
58618         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
58619         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
58620         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
58621         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
58622         (REG_FIXED): Renamed from REGS_FIXED.
58623         (REG_NREGS): Renamed from RE_NREGS.
58624
58625         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
58626         of other REG_* macros, since POSIX says the user is allowed to
58627         #undef these macros selectively.
58628
58629         (reg_errcode_t): Update comment stating what other tables need
58630         to be consistent.
58631
58632         Rename the following enum values to obey POSIX requirements.
58633         The old names are still visible as macros.
58634         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
58635         is not defined, since GNU is supposed to be a superset of POSIX as
58636         much as possible, and since we want reg_errcode_t to be a signed
58637         type for implementation consistency.
58638         (_REG_NOERROR): Renamed from REG_NOERROR.
58639         (_REG_NOMATCH): Renamed from REG_NOMATCH.
58640         (_REG_BADPAT): Renamed from REG_BADPAT.
58641         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
58642         (_REG_ECTYPE): Renamed from REG_ECTYPE.
58643         (_REG_EESCAPE): Renamed from REG_EESCAPE.
58644         (_REG_ESUBREG): Renamed from REG_ESUBREG.
58645         (_REG_EBRACK): Renamed from REG_EBRACK.
58646         (_REG_EPAREN): Renamed from REG_EPAREN.
58647         (_REG_EBRACE): Renamed from REG_EBRACE.
58648         (_REG_BADBR): Renamed from REG_BADBR.
58649         (_REG_ERANGE): Renamed from REG_ERANGE.
58650         (_REG_ESPACE): Renamed from REG_ESPACE.
58651         (_REG_BADRPT): Renamed from REG_BADRPT.
58652         (_REG_EEND): Renamed from REG_EEND.
58653         (_REG_ESIZE): Renamed from REG_ESIZE.
58654         (_REG_ERPAREN): Renamed from REG_ERPAREN.
58655         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
58656         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
58657         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
58658         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
58659
58660         (_REG_RE_NAME, _REG_RM_NAME): New macros.
58661         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
58662         changed.  But support the old name if the new one is not defined
58663         and if _REGEX_SOURCE.
58664
58665         Change the following member names in struct re_pattern_buffer.
58666         The old names are still supported if !_REGEX_SOURCE.
58667         The new names are always supported, regardless of _REGEX_SOURCE.
58668         (re_buffer): Renamed from buffer.
58669         (re_allocated): Renamed from allocated.
58670         (re_used): Renamed from used.
58671         (re_syntax): Renamed from syntax.
58672         (re_fastmap): Renamed from fastmap.
58673         (re_translate): Renamed from translate.
58674         (re_can_be_null): Renamed from can_be_null.
58675         (re_regs_allocated): Renamed from regs_allocated.
58676         (re_fastmap_accurate): Renamed from fastmap_accurate.
58677         (re_no_sub): Renamed from no_sub.
58678         (re_not_bol): Renamed from not_bol.
58679         (re_not_eol): Renamed from not_eol.
58680         (re_newline_anchor): Renamed from newline_anchor.
58681
58682         Change the following member names in struct re_registers.
58683         The old names are still supported if !_REGEX_SOURCE.
58684         The new names are always supported, regardless of _REGEX_SOURCE.
58685         (rm_num_regs): Renamed from num_regs.
58686         (rm_start): Renamed from start.
58687         (rm_end): Renamed from end.
58688
58689         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
58690         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
58691         Prepend __ to parameter names.
58692
58693         Undo yesterday's changes.
58694
58695 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
58696
58697         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
58698         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
58699         lib/regex.c.
58700
58701 2005-08-24  Jim Meyering  <jim@meyering.net>
58702
58703         Sync from coreutils.
58704         * m4/fcntl-safer.m4: New file.
58705
58706         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
58707         and object files for this module.
58708
58709 2005-08-24  Jim Meyering  <jim@meyering.net>
58710
58711         Sync from coreutils.
58712         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
58713
58714 2005-08-24  Jim Meyering  <jim@meyering.net>
58715
58716         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
58717         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
58718
58719 2005-08-24  Jim Meyering  <jim@meyering.net>
58720
58721         * modules/fcntl-safer: New module.
58722         * modules/fts (Depends-on): Add fcntl-safer.
58723         * MODULES.html.sh (File descriptor based Input/Output):
58724         Add fcntl-safer.
58725
58726 2005-08-24  Bruno Haible  <bruno@clisp.org>
58727
58728         Support for unit test modules.
58729         * modules/README: Mention tests modules.
58730         * modules/TEMPLATE-TESTS: New file.
58731         * gnulib-tool: New options --extract-tests-module, --with-tests and
58732         --tests-base (unused for the moment).
58733         (testsbase, inctests): New variables.
58734         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
58735         (func_verify_module): Exclude TEMPLATE-TESTS.
58736         (func_verify_nontests_module, func_verify_tests_module): New functions.
58737         (func_get_dependencies): Add implicit dependency for tests modules.
58738         (func_get_tests_module): New function.
58739         (func_modules_transitive_closure): When --with-tests was specified,
58740         include the unit tests as well, unless explicitly avoided.
58741         (func_emit_lib_Makefile_am): Ignore the tests modules here.
58742         (func_emit_tests_Makefile_am): New function.
58743         (func_create_testdir): When --with-tests was specified, emit a
58744         tests/ directory.
58745         * MODULES.html.sh (Future developments): Update.
58746
58747 2005-08-24  Bruno Haible  <bruno@clisp.org>
58748
58749         * modules/tls-tests: New file.
58750         * tests/test-tls.c: New file, from GNU gettext.
58751
58752 2005-08-24  Bruno Haible  <bruno@clisp.org>
58753
58754         * modules/lock-tests: New file.
58755         * tests/test-lock.c: New file, from GNU gettext.
58756
58757 2005-08-24  Bruno Haible  <bruno@clisp.org>
58758
58759         * lib/lock.h: Add multiple inclusion guard.
58760         * lib/tls.h: Add multiple inclusion guard.
58761
58762 2005-08-24  Bruno Haible  <bruno@clisp.org>
58763
58764         * gnulib-tool: Add support for the --aux-dir option to
58765         --create-testdir, --create-megatestdir, --test, --megatest.
58766         (func_create_testdir, func_create_megatestdir): Optionally emit a
58767         AC_CONFIG_AUX_DIR directive.
58768         (create-testdir, create-megatestdir, test, megatest): Provide a
58769         default value for $auxdir.
58770
58771 2005-08-24  Bruno Haible  <bruno@clisp.org>
58772
58773         * gnulib-tool (import): Use compound statement instead of subshell
58774         where possible.
58775
58776 2005-08-24  Bruno Haible  <bruno@clisp.org>
58777
58778         * gnulib-tool (import): Change --aux-dir default to "build-aux".
58779
58780 2005-08-24  Bruno Haible  <bruno@clisp.org>
58781
58782         * gnulib-tool (func_version): Update.
58783
58784 2005-08-24  Bruno Haible  <bruno@clisp.org>
58785
58786         * gnulib-tool (func_import, func_create_testdir,
58787         func_create_megatestdir): Quote all autoconf macro arguments.
58788
58789 2005-08-24  Bruno Haible  <bruno@clisp.org>
58790
58791         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
58792         option --force, because --force causes the aclocal.m4 of each
58793         subdirectory to be newer than the corresponding config.h.in.
58794
58795 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58796
58797         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
58798         All contents moved to gl_REGEX.
58799         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
58800         assume that it does.
58801
58802 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58803
58804         * lib/regex.h (REG_NOSYS)
58805         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
58806         Define, since POSIX requires it as of 2001.
58807         (_REG_ENOSYS)
58808         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
58809         New private symbol, used to keep the enum signed in all cases.
58810         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
58811         Youngman in
58812         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
58813
58814         * lib/regex_internal.c (re_string_skip_chars, register_state):
58815         (calc_state_hash):
58816         Remove forward decls; no longer needed now that we use prototypes.
58817         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
58818         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
58819         (clean_state_log_if_needed): Likewise.
58820
58821 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
58822
58823         * config/srclist.txt: Add glibc bugs 1231-1233.
58824
58825 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58826
58827         Fix problems reported by Sam Steingold in
58828         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
58829         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
58830         assumed that reg_errcode_t is a signed type, which is not
58831         necessarily true if _XOPEN_SOURCE is not defined.
58832         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
58833         since some compilers warn about it otherwise.
58834
58835 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58836
58837         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
58838         (init_word_char, create_initial_state, duplicate_node_closure):
58839         (fetch_token, peek_token_bracket, build_range_exp):
58840         (build_collating_symbol): Remove forward decls; no longer needed
58841         now that we use prototypes.
58842
58843         * lib/regcomp.c:
58844         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
58845         (re_compile_fastmap_iter, regcomp, regerror, regfree):
58846         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
58847         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
58848         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
58849         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
58850         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
58851         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
58852         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
58853         (build_range_exp, build_collating_symbol, parse_bracket_exp):
58854         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
58855         (build_charclass, build_charclass_op, fetch_number, create_tree):
58856         (create_token_tree, mark_opt_subexp, duplicate_tree):
58857         Use prototypes rather than old-style definitions.
58858
58859         * lib/regex_internal.c:
58860         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
58861         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
58862         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
58863         (re_string_reconstruct, re_string_peek_byte_case):
58864         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
58865         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
58866         (re_node_set_init_copy, re_node_set_add_intersect):
58867         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
58868         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
58869         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
58870         (re_acquire_state, re_acquire_state_context, register_state):
58871         (create_ci_newstate, create_cd_newstate, free_state):
58872         Likewise.
58873         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
58874         re_search_2):
58875         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
58876         (re_search_internal, prune_impossible_nodes):
58877         (acquire_init_state_context, check_matching, static):
58878         (check_halt_node_context, check_halt_state_context, proceed_next_node):
58879         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
58880         (update_regs, sift_states_backward, build_sifted_states):
58881         (clean_state_log_if_needed, merge_state_array):
58882         (update_cur_sifted_state, add_epsilon_src_nodes):
58883         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
58884         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
58885         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
58886         (find_recover_state, check_subexp_matching_top, transit_state_mb):
58887         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
58888         (check_arrival, check_arrival_add_next_nodes):
58889         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
58890         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
58891         (check_node_accept_bytes, check_node_accept, extend_buffers):
58892         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
58893         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
58894         (sift_ctx_init):
58895         Likewise.
58896
58897         * lib/regex_internal.h:
58898         (re_string_allocate, re_string_construct, re_string_reconstruct):
58899         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
58900         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
58901         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
58902         (re_string_context_at, re_string_peek_byte_case):
58903         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
58904         is defined, since we now use prototypes always.
58905
58906         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
58907         C89 or better.  All uses removed.
58908
58909 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
58910
58911         * config/srclist.txt: Add glibc bugs 1220-1227.
58912
58913 2005-08-20  Jim Meyering  <jim@meyering.net>
58914
58915         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
58916         of unused local, dfa.
58917
58918 2005-08-20  Bruno Haible  <bruno@clisp.org>
58919
58920         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
58921
58922 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58923
58924         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
58925         (re_node_set_insert_last, re_dfa_add_node):
58926         Rename local variables to avoid GCC shadowing warnings.
58927
58928 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58929
58930         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
58931         [defined lint]: Suppress bogus uninitialized-variable warnings.
58932
58933         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
58934         and let the caller return REG_ESPACE if out of space.  This
58935         removes an uninitialied-variable warning with GCC 4.0.1, and also
58936         avoids taking the address of a local variable.  All callers
58937         changed.
58938
58939 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
58940
58941         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
58942         $LIBCSRC/posix/regexec.c.
58943         Add glibc bug 1217 for regcomp.c.
58944
58945 2005-08-19  Jim Meyering  <jim@meyering.net>
58946
58947         * lib/regexec.c (proceed_next_node): Redo local variables to
58948         avoid GCC shadowing warnings.
58949
58950 2005-08-18  Bruno Haible  <bruno@clisp.org>
58951
58952         * lib/strstr.c (strstr): Fix return value in multibyte case.
58953         * lib/strcasestr.c (strcasestr): Likewise.
58954
58955 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
58956
58957         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
58958
58959 2005-08-17  Jim Meyering  <jim@meyering.net>
58960
58961         Make the %s format (seconds since the epoch) work for a negative
58962         number and when used with a zero-padded field width, e.g. %015s.
58963
58964         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
58965         label so that it precedes the code to set `digits'.  Otherwise,
58966         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
58967         print `00-22'.  Now, it prints `-0022', as it should.
58968
58969 2005-08-17  Bruno Haible  <bruno@clisp.org>
58970
58971         * modules/strstr (Files): Add m4/mbrtowc.m4.
58972         (Depends-on): Add mbuiter.
58973
58974 2005-08-17  Bruno Haible  <bruno@clisp.org>
58975
58976         * modules/strcasestr: New file.
58977         * MODULES.html.sh (String handling, based on ANSI C 89): Add
58978         strcasestr.
58979
58980 2005-08-17  Bruno Haible  <bruno@clisp.org>
58981
58982         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
58983
58984 2005-08-17  Bruno Haible  <bruno@clisp.org>
58985
58986         * modules/mbuiter: New file.
58987         * MODULES.html.sh (Extended multibyte and wide character utilities):
58988         Add mbuiter.
58989
58990 2005-08-17  Bruno Haible  <bruno@clisp.org>
58991
58992         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
58993         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
58994
58995 2005-08-17  Bruno Haible  <bruno@clisp.org>
58996
58997         * m4/strcasestr.m4: New file.
58998
58999 2005-08-17  Bruno Haible  <bruno@clisp.org>
59000
59001         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
59002         * lib/strstr.c: Completely rewritten, with multibyte locale support.
59003
59004 2005-08-17  Bruno Haible  <bruno@clisp.org>
59005
59006         * lib/strcasestr.h: New file.
59007         * lib/strcasestr.c: New file.
59008
59009 2005-08-17  Bruno Haible  <bruno@clisp.org>
59010
59011         * lib/strcasecmp.c: Use mbuiter.h.
59012
59013 2005-08-17  Bruno Haible  <bruno@clisp.org>
59014
59015         * lib/mbuiter.h: New file.
59016
59017 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
59018
59019         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
59020         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
59021         and gl_GETOPT are both invoked via different paths (as happens
59022         with GNU tar CVS because it uses both argp and getopt), the former
59023         wins.
59024
59025 2005-08-16  Bruno Haible  <bruno@clisp.org>
59026
59027         * modules/tls: New file.
59028         * MODULES.html.sh (Multithreading): Add tls.
59029
59030 2005-08-16  Bruno Haible  <bruno@clisp.org>
59031
59032         * modules/strnlen1: New file.
59033         * MODULES.html.sh (String handling): Add strnlen1.
59034
59035 2005-08-16  Bruno Haible  <bruno@clisp.org>
59036
59037         * modules/strcase (Files): Add m4/mbrtowc.m4.
59038         (Depends-on): Add strnlen1, mbchar.
59039
59040 2005-08-16  Bruno Haible  <bruno@clisp.org>
59041
59042         * modules/mbiter: New file.
59043         * MODULES.html.sh (Extended multibyte and wide character utilities):
59044         Add mbiter.
59045
59046 2005-08-16  Bruno Haible  <bruno@clisp.org>
59047
59048         * modules/mbfile: New file.
59049         * MODULES.html.sh (Extended multibyte and wide character utilities):
59050         Add mbfile.
59051
59052 2005-08-16  Bruno Haible  <bruno@clisp.org>
59053
59054         * modules/mbchar: New file.
59055         * MODULES.html.sh (Extended multibyte and wide character utilities):
59056         New section.
59057
59058 2005-08-16  Bruno Haible  <bruno@clisp.org>
59059
59060         * m4/tls.m4: New file, from GNU gettext.
59061
59062 2005-08-16  Bruno Haible  <bruno@clisp.org>
59063
59064         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
59065         always.
59066         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
59067
59068 2005-08-16  Bruno Haible  <bruno@clisp.org>
59069
59070         * m4/mbiter.m4: New file.
59071
59072 2005-08-16  Bruno Haible  <bruno@clisp.org>
59073
59074         * m4/mbfile.m4: New file.
59075
59076 2005-08-16  Bruno Haible  <bruno@clisp.org>
59077
59078         * m4/mbchar.m4: New file.
59079
59080 2005-08-16  Bruno Haible  <bruno@clisp.org>
59081
59082         * lib/tls.h: New file, from GNU gettext.
59083         * lib/tls.c: New file, from GNU gettext.
59084
59085 2005-08-16  Bruno Haible  <bruno@clisp.org>
59086
59087         * lib/strnlen1.h: New file.
59088         * lib/strnlen1.c: New file.
59089
59090 2005-08-16  Bruno Haible  <bruno@clisp.org>
59091
59092         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
59093         (mbi_init): Update.
59094         (mbi_avail, mbi_advance): Let the iteration end before the terminating
59095         NUL byte, not after it.
59096
59097 2005-08-16  Bruno Haible  <bruno@clisp.org>
59098
59099         * lib/strcase.h (strcasecmp): Add note in comments.
59100         * lib/strncasecmp.c: Use code from strcasecmp.c.
59101         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
59102         (strcasecmp): Work correctly in multibyte locales.
59103
59104 2005-08-16  Bruno Haible  <bruno@clisp.org>
59105
59106         * lib/mbiter.h: New file.
59107
59108 2005-08-16  Bruno Haible  <bruno@clisp.org>
59109
59110         * lib/mbfile.h: New file.
59111
59112 2005-08-16  Bruno Haible  <bruno@clisp.org>
59113
59114         * lib/mbchar.h: New file.
59115         * lib/mbchar.c: New file.
59116
59117 2005-08-16  Bruno Haible  <bruno@clisp.org>
59118
59119         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
59120         the valid ones. Makes the comparison operations transitive:
59121         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
59122         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
59123
59124 2005-08-15  Simon Josefsson  <jas@extundo.com>
59125
59126         * modules/ssize_t (License): Change to 'unlimited'.
59127
59128         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
59129
59130 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59131
59132         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
59133         Add comments for each pending glibc patch.
59134
59135 2005-08-15  Bruno Haible  <bruno@clisp.org>
59136
59137         * lib/regex.h (__restrict_arr): Don't define to __restrict if
59138         __cplusplus is defined.
59139
59140 2005-08-14  Jim Meyering  <jim@meyering.net>
59141
59142         Sync from coreutils.
59143
59144         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
59145         Use the hash-table-based cycle-detection code not just when
59146         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
59147         Reported by James Youngman in
59148         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
59149         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
59150         FTS_TIGHT_CYCLE_CHECK.
59151         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
59152         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
59153         once again.
59154         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
59155         * lib/fts.c (fd_safer): Remove decl.
59156         Include fcntl--.h rather than unistd-safer.h
59157         (fts_safe_changedir): Don't call fd_safer; no longer needed
59158         now that we include fcntl--.h.
59159
59160 2005-08-12  Simon Josefsson  <jas@extundo.com>
59161
59162         * modules/getndelim2: Use ssize_t module.
59163         * modules/getnline: Likewise.
59164         * modules/safe-read: Likewise.
59165         * modules/xreadlink: Likewise.
59166
59167         * modules/ssize_t: New file.
59168
59169 2005-08-12  Simon Josefsson  <jas@extundo.com>
59170
59171         * m4/readline.m4: Look for termcap, curses or ncurses if required.
59172
59173 2005-08-12  Simon Josefsson  <jas@extundo.com>
59174
59175         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59176         ssize_t.
59177
59178 2005-08-12  Simon Josefsson  <jas@extundo.com>
59179
59180         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
59181         readline, getdelim and check_version.
59182         (Support for systems lacking ISO C 99: Sizes of integer types):
59183         Add size_max.
59184
59185 2005-08-12  Bruno Haible  <bruno@clisp.org>
59186
59187         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
59188
59189 2005-08-11  Simon Josefsson  <jas@extundo.com>
59190
59191         * modules/readline: New file.
59192
59193         * modules/strnlen (Files): Add strnlen.h.
59194
59195 2005-08-11  Simon Josefsson  <jas@extundo.com>
59196
59197         * m4/readline.m4: New file.
59198
59199 2005-08-11  Simon Josefsson  <jas@extundo.com>
59200
59201         * lib/readline.h, readline.c: New file.
59202
59203 2005-08-11  Simon Josefsson  <jas@extundo.com>
59204
59205         * doc/gnulib.texi (Initial import, Finishing touches): Mention
59206         gl_AVOID.
59207
59208 2005-08-11  Bruno Haible  <bruno@clisp.org>
59209
59210         * lib/strnlen.h (strnlen): Change parameter name to match comment.
59211
59212 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
59213
59214         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
59215
59216 2005-08-10  Simon Josefsson  <jas@extundo.com>
59217
59218         * tests/test-iconvme.c: New file.
59219
59220 2005-08-10  Simon Josefsson  <jas@extundo.com>
59221
59222         * m4/strnlen.m4: New file.
59223
59224         * m4/strndup.m4: Don't check for strnlen declaration, done in
59225         strnlen.m4.
59226
59227 2005-08-10  Simon Josefsson  <jas@extundo.com>
59228
59229         * lib/strndup.c: Use strnlen.h.
59230
59231         * lib/strnlen.h: New file.
59232
59233 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
59234
59235         * README: Typos.
59236
59237 2005-08-02  Simon Josefsson  <jas@extundo.com>
59238
59239         * modules/readline: New file.
59240
59241 2005-08-02  Simon Josefsson  <jas@extundo.com>
59242
59243         * modules/getdelim: New file.
59244
59245         * modules/getline: Rewrite, don't use getndelim2.
59246
59247 2005-08-02  Simon Josefsson  <jas@extundo.com>
59248
59249         * m4/getline.m4: Separate out getdelim stuff into separate module.
59250
59251         * m4/getdelim.m4: New file.
59252
59253 2005-08-02  Simon Josefsson  <jas@extundo.com>
59254
59255         * lib/getline.h, getline.c: Rewrite.
59256
59257         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
59258
59259 2005-07-31  Bruno Haible  <bruno@clisp.org>
59260
59261         * lib/lock.h (gl_lock_initializer): New macro.
59262         (gl_lock_define_initialized): Use it.
59263         (gl_rwlock_initializer): New macro.
59264         (gl_rwlock_define_initialized): Use it.
59265         (gl_recursive_lock_initializer): New macro.
59266         (gl_recursive_lock_define_initialized): Use it.
59267
59268 2005-07-30  Karl Berry  <karl@gnu.org>
59269
59270         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
59271         Report from Ben Pfaff, regarding getopt.
59272
59273 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
59274
59275         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
59276         normal way.
59277         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
59278         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
59279         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
59280         (gl_GETOPT): Use the new macros.  Most of the implementation
59281         is moved to the new macros.  This is for programs like Emacs
59282         that don't want all the functionality of gl_GETOPT.
59283
59284 2005-07-26  Bruno Haible  <bruno@clisp.org>
59285
59286         * m4/lock.m4: Update from GNU gettext.
59287
59288 2005-07-26  Bruno Haible  <bruno@clisp.org>
59289
59290         * lib/lock.h: Update from GNU gettext.
59291         * lib/lock.c: Update from GNU gettext.
59292
59293 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
59294
59295         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
59296         obsolescent AC_TRY_RUN.  Include the default includes files, for
59297         'exit'.
59298
59299 2005-07-24  Bruno Haible  <bruno@clisp.org>
59300
59301         * modules/visibility: New file.
59302         * MODULES.html.sh (Misc): Add visibility.
59303
59304 2005-07-24  Bruno Haible  <bruno@clisp.org>
59305
59306         * m4/visibility.m4: New file.
59307
59308 2005-07-24  Bruno Haible  <bruno@clisp.org>
59309
59310         * doc/visibility.texi: New file.
59311
59312 2005-07-22  Bruno Haible  <bruno@clisp.org>
59313
59314         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
59315         $(ALLOCA_H), redundant through BUILT_SOURCES.
59316         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
59317         redundant through BUILT_SOURCES.
59318         * modules/byteswap (Makefile.am): Remove explicit dependency on
59319         $(BYTESWAP_H), redundant through BUILT_SOURCES.
59320         * modules/fnmatch (Makefile.am): Remove explicit dependency on
59321         $(FNMATCH_H), redundant through BUILT_SOURCES.
59322         * modules/getopt (Makefile.am): Remove explicit dependency on
59323         $(GETOPT_H), redundant through BUILT_SOURCES.
59324         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
59325         redundant through BUILT_SOURCES.
59326         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
59327         redundant through BUILT_SOURCES.
59328         * modules/stdbool (Makefile.am): Remove explicit dependency on
59329         $(STDBOOL_H), redundant through BUILT_SOURCES.
59330         * modules/stdint (Makefile.am): Remove explicit dependency on
59331         $(STDINT_H), redundant through BUILT_SOURCES.
59332         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
59333         Remove explicit dependency on $(SYSEXITS_H).
59334         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
59335
59336 2005-07-18  Simon Josefsson  <jas@extundo.com>
59337
59338         * lib/check-version.c (check_version): Accept identical versions too.
59339
59340 2005-07-18  Bruno Haible  <bruno@clisp.org>
59341
59342         * modules/lock: New file.
59343         * MODULES.html.sh (Multithreading): New section.
59344
59345 2005-07-18  Bruno Haible  <bruno@clisp.org>
59346
59347         * m4/lock.m4: New file, from GNU gettext.
59348
59349 2005-07-18  Bruno Haible  <bruno@clisp.org>
59350
59351         * lib/lock.h: New file, from GNU gettext.
59352         * lib/lock.c: New file, from GNU gettext.
59353
59354 2005-07-18  Bruno Haible  <bruno@clisp.org>
59355
59356         * lib/lock.h (gl_once_t): New type.
59357         (gl_once_define, gl_once): New macros.
59358         * lib/lock.c (fresh_once): New variable.
59359         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
59360         functions.
59361
59362 2005-07-16  Simon Josefsson  <jas@extundo.com>
59363
59364         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
59365         workaround, suggested by Bruno.
59366
59367 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
59368
59369         * modules/xalloc (Depends-on): Add xalloc-die.
59370         * modules/xvasprintf (Depends-on): Add xalloc-die.
59371
59372 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
59373
59374         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
59375         with a minor change.
59376
59377 2005-07-15  Bruno Haible  <bruno@clisp.org>
59378
59379         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
59380         When using lib/poll.c, define poll as rpl_poll.
59381
59382 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
59383
59384         * modules/argp (Depends-on): Remove unlocked-io.
59385
59386 2005-07-14  Derek Price  <derek@ximbiot.com>
59387
59388         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
59389         for glob symlink bug.
59390
59391 2005-07-14  Bruno Haible  <bruno@clisp.org>
59392
59393         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
59394         Instead, test for *_unlocked function declarations directly.
59395
59396 2005-07-11  Simon Josefsson  <jas@extundo.com>
59397
59398         * modules/size_max: New file.
59399
59400         * modules/xsize: Depend on size_max module for size_max.m4.
59401
59402 2005-07-11  Simon Josefsson  <jas@extundo.com>
59403
59404         * lib/size_max.h: New file.
59405
59406 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
59407
59408         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
59409         copyright symbol and the year.
59410         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
59411         (version_etc_va): Use parameterized copyright notice.
59412         Reword to conform to the current GNU coding standards.
59413
59414 2005-07-11  Karl Berry  <karl@gnu.org>
59415
59416         * doc/gnulib.texi (Quoting): new node.
59417         (Initial import): more info, from Patrice.
59418
59419 2005-07-11  Bruno Haible  <bruno@clisp.org>
59420
59421         * gnulib-tool (func_usage): Document option --avoid.
59422         (Command line options): Handle --avoid.
59423         (func_acceptable): New function.
59424         (func_modules_transitive_closure): Use it.
59425
59426 2005-07-11  Bruno Haible  <bruno@clisp.org>
59427
59428         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
59429         Reported by Jim Meyering.
59430
59431 2005-07-10  Bruno Haible  <bruno@clisp.org>
59432
59433         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
59434         Needed when size_t is smaller than 'unsigned int'.
59435         Reported by Paul Eggert.
59436
59437 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59438
59439         * modules/argp (Depends-on): Add unlocked-io
59440
59441 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
59442
59443         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
59444         block of defines.
59445
59446 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
59447
59448         * config/srclist.txt: Comment out regcomp.c, since we have a porting
59449         fix now.
59450
59451 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
59452         and Paul Eggert  <eggert@cs.ucla.edu>
59453
59454         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
59455         in wint_t, not wchar_t.  Remove now-unnecessary cast.
59456
59457 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59458
59459         * modules/regex (Files): Add lib/regex_internal.c,
59460         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
59461         (Depends-on): Add extensions.
59462         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
59463
59464 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59465
59466         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
59467         pathconf.
59468         * m4/same.m4 (gl_SAME): Likewise.
59469         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
59470
59471         * m4/regex.m4: Adjust to new libc regex implementation.
59472         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
59473         all the .c and .h parts of (the new) regex.
59474         Quote the m4 stuff better.
59475         Check for RE_ICASE bug of old gnulib.
59476         Check for REG_STARTEND of recent libc.
59477         Rename local variables from jm_* to gl_*.
59478         Quote operand of "test -f".
59479         Say "recent enough" version of libc, not "version 2".
59480         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
59481         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
59482         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
59483         Remove check for btowc, isascii.
59484         Require AM_LANGINFO_CODESET.
59485
59486 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59487
59488         * lib/regex.c, regex.h: Sync from libc.
59489         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
59490         * lib/regexec.c:
59491         New files, synced from libc, except that regex_internal.h
59492         currently has a small porting fix.
59493
59494 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
59495
59496         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
59497         regex_internal.c, regexec.c.
59498         Add regex_internal.h too, but as a comment, since the libc version
59499         is currently broken in gnulib mode.
59500
59501 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
59502
59503         Support programs like Emacs that use gnulib but not gettext.
59504         * MODULES.html.sh (Internationalization functions): Add gettext-h.
59505         * modules/gettext-h: New file.
59506         * modules/gettext (Files): Remove lib/gettext.h.
59507         (Depends-on): Add gettext-h.
59508         (Makefile.am): Remove lib_SOURCES.
59509         * modules/argmatch, modules/c-stack, modules/closeout:
59510         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
59511         * modules/execute, modules/file-type, modules/getaddrinfo:
59512         * modules/getopt, modules/human, modules/javacomp:
59513         * modules/javaexec, modules/mkdir-p, modules/obstack:
59514         * modules/openat, modules/pagealign_alloc, modules/pipe:
59515         * modules/quotearg, modules/regex, modules/rpmatch:
59516         * modules/unicodeio, modules/userspec, modules/version-etc:
59517         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
59518         * modules/xsetenv:
59519         Depend on gettext-h, not gettext.
59520
59521 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
59522
59523         * gnulib-tool (func_import): Add support for 'public domain' license.
59524         * modules/alloca, modules/atexit, modules/memmove:
59525         Now public domain, not GPL.
59526         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
59527         * modules/realloc, modules/strerror, modules/strtod:
59528         Now LGPL, not GPL.
59529
59530 2005-07-05  Bruno Haible  <bruno@clisp.org>
59531
59532         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
59533         autoconf CVS. Needed for mingw.
59534
59535 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59536
59537         Remove the dependency of the strftime module on the tzset module.
59538         * modules/strftime (Depends-on): Remove dependency on tzset.
59539
59540 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59541
59542         Remove the dependency of the strftime module on the tzset module.
59543         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
59544         gl_FUNC_TZSET_CLOBBER.
59545
59546 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
59547
59548         Remove the dependency of the strftime module on the tzset module.
59549         * lib/strftime.c (my_strftime)
59550         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
59551         Copy the input structure, to work around some of the bug with
59552         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
59553         Solaris releases, you should also use the tzset module, but we won't
59554         require it as a dependency any more since we don't want LGPLed code
59555         to depend on GPLed code.
59556
59557 2005-07-02  Jim Meyering  <jim@meyering.net>
59558
59559         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
59560         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
59561         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
59562         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
59563
59564 2005-07-02  Jim Meyering  <jim@meyering.net>
59565
59566         * lib/backupfile.c (backup_args): Change a `0' to NULL.
59567
59568 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
59569
59570         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
59571         declares only 'struct timespec;' (!).
59572
59573 2005-07-01  Jim Meyering  <jim@meyering.net>
59574
59575         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
59576         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
59577         * lib/save-cwd.c, tempname.c:
59578         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
59579         and don't include <sys/file.h>).
59580
59581 2005-06-29  Jim Meyering  <jim@meyering.net>
59582
59583         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
59584         type name.  Use the variable name instead.
59585         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
59586         Likewise.
59587
59588 2005-06-28  Simon Josefsson  <jas@extundo.com>
59589
59590         * modules/check-version (Files): Add check-version.m4.
59591
59592 2005-06-28  Simon Josefsson  <jas@extundo.com>
59593
59594         * m4/check-version.m4: New file, suggested by Jim Meyering
59595         <jim@meyering.net>.
59596
59597 2005-06-28  Simon Josefsson  <jas@extundo.com>
59598
59599         * lib/check-version.h, lib/check-version.c: New files.
59600
59601 2005-06-28  Simon Josefsson  <jas@extundo.com>
59602
59603         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
59604         collision with global variable.  Better indentation.  Don't
59605         increment buffer pointer beyond buffer end.  Based on comments
59606         from Paul Eggert <eggert@cs.ucla.edu>.
59607
59608         * lib/base64.h: Indent.
59609
59610 2005-06-28  Simon Josefsson  <jas@extundo.com>
59611
59612         * doc/gnulib.texi (Library version handling): New section.
59613
59614 2005-06-28  Jim Meyering  <jim@meyering.net>
59615
59616         * check-module (find_included_lib_files): Hard-code another
59617         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
59618         but modules/fts-lgpl (correctly) does not list those files.
59619
59620         * modules/canonicalize (Files): Add lib/pathmax.h.
59621
59622 2005-06-25  Simon Josefsson  <jas@extundo.com>
59623
59624         * modules/check-version: New file.
59625
59626 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
59627
59628         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
59629         initializer of struct addrinfo, as an indication that we don't
59630         care how many members the structure has.
59631
59632 2005-06-24  Derek Price  <derek@ximbiot.com>
59633         and Bruno Haible  <bruno@clisp.org>
59634
59635         Remove stat module & update lstat.
59636         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
59637         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
59638         * m4/stat.m4: Remove this file.
59639
59640 2005-06-24  Derek Price  <derek@ximbiot.com>
59641         and Bruno Haible  <bruno@clisp.org>
59642
59643         Remove stat module & update lstat.
59644         * lib/stat.c: Remove this file...
59645         (slash_aware_lstat): ...moving this content and its support...
59646         * lib/lstat.c (rpl_lstat): ...into here.
59647         * lib/lstat.h: New file.
59648
59649 2005-06-24  Derek Price  <derek@ximbiot.com>
59650         and Bruno Haible  <bruno@clisp.org>
59651
59652         Remove stat module & update lstat.
59653         * config/srclist.txt (libc sources): Remove stat.
59654
59655 2005-06-24  Derek Price  <derek@ximbiot.com>
59656         and Bruno Haible  <bruno@clisp.org>
59657
59658         Remove stat module & update lstat.
59659         * MODULES.html.sh (stat): Remove.
59660         * MODULES.html: Regenerated.
59661         * modules/lstat (Description): Correct function name.
59662         (Files): Add "lstat.h".
59663         (Depends-on): Remove stat, add xalloc, stat-macros.
59664         * modules/stat: Remove this file.
59665         (Include): Add "lstat.h", remove <sys/stat.h>.
59666
59667 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
59668
59669         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
59670         (ranged_convert): Don't save conversion in a temporary struct.
59671         This causes a warning with GCC 4.0.0, and anyway in the typical
59672         case it's not worth the extra 100 bytes or so of code.
59673         (ranged_convert, __mktime_internal): When calling a function via a
59674         pointer P, use P () rather than (*P) (), as we now assume C89 or
59675         better.
59676
59677 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
59678
59679         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
59680         "who -r" failed to give output.  Problem reported by Tim Waugh.
59681
59682         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
59683         (xcalloc): Use it to avoid needless tests.
59684         Problem reported by Jim Meyering.
59685
59686 2005-06-20  Derek Price  <derek@ximbiot.com>
59687
59688         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
59689         unnecessary for Autoconfs > 2.59c.
59690
59691 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59692
59693         * lib/argp.h (__option_is_short): Check upper limit of
59694         __key. Isprint() requires its argument to have the value
59695         of an unsigned char or EOF.
59696
59697 2005-06-16  Jim Meyering  <jim@meyering.net>
59698
59699         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
59700         when either N or S is zero.
59701
59702 2005-06-16  Derek Price  <derek@ximbiot.com>
59703
59704         * m4/bison.m4: Declare YACC & YFLAGS precious.
59705
59706 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
59707
59708         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
59709         multibyte string or pattern, fall back on unibyte matching.
59710         Problem reported by James Youngman.
59711
59712 2005-06-08  Bruno Haible  <bruno@clisp.org>
59713
59714         * modules/csharpcomp: New file.
59715         * MODULES.html.sh (C#): Add csharpcomp.
59716
59717 2005-06-08  Bruno Haible  <bruno@clisp.org>
59718
59719         * m4/csharpcomp.m4: New file, from GNU gettext.
59720
59721 2005-06-08  Bruno Haible  <bruno@clisp.org>
59722
59723         * lib/csharpcomp.h: New file, from GNU gettext.
59724         * lib/csharpcomp.c: New file, from GNU gettext.
59725         * lib/csharpcomp.sh.in: New file, from GNU gettext.
59726
59727 2005-06-08  Bruno Haible  <bruno@clisp.org>
59728
59729         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
59730         warning on mingw.
59731
59732 2005-06-07  Derek Price  <derek@ximbiot.com>
59733
59734         Sync from CVS.
59735         * lib/glob_.h: Indent nested #ifdef.
59736
59737 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59738
59739         Sync from coreutils.
59740         Use "file name" when talking about file names, instead of "filename"
59741         or "path", as per the GNU coding standards.
59742         * lib/mkdir-p.c: Renamed from makepath.c.
59743         (make_dir_parents): Renamed from make_path.  All callers changed.
59744         * lib/mkdir-p.h: Likewise.  All includers changed.
59745         * lib/filenamecat.c: Renamed from path-concat.c.
59746         (file_name_concat): Renamed from path_concat.  All callers changed.
59747         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
59748         * lib/filenamecat.h: Likewise.  All includers changed.
59749         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
59750         in comments or local variable names.
59751         * lib/basename.c: Likewise.
59752         * lib/canonicalize.c, canonicalize.h: Likewise.
59753         * lib/dirname.c, dirname.h: Likewise.
59754         * lib/euidaccess.c: Likewise.
59755         * lib/exclude.c: Likewise
59756         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
59757         * lib/fsusage.c, fsuage.h: Likewise.
59758         * lib/fts.c, fts_.h: Likewise.
59759         * lib/getcwd.c: Likewise.
59760         * lib/getloadavg.c: Likewise.
59761         * lib/mkstemp.c: Likewise.
59762         * lib/mountlist.c, mountlist.h: Likewise.
59763         * lib/openat.c, openat.h: Likewise.
59764         * lib/readlink-stub.c: Likewise.
59765         * lib/readutmp.c, readutmp.h: Likewise.
59766         * lib/rename.c: Likewise.
59767         * lib/rmdir.c: Likewise.
59768         * lib/same.c: Likewise.
59769         * lib/savedir.c: Likewise.
59770         * lib/stripslash.c: Likewise.
59771         * lib/tempname.c: Likewise.
59772         * lib/xreadlink.c: Likewise.
59773         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
59774         All uses changed.
59775         * lib/exclude.h: Likewise.
59776
59777         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
59778         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59779         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
59780         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59781         * lib/pathmax.h: Include <limits.h> unconditionally, since other
59782         files have been getting away with it for years (MORE/BSD 4.3
59783         is extinct now).
59784         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
59785         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
59786
59787         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
59788         Define to 256, not 255, as per modern POSIX.
59789
59790 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59791
59792         Sync from coreutils.
59793         Use "file name" when talking about file names, instead of "filename"
59794         or "path", as per the GNU coding standards.
59795         * MODULES.html.sh: mkdir-p renamed from makepath.
59796         filenamecat renamed from path-concat.
59797         * modules/filenamecat: Renamed from modules/path-concat.
59798         (Files): filenamecat.h and filenamecat.c renamed from
59799         path-concat.h and path-concat.c.
59800         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
59801         (Include): filenamecat.h, not path-concat.h.
59802         * modules/mkdir-p: Renamed from modules/makepath.
59803         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
59804         makepath.c.
59805         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
59806         (Include): mkdir-p.h, not makepath.h.
59807
59808 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
59809
59810         Sync from coreutils.
59811         * m4/mkdir-p.m4: Renamed from makepath.m4.
59812         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
59813         Rename files from makepath.c to mkdir-p.c, and from
59814         makepath.h to mkdir-p.h.
59815         * m4/filenamecat.m4: Renamed from path-concat.m4.
59816         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
59817         Rename files from path-concat.c to filenamecat.c,
59818         and from path-concat.h to filenamecat.h.
59819         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
59820         "file name" in local variables or comments.
59821         * m4/rename.m4: Likewise.
59822
59823 2005-06-01  Bruno Haible  <bruno@clisp.org>
59824
59825         * modules/csharpexec: New file.
59826         * MODULES.html.sh (C#): New section.
59827
59828 2005-06-01  Bruno Haible  <bruno@clisp.org>
59829
59830         * m4/csharp.m4: New file, from GNU gettext.
59831         * m4/csharpexec.m4: New file, from GNU gettext.
59832
59833 2005-06-01  Bruno Haible  <bruno@clisp.org>
59834
59835         * lib/csharpexec.h: New file, from GNU gettext.
59836         * lib/csharpexec.c: New file, from GNU gettext.
59837         * lib/csharpexec.sh.in: New file, from GNU gettext.
59838
59839 2005-05-31  Derek Price  <derek@ximbiot.com>
59840             Paul Eggert  <eggert@cs.ucla.edu>
59841
59842         Sync from cvs.
59843         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
59844
59845 2005-05-31  Derek Price  <derek@ximbiot.com>
59846             Paul Eggert  <eggert@cs.ucla.edu>
59847
59848         Sync from cvs.
59849         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
59850
59851 2005-05-29  Derek Price  <derek@ximbiot.com>
59852
59853         * config/srclist.txt (glob_.h, glob.c): Add these files.
59854
59855 2005-05-29  Derek Price  <derek@ximbiot.com>
59856
59857         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
59858         * modules/glob: New file.
59859         * modules/getlogin_r: Add link to POSIX spec in description.
59860
59861 2005-05-29  Derek Price  <derek@ximbiot.com>
59862             Paul Eggert  <eggert@cs.ucla.edu>
59863
59864         * m4/glob.m4: New file.
59865
59866 2005-05-29  Derek Price  <derek@ximbiot.com>
59867             Paul Eggert  <eggert@cs.ucla.edu>
59868
59869         * lib/glob_.h, lib/glob.c: New files.
59870
59871 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59872
59873         * modules/fts (Files): Remove m4/inttypes-pri.m4.
59874         * modules/fts-lgpl (Depends-on): Remove gettext.
59875
59876 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59877
59878         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
59879         and don't require gt_INTTYPES_PRI.
59880
59881 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
59882
59883         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
59884
59885         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
59886         the configuration hassle isn't worth it.
59887         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
59888         (LONGEST_MODIFIER, PRIuMAX): Remove.
59889
59890 2005-05-27  Bruno Haible  <bruno@clisp.org>
59891
59892         * lib/getlogin_r.h: Remove second include of <stddef.h>.
59893
59894 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
59895
59896         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
59897         _POSIX_PTHREAD_SEMANTICS for Solaris.
59898
59899 2005-05-25  Derek Price  <derek@ximbiot.com>
59900
59901         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
59902
59903 2005-05-25  Derek Price  <derek@ximbiot.com>
59904             Paul Eggert  <eggert@cs.ucla.edu>
59905
59906         * modules/getlogin_r, m4/getlogin_r.m4: New files.
59907         * lib/getlogin_r.c, getlogin_r.h: New files.
59908
59909 2005-05-25  Bruno Haible  <bruno@clisp.org>
59910             Derek Price  <derek@ximbiot.com>
59911
59912         * lib/getlogin_r.h: Simplify API documentation.
59913
59914 2005-05-23  Derek Price  <derek@ximbiot.com>
59915
59916         * modules/minmax (Files): Add m4/minmax.m4.
59917         (configure.ac): Add gl_MINMAX.
59918
59919 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
59920
59921         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
59922         so that unistd-safer.h (GPL'ed code) need not be included.
59923
59924 2005-05-22  Bruno Haible  <bruno@clisp.org>
59925
59926         * m4/minmax.m4: New file.
59927         Based on a patch by Derek Price <derek@ximbiot.com>.
59928
59929 2005-05-22  Bruno Haible  <bruno@clisp.org>
59930
59931         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
59932         (INT64_MIN): Fix definition.
59933         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
59934
59935         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
59936         NEED_SIGNED_INT_TYPES.
59937
59938         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
59939         HAVE_SYSTEM_INTTYPES.
59940
59941 2005-05-22  Bruno Haible  <bruno@clisp.org>
59942
59943         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
59944         Also include <sys/param.h> if it defines MIN, MAX.
59945         Based on a patch by Derek Price <derek@ximbiot.com>.
59946
59947 2005-05-21  Jim Meyering  <jim@meyering.net>
59948
59949         * modules/fts (Files): Add m4/inttypes-pri.m4.
59950         (Depends-on): Add lstat and remove gettext.  Alphabetize.
59951
59952 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59953
59954         New fts module.
59955         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
59956         (setup_dir, free_dir): New functions.
59957         (enter_dir, leave_dir): Define trivial
59958         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
59959         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
59960         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
59961         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
59962         Move to fts-cycle.c.
59963         (fts_open): Use setup_dir.
59964         (fts_close): Use free_dir.
59965         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
59966         This adds a label and some gotos, but the alternatives were messier.
59967         Check for memory allocation failure when entering a dir.
59968         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
59969         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
59970         (FTS): New member fts_cycle, that is a union that contains the
59971         old active_dir_ht and cycle_state.  All uses changed to mention
59972         fts_cycle.ht and fts_cycle.state.
59973         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
59974         fts.c, with the following changes:
59975         (setup_dir, free_dir): New functions.
59976         (enter_dir): Now returns bool.  Return true if successful, false
59977         if memory exhausted.  All callers changed.
59978         Do not bother partly cleaning up on
59979         memory allocation failure; that is free_dir's job.
59980         However, free ad if hash_insert fails, to avoid memory leak.
59981         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
59982         fts->fts_options to see which union member to use.
59983
59984 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59985
59986         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
59987         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
59988
59989 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
59990
59991         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
59992
59993 2005-05-20  Jim Meyering  <jim@meyering.net>
59994
59995         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
59996         Now a macro, to pacify GCC.
59997
59998 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
59999
60000         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
60001         of -1.
60002
60003 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
60004
60005         * lib/chown.c (rpl_chown): Return -1 on failure.
60006
60007 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
60008
60009         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
60010         Don't check for stddef.h.
60011         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
60012         don't use its results.
60013         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
60014         since we include them unconditionally.  Don't require
60015         AM_STDBOOL_H, since stdbool is a prerequisite.
60016         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
60017         since we assume C89 or better.
60018         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
60019         as we don't use their results.
60020         Don't check for fchdir, memmove, memset, strrchr, as we use
60021         them unconditionally.
60022         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
60023         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
60024
60025 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
60026
60027         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
60028         Include <stddef.h> unconditionally, since we assume C89 now.
60029         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
60030         * lib/fts.c: Include fts_.h first, to check interface.
60031         Do not include intprops.h; no longer needed.
60032         Include cycle-check.h and hash.h, since fts_.h no longer does.
60033         Remove unnecessary casts of closedir to void.
60034         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
60035         decide whether to decrement nlinks.
60036         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
60037         (FTS): Use struct hash_table * instead of Hash_table, so that
60038         we no longer need to include hash.h here.
60039
60040 2005-05-18  Jim Meyering  <jim@meyering.net>
60041
60042         * modules/dirfd (License): Change to LGPL.  Most of the code
60043         is already in the public domain.
60044
60045 2005-05-18  Jim Meyering  <jim@meyering.net>
60046
60047         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
60048         Reported by Yoann Vandoorselaere.
60049
60050 2005-05-17  Jim Meyering  <jim@meyering.net>
60051
60052         * m4/fts.m4: New file, from coreutils.
60053
60054 2005-05-17  Jim Meyering  <jim@meyering.net>
60055
60056         * lib/fts.c, lib/fts_.h: New files, from coreutils.
60057
60058 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60059
60060         Sync from coreutils.
60061         * m4/unlinkdir.m4: New file.
60062
60063 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60064
60065         Sync from coreutils.
60066         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
60067         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
60068         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
60069         White space changes only.
60070         * lib/makepath.c (make_path): Port to hosts where leading "//" is
60071         special.
60072         * lib/yesno.c: Include getline.h, not ctype.h.
60073         (yesno): Don't remove leading white space; POSIX doesn't allow it.
60074         Use getline to remove arbitrary restriction on response length.
60075
60076 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
60077
60078         * config/srclist-update: Spell out "Street" in FSF postal
60079         mail address; this is the style the FSF seems to prefer.
60080
60081         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
60082         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
60083         this updates FSF postal mail address.
60084
60085         Sync from coreutils.
60086         * modules/unlinkdir: New file.
60087         * modules/yesno (Depends-on): Add getline.
60088         * MODULES.html.sh (File system functions): Add unlinkdir.
60089
60090 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60091
60092         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
60093         lib/strsep.h:
60094         Change the initial comment to refer to GPL, not LGPL.
60095         gnulib-tool will change it to LGPL as needed.
60096
60097         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
60098         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
60099         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
60100         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
60101         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
60102         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
60103         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
60104         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
60105         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
60106         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
60107         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
60108         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
60109         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
60110         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
60111         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
60112         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
60113         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
60114         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
60115         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
60116         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
60117         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
60118         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
60119         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
60120         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
60121         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
60122         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
60123         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
60124         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
60125         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
60126         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
60127         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
60128         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
60129         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
60130         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
60131         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
60132         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
60133         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
60134         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
60135         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
60136         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
60137         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
60138         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
60139         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
60140         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
60141         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
60142         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
60143         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
60144         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
60145         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
60146         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
60147         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
60148         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
60149         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
60150         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
60151         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
60152         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
60153         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
60154         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
60155         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
60156         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
60157         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
60158         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
60159         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
60160         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
60161         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
60162         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
60163         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
60164         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
60165         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
60166         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
60167         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
60168         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
60169         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
60170         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
60171         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
60172         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
60173         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
60174         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
60175         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
60176         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
60177         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
60178         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
60179         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
60180         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
60181         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
60182         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
60183         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
60184         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
60185         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
60186         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
60187         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
60188         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
60189         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
60190         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
60191         lib/yesno.c, lib/yesno.h:
60192         Update FSF postal mail address.
60193
60194 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60195
60196         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
60197         tests/test-memmem.c, tests/test-stpncpy.c:
60198         Update FSF postal mail address.
60199
60200 2005-05-13  Bruno Haible  <bruno@clisp.org>
60201
60202         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
60203         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
60204         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
60205         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
60206         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
60207         Add support for 64-bit integers in the MSVC compiler.
60208
60209 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60210
60211         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
60212
60213 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
60214
60215         * gnulib-tool (func_import): Sort and uniquify recommended includes.
60216
60217 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
60218
60219         * doc/getdate.texi (General date syntax): Don't say that date
60220         date --iso-8601=ns generates acceptable dates; it doesn't yet.
60221         Problem reported by Nic Ferrier.
60222
60223 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60224
60225         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
60226         specified in ai_socktype. Fix invalid ai_protocol
60227         check. ai_protocol is usually set to 0 or depending on
60228         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
60229         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
60230         ai_socktype / ai_protocol in the returned addrinfo structure.
60231
60232 2005-05-10  Simon Josefsson  <jas@extundo.com>
60233
60234         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
60235         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60236
60237 2005-05-10  Karl Berry  <karl@gnu.org>
60238
60239         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
60240         (from http://www.gnu.org/licenses).
60241         * doc/COPYING.LIB: also rename to COPYING.LESSER.
60242         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
60243         fdl.texi suffices.
60244
60245 2005-05-10  Karl Berry  <karl@gnu.org>
60246
60247         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
60248         (COPYING.DOC): remove.
60249
60250         * config/srclist-update: new FSF address.
60251
60252 2005-05-10  Derek Price  <derek@ximbiot.com>
60253
60254         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
60255         possible.
60256
60257 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60258             Bruno Haible  <bruno@clisp.org>
60259
60260         * modules/inet_ntop: New file.
60261         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60262         inet_ntop.
60263
60264 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60265             Bruno Haible  <bruno@clisp.org>
60266
60267         * m4/inet_ntop.m4: New file.
60268
60269 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60270             Bruno Haible  <bruno@clisp.org>
60271
60272         * lib/inet_ntop.h: New file.
60273         * lib/inet_ntop.c: New file, from glibc with modifications.
60274
60275 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
60276
60277         * modules/time_r (License): Change to LGPL.
60278         * modules/extensions (License): Change to LGPL.  Actually,
60279         the license is more permissive than that, but currently gnulib-tool
60280         doesn't know how to handle more-permissive licenses.
60281
60282         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
60283         Problem reported by Dave Love.
60284
60285 2005-05-08  Jim Meyering  <jim@meyering.net>
60286
60287         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
60288         blank.
60289
60290 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60291
60292         * modules/argmatch (Depends-on): Add stdbool.
60293         * modules/backupfile (Depends-on): Likewise.
60294         * modules/chdir-long (Depends-on): Likewise.
60295         * modules/closeout (Depends-on): Likewise.
60296         * modules/cycle-check (Depends-on): Likewise.
60297         * modules/dirname (Depends-on): Likewise.
60298         * modules/fnmatch (Depends-on): Likewise.
60299         * modules/fsusage (Depends-on): Likewise.
60300         * modules/fwriteerror (Depends-on): Likewise.
60301         * modules/getcwd (Depends-on): Likewise.
60302         * modules/getloadavg (Depends-on): Likewise.
60303         * modules/hard-locale (Depends-on): Likewise.
60304         * modules/makepath (Depends-on): Likewise.
60305         * modules/mountlist (Depends-on): Likewise.
60306         * modules/nanosleep (Depends-on): Likewise.
60307         * modules/posixtm (Depends-on): Likewise.
60308         * modules/quotearg (Depends-on): Likewise.
60309         * modules/readtokens (Depends-on): Likewise.
60310         * modules/readtokens0 (Depends-on): Likewise.
60311         * modules/readutmp (Depends-on): Likewise.
60312         * modules/save-cwd (Depends-on): Likewise.
60313         * modules/strftime (Depends-on): Likewise.
60314         * modules/userspec (Depends-on): Likewise.
60315         * modules/utimecmp (Depends-on): Likewise.
60316         * modules/xgetcwd (Depends-on): Likewise.
60317         * modules/xnanosleep (Depends-on): Likewise.
60318         * modules/xstrtod (Depends-on): Likewise.
60319         * modules/yesno (Depends-on): Likewise.
60320
60321 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
60322
60323         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
60324         needless checks.
60325
60326 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60327
60328         Merge from coreutils.  Among other things,
60329         add bulletproofing for cases where stdin, stdout, or stderr are closed.
60330         * lib/fd-safer.c: New file.
60331         * lib/fcntl-safer.h, open-safer.c: Remove.
60332         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
60333         * lib/dup-safer.c: Include unistd-safer.h first.
60334         Don't include errno.h.
60335         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
60336         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
60337         * lib/file-type.c: Rely on file-type.h change.
60338         * lib/getloadavg.c: Include unistd-safer.h.
60339         (getloadavg): Use safer open.
60340         * lib/getusershell.c: Include "stdio-safer.h".
60341         (getusershell): Use safer fopen.
60342         * lib/long-options.c (long_options): Use NULL rather than 0.
60343         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
60344         'free'.
60345         * lib/modechange.c: Likewise.
60346         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
60347         (MODE_DONE): New constant.
60348         (struct mode_change): Remove 'next' member.
60349         (make_node_op_equals): New function; like the old one of the
60350         same name, except it allocates an array.
60351         (mode_compile, mode_create_from_ref): Use it.
60352         (mode_compile): Allocate result as an array, not a linked list.
60353         Parse octal string ourself, so that we catch mistakes like "+0".
60354         (mode_adjust): Arg is an array, not a linked list.
60355         * lib/modechange.c: Include stat-macros.h, xalloc.h.
60356         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
60357         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
60358         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
60359         Remove.  This is now stat-macros.h's job.
60360         (talloc): Remove.  All callers replaced by xalloc, so that
60361         our invokers don't have to worry about reporting memory failures.
60362         (make_node_op_equals): Remove.
60363         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
60364         New constants.
60365         (struct mode_change): Moved here from modechange.h.
60366         (mode_append_entry): Remove.
60367         (mode_compile): Remove MASKED_OPS arg, since it encouraged
60368         apps to have incorrect behavior.  Use simpler algorithm for head
60369         and tail.  Don't futz with umask; that's now the job of mode_adjust.
60370         Detect more invalid usages rather than having somewhat-random behavior.
60371         Don't insert an "a=" action, as that leads to incorrect behavior.
60372         (mode_compile, mode_create_from_ref): Return NULL on error instead
60373         of an enum, since now there's only one way to have an error.  All
60374         callers changed.
60375         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
60376         at the correct time.  Simplify calculation of "+u" and its ilk.
60377         Don't mishandle "+X".
60378         (mode_free): Remove "register" and localize decls.
60379         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
60380         (struct mode_change): Move to modechange.c; callers don't
60381         need to see this stuff.
60382         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
60383         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
60384         (mode_change, mode_adjust): Reflect the new signatures noted above.
60385         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
60386         that might redefine system include files.
60387         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
60388         (my_usleep): Use NULL rather than (void *) 0.
60389         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
60390         Use siginterrupt to specify that system calls should be interrupted.
60391         (rpl_nanosleep): Move initialization of suspended closer to call of
60392         my_usleep.
60393         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
60394         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
60395         (desirable_utmp_entry): New function.
60396         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
60397         using x2nrealloc, to simplify logic.
60398         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
60399         size calculation.  Do not assume utmp file is a regular file.
60400         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
60401         (READ_UTMP_CHECK_PIDS): New constant.
60402         * lib/save-cwd.c: Include unistd-safer.h.
60403         (save_cwd): Use fd_safer.
60404         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
60405         [!_LIBC] Include "stat-macros.h" instead.
60406         * lib/unistd-safer.h (fd_safer): New decl.
60407
60408 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60409
60410         * modules/getloadavg (Depends-on): Add unistd-safer.
60411         * modules/getusershell (Depends-on): Add stdio-safer.
60412         * modules/lstat (Depends-on): Remove xalloc.
60413         * modules/mkstemp (Depends-on): Add stat-macros.
60414         * modules/modechange (Depends-on): Remove xstrtol.
60415         Add stat-macros, xalloc.
60416         * modules/save-cwd (Depends-on): Add unistd-safer.
60417         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
60418         * modules/unistd-safer (Files): Add lib/fd-safer.c
60419         (Makefile.am): Remove lib_SOURCES.
60420
60421         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
60422         Remove fcntl-safer; unistd-safer supersedes it.
60423
60424 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60425
60426         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
60427         AC_HEADER_STAT.
60428         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
60429         (gl_PREREQ_CHOWN): Remove.
60430         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
60431         it.  Don't require AC_HEADER_STAT.
60432         (gl_PREREQ_LSTAT): Remove.
60433         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
60434         Don't require AC_HEADER_STAT.
60435         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
60436         (gl_PREREQ_RMDIR): Remove.
60437         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
60438         mention stat-macros.h or AC_HEADER_STAT, since we'll make
60439         the stat-macros module a prerequisite.
60440         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
60441         * m4/filemode.m4 (gl_FILEMODE): Likewise.
60442         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
60443         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
60444         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
60445         variable names.
60446         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
60447         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
60448         variable prefixes.
60449         * m4/fcntl-safer.m4: Remove.
60450         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
60451         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
60452         Invoke gl_PREREQ_FD_SAFER.
60453         (gl_PREREQ_FD_SAFER): New macro.
60454         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
60455         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
60456         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
60457         Remove duplicate call to AC_LIBOBJ(readutmp).
60458         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
60459
60460         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
60461         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
60462
60463 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
60464
60465         * MODULES.html.sh (Misc): Add byteswap.
60466
60467 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60468
60469         * modules/getcwd (Depends-on): Add extensions.
60470         * modules/openat (Depends-on): Likewise.
60471
60472 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60473
60474         * modules/byteswap: New file.
60475
60476 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60477
60478         * m4/byteswap.m4: New file.
60479
60480 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
60481
60482         * lib/byteswap_.h: New file.
60483
60484 2005-04-25  Karl Berry  <karl@gnu.org>
60485
60486         * m4/gettext.m4: Update from GNU gettext 0.14.4.
60487
60488 2005-04-25  Albert Chin  <china@thewrittenword.com>
60489
60490         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
60491         Toolkit C bug.
60492
60493 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
60494
60495         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
60496         (func_ln_if_changed) Remove forcibly for no error message
60497         in case file does not exist.
60498
60499 2005-04-19  Simon Josefsson  <jas@extundo.com>
60500
60501         * gnulib-tool (Options): Make --symlink mean --symbolic.
60502
60503 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
60504
60505         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
60506
60507 2005-04-16  Simon Josefsson  <jas@extundo.com>
60508
60509         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
60510
60511 2005-04-15  Simon Josefsson  <jas@extundo.com>
60512
60513         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
60514
60515 2005-04-15  Simon Josefsson  <jas@extundo.com>
60516
60517         * gnulib-tool: Rename --symlink to --symbolic.
60518
60519 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
60520
60521         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
60522         symbolic links to files instead of copying/moving.  Add --aux-dir,
60523         specifying directory relative --dir where auxiliary build tools
60524         are placed.
60525
60526 2005-04-14  Bruno Haible  <bruno@clisp.org>
60527
60528         * modules/allocsa (License): Change to LGPL.
60529         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
60530
60531 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
60532
60533         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
60534         that "UTC +1 second" continues to work.  Problem reported
60535         by Dmitry V. Levin.
60536         (relunit_snumber): New rule.
60537         (relunit): Use it.
60538
60539 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
60540
60541         * lib/getdate.y (universal_time_zone_table): New constant.
60542         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
60543         universal_time_zone_table.
60544         (lookup_zone): Prefer universal_time_zone_table to
60545         local_time_zone_table, so that "GMT" time stamps are allowed in
60546         London during the summer.  Problem reported by Ian Abbott.
60547
60548 2005-04-12  Jim Meyering  <jim@meyering.net>
60549
60550         * lib/human.c (humblock): Set *options even when returning due to
60551         xstrtoumax conversion failure.  Thanks to a used-uninitialized
60552         warning from gcc-4.
60553
60554 2005-04-09  Jim Meyering  <jim@meyering.net>
60555
60556         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
60557         -Wuninitialized: initialize tm0.tm_year.
60558
60559 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
60560
60561         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
60562         count, since there's no maximum.  All uses changed.
60563         Add member dsts_seen.
60564         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
60565         not being INT_MAX.
60566         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
60567         Use pc_rels_seen to decide whther a date is absolute.
60568
60569         * lib/getdate.y (number): Don't overwrite year.
60570         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
60571         check.
60572
60573 2005-04-02  Simon Josefsson  <jas@extundo.com>
60574
60575         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
60576         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
60577
60578 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
60579
60580         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
60581         where no absolute path name can be longer than PATH_MAX.
60582
60583 2005-03-27  Jim Meyering  <jim@meyering.net>
60584
60585         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
60586
60587 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
60588
60589         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
60590         "one's complement" -> "ones' complement" in comment, as per Knuth.
60591         "value of type" -> "type or expression" in comment.
60592         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
60593
60594 2005-03-26  Jim Meyering  <jim@meyering.net>
60595
60596         Comment nits.
60597         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
60598         Correct typos: s/or/of/.
60599
60600 2005-03-26  Jim Meyering  <jim@meyering.net>
60601
60602         * modules/check-include-files: Move to ../ and rename to...
60603         * check-module: ...this.
60604
60605 2005-03-25  Jim Meyering  <jim@meyering.net>
60606
60607         * modules/xvasprintf (Files): Add xalloc.h.
60608
60609 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
60610
60611         * modules/gettext (Files): config/config.rpath ->
60612         build-aux/config.rpath
60613         * modules/iconv (Files): Likewise.
60614         Problem reported by Oskar Liljeblad.
60615
60616 2005-03-23  Jim Meyering  <jim@meyering.net>
60617
60618         * modules/check-include-files: New script to check for
60619         missing dependencies, multiple includes, etc.
60620
60621         * modules/c-strtold (Depends-on): Add xalloc.
60622         * modules/c-strtod (Depends-on): Add xalloc.
60623         * modules/hash (Depends-on): Add xalloc.
60624         (Files): Remove lib/xalloc.h.
60625
60626         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
60627         * modules/userspec (Files): Add lib/inttostr.h.
60628
60629 2005-03-23  Jim Meyering  <jim@meyering.net>
60630
60631         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
60632
60633 2005-03-22  Jim Meyering  <jim@meyering.net>
60634
60635         * modules/stat-macros: New module.
60636         * modules/canonicalize, modules/euidaccess, modules/file-type,
60637         * modules/filemode, modules/lchown, modules/makepath,
60638         * modules/rmdir, modules/stat: Depend on new stat-macros module
60639         rather than listing lib/stat-macros.h manually.
60640         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
60641
60642 2005-03-22  Jim Meyering  <jim@meyering.net>
60643
60644         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
60645
60646 2005-03-22  Bruno Haible  <bruno@clisp.org>
60647
60648         * config/srclist.txt: Replace target directory 'config' with
60649         'build-aux'.
60650         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
60651         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
60652         ../build-aux/.
60653
60654 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
60655
60656         * modules/chdir-long (Depends-on): Add mempcpy.
60657
60658         * modules/acl, modules/backupfile, modules/c-strtod,
60659         modules/c-strtold, modules/canon-host, modules/canonicalize,
60660         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
60661         modules/exclude, modules/exitfail, modules/file-type,
60662         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
60663         modules/getdate, modules/getline, modules/getpagesize,
60664         modules/getpass, modules/getugroups, modules/group-member,
60665         modules/hard-locale, modules/hash, modules/human, modules/idcache,
60666         modules/inttostr, modules/long-options, modules/makepath,
60667         modules/md5, modules/memcasecmp, modules/memcoll,
60668         modules/modechange, modules/mountlist, modules/path-concat,
60669         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
60670         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
60671         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
60672         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
60673         modules/strftime, modules/strndup, modules/strverscmp,
60674         modules/timespec, modules/unlocked-io, modules/userspec,
60675         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
60676         modules/yesno:
60677         Remove lib_SOURCES line from Makefile.am section, as this is now
60678         done automatically by the corresponding Autoconf macro.
60679
60680 2005-03-21  Jim Meyering  <jim@meyering.net>
60681
60682         Changes imported from coreutils.
60683
60684         * lib/cycle-check.c: Don't include xalloc.h.
60685
60686         * lib/path-concat.c: Don't include assert.h.
60687         (path_concat): Remove assertion that would have triggered
60688         for ABASE starting with more than one slash.
60689         Reported by Andreas Schwab.
60690
60691         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
60692         properly when ABASE is an absolute file name.
60693         Correct the description of this function.
60694         Include <assert.h>.
60695         Add an assertion and a test driver.
60696         This fixes a bug introduced on 2004-07-02.
60697         Andreas Schwab reported the resulting failure of cp --parents:
60698         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
60699
60700 2005-03-21  Jim Meyering  <jim@meyering.net>
60701
60702         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
60703         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
60704
60705 2005-03-21  Jim Meyering  <jim@meyering.net>
60706         and  Paul Eggert  <eggert@cs.ucla.edu>
60707
60708         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
60709         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
60710         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
60711         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
60712         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
60713         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
60714         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
60715         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
60716         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
60717         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
60718         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
60719         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
60720         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
60721         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
60722         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
60723         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
60724         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
60725         for these modules.
60726
60727 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
60728
60729         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
60730         (which shouldn't happen), generate nothing instead of returning 0
60731         immediately, so that nstrftime (NULL, ...) doesn't return 0.
60732
60733 2005-03-16  Bruno Haible  <bruno@clisp.org>
60734
60735         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
60736         HAVE_LONGLONG_64BIT.
60737
60738 2005-03-16  Bruno Haible  <bruno@clisp.org>
60739
60740         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
60741         HAVE_LONGLONG_64BIT.
60742
60743 2005-03-16  Bruno Haible  <bruno@clisp.org>
60744
60745         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
60746         HAVE_LONGLONG_64BIT.
60747
60748 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
60749
60750         * lib/strftime.c (my_strftime): Prepend space to format so that we can
60751         reliably distinguish strftime failure from empty output on POSIX
60752         hosts.
60753
60754 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
60755
60756         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
60757         (iconv_string): Don't guess a size-zero buffer, as that might cause
60758         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
60759         result would be 'too large', where 'too large' is (heuristically)
60760         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
60761         overflow concerns.  This will prevent some unwanted malloc failures
60762         when the inputs are very large.
60763
60764 2005-03-15  Karl Berry  <karl@gnu.org>
60765
60766         * config/srclist.txt (config.rpath): from gettext.
60767         * config/config.rpath: update.
60768
60769 2005-03-15  Bruno Haible  <bruno@clisp.org>
60770
60771         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
60772         to 'negate'.
60773
60774         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
60775         variable.
60776
60777         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
60778         results.
60779
60780 2005-03-14  Simon Josefsson  <jas@extundo.com>
60781
60782         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
60783         <fx@gnu.org>.
60784
60785 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
60786
60787         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
60788         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
60789         intprops.h.
60790         * lib/strtol.c: Likewise.
60791
60792 2005-03-14  Jim Meyering  <jim@meyering.net>
60793
60794         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
60795         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
60796         to be nonzero so that we (and caller) can detect the difference
60797         between a valid zero-length expansion and an error return, even
60798         when the underlying strftime fails before writing anything into
60799         that location.
60800
60801 2005-03-14  Bruno Haible  <bruno@clisp.org>
60802
60803         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
60804         Update from GNU gettext 0.14.3.
60805
60806 2005-03-10  Jim Meyering  <jim@meyering.net>
60807
60808         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
60809
60810 2005-03-10  Jim Meyering  <jim@meyering.net>
60811
60812         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
60813         so that this module works on systems without fchdir.
60814
60815 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
60816
60817         Factor int-properties macros into a single file, except for
60818         glibc-related files.
60819         * lib/intprops.h: New file.
60820         * lib/getloadavg.c: Include it instead of limits.h.
60821         (INT_STRLEN_BOUND): Remove.
60822         * lib/human.c: Include intprops.h.
60823         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
60824         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
60825         302/1000.
60826         * lib/inttostr.h: Include intprops.h instead of limits.h.
60827         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
60828         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
60829         for consistency with intprops.h.
60830         (time_t_is_integer, twos_complement_arithmetic): Use them.
60831         * lib/sig2str.h: Include <signal.h>, intprops.h.
60832         (INT_STRLEN_BOUND): Remove.
60833         * lib/strftime.c (TYPE_SIGNED): Remove.
60834         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
60835         * lib/strtol.c: Adjust comments to match intprops.h.
60836         * lib/userspec.c: Include intprops.h.
60837         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
60838         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
60839         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
60840         instead of rolling our own expressions.
60841         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
60842
60843         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
60844         instead of int.
60845         (my_strftime): Do not mishandle years close to INT_MAX, by doing
60846         the right thing even if adding 1900 would overflow.  Similarly
60847         for tm_mon + 1 and tm_yday + 1.
60848         Make %Y always equivalent to %C%y, and similarly for %G and %g.
60849         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
60850         (DO_SIGNED_NUMBER): New macro.
60851         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
60852
60853 2005-03-07  Bruno Haible  <bruno@clisp.org>
60854
60855         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
60856
60857 2005-03-07  Bruno Haible  <bruno@clisp.org>
60858
60859         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
60860
60861 2005-03-04  Derek R. Price  <derek@ximbiot.com>
60862
60863         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
60864         (func_import): Only replace files via --import when they have actually
60865         changed.
60866
60867 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60868
60869         * m4/mmap-anon.m4: New file.
60870         * m4/pagealign_alloc.m4: New file.
60871
60872 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60873             Bruno Haible  <bruno@clisp.org>
60874
60875         * modules/pagealign_alloc: New file.
60876         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
60877
60878 2005-03-03  Derek R. Price  <derek@ximbiot.com>
60879             Bruno Haible  <bruno@clisp.org>
60880
60881         * lib/pagealign_alloc.h: New file.
60882         * lib/pagealign_alloc.c: New file.
60883
60884 2005-03-03  Bruno Haible  <bruno@clisp.org>
60885
60886         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
60887         Use an all-permissive copyright notice, recommended by RMS.
60888
60889 2005-03-02  Bruno Haible  <bruno@clisp.org>
60890
60891         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
60892         of AIX, the replacement has to be done only after <string.h> is
60893         included, therefore not in config.h. stpncpy.h does the replacement,
60894         and stpncpy.c uses it.
60895
60896 2005-03-02  Bruno Haible  <bruno@clisp.org>
60897
60898         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
60899         stpncpy.c uses it.
60900
60901 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60902
60903         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
60904         The workaround isn't strictly needed for POSIX conformance, and
60905         it's too much of a pain to configure and maintain.  We'll ask
60906         people to fix their kernels instead.
60907         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
60908         (NANOSLEEP_BUG_WORKAROUND): Remove.
60909         (xnanosleep): Remove the workaround.
60910
60911 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60912
60913         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
60914         Reported by Derek Price.
60915         (Include): Add "timespec.h".
60916
60917         * modules/xnanosleep (Depends-on): Remove gethrxtime.
60918
60919 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
60920
60921         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
60922         to detect nanosleep bug.
60923
60924 2005-03-01  Bruno Haible  <bruno@clisp.org>
60925
60926         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
60927
60928 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
60929
60930         * modules/gethrxtime: New file.
60931         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
60932         (Depends-on): Add gethrxtime.
60933         (configure.ac): Add gl_XNANOSLEEP.
60934         (Makefile.am): Remove lib_SOURCES line.
60935
60936 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60937
60938         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
60939         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
60940
60941 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
60942
60943         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
60944         * lib/timespec.h (gettime): Return void, since it always
60945         succeeds now.  All uses changed.
60946         * lib/gettime.c (gettime) Likewise.
60947         [HAVE_NANOTIME]: Prefer nanotime.
60948         Assume gettimeofday succeeds, as POSIX requires.
60949         Assime time () succeeds, since other code already does.
60950         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
60951         (timespec_subtract): Remove.
60952         (NANOSLEEP_BUG_WORKAROUND): New constant.
60953         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
60954         things considerably.  Use it only on GNU/Linux hosts, since the
60955         workaround shouldn't be needed elsewhere.
60956
60957 2005-02-24  Bruno Haible  <bruno@clisp.org>
60958
60959         * modules/gettext (Files): Add m4/glibc2.m4.
60960
60961 2005-02-24  Bruno Haible  <bruno@clisp.org>
60962
60963         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
60964         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
60965         * m4/progtest.m4:
60966         Update from GNU gettext 0.14.2.
60967         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
60968
60969 2005-02-24  Bruno Haible  <bruno@clisp.org>
60970
60971         * lib/localcharset.c: Update from GNU gettext 0.14.2.
60972         * lib/config.charset: Update from GNU gettext 0.14.2.
60973
60974 2005-02-24  Bruno Haible  <bruno@clisp.org>
60975
60976         * lib/gettext.h: Update from GNU gettext 0.14.2.
60977
60978 2005-02-23  Simon Josefsson  <jas@extundo.com>
60979
60980         * m4/iconvme.m4: New file.
60981
60982 2005-02-23  Jim Meyering  <jim@meyering.net>
60983
60984         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
60985         change.
60986         Thanks to Bruno Haible for catching it.
60987
60988 2005-02-22  Simon Josefsson  <jas@extundo.com>
60989
60990         * modules/iconvme: New file.
60991
60992         * MODULES.html.sh: Add iconvme.
60993
60994 2005-02-22  Simon Josefsson  <jas@extundo.com>
60995
60996         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
60997
60998 2005-02-22  Simon Josefsson  <jas@extundo.com>
60999
61000         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
61001
61002 2005-02-22  Jim Meyering  <jim@meyering.net>
61003
61004         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
61005         s/ifndef/ifdef/.
61006
61007 2005-02-20  Neil Conway  <neilc@samurai.com>
61008
61009         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
61010         returned by OSX/Darwin if the specified buffer is not large
61011         enough for the hostname.
61012
61013 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61014
61015         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
61016         pass it to _help, otherwise the latter coredumps trying to
61017         dereference state.root_argp.
61018
61019 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61020
61021         * modules/chdir-long (Depends-on): Add memrchr.
61022         * modules/memrchr (Files): Add lib/memrchr.h.
61023         (Include): "memrchr.h".
61024
61025 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61026
61027         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
61028
61029 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
61030
61031         * lib/memrchr.h: New file.
61032         * lib/chdir-long.c: Include it.
61033         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
61034         Don't bother including stddef.h.
61035
61036 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
61037
61038         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
61039         inclusion.
61040         Include <sys/types.h>, for dev_t.
61041         (ME_DUMMY, ME_REMOTE): Move from here....
61042         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
61043         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
61044         Dmitry V. Levin.
61045         Include mountlist.h first, to test the interface.
61046
61047 2005-01-29  Bruno Haible  <bruno@clisp.org>
61048
61049         * lib/progname.c (program_name): Initialize.
61050         Needed when linking statically on MacOS X.
61051
61052 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61053
61054         Sync from coreutils.
61055         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
61056         (Depends-on): Add c-strtod.
61057         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
61058
61059 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
61060
61061         Sync from coreutils.
61062         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
61063
61064         Remove files that are specific to coreutils.
61065         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
61066
61067 2005-01-28  Bruno Haible  <bruno@clisp.org>
61068
61069         * modules/javacomp: New file.
61070         * MODULES.html.sh (Java): Add javacomp.
61071
61072 2005-01-28  Bruno Haible  <bruno@clisp.org>
61073
61074         * m4/javacomp.m4: New file, from GNU gettext.
61075
61076 2005-01-28  Bruno Haible  <bruno@clisp.org>
61077
61078         * lib/javacomp.sh.in: New file, from GNU gettext.
61079         * lib/javacomp.h: New file, from GNU gettext.
61080         * lib/javacomp.c: New file, from GNU gettext.
61081
61082 2005-01-26  Simon Josefsson  <jas@extundo.com>
61083
61084         * lib/gai_strerror.c: Use GPL in header.
61085
61086 2005-01-26  Bruno Haible  <bruno@clisp.org>
61087
61088         * modules/javaexec: New file.
61089         * MODULES.html.sh (Java): Add javaexec.
61090
61091 2005-01-26  Bruno Haible  <bruno@clisp.org>
61092
61093         * m4/javaexec.m4: New file, from GNU gettext.
61094
61095 2005-01-26  Bruno Haible  <bruno@clisp.org>
61096
61097         * lib/javaexec.sh.in: New file, from GNU gettext.
61098         * lib/javaexec.h: New file, from GNU gettext.
61099         * lib/javaexec.c: New file, from GNU gettext.
61100
61101 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61102
61103         * modules/lchown (Depends-on): Remove lchown.h
61104
61105 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61106
61107         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
61108         must be defined if the header file was not found, in order
61109         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
61110
61111 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61112
61113         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
61114         initializers for struct pentry_state.
61115         (__argp_error): Check return value of __asprintf
61116         (__argp_failure): Translate error message
61117
61118         * lib/argp-parse.c: Removed braces around the expansion of N_()
61119
61120 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61121
61122         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
61123         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
61124         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
61125         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
61126         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
61127         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
61128         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
61129         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
61130         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
61131         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
61132         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
61133         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
61134         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
61135         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
61136         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
61137         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
61138         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
61139         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
61140         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
61141         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
61142         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
61143         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
61144         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
61145         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
61146         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
61147         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
61148         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
61149         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
61150         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
61151         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
61152         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
61153         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
61154         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
61155         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
61156         xstrtol.m4, xstrtoumax.m4, yesno.m4:
61157         Use an all-permissive copyright notice, recommended by RMS.
61158
61159 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
61160
61161         * modules/chdir-long (Depends-on): Remove mempcpy.
61162
61163 2005-01-21  Jim Meyering  <jim@meyering.net>
61164
61165         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
61166         same value as for Solaris 9.
61167
61168         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
61169         component length.  This included changing the parameter to be
61170         of type `char *' rather than `char const *'.
61171         * lib/chdir-long.h (chdir_long): Update prototype.
61172
61173         * lib/openat.c (fdopendir, fstatat): New functions.
61174         * lib/openat.h: Include headers required for use of DIR and struct
61175         stat.
61176         [AT_SYMLINK_NOFOLLOW]: Define.
61177         (fdopendir, fstatat): Add prototypes.
61178
61179 2005-01-21  Bruno Haible  <bruno@clisp.org>
61180
61181         * modules/classpath: New file.
61182         * MODULES.html.sh (Java): Add classpath.
61183
61184 2005-01-21  Bruno Haible  <bruno@clisp.org>
61185
61186         * lib/classpath.h: New file, from GNU gettext.
61187         * lib/classpath.c: New file, from GNU gettext.
61188
61189 2005-01-20  Simon Josefsson  <jas@extundo.com>
61190
61191         * modules/version-etc-fsf: New file.
61192
61193 2005-01-20  Simon Josefsson  <jas@extundo.com>
61194
61195         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
61196         * lib/version-etc.c: Remove version_etc_copyright.
61197         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
61198         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
61199
61200 2005-01-20  Simon Josefsson  <jas@extundo.com>
61201
61202         * lib/base64.h (isbase64): Add.
61203
61204         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
61205         using a unsigned prototype, don't inline.
61206         (base64_decode): Use it.
61207
61208 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61209
61210         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
61211         it.
61212
61213 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61214
61215         * lib/save-cwd.c (save_cwd): Remove code to support the case
61216         where fchdir is missing or flaky.
61217
61218 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
61219
61220         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
61221
61222 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61223
61224         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
61225         AC_LIBSOURCES now does this.
61226         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
61227         with new ullong_max module.
61228
61229 2005-01-19  Bruno Haible  <bruno@clisp.org>
61230
61231         * modules/sh-quote: New file.
61232         * MODULES.html.sh (Executing programs): Add sh-quote.
61233
61234 2005-01-19  Bruno Haible  <bruno@clisp.org>
61235
61236         * lib/sh-quote.h: New file, from GNU gettext.
61237         * lib/sh-quote.c: New file, from GNU gettext.
61238
61239 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61240
61241         Merge from coreutils.
61242         * m4/ullong_max.m4: New file.
61243         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
61244         (gl_MACROS): Assume localeconv exists.
61245
61246 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61247
61248         Merge changes from coreutils, as described below in several
61249         changelogs dated today.
61250
61251         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
61252         (O_DIRECTORY): Remove; not needed here, since "." must be
61253         a directory.  All uses removed.
61254         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
61255         universal on Suns, and we also need to test for IRIX.
61256         Revamp code to use 'if' rather than '#if'.
61257         Avoid unnecessary comparison of cwd->desc to 0.
61258
61259         * lib/utimens.c (futimens): Robustify the previous patch, by checking
61260         for known valid error numbers rather than observed invalid ones.
61261
61262 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
61263
61264         * modules/ullong_max: New file.
61265
61266         * modules/chdir-long, modules/openat: New files.
61267         * modules/save-cwd (Depends-on): Depend on chdir-long.
61268         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
61269
61270 2005-01-18  Jim Meyering  <jim@meyering.net>
61271
61272         Merge from coreutils.
61273         * m4/chdir-long.m4, m4/openat.m4: New files.
61274         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
61275         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
61276         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
61277         is sane and DOES follow symlinks.  Besides, testing 20 different
61278         systems found no broken chown implementations.
61279         Prompted by a change in rsync's copy of this macro.
61280         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
61281
61282         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
61283
61284         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
61285         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
61286         NULL-means-set-to-current-time semantics.
61287         Remove temporary file immediately, rather than waiting
61288         for configure's at-exit trap code to do it.
61289
61290 2005-01-18  Jim Meyering  <jim@meyering.net>
61291
61292         * lib/version-etc.c (version_etc_copyright): Update copyright date.
61293
61294         * lib/utimens.c (futimens): Account for the fact that futimes
61295         can also fail with errno == ENOSYS or errno == ENOENT.
61296         Patch from Dmitry V. Levin.
61297
61298         Change the name of the robust chdir function from chdir to chdir_long.
61299         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
61300         (restore_cwd): Use chdir_long, not chdir.
61301         * lib/chdir-long.c: Renamed from chdir.c.
61302         * lib/chdir-long.h: Renamed from chdir.h.
61303         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
61304         Hurd.
61305
61306 2005-01-18  Bruno Haible  <bruno@clisp.org>
61307
61308         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
61309         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
61310         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
61311         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
61312         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
61313         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
61314         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
61315         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
61316         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
61317         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
61318         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
61319         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
61320         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
61321         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
61322         Use an all-permissive copyright notice, recommended by RMS.
61323
61324 2005-01-18  Bob Proulx  <bob@proulx.com>
61325
61326         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
61327         simplify offsetof() macro construct to avoid compile failure with
61328         native HP-UX 11.0 ANSI C compiler.
61329
61330 2005-01-17  Bruno Haible  <bruno@clisp.org>
61331
61332         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
61333         redundant because stpncpy.m4 takes care of it.
61334
61335 2005-01-17  Bruno Haible  <bruno@clisp.org>
61336
61337         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
61338
61339 2005-01-17  Bruno Haible  <bruno@clisp.org>
61340
61341         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
61342         used.
61343
61344 2005-01-17  Bruno Haible  <bruno@clisp.org>
61345
61346         * lib/fwriteerror.h (fwriteerror): Change specification to include
61347         fclose.
61348         * lib/fwriteerror.c: Include <stdbool.h>.
61349         (fwriteerror): At the end, close the file stream. Record whether
61350         stdout was already closed.
61351
61352 2005-01-17  Bruno Haible  <bruno@clisp.org>
61353
61354         * lib/execute.c (environ): Declare if needed.
61355         * lib/pipe.c (environ): Likewise.
61356         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
61357
61358 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61359
61360         * modules/argp: Depend on vsnprintf
61361
61362 2005-01-10  Jim Meyering  <jim@meyering.net>
61363
61364         * modules/closeout (Depends-on): Add atexit.
61365
61366 2005-01-06  Bruno Haible  <bruno@clisp.org>
61367
61368         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
61369
61370 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61371
61372         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
61373         definitions to be after all include files, to avoid collisions.
61374         Problem reported by Bob Proulx.
61375
61376 2005-01-04  Jim Meyering  <jim@meyering.net>
61377
61378         Changes imported from coreutils.
61379         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
61380         as the mkstemp template, use a temporary directory and an
61381         8.3-friendly template to avoid trouble on systems like DJGPP.
61382         Reported by Juan M. Guerrero via Stepan Kasal.
61383         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
61384         close. Remove the temporary directory right away, rather than waiting
61385         for configure's at-exit trap code to do it.
61386         Suggestion from Stepan Kasal.
61387
61388 2005-01-01  Simon Josefsson  <jas@extundo.com>
61389
61390         * gnulib-tool: Print #include directives when --import'ing.
61391
61392 2004-12-28  Simon Josefsson  <jas@extundo.com>
61393
61394         * tests/test-base64.c: Include required header files.  Remove
61395         unused variables.
61396
61397 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61398
61399         * modules/error (Depends-on): Remove gettext.
61400
61401 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61402
61403         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
61404         not needed.  This removes a dependency on the gettext module.
61405         [defined _LIBC]: Do not include <libintl.h>; not needed.
61406
61407 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
61408
61409         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
61410         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
61411
61412 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
61413
61414         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
61415         HAVE_DECL_STRTOLD.
61416
61417 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61418
61419         * modules/getdate (Depends-on): Remove alloca-opt.
61420
61421 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61422
61423         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
61424
61425 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61426
61427         * lib/argp-parse.c: Include <stddef.h>.
61428         (alignof, alignto): New macros.
61429         (parser_init): Don't assume that void * is aligned sufficiently
61430         for struct option.
61431
61432         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
61433         need to extend the stack.
61434         (YYINITDEPTH): New macro, so that the initial stack isn't overly
61435         large.
61436
61437 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61438
61439         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
61440
61441 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61442
61443         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
61444         (2004-10-24) change.  Apparently this was a false alarm.
61445
61446         * modules/getdate: Depend on alloca-opt, not alloca.
61447
61448 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
61449
61450         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
61451         Remove now-obsolete comment about AIX.
61452         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
61453         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
61454         (YYMAXDEPTH): New macro.
61455
61456 2004-12-18  Simon Josefsson  <jas@extundo.com>
61457
61458         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
61459
61460 2004-12-18  Bruno Haible  <bruno@clisp.org>
61461
61462         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
61463
61464 2004-12-18  Bruno Haible  <bruno@clisp.org>
61465
61466         * lib/fatal-signal.c (fatal_signals): Make non-const.
61467         (init_fatal_signals): New function.
61468         (uninstall_handlers, install_handlers): Ignore signals that were set to
61469         SIG_IGN.
61470         (at_fatal_signal): Call init_fatal_signals.
61471         (init_fatal_signal_set): Likewise. Ignore signals that were set to
61472         SIG_IGN.
61473         Reported by Paul Eggert.
61474
61475 2004-12-18  Bruno Haible  <bruno@clisp.org>
61476
61477         * doc/alloca.texi: New file.
61478         * doc/alloca-opt.texi: New file.
61479
61480 2004-12-17  Jim Meyering  <jim@meyering.net>
61481
61482         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
61483         Otherwise, install-sh could exit with improper exit status when
61484         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
61485
61486 2004-12-16  Simon Josefsson  <jas@extundo.com>
61487
61488         * tests/test-base64.c: Add license.
61489
61490 2004-12-15  Stepan Kasal  <address@hidden>
61491
61492         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
61493
61494 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
61495
61496         * modules/getcwd (Files): Add m4/d-ino.m4.
61497         Suggested by Mark D. Baushke.
61498
61499 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
61500
61501         * lib/getdate.y (textint): New member "negative".
61502         (time_zone_hhmm): New function.
61503         Expect 14 shift-reduce conflicts, not 13.
61504         (o_colon_minutes): New rule.
61505         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
61506         (yylex): Set the "negative" member of signed numbers.
61507
61508 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
61509
61510         * doc/getdate.texi (Time of day items, Time zone items):
61511         Describe new formats +00:00, UTC+00:00.
61512
61513 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
61514
61515         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
61516         spurious "-l"s.  Problem reported by Stepan Kasal.
61517
61518 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
61519
61520         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
61521         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
61522
61523 2004-12-04  Simon Josefsson  <jas@extundo.com>
61524
61525         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
61526         Vandoorselaere <yoann@prelude-ids.org>.
61527
61528 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61529
61530         Changes imported from coreutils.
61531         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
61532         exist.
61533         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
61534
61535 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61536
61537         Changes imported from coreutils.
61538         * lib/hard-locale.c: Assume <locale.h> exists.
61539         Include "strdup.h".
61540         (GLIBC_VERSION): New macro.
61541         (hard_locale): Assume setlocale exists.
61542         Rewrite to avoid #ifdef.
61543         Use strdup rather than malloc + strcpy.
61544         * lib/human.c: Assume <locale.h> exists.
61545         (human_readable): Assume localeconv exists.
61546
61547 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
61548
61549         * modules/hard-locale (Depends-on): Add strdup.
61550
61551 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61552
61553         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
61554         convert T2, not T.  (Imported from libc.)
61555
61556 2004-11-30  Simon Josefsson  <jas@extundo.com>
61557
61558         * modules/restrict (License): Change to LGPL.
61559
61560 2004-11-30  Simon Josefsson  <jas@extundo.com>
61561
61562         * m4/restrict.m4: Add copyright and copying conditions.
61563
61564 2004-11-30  Simon Josefsson  <jas@extundo.com>
61565
61566         * m4/base64.m4: New file.
61567
61568 2004-11-30  Simon Josefsson  <jas@extundo.com>
61569
61570         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
61571         base64.
61572
61573         * tests/test-base64.c: New file.
61574
61575         * modules/base64: New file.
61576
61577 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
61578
61579         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
61580         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
61581
61582         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
61583
61584 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
61585
61586         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
61587         (__getcwd.c): Don't restore errno; glibc doesn't.
61588         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
61589         first, falling back to our code only if its results look suspicious.
61590         Ensure that the resulting buffer is only as large as necessary.
61591
61592         * lib/readutmp.c: Include readutmp.h first.
61593         Include <errno.h>, since readutmp.h no longer does that.
61594         * lib/readutmp.h: Don't include <errno.h>,
61595         <sys/param.h>, <time.h>; not needed to establish interface.
61596         (errno): Remove decl.
61597         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
61598         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
61599         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
61600
61601 2004-11-28  Simon Josefsson  <jas@extundo.com>
61602
61603         * lib/base64.h, base64.c: New file.
61604
61605 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61606
61607         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
61608
61609 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61610
61611         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
61612         (Depends-on): Remove pathmax, same.  Add mempcpy.
61613         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
61614         (Makefile.am): Append getcwd.h to lib_SOURCES.
61615         (Include): Add getcwd.h.
61616         (Maintainer): Change from Jim Meyering to "all, glibc",
61617         since getdate now uses intended-for-glibc code.
61618         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
61619         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
61620
61621 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61622
61623         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
61624         HP's ANSI C compiler.
61625         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
61626         Declaring int functions causes warnings on some modern systems and
61627         shouldn't be needed to compile on ancient ones.
61628         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
61629         defined.
61630
61631         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
61632         with the following changes.
61633         (__set_errno): Parenthesize properly.
61634         Include <stdbool.h>.
61635         (MIN, MAX, MATCHING_INO): New macros.
61636         (__getcwd): Define with prototype, not K&R form.
61637         Use heuristics to allocate default buffer on stack if possible.
61638         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
61639         behavior, and to avoid the PATH_MAX limit when computing
61640         ../../../../...
61641         Use MATCHING_INO to compare inode number to file.
61642         Check for arithmetic overflow in size calculations.
61643         Fix bug in reallocation of dot array that caused getcwd to fail
61644         on directories nested deeper than 75.
61645         Be more careful about saving errno on error.
61646         Do not use realloc; use only free+malloc, as this is a bit
61647         more flexible and avoids a needless copy operation.
61648         Do not inspect st_dev and st_ino for symbolic links; POSIX
61649         doesn't specify the latter.
61650         Check for closedir errors.
61651         Avoid needless casts.
61652         Use "#ifdef weak_alias" around weak_alias, to be like other
61653         glibc code.
61654         The following changes to getcwd.c have effect only when used in
61655         gnulib; they have no effect inside glibc proper.
61656         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
61657         as alloca isn't used.
61658         (alloca, __alloca): Likewise.
61659         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
61660         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
61661         unconditionally, as gnulib assumes C89 or better.
61662         Do not include <sys/param.h>.
61663         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
61664         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
61665         better.
61666         (NULL) [!defined NULL]: Remove; we assume C89 or better.
61667         Include <dirent.h> in a way that is compatible with modern Autoconf.
61668         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
61669         New macros, if not already defined.
61670         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
61671         Use "_LIBC", not "defined _LIBC", for consistency.
61672         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
61673         a mempcpy module.
61674         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
61675         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
61676         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
61677         credit only to Jim Meyering and adjust the copyright dates.
61678         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
61679         <stdlib.h>, <unistd.h>, "pathmax.h".
61680         Instead, include "xgetcwd.h" (first) and "getcwd.h".
61681         (INITIAL_BUFFER_SIZE): Remove.
61682         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
61683
61684 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
61685
61686         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
61687         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
61688         Use the _ONCE methods, for efficiency.
61689         Check for fcntl.h.  In test program, include <errno.h>
61690         and <fcntl.h> if available.  Remove old K&R cruft from
61691         test program.  Check for common errors in GNU/Linux,
61692         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
61693         don't do AC_LIBOBJ, as that's getcwd.m4's job.
61694         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
61695         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
61696         name accordingly.
61697         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
61698         accommodate new getcwd.c.
61699         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
61700         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
61701         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
61702         that's all we need now.
61703
61704 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61705
61706         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
61707         argp-parse.c depends on getopt internals, that means we should
61708         always use our getopt, to be on the safe side.
61709         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
61710         order not to spoil the result of an eventual previous invocation
61711         of gl_GETOPT_SUBSTITUTE.
61712
61713 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
61714
61715         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
61716         redefinition warnings. To avoid them, include the defines
61717         in `#if !defined __need_getopt ... #endif'. The only place
61718         where __getopt_argv_const is used is in definitions
61719         of getopt_long and getopt_long_only below, which are as well
61720         protected by `#ifndef __need_getopt'.
61721         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
61722         __need_getopt after including <stdio.h> and <unistd.h> These
61723         headers might have defined it.
61724
61725 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
61726
61727         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
61728
61729 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
61730
61731         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
61732         (futimens): New function, which uses futimes if available.
61733         (futimens, utimens): Support timespec==NULL, with same semantics
61734         as utime and utimens.
61735         * lib/utimens.h (futimens): New decl.
61736
61737 2004-11-23  Jim Meyering  <jim@meyering.net>
61738
61739         * lib/getopt_.h: Remove trailing blanks.
61740
61741 2004-11-23  Jim Meyering  <jim@meyering.net>
61742
61743         * lib/__fpending.c: Add comment.
61744
61745 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
61746
61747         * modules/canonicalize (Depends-on): Add xreadlink.
61748         Problem reported by James Youngman.
61749
61750 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61751
61752         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
61753         New macros.
61754         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
61755         optopt): Use them instead of invoking ## directly; otherwise, the
61756         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
61757
61758 2004-11-19  Bruno Haible  <bruno@clisp.org>
61759
61760         * lib/strtok_r.c: Move comments from here...
61761         * lib/strtok_r.h: ... to here.
61762
61763 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61764
61765         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
61766         implementations that mishandle size_t overflow.
61767
61768 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61769
61770         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
61771         might fail.  Problem reported by Yoann Vandoorselaere.
61772         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
61773         implementations that mishandle size_t overflow.
61774
61775 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61776
61777         * modules/canon-host (Depends-on): Add strdup.
61778
61779 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61780
61781         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
61782
61783 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61784
61785         * lib/canon-host.c: Include "strdup.h".
61786         (canon_host): Use getaddrinfo if available, so that IPv6 works.
61787         Use strdup instead of malloc/strcpy to duplicate strings.
61788
61789         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
61790         (human_space_before_unit): New constant.
61791         * lib/human.c (human_readable): Support it.
61792
61793         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
61794         (xgetcwd): Set errno correctly when failing.
61795         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
61796         the failure is actually due to a PATH_MAX problem.
61797
61798         Further getopt changes to make it more likely that glibc will
61799         buy the changes back.
61800         * lib/getopt.c (POSIXLY_CORRECT): New constant.
61801         (getopt): Use it, so to preserve glibc semantic
61802         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
61803         when compiling for libc.
61804         * lib/getopt_.h (__getopt_argv_const): Bring it back.
61805         (getopt_long, getopt_long_only): Use it.
61806
61807         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
61808         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
61809         (getopt): Argv is now char * const *, as per standard.
61810         (_getopt_internal_r, _getopt_internal): Argv is now char **,
61811         not char *__getopt_argv_const *.
61812         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
61813         _getopt_long_only_r): Likewise.
61814         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
61815         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
61816         _getopt_long_r, _getopt_long_only_r): Likewise.
61817         * lib/getopt_.h (__getopt_argv_const): Remove.
61818         (getopt): Argv is now char * const *, as per standard.
61819
61820         * lib/getdate.y (tORDINAL): New token.
61821         (day, relunit): Allow it for relative times.
61822         (relative_time_table): Use tORDINAL for ordinals.
61823
61824 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61825
61826         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
61827         Document that "second" isn't allowed as an ordinal number.
61828
61829 2004-11-16  Jim Meyering  <jim@meyering.net>
61830
61831         * modules/closeout (Depends-on): Add fpending.
61832
61833 2004-11-15  Jim Meyering  <jim@meyering.net>
61834
61835         * lib/closeout.c: Include "__fpending.h" once again.
61836         Include <stdbool.h>.
61837         (close_stdout): Don't fail just because stdout was closed initially,
61838         since some programs don't write to stdout in the normal course of
61839         operation (other than --version and --help), and we don't want this
61840         function to make e.g. `touch file >&-' fail.
61841         But do fail if it was closed and someone has tried to write to it.
61842         E.g., `printf foo >&-' must fail.
61843
61844 2004-11-13  Jim Meyering  <jim@meyering.net>
61845
61846         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
61847
61848 2004-11-12  Simon Josefsson  <jas@extundo.com>
61849
61850         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
61851         small doc fix is still pending.
61852
61853 2004-11-11  Simon Josefsson  <jas@extundo.com>
61854
61855         * modules/strtok_r: New file.
61856
61857         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61858         strtok_r.
61859
61860 2004-11-11  Simon Josefsson  <jas@extundo.com>
61861
61862         * m4/strtok_r.m4: New file.
61863
61864         * m4/getopt.m4: Replace opterr.
61865
61866 2004-11-11  Simon Josefsson  <jas@extundo.com>
61867
61868         * lib/strtok_r.h, strtok_r.c: New file.
61869
61870 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
61871
61872         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
61873         of replacing opterr, getopt, etc.  This should handle the
61874         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
61875
61876 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
61877
61878         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
61879         we can stop lying to compilers about the constness of argv when we
61880         are compiled outside glibc.
61881         (getopt, getopt_long, getopt_long_only): Use it.
61882         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
61883         _getopt_internal, getopt): Likewise.
61884         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
61885         _getopt_long_only_r): Likewise.
61886         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
61887         _getopt_long_r, _getopt_long_only_r): Likewise.
61888
61889         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
61890         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
61891         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
61892         the other external symbols.
61893         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
61894         declaration, since the above renaming now works around collisions.
61895
61896 2004-11-11  Jim Meyering  <jim@meyering.net>
61897
61898         * lib/linebreak.c: Remove trailing blanks.
61899         * lib/alloca_.h: Likewise.
61900         * lib/acosl.c: Likewise.
61901         * lib/euidaccess.c: Likewise.
61902         * lib/allocsa.h: Likewise.
61903
61904 2004-11-10  Simon Josefsson  <jas@extundo.com>
61905
61906         * m4/getaddrinfo.m4: New file.
61907
61908 2004-11-10  Simon Josefsson  <jas@extundo.com>
61909
61910         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
61911
61912 2004-11-10  Simon Josefsson  <jas@extundo.com>
61913
61914         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
61915         getaddrinfo.
61916
61917         * modules/getaddrinfo: New file.
61918
61919 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61920
61921         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
61922
61923 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
61924
61925         * lib/mktime.c (SHR): New macro, which is a portable
61926         substitute for >> that should work even on Crays.
61927         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
61928         Problem reported by Mark D. Baushke in
61929         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
61930         * lib/getdate.y (SHR): Likewise.
61931         (tm_diff): Use it.
61932         * lib/strftime.c (SHR): Likewise.
61933         (tm_diff): Use it.
61934         * lib/quotearg.c (struct quoting_options): Use unsigned int for
61935         quote_these_too, so that right shifts are well defined.  All uses
61936         changed.
61937
61938 2004-11-10  Jim Meyering  <jim@meyering.net>
61939
61940         Ensure that no close failure goes unreported.
61941         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
61942         return early when it seems there's nothing to flush.
61943         Don't include __fpending.h.
61944
61945 2004-11-10  Jim Meyering  <jim@meyering.net>
61946
61947         * modules/closeout (Depends-on): Remove fpending.
61948
61949 2004-11-10  Jim Meyering  <jim@meyering.net>
61950
61951         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
61952
61953 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61954
61955         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
61956         gl_FUNC_STRFTIME.
61957         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
61958         and AC_REQUIRE when possible, to avoid duplicate checks.
61959         Check for <wchar.h>.
61960
61961 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61962
61963         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
61964
61965 2004-11-09  Bruno Haible  <bruno@clisp.org>
61966
61967         * m4/sockpfaf.m4: New file.
61968
61969 2004-11-05  Bruno Haible  <bruno@clisp.org>
61970
61971         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
61972         Reported by Mark D. Baushke <mdb@cvshome.org>.
61973
61974 2004-11-04  Bruno Haible  <bruno@clisp.org>
61975
61976         2004-09-11  Bruno Haible  <bruno@clisp.org>
61977                 * allocsa.valgrind: New file.
61978         2004-02-06  Bruno Haible  <bruno@clisp.org>
61979                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
61980                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
61981                 Reported by Christopher Seip <chris.seip@hp.com>.
61982
61983 2004-11-04  Bruno Haible  <bruno@clisp.org>
61984
61985         * modules/allocsa (Files): Add lib/allocsa.valgrind.
61986         (Makefile.am): Distribute it.
61987
61988 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
61989
61990         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
61991         with errno == ERANGE if the buffer is too small.
61992         Problem reported by Mark D. Baushke.
61993
61994 2004-11-03  Albert Chin  <china@thewrittenword.com>
61995             Paul Eggert  <eggert@cs.ucla.edu>
61996
61997         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
61998         equivalent, substitute $ac_type for equivalent type rather than
61999         blindly using uint32_t *always* which won't work if uint32_t is not
62000         available.  Define _UINT32_T to work around typedef of uint32_t if
62001         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
62002         2.5.1.
62003
62004 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62005
62006         * m4/jm-macros.m4: Sync from coreutils.
62007         (gl_MACROS): Check for mbrlen, for pathchk.
62008         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
62009
62010 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62011
62012         * lib/xreadlink.c (MAXSIZE): New macro.
62013         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
62014         size does not exceed MAXSIZE.  Avoid cast.
62015         As suggested by Mark D. Baushke in
62016         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
62017         if readlink fails with buffer size just under MAXSIZE, try again
62018         with MAXSIZE.
62019
62020 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
62021
62022         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
62023
62024 2004-11-02  Derek R. Price  <derek@ximbiot.com>
62025         and  Paul Eggert  <eggert@cs.ucla.edu>
62026
62027         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
62028         (get_date): Overparenthesize to avoid GCC warning.
62029
62030 2004-11-02  Bruno Haible  <bruno@clisp.org>
62031
62032         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
62033         returns void.
62034
62035 2004-11-02  Bruno Haible  <bruno@clisp.org>
62036
62037         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
62038         function returns void.
62039
62040 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62041
62042         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
62043         fflush_unlocked, flockfile, funlockfile, funlockfile,
62044         fputs_unlocked, putc_unlocked.
62045
62046 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62047
62048         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
62049         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
62050         already declared.
62051
62052 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62053
62054         * modules/getdate (Files): Add doc/getdate.texi.
62055         (Depends-on): Add setenv, xalloc.
62056
62057 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62058
62059         * lib/getdate.y: Add support for TZ="foo" within a date string.
62060         Fix some bugs near time_t boundaries.  Reject dates with
62061         out-of-range components, e.g., "Sept 31".
62062         Include <stdlib.h>, "setenv.h", "xalloc.h".
62063         (ISDIGIT_LOCALE): Remove; unused.
62064         Note that the TZ and time functions used here are not reentrant.
62065         (mktime_ok, get_tz): New functions.
62066         (TZBUFSIZE): New constant.
62067         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
62068         This requires that we sometimes generate our own TZ="XXX..." setting.
62069
62070 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
62071
62072         * doc/getdate.texi: New file, from coreutils with modifications for
62073         the new TZ parsing.
62074
62075 2004-10-27  Derek R. Price  <derek@ximbiot.com>
62076
62077         * lib/mktime.c (not_equal_tm): Remove redundant check.
62078
62079 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62080
62081         * modules/regex (lib_SOURCES): Add regex.c.
62082         Reported by James Youngman in
62083         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
62084
62085 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62086
62087         * lib/getdate.y: Use Bison 1.875 features, and some minor
62088         code cleanups.  This change does not affect semantics.
62089         Don't include <stdlib.h>; no longer needed.
62090         Don't include unlocked-io.h; only the "#if TEST" code uses
62091         stdio, and performance isn't crucial there.
62092         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
62093         Bison 1.875 features as described below.
62094         All uses of "PC." replaced by "pc->".
62095         (YYSTYPE): Add a forward declaration.
62096         (yylex, yyerror): Use full prototypes in forward decls.
62097         Use "%pure-parser" rather than obsolescent "%pure_parser".
62098         Use %parse-param and %lex-param instead of obsolescent
62099         YYPARSE_PARAM and YYLEX_PARAM.
62100         (meridian_table, month_and_day_table, time_units_table,
62101         relative_time_table, time_zone_table, military_table,
62102         lookup_zone, lookup_word, get_date):
62103         Use NULL instead of 0 where appropriate.
62104         (to_hour): Avoid abort (), to avoid a dependency on
62105         stdlib.h.
62106         (yyerror, yylex): Now accepts parser_control * arg.
62107         (main) [TEST]: Use '\0' rather than 0 for char.
62108
62109 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62110
62111         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
62112
62113 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62114
62115         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
62116         It's now the caller's responsibility to handle the case where
62117         !HAVE_GETPAGESIZE && !defined getpagesize.
62118
62119         * lib/mktime.c (leapyear): Arg is long int, not int.
62120
62121 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
62122
62123         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
62124
62125 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62126
62127         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
62128         missing.  Problem reported by James Youngman.
62129
62130 2004-10-16  Simon Josefsson  <jas@extundo.com>
62131
62132         * gnulib-tool: Fix comments.  Fix parse problem.
62133         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
62134
62135 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
62136
62137         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
62138         implementation of getopt_long.  Problem reported by Alexander Taler in:
62139         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
62140
62141 2004-10-15  Bruno Haible  <bruno@clisp.org>
62142
62143         * gnulib-tool: Untabify. Initialize supplied_libname.
62144         (func_usage): More homogenous output.
62145         (func_modules_transitive_closure, func_modules_to_filelist,
62146         func_emit_lib_Makefile_am): New functions.
62147         (func_import): New function, extracted from big case statement. Use
62148         func_get_license, func_modules_transitive_closure,
62149         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
62150         opt_lgpl. Don't use test -a, as it's not portable.
62151         (func_create_testdir): Use func_modules_transitive_closure,
62152         func_modules_to_filelist, func_emit_lib_Makefile_am.
62153
62154 2004-10-15  Bruno Haible  <bruno@clisp.org>
62155
62156         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
62157
62158 2004-10-15  Bruno Haible  <bruno@clisp.org>
62159
62160         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
62161         the portions belonging to each module.
62162         Suggested by Derek Robert Price <derek@ximbiot.com>.
62163
62164 2004-10-12  Simon Josefsson  <jas@extundo.com>
62165
62166         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
62167         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
62168         to real functions.
62169
62170 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62171
62172         * modules/vsnprintf: New file.
62173
62174 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62175
62176         * m4/vsnprintf.m4: New file.
62177
62178 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62179
62180         * lib/vsnprintf.h: New file.
62181         * lib/vsnprintf.c: New file.
62182
62183 2004-10-11  Bruno Haible  <bruno@clisp.org>
62184
62185         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
62186         vsnprintf.
62187
62188 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
62189
62190         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
62191
62192 2004-10-07  Bruno Haible  <bruno@clisp.org>
62193
62194         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
62195         fits into the provided buffer.
62196
62197 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
62198
62199         * lib/diacrit.c, diacrit.h: Add GPL notice.
62200
62201         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
62202         notice.
62203         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
62204         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
62205         This avoids a potential constant-folding bug.
62206
62207 2004-10-05  Bruno Haible  <bruno@clisp.org>
62208
62209         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
62210         for the declaration of strsep.
62211
62212 2004-10-05  Bruno Haible  <bruno@clisp.org>
62213
62214         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
62215
62216 2004-10-04  Simon Josefsson  <jas@extundo.com>
62217
62218         * modules/memmem: New file.
62219         * tests/test-memmem.c: New file.
62220         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
62221
62222 2004-10-04  Simon Josefsson  <jas@extundo.com>
62223
62224         * m4/memmem.m4: New file.
62225
62226 2004-10-04  Simon Josefsson  <jas@extundo.com>
62227
62228         * lib/memmem.h: New file.
62229         * lib/memmem.c: New file, taken from glibc.
62230
62231 2004-10-04  Simon Josefsson  <jas@extundo.com>
62232
62233         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
62234         '#ifdef USE_UNLOCKED_IO'.
62235
62236 2004-10-04  Simon Josefsson  <jas@extundo.com>
62237
62238         * config/srclist.txt: Add memmem from glibc.
62239
62240 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62241
62242         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
62243
62244         * modules/argmatch, modules/argp, modules/closeout, modules/error,
62245         modules/exclude, modules/getdate, modules/getline,
62246         modules/getndelim2, modules/getpass, modules/getpass-gnu,
62247         modules/getusershell, modules/linebuffer, modules/md5,
62248         modules/mountlist, modules/posixtm, modules/readtokens,
62249         modules/readutmp, modules/regex, modules/sha1,
62250         modules/version-etc, modules/yesno:
62251         Remove dependency on unlocked-io.
62252
62253 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62254
62255         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
62256
62257         * m4/unlocked-io.m4: Add copyright notice.
62258         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
62259
62260 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62261
62262         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
62263         * lib/xmalloc.c (xmemdup): Likewise.
62264         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
62265         XFREE): Remove these long-obsolescent macros.
62266         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
62267         * lib/xstrdup.c: Remove.
62268
62269         * lib/regex.c (re_comp): Cast gettext return value to char *,
62270         Problem reported by Martin Neitzel via Mark D. Baushke.
62271
62272 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
62273
62274         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
62275         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
62276         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
62277         regex.c, sha1.c, version-etc.c, yesno.c:
62278         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
62279         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
62280         the includer's responsibility.
62281
62282         Sync from coreutils.
62283
62284         * lib/modechange.c (mode_compile): Don't decrement a pointer that
62285         points to the start of a string, as the C Standard says the
62286         resulting behavior is undefined.
62287
62288         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
62289         simple -> simple_backups, numbered_existing ->
62290         numbered_existing_backups, numbered -> numbered_backups
62291         to avoid shadowing problems.  All uses changed.
62292         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
62293         * lib/backupfile.c (check_extension, numbered_backup):
62294         Rename locals to avoid shadowing 'basename'.
62295         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
62296         once.
62297
62298         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
62299         * lib/.cvsignore: Add getopt.h.
62300
62301 2004-10-04  Bruno Haible  <bruno@clisp.org>
62302
62303         * modules/README: New file.
62304         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
62305         not a module.
62306
62307 2004-10-02  Jim Meyering  <jim@meyering.net>
62308
62309         * lib/dirfd.h, getpagesize.h: Add copyright notice.
62310
62311 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62312
62313         * modules/strsep: New file.
62314
62315 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62316
62317         * m4/strsep.m4: New file.
62318
62319 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
62320
62321         * lib/strsep.h: New file.
62322         * lib/strsep.c: New file.
62323
62324 2004-10-01  Simon Josefsson  <jas@extundo.com>
62325
62326         * lib/snprintf.c (snprintf): Handle size==0.
62327
62328 2004-10-01  Simon Josefsson  <jas@extundo.com>
62329             Bruno Haible  <bruno@clisp.org>
62330
62331         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
62332         (snprintf): Declare 'args'.
62333
62334 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
62335
62336         * lib/snprintf.c: Remove comments as to why each header is needed.
62337
62338 2004-10-01  Bruno Haible  <bruno@clisp.org>
62339
62340         * MODULES.html.sh: Add strsep.
62341
62342 2004-09-30  Simon Josefsson  <jas@extundo.com>
62343
62344         * modules/snprintf: New file.
62345
62346 2004-09-30  Simon Josefsson  <jas@extundo.com>
62347
62348         * m4/snprintf.m4: New file.
62349
62350 2004-09-30  Simon Josefsson  <jas@extundo.com>
62351
62352         * lib/snprintf.h, lib/snprintf.c: New files.
62353
62354 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
62355
62356         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
62357         (hol_entry_help): Never translate an empty string.
62358         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
62359         * lib/argp.h (OPTION_NO_TRANS): New option.
62360
62361 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62362
62363         * modules/argp (Maintainer): Replace Simon Josefsson
62364         by Sergey Poznyakoff.
62365
62366 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62367
62368         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
62369         changes merged back into glibc.
62370
62371 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
62372
62373         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
62374
62375 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
62376
62377         * lib/xvasprintf.c: Include xalloc.h.
62378         (xvasprintf): Use xalloc_die, not xmalloc_die.
62379
62380 2004-09-29  Bruno Haible  <bruno@clisp.org>
62381
62382         * modules/alloca-opt: New file, derived from modules/alloca.
62383         * modules/allocsa: Depend on alloca-opt instead of alloca.
62384         * modules/setenv: Likewise.
62385         * modules/vasnprintf: Likewise.
62386         * MODULES.html.sh: Add alloca-opt.
62387
62388 2004-09-28  Simon Josefsson  <jas@extundo.com>
62389
62390         * gnulib-tool: New parameter --lgpl, to asseert that modules are
62391         LGPL, and to replace license template from GPL to LGPL.
62392
62393 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
62394
62395         * modules/dummy: Change license to LGPL.
62396
62397 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
62398
62399         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
62400
62401 2004-09-24  Simon Josefsson  <jas@extundo.com>
62402
62403         * modules/minmax (License): Change from GPL to LGPL.
62404
62405 2004-09-23  Simon Josefsson  <jas@extundo.com>
62406
62407         * gnulib-tool (--import): Typo.
62408
62409 2004-09-23  Simon Josefsson  <jas@extundo.com>
62410
62411         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
62412
62413 2004-09-22  Bruno Haible  <bruno@clisp.org>
62414
62415         * modules/*: Add 'License' field.
62416         * gnulib-tool: Accept --extract-license option.
62417         (func_get_license): New function.
62418
62419 2004-09-21  Bruno Haible  <bruno@clisp.org>
62420
62421         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
62422         Reported by Simon Josefsson.
62423
62424 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62425
62426         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
62427         gl_AC_TYPE_LONG_LONG.
62428
62429 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
62430
62431         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
62432
62433 2004-09-18  Simon Josefsson  <jas@extundo.com>
62434         and  Paul Eggert  <eggert@cs.ucla.edu>
62435
62436         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
62437         calls with autoreconf.  Define GL_LIB.
62438
62439 2004-09-14  Karl Berry  <karl@gnu.org>
62440
62441         * config/srclist.txt: unsync setenv.c, sigh.
62442
62443 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62444
62445         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
62446         Problem reported by Bruno Haible in:
62447         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
62448
62449 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
62450
62451         * config/srclist.txt: Comment out argp-pvh.c.
62452
62453 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
62454
62455         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
62456         in case some system header has #define'd it.  Problem reported by
62457         Soeren D. Schulze in
62458         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
62459
62460 2004-09-09  Karl Berry  <karl@gnu.org>
62461
62462         * regex.[ch]: delete from the root.  These were supposed to be
62463                 synced with emacs cvs, but this has not happened for about
62464                 a year, and anyway nothing else uses emacs regex.[ch].
62465                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
62466                 lib/regex[.ch] is untouched.
62467
62468 2004-09-09  Bruno Haible  <bruno@clisp.org>
62469
62470         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
62471
62472 2004-09-09  Bruno Haible  <bruno@clisp.org>
62473
62474         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
62475         modifications.
62476         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
62477
62478 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
62479
62480         * modules/xvasprintf: New file.
62481         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
62482
62483 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
62484
62485         * lib/xvasprintf.h: New file.
62486         * lib/xvasprintf.c: New file.
62487         * lib/xasprintf.c: New file.
62488
62489 2004-09-08  Bruno Haible  <bruno@clisp.org>
62490
62491         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
62492
62493 2004-09-08  Bruno Haible  <bruno@clisp.org>
62494
62495         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
62496         length is > INT_MAX.
62497         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
62498         more.
62499
62500 2004-09-08  Bruno Haible  <bruno@clisp.org>
62501
62502         * lib/stdint_.h: New file, taken from GNU clisp.
62503
62504 2004-09-08  Bruno Haible  <bruno@clisp.org>
62505             Oskar Liljeblad  <oskar@osk.mine.nu>
62506
62507         * modules/stdint: New file.
62508         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
62509
62510 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62511
62512         Import from coreutils.
62513         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
62514         strings on unbounded length.  alloca's performance benefits aren't
62515         that important here.
62516         (V_STRDUP): Remove.
62517         (parse_with_separator): New function, with most of the internals
62518         of the old parse_user_spec.  Allow user to omit both user and group,
62519         for compatibility with FreeBSD.
62520         Clone only the user name, not the entire spec.
62521         Do not set *uid, *gid unless entirely successful.
62522         Avoid memory leak in some failing cases.
62523         Fix regression for USER.GROUP reported by Dmitry V. Levin in
62524         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
62525         (parse_user_spec): Rewrite to use parse_with_separator.
62526
62527 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62528
62529         * modules/userspec: Don't depend on alloca.
62530
62531 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
62532
62533         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
62534
62535 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
62536
62537         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
62538         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
62539         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
62540
62541 2004-08-16  Simon Josefsson  <jas@extundo.com>
62542
62543         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
62544         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
62545         Add --dry-run for --import.
62546         Let user provided command line parameters override configure.ac
62547         settings.
62548
62549 2004-08-12  Simon Josefsson  <jas@extundo.com>
62550
62551         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
62552         as discussed with Paul Eggert in threads rooted at
62553         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
62554         and
62555         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
62556         Before, the test was empty, and relied on ELIDE_CODE in source
62557         code.)
62558         (gl_PREREQ_GETOPT): New macro.
62559         (gl_GETOPT): Use them.
62560
62561 2004-08-12  Simon Josefsson  <jas@extundo.com>
62562
62563         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
62564         * lib/getopt_.h: Renamed from getopt.h.
62565
62566 2004-08-12  Simon Josefsson  <jas@extundo.com>
62567
62568         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
62569         Change default library name from libfoo to libgnu.
62570         Now, if you have a configure.ac that says:
62571                 gl_SOURCE_BASE(gl)
62572                 gl_M4_BASE(gl/m4)
62573                 gl_MODULES(error getopt etcetera)
62574                 gl_INIT
62575         you can import all you need by running:
62576                 ../gnulib/gnulib-tool --import
62577
62578         * modules/getopt (Files): Rename getopt.h to getopt_.h.
62579         (Makefile.am): Rewrite, use logic from argz.
62580         (Include): Use <getopt.h> instead of "getopt.h".
62581
62582 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62583
62584         * modules/argp (Files): Add m4/unlocked-io.m4.
62585         (Depends-on): Add extensions.
62586
62587 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62588
62589         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
62590         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
62591         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
62592         Check for program_invocation_name, program_invocation_short_name,
62593         flockfile, funlockfile, features.h, _getopt_long_only_r.
62594
62595 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62596
62597         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
62598         its complicated substitute.
62599         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
62600         and program_invocation_name.
62601         (__argp_basename) [!_LIBC]: Remove; the only use was
62602         replaced by its body.
62603         (__argp_short_program_name): Change condition from
62604         !defined __argp_short_program_name to
62605         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
62606         to match argp-namefrob.h.
62607         (__argp_failure): Don't assume strerror_r returns char *.
62608         * lib/argp-parse.c (N_): Define unconditionally.
62609         (argp_default_options): Fill out initializers with 0 to avoid
62610         gcc warnings.
62611
62612 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
62613
62614         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
62615         getopt1.c.
62616
62617 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62618
62619         Merge from coreutils.
62620
62621         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
62622
62623         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
62624         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
62625
62626 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62627
62628         Merge from coreutils.
62629
62630         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
62631         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
62632         for Reliant Unix 5.43.
62633
62634         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
62635         (union fooround): Use uintmax_t, not long int.
62636         The rest is a merge from libc:
62637         [defined _LIBC]: Include <shlib-compat.h>.
62638         (_obstack) [defined _LIBC]: Remove after 2.3.4.
62639
62640         * lib/settime.c (settime): Recode to avoid warning with
62641         Sun Forte C 6U2.
62642
62643         * lib/strverscmp.c: Convert to UTF-8.
62644
62645 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
62646
62647         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
62648         m4/uintmax_t.m4.
62649
62650 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62651
62652         * modules/xalloc-die: New file.
62653         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
62654
62655         * modules/md5 (Files): Add m4/uint32_t.m4.
62656         * modules/sha1: Renamed from modules/sha.
62657         (Files):
62658         Rename lib/sha.h to lib/sha1.h.
62659         Rename lib/sha.c to lib/sha1.c.
62660         Rename m4/sha.m4 to m4/sha1.m4.
62661         (lib_SOURCES): Likewise.
62662         (configure.ac): Rename gl_SHA to gl_SHA1.
62663         (Include): sha.h -> sha1.h.
62664
62665 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62666
62667         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
62668         * m4/sha1.m4: Renamed from sha.m4.
62669         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
62670
62671 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
62672
62673         * lib/obstack.h (obstack_empty_p):
62674         Don't assume that chunk->contents is suitably aligned.
62675         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
62676         Likewise. Problem reported by Benno in
62677         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
62678
62679         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
62680         readable.  This could be improved further but it'd take some work.
62681
62682 2004-08-08  Simon Josefsson  <jas@extundo.com>
62683
62684         * modules/xgethostname (Depends-on): Remove exit and error (not
62685         used).
62686
62687         * modules/getpass-gnu: Add getpass.h.
62688         (Depends-on): Add stdbool.
62689         * modules/getpass: Add getpass.h.
62690
62691 2004-08-08  Simon Josefsson  <jas@extundo.com>
62692
62693         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
62694         Check getpass declaration.
62695
62696 2004-08-08  Simon Josefsson  <jas@extundo.com>
62697
62698         * lib/xgethostname.c: Don't include error.h (not used).
62699
62700         * lib/getpass.h: Add.
62701         * lib/getpass.c: Include getpass.h first.
62702
62703 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
62704
62705         * lib/xalloc-die.c: New file.
62706         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
62707         All uses removed.
62708         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
62709         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
62710         xalloc-die.c.
62711         (_, N_, xalloc_die): Move to xalloc-die.c.
62712         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
62713         so that we needn't mess with xalloc_msg_memory_exhausted.
62714
62715         * lib/sha1.h: Renamed from sha.h.
62716         (SHA1_H): Renamed from _SHA_H.
62717         (sha1_ctx): Renamed from sha_ctx.
62718         (sha1_init_ctx): Renamed from sha_init_ctx.
62719         (sha1_process_block): Renamed from sha_process_block.
62720         (sha1_process_bytes): Renamed from sha_process_bytes.
62721         (sha1_finish_ctx): Renamed from sha_finish_ctx.
62722         (sha1_read_ctx): Renamed from sha_read_ctx.
62723         (sha1_stream): Renamed from sha_stream.
62724         (sha1_buffer): Renamed from sha_buffer.
62725         * lib/sha1.c: Likewise; renamed from sha.c.
62726         Do not include <sys/types.h>.
62727         Include <stddef.h> rather than <stdlib.h>.
62728
62729 2004-08-08  Bruno Haible  <bruno@clisp.org>
62730
62731         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
62732         FILESYSTEM_PREFIX_LEN.
62733         * lib/progreloc.c: Likewise.
62734         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
62735
62736 2004-08-06  Simon Josefsson  <jas@extundo.com>
62737
62738         * modules/progname (Depends-on): Don't depend on stdbool.
62739
62740 2004-08-06  Simon Josefsson  <jas@extundo.com>
62741
62742         * modules/getsubopt: New file.
62743         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62744         getsubopt.
62745
62746 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62747
62748         More merge from coreutils.
62749
62750         * m4/utimens.m4, m4/utimecmp.m4: New files.
62751         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
62752         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
62753         prereq.m4, sha.m4: Import changes from coreutils.
62754
62755 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62756
62757         More merge from coreutils.
62758         * modules/raise, modules/readtokens0, modules/utimens:
62759         * modules/utimecmp, module/xnanosleep: New files.
62760         * modules/strftime: Add lib/strftime.h.
62761         Change include from <time.h> to "strftime.h".
62762         * modules/yesno: Add lib/yesno.h.
62763         * modules/backupfile: Remove lib/addext.c.
62764         * modules/euidaccess: Add stat-macros.h.
62765         * modules/canonicalize, modules/euidaccess,
62766         modules/filemode, modules/lchown, modules/makepath,
62767         modules/rmdir, modules/stat: Likewise.
62768
62769 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62770
62771         Merge from tar.
62772         * lib/argp-help.c (make_hol, hol_append): Don't assume that
62773         SIZE_MAX is a valid preprocessor constant.
62774         (__argp_basename): Change from "#ifndef _LIBC"
62775         to "#ifndef __argp_short_program_name", so that
62776         we don't compile these functions for tar.
62777
62778         More merges from coreutils.
62779         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
62780         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
62781         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
62782         * lib/addext.c: Remove; no longer needed.
62783         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
62784         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
62785         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
62786         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
62787         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
62788         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
62789         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
62790         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
62791         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
62792         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
62793         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
62794         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
62795         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
62796         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
62797         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
62798         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
62799         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
62800         Import changes from coreutils.
62801
62802 2004-08-05  Simon Josefsson  <jas@extundo.com>
62803
62804         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
62805
62806 2004-08-05  Simon Josefsson  <jas@extundo.com>
62807
62808         * m4/getsubopt.m4: New file.
62809
62810 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62811
62812         Merge from coreutils.
62813
62814         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
62815         * m4/getcwd-path-max.m4: New files.
62816
62817         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
62818         FILESYSTEM_PREFIX_LEN ->
62819         FILE_SYSTEM_PREFIX_LEN.
62820         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
62821         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
62822         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
62823         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
62824
62825         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
62826         prerequisite modules now handle the DOS stuff.
62827         Don't check for unistd.h.
62828
62829 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62830
62831         Merge from coreutils.
62832
62833         * lib/.gdb-history: Remove; this doesn't belong here.
62834
62835         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
62836         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
62837         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
62838         * lib/getcwd.c: New files.
62839
62840         * lib/dirname.h: Include <stdbool.h>.
62841         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
62842         for consistency with POSIX terminology.  All uses changed.
62843         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
62844         (strip_trailing_slashes): Use bool for booleans.
62845         * lib/stripslash.c (strip_trailing_slashes): Likewise.
62846
62847         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
62848         sometimes returns a positive errno value even when it succeeds.
62849         (print_errno_message) [!LIBC]: Fall back on strerror if
62850         __strerror_r fails.
62851
62852         * lib/path-concat.c (mempcpy): Don't define if a system header defines
62853         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
62854         (longest_relative_suffix): New function.
62855         (path_concat): Use it.  Assume first argument is not NULL.
62856         Port to DOS.  Omit redundant separators.
62857         Report an error instead of returning NULL.
62858         Use mempcpy instead of memcpy.
62859         (xpath_concat): Remove: not declared or used.
62860
62861         * lib/same.h: Include <stdbool.h>
62862         (same_name): Return bool, not int.
62863         * lib/same.c (same_name): Likewise.
62864         (errno): Don't declare; we assume C89 or better now.
62865
62866         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
62867         if not already defined.
62868
62869         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
62870         * lib/dup-safer.c (errno): Likewise.
62871
62872 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
62873
62874         Merge from coreutils.
62875         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
62876         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
62877         * modules/path-concat: Don't depend on strdup.
62878
62879 2004-08-03  Simon Josefsson  <jas@extundo.com>
62880
62881         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
62882         * lib/progname.h: Don't include stdbool.h.
62883
62884 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62885
62886         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
62887         * MODULES.html.sh (func_all_modules): Remove fatal.
62888
62889 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62890
62891         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
62892
62893 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
62894
62895         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
62896         working.
62897
62898 2004-08-02  Simon Josefsson  <jas@extundo.com>
62899
62900         * lib/getsubopt.h: New file, with comments from Bruno Haible.
62901         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
62902         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
62903
62904 2004-08-01  Simon Josefsson  <jas@extundo.com>
62905
62906         * lib/xgetdomainname.c: Include stdlib.h, for free().
62907
62908 2004-07-19  Bruno Haible  <bruno@clisp.org>
62909
62910         * MODULES.html.sh (func_all_modules): Add dummy.
62911
62912 2004-07-16  Simon Josefsson  <jas@extundo.com>
62913
62914         * modules/dummy: New file.
62915
62916 2004-07-16  Simon Josefsson  <jas@extundo.com>
62917
62918         * lib/dummy.c: New file.
62919
62920 2004-07-16  Bruno Haible  <bruno@clisp.org>
62921
62922         * lib/backupfile.h: Add extern "C" for C++.
62923         * lib/closeout.h: Likewise.
62924         * lib/copy-file.h: Likewise.
62925         * lib/findprog.h: Likewise.
62926         * lib/full-write.h: Likewise.
62927         * lib/pathname.h: Likewise.
62928         * lib/progname.h: Likewise.
62929         * lib/stpcpy.h: Likewise.
62930         * lib/stpncpy.h: Likewise.
62931         * lib/strcase.h: Likewise.
62932         * lib/strstr.h: Likewise.
62933         * lib/xalloc.h: Likewise.
62934
62935         * lib/mbswidth.h: Add extern "C" for C++.
62936         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
62937
62938 2004-07-13  Robert Millan  <robertmh@gnu.org>
62939
62940         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
62941
62942 2004-07-09  Simon Josefsson  <jas@extundo.com>
62943
62944         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
62945         failed without this.)
62946
62947 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62948
62949         * modules/chown (Files): Add lib/fchown-stub.c, since
62950         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
62951
62952 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
62953
62954         * lib/fchown-stub.c: New file.
62955
62956 2004-06-24  Jim Meyering  <jim@meyering.net>
62957
62958         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
62959
62960 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62961
62962         * modules/argz: Omit "#include".
62963
62964         * MODULES.html.sh (func_all_modules): Add calloc, to match
62965         2004-06-01 addition of calloc module.
62966
62967 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62968
62969         * m4/argz.m4: New file, which is autoupdated from libtool.
62970
62971 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62972
62973         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
62974         libtool.
62975
62976 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
62977
62978         * config/srclist-update: Don't insist on "USA." before the
62979         close-comment, as libtool omits the period and puts the */ on a
62980         separate line.
62981         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
62982         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
62983
62984 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
62985
62986         * modules/argz: New file.
62987         * MODULES.html.sh (func_all_modules): Add argz.
62988
62989 2004-06-12  Jim Meyering  <jim@meyering.net>
62990         and  Paul Eggert  <eggert@cs.ucla.edu>
62991
62992         * modules/hash (Files): Add lib/xalloc.h.
62993         * modules/pipe (Depends-on): Add wait-process.
62994         * modules/stat (Depends-on): Add xalloc.
62995         * modules/userspec (Files): Add lib/userspec.h.
62996         * modules/xstrto
62997
62998         Upgrade from gettext-0.13.
62999         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
63000         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
63001         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
63002
63003 2004-06-10  Jim Meyering  <jim@meyering.net>
63004
63005         * lib/calloc.c: New file.
63006
63007 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63008
63009         * lib/getdate.y (yylex): Allow space between sign and number.
63010         Problem reported by Dan Jacobson.
63011
63012 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
63013
63014         Merge from coreutils CVS.
63015
63016         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
63017         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
63018         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
63019         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
63020         xstrtol.m4: Fix copyright date and/or serial number.
63021
63022         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
63023         See if we need an fchown replacement.
63024         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
63025         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
63026         and use the replacement function if we detect either defect.
63027
63028         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
63029         gl_UTIMECMP.
63030
63031 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
63032         and  Jim Meyering  <jim@meyering.net>
63033
63034         Merge from coreutils CVS.
63035
63036         * lib/stat-macros.h: New file, with contents from file-type.h
63037         and coreutils' system.h.
63038         * lib/file-type.c: Include "stat-macros.h".
63039         * lib/file-type.h (file_type): Move all macro definitions to new file,
63040         stat-macros.h.
63041
63042         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
63043         Wrap old code with this conditional.
63044         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
63045         function that does not dereference symlinks.
63046         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
63047
63048         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
63049         dependency problems.
63050         (xreadlink): Accept new arg SIZE, for efficiency.
63051         All decls and uses changed.
63052         * lib/xreadlink.h: Include <stddef.h>, for size_t.
63053
63054         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
63055         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
63056
63057         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
63058         sysexits.h.
63059
63060 2004-06-01  Jim Meyering  <jim@meyering.net>
63061
63062         * m4/calloc.m4: New file.
63063
63064 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
63065
63066         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
63067         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
63068         Also, fix a typo in a diagnostic.
63069
63070 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
63071
63072         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
63073         or AC_FUNC_REALLOC.
63074
63075 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
63076
63077         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
63078         macros to be defined.
63079         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
63080         the allocator returns NULL because the requested size is zero.
63081
63082 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
63083
63084         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
63085         var.  Add comment explaining why libc still defines it.  This
63086         merges the following patch from glibc:
63087         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
63088
63089 2004-05-20  Andreas Schwab  <schwab@suse.de>
63090
63091         * m4/free.m4: Replace free if it not known to work, not the other
63092         way round.
63093
63094 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
63095
63096         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
63097         present in glibc since revision 1.1 of this file.
63098         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
63099         obstack_alignment_mask, obstack_alloc, obstack_base,
63100         obstack_blank, obstack_blank_fast, obstack_chunk_size,
63101         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
63102         obstack_grow0, obstack_init, obstack_int_grow,
63103         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
63104         obstack_next_free, obstack_object_size, obstack_ptr_grow,
63105         obstack_ptr_grow_fast, obstack_room): Remove declarations of
63106         nonexistent functions.
63107
63108 2004-05-18  Karl Berry  <karl@gnu.org>
63109
63110         * config/srclist.txt: break link for vasnprintf.c.
63111
63112 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63113
63114         Port obstack to the AS/400, where pointers are 16 bytes wide and
63115         you cannot cast an integer to a valid pointer.  This patch is
63116         currently waiting to be integrated into glibc; see
63117         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
63118
63119         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
63120         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
63121         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
63122         (struct obstack): temp member is now a union of a pointer and
63123         an integer, instead of an integer.  All integer uses changed.
63124         This does not affect the physical layout of struct obstack,
63125         except on hosts (like the AS/400) where the size or alignment of
63126         void * is greater than that of ptrdiff_t.
63127         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
63128         __STDC__)]: Store temporary in pointer member of union, not
63129         integer member.
63130         * lib/obstack.c: Include <stddef.h>, for offsetof.
63131         (struct fooalign): Remove; it doesn't need a name.
63132         (union fooround): Change double to long double, and add void *.
63133         (DEFAULT_ALIGNMENT): Use offsetof to compute.
63134         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
63135         not a macro.  Hence the values are always int; so remove all
63136         casts-to-int in uses.
63137
63138 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
63139
63140         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
63141         we can get this patch merged into glibc.
63142
63143 2004-05-17  Derek R. Price  <derek@ximbiot.com>
63144             Paul Eggert  <eggert@cs.ucla.edu>
63145
63146         * m4/argp: Depend on alloca.
63147
63148 2004-05-17  Derek R. Price  <derek@ximbiot.com>
63149             Paul Eggert  <eggert@cs.ucla.edu>
63150
63151         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
63152         freecoding.
63153
63154 2004-05-17  Bruno Haible  <bruno@clisp.org>
63155
63156         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
63157         precision that consists of a '.' followed by an empty digit string.
63158         Patch by Tor Lillqvist <tml@iki.fi>.
63159
63160 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63161
63162         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
63163         for backward compatibility with older code.  We need our own
63164         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
63165         it under some other name, and our alloca.h will define it.
63166
63167 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
63168             Derek Price  <derek@ximbiot.com>
63169
63170         * lib/alloca.c: Include <alloca.h>, to get our interface.
63171         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
63172         include <alloca.h> first.  Use C89 prototype for alloca; this
63173         requires including <stddef.h> for size_t.  Use extern "C" if C++.
63174         Use #elif for simplicity, since we can assume C89 now.
63175         Don't try to source the system alloca.h since it will not be found
63176         and to prevent recursively including its replacement.
63177         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
63178         * lib/regex.c: Likewise.
63179
63180 2004-05-16  Derek Price  <derek@ximbiot.com>
63181             Paul Eggert  <eggert@cs.ucla.edu>
63182
63183         getline cleanup.  This changes the getndelim2 API: both order of
63184         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
63185         no delimiter).
63186
63187         * lib/getline.c: Don't include stddef.h or stdio.h, since our
63188         interface does that.
63189         (getline): Always use getdelim, so that we don't have two
63190         copies of this code.
63191         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
63192         if available.
63193         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
63194         (GETNDELIM2_MAXIMUM): New macro.
63195         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
63196         instead of the old practice of delim2==0.  All callers changed.
63197         Return -1 on overflow, instead of returning junk.
63198         Do not set *linesize unless allocation succeeds.
63199         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
63200         that we include sys/types.h.
63201         * lib/getnline.h: Likewise.
63202         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
63203         (getndelim2): Reorder arguments.
63204         * lib/getnline.c (getnline, getndelim):
63205         Don't discard the NMAX argument.
63206         (getnline): Invoke getndelim, to avoid code duplication.
63207         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
63208         of (size_t) -1 by callers of the getnline family.
63209
63210 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63211
63212         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
63213         Check for gettimeofday.
63214         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
63215         Check for settimeofday, stime.
63216
63217 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
63218
63219         * lib/nanosleep.c (suspended): Change its type from int to
63220         sig_atomic_t volatile.
63221         (first_call): Make it private to rpl_nanosleep, and have it
63222         be zero initially as that's a bit faster.
63223         (my_usleep): Round up fractional times instead of truncating them,
63224         as this is the usual meaning for 'sleep'.
63225
63226         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
63227         doesn't work.
63228         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
63229         (ENOSYS): Define if not defined.
63230         (settime): Fall back on stime if it exists and settimeofday fails.
63231         But don't bother with fallbacks if a method fails with errno == EPERM.
63232
63233 2004-05-11  Jim Meyering  <jim@meyering.net>
63234
63235         Prior to this change, the save_cwd caller required read access to the
63236         current directory on most systems (ones with the fchdir function).
63237
63238         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
63239         fails, try write-only, and finally, resort to using xgetcwd.
63240
63241 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
63242
63243         * lib/obstack.c, obstack.h: Import changes from libc.
63244
63245 2004-04-28  Bruno Haible  <bruno@clisp.org>
63246
63247         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
63248         also implicitly appends .exe to executables.
63249         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
63250         accepts Windows pathnames.
63251         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
63252         Treat Cygwin like Windows, since it now accepts Windows pathnames.
63253         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
63254         Treat Cygwin like Windows, since it now accepts Windows pathnames.
63255         Reported by Derek Robert Price <derek@ximbiot.com>.
63256
63257 2004-04-21  Karl Berry  <karl@gnu.org>
63258
63259         * config/srclist.txt (localcharset.c): break sync.
63260
63261 2004-04-20  Paul Eggert  <eggert@twinsun.com>
63262
63263         * m4/host-os.m4: Add a copyright notice.
63264
63265 2004-04-20  Jim Meyering  <jim@meyering.net>
63266
63267         Change UTILS_ to gl_ in AC_DEFINE'd names.
63268         Change utils_- and jm_-prefixed variables, too.
63269         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
63270         UTILS_FUNC_MKDIR_TRAILING_SLASH.
63271         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
63272
63273         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
63274         Don't emit trailing blanks.
63275         Also rename jm_-prefixed variables to have gl_ prefix.
63276
63277         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
63278         Also rename jm_-prefixed variables to have gl_ prefix.
63279
63280         * m4/jm-macros.m4: Reflect the renamings.
63281         * m4/prereq.m4: Likewise.
63282
63283 2004-04-20  Jim Meyering  <jim@meyering.net>
63284
63285         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
63286         memory.
63287
63288 2004-04-20  Jim Meyering  <jim@meyering.net>
63289             Bruno Haible  <bruno@clisp.org>
63290
63291         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
63292         memory when realloc fails.
63293
63294 2004-04-19  Jim Meyering  <jim@meyering.net>
63295
63296         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
63297         now that readutmp.c may call `free (0)'.
63298
63299 2004-04-19  Bruno Haible  <bruno@clisp.org>
63300
63301         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
63302         * m4/inttypes_h.m4: Likewise.
63303         * m4/stdint_h.m4: Likewise.
63304         * m4/intmax_t.m4: Likewise.
63305         * m4/uintmax_t.m4: Likewise.
63306
63307 2004-04-18  Jim Meyering  <jim@meyering.net>
63308
63309         * m4/prereq.m4: Don't forbid jm_ prefix.
63310
63311         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
63312         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
63313         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
63314         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
63315         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
63316         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
63317         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
63318         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
63319         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
63320         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
63321         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
63322         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
63323         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
63324         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
63325         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
63326         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
63327         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
63328         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
63329         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
63330
63331 2004-04-18  Jim Meyering  <jim@meyering.net>
63332
63333         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
63334         failure, don't leak memory and do call END_UTMP_ENT.
63335
63336 2004-04-16  Jim Meyering  <jim@meyering.net>
63337
63338         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
63339         coreutils' stat program.
63340         (gl_PREREQ): Don't require jm_PREREQ_STAT.
63341
63342 2004-04-11  Paul Eggert  <eggert@twinsun.com>
63343
63344         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
63345         C89.
63346         (CHAR_BIT): Remove, since we assume C89.
63347         Include <stdint.h> if available, as per current Autoconf CVS advice.
63348
63349 2004-03-31  Jim Meyering  <jim@meyering.net>
63350
63351         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
63352         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
63353         * m4/xalloc.m4: Likewise.
63354
63355 2004-03-30  Paul Eggert  <eggert@twinsun.com>
63356
63357         Merge from coreutils.
63358
63359         * m4/inttostr.m4: New file.
63360         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
63361         Require AM_STDBOOL_H and gl_TIMESPEC instead.
63362         Require gl_CLOCK_TIME.
63363         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
63364
63365 2004-03-30  Paul Eggert  <eggert@twinsun.com>
63366
63367         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
63368         not bool, to be more consistent with Unix conventions.
63369         Suggested by Bruno Haible.
63370
63371         Merge from coreutils.
63372
63373         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
63374         * lib/umaxtostr.c: New files.
63375
63376         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
63377         the usual <time.h> dance.
63378         (get_date): Change signature to support fractional time stamps.
63379         All callers changed.
63380         * lib/getdate.y: Include "getdate.h" first, as we can now
63381         assume C89 and don't need to worry about 'const'.
63382         Similarly, include "unlocked-io.h" near start, not in middle.
63383         Include <limits.h>.
63384         (textint.value): Use long int rather than int.
63385         (textint.digits): Use size_t rather than int.
63386         (BILLION, LOG10_BILLION): New constants.
63387         (parser_control): New member rel_ns.  Members day_ordinal,
63388         time_zone, month, day, hour, minutes, rel_year, rel_month,
63389         rel_day, rel_hour, rel_minutes, rel_seconds
63390         are now long int, not int.  Member seconds is now struct timespec,
63391         not int.  New member timespec_seen.  Members dates_seen, days_seen,
63392         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
63393         not int.
63394         (%union.intval): Now long int, not int.
63395         New member timespec.
63396         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
63397         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
63398         (spec): Now is a timespec or an item list.
63399         (timespec, items): New nonterminals.
63400         (time, rel, relunit, number, get_date):
63401         Add support for fractional seconds.
63402         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
63403         (gmtime, localtime, mktime): Remove decls; not needed with C89.
63404         (to_hour): First arg is now long int, not int.
63405         (to_year): Returns long int, not int.
63406         Don't treat year -70 like 70.
63407         (tm_diff): Returns long int, not int.
63408         (lookup_word): Use bool instead of int when appropriate.
63409         (yylex): Use size_t for count, not int.
63410         Detect overflow when parsing large integer constants.
63411         Add support for fractions.
63412         (get_date): Make pointers 'const' if possible.
63413         Use more-portable code to detect integer overflow.
63414         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
63415         Don't use ctime; it's not reliable if the year has >4 digits.
63416
63417         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
63418         This is for compatibility with BSD.
63419
63420         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
63421         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
63422         From coreutils' system.h.
63423
63424         * lib/userspec.c: Don't include "posixver.h".
63425         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
63426         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
63427         compatible extension.  Simplify code by removing a boolean int
63428         that was always nonzero if a string was nonnull.
63429
63430 2004-03-30  Jim Meyering  <jim@meyering.net>
63431
63432         Merge from coreutils.
63433
63434         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
63435         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
63436         on some systems one must include <grp.h> before it.
63437         Reported by Christian Krackowizer.
63438
63439 2004-03-30  Jim Meyering  <jim@meyering.net>
63440
63441         Merge from coreutils.
63442
63443         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
63444
63445         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
63446         an empty input stream.
63447
63448         * lib/readtokens.c: Include <stdbool.h>.
63449         (readtoken): Use `size_t' rather than int/long.
63450         All callers adjusted.
63451         Use `bool' rather than `int' where appropriate.
63452         Use memset rather than an explicit loop.
63453         Use x2nrealloc rather than xrealloc.
63454         Allow the use of `\0' as a delimiter.
63455         (readtokens): Likewise.
63456         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
63457
63458 2004-03-30  Jim Meyering  <jim@meyering.net>
63459
63460         * m4/realloc.m4: Remove file, since now it does no more than
63461         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
63462         the `configure.ac' section of module/realloc.
63463         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
63464
63465 2004-03-30  Bruno Haible  <bruno@clisp.org>
63466
63467         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
63468         nonnull.
63469
63470 2004-03-29  Paul Eggert  <eggert@twinsun.com>
63471
63472         Merge changes to getloadavg.c from coreutils and Emacs.
63473
63474         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
63475         Define to an expression, not to the empty string.
63476         Include cloexec.h and xalloc.h.
63477         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
63478         Use set_cloexec_flag rather than rolling our own.
63479         * lib/cloexec.c, lib/cloexec.h: New files.
63480
63481 2004-03-29  Paul Eggert  <eggert@twinsun.com>
63482
63483         * m4/cloexec.m4: New file.
63484
63485 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63486
63487         * lib/getopt.h: Sync with libc CVS.
63488
63489 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63490             Bruno Haible  <bruno@clisp.org>
63491
63492         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
63493         mbswidth.
63494
63495 2004-03-18  Paul Eggert  <eggert@twinsun.com>
63496             Bruno Haible  <bruno@clisp.org>
63497
63498         * lib/mbswidth.h: Include <wchar.h> only if
63499         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
63500         <wchar.h>.
63501         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
63502
63503 2004-03-09  Paul Eggert  <eggert@twinsun.com>
63504
63505         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
63506         Sync with libc CVS.
63507         * lib/getopt_int.h: New file, also synced from libc.
63508
63509 2004-03-09  Paul Eggert  <eggert@twinsun.com>
63510
63511         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
63512         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
63513         Bring back getopt.c, getopt.h, getopt1.c.
63514
63515 2004-03-07  Paul Eggert  <eggert@twinsun.com>
63516
63517         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
63518         All uses changed.  Check for sa_sigaction member; this fixes
63519         a bug first reported by Jason Andrade in
63520         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
63521
63522 2004-03-07  Paul Eggert  <eggert@twinsun.com>
63523
63524         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
63525         '#if' expressions.  Unlike the code it replaces, it does not
63526         depend on (defined _SC_PAGESIZE).  However, it does depend on
63527         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
63528         first reported by Jason Andrade in
63529         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
63530
63531 2004-02-25  Simon Josefsson  <jas@extundo.com>
63532
63533         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
63534
63535 2004-02-25  Simon Josefsson  <jas@extundo.com>
63536
63537         * lib/strdup.h: New file.
63538         * lib/strdup.c: Include it.
63539         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
63540         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
63541
63542 2004-02-23  Karl Berry  <karl@gnu.org>
63543
63544         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
63545         (from fencepost.gnu.org:/gd/gnuorg).
63546
63547 2004-02-23  Karl Berry  <karl@gnu.org>
63548
63549         * config/srclistvars.sh (GNUORG) [karl]: redefine.
63550         * config/srclist.txt: add maintain/standards documents.
63551
63552 2004-02-18  Bruno Haible  <bruno@clisp.org>
63553
63554         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
63555         Reported by Derek Robert Price <derek@ximbiot.com>.
63556
63557 2004-02-16  Karl Berry  <karl@gnu.org>
63558
63559         * config/mkinstalldirs, install-sh: update from automake.
63560
63561 2004-02-06  Karl Berry  <karl@gnu.org>
63562
63563         * m4/po.m4: update from gettext 0.14.1.
63564
63565 2004-02-06  Karl Berry  <karl@gnu.org>
63566
63567         * lib/config.charset: update from gettext 0.14.1.
63568
63569 2004-02-05  Paul Eggert  <eggert@twinsun.com>
63570
63571         Add comments and code, prompted by suggestions from Bruno Haible
63572         for sh-quote.
63573         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
63574         describing the enum quoting_style values.
63575         * lib/quotearg.c (quotearg_alloc): New function.
63576         (quotearg_buffer_restyled): Treat lone { and } as special.
63577         Treat = as special.  Work around bug with older shells
63578         that "see" a '\' that is really the 2nd byte of a multibyte char.
63579         Quote empty string with shell_quoting_style.
63580
63581 2004-02-03  Bruno Haible  <bruno@clisp.org>
63582
63583         * m4/pipe.m4: New file, from GNU gettext.
63584
63585 2004-02-03  Bruno Haible  <bruno@clisp.org>
63586
63587         * lib/pipe.h: New file, from GNU gettext.
63588         * lib/pipe.c: New file, from GNU gettext.
63589
63590 2004-01-27  Bruno Haible  <bruno@clisp.org>
63591
63592         * m4/execute.m4: New file, from GNU gettext.
63593
63594 2004-01-27  Bruno Haible  <bruno@clisp.org>
63595
63596         * lib/execute.h: New file, from GNU gettext.
63597         * lib/execute.c: New file, from GNU gettext.
63598         * lib/w32spawn.h: New file, from GNU gettext.
63599
63600 2004-01-24  Paul Eggert  <eggert@twinsun.com>
63601
63602         Merge from diffutils.
63603
63604         * lib/file-type.c (file_type): Add typed memory objects.
63605         * lib/file-type.h (S_TYPEISTMO): New macro.
63606
63607         * lib/c-stack.h (c_stack_action): Remove argv argument.
63608         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
63609         (die): Don't calculate message unless segv_action returns.
63610         (get_stack_location, min_address_from_argv, max_address_from_argv,
63611         volatile stack_base, volatile_stack_size): Remove.
63612         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
63613         that every segmentation violation is a stack overflow.  (Ouch!)
63614         See Debian bug 136249 (still outstanding) for more info about why
63615         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
63616
63617 2004-01-24  Paul Eggert  <eggert@twinsun.com>
63618
63619         Exit-status fix from coreutils.
63620
63621         Use exit_failure consistently in place of EXIT_FAILURE,
63622         so that program exit statuses are consistent on failure.
63623
63624         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
63625         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
63626         * lib/argmatch.h: Comment fix to match the above.
63627         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
63628         Now a macro referring to exit_failure, instead of a separate
63629         variable.  Include "exitfail.h" to get it.
63630         * lib/xstrtol.h: Include "exitfail.h".
63631         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
63632
63633         * lib/long-options.c (parse_long_options): Use prototype
63634         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
63635         for clarity.
63636
63637 2004-01-21  Jim Meyering  <jim@meyering.net>
63638
63639         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
63640         so as not to conflict with a different-sized __mktime_internal
63641         function in GNU libc.
63642         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
63643         Problem building statically-linked `ls' reported by Michael Brunnbauer.
63644
63645 2004-01-20  Karl Berry  <karl@gnu.org>
63646
63647         * config/config.guess: update from config.
63648
63649         * config/srclistvars.sh: GNUWWWLICENSES for karl.
63650
63651 2004-01-20  Bruno Haible  <bruno@clisp.org>
63652
63653         Safer stack allocation.
63654         * lib/setenv.c: Include allocsa.h.
63655         (alloca): Remove fallback definition.
63656         (freea): Remove macro.
63657         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
63658         instead of freea.
63659
63660 2004-01-20  Bruno Haible  <bruno@clisp.org>
63661
63662         * m4/eealloc.m4: New file, from GNU gettext.
63663
63664 2004-01-20  Bruno Haible  <bruno@clisp.org>
63665
63666         * m4/allocsa.m4: New file, from GNU gettext.
63667
63668 2004-01-20  Bruno Haible  <bruno@clisp.org>
63669
63670         * lib/xallocsa.h: New file, from GNU gettext.
63671         * lib/xallocsa.c: New file, from GNU gettext.
63672
63673 2004-01-20  Bruno Haible  <bruno@clisp.org>
63674
63675         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
63676
63677 2004-01-20  Bruno Haible  <bruno@clisp.org>
63678
63679         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
63680         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
63681         specially.
63682
63683 2004-01-20  Bruno Haible  <bruno@clisp.org>
63684
63685         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
63686         patch.
63687
63688 2004-01-20  Bruno Haible  <bruno@clisp.org>
63689
63690         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
63691
63692 2004-01-20  Bruno Haible  <bruno@clisp.org>
63693
63694         * lib/eealloc.h: New file.
63695
63696 2004-01-20  Bruno Haible  <bruno@clisp.org>
63697
63698         * lib/binary-io.h: Avoid warnings on Cygwin.
63699
63700 2004-01-20  Bruno Haible  <bruno@clisp.org>
63701
63702         * lib/allocsa.h: New file, from GNU gettext.
63703         * lib/allocsa.c: New file, from GNU gettext.
63704
63705 2004-01-18  Karl Berry  <karl@gnu.org>
63706
63707         * doc/gpl.texi, doc/lgpl.texi: new files.
63708
63709 2004-01-18  Karl Berry  <karl@gnu.org>
63710
63711         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
63712         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
63713
63714 2004-01-15  Paul Eggert  <eggert@twinsun.com>
63715
63716         Merge from coreutils.
63717
63718         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
63719         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
63720         (gl_DEFAULT_POSIX2_VERSION): Move
63721         the documentation from 'configure' into 'config.hin',
63722         so that 'configure --help' isn't burdened by it and
63723         we don't have to worry about its formatting there.
63724         Reword the documentation so that it's more succinct
63725         and can be run together into a single paragraph.
63726         * m4/same.m4 (gl_SAME): Check for pathconf.
63727
63728 2004-01-15  Paul Eggert  <eggert@twinsun.com>
63729
63730         Merge from coreutils.
63731
63732         * lib/posixver.c: Include posixver.h.
63733
63734         * lib/same.c: Include <stdbool.h>, <limits.h>.
63735         (_POSIX_NAME_MAX): Define if not defined.
63736         (MIN): New macro.
63737         (same_name): If file names are silently truncated, report
63738         that the file names are the same if they are the same after
63739         the silent truncation.
63740
63741         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
63742         conversion function.
63743         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
63744         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
63745         longer needed.
63746
63747 2004-01-15  Jim Meyering  <jim@meyering.net>
63748
63749         Merge from coreutils.
63750
63751         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
63752         if no library is required.
63753         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
63754         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
63755         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
63756         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
63757         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
63758         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
63759         value, $ac_cv_search_crypt, if it's "none required".
63760         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
63761         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
63762         not gl_FUNC_GETLOADAVG.
63763         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
63764         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
63765
63766 2004-01-15  Jim Meyering  <jim@meyering.net>
63767
63768         Merge from coreutils.
63769
63770         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
63771         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
63772         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
63773
63774         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
63775         optional configure-time default.
63776
63777         * lib/version-etc.c (version_etc_copyright): Update copyright date.
63778
63779         * lib/xreadlink.c (xreadlink): Correct outdated comment.
63780
63781 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
63782
63783         Merge from coreutils.
63784
63785         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
63786         value, $ac_cv_search_nanosleep, if it's "none required".
63787
63788 2004-01-14  Paul Eggert  <eggert@twinsun.com>
63789
63790         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
63791         with like-named macro in fnmatch.c.
63792         (EXT): Use an internal constant instead.
63793
63794         Merge fnmatch patches from glibc.
63795         * lib/fnmatch.c (mbsinit): Remove define.
63796         Add libc_hidden_ver (__fnmatch, fnmatch).
63797         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
63798         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
63799
63800 2004-01-14  Karl Berry  <karl@gnu.org>
63801
63802         * config/install-sh: update from automake.
63803
63804 2004-01-13  Karl Berry  <karl@gnu.org>
63805
63806         * config/install-sh: update from automake.
63807
63808 2004-01-09  Karl Berry  <karl@gnu.org>
63809
63810         * config/install-sh: update from automake.
63811
63812 2004-01-05  Karl Berry  <karl@gnu.org>
63813
63814         * config/config.{sub,guess}: update from config.
63815
63816 2003-12-31  Karl Berry  <karl@gnu.org>
63817
63818         * config/depcomp: update from automake.
63819
63820 2003-12-14  Karl Berry  <karl@gnu.org>
63821
63822         * lib/config.charset: update from gettext-runtime.
63823
63824 2003-12-03  Paul Eggert  <eggert@twinsun.com>
63825
63826         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
63827         Bug reported by Alfred M. Szmidt.
63828
63829 2003-12-03  Bruno Haible  <bruno@clisp.org>
63830
63831         * m4/gettext.m4: Upgrade from gettext-0.13.
63832         * m4/po.m4: Upgrade from gettext-0.13.
63833         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
63834         * m4/intmax.m4: New file, from gettext-0.13.
63835         * m4/printf-posix.m4: New file, from gettext-0.13.
63836
63837 2003-11-29  Karl Berry  <karl@gnu.org>
63838
63839         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
63840
63841 2003-11-25  Paul Eggert  <eggert@twinsun.com>
63842             Bruno Haible  <bruno@clisp.org>
63843
63844         * lib/printf-parse.h: Don't include sys/types.h.
63845         (ARG_NONE): New macro.
63846         (char_directive): Change type of *arg_index fields to size_t.
63847         * lib/printf-parse.c: Don't include sys/types.h.
63848         (SSIZE_MAX): Remove macro.
63849         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
63850         Remove unnecessary overflow check.
63851         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
63852         fields.
63853
63854 2003-11-25  Bruno Haible  <bruno@clisp.org>
63855
63856         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
63857
63858 2003-11-25  Bruno Haible  <bruno@clisp.org>
63859
63860         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
63861         gt_TYPE_SSIZE_T.
63862
63863 2003-11-24  Paul Eggert  <eggert@twinsun.com>
63864
63865         * modules/alloca: Remove dependency on xalloc.
63866
63867 2003-11-24  Paul Eggert  <eggert@twinsun.com>
63868
63869         * lib/alloca.c: Remove dependency on xalloc module.
63870         (xalloc_die): Remove.
63871         (memory_full) [!defined emacs]: New macro.
63872         [!defined emacs]: Don't include xalloc.h.
63873         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
63874         address arithmetic overflows.  Change datatypes a bit to avoid
63875         unnecessary casts.
63876
63877 2003-11-22  Jim Meyering  <jim@meyering.net>
63878
63879         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
63880         s/size/size_t/.
63881
63882 2003-11-21  Karl Berry  <karl@gnu.org>
63883
63884         * config/config.{sub,guess}: update from config.
63885
63886 2003-11-18  Karl Berry  <karl@gnu.org>
63887
63888         * config/config.{sub,guess}: update from config.
63889
63890         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
63891
63892 2003-11-17  Paul Eggert  <eggert@twinsun.com>
63893
63894         * README: Mention that S+T cannot overflow if S is the size of
63895         an existing object and T is sufficiently small.
63896
63897 2003-11-17  Jim Meyering  <jim@meyering.net>
63898
63899         On systems without utime and without a utimes function capable of
63900         dealing with a NULL struct utimbuf* argument, this utime replacement
63901         could -- in unusual circumstances -- leak a file descriptor.
63902         * lib/utime.c: Include <unistd.h> and <errno.h>.
63903         (utime_null): Be sure to close `fd' and to preserve errno.
63904         Reported by Geoff Collyer via Arnold Robbins.
63905
63906 2003-11-17  Bruno Haible  <bruno@clisp.org>
63907
63908         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
63909         (Depends-on): Add xsize.
63910
63911 2003-11-17  Bruno Haible  <bruno@clisp.org>
63912
63913         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
63914
63915 2003-11-17  Bruno Haible  <bruno@clisp.org>
63916
63917         * lib/vasnprintf.c (alloca): Remove fallback definition.
63918         (freea): Remove definition.
63919         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
63920         Reported by Paul Eggert.
63921
63922 2003-11-16  Paul Eggert  <eggert@twinsun.com>
63923             Bruno Haible  <bruno@clisp.org>
63924
63925         Protect against address arithmetic overflow.
63926         * lib/printf-args.h: Include stddef.h.
63927         (arguments): Change type of field 'count' to size_t.
63928         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
63929         'unsigned int' where appropriate.
63930         * lib/printf-parse.h: Include sys/types.h.
63931         (char_directive): Change type of *arg_index fields to ssize_t.
63932         (char_directives): Change type of fields 'count', max_*_length to
63933         size_t.
63934         * lib/printf-parse.c: Include sys/types.h and xsize.h.
63935         (SSIZE_MAX): Define fallback value.
63936         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
63937         instead of 'int' where appropriate. Check a_allocated, d_allocated
63938         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
63939         * lib/vasnprintf.c: Include xsize.h.
63940         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
63941         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
63942         overflow. Avoid wraparound when converting a width or precision from
63943         decimal to binary.
63944
63945 2003-11-16  Bruno Haible  <bruno@clisp.org>
63946
63947         Update from GNU gettext.
63948         * lib/printf-parse.c: Generalize to it can be compiled for wide
63949         strings.
63950         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
63951         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
63952         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
63953         SNPRINTF): New macros.
63954         Don't include <alloca.h> if the file is used inside libintl.
63955         (local_wcslen): New function, for Solaris 2.5.1.
63956         (VASNPRINTF): Use it instead of wcslen.
63957
63958 2003-11-16  Bruno Haible  <bruno@clisp.org>
63959
63960         * lib/xsize.h (xmax): New function.
63961         (xsum, xsum3, xsum4): Declare as "pure" functions.
63962
63963 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63964
63965         * modules/xalloc (Files): Undo latest change, since xalloc.h
63966         no longer needs SIZE_MAX or PTRDIFF_MAX.
63967
63968 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63969
63970         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
63971         gl_PTRDIFF_MAX.
63972
63973 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63974
63975         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
63976         "return", to pacify some unknown compiler.  Problem reported
63977         by Joerg Schilling.
63978
63979 2003-11-12  Paul Eggert  <eggert@twinsun.com>
63980
63981         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
63982         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
63983         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
63984         heuristic is just as accurate as far as we know, and it removes a
63985         dependency on size_max.m4 and ptrdiff_max.m4.
63986
63987 2003-11-11  Bruno Haible  <bruno@clisp.org>
63988
63989         * modules/xsize (Files): Add m4/size_max.m4.
63990         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
63991
63992 2003-11-11  Bruno Haible  <bruno@clisp.org>
63993
63994         * m4/size_max.m4: New file.
63995         * m4/ptrdiff_max.m4: New file.
63996         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
63997         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
63998         (gl_XALLOC): Invoke it.
63999
64000 2003-11-11  Bruno Haible  <bruno@clisp.org>
64001
64002         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
64003         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
64004         defined.
64005
64006 2003-11-10  Paul Eggert  <eggert@twinsun.com>
64007
64008         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
64009         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
64010         rejected some allocations of exactly SIZE_MAX - 2 bytes.
64011         From Bruno Haible.
64012         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
64013         not (size_t) -1, since it's defined here.
64014
64015 2003-11-09  Karl Berry  <karl@gnu.org>
64016
64017         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
64018
64019 2003-11-06  Paul Eggert  <eggert@twinsun.com>
64020
64021         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
64022         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
64023         Reject sizes of exactly SIZE_MAX bytes.
64024         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
64025         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
64026
64027 2003-11-05  Bruno Haible  <bruno@clisp.org>
64028
64029         * lib/xsize.h: Include limits.h, to avoid a possible collision with
64030         SIZE_MAX defined in <limits.h> on Solaris.
64031
64032 2003-11-04  Jim Meyering  <jim@meyering.net>
64033
64034         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
64035         variable names, rather than @VAR@.
64036         * modules/poll: Likewise.
64037
64038 2003-11-04  Bruno Haible  <bruno@clisp.org>
64039
64040         * modules/xsize: New file.
64041         * modules/linebreak: Depend on xsize.
64042         * MODULES.html.sh (func_all_modules): Add xsize.
64043
64044 2003-11-04  Bruno Haible  <bruno@clisp.org>
64045
64046         * m4/xsize.m4: New file.
64047
64048 2003-11-04  Bruno Haible  <bruno@clisp.org>
64049
64050         * lib/xsize.h: New file.
64051         * lib/linebreak.c: Include xsize.h.
64052         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
64053         argument for overflow.
64054         Suggested by Paul Eggert.
64055
64056 2003-11-03  Karl Berry  <karl@gnu.org>
64057
64058         * config/config.{guess,sub}: update from config.
64059
64060 2003-11-03  Jim Meyering  <jim@meyering.net>
64061
64062         * modules/userspec (lib_SOURCES): Add userspec.h.
64063         (Include): Add "userspec.h".
64064         Improve description.
64065
64066 2003-11-03  Jim Meyering  <jim@meyering.net>
64067
64068         * lib/userspec.c: Include "userspec.h".
64069         * lib/userspec.h: New file.
64070
64071 2003-11-03  Bruno Haible  <bruno@clisp.org>
64072
64073         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
64074
64075 2003-11-03  Bruno Haible  <bruno@clisp.org>
64076
64077         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
64078         available, to avoid (extremely rare) race condition.
64079         Suggested by Paul Eggert.
64080
64081 2003-11-02  Karl Berry  <karl@gnu.org>
64082
64083         * config/srclist.txt (vasprintf.c): sync broken, sigh.
64084
64085 2003-10-31  Paul Eggert  <eggert@twinsun.com>
64086
64087         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
64088         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
64089         (read_filesystem_list): Set and use me_type_malloced.
64090         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
64091         whatever the type happens to be), for brevity and consistency.
64092         Check for size calculation overflow on Alphas running OSF/1.
64093
64094 2003-10-31  Jim Meyering  <jim@meyering.net>
64095
64096         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
64097
64098         * lib/linebuffer.c: Include <string.h> for declaration of memset.
64099
64100 2003-10-30  Paul Eggert  <eggert@twinsun.com>
64101             Bruno Haible  <bruno@clisp.org>
64102
64103         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
64104         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
64105
64106 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
64107
64108         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
64109         netbsd*-gnu*.  Suggested by Robert Millan.
64110
64111 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64112
64113         * modules/group-member: Depend on stdbool.
64114
64115 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64116
64117         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
64118
64119 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64120
64121         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
64122         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
64123         after the 'gnu' in these cases.  This fixes some bugs in the
64124         previous change, and is based on suggestions by Robert Millan.
64125
64126 2003-10-29  Paul Eggert  <eggert@twinsun.com>
64127
64128         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
64129         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
64130         no longer needed.
64131         * lib/quotearg.c (quotearg_n_options): Use it.
64132         * lib/group-member.c: Include <stdbool.h>.
64133         (free_group_info): Arg is now const *; don't free arg.
64134         (get_group_info): Now returns bool and accepts struct group_info *,
64135         rather than returning a malloc'ed struct group_info *.
64136         All uses changed.  Check for overflow in internal size calculation.
64137
64138         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
64139         rather than xmalloc/xrealloc.
64140         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
64141         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
64142         conformance bug: the old code used a pointer after freeing the
64143         storage that it addressed.
64144         * lib/hash.c (hash_initialize): Simplify the code by using
64145         xalloc_oversized rather than doing it by hand.
64146         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
64147         the buffer preserved.  Use free and xmalloc instead.
64148         * lib/quotearg.c (quotearg_n_options): Likewise.
64149         Use a simpler test for size overflow.  Don't use xalloc_oversized
64150         because unsigned int might be wider than size_t (!); this suggests
64151         that we should switch from unsigned int to size_t for slot numbers.
64152
64153 2003-10-28  Paul Eggert  <eggert@twinsun.com>
64154
64155         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
64156         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
64157         NetBSD kernels.  Requested by Richard Stallman.
64158
64159 2003-10-27  Paul Eggert  <eggert@twinsun.com>
64160
64161         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
64162         to allocate the returned structure.  Do not allocate a subarray,
64163         as x2nrealloc will do that.
64164         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
64165         instead of xnrealloc.
64166         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
64167
64168 2003-10-27  Bruno Haible  <bruno@clisp.org>
64169
64170         * lib/stdbool_.h: Better support for BeOS.
64171
64172 2003-10-26  Paul Eggert  <eggert@twinsun.com>
64173
64174         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
64175         now uses inline.
64176
64177 2003-10-26  Paul Eggert  <eggert@twinsun.com>
64178
64179         * lib/xalloc.h (xalloc_oversized): New static inline function, for
64180         callers that want to do their own size-overflow checking.  Include
64181         <stdbool.h>, since xalloc_oversized returns bool.
64182         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
64183         to use xalloc_oversized.
64184
64185         Add two functions x2realloc, x2nrealloc, for programs that grow
64186         arrays dynamically by doubling their sizes.
64187         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
64188         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
64189         New functions.
64190
64191         Port to C99 semantics for 'inline' of external functions.
64192         Bug reported by Bruno Haible.
64193         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
64194         with the old contents of xnmalloc.
64195         (xnmalloc, xmalloc): Use it.
64196         (xnrealloc_inline): New static inline function,
64197         with the old contents of xnrealloc.
64198         (xnrealloc, xrealloc): Use it.
64199
64200         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
64201         that.
64202
64203 2003-10-26  Karl Berry  <karl@gnu.org>
64204
64205         * config/srclist.txt (COPYING.DOC): no longer available from
64206         /gd/gnuorg; don't know where the ultimate source is.
64207
64208 2003-10-25  Paul Eggert  <eggert@twinsun.com>
64209
64210         Fix several address-calculation bugs in the hash modules,
64211         plus some minor code cleanup.
64212
64213         * lib/hash.h: Include <stdbool.h>, for bool.
64214         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
64215         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
64216         hash_get_n_entries, hash_get_max_bucket_length,
64217         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
64218         hash_rehash): Use size_t rather than unsigned.
64219         * lib/hash.c (struct hash_table, hash_get_n_buckets,
64220         hash_get_n_buckets_used, hash_get_n_entries,
64221         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
64222         hash_get_entries, hash_do_for_each, hash_string, is_prime,
64223         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
64224         Likewise.
64225         (SIZE_MAX): Define if not defined.
64226         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
64227         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
64228         hash_print):
64229         Use const * when possible.
64230         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
64231         (check_tuning): Fix bug: if tuning parameters were very close to
64232         0 or 1, rounding errors could have caused subscript violations.
64233         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
64234         (hash_initialize): Add 'fail:' label
64235         to free table and return NULL, and use it to simplify code.
64236         Use calloc rather than clearing the storage ourself.
64237         (hash_initialize, hash_rehash): Check for arithmetic overflow in
64238         buffer size calculations.
64239         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
64240         Include <stddef.h>, for size_t.
64241         * lib/hash-pjw.c (hash_pjw): Likewise.
64242         Switch to method described by Bruno Haible.
64243         Include <limits.h>, for CHAR_BIT.
64244         (SIZE_BITS): New macro.
64245
64246 2003-10-23  Paul Eggert  <eggert@twinsun.com>
64247
64248         * m4/getline.m4 (AM_FUNC_GETLINE):
64249         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
64250         hosts.  Problem reported by Derek Robert Price in
64251         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
64252         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
64253         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
64254
64255 2003-10-21  Paul Eggert  <eggert@twinsun.com>
64256
64257         * lib/getndelim2.c (getndelim2): When size calculation overflows,
64258         ceiling the allocation at NMAX bytes rather than silently
64259         discarding input bytes before NMAX is reached.  This makes
64260         a difference only if NMAX exceeds SIZE_MAX / 2.
64261
64262         * lib/obstack.c: Merge from glibc.
64263         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
64264         Add libc_hidden_def (_obstack_newchunk).
64265         (_obstack_free) [! defined _LIBC]: Remove.
64266         [defined _LIBC]: Make a strong alias from obstack_free, rather than
64267         a clone of the function body.
64268         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
64269         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
64270
64271         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
64272         glibc.
64273         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
64274         arg to memcpy.
64275
64276         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
64277         (obstack_ptr_grow_fast, obstack_int_grow_fast):
64278         Don't use lvalue casts, as GCC plans to remove support for them
64279         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
64280         was also present in the non-GCC version, indicating that this
64281         code had always been buggy and had never been widely used.
64282         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
64283         Use the fast variant of each macro, rather than copying the
64284         definiens of the fast variant; that way, we'll be more likely to
64285         catch future bugs in the fast variants.
64286
64287 2003-10-20  Bruno Haible  <bruno@clisp.org>
64288
64289         * modules/wait-process: New file.
64290         * MODULES.html.sh (func_all_modules): Add wait-process.
64291
64292 2003-10-20  Bruno Haible  <bruno@clisp.org>
64293
64294         * m4/wait-process.m4: New file.
64295
64296 2003-10-20  Bruno Haible  <bruno@clisp.org>
64297
64298         * lib/wait-process.h: New file, from GNU gettext.
64299         * lib/wait-process.c: New file, from GNU gettext.
64300
64301 2003-10-19  Jim Meyering  <jim@meyering.net>
64302
64303         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
64304         HPUX 10.20.
64305
64306 2003-10-18  Karl Berry  <karl@gnu.org>
64307
64308         * config/config.guess: update from config.
64309
64310 2003-10-16  Paul Eggert  <eggert@twinsun.com>
64311
64312         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
64313         (getgroups): First arg is int, not size_t.
64314         Don't let 'free' mangle errno.
64315
64316 2003-10-16  Paul Eggert  <eggert@twinsun.com>
64317
64318         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
64319
64320 2003-10-16  Karl Berry  <karl@gnu.org>
64321
64322         * config/config.{guess,sub}: update from config.
64323
64324 2003-10-16  Jim Meyering  <jim@meyering.net>
64325
64326         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
64327         memcpy.
64328
64329 2003-10-15  Paul Eggert  <eggert@twinsun.com>
64330
64331         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
64332         (SIZE_MAX): Remove.
64333         (new_exclude, add_exclude_file): Initial size no longer needs to
64334         be a power of 2.
64335         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
64336         our own address arithmetic overflow checking.
64337
64338         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
64339         (fnmatch): Do not alloca more than 2000 wide characters;
64340         instead, use malloc for large buffers.
64341         Check for address arithmetic overflow, and return -1
64342         with errno set to ENOMEM in that case.
64343         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
64344         (NEW_PATTERN): Do not alloca more than 8000 bytes;
64345         instead, return -1.  Check for address arithmetic overflow.
64346
64347 2003-10-14  Paul Eggert  <eggert@twinsun.com>
64348
64349         Handle invalid suffixes and overflow independently, so that
64350         callers can treat them independently as needed.  Fix some bugs in
64351         suffix handling, e.g., "100k@" was not diagnosed as an invalid
64352         suffix for a human-readable blocksize.  The major caller-visible
64353         change is the addition of a new
64354         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
64355         that both overflow and suffix chars were found.
64356
64357         * lib/human.c (humblock): Don't check separately for invalid suffix
64358         char; that is xstrtoumax's job (now that its bug is fixed).
64359         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
64360         INTMAX_MAX]: New macros.
64361         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
64362         TYPE_MAXIMUM): New macros.
64363         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
64364         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
64365         if overflow occurs, as it's what __strtol does and it's more useful
64366         in practice.
64367         (__xstrtol): If __strtol reports some error other than ERANGE,
64368         reflect it to the caller as LONGINT_INVALID.  If it reports
64369         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
64370         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
64371         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
64372         value.
64373         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
64374         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
64375         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
64376         [defined UINTMAX_MAX]: New macros.
64377
64378 2003-10-14  Bruno Haible  <bruno@clisp.org>
64379
64380         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
64381
64382 2003-10-14  Bruno Haible  <bruno@clisp.org>
64383
64384         * m4/sig_atomic_t: New file, from GNU gettext.
64385         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
64386
64387 2003-10-14  Bruno Haible  <bruno@clisp.org>
64388
64389         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
64390         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
64391         Also use volatile where needed.
64392
64393 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64394
64395         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
64396         Change maintainer from Bruno Haible to 'all'.
64397
64398 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64399
64400         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
64401
64402 2003-10-12  Paul Eggert  <eggert@twinsun.com>
64403
64404         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
64405         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
64406         and define in terms of the other primitives.
64407         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
64408         (SIZE_MAX): Define if not already defined.
64409         (array_size_overflow): New function.
64410         (xalloc_die): Abort instead of exiting if 'error' returns.
64411         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
64412         (xmalloc, xrealloc): Use them.
64413         (xcalloc): Check for address arithmetic overflow.
64414         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
64415         a bit faster than strcpy.
64416
64417 2003-10-10  Simon Josefsson  <jas@extundo.com>
64418
64419         * modules/argp (Depends-on): Add restrict and strcase.
64420
64421 2003-10-10  Simon Josefsson  <jas@extundo.com>
64422
64423         * m4/argp.m4: Add AC_C_INLINE.
64424
64425 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64426
64427         Merge getpass from libc, plus a few fixes.
64428
64429         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
64430         Include <stdbool.h>.
64431         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
64432         __fsetlocking to empty.
64433         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
64434         do include <bits/libc-lock.h>.
64435         Do not include <fcntl.h>; not needed.
64436         [_LIBC]: Include <wchar.h>.
64437         (NOTCANCEL_MODE): New macro.
64438         (flockfile, funlockfile) [_LIBC]: New macros.
64439         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
64440         [!_LIBC]: New macros.
64441         (call_fclose): New function.
64442         (getpass): Use it.  Save tty stream separately; this simplifies the
64443         code and makes it more reliable if stdin happens to equal stdout.
64444         Invoke __fsetlocking on tty.
64445         Handle thread cancellation if needed.
64446         Namespace cleanup (use __tcgetattr, __getline).
64447         Use bool for Booleans.
64448         [USE_IN_LIBIO]: Handle wide streams.
64449         [!_LIBC]: Unconditionally do the fseek, since we don't know what
64450         stream might go where.
64451
64452         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
64453         doesn't have to include <stdio.h> before us.
64454         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
64455         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
64456         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
64457         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
64458         if not declared, so that we can use getpass.c code from libc without
64459         rewriting it.
64460         (flockfile, ftrylockfile, funlockfile): New macros.
64461
64462 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64463
64464         * modules/getpass: Depend on stdbool.
64465
64466 2003-10-08  Paul Eggert  <eggert@twinsun.com>
64467
64468         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
64469
64470 2003-10-07  Karl Berry  <karl@gnu.org>
64471
64472         * config/config.{guess,sub}: update from config.
64473
64474 2003-10-06  Jim Meyering  <jim@meyering.net>
64475             Bruno Haible  <bruno@clisp.org>
64476
64477         This lets translators provide better translations for the
64478         "Written by ..." part of --version output.
64479         * lib/version-etc.h: Include stdarg.h.
64480         (version_etc_copyright): Declare as readonly.
64481         (version_etc): Make this function variadic with a NULL-terminated list
64482         of author name strings.
64483         (version_etc_va): New declaration.
64484         * lib/version-etc.c: Include stdarg.h, stdlib.h.
64485         (version_etc_copyright): Declare as readonly.
64486         (version_etc_va): New function. Provide a different translatable string
64487         for each possible number of authors < 10. Abbreviate when there are 10
64488         authors or more.
64489         (version_etc): Make this function variadic. Call version_etc_va.
64490         Suggestion from Gary V. Vaughan.
64491
64492         * lib/long-options.h (parse_long_options): Change prototype: the
64493         authors string is moved to the end and becomes variadic.
64494         * lib/long-options.c: Include stdarg.h.
64495         (parse_long_options): Make this function variadic, too.
64496         Call version_etc_va, not version_etc.
64497
64498 2003-10-06  Bruno Haible  <bruno@clisp.org>
64499
64500         * modules/version-etc-2: Remove file.
64501         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
64502
64503 2003-10-06  Bruno Haible  <bruno@clisp.org>
64504
64505         * modules/fatal-signal: New file.
64506         * MODULES.html.sh (func_all_modules): Add fatal-signal.
64507
64508 2003-10-06  Bruno Haible  <bruno@clisp.org>
64509
64510         * m4/fatal-signal.m4: New file.
64511         * m4/signalblocking.m4: New file, from GNU gettext.
64512
64513 2003-10-06  Bruno Haible  <bruno@clisp.org>
64514
64515         * lib/version-etc-2.h: Remove file.
64516         * lib/version-etc-2.c: Remove file.
64517
64518 2003-10-06  Bruno Haible  <bruno@clisp.org>
64519
64520         * lib/fatal-signal.h: New file, from GNU gettext.
64521         * lib/fatal-signal.c: New file, from GNU gettext.
64522
64523 2003-10-05  Paul Eggert  <eggert@twinsun.com>
64524
64525         * README: Rework advice for preventing empty .o files.
64526         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
64527         not <sys/types.h>.
64528
64529 2003-10-04  Karl Berry  <karl@gnu.org>
64530
64531         * lib/argp*: update from libc.
64532
64533 2003-10-04  Karl Berry  <karl@gnu.org>
64534
64535         * config/config.{guess,sub}: update from config.
64536
64537 2003-10-02  Bruno Haible  <bruno@clisp.org>
64538
64539         * modules/lchown (Include): Add lchown.h.
64540         * modules/time_r (Include): Use "..." syntax.
64541         * modules/xgetdomainname (Include): Add xgetdomainname.h.
64542
64543 2003-10-01  Simon Josefsson  <jas@extundo.com>
64544
64545         * MODULES.html.sh (func_all_modules): Move gethostname from section
64546         'based on' to section 'lacking' POSIX:2001.
64547
64548 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
64549
64550         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
64551         to output mode on the same stream.
64552
64553 2003-09-29  Paul Eggert  <eggert@twinsun.com>
64554
64555         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
64556         Fix arg typo in previous patch.
64557
64558 2003-09-28  Jim Meyering  <jim@meyering.net>
64559
64560         * lib/error.c: Correct cpp indentation.
64561
64562 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64563
64564         * modules/free: New file.
64565
64566 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64567
64568         * m4/free.m4: New file.
64569
64570 2003-09-27  Paul Eggert  <eggert@twinsun.com>
64571
64572         * lib/minmax.h (MIN, MAX)
64573         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
64574         Omit the special code that used __typeof__, since we worry that
64575         it could be more trouble than it's worth.  See:
64576         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
64577         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
64578
64579         * lib/free.c: New file.
64580
64581 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
64582
64583         Trivial fixes to Makefile.am parts of module listings.
64584         * modules/strstr: Append strstr.h to lib_SOURCES.
64585         * modules/strcase: Likewise, for strcase.h.
64586
64587 2003-09-27  Karl Berry  <karl@gnu.org>
64588
64589         * config/mkinstalldirs: update from automake.
64590
64591 2003-09-26  Paul Eggert  <eggert@twinsun.com>
64592
64593         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
64594         (error_tail): Do not loop, reallocating temporary buffer, since
64595         the output cannot contain more wide characters than the input
64596         contains bytes, the size must be big enough already.  This avoids
64597         one potential size overflow calculation.  Check for size overflow
64598         when calculating temporary buffer size.  Free temporary buffer
64599         when done, if it was allocated with malloc; this plugs a memory
64600         leak.  Remove casts from void * to pointers, that are no longer
64601         needed now that we're assuming C89 or better.
64602
64603         Merge error changes from glibc.
64604
64605         * lib/error.c, error.h: Update copyright notice header to match glibc.
64606         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
64607         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
64608         Disable cancellation while printing error.
64609         * lib/error.h: Prepend __ to parameter names.
64610
64611 2003-09-26  Jim Meyering  <jim@meyering.net>
64612
64613         * lib/error.c (error_tail): Move some declarations
64614         into inner scope where the local variables are used.
64615
64616 2003-09-26  Bruno Haible  <bruno@clisp.org>
64617
64618         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
64619         stpncpy().
64620         Don't define stpncpy through config.h; it's now done through stpncpy.h.
64621
64622 2003-09-26  Bruno Haible  <bruno@clisp.org>
64623
64624         * lib/stpncpy.h (gnu_stpncpy): New declaration.
64625         (stpncpy): Define as alias for gnu_stpncpy.
64626         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
64627
64628 2003-09-25  Simon Josefsson  <jas@extundo.com>
64629
64630         * lib/xgetdomainname.h: New file.
64631         * lib/xgetdomainname.c: New file.
64632
64633 2003-09-25  Simon Josefsson  <jas@extundo.com>
64634             Bruno Haible  <bruno@clisp.org>
64635
64636         * modules/getdomainname: New file.
64637         * modules/xgetdomainname: New file.
64638         * MODULES.html.sh (func_all_modules): Add getdomainname,
64639         xgetdomainname.
64640
64641 2003-09-25  Simon Josefsson  <jas@extundo.com>
64642             Bruno Haible  <bruno@clisp.org>
64643
64644         * m4/getdomainname.m4: New file.
64645
64646 2003-09-25  Simon Josefsson  <jas@extundo.com>
64647             Bruno Haible  <bruno@clisp.org>
64648
64649         * lib/getdomainname.h: New file.
64650         * lib/getdomainname.c: New file.
64651
64652 2003-09-25  Karl Berry  <karl@gnu.org>
64653
64654         * lib/argp-fmtstream.c, argp-help.c: update from libc.
64655
64656 2003-09-25  Karl Berry  <karl@gnu.org>
64657
64658         * config/install-sh: update from automake.
64659
64660 2003-09-25  Bruno Haible  <bruno@clisp.org>
64661
64662         * modules/version-etc-2: New file, from modules/version-etc with
64663         modifications.
64664         * MODULES.html.sh (func_all_modules): Add version-etc-2.
64665
64666 2003-09-25  Bruno Haible  <bruno@clisp.org>
64667
64668         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
64669         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
64670
64671 2003-09-24  Simon Josefsson  <jas@extundo.com>
64672
64673         * modules/xgethostname: Add xgethostname.h.
64674
64675 2003-09-24  Paul Eggert  <eggert@twinsun.com>
64676
64677         * lib/linebuffer.c (freebuffer): Don't free the argument, just
64678         the buffer associated with the argument.  Bug reported by
64679         Simon Josefsson.
64680
64681 2003-09-24  Paul Eggert  <eggert@twinsun.com>
64682
64683         * README: Document assumptions that 'int' is at least 32 bits
64684         wide, that integer arithmetic is 2's complement without overflow,
64685         that there are no holes in integer values, that adding sizes of
64686         two nonoverlapping objects can't overflow, and that all-bits-zero
64687         yields scalar zero.  Fix spelling and capitalization typos.
64688
64689 2003-09-19  Karl Berry  <karl@gnu.org>
64690
64691         * lib/argp.h: update from libc.
64692
64693 2003-09-17  Paul Eggert  <eggert@twinsun.com>
64694
64695         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
64696         to avoid spurious warnings like "AC_RUN_IFELSE was called before
64697         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
64698
64699 2003-09-17  Paul Eggert  <eggert@twinsun.com>
64700
64701         * gnulib-tool: Use "test -h", not "test -L", for portability
64702         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
64703         (tags_regexp): Remove, since \| doesn't conform to POSIX.
64704         (sed_extract_prog): Issue s commands one-by-one, rather than
64705         using \| in one s command.
64706
64707 2003-09-16  Paul Eggert  <eggert@twinsun.com>
64708
64709         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
64710         input error, instead of returning NULL the next time we are called
64711         (and therefore losing track of errno).
64712
64713 2003-09-16  Bruno Haible  <bruno@clisp.org>
64714
64715         * gnulib-tool (func_create_testdir): Warn about duplicated
64716         dependencies.
64717
64718 2003-09-15  Paul Eggert  <eggert@twinsun.com>
64719
64720         * modules/argmatch, modules/fatal, modules/obstack,
64721         modules/xalloc, modules/xgethostname: Sort dependencies by
64722         importance, not alphabetically.
64723
64724 2003-09-15  Paul Eggert  <eggert@twinsun.com>
64725
64726         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
64727         fails, so that the caller gets the proper errno.
64728
64729         * lib/readutmp.c (read_utmp): Likewise.
64730         Check for fstat error.  Close stream and free storage
64731         when failing.
64732
64733 2003-09-14  Karl Berry  <karl@gnu.org>
64734
64735         * config/srclist.txt (strdup.c): disable for c89 changes.
64736
64737 2003-09-14  Jim Meyering  <jim@meyering.net>
64738
64739         * lib/getloadavg.c: Correct cpp indentation.
64740         * lib/strdup.c: Likewise.
64741         * lib/vasnprintf.c: Likewise.
64742
64743 2003-09-14  Bruno Haible  <bruno@clisp.org>
64744
64745         * modules/fwriteerror: New file.
64746         * MODULES.html.sh (func_all_modules): Add fwriteerror.
64747
64748 2003-09-14  Bruno Haible  <bruno@clisp.org>
64749
64750         * lib/fwriteerror.h: New file.
64751         * lib/fwriteerror.c: New file.
64752
64753 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64754
64755         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
64756         modules/xgethostname, modules/xalloc: Depend on exit.
64757
64758 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64759
64760         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
64761
64762         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
64763         and AC_MINIX, too, so that their extensions are available.
64764
64765         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
64766         This macro has been superseded by gl_BACKUPFILE.
64767
64768         More patches to assume C89 or better.
64769
64770         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
64771
64772         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
64773         unconditionally.
64774         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
64775         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
64776         Include <string.h>, <stdlib.h> unconditionally.
64777         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
64778         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
64779         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
64780         headers or for string.h.
64781         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
64782         or strtoul.
64783
64784         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
64785         headers.
64786         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
64787         * m4/userspec.m4 (gl_USERSPEC): Likewise.
64788         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
64789         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
64790         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64791         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
64792         memcpy, memset.
64793         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
64794         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
64795         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
64796         strtol.
64797         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
64798         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
64799         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
64800         strtoul.
64801
64802 2003-09-12  Paul Eggert  <eggert@twinsun.com>
64803
64804         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
64805         * lib/obstack.c [!defined _LIBC]: Likewise.
64806         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
64807         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
64808         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
64809
64810         More changes to assume C89 or better.
64811
64812         * lib/error.c (error_tail): Assume vprintf.
64813
64814         * lib/argmatch.c (getenv): Remove decl.
64815         * lib/progreloc.c (get_full_program_name): Define via prototype.
64816         * lib/setenv.c (clearenv): Likewise.
64817         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
64818         needed.
64819         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
64820         (malloc, memcpy): Remove decls.
64821         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
64822         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
64823         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
64824         (memcpy): Remove macro.
64825         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
64826         (__P): Remove.  All uses removed.
64827         (PTR): Remove.  All uses changed to void *.
64828         (CHAR_BIT, NULL): Remove.
64829         (spaces, zeros, memset_space, memset_zero)
64830         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
64831         Remove.
64832         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
64833         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
64834         Define with prototype.
64835         Remove now-unnecessary prototype decl.
64836         (extra_args_spec): Assume ANSI C.  All uses changed.
64837         (extra_args_spec_iso): Remove.
64838         (my_strftime, emacs_strftimeu): Define via prototype.
64839         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
64840         unconditionally.
64841         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
64842         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
64843         (strtoul, strtol): Remove decls.
64844         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
64845         LONG_MAX): Remove.
64846         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
64847         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
64848         (LOCALE_PARAM_PROTO): New macro.
64849         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
64850         (INTERNAL (strtol), strtol): Define with a prototype.
64851         (PARAMS): Remove.  All uses removed.
64852         * lib/tempname.c: Include <string.h> unconditionally.
64853         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
64854         * lib/xgethostname.c (main): Define with a prototype.
64855         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
64856         Include <stdlib.h> unconditionally.
64857         (calloc, malloc, realloc, free): Remove decls.
64858         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
64859         Include <stdlib.h> unconditionally.  Sort include file names.
64860         (strtod): Remove.
64861         (xstrtod): Define with a prototype.
64862         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
64863         (strtol, strtoul): Remove decls.
64864
64865 2003-09-11  Paul Eggert  <eggert@twinsun.com>
64866
64867         More patches to assume C89 or better.
64868         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
64869         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
64870         string.h, memchr, STDC_HEADERS.
64871
64872 2003-09-11  Paul Eggert  <eggert@twinsun.com>
64873
64874         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
64875         Include <stdlib.h>, <string.h> unconditionally.
64876         Remove now-unnecessary cast to char *.
64877         * lib/strnlen.c: Include <string.h> unconditionally.
64878         * lib/yesno.c (yesno): Define with a prototype.
64879
64880 2003-09-11  Bruno Haible  <bruno@clisp.org>
64881
64882         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
64883
64884 2003-09-10  Jim Meyering  <jim@meyering.net>
64885
64886         * lib/error.c: Correct indentation of cpp directives.
64887
64888 2003-09-10  Bruno Haible  <bruno@clisp.org>
64889
64890         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
64891         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
64892         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
64893         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
64894         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
64895         <stdlib.h> and <string.h> checks.
64896         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
64897         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
64898
64899 2003-09-10  Bruno Haible  <bruno@clisp.org>
64900
64901         * lib/strcspn.c: Include <string.h> unconditionally.
64902         * lib/strpbrk.c: Include <string.h> unconditionally.
64903         * lib/strstr.c: Include <string.h> unconditionally.
64904         * lib/unicodeio.c: Include <string.h> unconditionally.
64905         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
64906         * lib/unsetenv.c: Likewise.
64907         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
64908         * lib/yesno.c: Include <stdlib.h> unconditionally.
64909         (rpmatch): Add prototype.
64910
64911 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64912
64913         More patches to assume C89 or better.
64914         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
64915         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
64916         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
64917         or for string.h.
64918         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
64919         stdlib.h.
64920         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
64921         C headers.
64922         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
64923         string.h.
64924         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
64925         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
64926         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
64927         or for string.h.
64928         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
64929         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
64930         C headers.
64931         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
64932         memcpy.
64933         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
64934         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
64935         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
64936         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
64937         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
64938         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
64939         string.h, free.
64940         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
64941         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
64942         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
64943         C headers, or for string.h.
64944         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
64945         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
64946         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
64947         headers, memory.h, stdlib.h, string.h, strings.h.
64948         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
64949         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
64950         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
64951         strchr.
64952         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
64953         headers, memory.h, string.h.
64954         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
64955         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
64956         free.
64957         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
64958         headers.
64959         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
64960         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
64961         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
64962         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
64963         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
64964
64965 2003-09-09  Paul Eggert  <eggert@twinsun.com>
64966
64967         More K&R removal.
64968
64969         * lib/acosl.c (main): Use a prototype.
64970         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
64971         tanl.c: Likewise.
64972
64973         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
64974
64975         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
64976         (getopt, etopt_long, getopt_long_only, _getopt_internal)
64977         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
64978         with a prototype.
64979         * lib/getopt.c (const): Remove macro.
64980         Include <string.h> unconditionally.
64981         (my_index): Remove; all uses changed to strchr.
64982         (strlen): Remove decl.
64983         (exchange): Remove forward decl; no longer needed.
64984         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
64985         Define with prototype.
64986         * lib/getopt1.c (const): Remove macro.
64987         (getopt_long, getopt_long_only, main): Define with prototype.
64988
64989         * lib/getugroups.c: Include <string.h> unconditionally.
64990
64991         * lib/getusershell.c: Include <stdlib.h> unconditionally.
64992         (getusershell, setusershell, endusershell, readname, main):
64993         Define with prototypes.
64994
64995         * lib/group-member.c: Include group-member.h first.
64996         Include <stdlib.h> unconditionally.
64997
64998         * lib/hard-locale.c: Include hard-locale.h first.
64999         Include <stdlib.h>, <string.h> unconditionally.
65000
65001         * lib/hash.c (free, malloc): Remove decls.
65002         Include <stdlib.h> unconditionally.
65003
65004         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
65005         (getenv): Do not declare.
65006
65007         * lib/idcache.c: Include <string.h> unconditionally.
65008
65009         * lib/long-options.c: Include long-options.h first, to test interface.
65010         Include <stdlib.h> unconditionally.
65011
65012         * lib/makepath.c: Include makepath.h first, to test interface.
65013         Include <stdlib.h> and <string.h> unconditionally.
65014
65015         * lib/linebuffer.c: Include <stdlib.h>.
65016         (free): Remove decl.
65017
65018         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
65019         stddef.h. rpl_malloc returns void *, not char *.
65020         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
65021         prototype.
65022
65023         * lib/md5.h: Include <limits.h> unconditionally.
65024         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
65025         (__P): Remove; all uses removed.
65026         * lib/md5.c: Include "md5.h" first.
65027         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
65028         md5_buffer, md5_process_bytes, md5_process_block):
65029         Define with prototypes.
65030         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
65031         * lib/sha.c: Include "sha.h" first.
65032         Include <stdlib.h>, <string.h> unconditionally.
65033
65034         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
65035         * lib/memcmp.c (__ptr_t): Likewise.
65036         * lib/memrchr.c (__ptr_t): Likewise.
65037         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
65038         Include <string.h> unconditionally.
65039         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
65040         * lib/memchr.c: Include <stdlib.h> unconditionally.
65041         * lib/memchr.c (LONG_MAX): Remove.
65042         * lib/memrchr.c (LONG_MAX): Likewise.
65043         * lib/memchr.c (__memchr): Define via a prototype.
65044         * lib/memrchr.c (__memrchr): Likewise.
65045         * lib/memcmp.c (__P): Remove, and remove all uses.
65046         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
65047         Remove forward decls; no longer needed.
65048         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
65049         Use types required by C89 in prototype.
65050
65051         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
65052         * lib/savedir.c: Likewise.
65053         * lib/mkdir.c (free): Remove decl.
65054         * lib/rmdir.c (rmdir): Define with a prototype.
65055         * lib/savedir.c: Include savedir.h first, to test interface.
65056
65057         * lib/mktime.c (STDC_HEADERS): Remove.
65058         Include <stdlib.h>, <string.h> unconditionally.
65059
65060         * lib/modechange.c: Include <stdlib.h> unconditionally.
65061         (malloc): Remove decl.
65062
65063         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
65064         (free): Remove decl.
65065
65066         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
65067         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
65068         (This type really should be intptr_t, but that's a C99ism.)
65069         (_obstack_memcpy): Remove: all uses changed to memcpy.
65070         Include <string.h> unconditionally.
65071         (struct obstack): Assume __STDC__ for types of members
65072         chunkfun, freefun, extra_arg.
65073         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
65074         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
65075         obstack_begin, obstack_specify_allocation,
65076         obstack_specify_allocation_with_arg, obstack_chunkfun,
65077         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
65078         Remove unprototyped decls and the macros that use them.
65079         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
65080         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
65081         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
65082         (defined __STDC__ && __STDC__)]:
65083         Remove nonprototyped code.
65084         Include <stdlib.h> unconditionally.
65085         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
65086         _obstack_allocated_p, _obstack_free, obstack_free,
65087         _obstack_memory_used, print_and_abort):
65088         Define using prototypes.
65089         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
65090         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
65091         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
65092         obstack_next_free, obstack_object_size, obstack_room) [0]:
65093         Remove unused, unprototyped code.
65094
65095         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
65096
65097         * lib/physmem.c (physmem_total, physmem_available, main): Define
65098         with prototypes.
65099
65100         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
65101         (main): Define with a prototype.
65102
65103         * lib/posixver.c (getenv): Remove decl.
65104
65105         * lib/putenv.c (malloc): Returns void *, not char *.
65106         Include <string.h> unconditionally.
65107         (strchr, memcpy, NULL): Do not define.
65108
65109         * lib/readtokens.c: Include readtokens.h first, to test interface.
65110         Include <stdlib.h>, <string.h> unconditionally.
65111         (init_tokenbuffer): Define with a prototype.
65112
65113         * lib/regex.c (PARAMS): Remove.  All uses removed.
65114         All uses of _RE_ARGS removed, too.
65115         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
65116         unconditionally.
65117         (bzero): Assume memset exists.
65118         (memcmp, memcpy, NULL): Remove.
65119         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
65120         char, or assignments to local vars of type signed char.
65121         (init_syntax_once, PREFIX(extract_number_and_incr),
65122         PREFIX(print_partial_compiled_pattern),
65123         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
65124         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
65125         PREFIX(regex_grow_registers), PREFIX(regex_compile),
65126         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
65127         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
65128         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
65129         wcs_compile_range, byte_compile_range, truncate_wchar,
65130         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
65131         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
65132         count_mbs_length, wcs_re_match_2_internal,
65133         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
65134         PREFIX(alt_match_null_string_p),
65135         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
65136         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
65137         regfree, PREFIX(extract_number)): Define with prototype.  Remove
65138         now-unnecessary declaration, if any.
65139         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
65140         regcomp, regexec):
65141         Remove now-unnecessary casts among pointer types.
65142         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
65143
65144         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
65145         (free): Remove decl.
65146
65147         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
65148
65149         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
65150         (free): Remove decl.
65151
65152         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
65153         * lib/xgetcwd.c: Likewise.
65154
65155         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
65156         (free): Remove decl.
65157
65158         * lib/strchrnul.c (strchrnul): Define with a prototype.
65159         Fix bug: c_in was not converted to char before searching.
65160
65161         The following changes are not K&R related:
65162
65163         * lib/group-member.h: Include <sys/types.h>, so that this file is
65164         self-contained.
65165         * lib/makepath.h: Likewise.
65166
65167         * lib/getusershell.c (readname, default_index, line_size, readname):
65168         Use size_t, not int, for sizes.
65169         (readname): If the size overflows, report an error instead of
65170         looping forever.
65171
65172 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65173
65174         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
65175         libc.
65176
65177 2003-09-09  Paul Eggert  <eggert@twinsun.com>
65178
65179         * README: New section: portability guidelines.
65180
65181 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
65182
65183         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
65184         C89 spec.
65185
65186 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
65187
65188         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
65189
65190 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65191
65192         Assume C89 or better; remove K&R cruft.
65193         A few of these changes were first proposed by Derek Robert Price
65194         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
65195
65196         * lib/addext.c: Include <string.h> unconditionally.
65197         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
65198         Don't declare getenv or malloc.
65199
65200         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
65201         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
65202         (NULL): Remove.
65203         (find_stack_direction, alloca): Use prototypes.
65204
65205         * lib/atexit.c (atexit): Define using a prototype.
65206
65207         * lib/basename.c, dirname.c, stripslash.c:
65208         Include <string.h> unconditionally.
65209
65210         * lib/bcopy.c: Include <stddef.h>.
65211         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
65212
65213         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
65214
65215         * lib/error.h (error, error_at_line, error_print_progname)
65216         [! (defined (__STDC__) && __STDC__)]: Remove decls.
65217         * lib/error.c: Include error.h first, to check interface.
65218         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
65219         (VA_START): Remove; all uses changeed to va_start.
65220         (exit, strerror): Remove decls.
65221         (error_print_progname): Prototype uncondionally.
65222         Don't include <errno.h>; no longer needed.
65223         (private_strerror): Remove.
65224         (error_tail): Always define.
65225         (error, error_at_line): Assume C89 or better; always use prototypes.
65226         * lib/fatal.c: Include "fatal.h" first, to test interface.
65227         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
65228         (VA_START): Remove; all uses changed to va_start.
65229         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
65230         this case.
65231         (exit): Remove decl.
65232         (fatal): Prototype unconditionally.  Assume va_start works.
65233         Abort at end, to pacify gcc.
65234
65235         * lib/euidaccess.c (main): Define with a prototype.
65236
65237         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
65238
65239         * lib/exitfail.c: Include <stdlib.h> unconditionally.
65240
65241         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
65242         prototypes.
65243         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
65244         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
65245         (getenv): Remove decl.
65246         (fnmatch): Define using a prototype.
65247         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
65248         (FCT): Define using a prototype.
65249
65250         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
65251
65252         * lib/gethostname.c: Include <stddef.h>.
65253         (gethostname): Define with prototype.  Length is size_t, not int.
65254
65255 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65256
65257         Assume C89 or better; remove K&R cruft.
65258         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
65259         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
65260         string.h, getenv, malloc.
65261         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
65262         headers.
65263         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
65264         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
65265         do not check for strerror.
65266         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
65267         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
65268         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
65269         do not check for doprnt or vprintf.
65270         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
65271         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
65272
65273 2003-09-08  Paul Eggert  <eggert@twinsun.com>
65274
65275         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
65276         getversion.c should have been removed then, but was accidentally
65277         preserved.
65278
65279         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
65280         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
65281
65282 2003-09-08  Karl Berry  <karl@gnu.org>
65283
65284         * config/config.sub, config.guess, srclistvars.sh: update from savannah
65285                 config, forget about prep.
65286
65287         * config/depcomp, missing: update from automake.
65288
65289 2003-09-07  Paul Eggert  <eggert@twinsun.com>
65290
65291         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
65292         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
65293
65294 2003-09-07  Paul Eggert  <eggert@twinsun.com>
65295
65296         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
65297         copy_tm_result.  Bug reported by Simon Josefsson in
65298         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
65299
65300 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65301
65302         * m4/time_r.m4: New file.
65303         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
65304         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
65305         is. Check for timegm declaration.
65306         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
65307         Do not check for gmtime_r.
65308         Replace mktime if __mktime_internal does not exist and if mktime
65309         hasn't been replaced already.
65310
65311 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65312
65313         * lib/time_r.c, lib/time_r.h: New files.
65314
65315         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
65316         __localtime_r.
65317         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
65318         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
65319
65320         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
65321         __gmtime_r.
65322         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
65323         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
65324         Include <time_r.h>.
65325
65326         * lib/timegm.c: Switch to glibc implementation, with the following
65327         changes:
65328         [defined HAVE_CONFIG_H]: Include <config.h>.
65329         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
65330         (__mktime_internal) [!defined _LIBC]: New decl.
65331         (__gmtime_r) [!defined _LIBC]: New macro and function.
65332         (timegm): Use a prototype, since gnulib assumes C89.
65333         Do not bother declaring tmp to be const, as it's not really usefu.
65334         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
65335         (timegm): Declare only if HAVE_DECL_TIMEGM.
65336
65337 2003-09-06  Paul Eggert  <eggert@twinsun.com>
65338
65339         * MODULES.html.sh (func_all_modules): Add time_r.
65340         * modules/time_r: New file.
65341         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
65342         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
65343
65344 2003-09-03  Paul Eggert  <eggert@twinsun.com>
65345
65346         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
65347         Bug reported by Lute Kamstra in
65348         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
65349
65350         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
65351         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
65352         course with correspondingly smaller numbers for tomorrow and
65353         yesterday.  From Tadayoshi Funaba.  Originally installed into
65354         sh-utils on 1999-08-07, but the patch got lost (I guess during the
65355         coreutils merge?).
65356
65357 2003-08-31  Simon Josefsson  <jas@extundo.com>
65358
65359         * modules/timegm: New file.
65360         * MODULES.html.sh (func_all_modules): Add timegm.
65361
65362 2003-08-31  Simon Josefsson  <jas@extundo.com>
65363
65364         * m4/timegm.m4: New file.
65365
65366 2003-08-31  Simon Josefsson  <jas@extundo.com>
65367
65368         * lib/timegm.h: New file.
65369         * lib/timegm.c: New file.  Based on
65370         wget-1.8.2/src/http.c:mktime_from_utc.
65371
65372 2003-08-31  Karl Berry  <karl@gnu.org>
65373
65374         * lib/argp.h: update from libc.
65375
65376 2003-08-28  Bruno Haible  <bruno@clisp.org>
65377
65378         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
65379         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
65380         followed by '#define fnmatch fnmatch_posix' gives an error.
65381
65382 2003-08-28  Bruno Haible  <bruno@clisp.org>
65383
65384         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
65385         warning on QNX, which defines O_BINARY to 000000.
65386
65387 2003-08-27  Jim Meyering  <jim@meyering.net>
65388
65389         * m4/mkstemp.m4: Require that the system mkstemp be able to create
65390         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
65391         would fail after 32.  Reported by Danny Levinson.  Details here:
65392         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
65393
65394 2003-08-24  Bruno Haible  <bruno@clisp.org>
65395
65396         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
65397         MSVC7 <stdio.h> is included later.
65398
65399 2003-08-22  Simon Josefsson  <jas@extundo.com>
65400
65401         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
65402
65403 2003-08-20  Karl Berry  <karl@gnu.org>
65404
65405         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
65406
65407 2003-08-20  Bruno Haible  <bruno@clisp.org>
65408
65409         * modules/progname: New file.
65410         * MODULES.html.sh (func_all_modules): Add progname.
65411
65412 2003-08-20  Bruno Haible  <bruno@clisp.org>
65413
65414         * lib/progname.h: New file, from GNU gettext.
65415         * lib/progname.c: New file, from GNU gettext.
65416         * lib/progreloc.c: New file, from GNU gettext.
65417
65418 2003-08-19  Jim Meyering  <jim@meyering.net>
65419
65420         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
65421         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
65422
65423 2003-08-19  Bruno Haible  <bruno@clisp.org>
65424
65425         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
65426         more.
65427
65428 2003-08-19  Bruno Haible  <bruno@clisp.org>
65429
65430         * lib/xstrdup.c: Assume <string.h> exists.
65431
65432 2003-08-18  Paul Eggert  <eggert@twinsun.com>
65433
65434         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
65435         in makefile rules.
65436
65437 2003-08-18  Jim Meyering  <jim@meyering.net>
65438
65439         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
65440         * m4/lib-ld.m4: Likewise.
65441
65442 2003-08-18  Jim Meyering  <jim@meyering.net>
65443
65444         * lib/setenv.h: Indent nested cpp directive.
65445         * lib/vasnprintf.c: Remove trailing blanks.
65446
65447 2003-08-17  Simon Josefsson  <jas@extundo.com>
65448
65449         * modules/xstrndup: New file.
65450         * MODULES.html.sh (func_all_modules): Add xstrndup.
65451
65452 2003-08-17  Simon Josefsson  <jas@extundo.com>
65453
65454         * modules/argp: Fix autoconf macro name. Add more dependencies.
65455
65456 2003-08-17  Simon Josefsson  <jas@extundo.com>
65457
65458         * m4/xstrndup.m4: New file.
65459
65460 2003-08-17  Simon Josefsson  <jas@extundo.com>
65461
65462         * m4/argp.m4: New file.
65463
65464 2003-08-17  Simon Josefsson  <jas@extundo.com>
65465             Bruno Haible  <bruno@clisp.org>
65466
65467         * lib/xstrndup.h: New file.
65468         * lib/xstrndup.c: New file.
65469
65470 2003-08-17  Bruno Haible  <bruno@clisp.org>
65471
65472         * modules/strndup (Files, Include): Add lib/strndup.h.
65473
65474 2003-08-17  Bruno Haible  <bruno@clisp.org>
65475
65476         * modules/euidaccess (Files): Add lib/euidaccess.h.
65477
65478 2003-08-17  Bruno Haible  <bruno@clisp.org>
65479
65480         * lib/strndup.h: New file.
65481
65482 2003-08-17  Bruno Haible  <bruno@clisp.org>
65483
65484         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
65485         like AC_GNU_SOURCE.
65486         * modules/extensions (configure.ac): Comment out the invocation of
65487         gl_USE_SYSTEM_EXTENSIONS.
65488
65489 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65490
65491         Merges from coreutils, etc.
65492         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
65493         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
65494         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
65495         fixing a typo.
65496         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
65497         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
65498
65499 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65500
65501         Document merge from coreutils.
65502         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
65503         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
65504         * modules/utime: Add m4/utimes-null.m4.
65505
65506 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65507
65508         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
65509         space, undoing this 2003-08-12 change:
65510         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
65511
65512 2003-08-16  Paul Eggert  <eggert@twinsun.com>
65513
65514         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
65515         strtoul.c from libc, undoing this 2003-08-12 change:
65516         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
65517
65518 2003-08-16  Jim Meyering  <jim@meyering.net>
65519
65520         Merges from coreutils.
65521         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
65522         prefix.  Adjust cache variables similarly.  Create 500 rather than
65523         just 300 files, to exercise bug on Darwin6.5, too.
65524         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
65525         $missing_dir.
65526         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
65527         AM_SYS_POSIX_TERMIOS.
65528         Reported by mkc@mathdogs.com.
65529         Also change use of $am_cv_sys_posix_termios
65530         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
65531         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
65532         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
65533         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
65534         in /proc/mounts until it finds one with matching device number.  This
65535         is unnecessary when the FILE argument *is* a mount point.  No stat call
65536         is necessary in that case.  So, disable the statvfs-testing code on
65537         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
65538         as RedHat bug# 84846.
65539         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
65540         to 1MB, so as not to render systems with no stack size limit (e.g.,
65541         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
65542         Include <unistd.h>.  On some systems,
65543         it is required for the definition of _SC_PAGESIZE.
65544
65545 2003-08-16  Jim Meyering  <jim@meyering.net>
65546
65547         Merge from coreutils.
65548         * lib/xstrtoimax.c: #else #if -> #elif.
65549         * lib/xstrtoumax.c: Likewise.
65550
65551 2003-08-16  Jim Meyering  <jim@meyering.net>
65552
65553         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
65554         * m4/utimes.m4: Removed.
65555         * m4/utimes-null.m4: Renamed from utimes.m4.
65556
65557         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
65558         to 1MB, so as not to render systems with no stack size limit (e.g.,
65559         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
65560         Include <unistd.h>.  On some systems,
65561         it is required for the definition of _SC_PAGESIZE.
65562
65563 2003-08-16  Jim Meyering  <jim@meyering.net>
65564         and Paul Eggert  <eggert@cs.ucla.edu>
65565
65566         Merges from coreutils, etc.
65567
65568         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
65569         using the latest version from cvs.  This avoids problems with #line
65570         directives using a vendor (Sun) compiler.
65571         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
65572         Don't set GETGROUPS_LIB here; now it's
65573         done via getgroups.m4's wrapper function.
65574         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
65575         rather than just in sh-util/configure.in, so that the
65576         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
65577         same.
65578         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
65579         AC_FUNC_GETLOADAVG where to find getloadavg.c.
65580         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
65581         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
65582         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
65583         Remove code that is now done by the newly-required macros.
65584         Append $(EXEEXT) to DF_PROG.
65585         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
65586         Do not invoke or require the following here,
65587         since prereq.m4 or some gnulib .m4 now does this for us:
65588         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
65589         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
65590         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
65591         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
65592         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
65593         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
65594         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
65595         AC_FUNC_OBSTACK.
65596         Do not replace the following functions, as this is now the job
65597         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
65598         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
65599         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
65600         atexit getpass, strdup, getpagesize.
65601         Replace 'raise'.
65602         Do not check for the following functions, as this is now the job
65603         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
65604         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
65605         setregid.
65606         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
65607         Check for sys/sysctl.h.
65608         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
65609         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
65610         of checking for ssize_t ourselves.
65611
65612         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
65613         Require every macro that gnulib/modules/* suggests for us.
65614         (jm_PREREQ_ADDEXT): New macro.
65615         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
65616         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
65617
65618         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
65619         (gl_PHYSMEM): Use it.
65620         Also check for `table' function.
65621         Check for new headers and functions.
65622         Add check for sys/sysmp.h.
65623         With suggestions from Kaveh Ghazi.
65624         Ignore headers that are present but cannot be compiled.  This
65625         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
65626         C 5.4.
65627
65628 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65629
65630         Document merge from coreutils.
65631         * modules/userspec: Depend on posixver.
65632         * modules/strftime: Depend on tzset.
65633
65634 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65635
65636         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
65637         rather than tab, after '#' in shell-script copyright notices.
65638         Suggested by Bruno Haible.
65639
65640 2003-08-15  Paul Eggert  <eggert@twinsun.com>
65641
65642         * config/srclist-update: Use three spaces, rather than tab, after '#'
65643         in shell-script copyright notices.  Suggested by Bruno Haible.
65644         Remove unnecessary parenthesization in regular expression.
65645
65646 2003-08-15  Jim Meyering  <jim@meyering.net>
65647
65648         Merge from coreutils.
65649         * lib/xgethostname.c: Include <stdlib.h>.
65650         (xghostname): Don't exit for anything other than memory-related
65651         failure; just return NULL.
65652         * lib/userspec.c: Include "posixver.h".
65653         (parse_user_spec): Accept `.' as a separator only
65654         in pre-POSIX-200112 mode.
65655         * lib/strtoimax.c: Use #elif rather than #else #if.
65656         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
65657         Remove function, now that we can rely on a working tzset function.
65658         [!_LIBC]: Ensure that the required autoconf test has been run.
65659         [!defined _NL_CURRENT && HAVE_STRFTIME]:
65660         Use underlying_strftime for %r.
65661         * lib/sha.c: Merge in some clean-up and optimization changes from
65662         glibc.
65663         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
65664         Ensure that it is a multiple of 64.
65665         Rearrange loop exit tests so as to avoid performing an
65666         additional fread after encountering an error or EOF.
65667         * lib/realloc.c: Update copyright date.
65668
65669 2003-08-15  Jim Meyering  <jim@meyering.net>
65670         and Paul Eggert  <eggert@twinsun.com>
65671
65672         Merge from coreutils.
65673         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
65674         member but strut utmpx does not.  Needed for AIX 4.3.3.
65675         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
65676
65677 2003-08-15  Jim Meyering  <jim@meyering.net>
65678         and Paul Eggert  <eggert@cs.ucla.edu>
65679
65680         Merges from coreutils, etc.
65681         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
65682         Require gl_FUNC_TZSET_CLOBBER.
65683         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
65684         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
65685         members.
65686
65687 2003-08-14  Paul Eggert  <eggert@twinsun.com>
65688
65689         Help the merge from coreutils.
65690         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
65691         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
65692         * m4/tzset.m4: Use it too.
65693
65694 2003-08-14  Paul Eggert  <eggert@twinsun.com>
65695
65696         * modules/tzset: New file.
65697
65698 2003-08-14  Jim Meyering  <jim@meyering.net>
65699
65700         Merges from coreutils.
65701         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
65702         variable names, rather than @FNMATCH_H@.
65703         * modules/alloca: Likewise for $(ALLOCA_H).
65704
65705         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
65706         the three copies of the literal target, `fnmatch.h'.
65707         * modules/alloca (alloca.h): Likewise.
65708
65709 2003-08-14  Jim Meyering  <jim@meyering.net>
65710
65711         Merge from coreutils.
65712         * m4/tzset.m4: New file.
65713         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
65714         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
65715         otherwise, AIX 5.1 systems would end up using the latter.
65716         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
65717         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
65718         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
65719         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
65720
65721 2003-08-14  Jim Meyering  <jim@meyering.net>
65722
65723         Merge from coreutils.
65724         * lib/obstack.h: Whitespace changes.
65725         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
65726         and xcalloc return values.
65727         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
65728         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
65729         hang on OSF/1 5.1 for DIR on both local and remote file systems.
65730         Reported by (and fix confirmed by) Nelson H. F. Beebe.
65731         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
65732         error from mntctl.
65733         Use mntctl's return value to drive the entry-processing loop, since
65734         we can't rely on the value of the vmt_length member in the last
65735         entry.  On some systems doing so could result in exhausting
65736         virtual memory.  Based in part on a patch from Mike Jetzer.
65737
65738 2003-08-14  Jim Meyering  <jim@meyering.net>
65739         and Paul Eggert  <eggert@twinsun.com>
65740
65741         Merges from coreutils, plus other fixes.
65742         * lib/physmem.c: Merge in portability changes from gcc/libiberty
65743         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
65744         for credits and details.  Thanks to Kaveh Ghazi for helping
65745         to keep these files in sync.
65746         (ARRAY_SIZE): Define it.
65747         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
65748         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
65749         (memcasecmp): Don't assume size_t fits in unsigned int.
65750         Remove casts and duplicate code.
65751         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
65752         (memcpy): Remove definition.
65753         Merge in some clean-up and optimization changes from glibc.
65754         [BLOCKSIZE]: Move definition to top of file.
65755         Ensure that it is a multiple of 64.
65756         Rearrange loop exit tests so as to avoid performing an
65757         additional fread after encountering an error or EOF.
65758         * lib/md5.h (md5_uintptr): Define.
65759         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
65760         return to the initial working directory.  Preserve errno
65761         for caller.
65762         * lib/idcache.c: Include "xalloc.h".
65763         (xmalloc, xrealloc): Remove decls.
65764         (getuser): Remove casts no longer required in C89.
65765         * lib/human.c: Include stdio.h, for sprintf.
65766         * lib/group-member.c: Include "xalloc.h".
65767         (xmalloc, xrealloc): Remove decls.
65768         (get_group_info): Remove casts no longer required in C89.
65769         * lib/getusershell.c (readname): Remove casts no longer required in
65770         C89.
65771         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
65772         * lib/getline.c: Whitespace fix, from coreutils.
65773
65774 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65775
65776         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
65777         Check for isascii.
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         Undo previous (whitespace-only) change.
65782
65783 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65784
65785         * lib/exclude.c: Include <ctype.h>
65786         (IN_CTYPE_DOMAIN): New macro.
65787         (is_space): New fn.
65788         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
65789         and empty lines.
65790
65791         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
65792         Undo previous (whitespace-only) change.
65793
65794 2003-08-13  Paul Eggert  <eggert@twinsun.com>
65795
65796         * config/srclist-update: Change update back to the old behavior,
65797         leaving whitespace alone.  Use one 'sed' command rather than a
65798         pipeline.
65799         (fixlicense): Now a variable, not a function.
65800         (remove_trailing_blanks): Remove.
65801         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
65802         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
65803         Undo previous (whitespace-only) change.
65804
65805 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65806
65807         Merge from coreutils.
65808         * modules/euidaccess: Add lib_SOURCES, include for new
65809         file euidaccess.h
65810
65811 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65812
65813         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
65814         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
65815         Normalize leading white space and remove trailing white space.
65816
65817         Merge from coreutils
65818         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
65819
65820         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
65821         0.12.1.  These files are now being upgraded automatically by
65822         ../config/srclist-update.
65823
65824 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65825
65826         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
65827         Normalize leading white space and remove trailing white space.
65828         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
65829         notice, as per ../config/srclist-update.
65830
65831         Merge from coreutils.
65832         * lib/euidaccess.h: New file.
65833         * lib/euidaccess.c: Include it.
65834         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
65835         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
65836         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
65837
65838 2003-08-12  Paul Eggert  <eggert@twinsun.com>
65839
65840         * config/srclist-update: Add copyright notice.
65841         (remove_id_lines, remove_trailing_blanks): New constants.
65842         (fixfile): Use them to normalize spacing a bit in copied files.
65843         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
65844         Normalize leading white space and remove trailing white space.
65845
65846         * config/texinfo.tex: Sync with texinfo.
65847
65848         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
65849         strtoul.c from libc, to merge coreutils whitespace changes.
65850
65851         * config/srclist.txt: Get the following m4 files from gettext:
65852         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
65853         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
65854         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
65855         wint_t.m4.
65856
65857 2003-08-12  Karl Berry  <karl@gnu.org>
65858
65859         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
65860         been made.
65861
65862 2003-08-11  Paul Eggert  <eggert@twinsun.com>
65863
65864         * modules/gnu-source, m4/gnu-source.m4:
65865         Remove; we're assuming Autoconf 2.54 or later now.
65866         Suggested by Bruno Haible.
65867         * MODULES.html.sh (func_all_modules): Remove gnu-source.
65868
65869 2003-08-11  Bruno Haible  <bruno@clisp.org>
65870
65871         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
65872
65873 2003-08-11  Bruno Haible  <bruno@clisp.org>
65874
65875         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
65876         (vasnprintf): Use it instead of wcslen.
65877
65878 2003-08-11  Bruno Haible  <bruno@clisp.org>
65879
65880         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
65881         value to ensure that _Bool promotes to int. Use #define for _Bool when
65882         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
65883
65884 2003-08-10  Karl Berry  <karl@gnu.org>
65885
65886         * lib/regex.h: update from libc (whitespace fix).
65887
65888 2003-08-09  Paul Eggert  <eggert@twinsun.com>
65889
65890         Merge some files from coreutils.  These changes were
65891         originally made by Jim Meyering.
65892         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
65893         many older Unixes require this.
65894         * lib/alloca.c (alloca): Remove cast to argument of free;
65895         no longer needed in C89.
65896         * lib/alloca_.h, regex.h: Fix white space to match
65897         what GNU indent does.
65898
65899 2003-08-09  Paul Eggert  <eggert@twinsun.com>
65900
65901         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
65902         apparently Emacs's Unicode mode got confused before my 2003-08-05
65903         checkin.
65904
65905 2003-08-08  Paul Eggert  <eggert@twinsun.com>
65906
65907         * m4/extensions.m4: New file.
65908         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
65909         Require gl_USE_SYSTEM_EXTENSIONS.
65910         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
65911         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
65912
65913 2003-08-08  Paul Eggert  <eggert@twinsun.com>
65914
65915         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
65916         * modules/extensions, modules/gnu-source: New files.
65917         * modules/timespec, modules/unlocked-io: Depend on extensions.
65918
65919 2003-08-07  Paul Eggert  <eggert@twinsun.com>
65920
65921         * modules/restrict: New file.
65922         * MODULES.html.sh (func_all_modules): Add restrict.
65923         * modules/regex: Depend on restrict.
65924
65925 2003-08-07  Paul Eggert  <eggert@twinsun.com>
65926
65927         * m4/restrict.m4: New file.
65928         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
65929
65930 2003-08-07  Bruno Haible  <bruno@clisp.org>
65931
65932         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
65933         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
65934
65935 2003-08-07  Bruno Haible  <bruno@clisp.org>
65936
65937         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
65938         makes the module 'getndelim2' compatible with the module 'getline'.
65939
65940 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65941
65942         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
65943         byte with "\201" to avoid glitches when editing that source file
65944         with multi-gnome-terminal.
65945
65946 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65947
65948         * lib/bumpalloc.h: Remove.
65949
65950 2003-08-05  Paul Eggert  <eggert@twinsun.com>
65951
65952         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
65953         * modules/bumpalloc: Remove.
65954
65955 2003-08-04  Paul Eggert  <eggert@twinsun.com>
65956
65957         * lib/getloadavg.c: Change copyright notice and spacing to conform to
65958         GNU coding style.
65959
65960         Merge from coreutils.
65961         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
65962         1. From glibc.
65963         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
65964         from Karl Berry, implemented by Jim Meyering.
65965         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
65966         from Dmitry V. Levin.
65967         Remove anachronistic cast of xrealloc.
65968         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
65969         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
65970         type. Otherwise, it wouldn't compile with at least /bin/cc on
65971         ymp-cray-unicos9.0.2.X.
65972         Combine two mostly-identical uses of alloca into one.
65973         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
65974
65975 2003-08-04  Dave Love  <d.love@dl.ac.uk>
65976
65977         [From Emacs.]
65978
65979         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
65980         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
65981         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
65982         obsolete NLIST_NAME_UNION.
65983         [__GNU__]: Undef BSD and FSCALE.
65984         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
65985
65986 2003-08-03  Paul Eggert  <eggert@twinsun.com>
65987
65988         * lib/stdbool_.h (_Bool): Make it signed char, instead of
65989         an enum type, so that it's guaranteed to promote to int.  See:
65990         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
65991
65992 2003-08-03  Karl Berry  <karl@gnu.org>
65993
65994         * config/depcomp: update from automake.
65995
65996 2003-07-31  Paul Eggert  <eggert@twinsun.com>
65997
65998         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
65999         (strerror): Don't assume that a printable int fits in 14 bytes.
66000
66001 2003-07-31  Bruno Haible  <bruno@clisp.org>
66002
66003         * modules/getpass-gnu: New file.
66004         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
66005
66006 2003-07-31  Bruno Haible  <bruno@clisp.org>
66007
66008         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
66009
66010 2003-07-24  Karl Berry  <karl@gnu.org>
66011
66012         * config/missing: update from automake.
66013
66014 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
66015             Bruno Haible  <bruno@clisp.org>
66016
66017         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
66018         * lib/getline.c (getline, getdelim): Likewise.
66019         Remove _GNU_SOURCE define; now it's defined in config.h through
66020         m4/getline.m4.
66021
66022 2003-07-23  Karl Berry  <karl@gnu.org>
66023
66024         * config/config.sub: update from prep.
66025
66026 2003-07-22  Paul Eggert  <eggert@twinsun.com>
66027
66028         * modules/xalloc (Depends-on): Add exitfail.
66029         * modules/xmemcoll: Likewise.
66030
66031 2003-07-22  Paul Eggert  <eggert@twinsun.com>
66032
66033         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
66034         over-parenthesization in macros.
66035
66036         Sync with coreutils.
66037
66038         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
66039         required by C99.
66040
66041         Use `exit_failure' for xalloc and xmemcoll instead of their own
66042         private exit-failure variables.
66043         * lib/xalloc.h (xalloc_exit_failure): Remove.
66044         * lib/xmalloc.c: Likewise.  Include exitfail.h.
66045         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
66046         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
66047         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
66048         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
66049
66050 2003-07-20  Jim Meyering  <jim@meyering.net>
66051
66052         * modules/closeout (Depends-on): Add exitfail.
66053         Suggestion from Bruno Haible.
66054
66055 2003-07-19  Karl Berry  <karl@gnu.org>
66056
66057         * config/config.sub: update from prep.
66058
66059 2003-07-18  Paul Eggert  <eggert@twinsun.com>
66060
66061         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
66062         Remove.
66063         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
66064         to test that it can stand by itself.  Include "exitfail.h".
66065         Clients should set exit_failure instead.
66066         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
66067
66068 2003-07-18  Bruno Haible  <bruno@clisp.org>
66069
66070         * modules/getndelim2: New file.
66071         * modules/getline: Share files with module getndelim2.
66072         * modules/getnline: Depend on getndelim2 instead of sharing files with
66073         it. Add getnline.c to lib_SOURCES.
66074         * MODULES.html.sh (func_all_modules): Add getndelim2.
66075
66076 2003-07-18  Bruno Haible  <bruno@clisp.org>
66077
66078         * m4/getndelim2.m4: New file.
66079         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
66080         invoke gl_PREREQ_GETNDELIM2.
66081         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
66082         gl_PREREQ_GETNDELIM2.
66083         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
66084         gl_GETNDELIM2.
66085
66086 2003-07-18  Bruno Haible  <bruno@clisp.org>
66087
66088         * lib/getndelim2.h: New file.
66089         * lib/getndelim2.c: Make into a module of its own. Include config.h,
66090         getndelim2.h.
66091         (getndelim2): Make non-static. Change return type to ssize_t.
66092         * lib/getline.h: Change argument names.
66093         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
66094         * lib/getnline.c: Include getndelim2.h.
66095
66096 2003-07-18  Andreas Schwab  <schwab@suse.de>
66097
66098         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
66099
66100 2003-07-17  Karl Berry  <karl@gnu.org>
66101
66102         * config/config.sub: update from prep.
66103
66104 2003-07-17  Bruno Haible  <bruno@clisp.org>
66105
66106         * modules/getnline: New file.
66107         * modules/getline: Add lib/getndelim2.c to source file list.
66108         * MODULES.html.sh (func_all_modules): Add getnline.
66109
66110 2003-07-17  Bruno Haible  <bruno@clisp.org>
66111
66112         * m4/getnline.m4: New file.
66113
66114 2003-07-17  Bruno Haible  <bruno@clisp.org>
66115
66116         * m4/Makefile.am.in: Remove file.
66117         * m4/Makefile.am: Remove file.
66118         * m4/Makefile.in: Remove file.
66119
66120 2003-07-17  Bruno Haible  <bruno@clisp.org>
66121
66122         * lib/getnline.h: New file.
66123         * lib/getnline.c: New file.
66124         * lib/getndelim2.c: New file, extracted from getline.c.
66125         (getndelim2): Renamed from getdelim2, with added nmax argument.
66126         * lib/getline.c: Include getndelim2.c.
66127         (getdelim2): Moved out to getndelim2.c.
66128         (getline, getdelim): Update.
66129
66130 2003-07-17  Bruno Haible  <bruno@clisp.org>
66131
66132         * lib/Makefile.am: Remove file.
66133         * lib/Makefile.in: Remove file.
66134
66135 2003-07-17  Bruno Haible  <bruno@clisp.org>
66136
66137         * configure.in: Remove file.
66138         * Makefile.in: Remove file.
66139
66140 2003-07-17  Bruno Haible  <bruno@clisp.org>
66141
66142         * MODULES.html.sh: Put the </BODY> right before </HTML>.
66143
66144 2003-07-16  Karl Berry  <karl@gnu.org>
66145
66146         * config/srclist-update: was running fixlicense twice, which caused
66147                 texinfo.tex to be nullified for some reason.  Simplify,
66148                 $gplsrc is no longer needed as far as I can see?
66149
66150 2003-07-16  Jim Meyering  <jim@meyering.net>
66151
66152         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
66153
66154 2003-07-15  Paul Eggert  <eggert@twinsun.com>
66155
66156         * config/srclist.txt: Get the following files from gettext-runtime/intl
66157         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
66158         ref-del.sin.  From Bruno Haible.
66159         * config/srclist-update (fixfile): Change grep pattern again, since the
66160         previous fix didn't work (there was another trailing $).  Use
66161         '[$]' to escape the $s.
66162
66163 2003-07-15  Karl Berry  <karl@gnu.org>
66164
66165         * lib/vasnprintf.c: update from gettext.
66166
66167 2003-07-15  Karl Berry  <karl@gnu.org>
66168
66169         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
66170         gets expanded when surrounded by '$'.
66171
66172 2003-07-15  Jim Meyering  <jim@meyering.net>
66173
66174         * modules/save-cwd: Don't depend on error.  From Derek Price.
66175
66176 2003-07-15  Jim Meyering  <jim@meyering.net>
66177
66178         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
66179
66180 2003-07-14  Simon Josefsson  <jas@extundo.com>
66181
66182         * modules/mempcpy: New file.
66183         * MODULES.html.sh (func_all_modules): Add mempcpy.
66184
66185 2003-07-14  Simon Josefsson  <jas@extundo.com>
66186
66187         * m4/mempcpy.m4: New file.
66188
66189 2003-07-14  Simon Josefsson  <jas@extundo.com>
66190
66191         * lib/mempcpy.h: New file.
66192         * lib/mempcpy.c: New file.
66193
66194 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66195
66196         * modules/getdate, modules/posixtm: Depend on mktime.
66197
66198 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66199
66200         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
66201         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
66202         unicodeio.c, unicodeio.h, unlocked-io.h:
66203         Switch from LGPL to GPL.
66204
66205 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66206
66207         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
66208         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
66209         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
66210         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
66211         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
66212         updated automatically by ../config/srclist-update.  This changes
66213         their license from LPGL to GPL.
66214
66215 2003-07-14  Paul Eggert  <eggert@twinsun.com>
66216
66217         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
66218         assumed to refer to the root of the most recent stable gettext version.
66219         * config/srclistvars.sh: Add defaults for eggert.
66220         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
66221         Match "This program" as well as "The program".  This is needed
66222         for gettext.
66223
66224 2003-07-14  Jim Meyering  <jim@meyering.net>
66225
66226         Don't emit diagnostics.  Let callers do that.
66227         * lib/save-cwd.c: Don't include "error.h".
66228         (save_cwd): Don't call error.  Ensure that errno is valid
66229         when returning nonzero.
66230
66231         * lib/save-cwd.h (restore_cwd): Update prototype.
66232         * lib/save-cwd.c (restore_cwd): Remove two parameters.
66233         Simplify.  Don't call error upon failure.  Let callers do that.
66234         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
66235         when auditing is enabled.  But don't bother updating the #if.
66236
66237 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
66238
66239         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
66240         it breaks C++ compilation.
66241         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
66242
66243 2003-07-10  Simon Josefsson  <jas@extundo.com>
66244
66245         * modules/strchrnul (Makefile.am): Add strchrnul.h.
66246
66247 2003-07-10  Jim Meyering  <jim@meyering.net>
66248
66249         * m4/clock_time.m4: Remove trailing blank.
66250         * m4/intmax_t.m4: Likewise.
66251
66252 2003-07-10  Jim Meyering  <jim@meyering.net>
66253
66254         * lib/vasnprintf.c: Remove trailing blanks.
66255         Make cpp indentation consistent.
66256
66257 2003-07-09  Paul Eggert  <eggert@twinsun.com>
66258
66259         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
66260         posixver.c, strftime.c, strnlen.c, strverscmp.c:
66261         Switch from LGPL to GPL.
66262
66263 2003-07-09  Paul Eggert  <eggert@twinsun.com>
66264
66265         * config/srclist.txt: Sort sublists.  Add
66266         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
66267         that differ from gnulib for one reason or another; we'd like this list
66268         to be smaller but for now let's document what we have.
66269
66270 2003-07-08  Paul Eggert  <eggert@twinsun.com>
66271
66272         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
66273         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
66274         and sweeter "eval x=$x".
66275         * config/srclist.txt: Get lib/argp* from glibc.
66276
66277 2003-07-07  Paul Eggert  <eggert@twinsun.com>
66278
66279         * lib/mktime.c: Fix some boundary cases and remove need for floating
66280         point.
66281
66282         Issue a compile-time diagnostic if time_t is floating point, or if
66283         two's complement arithmetic is not in effect, or if arithmetic
66284         right shift does not propagate the sign.  These assumptions were
66285         all in the original code but they weren't checked.
66286
66287         (TIME_T_MIDPOINT, verify): New macros.
66288         (__isleap): Remove; it has integer overflow problems.
66289         (leapyear): New function, without those problems.
66290         (ydhms_tm_diff): Remove; splitting into two parts.
66291         (ydhms_diff): New function, containing the arithmetic part of
66292         the old ydhms_tm_diff function.  Issue a compile-time
66293         diagnostic if we are not using C99 integer division.
66294         Avoid casts when possible.
66295         (guess_time_tm): New function, containing the checking part of
66296         the old ydhms_tm_diff function.  Return the new value, rather than
66297         the difference between it and the old.  Accept a new argument T
66298         so that *T specifies the old value.  Check for overflow in the result.
66299
66300         (__mktime_internal): Use a time_t offset, not a long int offset.
66301         This undoes the 2003-06-04 change, which is no longer needed now
66302         that we have better overflow checking.
66303         (localtime_offset): Likewise.
66304
66305         (__mktime_internal): Avoid harmful overflow on hosts where time_t
66306         and long are 64-bit but int is only 32-bit.
66307         (ydhms_diff): Use long int to store year1 and yday1.
66308         Issue a compile-time diagnostic if long int is not wide enough.
66309
66310         (__mktime_internal): Use long int to store adjusted year and yday.
66311         Use plain C rather than preprocessor commands, if that doesn't
66312         affect efficiency.
66313         Check for overflow (and try to repair) after each probe
66314         rather than checking only at the very end.  This avoids some bugs
66315         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
66316         does not equal GMT offset at maximum time).
66317         Use integer to check for overflow rather than floating point; this
66318         is more portable to non-IEEE hosts, and is a tad faster.
66319         When we detect that we are oscillating between two values,
66320         don't check whether tm_isdst has the requested value, since
66321         we already know the answer.  When tm_isdst has the wrong value,
66322         use a different heuristic to find the right one, based on the
66323         extreme values actually observed in practice in tz2003a,
66324         rather than the (overly optimistic) "previous 3 calendar quarters".
66325
66326         (not_equal_tm, print_tm, check_result): Use "const T" rather than
66327         "T const" to accommodate glibc style.
66328         (check_result): Use less-confusing report format.  "long" -> "long int.
66329         (main): Likewise.
66330         Don't loop if the iteration overflows time_t.
66331         Allow a negative step in the iteration.
66332
66333 2003-07-06  Karl Berry  <karl@gnu.org>
66334
66335         * config/depcomp: update from automake.
66336         * config/config.sub: update from prep.
66337
66338 2003-07-03  Karl Berry  <karl@gnu.org>
66339
66340         * config/config.guess: update from prep.
66341
66342 2003-07-01  Paul Eggert  <eggert@twinsun.com>
66343
66344         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
66345         xreadlink.c now includes it unconditionally.
66346
66347 2003-07-01  Paul Eggert  <eggert@twinsun.com>
66348
66349         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
66350         having it depend on HAVE_SYS_TYPES_H.
66351
66352 2003-07-01  Bruno Haible  <bruno@clisp.org>
66353
66354         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
66355         <sys/types.h> should be sufficient.
66356         Reported by Paul Eggert.
66357
66358 2003-06-26  Karl Berry  <karl@gnu.org>
66359
66360         * config/depcomp: update from automake.
66361
66362 2003-06-26  Bruno Haible  <bruno@clisp.org>
66363
66364         * modules/human: Depend on module stdbool.
66365
66366 2003-06-25  Bruno Haible  <bruno@clisp.org>
66367
66368         * modules/readlink: New file.
66369         * modules/xreadlink: Depend on it.
66370         * MODULES.html.sh (func_all_modules): Add readlink.
66371
66372 2003-06-25  Bruno Haible  <bruno@clisp.org>
66373
66374         * m4/readlink.m4: New file.
66375
66376 2003-06-25  Bruno Haible  <bruno@clisp.org>
66377
66378         * lib/readlink.c: New file.
66379
66380 2003-06-22  Karl Berry  <karl@gnu.org>
66381
66382         * config/srclist.txt: update mkinstalldirs from automake.
66383         * config/mkinstalldirs: update.
66384
66385 2003-06-22  Bruno Haible  <bruno@clisp.org>
66386
66387         Portability to mingw32.
66388         * m4/ssize_t.m4: New file, from GNU gettext.
66389         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
66390         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
66391
66392 2003-06-22  Bruno Haible  <bruno@clisp.org>
66393
66394         * modules/safe-read: Add m4/ssize_t.m4.
66395         * modules/xreadlink: Add m4/ssize_t.m4.
66396
66397 2003-06-20  Bruno Haible  <bruno@clisp.org>
66398
66399         Assume C89, so PARAMS isn't needed.
66400         * lib/unicodeio.h (PARAMS): Remove.
66401         * lib/unicodeio.c: Don't use PARAMS.
66402
66403 2003-06-18  Karl Berry  <karl@gnu.org>
66404
66405         * config/config.{guess,sub}: update from prep.
66406
66407 2003-06-18  Jim Meyering  <jim@meyering.net>
66408
66409         Merge changes from coreutils.
66410         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
66411         Remove explicit declarations of xmalloc and realloc.
66412         Include xalloc.h.
66413         (read_utmp): Remove anachronistic cast of xmalloc.
66414
66415 2003-06-17  Paul Eggert  <eggert@twinsun.com>
66416
66417         Assume C89, so PARAMS isn't needed.
66418         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
66419         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
66420         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
66421         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
66422         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
66423         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
66424         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
66425         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
66426         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
66427         lib/xstrtod.h, lib/xstrtol.h: Likewise.
66428         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
66429         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
66430         no longer needed. Anyway, config.h should always be included before any
66431         other file.
66432
66433 2003-06-11  Simon Josefsson  <jas@extundo.com>
66434
66435         * modules/sysexits: New file.
66436         * MODULES.html.sh (func_all_modules): Add sysexits.
66437
66438 2003-06-11  Simon Josefsson  <jas@extundo.com>
66439
66440         * lib/sysexit_.h: New file.
66441
66442 2003-06-11  Derek Price  <derek@ximbiot.com>
66443
66444         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
66445         necessary.
66446
66447 2003-06-11  Bruno Haible  <bruno@clisp.org>
66448
66449         * m4/sysexits.m4: New file.
66450
66451 2003-06-10  Simon Josefsson  <jas@extundo.com>
66452
66453         * lib/argp.h: New file, from glibc.
66454         * lib/argp-ba.c: New file, from glibc.
66455         * lib/argp-eexst.c: New file, from glibc.
66456         * lib/argp-fmtstream.c: New file, from glibc.
66457         * lib/argp-fmtstream.h: New file, from glibc.
66458         * lib/argp-fs-xinl.c: New file, from glibc.
66459         * lib/argp-help.c: New file, from glibc.
66460         * lib/argp-namefrob.h: New file, from glibc.
66461         * lib/argp-parse.c: New file, from glibc.
66462         * lib/argp-pv.c: New file, from glibc.
66463         * lib/argp-pvh.c: New file, from glibc.
66464         * lib/argp-xinl.c: New file, from glibc.
66465
66466 2003-06-10  Simon Josefsson  <jas@extundo.com>
66467
66468         * modules/strchrnul: New file.
66469
66470 2003-06-10  Simon Josefsson  <jas@extundo.com>
66471
66472         * modules/argp: New file.
66473
66474 2003-06-10  Simon Josefsson  <jas@extundo.com>
66475
66476         * m4/strchrnul.m4: New file.
66477
66478 2003-06-10  Simon Josefsson  <jas@extundo.com>
66479
66480         * lib/strchrnul.h: New file.
66481         * lib/strchrnul.c: New file.
66482
66483 2003-06-10  Bruno Haible  <bruno@clisp.org>
66484
66485         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
66486
66487 2003-06-07  Karl Berry  <karl@gnu.org>
66488
66489         * config/config.{guess,sub}: update from prep.
66490
66491 2003-06-07  Jim Meyering  <jim@meyering.net>
66492
66493         * modules/strtod: Use $(...) notation, not @...@ for
66494         AC_REPLACE'd variables.
66495         * modules/localcharset: Likewise.
66496
66497 2003-06-07  Jim Meyering  <jim@meyering.net>
66498
66499         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
66500         in place of my name in the copyright comment.
66501         Remove definition and uses of __P.
66502
66503         From coreutils.
66504         * lib/stat.c: Don't declare xmalloc explicitly.
66505         Instead, include "xalloc.h".
66506         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
66507         xrealloc, and xcalloc return values.
66508         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
66509         Improve comment.
66510         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
66511
66512 2003-06-07  Bruno Haible  <bruno@clisp.org>
66513
66514         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
66515         avoid AC_CONFIG_LINKS.
66516         * modules/fnmatch (Makefile.am): Use explicit creation rule for
66517         fnmatch.h, to avoid AC_CONFIG_LINKS.
66518         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
66519
66520 2003-06-07  Bruno Haible  <bruno@clisp.org>
66521
66522         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
66523         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
66524         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
66525         directory.
66526         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
66527         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
66528         directory.
66529
66530 2003-06-06  Jim Meyering  <jim@meyering.net>
66531
66532         Merge from coreutils.
66533         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
66534         Consolidate declarations and initializations of *_base* locals.
66535
66536         Merge from coreutils.
66537         This avoids a core dump on systems without GNU putenv,
66538         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
66539         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
66540         (unsetenv): New static function, from GNU libc.
66541         (rpl_putenv): Use it.
66542
66543         * lib/modechange.c: Remove trailing blanks.
66544
66545         Merge from coreutils.
66546         * lib/fsusage.c: Remove declaration of statfs.
66547         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
66548
66549         * lib/posixtm.c: Include <stdbool.h> unconditionally.
66550
66551 2003-06-06  Jim Meyering  <jim@meyering.net>
66552
66553         * lib/stdbool_.h: Renamed from stdbool.h.in.
66554
66555 2003-06-06  Jim Meyering  <jim@meyering.net>
66556             Bruno Haible  <bruno@clisp.org>
66557
66558         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
66559         Adjust Makefile.am snippet not to redirect directly to target.
66560         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
66561
66562 2003-06-05  Paul Eggert  <eggert@twinsun.com>
66563
66564         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
66565         mismatch, look in future quarters as well as past.  This fixes a
66566         bug when processing fall-backwards gaps immediately after a long
66567         period of daylight-saving time.
66568
66569         * lib/mktime.c: Assume freestanding C89 or better.
66570         (HAVE_LIMITS_H): Remove.  Assume it's 1.
66571         (__P): Remove; not used.
66572         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
66573         (mktime, not_equal_tm, print_tm, check_result,
66574         main): Use prototypes.  Use const * where appropriate.
66575         (main): Fix typo in testing code that uncovered by above changes.
66576         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
66577
66578 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66579
66580         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
66581         locale.h, localeconv.  This merges changes from coreutils.
66582
66583         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
66584         It can be removed after the next Autoconf is released.
66585         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
66586         needed.
66587
66588 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66589
66590         * lib/mktime.c: Fix Debian bug 177940
66591         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
66592         (localtime_offset): Now long int, not time_t, because we want it
66593         to be guaranteed to be signed.  All uses changed.
66594         (__mktime_internal): If overflow would occur when adding offset,
66595         don't add it.
66596
66597         Merge 'human' changes from coreutils.  Rewrite to support
66598         locale-specific notations like thousands separators.
66599         * lib/human.c: Simplify authorship notice.
66600         Include human.h immediately after config.h.
66601         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
66602         <limits.h>: Do not include, since human.h does.
66603         (SIZE_MAX, UINTMAX_MAX): New macros.
66604         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
66605         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
66606         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
66607         (power_letter): Renamed from suffixes.
66608         (generate_suffix_backwards): Remove.
66609         (adjust_value): Now takes int style (because of human.h changes)
66610         and long double value (for greater precision on some platforms).
66611         (group_number): New function.
66612         (human_readable): Use it.  Use integer options, not enum.
66613         Put the options before the sizes in the arg list.
66614         Support all the new options.
66615         The old human_readable function has been removed;
66616         use inttostr.h instead.
66617         (human_readable, default_block_size, humblock):
66618         Use uintmax_t, not int, for block sizes.
66619         (human_readable_inexact, block_size_types): Remove.
66620         (block_size_opts): New constant.
66621         (human_options): Renamed from human_block_size, with new signature
66622         that allows block sizes up to UINTMAX_MAX.  All callers changed.
66623         * lib/human.h: Add copyright and authorship notice.
66624         Include <limits.h> and <stdbool.h> unconditionally.
66625         (PARAMS): Remove.  All uses removed.
66626         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
66627         (enum human_inexact_style): Remove tag; now a nameless enum.
66628         (human_floor, human_ceiling, human_round_to_even): Now have
66629         values 2, 0, 1 rather than -1, 1, 0.
66630         (human_group_digits, human_suppress_point_zero, human_autoscale,
66631         human_base_1024, human_SI, human_B): New constants.
66632         (human_readable_inexact, human_block_size): Remove.
66633         (human_readable): Size args are now uintmax_t, not int.
66634         (human_options): New decl.
66635
66636         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
66637         unnecessary now that we assume C89 or better.  This change
66638         imported from coreutils.
66639
66640         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
66641         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
66642         in the 2003-05-30 sync from glibc.
66643
66644         .h files should stand alone, but we shouldn't include <sys/types.h>
66645         if we can get away with just <stddef.h>.
66646
66647         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
66648         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
66649         rather than <sys/types.h>, as we merely need size_t.
66650         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
66651         to get size_t.
66652         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
66653         Include <stdio.h>, to get FILE.
66654         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
66655         memcasecmp.h has included <stddef.h> and all we need is size_t.
66656         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
66657         our interface, instead of including <sys/types.h>
66658
66659 2003-06-04  Paul Eggert  <eggert@twinsun.com>
66660
66661         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
66662         now, as glibc mktime is buggy on non-glibc systems.
66663
66664 2003-06-03  Karl Berry  <karl@gnu.org>
66665
66666         * config/config.sub: update from prep.
66667
66668 2003-06-02  Paul Eggert  <eggert@twinsun.com>
66669
66670         [from coreutils]
66671         Fix some minor time-related bugs with POSIX time arguments.
66672         Some valid time stamps were being rejected (notably -1, and
66673         time stamps before 1900 on 64-bit hosts).  And some invalid
66674         time stamps were being accepted, e.g. September 31.
66675
66676         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
66677         that we can return (time_t) -1 successfully.
66678         * lib/posixtm.c: Likewise.
66679         [HAVE_STDBOOL_H]: Include <stdbool.h>.
66680         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
66681         (t): Remove static var.
66682         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
66683         of static var.  All uses changed.
66684         (year): Do not reject years before 1900; they can occur with
66685         64-bit time_t.
66686         (posix_time_parse): Do not check for out-of-range components;
66687         that is now the caller's responsibility, since our checks were
66688         only approximations.
66689         (posixtime): Use mktime to check for out-of-range components,
66690         since it knows them exactly.
66691         If mktime returns (time_t) -1, check whether an error actually occurred
66692         by invoking localtime on -1.
66693         (main) [TEST_POSIXTIME]: Check for input data errors, and report
66694         posixtime failures better.
66695         Improve the test data (in comments only).
66696
66697 2003-06-02  Karl Berry  <karl@gnu.org>
66698
66699         * config/mkinstalldirs (version): new variable.
66700         (--version): new option.
66701         (usage): improve message.
66702
66703 2003-05-30  Karl Berry  <karl@gnu.org>
66704
66705         * lib/mktime.c: update from libc.
66706
66707 2003-05-30  Bruno Haible  <bruno@clisp.org>
66708
66709         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
66710         * config/config.rpath: Upgrade to gettext-0.12.1.
66711
66712 2003-05-30  Bruno Haible  <bruno@clisp.org>
66713
66714         * m4/gettext.m4: Upgrade to gettext-0.12.1.
66715         * m4/nls.m4: New file, from gettext-0.12.1.
66716         * m4/po.m4: New file, from gettext-0.12.1.
66717         * m4/progtest.m4: Upgrade to gettext-0.12.1.
66718
66719 2003-05-30  Bruno Haible  <bruno@clisp.org>
66720
66721         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
66722         * lib/localcharset.h: Likewise.
66723         * lib/localcharset.c: Likewise.
66724
66725 2003-05-29  Karl Berry  <karl@gnu.org>
66726
66727         * config/config.rpath: update from gettext.
66728
66729 2003-05-28  Paul Eggert  <eggert@twinsun.com>
66730
66731         Assume the headers required for C89 freestanding compilers.
66732         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
66733         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
66734         * m4/human.m4 (gl_HUMAN): Likewise.
66735         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
66736         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
66737         * m4/userspec.m4 (gl_USERSPEC): Likewise.
66738         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
66739         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66740         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
66741
66742 2003-05-28  Paul Eggert  <eggert@twinsun.com>
66743
66744         Assume the headers required for C89 freestanding compilers.
66745         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
66746         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
66747         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
66748         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
66749         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
66750         define, since <limits.h> is guaranteed to do that.
66751         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
66752         * lib/exclude.c: Include <stdbool.h> unconditionally.
66753         * lib/tempname.c: Include <stddef.h> unconditionally.
66754         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
66755         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
66756         <stddef.h> does that.
66757         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
66758         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
66759         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
66760         needed.
66761         * lib/xstrtol.c: Likewise.
66762         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
66763         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
66764
66765         * lib/addext.c (addext): Use assignment rather than cast, to avoid
66766         warnings on some platforms.
66767
66768         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
66769         arbitrarily.
66770
66771 2003-05-26  Jim Meyering  <jim@meyering.net>
66772
66773         Merge in a change from coreutils:
66774         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
66775         that is guaranteed to be `no'.  Use `no_such_member' to indicate
66776         that condition, rather than `-1' which is slightly misleading.
66777         Change the name of the cache variable to have the gl_ prefix.
66778         Prompted by a patch from Richard Dawe for DJGPP.
66779
66780 2003-05-24  Karl Berry  <karl@gnu.org>
66781
66782         * config/config.guess: update from prep.
66783
66784 2003-05-22  Karl Berry  <karl@gnu.org>
66785
66786         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
66787
66788 2003-05-20  Karl Berry  <karl@gnu.org>
66789
66790         * config/config.guess: update from prep.
66791
66792 2003-05-18  Karl Berry  <karl@gnu.org>
66793
66794         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
66795         might actually be set by the user.
66796
66797         * config/depcomp, install-sh, mdate-sh: update from automake.
66798
66799 2003-05-17  Bruno Haible  <bruno@clisp.org>
66800
66801         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
66802         invalid expansion for AC_EGREP_CPP.
66803         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
66804         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
66805         Suggested by Akim Demaille <akim@epita.fr> in
66806         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
66807
66808 2003-05-12  Jim Meyering  <jim@meyering.net>
66809
66810         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
66811         the space-padded-by-default conversion specifiers, %e, %k, %l.
66812
66813 2003-05-12  Bruno Haible  <bruno@clisp.org>
66814
66815         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
66816         the string is longer than 4 KB.
66817
66818 2003-05-11  Karl Berry  <karl@gnu.org>
66819
66820         * config/config.{guess,sub}: update from prep.
66821
66822 2003-05-09  Bruno Haible  <bruno@clisp.org>
66823
66824         * modules/error: Add m4/strerror_r.m4 to file list.
66825
66826 2003-05-03  Bruno Haible  <bruno@clisp.org>
66827
66828         Upgrade to Unicode-4.0.
66829         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
66830         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
66831         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
66832         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
66833         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
66834         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
66835         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
66836         Change width of U+E0100..U+E01EF from 1 to 0.
66837
66838 2003-04-25  Jim Meyering  <jim@meyering.net>
66839
66840         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
66841         of type size_t, not int.
66842
66843 2003-04-25  Bruno Haible  <bruno@clisp.org>
66844
66845         * lib/copy-file.c: Include <stddef.h>, for size_t.
66846
66847 2003-04-21  Paul Eggert  <eggert@twinsun.com>
66848
66849         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
66850         code which expansion is under static control.  Patch imported from
66851         Akim Demaille's patch to Bison; see
66852         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
66853
66854 2003-04-14  Bruno Haible  <bruno@clisp.org>
66855
66856         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
66857
66858 2003-04-11  Jim Meyering  <jim@meyering.net>
66859
66860         Merge changes from Coreutils.
66861
66862         2003-03-22  Jim Meyering  <jim@meyering.net>
66863
66864         * lib/strftime.c (widen): Cast alloca return value to proper type.
66865
66866         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
66867
66868         From GNU libc.
66869         * lib/strftime.c (my_strftime): Handle very large width
66870         specifications for numeric values correctly.  Improve checks for
66871         overflow.
66872
66873         2003-01-19  Jim Meyering  <jim@meyering.net>
66874
66875         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
66876         definitions.
66877         (nl_get_alt_digit) [! defined my_strftime]: Define.
66878         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
66879         _nl_get_alt_digit and _nl_get_walt_digit.
66880
66881         * lib/strftime.c (my_strftime): Merge in locale-related changes from
66882         libc. These changes have no effect outside of _LIBC.
66883
66884 2003-04-10  Bruno Haible  <bruno@clisp.org>
66885
66886         * modules/findprog: New file.
66887         * MODULES.html.sh (func_all_modules): Add it.
66888
66889 2003-04-10  Bruno Haible  <bruno@clisp.org>
66890
66891         * m4/findprog.m4: New file.
66892         * m4/eaccess.m4: New file.
66893
66894 2003-04-10  Bruno Haible  <bruno@clisp.org>
66895
66896         * lib/findprog.h: New file, from GNU gettext.
66897         * lib/findprog.c: New file, from GNU gettext.
66898
66899 2003-04-05  Jim Meyering  <jim@meyering.net>
66900
66901         Merge changes from Coreutils.
66902
66903         * lib/exclude.h (PARAMS): Remove definition and uses.
66904         * lib/exclude.c: Remove uses of `PARAMS'.
66905
66906         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
66907         Add test-cases for DOS filenames. Declare program_name.
66908         (main): Set up program_name.  Patch by Rich Dawe.
66909
66910         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
66911         error from mntctl.
66912         Use mntctl's return value to drive the entry-processing loop, since
66913         we can't rely on the value of the vmt_length member in the last
66914         entry.  On some systems doing so could result in exhausting
66915         virtual memory.  Based in part on a patch from Mike Jetzer.
66916
66917 2003-04-04  Bruno Haible  <bruno@clisp.org>
66918
66919         * modules/linebreak: New file.
66920         * MODULES.html.sh (func_all_modules): Add it.
66921
66922 2003-04-04  Bruno Haible  <bruno@clisp.org>
66923
66924         * m4/linebreak.m4: New file.
66925
66926 2003-04-04  Bruno Haible  <bruno@clisp.org>
66927
66928         * lib/linebreak.h: New file, from GNU gettext.
66929         * lib/linebreak.c: New file, from GNU gettext with slight
66930         modifications.
66931         * lib/lbrkprop.h: New file, from GNU gettext.
66932
66933 2003-04-03  Bruno Haible  <bruno@clisp.org>
66934
66935         * modules/utf8-ucs4: New file.
66936         * modules/utf16-ucs4: New file.
66937         * modules/ucs4-utf8: New file.
66938         * modules/ucs4-utf16: New file.
66939         * MODULES.html.sh (func_all_modules): Add them.
66940
66941 2003-04-03  Bruno Haible  <bruno@clisp.org>
66942
66943         * m4/utf-ucs4.m4: New file.
66944         * m4/ucs4-utf.m4: New file.
66945
66946 2003-04-03  Bruno Haible  <bruno@clisp.org>
66947
66948         * lib/utf8-ucs4.h: New file, from GNU gettext.
66949         * lib/utf16-ucs4.h: New file, from GNU gettext.
66950         * lib/ucs4-utf8.h: New file, from GNU gettext.
66951         * lib/ucs4-utf16.h: New file, from GNU gettext.
66952
66953 2003-04-02  Bruno Haible  <bruno@clisp.org>
66954
66955         * modules/binary-io: New file.
66956         * MODULES.html.sh (func_all_modules): Add it.
66957
66958 2003-04-02  Bruno Haible  <bruno@clisp.org>
66959
66960         * lib/binary-io.h: New file, from GNU gettext.
66961
66962 2003-04-01  Bruno Haible  <bruno@clisp.org>
66963
66964         * modules/pathname: New file.
66965         * MODULES.html.sh (func_all_modules): Add it.
66966
66967 2003-04-01  Bruno Haible  <bruno@clisp.org>
66968
66969         * lib/pathname.h: New file, from GNU gettext.
66970         * lib/concatpath.c: New file, from GNU gettext.
66971
66972 2003-03-30  Bruno Haible  <bruno@clisp.org>
66973
66974         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
66975
66976 2003-03-30  Bruno Haible  <bruno@clisp.org>
66977
66978         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
66979         function chown() doesn't exist.
66980
66981 2003-03-28  Bruno Haible  <bruno@clisp.org>
66982
66983         * modules/copy-file: New file.
66984         * MODULES.html.sh (func_all_modules): Add it.
66985
66986 2003-03-28  Bruno Haible  <bruno@clisp.org>
66987
66988         * m4/copy-file.m4: New file.
66989
66990 2003-03-28  Bruno Haible  <bruno@clisp.org>
66991
66992         * lib/copy-file.h: New file, from GNU gettext.
66993         * lib/copy-file.c: New file, from GNU gettext.
66994
66995 2003-03-18  Jim Meyering  <jim@meyering.net>
66996
66997         * lib/quote.c (quote_n): Fix typo in comment.
66998
66999 2003-03-18  Bruno Haible  <bruno@clisp.org>
67000
67001         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
67002         checking.
67003         * m4/onceonly_2_57.m4: Likewise.
67004
67005 2003-03-17  Bruno Haible  <bruno@clisp.org>
67006
67007         * m4/onceonly.m4: Require autoconf 2.54 or newer.
67008         (m4_quote): Remove macro.
67009         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
67010
67011 2003-03-14  Jim Meyering  <jim@meyering.net>
67012
67013         Merge changes from Coreutils.
67014         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
67015         to be const, in order to avoid warnings.
67016         (obstack_room): Likewise.
67017         (obstack_empty_p): Likewise.
67018
67019 2003-03-14  Bruno Haible  <bruno@clisp.org>
67020
67021         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
67022         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
67023
67024 2003-03-13  Paul Eggert  <eggert@twinsun.com>
67025
67026         Merge changes from Bison.
67027         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
67028         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
67029         when compiling Bison 1.875's `bitset bset = obstack_alloc
67030         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
67031         * lib/hash.c: Include <stdbool.h> unconditionally.
67032
67033 2003-03-13  Paul Eggert  <eggert@twinsun.com>
67034
67035         * m4/onceonly.m4 (m4_quote): New macro.
67036         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
67037         Quote AC_FOREACH variable-expansions properly.
67038
67039 2003-03-13  Paul Eggert  <eggert@twinsun.com>
67040
67041         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
67042
67043 2003-03-09  Paul Eggert  <eggert@twinsun.com>
67044
67045         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
67046         Reported by Bruce Becker; see:
67047         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
67048
67049 2003-03-03  Paul Eggert  <eggert@twinsun.com>
67050             Bruno Haible  <bruno@clisp.org>
67051
67052         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
67053         Reported by John Hughes, see
67054         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
67055
67056 2003-02-20  Bruno Haible  <bruno@clisp.org>
67057
67058         * MODULES.html.sh (func_all_modules): Add poll.
67059
67060 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67061
67062         * modules/poll: New file.
67063
67064 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67065
67066         * lib/poll_.h: New file.
67067         * lib/poll.c: New file.
67068
67069 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
67070
67071         * m4/poll.m4: New file.
67072
67073 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67074
67075         * modules/mathl: New file.
67076
67077 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67078
67079         * lib/mathl.h: New file.
67080         * lib/acosl.c: New file.
67081         * lib/asinl.c: New file.
67082         * lib/atanl.c: New file.
67083         * lib/ceill.c: New file.
67084         * lib/cosl.c: New file.
67085         * lib/expl.c: New file.
67086         * lib/floorl.c: New file.
67087         * lib/frexpl.c: New file.
67088         * lib/ldexpl.c: New file.
67089         * lib/logl.c: New file.
67090         * lib/sincosl.c: New file.
67091         * lib/sinl.c: New file.
67092         * lib/sqrtl.c: New file.
67093         * lib/tanl.c: New file.
67094         * lib/trigl.c: New file.
67095         * lib/trigl.h: New file.
67096
67097 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
67098
67099         * m4/mathl.m4: New file.
67100
67101 2003-02-18  Bruno Haible  <bruno@clisp.org>
67102
67103         * MODULES.html.sh (func_all_modules): Add mathl.
67104
67105 2003-02-17  Bruno Haible  <bruno@clisp.org>
67106
67107         * modules/mkdtemp: New module.
67108         * MODULES.html.sh (func_all_modules): Add it.
67109
67110 2003-02-17  Bruno Haible  <bruno@clisp.org>
67111
67112         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
67113
67114 2003-02-17  Bruno Haible  <bruno@clisp.org>
67115
67116         * lib/mkdtemp.h: New file, from GNU gettext.
67117         * lib/mkdtemp.c: New file, from GNU gettext.
67118
67119 2003-02-02  Jim Meyering  <jim@meyering.net>
67120
67121         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
67122         e.g. glibc-2.2.93.
67123
67124 2003-01-31  Bruno Haible  <bruno@clisp.org>
67125
67126         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
67127         'rpl_rename'.
67128         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
67129         'rpl_strnlen'.
67130         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
67131         'rpl_strtod'.
67132         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
67133         'rpl_utime'.
67134
67135 2003-01-31  Bruno Haible  <bruno@clisp.org>
67136
67137         * lib/rename.c: #undef rename before defining rpl_rename.
67138         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
67139
67140 2003-01-30  Bruno Haible  <bruno@clisp.org>
67141
67142         * modules/vasnprintf, modules/vasprintf: New modules.
67143         * MODULES.html.sh (func_all_modules): Add them.
67144
67145 2003-01-30  Bruno Haible  <bruno@clisp.org>
67146
67147         * m4/signed.m4: New file, from GNU gettext.
67148         * m4/longdouble.m4: New file, from GNU gettext.
67149         * m4/wchar_t.m4: New file, from GNU gettext.
67150         * m4/wint_t.m4: New file, from GNU gettext.
67151         * m4/vasnprintf.m4: New file.
67152         * m4/vasprintf.m4: New file.
67153
67154 2003-01-30  Bruno Haible  <bruno@clisp.org>
67155
67156         * lib/printf-args.h: New file, from GNU gettext.
67157         * lib/printf-args.c: New file, from GNU gettext.
67158         * lib/printf-parse.h: New file, from GNU gettext.
67159         * lib/printf-parse.c: New file, from GNU gettext.
67160         * lib/vasnprintf.h: New file, from GNU gettext.
67161         * lib/vasnprintf.c: New file, from GNU gettext.
67162         * lib/asnprintf.c: New file, from GNU gettext.
67163         * lib/vasprintf.h: New file, from GNU gettext with modifications.
67164         * lib/vasprintf.c: New file, from GNU gettext.
67165         * lib/asprintf.c: New file, from GNU gettext.
67166
67167 2003-01-29  Bruno Haible  <bruno@clisp.org>
67168
67169         * modules/stpncpy: New module.
67170         * MODULES.html.sh (func_all_modules): Add it.
67171
67172 2003-01-29  Bruno Haible  <bruno@clisp.org>
67173
67174         * m4/stpncpy.m4: New file.
67175
67176 2003-01-29  Bruno Haible  <bruno@clisp.org>
67177
67178         * lib/stpncpy.h: New file, from GNU gettext with modifications.
67179         * lib/stpncpy.c: New file, from GNU gettext with modifications.
67180
67181 2003-01-28  Bruno Haible  <bruno@clisp.org>
67182
67183         * modules/c-ctype: New module.
67184         * MODULES.html.sh (func_all_modules): Add it.
67185
67186 2003-01-28  Bruno Haible  <bruno@clisp.org>
67187
67188         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
67189         Paul Eggert.
67190         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
67191         Paul Eggert.
67192
67193 2003-01-27  Bruno Haible  <bruno@clisp.org>
67194
67195         * modules/xsetenv: New module.
67196         * MODULES.html.sh (func_all_modules): Add it.
67197
67198 2003-01-27  Bruno Haible  <bruno@clisp.org>
67199
67200         * lib/xsetenv.h: New file, from GNU gettext.
67201         * lib/xsetenv.c: New file, from GNU gettext.
67202
67203 2003-01-23  Jim Meyering  <jim@meyering.net>
67204
67205         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
67206         from working on systems without dirfd (at least Irix and OSF1/Tru64).
67207
67208 2003-01-23  Bruno Haible  <bruno@clisp.org>
67209
67210         * modules/minmax: New module.
67211         * MODULES.html.sh (func_all_modules): Add it.
67212
67213 2003-01-23  Bruno Haible  <bruno@clisp.org>
67214
67215         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
67216         Eggert.
67217
67218 2003-01-22  Bruno Haible  <bruno@clisp.org>
67219
67220         * modules/exit: New module.
67221         * MODULES.html.sh (func_all_modules): Add it.
67222
67223 2003-01-22  Bruno Haible  <bruno@clisp.org>
67224
67225         * lib/exit.h: New file, from GNU gettext.
67226
67227 2003-01-19  Bruno Haible  <bruno@clisp.org>
67228
67229         * gnulib-tool: Recognize option --extract-maintainer.
67230         (func_get_maintainer): New function.
67231         * modules/*: Add Maintainer entry.
67232
67233 2003-01-16  Jim Meyering  <jim@meyering.net>
67234
67235         * m4/regex.m4: The `regex' struct is both input and output.
67236         Initialize it before each use.  Patch by Tim Waugh.
67237
67238 2003-01-16  Bruno Haible  <bruno@clisp.org>
67239
67240         * MODULES.html.sh: Add a table of contents. Add the module name as
67241         leftmost column. Add hyperlinks.
67242
67243 2003-01-15  Bruno Haible  <bruno@clisp.org>
67244
67245         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
67246
67247 2003-01-15  Bruno Haible  <bruno@clisp.org>
67248
67249         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
67250         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
67251         suffix.
67252
67253 2003-01-15  Bruno Haible  <bruno@clisp.org>
67254
67255         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
67256
67257 2003-01-15  Bruno Haible  <bruno@clisp.org>
67258
67259         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
67260         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
67261
67262 2003-01-14  Jim Meyering  <jim@meyering.net>
67263
67264         * lib/same.c (same_name): Tweak a comment.
67265
67266 2003-01-14  Bruno Haible  <bruno@clisp.org>
67267
67268         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
67269         when a string comparison is sufficient.
67270
67271 2003-01-14  Bruno Haible  <bruno@clisp.org>
67272
67273         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
67274         'unsigned int'.
67275
67276 2003-01-14  Bruno Haible  <bruno@clisp.org>
67277
67278         * lib/hash-pjw.c: Add comment about low quality of this function.
67279
67280 2003-01-13  Bruno Haible  <bruno@clisp.org>
67281
67282         * modules/stpcpy: Distribute lib/stpcpy.h.
67283         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
67284
67285 2003-01-13  Bruno Haible  <bruno@clisp.org>
67286
67287         * modules/*: Add a description.
67288         * modules/strpbrk: Fix Makefile.am snippet.
67289         * modules/strtoimax: Fix dependencies.
67290         * modules/strtoumax: Likewise.
67291
67292 2003-01-13  Bruno Haible  <bruno@clisp.org>
67293
67294         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
67295         * modules/alloca (Makefile.am): All object files depend on alloca.h.
67296         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
67297
67298 2003-01-13  Bruno Haible  <bruno@clisp.org>
67299
67300         * gnulib-tool (func_create_testdir): Store config/* files in the main
67301         directory.
67302         * config.rpath: Move to ...
67303         * config/config.rpath: ... here.
67304         * modules/gettext: Contains config/config.rpath, not config.rpath.
67305         * modules/iconv: Likewise.
67306
67307 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67308
67309         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67310         to avoid collisions with libcurses and libreadline.
67311
67312         * m4/getstr.m4: Remove.
67313         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
67314
67315 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67316
67317         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67318         to avoid collisions with libcurses and libreadline.
67319
67320         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
67321         * lib/getstr.h, getstr.c: Remove.
67322         * lib/getline.c: Include "getline.h", to check interface.
67323         Move body of old getstr.c here: this defines MIN_CHUNK and
67324         declares getdelim2, which is renamed from getstr.
67325         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
67326
67327         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
67328         All uses changed.
67329         * lib/linebuffer.h: Likewise.
67330         (readline): Remove backward-compatibility macro.
67331
67332 2003-01-12  Paul Eggert  <eggert@twinsun.com>
67333
67334         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
67335         to avoid collisions with libcurses and libreadline.
67336         * getstr: Remove.
67337         * MODULES.html.sh: Remove getstr.
67338         * modules/getline: Depend on unlocked-io, not getstr.
67339
67340 2003-01-12  Jim Meyering  <jim@meyering.net>
67341
67342         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
67343
67344 2003-01-10  Bruno Haible  <bruno@clisp.org>
67345
67346         * modules/alloca: Change Makefile.am requirements. Simplify Include
67347         requirements. Add lib/alloca_.h to file list.
67348
67349 2003-01-10  Bruno Haible  <bruno@clisp.org>
67350
67351         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
67352
67353 2003-01-10  Bruno Haible  <bruno@clisp.org>
67354
67355         * lib/alloca_.h: New file.
67356         * lib/getdate.y: Unconditionally include alloca.h.
67357         * lib/makepath.c: Likewise.
67358         * lib/setenv.c: Likewise.
67359         * lib/userspec.c: Likewise.
67360
67361 2003-01-09  Karl Berry  <karl@gnu.org>
67362
67363         * MODULES.html.sh: include `dirname $0` in PATH, to find
67364         gnulib-tool.
67365
67366 2003-01-09  Bruno Haible  <bruno@clisp.org>
67367
67368         * modules/stdbool: Change configure.ac, Makefile.am requirements.
67369         Simplify Include requirements. Add lib/stdbool.h.in to file list.
67370
67371 2003-01-09  Bruno Haible  <bruno@clisp.org>
67372
67373         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
67374
67375 2003-01-09  Bruno Haible  <bruno@clisp.org>
67376
67377         * lib/stdbool.h.in: New file.
67378
67379 2003-01-09  Bruno Haible  <bruno@clisp.org>
67380
67381         * gnulib-tool (func_all_modules): Ignore files ending in ~.
67382         * MODULES.html.sh: Likewise.
67383
67384 2003-01-08  Jim Meyering  <jim@meyering.net>
67385
67386         * lib/full-write.c: Undefine and define-away `const' after inclusion
67387         of errno.h, not before.  Suggestion from Bruno Haible.
67388
67389 2003-01-08  Bruno Haible  <bruno@clisp.org>
67390
67391         * modules/full-read: Depend on full-write.
67392
67393 2003-01-08  Bruno Haible  <bruno@clisp.org>
67394
67395         * lib/safe-read.c: Include specification header first, to ensure its
67396         selfcontainedness.
67397         * lib/full-write.c: Likewise.
67398
67399 2003-01-07  Jim Meyering  <jim@meyering.net>
67400
67401         * lib/full-write.c: Rework so that it may serve to define full_read,
67402         too.
67403         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
67404
67405 2003-01-07  Bruno Haible  <bruno@clisp.org>
67406
67407         * lib/strtoimax.c: Include <stdint.h> as an alternative to
67408         <inttypes.h>.
67409         * lib/xstrtol.h: Likewise.
67410         * lib/xstrtoimax.c: Likewise.
67411         * lib/xstrtoumax.c: Likewise.
67412         * lib/human.h: Likewise.
67413
67414         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
67415         on systems that have <inttypes.h> but not <stdint.h>.
67416
67417 2003-01-07  Bruno Haible  <bruno@clisp.org>
67418
67419         * MODULES.html.sh: Add copyright notice.
67420         (missed_files): Omit CVS directory entries.
67421         (func_module): Make it work with sed-3.02.
67422         * MODULES.txt: Remove file.
67423
67424 2003-01-06  Jim Meyering  <jim@meyering.net>
67425
67426         * lib/version-etc.c: Update year in translatable copyright string.
67427
67428 2003-01-03  Karl Berry  <karl@gnu.org>
67429
67430         * config/config.{guess,sub}: update from prep.
67431
67432 2003-01-02  Karl Berry  <karl@gnu.org>
67433
67434         * doc/COPYING.DOC: belatedly updated to 1.2.
67435
67436 2003-01-01  Karl Berry  <karl@gnu.org>
67437
67438         * gnulib-tool (func_verify_module): report module name $module in
67439         error message, not $1.
67440         * gnulib-tool (create-testdir): don't complain if destdir couldn't
67441         be created, only if it doesn't exist.
67442         * gnulib-tool (last_checkin_date): don't expand the $Date here.
67443
67444 2002-12-31  Paul Eggert  <eggert@twinsun.com>
67445
67446         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
67447
67448 2002-12-31  Paul Eggert  <eggert@twinsun.com>
67449
67450         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
67451         memcmp if strcoll doesn't work.
67452
67453 2002-12-31  Bruno Haible  <bruno@clisp.org>
67454
67455         * lib/utime.c (utime_null): No need to call ftruncate if the file was
67456         nonempty.
67457
67458 2002-12-31  Bruno Haible  <bruno@clisp.org>
67459
67460         * lib/memcoll.c (STRCOLL): New macro.
67461         (memcoll): Use it.
67462
67463 2002-12-31  Bruno Haible  <bruno@clisp.org>
67464
67465         * lib/localcharset.h: New file.
67466         * lib/localcharset.c: Include it.
67467         * lib/unicodeio.c: Likewise.
67468
67469 2002-12-31  Bruno Haible  <bruno@clisp.org>
67470
67471         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
67472         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
67473
67474 2002-12-31  Bruno Haible  <bruno@clisp.org>
67475
67476         * lib/getline.h: Include <stddef.h>, for size_t.
67477
67478         * lib/unicodeio.h: Include <stddef.h>, for size_t.
67479         * lib/unicodeio.c: Don't include <stddef.h>.
67480
67481 2002-12-31  Bruno Haible  <bruno@clisp.org>
67482
67483         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
67484         HAVE_TM_ZONE.
67485
67486 2002-12-24  Karl Berry  <karl@gnu.org>
67487
67488         * config/config.guess: update from prep.
67489
67490 2002-12-24  Bruno Haible  <bruno@clisp.org>
67491
67492         General infrasructure.
67493         * m4/README: Rewritten.
67494         * m4/onceonly.m4: New file.
67495         * m4/onceonly_2_57.m4: New file.
67496
67497         Module atexit.
67498         * m4/atexit.m4: New file.
67499
67500         Module strtod.
67501         * m4/strtod.m4: New file.
67502
67503         Module strtol.
67504         * m4/strtol.m4: New file.
67505
67506         Module strtoul.
67507         * m4/strtoul.m4: New file.
67508
67509         Module memchr.
67510         * m4/memchr.m4: New file.
67511
67512         Module memcmp.
67513         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
67514         (jm_FUNC_MEMCMP): Invoke it.
67515
67516         Module memcpy.
67517         * m4/memcpy.m4: New file.
67518
67519         Module memmove.
67520         * m4/memmove.m4: New file.
67521
67522         Module memset.
67523         * m4/memset.m4: New file.
67524
67525         Module strcspn.
67526         * m4/strcspn.m4: New file.
67527
67528         Module strpbrk.
67529         * m4/strpbrk.m4: New file.
67530
67531         Module strstr.
67532         * m4/strstr.m4: New file.
67533
67534         Module strerror.
67535         * m4/strerror.m4: New file.
67536
67537         Module mktime.
67538         * m4/mktime.m4: Renamed from jm-mktime.m4.
67539         (gl_PREREQ_MKTIME): New macro.
67540         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
67541
67542         Module malloc.
67543         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
67544         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
67545         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
67546
67547         Module realloc.
67548         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
67549         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
67550         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
67551
67552         Module strftime.
67553         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
67554         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
67555         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
67556         gl_TM_GMTOFF.
67557         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
67558
67559         Module xalloc.
67560         * m4/xalloc.m4: New file.
67561
67562         Module alloca.
67563         * m4/alloca.m4: New file.
67564
67565         Module putenv.
67566         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
67567         (jm_FUNC_PUTENV): Invoke it.
67568
67569         Module setenv.
67570         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
67571         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
67572         when invoked twice.
67573         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
67574         gt_FUNC_SETENV.
67575
67576         Module memrchr.
67577         * m4/memrchr.m4: New file.
67578
67579         Module stpcpy.
67580         * m4/stpcpy.m4: New file.
67581
67582         Module strcase.
67583         * m4/strcase.m4: New file.
67584
67585         Module strdup.
67586         * m4/strdup.m4: New file.
67587
67588         Module strnlen.
67589         * m4/strnlen.m4: New file.
67590
67591         Module strndup.
67592         * m4/strndup.m4: New file.
67593
67594         Module xstrtod.
67595         * m4/xstrtod.m4: New file.
67596
67597         Module xstrtol.
67598         * m4/xstrtol.m4: New file.
67599
67600         Module getdate.
67601         * m4/getdate.m4: New file.
67602
67603         Module unlocked-io.
67604         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
67605         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
67606         * m4/jm-glibc-io.m4n: Remove file.
67607
67608         Module long-options.
67609         * m4/long-options.m4: New file.
67610
67611         Module md5.
67612         * m4/md5.m4: New file.
67613
67614         Module sha.
67615         * m4/sha.m4: New file.
67616
67617         Module getstr.
67618         * m4/getstr.m4: New file.
67619
67620         Module getline.
67621         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
67622         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
67623         <sys/types.h>, for size_t. Use the function name gnu_getline, not
67624         simply getline. Infoke gl_PREREQ_GETLINE.
67625
67626         Module obstack.
67627         * m4/obstack.m4: New file.
67628
67629         Module hash.
67630         * m4/hash.m4: New file.
67631
67632         Module readtokens.
67633         * m4/readtokens.m4: New file.
67634
67635         Module strverscmp.
67636         * m4/strverscmp.m4: New file.
67637
67638         Module stdbool.
67639         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
67640         OSF/1.
67641
67642         Module strtoll.
67643         * m4/strtoll.m4: New file.
67644
67645         Module strtoull.
67646         * m4/strtoull.m4: New file.
67647
67648         Module strtoimax.
67649         * m4/strtoimax.m4: New file.
67650
67651         Module strtoumax.
67652         * m4/strtoumax.m4: New file.
67653
67654         Module xstrtoimax.
67655         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
67656         jm_AC_PREREQ_XSTRTOIMAX.
67657         Moved the strtol prerequisites to strtol.m4.
67658         Moved the strtoll prerequisites to strtoll.m4.
67659         Moved the strtoimax prerequisites to strtoimax.m4.
67660
67661         Module xstrtoumax.
67662         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
67663         jm_AC_PREREQ_XSTRTOUMAX.
67664         Moved the strtoul prerequisites to strtoul.m4.
67665         Moved the strtoull prerequisites to strtoull.m4.
67666         Moved the strtoumax prerequisites to strtoumax.m4.
67667
67668         Module chown.
67669         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
67670         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
67671
67672         Module dup2.
67673         * m4/dup2.m4: New file.
67674
67675         Module ftruncate.
67676         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
67677         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
67678
67679         Module getgroups.
67680         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
67681         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
67682
67683         Module gettimeofday.
67684         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
67685         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
67686         gl_PREREQ_GETTIMEOFDAY.
67687
67688         Module mkdir.
67689         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
67690         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
67691
67692         Module mkstemp.
67693         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
67694         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
67695         jm_AC_TYPE_UINTMAX_T.
67696         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
67697
67698         Module stat.
67699         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
67700         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
67701
67702         Module lstat.
67703         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
67704         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
67705
67706         Module timespec.
67707         * m4/timespec.m4 (gl_TIMESPEC): New macro.
67708         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
67709         * m4/st_mtim.m4: Indentation.
67710
67711         Module nanosleep.
67712         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
67713         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
67714         gl_PREREQ_NANOSLEEP.
67715
67716         Module regex.
67717         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
67718         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
67719         (gl_REGEX): New macro.
67720
67721         Module rename.
67722         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
67723         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
67724
67725         Module rmdir.
67726         * m4/rmdir.m4: New file.
67727
67728         Module utime.
67729         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
67730         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
67731         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
67732
67733         Module dirname.
67734         * m4/dirname.m4: New file.
67735
67736         Module getopt.
67737         * m4/getopt.m4: New file.
67738
67739         Module unistd-safer.
67740         * m4/unistd-safer.m4: New file.
67741
67742         Module fnmatch.
67743         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
67744         declaration.
67745         (gl_PREREQ_FNMATCH_EXTRA): New macro.
67746         (gl_FUNC_FNMATCH_POSIX): New macro.
67747         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
67748         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
67749         simply fnmatch.
67750
67751         Module exclude.
67752         * m4/exclude.m4: New file.
67753
67754         Module human.
67755         * m4/human.m4: New file.
67756
67757         Module acl.
67758         * m4/acl.m4: Nop.
67759
67760         Module backupfile.
67761         * m4/backupfile.m4: New file.
67762         * m4/d-ino.m4: Indentation.
67763
67764         Module fsusage.
67765         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
67766         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
67767         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
67768
67769         Module dirfd.
67770         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
67771         requirements.
67772
67773         Module euidaccess.
67774         * m4/euidaccess.m4: New file.
67775
67776         Module file-type.
67777         * m4/file-type.m4: New file.
67778
67779         Module fileblocks.
67780         * m4/fileblocks.m4: New file.
67781
67782         Module filemode.
67783         * m4/filemode.m4: New file.
67784
67785         Module isdir.
67786         * m4/isdir.m4: New file.
67787
67788         Module lchown.
67789         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
67790         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
67791
67792         Module makepath.
67793         * m4/makepath.m4: New file.
67794
67795         Module modechange.
67796         * m4/modechange.m4: New file.
67797
67798         Module mountlist.
67799         * m4/mountlist.m4: New file.
67800         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
67801         Indentation.
67802
67803         Module path-concat.
67804         * m4/path-concat.m4: New file.
67805
67806         Module pathmax.
67807         * m4/pathmax.m4: New file.
67808
67809         Module same.
67810         * m4/same.m4: New file.
67811
67812         Module save-cwd.
67813         * m4/save-cwd.m4: New file.
67814
67815         Module savedir.
67816         * m4/savedir.m4: New file.
67817
67818         Module xgetcwd.
67819         * m4/xgetcwd.m4: New file.
67820         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
67821
67822         Module xreadlink.
67823         * m4/xreadlink.m4: New file.
67824
67825         Module safe-read.
67826         * m4/safe-read.m4: New file.
67827
67828         Module safe-write.
67829         * m4/safe-write.m4: New file.
67830
67831         Module closeout.
67832         * m4/closeout.m4: New file.
67833
67834         Module stdio-safer.
67835         * m4/stdio-safer.m4: New file.
67836
67837         Module getpass.
67838         * m4/getpass.m4: New file.
67839
67840         Module getugroups.
67841         * m4/getugroups.m4: New file.
67842
67843         Module group-member.
67844         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
67845         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
67846
67847         Module idcache.
67848         * m4/idcache.m4: New file.
67849
67850         Module userspec.
67851         * m4/userspec.m4: New file.
67852
67853         Module gettime.
67854         * m4/clock_time.m4: New file.
67855         * m4/gettime.m4: New file.
67856
67857         Module settime.
67858         * m4/settime.m4: New file.
67859
67860         Module posixtm.
67861         * m4/posixtm.m4: New file.
67862
67863         Module gethostname.
67864         * m4/gethostname.m4: New file.
67865
67866         Module canon-host.
67867         * m4/canon-host.m4: New file.
67868
67869         Module gettext.
67870         * m4/codeset.m4: New file, from gettext-0.11.5.
67871         * m4/gettext.m4: New file, from gettext-0.11.5.
67872         * m4/glibc21.m4: New file, from gettext-0.11.5.
67873         * m4/iconv.m4: New file, from gettext-0.11.5.
67874         * m4/intdiv0.m4: New file, from gettext-0.11.5.
67875         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
67876         * m4/inttypes.m4: New file, from gettext-0.11.5.
67877         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
67878         * m4/isc-posix.m4: New file, from gettext-0.11.5.
67879         * m4/lcmessage.m4: New file, from gettext-0.11.5.
67880         * m4/lib-ld.m4: New file, from gettext-0.11.5.
67881         * m4/lib-link.m4: New file, from gettext-0.11.5.
67882         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
67883         * m4/progtest.m4: New file, from gettext-0.11.5.
67884         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
67885         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
67886         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
67887
67888         Module localcharset.
67889         * m4/localcharset.m4: New file.
67890
67891         Module hard-locale.
67892         * m4/hard-locale.m4: New file.
67893
67894         Module mbswidth.
67895         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
67896         onceonly macros.
67897         * m4/mbrtowc.m4: Add comment.
67898
67899         Module memcasecmp.
67900         * m4/memcasecmp.m4: New file.
67901
67902         Module memcoll.
67903         * m4/memcoll.m4: New file.
67904
67905         Module unicodeio.
67906         * m4/unicodeio.m4: New file.
67907
67908         Module rpmatch.
67909         * m4/rpmatch.m4: New file.
67910
67911         Module yesno.
67912         * m4/yesno.m4: New file.
67913
67914         Module exitfail.
67915         * m4/exitfail.m4: New file.
67916
67917         Module c-stack.
67918         * m4/c-stack.m4 (gl_C_STACK): New macro.
67919         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
67920
67921         Module error.
67922         * m4/error.m4 (gl_ERROR): New macro.
67923         (jm_PREREQ_ERROR): Use onceonly macros.
67924
67925         Module fatal.
67926         * m4/fatal.m4: New file.
67927
67928         Module getloadavg.
67929         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
67930         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
67931
67932         Module getpagesize.
67933         * m4/getpagesize.m4: New file.
67934
67935         Module getusershell.
67936         * m4/getusershell.m4: New file.
67937
67938         Module physmem.
67939         * m4/physmem.m4: New file.
67940
67941         Module posixver.
67942         * m4/posixver.m4: New file.
67943
67944         Module quotearg.
67945         * m4/quotearg.m4: New file.
67946
67947         Module quote.
67948         * m4/quote.m4: New file.
67949
67950         Module readutmp.
67951         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
67952
67953         Module sig2str.
67954         * m4/sig2str.m4: New file.
67955
67956         Other.
67957         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
67958         ulonglong.m4.
67959         * m4/intmax_t.m4: New file.
67960         * m4/d-type.m4: Indentation.
67961         * m4/jm-macros.m4: Update.
67962         * m4/prereq.m4 (jm_PREREQ): Update.
67963         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
67964         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
67965         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
67966         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
67967         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
67968         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
67969         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
67970         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
67971         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
67972         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
67973         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
67974         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
67975         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
67976         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
67977         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
67978         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
67979         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
67980         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
67981         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
67982
67983 2002-12-24  Bruno Haible  <bruno@clisp.org>
67984
67985         * MODULES.txt: Update according to m4/ changes.
67986
67987         Module gettext.
67988         * config.rpath: New file, from gettext-0.11.5.
67989
67990         * modules/*: New module descriptions.
67991         * gnulib-tool: New file.
67992         * MODULES.html.sh: New file.
67993
67994 2002-12-21  Karl Berry  <karl@gnu.org>
67995
67996         * doc/fdl.texi: update to version 1.2.
67997
67998 2002-12-19  Karl Berry  <karl@gnu.org>
67999
68000         * config/config.guess: update from prep.
68001
68002 2002-12-18  Bruno Haible  <bruno@clisp.org>
68003
68004         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
68005         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
68006
68007 2002-12-17  Bruno Haible  <bruno@clisp.org>
68008
68009         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
68010         stdlib.h, string.h.
68011
68012 2002-12-17  Bruno Haible  <bruno@clisp.org>
68013
68014         * lib/canon-host.c (strdup): Remove unused declaration.
68015
68016         * lib/fsusage.c: Include full_read.h.
68017         (get_fs_usage): Use full_read instead of safe_read.
68018
68019         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
68020
68021 2002-12-12  Karl Berry  <karl@gnu.org>
68022
68023         * config/config.guess: update from prep.
68024
68025 2002-12-11  Bruno Haible  <bruno@clisp.org>
68026
68027         * m4/setenv.m4: New file, from gettext-0.11.5.
68028
68029 2002-12-11  Bruno Haible  <bruno@clisp.org>
68030
68031         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
68032         not unsetenv().
68033         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
68034         modifications:
68035
68036         2002-12-11  Bruno Haible  <bruno@clisp.org>
68037
68038                 * setenv.c (alloca): Fall back to malloc.
68039                 (freea): New macro.
68040                 (setenv): Use freea() to free memory allocated with alloca().
68041
68042         2002-11-13  Bruno Haible  <bruno@clisp.org>
68043
68044                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
68045                 function declarations.
68046                 * unsetenv.c (unsetenv): Likewise.
68047
68048         2002-03-04  Bruno Haible  <bruno@clisp.org>
68049
68050                 Portability to AIX 4.3.3.
68051                 * unsetenv.c: New file, extracted from setenv.c.
68052                 * setenv.c: Move the unsetenv() function to unsetenv.c.
68053
68054         2001-12-20  Bruno Haible  <bruno@clisp.org>
68055
68056                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
68057                 use malloc instead. For SunOS 4.
68058
68059         2001-12-11  Bruno Haible  <bruno@clisp.org>
68060
68061                 * setenv.c: Declare alloca.
68062                 (compar_fn_t): New typedef.
68063                 (KNOWN_VALUE, STORE_VALUE): Use it.
68064
68065         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
68066         setenv.h.
68067
68068 2002-12-10  Paul Eggert  <eggert@twinsun.com>
68069
68070         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
68071         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
68072         Choose values that are less likely to collide with system fnmatch
68073         options.
68074         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
68075         defined (e.g., a pure POSIX system).
68076         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
68077         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
68078
68079 2002-12-06  Paul Eggert  <eggert@twinsun.com>
68080
68081         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
68082         a pain in practice to deal with generated m4 files.  This change
68083         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
68084
68085         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
68086         and jm-glibc-io.m4, as they are no longer a special case.
68087         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
68088         kludge and the auto-generation stuff.  Check only whether the
68089         functions are declared, not whether they exist, since older hosts
68090         that don't declare the functions can't use the optimization anyway.
68091
68092 2002-12-06  Jim Meyering  <jim@meyering.net>
68093
68094         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
68095
68096         Merge in changes from libc's misc/error.c, in preparation
68097         for the merge of gnulib's changes back into libc.
68098
68099         * lib/error.c (_): Define only if not already defined.
68100         Move definition to follow all #include directives.
68101         Include unlocked-io.h only if !_LIBC.
68102         [_LIBC]: Include <libio/libioP.h>.
68103         [USE_IN_LIBIO]: Include <libio/iolibio.h>
68104         (fflush): Tweak definition to use INTUSE.
68105         (putc): Define.
68106
68107 2002-12-05  Paul Eggert  <eggert@twinsun.com>
68108
68109         * lib/alloca.c [defined emacs]: Include "lisp.h".
68110         (xalloc_die) [defined emacs]: New macro.
68111         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
68112         [! defined emacs]: Include <xalloc.h>.
68113         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
68114         (pointer): Typedef to POINTER_TYPE *.
68115         (malloc): Remove decl; we now always use xmalloc.
68116         (alloca): Use old-style definition, since Emacs needs this.
68117         Check for arithmetic overflow when computing combined size.
68118
68119 2002-12-04  Paul Eggert  <eggert@twinsun.com>
68120
68121         Do not generate unlocked-io.h automatically, since it's easier to
68122         maintain it by hand.
68123
68124         * lib/unlocked-io.h: New file, from GNU diffutils,
68125         but with proper copyright notice and attribution.
68126         * lib/gen-uio: Remove.
68127         * lib/Makefile.am: Add copyright notice.
68128         (libfetish_a_SOURCES): Add unlocked-io.h.
68129         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
68130         (DISTCLEANFILES, io_functions): Remove macros.
68131         (EXTRA_DIST): Remove gen_uio.
68132         (unlocked-io.h): Remove rule.
68133
68134 2002-12-04  Jim Meyering  <jim@meyering.net>
68135
68136         Reflect the fact that stat.c and lstat.c are no longer generated.
68137         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
68138         (DISTCLEANFILES): Likewise.
68139         (EXTRA_DIST): Likewise.
68140         (all_local): Don't depend on stat.c or lstat.c.
68141         (stat.c, lstat.c): Remove rules.
68142         (EXTRA_DIST): Remove xstat.in.
68143
68144         * lib/xstat.in: Remove file.  Contents moved into stat.c.
68145         * lib/stat.c: New file.  Contents mostly from xstat.in.
68146         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
68147         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
68148
68149         * lib/safe-read.c: Rework so that it may serve to define safe_write,
68150         too.
68151         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
68152
68153 2002-12-03  Jim Meyering  <jim@meyering.net>
68154
68155         * lib/safe-read.c, safe-write.c: Change variable names and comments,
68156         but not semantics, to minimize the differences between these two files.
68157         (safe_read): Change comment to mention SAFE_READ_ERROR.
68158
68159         * lib/safe-read.c (IS_EINTR): Define.
68160         (safe_read): Use IS_EINTR in place of in-function cpp directives.
68161
68162 2002-12-02  Jim Meyering  <jim@meyering.net>
68163
68164         * lib/safe-read.c (EINTR): Define.
68165         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
68166         (INT_MAX): Provide fallback.
68167         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
68168
68169         * lib/safe-read.h (SAFE_READ_ERROR): Define.
68170
68171 2002-12-02  Bruno Haible  <bruno@clisp.org>
68172
68173         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
68174         Define, taken from safe-read.c.
68175         (INT_MAX): Provide fallback.
68176         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
68177         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
68178
68179         * lib/safe-read.c (EINTR): Remove definition.
68180         (safe_read): Don't use EINTR if it is absent.
68181
68182 2002-12-01  Jim Meyering  <jim@meyering.net>
68183
68184         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
68185         zero.
68186         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
68187
68188 2002-11-27  Paul Eggert  <eggert@twinsun.com>
68189
68190         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
68191         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
68192         with `if (! (value < limit)) abort ();', for readability.
68193
68194 2002-11-26  Karl Berry  <karl@gnu.org>
68195
68196         * lib/strdup.c: copy from libc again, with jim's ok.
68197         * lib/.cppi-disable: re-add strdup.c
68198
68199 2002-11-25  Karl Berry  <karl@gnu.org>
68200
68201         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
68202         instead of "strtol.c".
68203
68204 2002-11-25  Karl Berry  <karl@gnu.org>
68205
68206         * config/install-sh: update from automake for variable quoting, $0 in
68207         error msgs, etc.
68208
68209         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
68210         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
68211         entry.
68212
68213 2002-11-25  Jim Meyering  <jim@meyering.net>
68214
68215         * lib/mktime.c: Sync from libc, now that it has the latest fix.
68216
68217 2002-11-24  Karl Berry  <karl@gnu.org>
68218
68219         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
68220         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
68221
68222 2002-11-24  Jim Meyering  <jim@meyering.net>
68223
68224         Update from coreutils:
68225
68226         * lib/mktime.c: Merge in changes from libc.
68227
68228         Avoid a link-time failure on some Linux systems.
68229         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
68230         (otherwise).
68231         (__mon_yday): Declare with the STATIC attribute.
68232         (__mktime_internal): Likewise.
68233         Based on a report from Greg Schafer.
68234
68235 2002-11-23  Jim Meyering  <jim@meyering.net>
68236
68237         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
68238         Use `unsigned', not `int', as type of index.
68239
68240         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
68241
68242         * lib/fsusage.c: Remove unneeded parentheses around operands of
68243         `defined'.
68244
68245 2002-11-22  Paul Eggert  <eggert@twinsun.com>
68246
68247         * lib/quotearg.h: Allow multiple inclusion by surrounding with
68248         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
68249         so that we can be included first.
68250         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
68251         * lib/quotearg.c: Include quotearg.h immediately after config.h.
68252         No need to include stddef.h or sys/types.h any more.
68253         Surround local include files with "", not "<>".
68254         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
68255         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
68256         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
68257         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
68258         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
68259         (ISPRINT): Remove; no longer needed now that we assume C89.
68260
68261         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
68262         Preserve errno.
68263
68264         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
68265         quotearg_char): Use SIZE_MAX rather than
68266         (size_t) -1 when we are talking about "infinity".
68267
68268         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
68269
68270 2002-11-22  Paul Eggert  <eggert@twinsun.com>
68271
68272         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
68273         hint that one should use `if (! x) abort ();' rather than `assert
68274         (x);', and anyway it's one less thing to worry about configuring.
68275         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
68276         hash_rehash, hash_insert): Use abort rather than assert.
68277
68278 2002-11-22  Bruno Haible  <bruno@clisp.org>
68279
68280         * lib/safe-read.h: Assume C89. Add comments.
68281         (safe_read): Change return type to size_t.
68282         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
68283         byte counts > SSIZE_MAX correctly.
68284         * lib/safe-write.h: New file.
68285         * lib/safe-write.c: New file.
68286         * lib/full-read.h: New file.
68287         * lib/full-read.c: New file.
68288         * lib/full-write.h: Assume C89. Add comments.
68289         * lib/full-write.c: Include safe-write.h.
68290         (full_write): Rewritten to use safe_write.
68291         Suggested by Jim Meyering and Paul Eggert.
68292
68293 2002-11-21  Jim Meyering  <jim@meyering.net>
68294
68295         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
68296
68297         Merge in changes from the coreutils.
68298
68299         2002-09-25  Paul Eggert  <eggert@twinsun.com>
68300         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
68301         <stdint.h>.
68302         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
68303         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
68304         int.  Work more efficiently if X is the same width as uintmax_t.
68305         Do not compare X to -1, to avoid bogus compiler warning.
68306         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
68307         Don't assume that f_frsize and f_bsize are the same type.
68308
68309         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
68310         warning on FreeBSD.
68311
68312         * lib/makepath.c (make_path): Restore umask *before* creating the final
68313         component.
68314         (make_path): Minor reformatting.
68315
68316         * lib/xmalloc.c: Adjust to work with new autoconf macros,
68317         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
68318         HAVE_MALLOC/HAVE_REALLOC.
68319
68320         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
68321         dummy ones.  At least on GNU/Linux systems, `auto' means something
68322         else.
68323         From Michael Stone.
68324
68325 2002-11-21  Bruno Haible  <bruno@clisp.org>
68326
68327         Remove case insensitive option matching.
68328         * lib/argmatch.h (argcasematch): Remove declaration.
68329         (ARGCASEMATCH): Remove macro.
68330         (__xargmatch_internal): Remove case_sensitive argument.
68331         (XARGMATCH): Update.
68332         (XARGCASEMATCH): Remove macro.
68333         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
68334         case_sensitive argument.
68335         (argcasematch): Remove function.
68336         (__xargmatch_internal): Remove case_sensitive argument.
68337         (main): Use XARGMATCH instead of XARGCASEMATCH.
68338
68339         * lib/xmalloc.c: Change compile-time error message. Add comment about
68340         required autoconf version.
68341
68342 2002-11-20  Paul Eggert  <eggert@twinsun.com>
68343
68344         Merge argmatch cleanups from Bison.  Assume C89.
68345
68346         * lib/argmatch.c: Include config.h here, not in argmatch.h.
68347         Include stdlib.h, for EXIT_FAILURE.
68348         Always include <string.h>, since we assume C89.
68349         (EXIT_FAILURE): Remove pre-C89 bug workaround.
68350         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
68351         Include <stddef.h> instead, since it's all we need for size_t.
68352         (PARAMS): Remove.  All uses removed.
68353         (ARRAY_CARDINALITY): Do not bother to #undef.
68354         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
68355         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
68356         Remove unnecessary parentheses.
68357         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
68358         Insert necessary parentheses.
68359         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
68360         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
68361
68362 2002-11-19  Bruno Haible  <bruno@clisp.org>
68363
68364         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
68365         * lib/mbswidth.h: Include <stddef.h>, for size_t.
68366
68367         * lib/mbswidth.h (PARAMS): Remove macro.
68368         (mbswidth, mbsnwidth): Use ANSI C function declarations.
68369         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
68370
68371         * lib/gcd.h (PARAMS): Remove macro.
68372         (gcd): Use ANSI C function declarations.
68373         * lib/gcd.c (gcd): Likewise.
68374
68375 2002-11-15  Bruno Haible  <bruno@clisp.org>
68376
68377         * lib/strcspn.c: Include <stddef.h>.
68378         (strcspn): Use ANSI C function declaration. Change return type to
68379         size_t. Use NULL.
68380         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
68381         (strpbrk): Use NULL.
68382         * lib/strpbrk.h (PARAMS): Remove macro.
68383         (strpbrk): Use ANSI C function declaration.
68384         * lib/strstr.c: Don't include <sys/types.h>.
68385         * lib/strstr.h (PARAMS): Remove macro.
68386         (strstr): Use ANSI C function declarations.
68387
68388 2002-11-14  Karl Berry  <karl@gnu.org>
68389
68390         * config/mkinstalldirs: `do' on separate line, instead of
68391         `for var; do'.
68392
68393 2002-11-06  Bruno Haible  <bruno@clisp.org>
68394
68395         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
68396         * lib/gcd.c (gcd): Likewise.
68397
68398 2002-11-05  Bruno Haible  <bruno@clisp.org>
68399
68400         * lib/gcd.h: New file, from gettext-0.11.5.
68401         * lib/gcd.c: New file, from gettext-0.11.5.
68402
68403 2002-11-05  Bruno Haible  <bruno@clisp.org>
68404
68405         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68406         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68407         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68408         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
68409
68410         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
68411         <libintl.h>.
68412         * lib/makepath.c: Include gettext.h instead of <locale.h> and
68413         <libintl.h>.
68414
68415         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
68416         * lib/human.c: Include gettext.h instead of <libintl.h>.
68417         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
68418         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
68419         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
68420         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
68421         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
68422         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
68423         (textdomain): Remove definition.
68424         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
68425
68426         * lib/long-options.c: Remove include of <libintl.h> and definition of
68427         _.
68428         * lib/same.c: Remove include of <libintl.h> and definition of _.
68429
68430 2002-11-04  Owen Taylor  <otaylor@redhat.com>
68431
68432         * lib/config.charset: A few additions for Solaris.
68433
68434 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
68435
68436         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
68437         * lib/localcharset.c (locale_charset): Declare as extern "C".
68438
68439 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
68440
68441         * lib/config.charset: msdos in uk_UA uses CP1125.
68442
68443 2002-11-04  Bruno Haible  <bruno@clisp.org>
68444
68445         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
68446         * lib/strcase.h: New file, from GNU gettext-0.11.5.
68447         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
68448         * lib/strstr.h: New file, from GNU gettext-0.11.5.
68449         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
68450
68451 2002-11-04  Bruno Haible  <bruno@clisp.org>
68452
68453         * lib/localcharset.c (locale_charset): Don't return an empty string.
68454
68455 2002-11-04  Bruno Haible  <bruno@clisp.org>
68456
68457         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
68458         aliases.
68459
68460 2002-11-04  Bruno Haible  <bruno@clisp.org>
68461
68462         * lib/config.charset: Update for newest glibc. Add canonical names
68463         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
68464
68465 2002-11-04  Bruno Haible  <bruno@clisp.org>
68466
68467         * lib/config.charset: Add support for NetBSD.
68468
68469 2002-11-04  Bruno Haible  <bruno@clisp.org>
68470
68471         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
68472
68473 2002-11-01  Bruno Haible  <bruno@clisp.org>
68474
68475         * configure.in: Add AC_CONFIG_AUX_DIR call.
68476         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
68477         test/Makefile.
68478         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
68479
68480 2002-09-28  Karl Berry  <karl@gnu.org>
68481
68482         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
68483         installed automake until the next release, since changes have been
68484         made.
68485
68486 2002-09-25  Karl Berry  <karl@gnu.org>
68487
68488         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
68489         * lib/getopt*: copy from libc/posix.
68490         * lib/gettext.h: copy from gettext.
68491         * lib/.cppi-disable: add strdup.c, gettext.h.
68492
68493 2002-09-25  Karl Berry  <karl@gnu.org>
68494
68495         * config/srclist.txt: enable gettext.h check.
68496         * config/config.{guess,sub}: update from prep.
68497         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
68498                 from automake 1.6.3.
68499         See srclist*.
68500
68501 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
68502
68503         * regex.c (PATFETCH): Remove the translating fetch.
68504         (PATFETCH_RAW): Rename to PATFETCH.
68505         (set_image_of_range): New fun.
68506         (SET_RANGE_TABLE_WORK_AREA): Use it.
68507         (regex_compile): Don't translate the pattern chars so eagerly.
68508         Only do it when inserting an `exactn' bytecode or when handling
68509         a char-range.
68510         (mutually_exclusive_p): Avoid empty statement.
68511
68512 2002-07-06  Jim Meyering  <meyering@lucent.com>
68513
68514         * m4/README: Don't mention Makefile.am.in.
68515         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
68516
68517 2002-07-01  Jim Meyering  <meyering@lucent.com>
68518
68519         * lib/c-stack.c: Include sys/time.h.
68520         From Volker Borchert.
68521
68522 2002-06-26  Paul Eggert  <eggert@twinsun.com>
68523
68524         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
68525
68526 2002-06-26  Paul Eggert  <eggert@twinsun.com>
68527
68528         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
68529         New macro.  Use it uniformly instead of
68530         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
68531         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
68532         reported by Vin Shelton.
68533
68534 2002-06-22  Paul Eggert  <eggert@twinsun.com>
68535
68536         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
68537         Do not assume SA_SIGINFO behavior.
68538         Bug reported by Jim Meyering on NetBSD 1.5.2.
68539
68540 2002-06-22  Jim Meyering  <meyering@lucent.com>
68541
68542         * m4/c-stack.m4: New file, from diffutils-2.8.2.
68543         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
68544
68545         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
68546         now that configure.ac uses AC_GNU_SOURCE.
68547         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
68548         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
68549
68550         Update to latest tools.  Suggestions from Paul Eggert.
68551         * m4/stdbool.m4: New file, from diffutils-2.8.2.
68552         * m4/gnu-source.m4: Update from diffutils-2.8.2.
68553         * m4/fnmatch.m4: Likewise.
68554         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
68555         to AC_HEADER_STDBOOL
68556
68557 2002-06-22  Jim Meyering  <meyering@lucent.com>
68558
68559         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
68560         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
68561
68562 2002-06-22  Jim Meyering  <meyering@lucent.com>
68563
68564         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
68565
68566         * lib/exitfail.c, exitfail.h: Likewise.
68567         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
68568
68569         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
68570         of fnmatch.h.
68571         (EXTRA_DIST): Add fnmatch_loop.c.
68572         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
68573
68574         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
68575         * lib/fnmatch.c: Update from diffutils-2.8.2.
68576         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
68577         * lib/fnmatch.h: Remove file.
68578
68579 2002-06-21  Jim Meyering  <meyering@lucent.com>
68580
68581         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
68582         * m4/mbrtowc.m4: Likewise.
68583
68584         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
68585         * m4/mbswidth.m4: Reflect name change:
68586         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
68587         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
68588
68589         * m4/lib-link.m4: Update from gettext-0.11.2.
68590         * m4/gettext.m4: Likewise.
68591
68592         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
68593         From Alfred M. Szmidt.
68594
68595 2002-06-18  Paul Eggert  <eggert@twinsun.com>
68596
68597         * lib/file-type.h: Report an error if neither S_ISREG nor
68598         S_IFREG is defined, instead of using a test specific to glibc
68599         2.2.  This should be safe, since POSIX requires S_ISREG and
68600         Unix Version 7 had S_IFREG.  We don't need to check for
68601         <sys/types.h> since we don't use any symbols that it defines.
68602
68603 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
68604
68605         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
68606         $@-t, so that each temporary file name is unique and valid in the first
68607         8 characters, for operation under DOS.
68608
68609 2002-06-15  Paul Eggert  <eggert@twinsun.com>
68610
68611         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
68612
68613 2002-06-15  Jim Meyering  <meyering@lucent.com>
68614
68615         Work even with DJGPP 2.03, which lacks support for symlinks.
68616         From Richard Dawe.
68617         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
68618         is defined.
68619         * lib/lchown.c (S_ISLNK): Likewise.
68620
68621 2002-06-15  Jim Meyering  <meyering@lucent.com>
68622
68623         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
68624         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
68625         have been included before this file.
68626
68627 2002-06-14  Jim Meyering  <meyering@lucent.com>
68628
68629         * lib/file-type.h: Use the version from diffutils-2.8.2.
68630         * lib/file-type.c: Likewise.
68631
68632 2002-06-07  Jim Meyering  <meyering@lucent.com>
68633
68634         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
68635         They're needed at least for NetBSD 1.5.2.
68636         ($statxfs_includes): Include those same headers.
68637         ($statxfs_includes): Include sys/vfs.h if available.
68638         ($statxfs_includes): Likewise for sys/statvfs.h.
68639         Check for the following members in both structs statfs and statvfs:
68640         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
68641
68642 2002-06-01  Jim Meyering  <meyering@lucent.com>
68643
68644         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
68645         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
68646
68647 2002-05-28  Jim Meyering  <meyering@lucent.com>
68648
68649         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
68650         Reported by Volker Borchert.
68651
68652 2002-05-27  Jim Meyering  <meyering@lucent.com>
68653
68654         Fix a problem seen only on nonconforming systems whereby ls.c's
68655         use of localtime, and then of gettimeofday would cause trouble:
68656         the localtime call used to initialize rpl_gettimeofday's save
68657         mechanism would clobber ls's current local time information so
68658         that in any long listing the first file would always be listed
68659         with date 1970-01-01.  Analysis by Volker Borchert.
68660
68661         * lib/gettimeofday.c (localtime): Undefine.
68662         (rpl_localtime): New function.
68663
68664 2002-05-27  Jim Meyering  <meyering@lucent.com>
68665
68666         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
68667         localtime.
68668
68669         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
68670         use the replacement function; it wouldn't resolve at link time.
68671         Reported by Volker Borchert.
68672
68673 2002-05-22  Jim Meyering  <meyering@lucent.com>
68674
68675         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
68676         file-type.h.
68677         * lib/file-type.h: New file.
68678         * lib/file-type.c (file_type): New file/function.  Extracted from
68679         diffutils.
68680
68681 2002-04-30  Jim Meyering  <meyering@lucent.com>
68682
68683         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
68684
68685 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68686
68687         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
68688
68689 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68690
68691         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
68692         Do not check for alloca.h (no longer used) or stdbool.h (was never
68693         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
68694
68695 2002-04-29  Paul Eggert  <eggert@twinsun.com>
68696
68697         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
68698
68699 2002-04-29  Jim Meyering  <meyering@lucent.com>
68700
68701         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
68702         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
68703         Use AC_FUNC_STRNLEN here instead.
68704
68705         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
68706         With autoconf-2.53a, it's part of AC_PROG_CC.
68707
68708 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68709
68710         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
68711         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
68712
68713 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68714
68715         * lib/sig2str.h, lib/sig2str.c: New files.
68716         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
68717
68718 2002-04-28  Paul Eggert  <eggert@twinsun.com>
68719
68720         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
68721         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
68722         of 127, since 64 is the largest conceivable number for ancient
68723         nonstandard hosts.
68724         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
68725
68726 2002-04-28  Jim Meyering  <meyering@lucent.com>
68727
68728         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
68729
68730 2002-04-24  Jim Meyering  <meyering@lucent.com>
68731
68732         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
68733         (jm_PREREQ): Use it.
68734
68735         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
68736         mach/mach.h fcntl.h.
68737         Check for this function: setlocale.
68738
68739 2002-04-24  Jim Meyering  <meyering@lucent.com>
68740
68741         * lib/gettext.h: New file, from Gettext.
68742         * lib/Makefile.am (INCLUDES): Remove -I../intl.
68743         (libfetish_a_SOURCES): Add gettext.h.
68744
68745 2002-04-16  Jim Meyering  <meyering@lucent.com>
68746
68747         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
68748         ut_pid, ut_id, ut_exit.
68749
68750 2002-04-16  Jim Meyering  <meyering@lucent.com>
68751
68752         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
68753         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
68754         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
68755
68756 2002-04-12  Jim Meyering  <meyering@lucent.com>
68757
68758         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
68759         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
68760         existence of the getmntinfo function.  Needed for Darwin 5.3.
68761
68762         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
68763         This is necessary at least on Darwin 5.3.
68764
68765         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
68766         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
68767         strnlen.o in the library, and that makes some versions of ranlib
68768         object.
68769
68770 2002-04-12  Jim Meyering  <meyering@lucent.com>
68771
68772         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
68773
68774 2002-04-09  Jim Meyering  <meyering@lucent.com>
68775
68776         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
68777         to be more precise.  Rather than saying we're checking whether the
68778         function `works', say what we're testing.
68779         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
68780         Reported by Bruno Haible.
68781
68782 2002-03-10  Jim Meyering  <meyering@lucent.com>
68783
68784         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
68785         Suggestion from Santiago Vila.
68786
68787 2002-03-08  Jim Meyering  <meyering@lucent.com>
68788
68789         * lib/rename.c: Mention that this wrapper is needed also on
68790         mips-dec-ultrix4.4 systems.
68791
68792 2002-03-02  Jim Meyering  <meyering@lucent.com>
68793
68794         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
68795         not HAVE_CLOCK_SETTIME.
68796
68797 2002-02-27  Paul Eggert  <eggert@twinsun.com>
68798
68799         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
68800         Check for clock_settime.
68801
68802 2002-02-27  Paul Eggert  <eggert@twinsun.com>
68803
68804         * lib/nanosleep.h: Rename to....
68805         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
68806
68807         * lib/gettime.c: New file.
68808         * lib/settime.c: New file.
68809         * lib/stime.c: Remove.
68810
68811         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
68812         timespec.h.  Remove nanosleep.h.
68813
68814 2002-02-25  Paul Eggert  <eggert@twinsun.com>
68815
68816         * m4/acl.m4: New file.
68817         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
68818         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
68819
68820 2002-02-25  Paul Eggert  <eggert@twinsun.com>
68821
68822         * lib/acl.c, lib/acl.h: New files.
68823         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
68824
68825 2002-02-24  Jim Meyering  <meyering@lucent.com>
68826
68827         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
68828         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
68829         cause trouble.  Reported by Nelson Beebe.
68830
68831 2002-02-23  Paul Eggert  <eggert@twinsun.com>
68832
68833         * lib/path-concat.c (xpath_concat): Reorder code to pacify
68834         compilers that don't know that xalloc_die never returns.
68835
68836 2002-02-20  Jim Meyering  <meyering@lucent.com>
68837
68838         * lib/getdate.c: Regenerate using bison-1.33.
68839
68840 2002-02-17  Jim Meyering  <meyering@lucent.com>
68841
68842         * config/config.guess (main): Don't use `head -1'; it's no longer
68843         portable. Use `sed 1q' instead.
68844
68845 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
68846
68847         * m4/codeset.m4: Upgrade to gettext-0.11.
68848         * m4/gettext.m4: Upgrade to gettext-0.11.
68849         * m4/glibc21.m4: Upgrade to gettext-0.11.
68850         * m4/iconv.m4: Upgrade to gettext-0.11.
68851         * m4/isc-posix.m4: Upgrade to gettext-0.11.
68852         * m4/lcmessage.m4: Upgrade to gettext-0.11.
68853         * m4/lib-ld.m4: New file, from gettext-0.11.
68854         * m4/lib-link.m4: New file, from gettext-0.11.
68855         * m4/lib-prefix.m4: New file, from gettext-0.11.
68856         * m4/progtest.m4: Upgrade to gettext-0.11.
68857
68858 2002-02-15  Paul Eggert  <eggert@twinsun.com>
68859
68860         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
68861         (jm_PREREQ): Use it.
68862
68863 2002-02-15  Paul Eggert  <eggert@twinsun.com>
68864
68865         * lib/posixver.c, lib/posixver.h: New files.
68866         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
68867
68868 2002-02-02  Paul Eggert  <eggert@twinsun.com>
68869             Bruno Haible  <bruno@clisp.org>
68870
68871         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
68872         (fwrite_success_callback): New declaration.
68873         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
68874         print_unicode_char. Call failure callback instead of error.
68875         (fwrite_success_callback): New function.
68876         (exit_failure_callback): New function.
68877         (fallback_failure_callback): New function.
68878         (print_unicode_char): Call unicode_to_mb.
68879
68880 2002-01-26  Jim Meyering  <meyering@lucent.com>
68881
68882         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
68883         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
68884
68885 2002-01-26  Jim Meyering  <meyering@lucent.com>
68886
68887         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
68888
68889 2002-01-22  Paul Eggert  <eggert@twinsun.com>
68890
68891         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
68892
68893 2002-01-22  Jim Meyering  <meyering@lucent.com>
68894
68895         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
68896         Otherwise, some versions of automake would omit the rule that makes
68897         Makefile from Makefile.in.
68898
68899 2002-01-21  Paul Eggert  <eggert@twinsun.com>
68900
68901         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
68902         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
68903         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
68904         (memcoll): Set errno to zero if there is no error.
68905
68906         * lib/quotearg.c (quotearg_buffer_restyled):
68907         Fix bug with quoting buffers containing NUL when backslashing escapes.
68908         This bug was exposed by the other changes in this patch.
68909         (quotearg_n_options): New arg ARGSIZE.
68910         All callers changed.
68911         (quoting_options_from_style): New function.
68912         (quotearg_n_style): Use it.
68913         (quotearg_n_style_mem): New function.
68914
68915         * lib/quotearg.h (quotearg_n_style_mem): New function.
68916
68917 2002-01-19  Jim Meyering  <meyering@lucent.com>
68918
68919         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
68920         Remove useless quotes: DF_PROG="df".
68921         * m4/strnlen.m4: New file.
68922
68923 2002-01-16  Paul Eggert  <eggert@twinsun.com>
68924
68925         * lib/backupfile.c (ISDIGIT): Comment fix.
68926         * lib/getdate.y (ISDIGIT): Likewise.
68927         * lib/posixtm.c (ISDIGIT, year): Likewise.
68928         * lib/strverscmp.c (ISDIGIT): Likewise.
68929         * lib/userspec.c (ISDIGIT): Likewise.
68930
68931 2002-01-16  Jim Meyering  <meyering@lucent.com>
68932
68933         * lib/getdate.y: Add three semicolons, each just before a closing
68934         brace. Bison (as of version 1.31) no longer papers over that mistake.
68935
68936 2002-01-05  Jim Meyering  <meyering@lucent.com>
68937
68938         * lib/version-etc.c (version_etc_copyright): Update copyright year.
68939
68940 2001-12-19  Paul Eggert  <eggert@twinsun.com>
68941
68942         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
68943         not silently exit merely because the output buffer happens to
68944         have nothing pending.
68945
68946 2001-12-18  Paul Eggert  <eggert@twinsun.com>
68947
68948         See the big note in ../ChangeLog.
68949         * lib/human.c (suffixes): Prefer K to k for 1024.
68950         (generate_suffix_backwards): New function.
68951         (human_readable_inexact): Use it.
68952         * lib/xstrtol.c (__xstrtol): If there is no number but there
68953         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
68954         Accept 'K' as well as 'k'.
68955
68956 2001-12-15  Jim Meyering  <meyering@lucent.com>
68957
68958         * lib/regex.h (__restrict_arr): Update from libc.
68959
68960         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
68961         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
68962         (STREQ): Define.
68963
68964 2001-12-14  Jim Meyering  <meyering@lucent.com>
68965
68966         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
68967         Suggestion from Bruno Haible.
68968
68969 2001-12-10  Jim Meyering  <meyering@lucent.com>
68970
68971         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
68972         xrealloc, Instead, include "xalloc.h".
68973         (initbuffer): Don't cast xmalloc return value to char*.
68974         (readline): Reword comment.
68975         Don't cast xrealloc return value to char*
68976         Return NULL, not 0.
68977
68978 2001-12-09  Jim Meyering  <meyering@lucent.com>
68979
68980         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
68981         about `signed and unsigned type in conditional expression'.
68982         * lib/posixtm.c (posix_time_parse): Likewise.
68983
68984         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
68985
68986         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
68987         to avoid a pedantic warning.
68988
68989         * lib/getstr.c: Don't include assert.h.
68990         (getstr): Remove warning-evoking assertions.
68991         Return -1 if offset parameter is out of bounds.
68992         Change the type of a local from int to size_t.
68993
68994         * lib/strftime.c (my_strftime_localtime_r): Include this function
68995         definition in the `#if ! HAVE_TM_GMTOFF' block.
68996
68997         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
68998         Include xalloc.h instead.
68999
69000 2001-12-02  Jim Meyering  <meyering@lucent.com>
69001
69002         * lib/tempname.c: Don't declare getenv, thus reverting the change of
69003         2001-11-18.  It's no longer necessary, now that stdlib.h is always
69004         included.
69005
69006         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
69007         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
69008
69009 2001-11-30  Akim Demaille  <akim@epita.fr>
69010
69011         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
69012         before being defined.
69013
69014 2001-11-27  Paul Eggert  <eggert@twinsun.com>
69015
69016         * lib/quotearg.h (quotearg_n, quotearg_n_style):
69017         First arg is int, not unsigned.
69018         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
69019         (SIZE_MAX, UINT_MAX): New macros.
69020         (quotearg_n_options): Abort if N is negative.
69021         Avoid overflow check on hosts where size_t is 64 bits and int
69022         is 32 bits, as overflow is impossible there.
69023         Fix off-by-one typo that caused unnecessary reallocation.
69024
69025 2001-11-27  Jim Meyering  <meyering@lucent.com>
69026
69027         * lib/tempname.c: Merge with version from libc.
69028         * lib/regex.c: Likewise.
69029
69030         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
69031         systems for which STDC_HEADERS is 0, it was not included, resulting in
69032         a warning about an integer-to-pointer conversion problem with getenv.
69033         Reported by Volker Borchert.
69034
69035 2001-11-26  Jim Meyering  <meyering@lucent.com>
69036
69037         * lib/gtod.h: Remove file.
69038         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
69039         * lib/gettimeofday.c: Don't include gtod.h.
69040         (GTOD_init): Remove function.
69041         (rpl_gettimeofday): Do its job here instead, rather than aborting.
69042         Suggestion from Volker Borchert.
69043
69044 2001-11-23  Jim Meyering  <meyering@lucent.com>
69045
69046         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
69047         it.
69048         * lib/hash.c (struct hash_table): Define it here instead.
69049
69050 2001-11-22  Jim Meyering  <meyering@lucent.com>
69051
69052         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
69053
69054 2001-11-20  Jim Meyering  <meyering@lucent.com>
69055
69056         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
69057         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
69058
69059 2001-11-19  Jim Meyering  <meyering@lucent.com>
69060
69061         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
69062         directory.  Use "conftestXXXXXX" as the template.
69063         Suggestion from Paul Eggert.
69064
69065         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
69066         immediately, so the test doesn't mistakenly hit the max-open-files
69067         limit.
69068
69069 2001-11-18  Paul Eggert  <eggert@twinsun.com>
69070
69071         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
69072         (TEMPORARIES): New macro.
69073         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
69074         removes an artificial limitation (e.g. HP-UX 10.20, where
69075         TMP_MAX is 17576).
69076
69077 2001-11-18  Jim Meyering  <meyering@lucent.com>
69078
69079         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
69080
69081 2001-11-18  Jim Meyering  <meyering@lucent.com>
69082
69083         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
69084         on SunOS 4.
69085
69086         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
69087         files will be created before anything else.
69088
69089 2001-11-17  Paul Eggert  <eggert@twinsun.com>
69090
69091         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
69092         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
69093
69094 2001-11-17  Jim Meyering  <meyering@lucent.com>
69095
69096         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
69097         Prompted by a report from Bob Proulx.
69098
69099         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
69100         Instead, require UTILS_FUNC_MKSTEMP.
69101
69102 2001-11-17  Jim Meyering  <meyering@lucent.com>
69103
69104         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
69105         Now, that's done as part of AC_FUNC_STRTOD.
69106
69107 2001-11-17  Jim Meyering  <meyering@lucent.com>
69108
69109         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
69110         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
69111         rather than group writable.  Patch by Juan F. Codagnone.
69112
69113         * lib/readtokens.c: Remove explicit declarations of xmalloc and
69114         xrealloc, Instead, include "xalloc.h".
69115
69116         * lib/mountlist.c: Include unlocked-io.h after all system headers.
69117         Remove explicit declarations of xmalloc, xrealloc,
69118         and xstrdup.  Instead, include "xalloc.h".
69119
69120         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
69121         unlocked-io.h.
69122         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
69123         Likewise.
69124         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
69125
69126         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
69127         Reported by Padraig Brady.
69128
69129         * lib/mkstemp.c: #undef mkstemp.
69130         Include config.h.
69131         (rpl_mkstemp): Rename from mkstemp.
69132         Protoize.
69133
69134 2001-11-16  Jim Meyering  <meyering@lucent.com>
69135
69136         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
69137         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
69138         determine the amount of total physical memory, use pstat_getstatic.
69139         HPUX-11 doesn't define _SC_PHYS_PAGES.
69140         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
69141         If sysconf couldn't be used to determine the amount of available
69142         physical memory, use both pstat_getstatic and pstat_getdynamic.
69143         Based on a patch from Bob Proulx.
69144
69145 2001-11-10  Jim Meyering  <meyering@lucent.com>
69146
69147         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
69148         (jm_PREREQ): Use it.
69149
69150 2001-11-09  Jim Meyering  <meyering@lucent.com>
69151
69152         * m4/jm-macros.m4: Require autoconf-2.52f.
69153         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
69154         Use these AC_-prefixed names, not the AM_-prefixed ones.
69155
69156         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
69157
69158 2001-11-05  Jim Meyering  <meyering@lucent.com>
69159
69160         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
69161
69162 2001-11-04  Jim Meyering  <meyering@lucent.com>
69163
69164         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
69165         $DEFS.
69166
69167 2001-11-03  Jim Meyering  <meyering@lucent.com>
69168
69169         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
69170         of AC_DEFUN.
69171
69172         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
69173         know the name of the variable in the macro definition.
69174
69175 2001-11-03  Jim Meyering  <meyering@lucent.com>
69176
69177         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
69178         in argmatch_to_argument call.
69179
69180         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
69181         argument.
69182
69183         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
69184         e.g., a fault due to an attempt to free a NULL pointer.
69185
69186 2001-11-01  Jim Meyering  <meyering@lucent.com>
69187
69188         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
69189         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
69190
69191 2001-11-01  Jim Meyering  <meyering@lucent.com>
69192
69193         * lib/dirfd.c, lib/dirfd.h: New files.
69194         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
69195
69196         * lib/hash.c (hash_print) [TESTING]: Clean up.
69197
69198 2001-10-22  Paul Eggert  <eggert@twinsun.com>
69199
69200         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
69201         to avoid a warning if -Wall.
69202
69203 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
69204
69205         * README: New file
69206         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
69207         (per RMS's instructions, this is now the canonical source)
69208         * lgpl/, gpl/: New directories.
69209
69210 2001-10-21  Paul Eggert  <eggert@twinsun.com>
69211
69212         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
69213
69214 2001-10-21  Jim Meyering  <meyering@lucent.com>
69215
69216         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
69217         this code would end up calling gettext even in packages built
69218         with --disable-nls.
69219         * lib/getopt.c (_): Likewise.
69220         * lib/regex.c (_): Likewise.
69221
69222 2001-10-20  Paul Eggert  <eggert@twinsun.com>
69223
69224         * m4/error.m4 (jm_PREREQ_ERROR):
69225         Do not invoke AC_CHECK_FUNCS with strerror_r, as
69226         AC_FUNC_STRERROR_R does that.
69227         Check for strerror declaration.
69228
69229         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
69230         are supposed to have them these days.
69231         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
69232         Merge changes from latest Autoconf CVS.
69233         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
69234         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
69235         POSIX decided to standardize on the int flavor of strerror_r.
69236
69237 2001-10-20  Paul Eggert  <eggert@twinsun.com>
69238
69239         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
69240         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
69241         Use strerror_r that is only a macro, even if it is not a function.
69242         (strerror): Check for HAVE_DECL_STRERROR before declaring.
69243         (private_strerror): Use prototypes, not old-style function definition.
69244         (print_errno_message): New function.
69245         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
69246         char*-flavored one.
69247         (error_tail, error, error_at_line): Use it.
69248
69249 2001-10-11  Jim Meyering  <meyering@lucent.com>
69250
69251         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
69252         and quote_n (1, ... to avoid clobbering a buffer.
69253
69254 2001-10-05  Jim Meyering  <meyering@lucent.com>
69255
69256         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
69257         hash-pjw.h.
69258         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
69259         * lib/hash-pjw.h: New file.
69260
69261 2001-09-30  Jim Meyering  <meyering@lucent.com>
69262
69263         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
69264         `struct fsstat' has the `f_fstypename' member.
69265         Use that to define FS_TYPE, which is now used to make
69266         the getfsstat link test tighter.
69267
69268 2001-09-30  Jim Meyering  <meyering@lucent.com>
69269
69270         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
69271         Include <sys/ucred.h>, for Apple Darwin.
69272         Include sys/mount.h and sys/fs_types.h only if available.
69273         (FS_TYPE): Define.
69274         (read_filesystem_list): Use FS_TYPE.
69275
69276 2001-09-29  Paul Eggert  <eggert@twinsun.com>
69277
69278         * lib/exclude.c (excluded_filename): 0 -> false, since it's
69279         a boolean context.
69280
69281 2001-09-29  Jim Meyering  <meyering@lucent.com>
69282
69283         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
69284         [one-argument getmntent function]): Include stdio.h before mntent.h.
69285         SunOS 4.1.x needs it for the declaration of `FILE'.
69286         Patch by Volker Borchert.
69287
69288         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
69289         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
69290         sys/fs_types.h, and make the link-test for getfsstat guard #include
69291         directives with appropriate #if HAVE_*_H tests so that we can
69292         detect getfsstat on Apple Darwin1.3.7 systems.
69293         Reported by Nelson Beebe.
69294         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
69295
69296 2001-09-28  Paul Eggert  <eggert@twinsun.com>
69297
69298         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
69299         #defines strtoimax.  Also treat the other strto* functions
69300         like strtoimax.
69301
69302         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
69303         Check for strtoul and strtoumax,
69304         as those declarations are made even in the signed case.
69305         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
69306         Likewise, for strtol and strtoimax.
69307
69308 2001-09-28  Paul Eggert  <eggert@twinsun.com>
69309
69310         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
69311         #defines strtoimax.  Also treat the other strto* functions
69312         like strtoimax.
69313
69314         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
69315         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
69316         (strtoimax, strtoumax): Do not declare if already defined as a macro.
69317
69318 2001-09-26  Jim Meyering  <meyering@lucent.com>
69319
69320         Most macros in unlocked-io.h had the wrong number of arguments.
69321         * lib/gen-uio: New script.
69322         (USE_UNLOCKED_IO): Define to 1 if not already defined.
69323         * lib/unlocked-io.hin: Remove file.
69324         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
69325         rather than trying to embed it here.
69326         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
69327         Reported by Padraig Brady.
69328
69329 2001-09-25  Volker Borchert  <bt@teknon.de>
69330
69331         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
69332         `result'.
69333
69334 2001-09-24  Jim Meyering  <meyering@lucent.com>
69335
69336         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
69337
69338 2001-09-23  Jim Meyering  <meyering@lucent.com>
69339
69340         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
69341         instead of the mere test for existence of mntent.h.  The latter
69342         would get a false-positive on AIX 3.4 systems.
69343         In the outer getmntent if-block, don't die if neither of the getmntent
69344         tests succeeds.  Instead, just fall through and continue with the
69345         remaining tests.
69346
69347 2001-09-23  Jim Meyering  <meyering@lucent.com>
69348
69349         * lib/mountlist.c: Remove useless parentheses in #if directives.
69350         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
69351         the deprecated MOUNTED symbol is no longer defined in mntent.h.
69352
69353 2001-09-22  Jim Meyering  <meyering@lucent.com>
69354
69355         * m4/gettext.m4: New file.  From gettext.
69356         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
69357         * m4/progtest.m4: Likewise
69358         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
69359         * m4/glibc21.m4: Likewise.
69360
69361         * m4/libintl.m4: Remove.  No longer used.
69362
69363 2001-09-22  Jim Meyering  <meyering@lucent.com>
69364
69365         * lib/localcharset.c: Update from latest gettext.
69366         * lib/config.charset: Likewise.
69367
69368 2001-09-20  Jim Meyering  <meyering@lucent.com>
69369
69370         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
69371         strtoimax.
69372         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
69373         strtoumax.
69374
69375 2001-09-20  Jim Meyering  <meyering@lucent.com>
69376
69377         * lib/xstrtol.c (strtoimax): Guard declaration with
69378         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
69379         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
69380         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
69381         (strtoumax): Likewise, for completeness (it wasn't necessary).
69382
69383 2001-09-17  Paul Eggert  <eggert@twinsun.com>
69384
69385         * lib/strtoimax.c (HAVE_LONG_LONG):
69386         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
69387         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
69388         to work around bug in IBM C compiler.
69389
69390 2001-09-17  Jim Meyering  <meyering@lucent.com>
69391
69392         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
69393         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
69394         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
69395         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
69396         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
69397         whenever the right hand side need not be expanded by the shell.
69398
69399 2001-09-16  Paul Eggert  <eggert@twinsun.com>
69400
69401         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
69402         library.  It's not correct, as some older glibcs are buggy.
69403         fnmatch wasn't fixed until glibc 2.2.
69404
69405         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
69406         special shell magic here.
69407
69408 2001-09-16  Jim Meyering  <meyering@lucent.com>
69409
69410         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
69411         * m4/jm-macros.m4: Require it.
69412
69413 2001-09-16  Jim Meyering  <meyering@lucent.com>
69414
69415         * lib/mkdir.c: New file.
69416
69417 2001-09-15  Jim Meyering  <meyering@lucent.com>
69418
69419         * m4/jm-macros.m4: Check for help2man.
69420
69421 2001-09-11  Jim Meyering  <meyering@lucent.com>
69422
69423         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
69424         The body, by Paul Eggert, was moved here from configure.in.
69425         * m4/jm-macros.m4: Require UTILS_HOST_OS.
69426
69427 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69428
69429         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
69430         (jm_PREREQ): Use it.
69431
69432 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69433
69434         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
69435         Use ssize_t, not int, to store result of readlink.
69436         Check for ssize_t overflow as well as size_t overflow,
69437         as POSIX says the result of readlink is implementation-defined
69438         when ssize_t overflows.
69439         Remove unnecessary cast to char*.
69440         Use free+malloc instead of realloc, as the storage doesn't need
69441         to be preserved and it's clearer and can be more efficient that way.
69442         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
69443         * lib/xreadlink.h (xreadlink): Update prototype.
69444
69445 2001-09-04  Paul Eggert  <eggert@twinsun.com>
69446
69447         * lib/xgetcwd.c: Revert some of the previous change; intead,
69448         fix the HAVE_GETCWD_NULL code to behave more like the
69449         !HAVE_GETCWD_NULL code used to.
69450
69451         Include "xalloc.h".
69452         (xgetcwd): Do not return NULL when memory is exhausted; instead,
69453         invoke xalloc_die.
69454
69455 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69456
69457         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
69458         sys/param.h, as pathmax.h includes them.
69459
69460 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69461
69462         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
69463         (jm_PREREQ_XGETCWD): New macro.
69464
69465         * m4/getcwd.m4: New file.
69466
69467 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69468
69469         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
69470         like the HAVE_GETCWD_NULL code.
69471         Include pathmax.h if not HAVE_GETCWD.
69472         Do not include xalloc.h.
69473         (INITIAL_BUFFER_SIZE): New symbol.
69474         Do not use xmalloc / xrealloc, since the caller is responsible for
69475         handling errors.  Preserve errno around `free' during failure.
69476         Do not overrun buffer when using getwd.
69477
69478 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69479
69480         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
69481         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
69482         getcwd (NULL, 0).
69483
69484 2001-09-03  Paul Eggert  <eggert@twinsun.com>
69485
69486         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
69487         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
69488         spotted by Jim Meyering.
69489
69490 2001-09-03  Jim Meyering  <meyering@lucent.com>
69491
69492         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
69493         failure.
69494
69495 2001-09-02  Jim Meyering  <meyering@lucent.com>
69496
69497         * lib/error.c: Update from GNU libc.
69498
69499 2001-09-01  Jim Meyering  <meyering@lucent.com>
69500
69501         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
69502         Used by df.
69503
69504 2001-09-01  Jim Meyering  <meyering@lucent.com>
69505
69506         * lib/xreadlink.c: New file.
69507         * lib/xreadlink.h: New file.
69508         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
69509         xreadlink.h.
69510
69511         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
69512         doesn't conflict with sparc Solaris 7's definition in
69513         /usr/include/sys/int_types.h.
69514
69515         * lib/exclude.c: Use `""', not `<>' to #include non-system header
69516         files.
69517         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
69518         and strncasecmp as r-values.  Unixware didn't have declarations.
69519
69520 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69521
69522         * lib/xstrtol.h: Add copyright notice.
69523         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
69524         LONGINT_INVALID_SUFFIX_CHAR.
69525
69526 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69527
69528         * lib/xstrtol.c (strtoimax): New decl.
69529
69530 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69531
69532         * lib/xgetcwd.c: Don't include pathmax.h.
69533         Include stdlib.h and unistd.h if available.
69534         Include xalloc.h.
69535         (xmalloc, xstrdup, free): Remove decls.
69536         (xgetcwd): Don't assume sizes fit in unsigned.
69537         Check for overflow when computing sizes.
69538         Simplify reallocation code.
69539
69540 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69541
69542         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
69543         a directory's st_size can have an arbitrary value, so the old
69544         usage could waste an arbitrary amount of memory.  All uses
69545         changed.
69546         * lib/savedir.h: Update prototype.
69547
69548 2001-08-31  Paul Eggert  <eggert@twinsun.com>
69549
69550         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
69551
69552         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
69553         old strtoimax.c.
69554
69555         Also, make the following further changes to make this file's
69556         configuration more similar to that of strtol.c:
69557         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
69558         (strtoumax, uintmax_t, strtoull, strtol): Remove.
69559         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
69560         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
69561         changed to signed values.
69562
69563         And make the following changes as well:
69564         Fix copyright notice, as 1999 was missing.
69565         (verify): New macro.
69566         (strtoimax): Check sizes at compile-time, not run-time.
69567         Prefer strtol to strtoll if both work.
69568         (main): Remove; it was not that useful and was a pain to maintain.
69569
69570         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
69571
69572 2001-08-31  Jim Meyering  <meyering@lucent.com>
69573
69574         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
69575         Use an initial, malloc'd, buffer of length 128 rather than
69576         a statically allocated one of length 1024.
69577
69578 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69579
69580         Simplify code, partly by assuming autoconf 2.52 semantics.
69581
69582         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
69583
69584         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
69585         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
69586         All uses removed.
69587         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
69588         Move AC_REQUIRE to next-to-top level, to avoid confusion.
69589         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
69590         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
69591         jm_AC_HEADER_INTTYPES_H.
69592         * m4/jm-macros.m4 (jm_MACROS): Likewise.
69593
69594         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
69595
69596         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
69597         Quote first arg of AC_DEFUN.
69598         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
69599         since they are needed to parse the include file even if we need
69600         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
69601         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
69602         but with opposite signedness.
69603
69604 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69605
69606         Merge 'exclude' changes from tar 1.13.22.
69607         This fixes one or two unlikely storage allocation overflow bugs,
69608         but doesn't change user-visible behavior otherwise.
69609
69610 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69611
69612         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
69613         (jm_PREREQ_EXCLUDE): New macro.
69614
69615 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69616
69617         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
69618         tm to be declared.
69619
69620 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69621
69622         * lib/hash.c: Remove '2001' from copyright notice.
69623
69624 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69625
69626         * lib/full-write.h: New file.
69627         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
69628         * lib/full-write.c: Correct credits, as cccp.c no longer
69629         exists and anyway it was so heavily changed from the old cccp
69630         code as to be unrecognizable.  Include full-write.h.
69631         (full_write) Return size_t, with short writes meaning failure.
69632         All callers changed.  This fixes a bug with large buffers
69633         on 64-bit hosts.
69634         * lib/utime.c: Include full-write.h.
69635
69636 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69637
69638         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
69639         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
69640         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
69641         Include if available.
69642         (<xalloc.h>): Include
69643         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
69644         (verify): New macro.  Use it to verify that EXCLUDE macros do not
69645         collide with FNM macros.
69646         (struct patopts): New struct.
69647         (struct exclude): Use it, as exclude patterns now come with options.
69648         (new_exclude): Support above changes.
69649         (new_exclude, add_exclude_file):
69650         Initial size must now be a power of two to simplify overflow checking.
69651         (free_exclude, fnmatch_no_wildcards): New function.
69652         (excluded_filename): No longer requires options arg, as the options
69653         are determined by add_exclude.  Now returns bool, not int.
69654         (excluded_filename, add_exclude):
69655         Add support for the fancy new exclusion options.
69656         (add_exclude, add_exclude_file): Now takes int options arg.
69657         Check for arithmetic overflow when computing sizes.
69658         (add_exclude_file): xrealloc might modify errno, so don't
69659         realloc until after errno might be used.
69660
69661         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
69662         New macros.
69663         (free_exclude): New decl.
69664         (add_exclude, add_exclude_file): Now takes int options arg.
69665         (excluded_filename): No longer requires options arg, as the options
69666         are determined by add_exclude.  Now returns bool, not int.
69667
69668 2001-08-30  Paul Eggert  <eggert@twinsun.com>
69669
69670         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
69671
69672 2001-08-27  Jim Meyering  <meyering@lucent.com>
69673
69674         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
69675
69676         * lib/version-etc.c (N_): Remove definition.
69677         Revert most of last change.
69678         Instead, simply don't mark the `Copyright...' string for translation.
69679         Based on advice from Paul Eggert.
69680
69681         * lib/strtoxmax.c: Tweak comment.
69682
69683 2001-08-26  Jim Meyering  <meyering@lucent.com>
69684
69685         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
69686
69687         * m4/xstrtoimax.m4: New file.
69688         * m4/xstrtoumax.m4: Add comments explaining why we
69689         AC_REPLACE_FUNCS(strtol).
69690
69691 2001-08-26  Jim Meyering  <meyering@lucent.com>
69692
69693         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
69694         of copyright with `%s' so translators don't get an untranslated
69695         message in 2002.
69696         (COPYRIGHT_YEAR): Define.
69697         (version_etc): Use fprintf rather than fputs.
69698         Suggestion from Ulrich Drepper.
69699
69700         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
69701
69702         * lib/strtoll.c: New file, from GNU libc.
69703         * lib/xstrtoimax.c: New file.
69704
69705         * lib/xstrtol.h: Add xstrtoimax.
69706         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
69707         * lib/strtoimax.c: New file.  Likewise, but first define
69708         STRTOUXMAX_SIGNED.
69709
69710         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
69711         ...
69712         * lib/strtoxmax.c: ... then renamed to this.
69713
69714 2001-08-18  Paul Eggert  <eggert@twinsun.com>
69715
69716         * m4/inttypes.m4: Add AC_PREREQ(2.13).
69717         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
69718         (jm_AC_TYPE_INTMAX_T): New macro.
69719         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
69720
69721         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
69722
69723         * m4/longlong.m4: Renamed from ulonglong.m4.
69724         * m4/inttypes.m4: Renamed from inttypes_h.m4.
69725         * m4/uintmax_t.m4: Removed.
69726
69727 2001-08-13  Paul Eggert  <eggert@twinsun.com>
69728
69729         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
69730         Port to Solaris 8, where 'sed' requires a space after the 'r'
69731         command, and where sh dislikes "$/".  Clean up the spacing a bit.
69732         Redirect output to $tmp just once.
69733
69734 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
69735
69736         * lib/addext.c (<errno.h>): Include.
69737         (errno): Declare if not defined.
69738         (addext): Work correctly when pathconf returns -1 and leaves
69739         errno alone because there is no limit.  Also, work even if
69740         pathconf returns a value greater than SIZE_MAX.
69741
69742 2001-08-12  Jim Meyering  <meyering@lucent.com>
69743
69744         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
69745         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
69746         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
69747         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
69748         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
69749         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
69750         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
69751         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
69752         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
69753         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
69754         utime.m4, utimes.m4, xstrtoumax.m4:
69755         Quote the first argument in each use of AC_DEFUN.
69756
69757 2001-08-12  Jim Meyering  <meyering@lucent.com>
69758
69759         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
69760         Simply `return getcwd (NULL, 0);'.
69761         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
69762         Use 1300 as initial value for length, not PATH_MAX.
69763
69764         * lib/pathmax.h: Clean up cpp syntax.
69765
69766 2001-08-12  Jim Meyering  <meyering@lucent.com>
69767
69768         * lib/gettimeofday.c: New file.
69769         * lib/gtod.h: New file.
69770         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
69771
69772 2001-08-05  Jim Meyering  <meyering@lucent.com>
69773
69774         * m4/jm-macros.m4: Require autoconf-2.52.
69775
69776 2001-08-04  Jim Meyering  <meyering@lucent.com>
69777
69778         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
69779         stmt, to get in sync with glibc.
69780
69781 2001-08-03  Paul Eggert  <eggert@twinsun.com>
69782
69783         The following changes are from gettext 0.10.39 as maintained by
69784         Bruno Haible.
69785
69786         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
69787         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
69788         with inverted sense.  All uses changed.
69789
69790         * lib/mbswidth.c: Don't include <limits.h>.
69791         Include <stdlib.h> and <string.h> unconditionally.
69792         (iswcntrl, mbsinit, ISCNTRL): New macros.
69793         (mbsnwidth): Use K&R style function declarations.
69794         Don't bother checking for MB_LEN_MAX == 1, since the compiler
69795         can optimize it when MB_CUR_MAX == 1.
69796         The width of control characters is zero, not 1.
69797
69798 2001-08-03  Paul Eggert  <eggert@twinsun.com>
69799
69800         The following changes are from gettext 0.10.39 as maintained by
69801         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
69802
69803         * m4/codeset.m4: Upgrade to serial AM1.
69804         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
69805         all uses changed.  Quote first arg of AC_DEFUN.
69806         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
69807
69808         * m4/iconv.m4: Upgrade to serial AM2.
69809         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
69810         Add --with-libconv-prefix.
69811         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
69812         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
69813         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
69814         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
69815         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
69816
69817         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
69818         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
69819         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
69820         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
69821         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
69822         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
69823         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
69824         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
69825         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
69826
69827         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
69828         string.h any more.
69829
69830         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
69831         not the default value.
69832
69833         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
69834         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
69835         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
69836         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
69837         Also check for iswcntrl, used for wcwidth fallback.
69838         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
69839         to Autoconf 2.13.
69840
69841 2001-08-03  Jim Meyering  <meyering@lucent.com>
69842
69843         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
69844         as it was in the original.  Reported by Paul Eggert.
69845
69846 2001-07-16  Jim Meyering  <meyering@lucent.com>
69847
69848         * m4/gettimeofday.m4: New file.
69849         Prompted by a report from Bernhard Baehr.
69850
69851 2001-07-15  Jim Meyering  <meyering@lucent.com>
69852
69853         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
69854         stuff. Now it's in ../Makefile.cfg.
69855
69856 2001-07-15  Jim Meyering  <meyering@lucent.com>
69857
69858         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
69859         (BUILT_SOURCES): Add unlocked-io.h.
69860         (io_functions): Define.
69861         (unlocked-io.h): New rule.
69862         (DISTCLEANFILES): Add unlocked-io.h.
69863         (all-local): Depend on unlocked-io.h, to ensure it is created.
69864
69865         * lib/unlocked-io.hin: New file
69866
69867         * lib/regex.c: Update from glibc.
69868
69869 2001-07-05  Jim Meyering  <meyering@lucent.com>
69870
69871         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
69872         recommendation.
69873         (libfetish_a_SOURCES): Put all .h files here instead.
69874         Remove a thus-exposed (better checks in automake) duplicate and
69875         two unnecessary .h files.
69876
69877 2001-07-04  Jim Meyering  <meyering@lucent.com>
69878
69879         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
69880         that generates jm-glibc-io.m4 so that it doesn't trigger any make
69881         distcheck failure.
69882
69883 2001-07-02  Jim Meyering  <meyering@lucent.com>
69884
69885         The following changes were prompted by suggestions from Bruno Haible.
69886
69887         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
69888         is now generated.
69889         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
69890         definition of EXTRA_DIST.
69891         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
69892         ensure that the generated file is created/updated whenever the list
69893         of $(unlocked_functions) is changed.
69894         (jm-glibc-io.m4): New rule.
69895         (unlocked-io.h): New rule -- currently unused.
69896
69897 2001-06-24  Jim Meyering  <meyering@lucent.com>
69898
69899         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
69900         unmatched right bracket, rather than kludging it with an extra,
69901         falsely-matching quote in a comment.  Patch by Akim Demaille.
69902
69903 2001-06-11  Jim Meyering  <meyering@lucent.com>
69904
69905         * lib/regex.c: Update from GNU libc.
69906
69907 2001-05-27  Jim Meyering  <meyering@lucent.com>
69908
69909         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
69910         Check for ut_type in struct utmp.
69911
69912 2001-05-27  Jim Meyering  <meyering@lucent.com>
69913
69914         * lib/readutmp.h (UT_TYPE): Define.
69915
69916 2001-05-24  Jim Meyering  <meyering@lucent.com>
69917
69918         * lib/argmatch.c: Include "quote.h".
69919         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
69920         quote function.  Reported by Göran Uddeborg.
69921
69922 2001-05-22  Jim Meyering  <meyering@lucent.com>
69923
69924         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
69925         now that we use the package-supplied version unconditionally.
69926         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
69927
69928 2001-05-21  Jim Meyering  <meyering@lucent.com>
69929
69930         * m4/regex.m4: Change a couple backticks to single quotes to avoid
69931         shell syntax errors.
69932
69933 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
69934
69935         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
69936
69937 2001-05-20  Paul Eggert  <eggert@twinsun.com>
69938
69939         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
69940         Don't bother to check library strftime, since
69941         we'll be using our own my_strftime function anyway.
69942         Define my_strftime instead of strftime.
69943
69944 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
69945
69946         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
69947         which is not yet declared.
69948
69949 2001-05-15  Jim Meyering  <meyering@lucent.com>
69950
69951         * m4/regex.m4: Use proper quoting so brackets appear in the test
69952         program.
69953         Reported by, and with help from, Bruno Haible.
69954
69955 2001-05-13  Jim Meyering  <meyering@lucent.com>
69956
69957         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
69958         undefined.
69959
69960 2001-05-11  Paul Eggert  <eggert@twinsun.com>
69961
69962         dirname code cleanup.  base_name now behaves more compatibly
69963         with POSIX basename when given file names that have trailing
69964         slashes, and similarly for dir_name.  Add new primitives
69965         base_len and dir_len.  Put the directory-name-related decls
69966         into dirname.h.
69967
69968         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
69969         * lib/backupfile.c (base_name): Likewise.
69970         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
69971         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
69972         * lib/makepath.c (strip_trailing_slashes): Likewise.
69973         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
69974         ISSLASH): Likewise.
69975         * lib/rename.c (strip_trailing_slashes): Likewise.
69976         * lib/same.c (base_name): Likewise.
69977         * lib/stripslash.c (ISSLASH): Likewise.
69978
69979         * lib/addext.c: Include <dirname.h> after size_t is defined.
69980         * lib/backupfile.c: Likewise.
69981
69982         * lib/addext.c (addext): Use base_len to trim redundant
69983         trailing slashes instead of doing it ourselves.
69984         But do not trim the last slash if it is not redundant.
69985
69986         * lib/backupfile.c (find_backup_file_name,
69987         max_backup_version): Use base_len instead of rolling it ourselves.
69988         Handle the case of "" and (on DOS) "C:" correctly.
69989
69990         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
69991         needed. Include <string.h>, <dirname.h>.
69992         (base_name): Allow file names ending in slashes, other than names
69993         that are all slashes.  In this case, return the basename followed
69994         by the slashes.  This is more general, and can be used in places
69995         where the original base_name purposely had an assertion failure.
69996         (base_len): New function.
69997
69998         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
69999         Do not include <assert.h>; no longer needed.
70000         Include xalloc.h.
70001         (memrchr): Remove decl.
70002         (dir_name_r): Remove.
70003         (dir_len): Renamed from dirlen.  All callers changed.
70004         Rewrite in terms of base_name, for simplicity and consistency.
70005         (dir_name): Never return NULL.  All callers changed.
70006         Do not include <stdlib.h> in test program; no longer needed.
70007         return 0; is fine for test program.
70008
70009         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
70010         New macros.
70011         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
70012
70013         * lib/path-concat.c (path_concat): Use base_len to compute
70014         base length, not strlen; this means we cannot rely on memcpy
70015         to null-terminate.
70016
70017         * lib/same.c (STREQ): Remove.
70018         (same_name): Handle the case where the basename ends in trailing '/'.
70019
70020         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
70021         a slash was stripped.  Do not strip the last slash after a
70022         file system prefix.
70023
70024 2001-05-11  Paul Eggert  <eggert@twinsun.com>
70025
70026         * lib/Makefile.am (libfetish_a_SOURCES):
70027         Add strftime.c, since we now compile it on all hosts.
70028
70029         * lib/strftime.c (my_strftime):
70030         Define to nstrftime if emacs, but only if my_strftime is not defined.
70031         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
70032         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
70033         Add one more extra argument: a nanoseconds value.
70034         All uses changed.
70035         (ns): New macro.
70036         (my_strftime function): Add %N format.
70037         (emacs_strftimeu): Renamed from emacs_strftime,
70038         with extra ut argument.
70039
70040 2001-05-09  Paul Eggert  <eggert@twinsun.com>
70041
70042         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
70043
70044 2001-04-21  Jim Meyering  <meyering@lucent.com>
70045
70046         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
70047         doesn't interfere.
70048
70049 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
70050
70051         * m4/ftruncate.m4: Check for chsize.
70052         Link with ftruncate.o unconditionally if ftruncate is missing.
70053         This was required when cross-compiling to i586-mingw32msvc.
70054
70055 2001-04-08  Jim Meyering  <meyering@lucent.com>
70056
70057         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
70058         recomputed; that's necessary when the offset spans a DST transition.
70059         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
70060
70061 2001-04-02  Jim Meyering  <meyering@lucent.com>
70062
70063         * lib/regex.h, regex.c: Update from GNU libc.
70064
70065 2001-03-24  Jim Meyering  <meyering@lucent.com>
70066
70067         * m4/jm-macros.m4: Require autoconf-2.49d.
70068
70069 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
70070
70071         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
70072
70073 2001-03-19  Paul Eggert  <eggert@twinsun.com>
70074
70075         * lib/version-etc.c (version_etc_copyright): Update to 2001.
70076
70077 2001-03-17  Jim Meyering  <meyering@lucent.com>
70078
70079         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
70080         now that the version in autoconf is equivalent.
70081         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
70082
70083         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
70084         Suggestion from Akim Demaille.
70085
70086         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
70087         (jm_PREREQ_TEMPNAME): New function.
70088
70089 2001-03-16  Paul Eggert  <eggert@twinsun.com>
70090
70091         * lib/tempname.c (uint64_t): Define to uintmax_t if
70092         not defined, and if UINT64_MAX is not defined.
70093         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
70094         Reported by John David Anglin.
70095
70096 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
70097
70098         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
70099         resolve alias if codeset is empty.
70100         * lib/config.charset (BeOS): Use wildcard syntax.
70101
70102 2001-03-13  Jim Meyering  <meyering@lucent.com>
70103
70104         * lib/path-concat.c (path_concat)
70105         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
70106         concatenating e.g., `C:' and `foo'.
70107         From Bruno Haible.
70108
70109 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
70110
70111         * lib/localcharset.c (locale_charset): Don't use
70112         setlocale(LC_CTYPE,NULL). Don't return NULL.
70113         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
70114
70115 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
70116
70117         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
70118         support for DOS/DJGPP.
70119
70120 2001-03-01  Paul Eggert  <eggert@twinsun.com>
70121
70122         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
70123         lacks mkstemp.  Compile our own tempname.c if we compile our own
70124         mkstemp.c, as mkstemp relies on tempname.
70125
70126 2001-03-01  Jim Meyering  <meyering@lucent.com>
70127
70128         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
70129         AH_VERBATIM really does output its argument verbatim.
70130
70131 2001-02-28  Paul Eggert  <eggert@twinsun.com>
70132
70133         * lib/Makefile.am (libfetish_a_SOURCES):
70134         Add dup-safer.c, fopen-safer.c.
70135         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
70136
70137         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
70138         * lib/unistd-safer.h: New files.
70139
70140 2001-02-25  Paul Eggert  <eggert@twinsun.com>
70141
70142         The mkstemp replacement is taken from glibc 2.2.2, with some
70143         portability fixes for use outside glibc, as follows:
70144
70145         * lib/tempname.c (struct_stat64): New macro.
70146         (direxists, __gen_tempname): Use it.
70147         This avoids a portability problem with Solaris 8.
70148
70149         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
70150         (<stddef.h>, <stdint.h>, <string.h>):
70151         Include only if STDC_HEADERS || _LIBC.
70152         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
70153         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
70154         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
70155         (__set_errno): Define this macro if <errno.h> doesn't.
70156         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
70157         Define these macros if <stdio.h> doesn't.
70158         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
70159         Define these macros if <sys/stat.h>
70160         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
70161         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
70162         __xstat64): Define if not _LIBC.
70163         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
70164         (__gen_tempname): Invoke gettimeofday only if
70165         HAVE_GETTIMEOFDAY || _LIBC;
70166         otherwise, fall back on plain "time".
70167         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
70168
70169         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
70170
70171         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
70172
70173 2001-02-18  Paul Eggert  <eggert@twinsun.com>
70174
70175         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
70176
70177 2001-02-17  Paul Eggert  <eggert@twinsun.com>
70178
70179         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
70180         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
70181         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
70182         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
70183
70184 2001-02-17  Paul Eggert  <eggert@twinsun.com>
70185
70186         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
70187         Remove workaround macros for hosts that have mbrtowc but not
70188         mbstate_t, as we now insist on proper declarations for both
70189         before using mbrtowc.
70190
70191 2001-02-17  Jim Meyering  <meyering@lucent.com>
70192
70193         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
70194         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
70195         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
70196         UnixWare 7.1.1.
70197
70198         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
70199         rather than AC_CACHE_VAL.
70200
70201 2001-02-17  Jim Meyering  <meyering@lucent.com>
70202
70203         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
70204         around included file name.
70205
70206         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
70207
70208         * lib/strftime.c: Update from GNU libc (the only changes were to
70209         comments).
70210
70211 2001-02-17  Jim Meyering  <meyering@lucent.com>
70212
70213         * lib/regex.c: Update from libc.
70214
70215 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
70216
70217         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
70218         clash.
70219
70220 2001-02-16  Paul Eggert  <eggert@twinsun.com>
70221
70222         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
70223         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
70224         Reported by Mark Hounschell via Paul Eggert.
70225
70226 2001-02-07  Jim Meyering  <meyering@lucent.com>
70227
70228         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
70229
70230 2001-02-05  Jim Meyering  <meyering@lucent.com>
70231
70232         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
70233         it includes the patch required for `large file' support with at least
70234         HP-UX's 10.20 /bin/cc.
70235
70236 2001-02-03  Jim Meyering  <meyering@lucent.com>
70237
70238         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
70239         AS_IF, now that it works once again (mysteriously).
70240         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
70241
70242 2001-01-30  Jim Meyering  <meyering@lucent.com>
70243
70244         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
70245         * m4/chown.m4: Rename conftestchown to conftest.chown.
70246         * m4/rename.m4: s/conftestdir/conftest.d1/ and
70247         s/conftestdir2/conftest.d2/.
70248         * m4/utimes.m4: s/conftestdata/conftest.data/
70249         Inspired by Pavel Roskin's change in autoconf.
70250
70251 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
70252
70253         * lib/config.charset: Update for FreeBSD 4.2.
70254
70255 2001-01-27  Jim Meyering  <meyering@lucent.com>
70256
70257         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
70258         a use of AS_IF.
70259         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
70260
70261 2001-01-26  Jim Meyering  <meyering@lucent.com>
70262
70263         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
70264         quotearg.c includes it.
70265
70266 2001-01-26  Jim Meyering  <meyering@lucent.com>
70267
70268         * lib/quotearg.c: Include stddef.h.
70269         * lib/quote.c: Include stddef.h.
70270         Reported by Axel Kittenberger.
70271
70272         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
70273         line in double quotes so that it evokes a better diagnostic.
70274         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
70275         Reported by Axel Kittenberger.
70276
70277 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
70278
70279         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
70280         as if it was a `charset'.
70281
70282 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
70283
70284         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
70285         has const.
70286
70287 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
70288
70289         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
70290         to avoid a warning.  Add back 'const' to inptr.
70291
70292 2001-01-20  Jim Meyering  <meyering@lucent.com>
70293
70294         Be sure that headers are checked before used in code compiled
70295         for the type checks.
70296         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
70297         In place of that, invoke jm_CHECK_ALL_TYPES.
70298         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
70299         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
70300         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
70301         The check for ssize_t was mistakenly run before the test for unistd.h.
70302
70303         The configure-time check for stdbool.h was missing.
70304         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
70305         (jm_PREREQ_HASH): New function.
70306
70307 2001-01-17  Jim Meyering  <meyering@lucent.com>
70308
70309         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
70310         for autoconf-2.49c.
70311         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
70312
70313 2001-01-16  Jim Meyering  <meyering@lucent.com>
70314
70315         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
70316         From Bruno Haible.
70317
70318 2001-01-14  Jim Meyering  <meyering@lucent.com>
70319
70320         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
70321         foo and bar.  Create conftestdir/ in the script, not in the C code.
70322         Remove directories in the script, not in the C code.
70323         Remove conftestdir{,2} before trying to create the directory.
70324         Make the entire configure script fail if the mkdir fails.
70325
70326 2001-01-14  Jim Meyering  <meyering@lucent.com>
70327
70328         * lib/rename.c: New file.  From Volker Borchert.
70329         Include stdlib.h, string.h or strings.h, and xalloc.h.
70330         Use strip_trailing_slashes rather than open-coding it.
70331
70332 2001-01-03  Paul Eggert  <eggert@twinsun.com>
70333
70334         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
70335
70336 2001-01-03  Jim Meyering  <meyering@lucent.com>
70337
70338         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
70339         of local `inptr' to avoid warning with some system declarations of
70340         iconv.
70341
70342 2001-01-02  Volker Borchert  <bt@teknon.de>
70343
70344         * m4/rename.m4: New file.
70345         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
70346
70347 2001-01-01  Jim Meyering  <meyering@lucent.com>
70348
70349         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
70350         even on systems with utmpx.h.  It's necessary for the declaration of
70351         utmp's ut_user member.  Reported by Andreas Jaeger.
70352
70353         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
70354         available. They are required for the declarations of getgrgid and
70355         getpwuid resp.
70356         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
70357         Reported by Andreas Jaeger.
70358
70359 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
70360
70361         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
70362         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
70363         so `make install' also works in VPATH builds.
70364
70365 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
70366
70367         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
70368         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
70369         can be used in subdirectories.
70370
70371 2000-12-29  Paul Eggert  <eggert@twinsun.com>
70372
70373         * lib/modechange.c: Do not assume that mode_t uses the
70374         traditional octal encoding.  E.g. "chmod 1 FOO" should set
70375         the other-execute bit of FOO even if S_IXOTH != 1.
70376
70377         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
70378         WOTH, XOTH, ALLM): New macros.
70379         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
70380          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
70381         Use them.
70382         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
70383         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
70384         (mode_compile):
70385         No need to use uintmax_t; unsigned long is long enough.
70386         Don't bother to get suffix since we don't use it.
70387
70388 2000-12-26  Jim Meyering  <meyering@lucent.com>
70389
70390         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
70391         better with autoheader.
70392
70393 2000-12-24  Jim Meyering  <meyering@lucent.com>
70394
70395         * lib/hash.c (is_prime): Return explicit boolean values.
70396         (hash_get_first): Return NULL to appease Irix5.6's 89.
70397         Reported by Nelson Beebe.
70398
70399 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
70400
70401         * lib/localcharset.c (locale_charset): Add support for Win32.
70402
70403 2000-12-18  Paul Eggert  <eggert@twinsun.com>
70404
70405         * lib/physmem.h, lib/physmem.c: New files.
70406
70407         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
70408         (noinst_HEADERS): Add physmem.h.
70409
70410         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
70411         't' for compatibility with Solaris 8 sort.
70412
70413 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
70414
70415         * lib/config.charset: Add support for BeOS.
70416
70417 2000-12-17  Jim Meyering  <meyering@lucent.com>
70418
70419         * m4/dos.m4 (jm_AC_DOS): New file and macro.
70420         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
70421
70422 2000-12-16  Jim Meyering  <meyering@lucent.com>
70423
70424         This bug had a serious impact on chown: `chown N:M FILE' (for integer
70425         N and M) would have treated it like `chown N:N FILE'.
70426
70427         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
70428
70429 2000-12-16  Jim Meyering  <meyering@lucent.com>
70430
70431         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
70432         SHELLS_FILE to a file name that's useful on djgpp systems.
70433         Include stdlib.h.
70434         (ADDITIONAL_DEFAULT_SHELLS): Define.
70435         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
70436         Based mostly on a patch from Prashant TR.
70437
70438 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
70439
70440         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
70441         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
70442         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
70443
70444 2000-12-08  Andreas Schwab  <schwab@suse.de>
70445
70446         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
70447         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
70448
70449 2000-12-07  Jim Meyering  <meyering@lucent.com>
70450
70451         * lib/stripslash.c (ISSLASH): Define.
70452         (strip_trailing_slashes): Use ISSLASH rather than comparing against
70453         `/'.
70454         From Prashant TR.
70455
70456         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
70457         (dir_name_r): Declare this function as static.
70458         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
70459         manifest itself on a name containing a mix of slashes and
70460         backslashes.
70461         Make this function work with names starting with a DOS-style
70462         drive letter and colon prefix.
70463         (dir_name): Append `.' if necessary.
70464         Based mostly on patches from Prashant TR and Eli Zaretskii.
70465
70466         * lib/dirname.h (dir_name_r): Remove prototype.
70467
70468 2000-12-06  Paul Eggert  <eggert@twinsun.com>
70469
70470         * m4/off_t-format.m4: Remove this file.
70471         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
70472
70473 2000-12-06  Jim Meyering  <meyering@lucent.com>
70474
70475         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
70476         replacement strtoull, we may well need the replacement strtoul, too.
70477         Check for declarations of strtoul and strtoull.
70478         Check for strtol.  Mainly as a cue to cause automake to include
70479         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
70480         Check for limits.h -- strtol.c needs it.
70481
70482 2000-12-05  Jim Meyering  <meyering@lucent.com>
70483
70484         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
70485
70486 2000-12-04  Jim Meyering  <meyering@lucent.com>
70487
70488         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
70489         Also include memory.h, stdlib.h, unistd.h if appropriate.
70490         Reported by Andreas Jaeger (conflicting declaration of malloc).
70491
70492 2000-12-02  Jim Meyering  <meyering@lucent.com>
70493
70494         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
70495         * m4/jm-macros.m4 (jm_MACROS): require it.
70496
70497 2000-12-02  Jim Meyering  <meyering@lucent.com>
70498
70499         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
70500
70501 2000-12-01  Paul Eggert  <eggert@twinsun.com>
70502
70503         * lib/memrchr.c: Include <config.h> before any system include file.
70504
70505 2000-11-30  Jim Meyering  <meyering@lucent.com>
70506
70507         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
70508
70509 2000-11-30  Jim Meyering  <meyering@lucent.com>
70510
70511         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
70512
70513 2000-11-29  Paul Eggert  <eggert@twinsun.com>
70514
70515         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
70516
70517 2000-11-26  Jim Meyering  <meyering@lucent.com>
70518
70519         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
70520
70521 2000-11-22  Paul Eggert  <eggert@twinsun.com>
70522
70523         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
70524         size of (size_t) -1; it's not portable.
70525
70526 2000-11-17  Jim Meyering  <meyering@lucent.com>
70527
70528         * lib/strstr.c: Update from GNU libc.
70529
70530 2000-11-17  Akim Demaille  <akim@epita.fr>
70531
70532         * lib/obstack.h: Formatting changes.
70533         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
70534         prevent type checking.
70535         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
70536         cast the value to (void *): assigning a `foo *' to a `void *'
70537         variable is valid.
70538         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
70539
70540 2000-11-16  Jim Meyering  <meyering@lucent.com>
70541
70542         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
70543
70544 2000-11-11  Jim Meyering  <meyering@lucent.com>
70545
70546         * lib/error.c: Add a couple #includes, merging from GNU libc version.
70547
70548 2000-11-10  Jim Meyering  <meyering@lucent.com>
70549
70550         * lib/obstack.h: Update from GNU libc.
70551         * lib/obstack.c: Likewise.
70552
70553 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
70554
70555         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
70556
70557 2000-11-06  Paul Eggert  <eggert@twinsun.com>
70558
70559         * lib/getusershell.c (setusershell): Use rewind rather than
70560         fseek/fseeko, to avoid configuration hassles with fseeko.
70561         Don't bother opening SHELLS_FILE if shellstream is NULL;
70562         it's not necessary.
70563
70564 2000-11-05  Jim Meyering  <meyering@lucent.com>
70565
70566         * lib/makepath.h (make_dir): Declare.
70567         * lib/makepath.c (make_dir): Remove `static' attribute.
70568         Tweak a comment.
70569
70570 2000-11-04  Jim Meyering  <meyering@lucent.com>
70571
70572         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
70573
70574 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
70575
70576         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
70577         last one in a bucket, advance to the next bucket.
70578
70579 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
70580
70581         * lib/fnmatch.c: Do not comment out all the code if we are using
70582         the GNU C library, because in some cases we are replacing buggy
70583         code in the GNU C library itself.
70584
70585 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
70586
70587         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
70588         (regex_compile): Catch bogus \(\1\).
70589
70590 2000-10-30  Paul Eggert  <eggert@twinsun.com>
70591
70592         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
70593         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
70594         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
70595
70596 2000-10-30  Paul Eggert  <eggert@twinsun.com>
70597
70598         * lib/error.h, getline.h, modechange.h:
70599         Remove "2000" from Copyright line, as the file hasn't been
70600         changed this year other than in the copyright notice.
70601
70602         * lib/xalloc.h: Add "2000" to Copyright line, as this file
70603         was changed this year.
70604
70605 2000-10-29  Jim Meyering  <meyering@lucent.com>
70606
70607         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
70608         renaming.
70609         * m4/ls-mntd-fs.m4: Likewise
70610
70611 2000-10-29  Jim Meyering  <meyering@lucent.com>
70612
70613         * lib/xstat.in: Fix grammar in comment.
70614
70615 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
70616
70617         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
70618         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
70619         doesn't define __restrict_arr.
70620
70621 2000-10-28  Jim Meyering  <meyering@lucent.com>
70622
70623         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
70624         (jm_PREREQ_MEMCHR): New function.
70625
70626 2000-10-28  Jim Meyering  <meyering@lucent.com>
70627
70628         * lib/memchr.c: Update from libc.
70629         Adjust for portability:
70630         [HAVE_STDLIB_H]: Include stdlib.h.
70631         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
70632         Undef __memchr, too.
70633         [!weak_alias]: Define __memchr to memchr.
70634
70635         * lib/regex.c: Update from libc.
70636         * lib/regex.h: Likewise.
70637         * lib/getopt1.c: Likewise.
70638         * lib/memcmp.c: Likewise.
70639
70640         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
70641         Avoid using fseek, when possible -- it's broken by design.
70642         Patch by Ulrich Drepper.
70643
70644 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
70645
70646         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
70647         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
70648         Giving in to popular pressure to shut up the compiler with casts.
70649
70650 2000-10-26  Jim Meyering  <meyering@lucent.com>
70651
70652         * lib/strftime.c: Update from libc.
70653
70654 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
70655
70656         * regex.c: More `unsigned char' -> `re_char' changes.
70657         Also change several `int' into `re_wchar_t'.
70658         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
70659         (PUSH_FAILURE_POINTER): Don't cast any more.
70660         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
70661         We want GCC to complain, since this piece of code makes
70662         re_match non-reentrant, which *should* be fixed.
70663         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
70664         (EXTEND_BUFFER): Use RETALLOC.
70665         (SET_LIST_BIT): Don't cast.
70666         (re_wchar_t): New type.
70667         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
70668         that those two functions will always properly return.
70669         (IMMEDIATE_QUIT_CHECK): Cast to void.
70670         (analyse_first): Use recursion rather than an explicit stack.
70671         (re_compile_fastmap): Can't fail anymore.
70672         (re_search_2): Don't check re_compile_fastmap for failure.
70673         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
70674         Now also sets the new value (passed in a new argument).
70675         (re_match_2_internal): Use it.
70676         Also, use a new var `reg' of type size_t when looping through regs
70677         rather than reuse the inappropriate `mcnt'.
70678
70679 2000-10-25  Jim Meyering  <meyering@lucent.com>
70680
70681         * lib/obstack.c: Update from libc.
70682
70683 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
70684
70685         * regex.c (regex_compile): Change the way of handling a range from
70686         a char less than 256 to a char not less than 256.
70687
70688 2000-10-24  Andrew Innes  <andrewi@gnu.org>
70689
70690         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
70691         NT-Emacs only.
70692         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
70693         so that re_search functions only quit when callers expect them to.
70694
70695 2000-10-23  Jim Meyering  <meyering@lucent.com>
70696
70697         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
70698         wrong.  That set_locale call must not have any side effects.
70699         From Paul Eggert.
70700
70701 2000-10-22  Jim Meyering  <meyering@lucent.com>
70702
70703         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
70704         [CYCLIC]: Remove now-unused definition.
70705
70706         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
70707         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
70708         Suggestion from Ulrich Drepper.
70709
70710 2000-10-21  Jim Meyering  <meyering@lucent.com>
70711
70712         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
70713         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
70714         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
70715
70716 2000-10-21  Jim Meyering  <meyering@lucent.com>
70717
70718         * lib/dirname.c (memrchr): Declare if necessary.
70719         (dir_name): Remove the restriction that there be no
70720         trailing slashes.  Now, this code skips past them, effectively
70721         ignoring them.
70722         [TEST_DIRNAME] (main): New unit tests.
70723
70724         * lib/memrchr.c: New file from GNU libc.
70725         Undef __memrchr, too.
70726         [!weak_alias]: Define __memrchr to memrchr.
70727         Guard weak_alias use with `#ifdef weak_alias'.
70728
70729 2000-10-21  Jim Meyering  <meyering@lucent.com>
70730
70731         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
70732         (dir_name): Use dir_name_r.
70733         * lib/dirname.h (dir_name_r): Declare it.
70734
70735 2000-10-17  Jim Meyering  <meyering@lucent.com>
70736
70737         * lib/quote.h (PARAMS): Define and use.
70738         Reported by Akim Demaille.
70739
70740         * lib/getopt.c: Update from libc.
70741
70742 2000-10-16  Jim Meyering  <meyering@lucent.com>
70743
70744         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
70745         setlocale.
70746         From Jan Fedak.
70747
70748 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
70749
70750         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
70751
70752 2000-09-25  Jim Meyering  <meyering@lucent.com>
70753
70754         * lib/md5.h (rol): Define (from GnuPG).
70755
70756         * lib/sha.c: Give credit (GnuPG) where due.
70757         (M): Use rol rather than open-coding it.
70758         Add a FIXME comment.
70759
70760 2000-09-21  Jim Meyering  <meyering@lucent.com>
70761
70762         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
70763         Reported by Michael Stone.
70764
70765 2000-09-20  Jim Meyering  <meyering@lucent.com>
70766
70767         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
70768         (noinst_HEADERS): Add sha.h.
70769         Based on code from Scott G. Miller and from GnuPG.
70770
70771 2000-09-18  Jim Meyering  <meyering@lucent.com>
70772
70773         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
70774         LIBS. Otherwise, everyone ends up linking with -lelf for some
70775         configurations.
70776         Reported by Mike Stone.
70777
70778 2000-09-15  Jim Meyering  <meyering@lucent.com>
70779
70780         * lib/regex.c: Update from libc.
70781
70782 2000-09-10  Jim Meyering  <meyering@lucent.com>
70783
70784         * lib/getopt.c (_getopt_internal): Update from glibc.
70785
70786 2000-09-09  Jim Meyering  <meyering@lucent.com>
70787
70788         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
70789         think it should be used as a general replacement for isascii.
70790         * lib/fnmatch.c: Likewise.
70791         * lib/mbswidth.c: Likewise
70792         * lib/regex.c: Likewise.
70793
70794         Don't use atoi.
70795         * lib/userspec.c: Include sys/param.h and limits.h.
70796         Include xstrtol.h.
70797         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
70798         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
70799         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
70800         UID, GID.  Check range.
70801
70802 2000-09-06  Jim Meyering  <meyering@lucent.com>
70803
70804         * lib/getopt.c (_getopt_internal): Update from glibc.
70805
70806 2000-08-30  Jim Meyering  <meyering@lucent.com>
70807
70808         * lib/strftime.c: Merge in changes from GNU libc.
70809
70810 2000-08-26  Jim Meyering  <meyering@lucent.com>
70811
70812         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
70813         * m4/fpending.m4: New file.
70814
70815 2000-08-26  Jim Meyering  <meyering@lucent.com>
70816
70817         * lib/closeout.c: Include "__fpending.h".
70818         (close_stdout_status): Return right away if there's nothing to flush.
70819
70820         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
70821         * lib/__fpending.c: New file.
70822         * lib/__fpending.h: New file.
70823
70824 2000-08-20  Jim Meyering  <meyering@lucent.com>
70825
70826         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
70827         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
70828         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
70829
70830 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
70831
70832         Improve fileutils installation on systems where running
70833         programs (like install) can't be unlinked.
70834         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
70835         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
70836
70837 2000-08-07  Paul Eggert  <eggert@twinsun.com>
70838
70839         Standardize on "memory exhausted" instead of "Memory exhausted"
70840         or "virtual memory exhausted".
70841         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
70842         "virtual memory exhausted".
70843         * lib/same.c (same_name): Invoke xalloc_die instead of printing
70844         our own message.
70845         * lib/userspec.c (parse_user_spec): Likewise.
70846         * lib/bumpalloc.h: comment fix
70847         * lib/same.c, userspec.c: Include xalloc.h.
70848
70849         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
70850         not char *const and pointing to a constant array.
70851         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
70852         (xrealloc): Comment fix.
70853
70854         * lib/userspec.c (parse_user_spec):
70855         Don't translate a message until just before returning,
70856         to avoid unnecessary translation.
70857
70858 2000-08-07  Jim Meyering  <meyering@lucent.com>
70859
70860         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
70861         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
70862         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
70863         getgroups.c, gethostname.c, getopt.h, group-member.c,
70864         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
70865         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
70866         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
70867         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
70868         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
70869         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
70870         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
70871         yesno.c: Back out Copyright date changes for each file with no change
70872         this year.  This eases coordination with other programs using the same
70873         source code modules.  From Paul Eggert.
70874
70875 2000-08-06  Paul Eggert  <eggert@twinsun.com>
70876
70877         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
70878         not char, for compatibility with glibc 2.1.3 strftime.c.
70879
70880 2000-08-03  Greg McGary  <greg@mcgary.org>
70881
70882         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
70883         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
70884         (EXTEND_BUFFER): Use them.
70885
70886 2000-08-01  Jim Meyering  <meyering@lucent.com>
70887
70888         * lib/dirname.c (ISSLASH): Define.
70889         (BACKSLASH_IS_PATH_SEPARATOR): Define.
70890         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
70891         both `\' and `/' may be use as path separators.
70892         Based on a patch from Prashant TR.
70893
70894 2000-07-31  Paul Eggert  <eggert@twinsun.com>
70895
70896         * lib/quotearg.c (quotearg_n_options): Don't make the initial
70897         slot vector a constant, since it might get modified.
70898
70899 2000-07-31  Jim Meyering  <meyering@lucent.com>
70900
70901         * lib/xmalloc.c: Use `virtual memory exhausted', not
70902         `Memory exhausted'.
70903         * lib/obstack.c (print_and_abort): Likewise.
70904
70905 2000-07-30  Paul Eggert  <eggert@twinsun.com>
70906
70907         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
70908         buffer, so that the caller can always quote one small
70909         component of a "memory exhausted" message in slot 0.
70910         From a suggestion by Jim Meyering.
70911
70912 2000-07-30  Jim Meyering  <meyering@lucent.com>
70913
70914         * lib/makepath.c (make_path): Quote the other instance, too.
70915
70916         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
70917         (STATIC_BUF_SIZE): Define.
70918         (quotearg_n_options): Use only statically allocated storage when
70919         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
70920         than STATIC_BUF_SIZE.
70921
70922 2000-07-29  Jim Meyering  <meyering@lucent.com>
70923
70924         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
70925         * lib/dirname.c (dir_name): Likewise.
70926
70927         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
70928         `/'.
70929
70930         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
70931         (dir_name): Assert that there are no trailing slashes.
70932
70933 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
70934
70935         * lib/mbswidth.h (mbswidth): Add a flags argument.
70936         (mbswidth): New declaration.
70937         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
70938         * lib/mbswidth.c (mbswidth): Add a flags argument.
70939         (mbsnwidth): New function.
70940
70941 2000-07-24  Jim Meyering  <meyering@lucent.com>
70942
70943         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
70944
70945 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70946
70947         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
70948
70949 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70950
70951         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
70952         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
70953         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
70954         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
70955         invoke multibyte primitives.
70956
70957 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70958
70959         * lib/quotearg.c:
70960         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
70961         so that mbstate_t is always defined.
70962
70963         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
70964         be 1 in at least one GCC installation, and this configuration
70965         error is likely to be common.  Ignoring MB_LEN_MAX hurts
70966         performance on hosts that have mbrtowc but have only unibyte
70967         locales, but I assume these hosts are rare.
70968
70969 2000-07-23  Paul Eggert  <eggert@twinsun.com>
70970
70971         * lib/mbswidth.c (_XOPEN_SOURCE):
70972         Don't define; this causes problems on Solaris 7.
70973         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
70974
70975 2000-07-23  Jim Meyering  <meyering@lucent.com>
70976
70977         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
70978         too: getgrgid, getpwuid, getuid.
70979
70980 2000-07-23  Jim Meyering  <meyering@lucent.com>
70981
70982         * lib/basename.c (base_name): Add an assertion.
70983
70984 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
70985
70986         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
70987         shadow its mbsinit function.
70988
70989 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
70990
70991         * lib/mbswidth.h: New file.
70992         * lib/mbswidth.c: New file.
70993         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
70994         (noinst_HEADERS): Add mbswidth.h.
70995
70996 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
70997
70998         * lib/config.charset: Add support for FreeBSD. Improve support for
70999         HP-UX and IRIX 6.
71000
71001 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
71002
71003         * m4/mbswidth.m4: New file.
71004         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
71005
71006 2000-07-15  Jim Meyering  <meyering@lucent.com>
71007
71008         * lib/makepath.c: Include quote.h.
71009         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
71010         corresponding argument in a `quote (...)' call.
71011         Give better diagnostics.
71012
71013         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
71014         (noinst_HEADERS): Add quote.h.
71015
71016         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
71017         from tar's src/misc.c.
71018         * lib/quote.h: New file.  Prototypes for same.
71019
71020 2000-07-14  Paul Eggert  <eggert@twinsun.com>
71021
71022         From a suggestion by Bruno Haible.
71023         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
71024         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
71025         to decide whether to define the BeOS workaround macro;
71026         this adjusts to the change to AC_MBSTATE_T.
71027
71028 2000-07-14  Jim Meyering  <meyering@lucent.com>
71029
71030         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
71031         jm_AC_TYPE_UINTMAX_T.
71032
71033 2000-07-13  Paul Eggert  <eggert@twinsun.com>
71034
71035         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
71036
71037         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
71038         quotearg_buffer_restyled): Add support for
71039         clocale_quoting_style.  Undo previous change to
71040         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
71041         and "{RIGHT QUOTATION MARK}" msgids.
71042
71043 2000-07-10  Paul Eggert  <eggert@twinsun.com>
71044
71045         From a suggestion by Bruno Haible.
71046         * m4/mbstate_t.m4 (AC_MBSTATE_T):
71047         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
71048         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
71049         and mbstate_t, to a single-part test that simply defines mbstate_t.
71050         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
71051         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
71052
71053 2000-07-10  Jim Meyering  <meyering@lucent.com>
71054
71055         * m4/strerror_r.m4: Mirror the correction made in autoconf.
71056
71057         * m4/gnu-source.m4: Output to confdefs.h directly.
71058         Suggestion from Akim Demaille.
71059
71060 2000-07-09  Paul Eggert  <eggert@twinsun.com>
71061
71062         The old behavior of quoting `like this' doesn't look good with
71063         newer, ISO-style fonts.  See:
71064         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
71065
71066         Instead, quote "like this" by default.  Let the translator
71067         tailor the locale-specific quoting behavior by providing
71068         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
71069
71070         * lib/quotearg.c (N_): New macro.
71071         (gettext_default): New function.
71072         (quotearg_buffer_restyled): Use
71073         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
71074         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
71075
71076 2000-07-09  Jim Meyering  <meyering@lucent.com>
71077
71078         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
71079         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
71080
71081         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
71082         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
71083
71084 2000-07-09  Jim Meyering  <meyering@lucent.com>
71085
71086         * lib/Most files: Update copyright dates to include 2000.
71087
71088 2000-07-08  Jim Meyering  <meyering@lucent.com>
71089
71090         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
71091         if not defined.
71092         (xgethostname): Remove now-unnecessary #ifdef.
71093         Move declaration of `err' into loop where it's used.
71094
71095 2000-07-05  Paul Eggert  <eggert@twinsun.com>
71096         and Bruno Haible  <haible@clisp.cons.org>
71097
71098         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
71099         only if the test for an object-type mbstate_t fails.  This
71100         prevents us from mistakenly reporting that mbstate_t is a
71101         system object type after we "#define mbstate_t int" to work
71102         around its lack.
71103
71104 2000-07-05  Paul Eggert  <eggert@twinsun.com>
71105         and Bruno Haible  <haible@clisp.cons.org>
71106
71107         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
71108
71109 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71110
71111         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
71112         to strerror_r.
71113         Include <ctype.h> for use of isalpha.
71114
71115 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71116
71117         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
71118         by allocating a larger buffer. Test the gethostname return value for
71119         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
71120         returns an error and ENAMETOOLONG isn't defined.
71121
71122 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
71123
71124         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
71125         dimension.
71126
71127 2000-07-04  Jim Meyering  <meyering@lucent.com>
71128
71129         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
71130         of the deprecated AC_CHECKING.
71131
71132 2000-07-04  Jim Meyering  <meyering@lucent.com>
71133
71134         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
71135         Reported by Bruno Haible.
71136
71137 2000-07-04  Jim Meyering  <meyering@lucent.com>
71138
71139         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
71140         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
71141         lacks mbrtowc.
71142
71143 2000-07-03  Paul Eggert  <eggert@twinsun.com>
71144
71145         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
71146         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
71147
71148 2000-07-03  Paul Eggert  <eggert@twinsun.com>
71149         and Bruno Haible  <haible@clisp.cons.org>
71150
71151         * lib/quotearg.c (mbrtowc):
71152         Assign to *pwc, and return 1 only if result is nonzero.
71153         (iswprint): Use ISPRINT when substituting our own mbrtowc.
71154
71155 2000-07-03  Jim Meyering  <meyering@lucent.com>
71156
71157         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
71158
71159 2000-07-03  Jim Meyering  <meyering@lucent.com>
71160
71161         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
71162         This is necessary to get a definition of e.g., UTMP_FILE on
71163         HP-UX 10.20.
71164         From Bob Proulx.
71165
71166 2000-07-02  Jim Meyering  <meyering@lucent.com>
71167
71168         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
71169
71170         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
71171         AC_LIBOBJ(function_name).
71172         * m4/chown.m4: Likewise.
71173         * m4/fnmatch.m4: Likewise.
71174         * m4/ftruncate.m4: Likewise.
71175         * m4/getgroups.m4: Likewise.
71176         * m4/getline.m4: Likewise.
71177         * m4/group-member.m4: Likewise.
71178         * m4/jm-macros.m4: Likewise.
71179         * m4/lstat.m4: Likewise.
71180         * m4/malloc.m4: Likewise.
71181         * m4/memcmp.m4: Likewise.
71182         * m4/nanosleep.m4: Likewise.
71183         * m4/putenv.m4: Likewise.
71184         * m4/realloc.m4: Likewise.
71185         * m4/regex.m4: Likewise.
71186         * m4/stat.m4: Likewise.
71187         * m4/strftime.m4: Likewise.
71188
71189 2000-07-02  Jim Meyering  <meyering@lucent.com>
71190
71191         * lib/quotearg.c (mbstate_t): Don't define here.
71192
71193 2000-07-02  Jim Meyering  <meyering@lucent.com>
71194
71195         * lib/nanosleep.c (SIGCONT): Define if not already defined.
71196
71197 2000-07-01  Jim Meyering  <meyering@lucent.com>
71198
71199         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
71200
71201 2000-07-01  Jim Meyering  <meyering@lucent.com>
71202
71203         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
71204         problem.
71205
71206 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
71207
71208         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
71209         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
71210
71211 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
71212
71213         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
71214         per change in ../m4/ls-mntd-fs.m4.
71215         (read_filesystem_list): Ignore symbolic links.
71216
71217 2000-06-29  Jim Meyering  <meyering@lucent.com>
71218
71219         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
71220         for declaration of strcmp.
71221
71222         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
71223
71224         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
71225         Avoid warning by casting result to `char *' to remove `const'.
71226
71227 2000-06-28  Jim Meyering  <meyering@lucent.com>
71228
71229         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
71230         included by quotearg.c, for which we perform this test.  From
71231         Bruno Haible.
71232
71233 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
71234
71235         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
71236         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
71237         <utmpx.h> exists, put readutmp.o into LIBOBJS.
71238
71239 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
71240
71241         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
71242
71243 2000-06-26  Paul Eggert  <eggert@twinsun.com>
71244
71245         savedir now sets errno on failure and invokes xmalloc to get memory.
71246         Fix a couple of other minor bugs while we're at it.
71247
71248         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
71249         (NAMLEN): Remove macro.
71250         (malloc, realloc): Remove decls.
71251         (stpcpy): Likewise.
71252         ("xalloc.h"): Include.
71253         (NAME_SIZE_DEFAULT): New macro.
71254         (savedir): Use xmalloc / xrealloc to allocate memory.
71255         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
71256         Skip "" directory entries.
71257         Use strlen to calculate directory entry length, since the old method
71258         is rarely used these days and isn't worth supporting.
71259         Don't use a pointer after freeing it.
71260         Check for integer overflow when calculating allocation size.
71261         Use memcpy to copy entries, instead of stpcpy.
71262         Set errno properly when returning NULL.
71263         Check for readdir error.
71264
71265 2000-06-26  Jim Meyering  <meyering@lucent.com>
71266
71267         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
71268
71269 2000-06-25  Jim Meyering  <meyering@lucent.com>
71270
71271         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
71272         Linux header bug when _XOPEN_SOURCE is defined to 500.
71273
71274 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
71275
71276         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
71277         deficiency.
71278
71279 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
71280
71281         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
71282         Include xalloc.h.
71283         Don't include <stdlib.h>.  Don't declare malloc, realloc.
71284
71285 2000-06-24  Jim Meyering  <meyering@lucent.com>
71286
71287         * m4/strerror_r.m4: Revive this file -- to try out an experimental
71288         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
71289         for which strerror does return char*, but which lacks a conveniently
71290         accessible declaration of the function.  If the compile-test says
71291         strerror_r doesn't work, then resort to a `run'-test that works on
71292         BeOS and segfaults on DEC Unix.
71293
71294 2000-06-24  Jim Meyering  <meyering@lucent.com>
71295
71296         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
71297
71298 2000-06-23  Paul Eggert  <eggert@twinsun.com>
71299
71300         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
71301         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
71302
71303 2000-06-23  Paul Eggert  <eggert@twinsun.com>
71304
71305         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
71306         (mbrtowc, mbstate_t): Define substitutes if
71307         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
71308         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
71309         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
71310
71311 2000-06-23  Jim Meyering  <meyering@lucent.com>
71312
71313         * m4/afs.m4: Add missing AC_MSG_RESULT.
71314         Reported by Bruno Haible.
71315
71316         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
71317         Suggestion from Bruno Haible.
71318
71319 2000-06-23  Jim Meyering  <meyering@lucent.com>
71320
71321         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
71322
71323 2000-06-21  Jim Meyering  <meyering@lucent.com>
71324
71325         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
71326
71327 2000-06-21  Jim Meyering  <meyering@lucent.com>
71328
71329         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
71330         (noinst_HEADERS): Add getstr.h.
71331
71332         * lib/getline.c (getstr): Move into a separate file.
71333         * lib/getstr.c (getstr): New file, extracted from getline.c, with
71334         the following changes: new parameter, delim2; both delim[12]
71335         parameters have type `int', not `char'.  The latter would lose
71336         with 8-bit delimiters.
71337         * lib/getstr.h: New file.
71338
71339 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71340
71341         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
71342         than 1024, return a memory chunk of least possible size, instead
71343         of size PATH_MAX + 2. In the loop, increment the size proportionally.
71344         Use free/xmalloc instead of xrealloc to avoid copying for very long
71345         paths.
71346
71347 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71348
71349         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
71350         the empty string.
71351
71352 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
71353
71354         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
71355         address, not strdup.  Include <stdlib.h> and don't declare free().
71356
71357 2000-06-19  Jim Meyering  <meyering@lucent.com>
71358
71359         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
71360
71361 2000-06-18  Jim Meyering  <meyering@lucent.com>
71362
71363         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
71364
71365         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
71366         `checking whether...' message to be consistent with that of the
71367         lstat test.
71368
71369 2000-06-18  Jim Meyering  <meyering@lucent.com>
71370
71371         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
71372         Besides, these days every porting target provides a mkdir function.
71373
71374         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
71375         needed. (this snippet comes from src/system.h).
71376
71377 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
71378
71379         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
71380
71381 2000-06-15  Paul Eggert  <eggert@twinsun.com>
71382
71383         * lib/human.c (adjust_value): New function.
71384         (human_readable_inexact): Apply rounding style even when
71385         printing approximate values.
71386
71387 2000-06-14  Paul Eggert  <eggert@twinsun.com>
71388
71389         * lib/human.c (human_readable_inexact): Allow an input block
71390         size that is not a multiple of the output block size, and vice versa.
71391         Reported by Piergiorgio Sartor.
71392
71393 2000-06-14  Paul Eggert  <eggert@twinsun.com>
71394
71395         * lib/getdate.y (get_date): Apply relative times after time
71396         zone indicator, not before.  Reported by Todd A. Jacobs.
71397
71398 2000-06-13  Jim Meyering  <meyering@lucent.com>
71399
71400         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
71401
71402         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
71403
71404 2000-06-12  Paul Eggert  <eggert@twinsun.com>
71405
71406         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
71407
71408 2000-06-12  Jim Meyering  <meyering@lucent.com>
71409
71410         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
71411         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
71412         optional argument.
71413         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
71414         the optional argument, `lib'.
71415
71416 2000-06-08  Jim Meyering  <meyering@lucent.com>
71417
71418         * m4/largefile.m4: Remove file (now that it's part of autoconf).
71419
71420 2000-06-04  Paul Eggert  <eggert@twinsun.com>
71421
71422         Rewrite largefile configuration so that we don't need to run
71423         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
71424         AC_CANONICAL_HOST in configure.in -- jmm]
71425
71426         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
71427         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
71428         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
71429         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
71430         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
71431         All uses changed.
71432         Instead of inspecting the output of getconf, try to compile the
71433         test program without and with the macro definition.
71434         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
71435         for getconf.  Instead, check for the needed flags by compiling
71436         test programs.
71437
71438 2000-06-04  Paul Eggert  <eggert@twinsun.com>
71439
71440         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
71441
71442 2000-06-04  Jim Meyering  <meyering@lucent.com>
71443
71444         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
71445         SunOS 4.1.4 for which gid_t is an unsigned type.
71446
71447 2000-06-03  Jim Meyering  <meyering@lucent.com>
71448
71449         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
71450         now that autoconf requires that.
71451
71452         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
71453         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
71454         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
71455
71456 2000-06-03  Jim Meyering  <meyering@lucent.com>
71457
71458         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
71459
71460 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
71461
71462         * m4/glibc21.m4: New file.
71463         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
71464
71465 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
71466
71467         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
71468         newer, don't install charset.alias.
71469         * lib/config.charset: Change the Linux/glibc rules so they become empty
71470         on glibc-2.1 or newer.
71471
71472 2000-06-02  Jim Meyering  <meyering@lucent.com>
71473
71474         * lib/mountlist.c: Back out last change.  Instead, do this...
71475         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
71476         me_dummy member using the same `ignore'-testing code.
71477         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
71478         fs_type strings.
71479         From Mark D. Roth.
71480
71481 2000-05-29  Jim Meyering  <meyering@lucent.com>
71482
71483         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
71484         mounts with the `ignore' attribute.  Based on a patch from
71485         Mark D. Roth.
71486
71487 2000-05-28  Jim Meyering  <meyering@lucent.com>
71488
71489         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
71490         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71491         * m4/stat.m4: Likewise.
71492         * m4/lstat.m4: Likewise.
71493         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
71494
71495         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
71496         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
71497
71498 2000-05-26  Jim Meyering  <meyering@lucent.com>
71499
71500         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
71501
71502 2000-05-24  Jim Meyering  <meyering@lucent.com>
71503
71504         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
71505         autoconf requires that.
71506         * m4/lib-check.m4: Likewise.
71507         * m4/jm-macros.m4: Likewise.
71508         * m4/strftime.m4: Likewise.
71509
71510         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
71511         AC_CHECK_DECLS, now that autoconf requires that.
71512
71513 2000-05-22  Jim Meyering  <meyering@lucent.com>
71514
71515         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71516         * m4/lstat.m4: Likewise.
71517
71518 2000-05-22  Jim Meyering  <meyering@lucent.com>
71519
71520         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
71521
71522 2000-05-20  Jim Meyering  <meyering@lucent.com>
71523
71524         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
71525         (jm_PREREQ): Use it.
71526
71527 2000-05-18  Jim Meyering  <meyering@lucent.com>
71528
71529         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
71530         back, too, since it may have been modified by allocate_entry.
71531         (hash_delete): Rewrite to use neither the assignment operator
71532         nor the comma operator in an if-expression.
71533
71534 2000-05-15  Paul Eggert  <eggert@twinsun.com>
71535
71536         * lib/closeout.c:
71537         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
71538         Remove; no longer needed.
71539         "quotearg.h": Add include.
71540         (file_name): Do not bother to explicitly initialize to NULL; it's less
71541         efficient on some hosts.
71542         (close_stdout_status): Remove test as to whether stdout was already
71543         closed; it breaks for the case "echo x | sort >&-".
71544         Quote file name colons.
71545         Do not assume that _("write error") lacks format strings.
71546
71547 2000-05-15  Jim Meyering  <meyering@lucent.com>
71548
71549         * lib/version-etc.c (version_etc_copyright): Update the copyright
71550         string used in all --version output.
71551
71552 2000-05-14  Jim Meyering  <meyering@lucent.com>
71553
71554         * lib/closeout.c (close_stdout_set_file_name): New function.
71555         (close_stdout_status): Use new file-scoped global.
71556         Return right away if fstat says the stdout file descriptor is invalid.
71557         * lib/closeout.h (close_stdout_set_file_name): Declare.
71558
71559 2000-05-10  Jim Meyering  <meyering@lucent.com>
71560
71561         * lib/closeout.c [default_exit_status]: New file-scoped variable.
71562         (close_stdout_set_status): New function.
71563         * lib/closeout.h (close_stdout_set_status): Declare.
71564
71565 2000-05-09  Jim Meyering  <meyering@lucent.com>
71566
71567         * m4/gettext.m4: Rename this...
71568         * m4/libintl.m4: ...to this.
71569
71570 2000-05-08  Jim Meyering  <meyering@lucent.com>
71571
71572         * lib/long-options.c: Don't include closeout.h.
71573         (parse_long_options): Don't call close_stdout for --version.
71574
71575 2000-05-06  Paul Eggert  <eggert@twinsun.com>
71576
71577         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
71578         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
71579         2.1.3 bug.  This avoids a clash when files like regex.c define
71580         _GNU_SOURCE.
71581
71582 2000-05-06  Jim Meyering  <meyering@lucent.com>
71583
71584         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
71585         (AC_REPLACE_FUNCS): Add strnlen.
71586
71587         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
71588         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
71589
71590         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
71591         AC_SEARCH_LIBS call for nanosleep.
71592         (LIB_NANOSLEEP): Set and AC_SUBST.
71593
71594 2000-05-06  Jim Meyering  <meyering@lucent.com>
71595
71596         * lib/strnlen.c: Undefine __strnlen and strnlen.
71597         [!weak_alias]: Define __strnlen to strnlen.
71598
71599         * lib/atexit.c: New file, from libiberty.
71600
71601 2000-05-06  Jim Meyering  <meyering@lucent.com>
71602
71603         * lib/closeout.c (close_stdout_status): Also check for errors on the
71604         stderr stream.
71605
71606 2000-05-05  Jim Meyering  <meyering@lucent.com>
71607
71608         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
71609         AC_SEARCH_LIBS call for clock_gettime.
71610         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
71611
71612         * m4/search-libs.m4: Update from autoconf.
71613
71614         su doesn't work on Solaris 2.6.
71615         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
71616         <shadow.h>.  Reported by Dragos Harabor.
71617
71618 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
71619
71620         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
71621         memcpy instead of xmalloc, xrealloc, path_concat.
71622         (locale_charset): Treat empty environment variables as absent.
71623         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
71624
71625 2000-05-04  Jim Meyering  <meyering@lucent.com>
71626
71627         * lib/getopt.c: Update from glibc.
71628         * lib/obstack.c: Likewise.
71629         * lib/obstack.h: Likewise.
71630         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
71631         file
71632
71633         * lib/regex.h: Likewise.
71634         * lib/strndup.c: Likewise.
71635         * lib/strnlen.c: New file, from glibc.
71636
71637 2000-05-03  Jim Meyering  <meyering@lucent.com>
71638
71639         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
71640
71641 2000-05-02  Paul Eggert  <eggert@twinsun.com>
71642
71643         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
71644         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
71645         compile-time test, rather than inspecting host and OS, to
71646         decide whether to define _LARGEFILE_SOURCE.
71647
71648 2000-05-01  Jim Meyering  <meyering@lucent.com>
71649
71650         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
71651
71652         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
71653         Based on a patch from Bruno Haible.
71654
71655 2000-05-01  Jim Meyering  <meyering@lucent.com>
71656
71657         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
71658
71659 2000-04-29  Jim Meyering  <meyering@lucent.com>
71660
71661         * lib/path-concat.c: Declare strdup only if it's not defined.
71662         * lib/canon-host.c: Likewise.
71663
71664 2000-04-28  Jim Meyering  <meyering@lucent.com>
71665
71666         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
71667         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
71668         is included first, then limits.h is included by locale.h by libintl.h.
71669         From John David Anglin.
71670
71671 2000-04-25  Jim Meyering  <meyering@lucent.com>
71672
71673         * lib/makepath.c (S_IRWXUGO): Define.
71674         (make_path): Always perform explicit chmod if MODE specifies any
71675         of the `special' permission bits.  Prompted by a bug report against
71676         install from Mate Wierdl and Joost van Baal.
71677
71678 2000-04-18  Jim Meyering  <meyering@lucent.com>
71679
71680         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
71681         (jm_PREREQ): Use it.
71682
71683 2000-04-18  Jim Meyering  <meyering@lucent.com>
71684
71685         * lib/README: New file.
71686
71687         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
71688         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
71689
71690 2000-04-17  Jim Meyering  <meyering@lucent.com>
71691
71692         Get it right :-)
71693         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
71694         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
71695         Suggestion from Akim Demaille.
71696
71697 2000-04-17  Jim Meyering  <meyering@lucent.com>
71698
71699         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
71700         the definition of it to rpl_strftime also defined-away the system's
71701         declaration.
71702
71703 2000-04-15  Jim Meyering  <meyering@lucent.com>
71704
71705         Use `C' to denote so-called `contiguous' files, the same way
71706         that tar does.
71707         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
71708         (ftypelet): Use S_ISCTG.
71709         From Michael Deutschmann.
71710
71711 2000-04-14  Jim Meyering  <meyering@lucent.com>
71712
71713         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
71714         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
71715         clobbered.
71716
71717 2000-04-14  Jim Meyering  <meyering@lucent.com>
71718
71719         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
71720
71721 2000-04-13  Jim Meyering  <meyering@lucent.com>
71722
71723         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
71724         AH_VERBATIM to insert required #ifndef into config.h.in.
71725         Suggestion from Akim Demaille.
71726
71727 2000-04-12  Jim Meyering  <meyering@lucent.com>
71728
71729         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
71730         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
71731         Christian Krackowizer.
71732
71733         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
71734         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
71735         (AC_SYS_LARGEFILE): Require.
71736         (AM_C_PROTOTYPES): Require.
71737
71738 2000-04-08  Jim Meyering  <meyering@lucent.com>
71739
71740         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
71741         names don't conflict.  Reported by Eli Zaretskii.
71742
71743 2000-04-07  Jim Meyering  <meyering@lucent.com>
71744
71745         * lib/putenv.c: Move inclusion of errno.h so it follows that of
71746         sys/types.h, to work around system header problems on AIX 3.2.5.
71747         From Bruno Haible.
71748
71749 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
71750
71751         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
71752         bug.  Deal with the different error behavior of Irix iconv.
71753
71754 2000-04-05  Paul Eggert  <eggert@twinsun.com>
71755
71756         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
71757         IRIX if the installer said otherwise.
71758
71759 2000-04-05  Jim Meyering  <meyering@lucent.com>
71760
71761         Portability tweaks required for ultrix4.3.
71762         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
71763         (jm_CHECK_DECLS): Add getutent to the list of functions.
71764         (_jm_DECL_HEADERS): Add utmpx.h.
71765         From John David Anglin.
71766
71767         * m4/strftime.m4: Back out the 2000-04-02 change.
71768         Instead of that change, simply undefine putenv in the test program.
71769
71770 2000-04-05  Jim Meyering  <meyering@lucent.com>
71771
71772         Portability tweaks required for ultrix4.3.
71773         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
71774         getutent.
71775         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
71776         * lib/canon-host.c: Declare strdup.
71777         * lib/path-concat.c: Likewise.
71778         From John David Anglin.
71779
71780 2000-04-04  Jim Meyering  <meyering@lucent.com>
71781
71782         Be more DOS 8.3-friendly.
71783         * lib/ref-add.sin: Renamed from ref-add.sed.in.
71784         * lib/ref-del.sin: Renamed from ref-del.sed.in.
71785         * lib/Makefile.am: Reflect renaming.
71786         Reported by Eli Zaretskii.
71787
71788         Use a temporary file name that won't clash with `charset.alias'
71789         in the DOS 8.3 name space.
71790         * lib/Makefile.am (charset_tmp): Define.
71791         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
71792         (uninstall-local): Likewise.
71793         Reported by Eli Zaretskii.
71794
71795 2000-04-03  Jim Meyering  <meyering@lucent.com>
71796
71797         * m4/gettext.m4: Fix typo in comment.
71798
71799         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
71800         textutils/configure.in).  Suggestion from Paul Eggert.
71801         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
71802
71803 2000-04-02  Paul Eggert  <eggert@twinsun.com>
71804
71805         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
71806         variable in the shell rather than using putenv, which isn't
71807         portable.  This avoids the configure-time inter-test dependency
71808         on the potentially-renamed putenv function.
71809
71810 2000-03-30  Paul Eggert  <eggert@twinsun.com>
71811
71812         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
71813         before checking struct stat.st_blksize, so that
71814         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
71815
71816 2000-03-29  Paul Eggert  <eggert@twinsun.com>
71817
71818         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
71819         since strftime.c uses HAVE_STRFTIME to decide whether to use
71820         the underlying strftime.
71821
71822 2000-03-29  Paul Eggert  <eggert@twinsun.com>
71823
71824         * lib/time/strftime.c (my_strftime): Make sure we call the system
71825         strftime, not ourselves, when invoking the underlying strftime.
71826
71827 2000-03-24  Jim Meyering  <meyering@lucent.com>
71828
71829         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
71830         (charset_alias): Define.
71831         (install-exec-local): Factor out common code.
71832         (uninstall-local): Split lines longer than 80.
71833         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
71834         (SUFFIXES): Define.
71835         (.sed.in.sed): New rule.  Don't redirect directly to $@.
71836         (CLEANFILES): Add ref-add.sed and ref-del.sed.
71837
71838 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
71839
71840         * lib/config.charset: Output a line containing "Packages using this
71841         file".
71842         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
71843         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
71844         ref-del.sed): New rules.
71845
71846 2000-03-17  Jim Meyering  <meyering@lucent.com>
71847
71848         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
71849         Otherwise, include <strings.h>
71850
71851 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
71852
71853         * lib/unicodeio.c (utf8_wctomb): New function.
71854         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
71855         format instead of in UCS-4 with platform dependent endianness.
71856
71857 2000-03-10  Jim Meyering  <meyering@lucent.com>
71858
71859         * m4/lib-check.m4: Look for getspnam in -lgen, too.
71860         From Marco Franzen.
71861
71862 2000-03-07  Paul Eggert  <eggert@twinsun.com>
71863
71864         * lib/savedir.c (savedir): Work even if directory size is
71865         negative; this can happen with some screwy NFS configurations.
71866
71867 2000-03-06  Jim Meyering  <meyering@lucent.com>
71868
71869         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
71870         if it's NULL (because we ran out of memory).  From Bruno Haible.
71871
71872 2000-03-05  Jim Meyering  <meyering@lucent.com>
71873
71874         * lib/localcharset.c ("path-concat.h"): Include.
71875         (get_charset_aliases): Use path_concat instead of ANSI string
71876         concatenation.
71877
71878         * lib/unicodeio.h (PARAMS): Define.
71879         Use it to guard prototype.
71880
71881 2000-03-04  Jim Meyering  <meyering@lucent.com>
71882
71883         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
71884         for lib/localcharset.c.
71885
71886 2000-03-04  Jim Meyering  <meyering@lucent.com>
71887
71888         * lib/Makefile.am (install-exec-local): Create $(libdir) before
71889         installing into it.
71890         (uninstall-local): Uncomment this rule so `make distcheck' works
71891         once again.
71892
71893         * lib/unicodeio.c (<errno.h>): Include it.
71894         (errno): Declare if not defined.
71895
71896         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
71897
71898         * lib/config.charset: New version, incorporating remarks from a linux
71899         i18n mailing list.  From Bruno Haible.
71900
71901 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
71902
71903         * m4/codeset.m4: New file.
71904         * m4/iconv.m4: New file.
71905         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
71906
71907 2000-03-03  Jim Meyering  <meyering@lucent.com>
71908
71909         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
71910
71911 2000-03-02  Jim Meyering  <meyering@lucent.com>
71912
71913         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
71914         the messages come out on separate lines.
71915
71916         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
71917         rather than jm_CHECK_DECLARATIONS.
71918         * m4/decl.m4: Remove now-unused file.
71919
71920         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
71921         geteuid.
71922
71923 2000-03-02  Jim Meyering  <meyering@lucent.com>
71924
71925         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
71926
71927 2000-03-01  Jim Meyering  <meyering@lucent.com>
71928
71929         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
71930         * lib/unicodeio.c: Likewise.
71931
71932 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
71933
71934         * lib/config.charset: New file.
71935         * lib/localcharset.c: New file.
71936         * lib/unicodeio.h, lib/unicodeio.c: New files.
71937         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
71938         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
71939         (noinst_HEADERS): Add unicodeio.h.
71940         (all-local, install-exec-local, charset.alias): New targets.
71941
71942 2000-02-28  Paul Eggert  <eggert@twinsun.com>
71943
71944         * lib/quotearg.c (ALERT_CHAR): New macro.
71945         (quotearg_buffer_restyled): Use it.
71946
71947 2000-02-27  Jim Meyering  <meyering@lucent.com>
71948
71949         * m4/check-decl.m4: Add getenv to the list.
71950
71951 2000-02-27  Jim Meyering  <meyering@lucent.com>
71952
71953         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
71954         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
71955
71956         * lib/backupfile.c: Guard inclusion of stdlib.h with
71957         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
71958         Declare malloc if needed.
71959
71960         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
71961         `#ifndef HAVE_DECL..'
71962         now that autoconf always defines the HAVE_DECL_ symbols.
71963         * lib/human.c: Likewise.
71964         * lib/same.c: Likewise.
71965         * lib/strtoumax.c: Likewise.
71966
71967         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
71968         declaration check was not run.
71969         * lib/hash.c: Likewise.
71970         * lib/human.c: Likewise.
71971         * lib/same.c: Likewise.
71972         * lib/strtoumax.c: Likewise.
71973
71974         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
71975         `.', then first look up the entire `.'-containing string as a login
71976         name.
71977
71978 2000-02-23  Jim Meyering  <meyering@lucent.com>
71979
71980         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
71981         in place of my hack.
71982
71983 2000-02-18  Paul Eggert  <eggert@twinsun.com>
71984
71985         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
71986         (textint): New typedef.
71987         (parser_control): Member year changed from int to textint.
71988         All uses changed.
71989         (YYSTYPE): Removed; replaced by %union with int and textint members.
71990         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
71991         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
71992         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
71993         (tSNUMBER, tUNUMBER): Now of type <textintval>.
71994         (date, number, to_year): Use width of number in digits, not its value,
71995         to determine whether it's a 2-digit year, or a 2-digit time.
71996         (yylex): Store number of digits of numeric tokens.
71997         Reported by John Kendall.
71998
71999         (parser_control): Changed from struct parser_control to typedef (for
72000         consistency).  All uses changed.
72001
72002         (tID): Removed; not used.
72003         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
72004
72005 2000-02-14  Paul Eggert  <eggert@twinsun.com>
72006
72007         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
72008         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
72009
72010 2000-02-12  Jim Meyering  <meyering@lucent.com>
72011
72012         * lib/userspec.c (ISDIGIT): Define it.
72013         (isdigit): Remove definition.
72014         (is_number): Use ISDIGIT, not isdigit.
72015         <libintl.h>: Include.
72016         (_ and N_): Define.
72017         (parse_user_spec): Mark translatable strings.
72018
72019 2000-02-10  Jim Meyering  <meyering@lucent.com>
72020
72021         With these changes, nanosleep.[ch] are finally enough like the other
72022         lib/* replacement files to compile on a few more losing systems.
72023
72024         * lib/nanosleep.h: Don't include config.h.
72025         Remove prototype from declaration of nanosleep.
72026         (PARAMS): Remove now-unneeded definition.
72027         * lib/nanosleep.c: #undef nanosleep.
72028         (rpl_nanosleep): Rename from nanosleep.
72029
72030 2000-02-10  Jim Meyering  <meyering@lucent.com>
72031
72032         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
72033         gnu_nanosleep to rpl_nanosleep.
72034
72035 2000-02-09  Jim Meyering  <meyering@lucent.com>
72036
72037         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
72038         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
72039
72040 2000-02-08  Akim Demaille  <akim@epita.fr>
72041
72042         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
72043         `[' and `]' and remove uses of `changequote'.
72044         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
72045         (AC_SYS_LARGEFILE): Likewise.
72046         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
72047         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
72048         of changequote.
72049         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
72050         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
72051         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
72052         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
72053
72054 2000-02-05  Jim Meyering  <meyering@lucent.com>
72055
72056         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
72057         Remove explicit use of AC_HEADER_TIME.  It is required by
72058         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
72059         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
72060         in autoconf whereby the expansion of the latter ended up preceding
72061         the expansion of its prerequisite, AC_HEADER_TIME.
72062         Reported by Volker Borchert.
72063
72064 2000-02-03  Jim Meyering  <meyering@lucent.com>
72065
72066         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
72067
72068 2000-02-03  Jim Meyering  <meyering@lucent.com>
72069
72070         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
72071         rather than with `#if HAVE_UTMPNAME'.
72072
72073 2000-02-02  Jim Meyering  <meyering@lucent.com>
72074
72075         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
72076         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
72077         Reported by Eli Zaretskii.
72078
72079 2000-02-01  Jim Meyering  <meyering@lucent.com>
72080
72081         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
72082
72083 2000-01-31  Jim Meyering  <meyering@lucent.com>
72084
72085         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
72086         functions.  Add the time.h and sys/time.h headers along with the
72087         AC_REQUIRE'ment of AC_HEADER_TIME.
72088
72089 2000-01-31  Jim Meyering  <meyering@lucent.com>
72090
72091         * lib/nanosleep.h (nanosleep): Guard declaration with
72092         `#if ! HAVE_DECL_NANOSLEEP'.
72093         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
72094         the declaration in that vendor's sys/timers.h.
72095         Reported by Christian Krackowizer.
72096
72097         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
72098         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
72099         (ISPRINT): Likewise.
72100         Reported by Tom Tromey.
72101
72102 2000-01-30  Jim Meyering  <meyering@lucent.com>
72103
72104         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
72105
72106         * m4/prereq.m4 (utmp_includes): Define.
72107         Check for ut_user and ut_name members in both struct utmpx
72108         and struct utmp.
72109
72110 2000-01-30  Jim Meyering  <meyering@lucent.com>
72111
72112         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
72113         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
72114         header files where only utmpx.ut_user is declared.
72115
72116         * lib/readutmp.h (UT_USER): Define.
72117
72118 2000-01-29  Jim Meyering  <meyering@lucent.com>
72119
72120         * m4/lib-check.m4: New file containing library-related checks from
72121         fileutils and sh-utils (textutils had none).
72122
72123 2000-01-28  Jim Meyering  <meyering@lucent.com>
72124
72125         * m4/perl.m4: Change format of warning message to look more like that
72126         from the missing script.  Suggestion from François Pinard.
72127
72128 2000-01-25  Jim Meyering  <meyering@lucent.com>
72129
72130         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
72131         well as time.h in the compile check.
72132         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
72133         Fix typo in cross-compiling case: s/yes/no/.
72134
72135 2000-01-23  Jim Meyering  <meyering@lucent.com>
72136
72137         * m4/jm-macros.m4: Move df-related tests here from
72138         fileutils/configure.in
72139
72140         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
72141         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
72142
72143         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
72144         s/space/ac_fsusage_space/.
72145         (jm_FILE_SYSTEM_USAGE): Take two parameters.
72146
72147         * m4/ftruncate.m4: New file (derived from part of
72148         fileutils/configure.in).
72149         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
72150         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
72151
72152         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
72153         AC_SUBST these here, rather than just in sh-util/configure.in, so
72154         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
72155         all the same.
72156         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
72157         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
72158         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
72159         (AC_SUBST(POW_LIBM)): Likewise.
72160         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
72161
72162 2000-01-23  Jim Meyering  <meyering@lucent.com>
72163
72164         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
72165         obstack.c.
72166
72167 2000-01-22  Jim Meyering  <meyering@lucent.com>
72168
72169         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
72170
72171         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
72172
72173         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
72174         configure.in
72175         (AC_CHECK_HEADERS): Likewise for sh-utils.
72176         (AC_CHECK_HEADERS): Likewise for textutils.
72177         Merge the three lists of headers.
72178
72179         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
72180         from fileutils' configure.in.
72181
72182         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
72183         code. Moved tests into their own function (_jm_DECL_HEADERS) in
72184         check-decl.m4.
72185
72186         * m4/check-decl.m4: Use #if rather than #ifdef.
72187         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
72188         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
72189         (_jm_DECL_HEADERS): Define new function.
72190         (jm_CHECK_DECLARATIONS): Require it.
72191
72192 2000-01-22  Jim Meyering  <meyering@lucent.com>
72193
72194         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
72195         [! HAVE_DECL_STRTOULL]: Declare strtoull.
72196         Required for some AIX systems.  Reported by Christian Krackowizer.
72197         [TESTING] (main): New function.
72198
72199         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
72200         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
72201         letters.
72202
72203         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
72204         iswprint.
72205
72206         * lib/strverscmp.c (ISDIGIT): Define.
72207         (strverscmp): Use ISDIGIT, not isdigit.
72208
72209 2000-01-19  Jim Meyering  <meyering@lucent.com>
72210
72211         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
72212         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
72213         defines `struct timespec' in <sys/time.h>
72214
72215         * m4/c-bs-a.m4: Remove uses of changequote altogether.
72216         Thanks to Akim for explaining.
72217
72218 2000-01-17  Paul Eggert  <eggert@twinsun.com>
72219
72220         * lib/nanosleep.c (nanosleep):
72221         Don't use SA_INTERRUPT to decide whether to call sigaction, as
72222         POSIX.1 doesn't require SA_INTERRUPT and some systems
72223         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
72224         it's been part of POSIX.1 since day 1 (in 1988).
72225
72226 2000-01-17  Jim Meyering  <meyering@lucent.com>
72227
72228         * lib/interlock: Remove unused file.  Reported by François Pinard.
72229
72230 2000-01-16  Paul Eggert  <eggert@twinsun.com>
72231
72232         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
72233         alert, backslash, formfeed, and vertical tab unnecessarily in
72234         shell quoting style.
72235
72236 2000-01-16  Jim Meyering  <meyering@lucent.com>
72237
72238         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
72239         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
72240         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
72241         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
72242
72243 2000-01-16  Jim Meyering  <meyering@lucent.com>
72244
72245         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
72246         because the latter didn't work.
72247
72248 2000-01-15  Jim Meyering  <meyering@lucent.com>
72249
72250         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
72251         (AC_REPLACE_FUNCS): Add memcpy and memset.
72252         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
72253         Add strpbrk.
72254         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
72255
72256 2000-01-12  Jim Meyering  <meyering@lucent.com>
72257
72258         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
72259         (jm_PREREQ): Use it.
72260         (jm_PREREQ_READUTMP): New macro.
72261         (jm_PREREQ): Use it.
72262
72263 2000-01-11  Paul Eggert  <eggert@twinsun.com>
72264
72265         Quote multibyte characters correctly.
72266         * m4/c-bs-a.m4: New file.
72267         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
72268         (jm_PREREQ): Use it.
72269
72270 2000-01-11  Paul Eggert  <eggert@twinsun.com>
72271
72272         * m4/uintmax_t.m4: Port to autoconf 2.13.
72273
72274 2000-01-08  Jim Meyering  <meyering@ascend.com>
72275
72276         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
72277         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
72278
72279 2000-01-04  Jim Meyering  <meyering@ascend.com>
72280
72281         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
72282         jm_STRUCT_DIRENT_D_TYPE.
72283         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
72284         jm_STRUCT_DIRENT_D_INO.
72285         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
72286         jm_STRUCT_UTIMBUF.
72287         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
72288         renamings.
72289         * m4/utime.m4: Likewise.
72290
72291         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
72292         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
72293
72294 2000-01-03  Paul Eggert  <eggert@twinsun.com>
72295
72296         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
72297         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
72298
72299 2000-01-02  Jim Meyering  <meyering@ascend.com>
72300
72301         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
72302         remember if this is necessary.
72303
72304 1999-12-26  Jim Meyering  <meyering@ascend.com>
72305
72306         * m4/jm-macros.m4: Use it here.
72307         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
72308
72309 1999-12-23  Jim Meyering  <meyering@ascend.com>
72310
72311         * m4/jm-macros.m4: Check for clock_gettime (moved from
72312         fileutils/configure.in)
72313         Check for gettimeofday.
72314
72315 1999-12-20  Jim Meyering  <meyering@ascend.com>
72316
72317         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
72318         autoconf-2.14a-1999-12-20.
72319
72320 1999-12-19  Jim Meyering  <meyering@ascend.com>
72321
72322         * m4/lstat-slash.m4: New file.
72323         * m4/jm-macros.m4: Use the new macro:
72324         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72325
72326 1999-12-07  Jim Meyering  <meyering@ascend.com>
72327
72328         * m4/perl.m4: Require that File::Compare be available, too.
72329         Too many systems seem to lack it.
72330
72331         * m4/strftime.m4: Add checks for most of the cpp macros tested in
72332         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
72333
72334 1999-11-18  Paul Eggert  <eggert@twinsun.com>
72335
72336         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
72337         problem with the QNX 4.25 shell, which doesn't propagate exit
72338         status of failed commands inside shell assignments.
72339
72340 1999-11-17  Jim Meyering  <meyering@ascend.com>
72341
72342         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
72343
72344 1999-11-07  Jim Meyering  <meyering@ascend.com>
72345
72346         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
72347
72348 1999-11-06  Jim Meyering  <meyering@ascend.com>
72349
72350         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
72351         * m4/jm-macros.m4 (jm_MACROS): Use it here.
72352
72353 1999-11-05  Jim Meyering  <meyering@ascend.com>
72354
72355         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
72356         configure.in of textutils, fileutils, and sh-utils into this one
72357         (shared between those packages) file.
72358         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
72359         AC_STRUCT_ST_BLKSIZE.
72360
72361 1999-11-03  Jim Meyering  <meyering@ascend.com>
72362
72363         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
72364         of AC_CHECK_TYPE checks includes unistd.h.
72365         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
72366         Suggestion from Akim Demaille.
72367
72368 1999-10-30  Jim Meyering  <meyering@ascend.com>
72369
72370         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
72371         m4-quoted string.
72372         * m4/ls-mntd-fs.m4: Likewise.
72373         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
72374         * m4/jm-winsz1.m4: Likewise.
72375
72376         * m4/const.m4: Remove file, since the fix made it into the experimental
72377         version of autoconf.
72378         * m4/mktime.m4: Likewise.
72379
72380         * m4/check-type.m4: Remove file, now that the latest version of
72381         AC_CHECK_TYPE takes a third arg to specify additional #includes.
72382
72383         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
72384         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
72385         AC_CHECK_TYPE.
72386
72387 1999-10-04  Jim Meyering  <meyering@ascend.com>
72388
72389         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
72390
72391 1999-09-22  Paul Eggert  <eggert@twinsun.com>
72392
72393         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
72394         2.95.1 bug with HP-UX 10.20.
72395
72396 1999-09-17  Jim Meyering  <meyering@ascend.com>
72397
72398         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
72399         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
72400         due to missing strdup (against sh-utils-2.0).
72401
72402 1999-08-29  Jim Meyering  <meyering@ascend.com>
72403
72404         * m4/jm-macros.m4: Require jm_BISON.
72405         * m4/bison.m4: New file.
72406
72407 1999-08-17  Paul Eggert  <eggert@twinsun.com>
72408
72409         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
72410         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
72411
72412 1999-08-05  Jim Meyering  <meyering@ascend.com>
72413
72414         * m4/getline.m4: Rename test file from conftestdata to conftest.data
72415         to avoid conflicts with `conftest' on 8+3 filesystems.
72416         Suggestion from Eli Zaretskii.
72417
72418 1999-08-04  Jim Meyering  <meyering@ascend.com>
72419
72420         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
72421         fileutils and sh-utils (textutils's getline test was inadequate).
72422         (AM_FUNC_GETLINE): Run this test.
72423         (AC_CHECK_FUNCS): Check for getdelim.
72424         Reported by Bob Proulx.
72425
72426 1999-08-02  Jim Meyering  <meyering@ascend.com>
72427
72428         * m4/jm-macros.m4: Add a comment.
72429
72430 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72431
72432         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
72433         <inttypes.h> defines strtoumax as a macro (and not as a
72434         function).
72435
72436 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72437
72438         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
72439         that we can shift, multiply and divide unsigned long long
72440         values; Ultrix cc can't do it.
72441
72442 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72443
72444         * m4/mktime.m4: New file, which is a preview of what should appear
72445         in the next public autoconf release.
72446
72447 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72448
72449         * m4/lfs.m4: Remove this file.
72450         * m4/largefile.m4: New file.  It contains the old contents of
72451         lfs.m4, except that all names with prefix AC_LFS have been
72452         changed to use the prefix AC_SYS_LARGEFILE instead, to be
72453         compatible with future autoconf versions.  Also, some minor m4
72454         quoting problems have been fixed.
72455
72456 1999-08-01  Paul Eggert  <eggert@twinsun.com>
72457
72458         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
72459         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
72460         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
72461         and simplify the shell code.
72462
72463 1999-08-01  Jim Meyering  <meyering@ascend.com>
72464
72465         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
72466         m4.
72467
72468 1999-07-20  Jim Meyering  <meyering@ascend.com>
72469
72470         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
72471
72472 1999-07-15  Jim Meyering  <meyering@ascend.com>
72473
72474         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
72475
72476 1999-05-22  Jim Meyering  <meyering@ascend.com>
72477
72478         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
72479
72480 1999-05-20  Jim Meyering  <meyering@ascend.com>
72481
72482         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
72483         Add a colon after each `then' in case $4 is empty.
72484
72485 1999-05-16  Jim Meyering  <meyering@ascend.com>
72486
72487         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
72488
72489 1999-05-10  Jim Meyering  <meyering@ascend.com>
72490
72491         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
72492
72493         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
72494         AC_FUNC_MKTIME.
72495
72496 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
72497
72498         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
72499
72500 1999-05-04  Paul Eggert  <eggert@twinsun.com>
72501
72502         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
72503         not CPPFLAGS, so that linking works correctly in IRIX.
72504
72505 1999-04-30  Paul Eggert  <eggert@twinsun.com>
72506
72507         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
72508
72509 1999-04-20  Paul Eggert  <eggert@twinsun.com>
72510
72511         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
72512         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
72513         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
72514         jm_AC_TYPE_UNSIGNED_LONG_LONG.
72515         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
72516
72517         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
72518
72519 1999-04-20  Jim Meyering  <meyering@ascend.com>
72520
72521         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
72522         AC_REPLACE xstroull if necessary.  From Paul Eggert.
72523         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
72524
72525 1999-04-18  Jim Meyering  <meyering@ascend.com>
72526
72527         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
72528         * m4/jm-macros.m4: Use it.
72529
72530 1999-04-06  Jim Meyering  <meyering@ascend.com>
72531
72532         * m4/strftime.m4: Remove test for %f.
72533
72534 1999-03-29  Jim Meyering  <meyering@ascend.com>
72535
72536         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
72537         superset of the AC_TYPE_* checks in the textutils, fileutils,
72538         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
72539         AC_TYPE_PID_T.
72540
72541 1999-03-28  Jim Meyering  <meyering@ascend.com>
72542
72543         * m4/jm-macros.m4: Define GNU_PACKAGE here.
72544         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
72545         replaced e.g., in the *.sh files of the sh-utils.
72546
72547 1999-03-20  Jim Meyering  <meyering@ascend.com>
72548
72549         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
72550         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
72551         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
72552
72553 1999-03-19  Jim Meyering  <meyering@ascend.com>
72554
72555         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
72556
72557 1999-03-12  Jim Meyering  <meyering@ascend.com>
72558
72559         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
72560
72561 1999-03-07  Jim Meyering  <meyering@ascend.com>
72562
72563         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
72564         declared.
72565
72566 1999-02-17  Jim Meyering  <meyering@ascend.com>
72567
72568         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
72569         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
72570
72571 1999-02-07  Jim Meyering  <meyering@ascend.com>
72572
72573         * m4/group-member.m4: New file -- extracted from sh-utils'
72574         configure.in.
72575
72576         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
72577         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
72578
72579 1999-02-06  Jim Meyering  <meyering@ascend.com>
72580
72581         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
72582         * m4/fnmatch.m4: Likewise.
72583         * m4/getgroups.m4: Likewise.
72584         * m4/lstat.m4: Likewise.
72585         * m4/malloc.m4: Likewise.
72586         * m4/putenv.m4: Likewise.
72587         * m4/realloc.m4: Likewise.
72588         * m4/regex.m4: Likewise.
72589         * m4/stat.m4: Likewise.
72590         * m4/strftime.m4: Likewise.
72591         Suggestion from Alain Magloire.
72592
72593         * m4/chown.m4: Use `.$ac_objext', not `.o'.
72594         * m4/fnmatch.m4: Likewise.
72595         * m4/getgroups.m4: Likewise.
72596         * m4/getline.m4: Likewise.
72597         * m4/lstat.m4: Likewise.
72598         * m4/malloc.m4: Likewise.
72599         * m4/memcmp.m4: Likewise.
72600         * m4/putenv.m4: Likewise.
72601         * m4/realloc.m4: Likewise.
72602         * m4/regex.m4: Likewise.
72603         * m4/stat.m4: Likewise.
72604         * m4/strftime.m4: Likewise.
72605         Suggestion from Alain Magloire.
72606
72607         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
72608         an argument.
72609
72610         * m4/regex.m4: Add a run-time Test for proper operation of
72611         re_compile_pattern.
72612
72613 1999-01-31  Jim Meyering  <meyering@ascend.com>
72614
72615         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
72616
72617 1999-01-30  Jim Meyering  <meyering@ascend.com>
72618
72619         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
72620
72621         * m4/jm-mktime.m4: Make this a wrapper around the official
72622         AM_FUNC_MKTIME rather than my private copy, now that the official one
72623         is up to date.
72624         * m4/mktime.m4: Remove file.
72625
72626         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
72627         * m4/uptime.m4: Likewise.
72628         * m4/uintmax_t.m4: Likewise.
72629
72630 1999-01-28  Jim Meyering  <meyering@ascend.com>
72631
72632         * m4/jm-macros.m4: Use jm_AFS.
72633         * m4/afs.m4: New file (from fileutils' configure.in).
72634
72635         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
72636         * m4/chown.m4: Likewise.
72637         * m4/d-ino.m4: Likewise.
72638         * m4/d-type.m4: Likewise.
72639         * m4/fnmatch.m4: Likewise.
72640         * m4/getgroups.m4: Likewise.
72641         * m4/gettext.m4: Likewise.
72642         * m4/jm-mktime.m4: Likewise.
72643         * m4/jm-winsz2.m4: Likewise.
72644         * m4/lcmessage.m4: Likewise.
72645         * m4/ls-mntd-fs.m4: Likewise.
72646         * m4/malloc.m4: Likewise.
72647         * m4/memcmp.m4: Likewise.
72648         * m4/putenv.m4: Likewise.
72649         * m4/realloc.m4: Likewise.
72650         * m4/st_mtim.m4: Likewise.
72651         * m4/strftime.m4: Likewise.
72652
72653 1999-01-16  Jim Meyering  <meyering@ascend.com>
72654
72655         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
72656         (ARGMATCH_DIE_DECL): Define.
72657
72658 1999-01-12  Jim Meyering  <meyering@ascend.com>
72659
72660         * m4/Makefile.am.in: Rewrite to avoid using fmt.
72661         Reported by Lars Hecking.
72662
72663 1999-01-10  Jim Meyering  <meyering@ascend.com>
72664
72665         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
72666         gross kludge.
72667         * m4/inttypes_h.m4: Likewise.
72668         * m4/lstat.m4: Likewise.
72669         * m4/malloc.m4: Likewise.
72670         * m4/readdir.m4: Likewise.
72671         * m4/realloc.m4: Likewise.
72672         * m4/st_dm_mode.m4: Likewise.
72673         * m4/stat.m4: Likewise.
72674         * m4/utimbuf.m4: Likewise.
72675         * m4/utimes.m4: Likewise.
72676
72677         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
72678         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
72679         comments in config.h.in are meaningful.
72680
72681         * m4/jm-macros.m4: Require autoconf-2.13 here.
72682
72683         * m4/regex.m4: By default, don't use the included regex.c on systems
72684         with glibc 2.  Suggestion from Uli Drepper.
72685
72686 1999-01-02  Jim Meyering  <meyering@ascend.com>
72687
72688         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
72689
72690 1998-12-18  Jim Meyering  <meyering@ascend.com>
72691
72692         * m4/Makefile.am.in (Makefile.am): Simplify rule.
72693         Based on a suggestion from Lars Hecking.
72694
72695 1998-11-16  Paul Eggert  <eggert@twinsun.com>
72696
72697         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
72698
72699 1998-11-16  Jim Meyering  <meyering@ascend.com>
72700
72701         * m4/lfs.m4: Double-quote the `uname...` expression.
72702
72703 1998-11-14  Jim Meyering  <meyering@ascend.com>
72704
72705         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
72706         * m4/stat.m4: Likewise.
72707
72708 1998-11-03  Jim Meyering  <meyering@ascend.com>
72709
72710         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
72711         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
72712
72713 1998-10-18  Jim Meyering  <meyering@ascend.com>
72714
72715         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
72716
72717 1998-10-17  Jim Meyering  <meyering@ascend.com>
72718
72719         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
72720         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
72721         calls for those previously hard-coded headers.  Instead, take a new
72722         parameter.
72723         (jm_CHECK_DECLARATIONS): Reflect interface change.
72724         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
72725         (jm_CHECK_DECL_LOCALTIME_R): New macro.
72726
72727         * m4/mktime.m4: Test for spring-forward gap before long-running test.
72728
72729 1998-10-14  Jim Meyering  <meyering@ascend.com>
72730
72731         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
72732         instead of "TZ=America/Vancouver".  From Paul Eggert.
72733
72734 1998-10-11  Jim Meyering  <meyering@ascend.com>
72735
72736         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
72737         This adds a test for a recently added compatibility fix for mktime.c.
72738         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
72739
72740 1998-09-27  Jim Meyering  <meyering@ascend.com>
72741
72742         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
72743
72744         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
72745         ../configure.in, including a change from Gordon Matzigkeit to allow
72746         cross-compiling for the Hurd.
72747
72748         * m4/glibc.m4: New file/macro to test for the GNU C Library
72749         versions 1 and 2.  From Gordon Matzigkeit.
72750         Indent.
72751
72752 1998-09-21  Jim Meyering  <meyering@ascend.com>
72753
72754         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
72755
72756 1998-08-18  Paul Eggert  <eggert@twinsun.com>
72757
72758         Port nanosecond-resolution times to UnixWare 2.1.2 and
72759         pedantic Solaris 2.6.
72760
72761         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
72762         AC_STRUCT_ST_MTIM.
72763         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
72764         Generate name of ns member, instead of just 1 or undef.
72765         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
72766
72767 1998-08-15  Jim Meyering  <meyering@ascend.com>
72768
72769         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
72770         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
72771         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
72772         instead of jm_TYPE_SSIZE_T.
72773
72774 1998-08-12  Jim Meyering  <meyering@ascend.com>
72775
72776         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
72777
72778 1998-08-02  Jim Meyering  <meyering@ascend.com>
72779
72780         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
72781         in acconfig.h manually.
72782
72783 1998-07-31  Paul Eggert  <eggert@twinsun.com>
72784
72785         * m4/st_mtim.m4: New file.
72786
72787 1998-07-28  Jim Meyering  <meyering@ascend.com>
72788
72789         * m4/utimes.m4: Undef stat.
72790
72791 1998-07-25  Jim Meyering  <meyering@ascend.com>
72792
72793         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
72794         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
72795
72796 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
72797
72798         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
72799         uid and gid actually remain unchanged.
72800
72801 1998-07-07  Jim Meyering  <meyering@ascend.com>
72802
72803         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
72804
72805 1998-07-04  Jim Meyering  <meyering@ascend.com>
72806
72807         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
72808         to prove that this macro can be used in packages without regex.c.
72809
72810 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
72811
72812         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
72813         is to be used.
72814
72815 1998-07-03  Jim Meyering  <meyering@ascend.com>
72816
72817         * m4/gettext.m4: Add -lintl if it's found to be necessary.
72818
72819         * m4/gettext.m4: New file -- from gettext-0.10.35.
72820         * m4/lcmessage.m4: Likewise.
72821         * m4/progtest.m4: Likewise.
72822
72823         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
72824         * m4/jm-macros.m4: Require the new macro.
72825
72826 1998-06-29  Jim Meyering  <meyering@ascend.com>
72827
72828         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
72829         for the definition of NGROUPS (used in a system header included
72830         by sys/mount.h).
72831
72832 1998-06-28  Jim Meyering  <meyering@ascend.com>
72833
72834         * m4/ls-mntd-fs.m4: New file.
72835         * m4/fstypename.m4: New file.
72836
72837         * m4/jm-macros.m4: Require the new macro.
72838         * m4/jm-glibc-io.m4: New file.
72839
72840 1998-05-19  Jim Meyering  <meyering@ascend.com>
72841
72842         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
72843         * m4/lchown.m4: New file.
72844
72845         * m4/Makefile.am.in: New file.
72846         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
72847
72848 1998-05-14  Jim Meyering  <meyering@ascend.com>
72849
72850         * m4/Makefile.am (EXTRA_DIST): Add them.
72851         * m4/jm-macros.m4: New file.
72852         * m4/utimbuf.m4: New file.
72853
72854 1998-05-12  Jim Meyering  <meyering@ascend.com>
72855
72856         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
72857
72858 1998-05-11  Jim Meyering  <meyering@ascend.com>
72859
72860         * m4/isc-posix.m4: New file.
72861
72862 1998-05-10  Jim Meyering  <meyering@ascend.com>
72863
72864         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
72865
72866 1998-05-09  Jim Meyering  <meyering@ascend.com>
72867
72868         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
72869         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
72870         with automake.
72871
72872         * m4/ssize_t.m4: New file.
72873         * m4/mktime.m4: Remove file -- the new automake has this now.
72874
72875 1998-04-26  Jim Meyering  <meyering@ascend.com>
72876
72877         * m4/assert.m4: New file.
72878         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
72879
72880 1998-04-05  Jim Meyering  <meyering@ascend.com>
72881
72882         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
72883         (jm_PREREQ): Use it here.
72884
72885 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
72886
72887         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
72888         in acconfig.h.
72889
72890 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
72891
72892         * m4/prereq.m4: New file.
72893         * m4/error.m4: New file.
72894         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
72895
72896 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
72897
72898         * m4/getline.m4: Don't set am_cv_func_working_getline before the
72899         cache-check for the same variable -- that defeated the purpose of
72900         the test; the test program was never run.  This was a problem only
72901         on systems with losing getline functions -- HP-UX 10.20 is one.
72902         Reported by Bjorn Helgaas.
72903
72904 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
72905
72906         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
72907
72908 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
72909
72910         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
72911
72912         * m4/const.m4: New file.  Use an initializer in this declaration
72913         typedef int charset[2]; const charset x;
72914         Reported by Bob Glickstein.
72915
72916 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
72917
72918         * m4/chown.m4: Fix reversed types on -1 args to chown.
72919         From Kaveh Ghazi.
72920
72921 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
72922
72923         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
72924         Add lseek and memchr.
72925
72926         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
72927         T.E.Dickey <dickey@clark.net> said that some older preprocessors
72928         have a 20-character limit on names.
72929
72930 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
72931
72932         * m4/inttypes_h.m4: New file.
72933         * m4/uintmax_t.m4: New file.
72934         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
72935
72936
72937         -----
72938
72939         Local Variables:
72940         coding: utf-8
72941         End:
72942
72943         Copyright (C) 1997-2010 Free Software Foundation, Inc.
72944
72945         Copying and distribution of this file, with or without
72946         modification, are permitted provided the copyright notice
72947         and this notice are preserved.